Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
spikechroma committed Sep 11, 2024
1 parent ba2cc3f commit 82c31b2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions clients/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -222,6 +226,10 @@ type MultiContentRecordOperationParams = MultiRecordOperationParams & {
documents: Documents;
};

export type MultiAddRecordsOperationParams =
| MultiEmbeddingRecordOperationParams
| MultiContentRecordOperationParams;

type MultiEmbeddingRecordOperationParamsWithOptionalIDs =
MultiRecordOperationParamsWithIDsOptional & {
embeddings: Embeddings;
Expand All @@ -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;
Expand Down

0 comments on commit 82c31b2

Please sign in to comment.