import type { CursorPaginatedCollectionProp, DeleteConceptSchemeParams, GetConceptSchemeParams, GetManyConceptSchemeParams, GetOrganizationParams, UpdateConceptSchemeParams } from '../../common-types'; import type { ConceptSchemeProps, CreateConceptSchemeProps } from '../../entities/concept-scheme'; import type { OpPatch } from 'json-patch'; import type { SetOptional } from 'type-fest'; export type ConceptSchemePlainClientAPI = { /** * Create Concept Scheme * @returns the created Concept Scheme * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/create-a-concept-scheme} * @example * ```javascript * const concept = await client.conceptScheme.create({ * organizationId: '', * }, conceptSchemeProps); * ``` */ create(params: SetOptional, payload: CreateConceptSchemeProps): Promise; /** * Update Concept Scheme * @returns the updated Concept Scheme * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/concept-scheme} * @example * ```javascript * const updatedConcept = await client.conceptScheme.update({ * organizationId: '', * }, conceptSchemePatch); * ``` */ update(params: SetOptional, payload: OpPatch[]): Promise; /** * Get Concept Scheme * @returns the Concept Scheme * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/concept-scheme} * @example * ```javascript * const concept = await client.conceptScheme.get({ * organizationId: '', * conceptSchemeId: '', * }); * ``` */ get(params: SetOptional): Promise; /** * Get many Concept Schemes * @returns list of many Concept Schemes * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/concept-scheme-collection} * @example * ```javascript * const concepts = await client.conceptScheme.getMany({ * organizationId: '', * }); * ``` */ getMany(params: SetOptional): Promise>; /** * Get number of total Concept Scheme * @returns number of total Concept Scheme * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/total-concept-schemes} * @example * ```javascript * const {total} = await client.conceptScheme.getTotal({ * organizationId: '', * }); * ``` */ getTotal(params: SetOptional): Promise<{ total: number; }>; /** * Delete Concept Scheme * @returns nothing * @throws if the request fails * @see {@link https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy/concept-scheme} * @example * ```javascript * await client.conceptScheme.update({ * organizationId: '', * conceptSchemeId: '', * }); * ``` */ delete(params: SetOptional): Promise; };