import type { AxiosInstance as OriginalAxiosInstance, AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse } from 'axios'; import { OpPatch } from 'json-patch'; import { ServerConfig, CreateServerConfigProps, UpdateServerConfigProps, FacetSearchConfig, CreateFacetSearchConfigProps, UpdateFacetSearchConfigProps, CreateServerProps, UpdateServerProps, Server, AdvancedSearchConfig, CreateAdvancedSearchConfigProps, UpdateAdvancedSearchConfigProps, BoostRule, CreateBoostRuleProps, UpdateBoostRuleProps, IndexConfig, CreateIndexConfigProps, UpdateIndexConfigProps, IndexedProperty, CreateIndexedPropertyProps, UpdateIndexedPropertyProps, Index, CreateIndexProps, UpdateIndexProps, PromotedItem, CreatePromotedItemProps, UpdatePromotedItemProps, SortField, CreateSortFieldProps, UpdateSortFieldProps, StopWord, UpdateStopWordProps, CreateStopWordProps, Synonym, CreateSynonymProps, UpdateSynonymProps, ValueRange, CreateValueRangeProps, UpdateValueRangeProps, ValueRangeSet, CreateValueRangeSetProps, UpdateValueRangeSetProps, SearchConfig, CreateSearchConfigProps, UpdateSearchConfigProps, Sort, CreateSortProps, UpdateSortProps } from './adapters/endpoints/types'; export declare type KeyValueMap = Record; export interface APIError { status?: number; statusText?: string; requestId?: string; message: string; details: Record; request?: Record; } export declare type QueryParams = { query: T; }; export declare type Meta = { pageSize: number; totalElements: number; totalPages: number; currentPage: number; }; export declare type EntryProps = { data: T; } & (List extends true ? { page: Meta; } : {}); export interface PaginationQueryOptions { currentPage?: number; pageSize?: number; sort?: string; } export declare type PaginationQueryParams = { query?: PaginationQueryOptions; }; export declare type MRReturn = 'return' extends keyof MRActions[ET][Action] ? Promise : never; export declare type MakeRequest = MRInternal; export interface Adapter { makeRequest: MakeRequestWithUserAgent; } export declare type MakeRequestWithUserAgent = MRInternal; export interface MakeRequestPayload { } export interface MakeRequestOptions { entityType: keyof MRActions; action: string; params?: Record; payload?: Record | OpPatch[] | MakeRequestPayload; headers?: AxiosRequestHeaders; userAgent: string; } export declare type MROpts = { entityType: ET; action: Action; } & (UA extends true ? { userAgent: string; } : {}) & ('params' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]["params"] ? { params?: MRActions[ET][Action]["params"]; } : { params?: MRActions[ET][Action]["params"]; } : {}) & ('payload' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]["payload"] ? { payload?: MRActions[ET][Action]["payload"]; } : { payload?: MRActions[ET][Action]["payload"]; } : {}) & ('headers' extends keyof MRActions[ET][Action] ? undefined extends MRActions[ET][Action]["headers"] ? { headers?: MRActions[ET][Action]["headers"]; } : { headers?: MRActions[ET][Action]["headers"]; } : {}); export declare type AxiosInstance = OriginalAxiosInstance & { httpClientParams: CreateHttpClientParams; cloneWithNewParams: (params: Partial) => AxiosInstance; defaults: DefaultOptions; }; declare type DefaultOptions = AxiosRequestConfig & { logHandler: (level: string, data?: Error | string) => void; responseLogger?: (response: AxiosResponse | Error) => unknown; requestLogger?: (request: AxiosRequestConfig | Error) => unknown; retryOnError?: boolean; }; export declare type CreateHttpClientParams = { /** Access Token or an async function that returns Access Token */ accessToken: string | (() => Promise); /** * Requests will be made over http instead of the default https * @default false */ insecure?: boolean; /** * API host */ host?: string; httpAgent?: AxiosRequestConfig['httpAgent']; httpsAgent?: AxiosRequestConfig['httpsAgent']; adapter?: AxiosRequestConfig['adapter']; proxy?: AxiosRequestConfig['proxy']; requestLogger?: DefaultOptions['requestLogger']; responseLogger?: DefaultOptions['responseLogger']; onBeforeRequest?: (value: AxiosRequestConfig) => AxiosRequestConfig | Promise; onError?: (error: any) => any; logHandler?: DefaultOptions['logHandler']; headers?: AxiosRequestHeaders; defaultHostname?: string; /** * If we should retry on errors and 429 rate limit exceptions * @default true */ retryOnError?: boolean; /** * Optional number of retries before failure * @default 5 */ retryLimit?: number; /** * Optional number of milliseconds before the request times out. * @default 30000 */ timeout?: number; basePath?: string; baseURL?: string; /** * Optional maximum content length in bytes * @default 1073741824 i.e 1GB */ maxContentLength?: number; /** * Optional maximum body length in bytes * @default 1073741824 i.e 1GB */ maxBodyLength?: number; /** * Optional maximum number of requests per second (rate-limit) * @desc should represent the max of your current plan's rate limit * @default 0 = no throttling * @param 1-30 (fixed number of limit), 'auto' (calculated limit based on current tier), '0%' - '100%' (calculated % limit based on tier) */ throttle?: 'auto' | string | number; /** * Optional how often the current request has been retried * @default 0 */ attempt?: number; }; export declare type RestAdapterParams = CreateHttpClientParams & { /** * Access Token */ accessToken: CreateHttpClientParams['accessToken']; /** * API host * @default api.digicommercegroup.com */ host?: string; /** * direct file upload host * @default upload.digicommercegroup.com */ hostUpload?: string; }; export declare type ClientAPI = { raw: { get(url: string, config?: AxiosRequestConfig): Promise; post(url: string, payload?: any, config?: AxiosRequestConfig): Promise; patch(url: string, payload?: any, config?: AxiosRequestConfig): Promise; put(url: string, payload?: any, config?: AxiosRequestConfig): Promise; delete(url: string, config?: AxiosRequestConfig): Promise; http(url: string, config?: AxiosRequestConfig): Promise; }; serverConfig: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateServerConfigProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateServerConfigProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; facetSearchConfig: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateFacetSearchConfigProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateFacetSearchConfigProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; server: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateServerProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateServerProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; advancedSearchConfig: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateAdvancedSearchConfigProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateAdvancedSearchConfigProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; boostRule: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateBoostRuleProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateBoostRuleProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; indexConfig: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateIndexConfigProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateIndexConfigProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; indexedProperty: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateIndexedPropertyProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateIndexedPropertyProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; index: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateIndexProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateIndexProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; promotedItem: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreatePromotedItemProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdatePromotedItemProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; sortField: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateSortFieldProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateSortFieldProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; stopWord: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateStopWordProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateStopWordProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; synonym: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateSynonymProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateSynonymProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; valueRange: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateValueRangeProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateValueRangeProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; valueRangeSet: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateValueRangeSetProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateValueRangeSetProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; searchConfig: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateSearchConfigProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateSearchConfigProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; sort: { get(params: { id: string | number; }): Promise | null>; create(rawData: CreateSortProps): Promise | null>; update(params: { id: string | number; }, rawData: UpdateSortProps): Promise | null>; del(params: { id: string | number; }): Promise<{}>; getMany(params: QueryParams): Promise>; }; search: { index(): Promise | null>; }; }; declare type MRInternal = { (opts: MROpts<'Http', 'get', UA>): MRReturn<'Http', 'get'>; (opts: MROpts<'Http', 'patch', UA>): MRReturn<'Http', 'patch'>; (opts: MROpts<'Http', 'post', UA>): MRReturn<'Http', 'post'>; (opts: MROpts<'Http', 'put', UA>): MRReturn<'Http', 'put'>; (opts: MROpts<'Http', 'delete', UA>): MRReturn<'Http', 'delete'>; (opts: MROpts<'Http', 'request', UA>): MRReturn<'Http', 'request'>; (opts: MROpts<'ServerConfig', 'get', UA>): MRReturn<'ServerConfig', 'get'>; (opts: MROpts<'ServerConfig', 'getMany', UA>): MRReturn<'ServerConfig', 'getMany'>; (opts: MROpts<'ServerConfig', 'create', UA>): MRReturn<'ServerConfig', 'create'>; (opts: MROpts<'ServerConfig', 'update', UA>): MRReturn<'ServerConfig', 'update'>; (opts: MROpts<'ServerConfig', 'del', UA>): MRReturn<'ServerConfig', 'del'>; (opts: MROpts<'FacetSearchConfig', 'get', UA>): MRReturn<'FacetSearchConfig', 'get'>; (opts: MROpts<'FacetSearchConfig', 'getMany', UA>): MRReturn<'FacetSearchConfig', 'getMany'>; (opts: MROpts<'FacetSearchConfig', 'create', UA>): MRReturn<'FacetSearchConfig', 'create'>; (opts: MROpts<'FacetSearchConfig', 'update', UA>): MRReturn<'FacetSearchConfig', 'update'>; (opts: MROpts<'FacetSearchConfig', 'del', UA>): MRReturn<'FacetSearchConfig', 'del'>; (opts: MROpts<'Server', 'get', UA>): MRReturn<'Server', 'get'>; (opts: MROpts<'Server', 'getMany', UA>): MRReturn<'Server', 'getMany'>; (opts: MROpts<'Server', 'create', UA>): MRReturn<'Server', 'create'>; (opts: MROpts<'Server', 'update', UA>): MRReturn<'Server', 'update'>; (opts: MROpts<'Server', 'del', UA>): MRReturn<'Server', 'del'>; (opts: MROpts<'AdvancedSearchConfig', 'get', UA>): MRReturn<'AdvancedSearchConfig', 'get'>; (opts: MROpts<'AdvancedSearchConfig', 'getMany', UA>): MRReturn<'AdvancedSearchConfig', 'getMany'>; (opts: MROpts<'AdvancedSearchConfig', 'create', UA>): MRReturn<'AdvancedSearchConfig', 'create'>; (opts: MROpts<'AdvancedSearchConfig', 'update', UA>): MRReturn<'AdvancedSearchConfig', 'update'>; (opts: MROpts<'AdvancedSearchConfig', 'del', UA>): MRReturn<'AdvancedSearchConfig', 'del'>; (opts: MROpts<'BoostRule', 'get', UA>): MRReturn<'BoostRule', 'get'>; (opts: MROpts<'BoostRule', 'getMany', UA>): MRReturn<'BoostRule', 'getMany'>; (opts: MROpts<'BoostRule', 'create', UA>): MRReturn<'BoostRule', 'create'>; (opts: MROpts<'BoostRule', 'update', UA>): MRReturn<'BoostRule', 'update'>; (opts: MROpts<'BoostRule', 'del', UA>): MRReturn<'BoostRule', 'del'>; (opts: MROpts<'IndexConfig', 'get', UA>): MRReturn<'IndexConfig', 'get'>; (opts: MROpts<'IndexConfig', 'getMany', UA>): MRReturn<'IndexConfig', 'getMany'>; (opts: MROpts<'IndexConfig', 'create', UA>): MRReturn<'IndexConfig', 'create'>; (opts: MROpts<'IndexConfig', 'update', UA>): MRReturn<'IndexConfig', 'update'>; (opts: MROpts<'IndexConfig', 'del', UA>): MRReturn<'IndexConfig', 'del'>; (opts: MROpts<'IndexedProperty', 'get', UA>): MRReturn<'IndexedProperty', 'get'>; (opts: MROpts<'IndexedProperty', 'getMany', UA>): MRReturn<'IndexedProperty', 'getMany'>; (opts: MROpts<'IndexedProperty', 'create', UA>): MRReturn<'IndexedProperty', 'create'>; (opts: MROpts<'IndexedProperty', 'update', UA>): MRReturn<'IndexedProperty', 'update'>; (opts: MROpts<'IndexedProperty', 'del', UA>): MRReturn<'IndexedProperty', 'del'>; (opts: MROpts<'Index', 'get', UA>): MRReturn<'Index', 'get'>; (opts: MROpts<'Index', 'getMany', UA>): MRReturn<'Index', 'getMany'>; (opts: MROpts<'Index', 'create', UA>): MRReturn<'Index', 'create'>; (opts: MROpts<'Index', 'update', UA>): MRReturn<'Index', 'update'>; (opts: MROpts<'Index', 'del', UA>): MRReturn<'Index', 'del'>; (opts: MROpts<'PromotedItem', 'get', UA>): MRReturn<'PromotedItem', 'get'>; (opts: MROpts<'PromotedItem', 'getMany', UA>): MRReturn<'PromotedItem', 'getMany'>; (opts: MROpts<'PromotedItem', 'create', UA>): MRReturn<'PromotedItem', 'create'>; (opts: MROpts<'PromotedItem', 'update', UA>): MRReturn<'PromotedItem', 'update'>; (opts: MROpts<'PromotedItem', 'del', UA>): MRReturn<'PromotedItem', 'del'>; (opts: MROpts<'SortField', 'get', UA>): MRReturn<'SortField', 'get'>; (opts: MROpts<'SortField', 'getMany', UA>): MRReturn<'SortField', 'getMany'>; (opts: MROpts<'SortField', 'create', UA>): MRReturn<'SortField', 'create'>; (opts: MROpts<'SortField', 'update', UA>): MRReturn<'SortField', 'update'>; (opts: MROpts<'SortField', 'del', UA>): MRReturn<'SortField', 'del'>; (opts: MROpts<'StopWord', 'get', UA>): MRReturn<'StopWord', 'get'>; (opts: MROpts<'StopWord', 'getMany', UA>): MRReturn<'StopWord', 'getMany'>; (opts: MROpts<'StopWord', 'create', UA>): MRReturn<'StopWord', 'create'>; (opts: MROpts<'StopWord', 'update', UA>): MRReturn<'StopWord', 'update'>; (opts: MROpts<'StopWord', 'del', UA>): MRReturn<'StopWord', 'del'>; (opts: MROpts<'Synonym', 'get', UA>): MRReturn<'Synonym', 'get'>; (opts: MROpts<'Synonym', 'getMany', UA>): MRReturn<'Synonym', 'getMany'>; (opts: MROpts<'Synonym', 'create', UA>): MRReturn<'Synonym', 'create'>; (opts: MROpts<'Synonym', 'update', UA>): MRReturn<'Synonym', 'update'>; (opts: MROpts<'Synonym', 'del', UA>): MRReturn<'Synonym', 'del'>; (opts: MROpts<'ValueRange', 'get', UA>): MRReturn<'ValueRange', 'get'>; (opts: MROpts<'ValueRange', 'getMany', UA>): MRReturn<'ValueRange', 'getMany'>; (opts: MROpts<'ValueRange', 'create', UA>): MRReturn<'ValueRange', 'create'>; (opts: MROpts<'ValueRange', 'update', UA>): MRReturn<'ValueRange', 'update'>; (opts: MROpts<'ValueRange', 'del', UA>): MRReturn<'ValueRange', 'del'>; (opts: MROpts<'ValueRangeSet', 'get', UA>): MRReturn<'ValueRangeSet', 'get'>; (opts: MROpts<'ValueRangeSet', 'getMany', UA>): MRReturn<'ValueRangeSet', 'getMany'>; (opts: MROpts<'ValueRangeSet', 'create', UA>): MRReturn<'ValueRangeSet', 'create'>; (opts: MROpts<'ValueRangeSet', 'update', UA>): MRReturn<'ValueRangeSet', 'update'>; (opts: MROpts<'ValueRangeSet', 'del', UA>): MRReturn<'ValueRangeSet', 'del'>; (opts: MROpts<'SearchConfig', 'get', UA>): MRReturn<'SearchConfig', 'get'>; (opts: MROpts<'SearchConfig', 'getMany', UA>): MRReturn<'SearchConfig', 'getMany'>; (opts: MROpts<'SearchConfig', 'create', UA>): MRReturn<'SearchConfig', 'create'>; (opts: MROpts<'SearchConfig', 'update', UA>): MRReturn<'SearchConfig', 'update'>; (opts: MROpts<'SearchConfig', 'del', UA>): MRReturn<'SearchConfig', 'del'>; (opts: MROpts<'Sort', 'get', UA>): MRReturn<'Sort', 'get'>; (opts: MROpts<'Sort', 'getMany', UA>): MRReturn<'Sort', 'getMany'>; (opts: MROpts<'Sort', 'create', UA>): MRReturn<'Sort', 'create'>; (opts: MROpts<'Sort', 'update', UA>): MRReturn<'Sort', 'update'>; (opts: MROpts<'Sort', 'del', UA>): MRReturn<'Sort', 'del'>; (opts: MROpts<'Search', 'index', UA>): MRReturn<'Search', 'index'>; }; export declare type MRActions = { Http: { get: { params: { url: string; config?: AxiosRequestConfig; }; return: any; }; patch: { params: { url: string; config?: AxiosRequestConfig; }; payload: any; return: any; }; post: { params: { url: string; config?: AxiosRequestConfig; }; payload: any; return: any; }; put: { params: { url: string; config?: AxiosRequestConfig; }; payload: any; return: any; }; delete: { params: { url: string; config?: AxiosRequestConfig; }; return: any; }; request: { params: { url: string; config?: AxiosRequestConfig; }; return: any; }; }; ServerConfig: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateServerConfigProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateServerConfigProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; FacetSearchConfig: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateFacetSearchConfigProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateFacetSearchConfigProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; Server: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateServerProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateServerProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; AdvancedSearchConfig: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateAdvancedSearchConfigProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateAdvancedSearchConfigProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; BoostRule: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateBoostRuleProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateBoostRuleProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; IndexConfig: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateIndexConfigProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateIndexConfigProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; IndexedProperty: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateIndexedPropertyProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateIndexedPropertyProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; Index: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateIndexProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateIndexProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; PromotedItem: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreatePromotedItemProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdatePromotedItemProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; SortField: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateSortFieldProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateSortFieldProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; StopWord: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateStopWordProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateStopWordProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; Synonym: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateSynonymProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateSynonymProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; ValueRange: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateValueRangeProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateValueRangeProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; ValueRangeSet: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateValueRangeSetProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateValueRangeSetProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; SearchConfig: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateSearchConfigProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateSearchConfigProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; Sort: { get: { params: { id: string | number; }; return: EntryProps | null; }; create: { payload: CreateSortProps; return: EntryProps | null; }; update: { params: { id: string | number; }; payload: UpdateSortProps; return: EntryProps | null; }; del: { params: { id: string | number; }; return: {}; }; getMany: { params: QueryParams; return: EntryProps; }; }; Search: { index: { return: EntryProps<{}> | null; }; }; }; export {};