Link WorkerConfigurations to WorkerVersions and corpora
https://redmine.teklia.com/issues/11352
Requires backend#1965
The WorkerConfiguration TypeScript interface should be updated to include the initial_worker_version_id and initial_corpus_id fields, as required but nullable UUIDs. The WorkerConfigurationUpdatePayload should also be updated to exclude those new fields, since they cannot be updated on an existing configuration.
The useWorkerConfigurationStore().create action should be updated to also take a corpusId: UUID | null argument. It should use this as the initial_corpus_id, and use the store's targetVersionId as the initial_worker_version_id. These fields should not be set at all when creating a configuration on a non-modern worker version; this could be determined by setting corpusId to null or by the fact that !(targetVersionId in fields) in the store's state, meaning that no fields have been loaded at all and the modern form is not in use.
Those new fields will not be displayed yet, because there is no good spot to display them without adding too much complexity to the already complex configurations. They just need to be passed to the backend to allow it to validate configurations properly.