Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Typesense/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export interface CollectionDropFieldSchema {
export interface CollectionUpdateSchema
extends Partial<Omit<CollectionCreateSchema, "name" | "fields">> {
fields?: (CollectionFieldSchema | CollectionDropFieldSchema)[];
synonym_sets?: string[];
}

export interface CollectionDeleteOptions {
Expand Down
6 changes: 5 additions & 1 deletion src/Typesense/CurationSetItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import ApiCall from "./ApiCall";
import CurationSets from "./CurationSets";
import type { CurationObjectSchema } from "./CurationSets";

export type CurationItemUpsertSchema = Omit<CurationObjectSchema, "id">;

export interface CurationItemDeleteResponseSchema {
id: string;
}
Expand All @@ -17,7 +19,9 @@ export default class CurationSetItem {
return this.apiCall.get<CurationObjectSchema>(this.endpointPath());
}

async upsert(params: CurationObjectSchema): Promise<CurationObjectSchema> {
async upsert(
params: CurationItemUpsertSchema,
): Promise<CurationObjectSchema> {
return this.apiCall.put<CurationObjectSchema>(this.endpointPath(), params);
}

Expand Down