diff --git a/clients/js/src/types.ts b/clients/js/src/types.ts index 48ae693fc70..f786b21f703 100644 --- a/clients/js/src/types.ts +++ b/clients/js/src/types.ts @@ -192,15 +192,19 @@ export type SingleAddRecordOperationParams = | SingleContentRecordOperationParams; type SingleEmbeddingRecordOperationParamsWithOptionalIDs = - BaseRecordOperationParams & { + SingleRecordOperationParamsWithIDsOptional & { embeddings: Embedding; }; type SingleContentRecordOperationParamsWithOptionalIDs = - BaseRecordOperationParams & { + SingleRecordOperationParamsWithIDsOptional & { documents: Document; }; +export type SingleAddRecordOperationParamsWithOptionalIDs = + | SingleEmbeddingRecordOperationParamsWithOptionalIDs + | SingleContentRecordOperationParamsWithOptionalIDs; + export type MultiRecordOperationParams = MultiRecordOperationParamsWithIDsOptional & { ids: IDs; @@ -222,6 +226,10 @@ type MultiContentRecordOperationParams = MultiRecordOperationParams & { documents: Documents; }; +export type MultiAddRecordsOperationParams = + | MultiEmbeddingRecordOperationParams + | MultiContentRecordOperationParams; + type MultiEmbeddingRecordOperationParamsWithOptionalIDs = MultiRecordOperationParamsWithIDsOptional & { embeddings: Embeddings; @@ -232,18 +240,10 @@ type MultiContentRecordOperationParamsWithOptionalIDs = documents: Documents; }; -export type SingleAddRecordOperationParamsWithOptionalIDs = - | SingleEmbeddingRecordOperationParamsWithOptionalIDs - | SingleContentRecordOperationParamsWithOptionalIDs; - export type MultiAddRecordsOperationParamsWithOptionalIDs = | MultiEmbeddingRecordOperationParamsWithOptionalIDs | MultiContentRecordOperationParamsWithOptionalIDs; -export type MultiAddRecordsOperationParams = - | MultiEmbeddingRecordOperationParams - | MultiContentRecordOperationParams; - export type AddRecordsParams = | SingleAddRecordOperationParamsWithOptionalIDs | MultiAddRecordsOperationParamsWithOptionalIDs;