Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
spikechroma authored and atroyn committed Oct 2, 2024
1 parent a117bc7 commit a3dc87d
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 a3dc87d

Please sign in to comment.