@seekora-ai/admin-api 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -3494,6 +3494,120 @@ export class CustomStopwordsApi extends BaseAPI {
3494
3494
  return CustomStopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsCustomWordlistsPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
3495
3495
  }
3496
3496
  }
3497
+ /**
3498
+ * DocumentsApi - axios parameter creator
3499
+ * @export
3500
+ */
3501
+ export const DocumentsApiAxiosParamCreator = function (configuration) {
3502
+ return {
3503
+ /**
3504
+ * Uploads a document to the specified store
3505
+ * @summary Upload a document
3506
+ * @param {string} xStoreID X-Store ID
3507
+ * @param {File} file Document file
3508
+ * @param {*} [options] Override http request option.
3509
+ * @throws {RequiredError}
3510
+ */
3511
+ adminStoresXStoreIDUploadPost: (xStoreID_1, file_1, ...args_1) => __awaiter(this, [xStoreID_1, file_1, ...args_1], void 0, function* (xStoreID, file, options = {}) {
3512
+ // verify required parameter 'xStoreID' is not null or undefined
3513
+ assertParamExists('adminStoresXStoreIDUploadPost', 'xStoreID', xStoreID);
3514
+ // verify required parameter 'file' is not null or undefined
3515
+ assertParamExists('adminStoresXStoreIDUploadPost', 'file', file);
3516
+ const localVarPath = `/admin/Stores/{xStoreID}/upload`
3517
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
3518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3520
+ let baseOptions;
3521
+ if (configuration) {
3522
+ baseOptions = configuration.baseOptions;
3523
+ }
3524
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3525
+ const localVarHeaderParameter = {};
3526
+ const localVarQueryParameter = {};
3527
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
3528
+ // authentication BearerAuth required
3529
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3530
+ if (file !== undefined) {
3531
+ localVarFormParams.append('file', file);
3532
+ }
3533
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
3534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3536
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3537
+ localVarRequestOptions.data = localVarFormParams;
3538
+ return {
3539
+ url: toPathString(localVarUrlObj),
3540
+ options: localVarRequestOptions,
3541
+ };
3542
+ }),
3543
+ };
3544
+ };
3545
+ /**
3546
+ * DocumentsApi - functional programming interface
3547
+ * @export
3548
+ */
3549
+ export const DocumentsApiFp = function (configuration) {
3550
+ const localVarAxiosParamCreator = DocumentsApiAxiosParamCreator(configuration);
3551
+ return {
3552
+ /**
3553
+ * Uploads a document to the specified store
3554
+ * @summary Upload a document
3555
+ * @param {string} xStoreID X-Store ID
3556
+ * @param {File} file Document file
3557
+ * @param {*} [options] Override http request option.
3558
+ * @throws {RequiredError}
3559
+ */
3560
+ adminStoresXStoreIDUploadPost(xStoreID, file, options) {
3561
+ return __awaiter(this, void 0, void 0, function* () {
3562
+ var _a, _b, _c;
3563
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDUploadPost(xStoreID, file, options);
3564
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3565
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentsApi.adminStoresXStoreIDUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3567
+ });
3568
+ },
3569
+ };
3570
+ };
3571
+ /**
3572
+ * DocumentsApi - factory interface
3573
+ * @export
3574
+ */
3575
+ export const DocumentsApiFactory = function (configuration, basePath, axios) {
3576
+ const localVarFp = DocumentsApiFp(configuration);
3577
+ return {
3578
+ /**
3579
+ * Uploads a document to the specified store
3580
+ * @summary Upload a document
3581
+ * @param {string} xStoreID X-Store ID
3582
+ * @param {File} file Document file
3583
+ * @param {*} [options] Override http request option.
3584
+ * @throws {RequiredError}
3585
+ */
3586
+ adminStoresXStoreIDUploadPost(xStoreID, file, options) {
3587
+ return localVarFp.adminStoresXStoreIDUploadPost(xStoreID, file, options).then((request) => request(axios, basePath));
3588
+ },
3589
+ };
3590
+ };
3591
+ /**
3592
+ * DocumentsApi - object-oriented interface
3593
+ * @export
3594
+ * @class DocumentsApi
3595
+ * @extends {BaseAPI}
3596
+ */
3597
+ export class DocumentsApi extends BaseAPI {
3598
+ /**
3599
+ * Uploads a document to the specified store
3600
+ * @summary Upload a document
3601
+ * @param {string} xStoreID X-Store ID
3602
+ * @param {File} file Document file
3603
+ * @param {*} [options] Override http request option.
3604
+ * @throws {RequiredError}
3605
+ * @memberof DocumentsApi
3606
+ */
3607
+ adminStoresXStoreIDUploadPost(xStoreID, file, options) {
3608
+ return DocumentsApiFp(this.configuration).adminStoresXStoreIDUploadPost(xStoreID, file, options).then((request) => request(this.axios, this.basePath));
3609
+ }
3610
+ }
3497
3611
  /**
3498
3612
  * LimitsApi - axios parameter creator
3499
3613
  * @export
@@ -11785,6 +11899,528 @@ export class StopwordsApi extends BaseAPI {
11785
11899
  return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID, wordListID, body, options).then((request) => request(this.axios, this.basePath));
11786
11900
  }
11787
11901
  }
11902
+ /**
11903
+ * StoreDocumentsApi - axios parameter creator
11904
+ * @export
11905
+ */
11906
+ export const StoreDocumentsApiAxiosParamCreator = function (configuration) {
11907
+ return {
11908
+ /**
11909
+ * Performs bulk insert, update, upsert, or delete operations on documents. Each document can specify its own action. If same hash is generated for multiple documents, they will be treated as the same document.
11910
+ * @summary Bulk document operations
11911
+ * @param {string} xStoreID X-Store ID
11912
+ * @param {DataTypesBulkDocumentRequest} body Bulk operation data
11913
+ * @param {*} [options] Override http request option.
11914
+ * @throws {RequiredError}
11915
+ */
11916
+ adminStoresXStoreIDDocumentsBulkPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
11917
+ // verify required parameter 'xStoreID' is not null or undefined
11918
+ assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'xStoreID', xStoreID);
11919
+ // verify required parameter 'body' is not null or undefined
11920
+ assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'body', body);
11921
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/bulk`
11922
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
11923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11924
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11925
+ let baseOptions;
11926
+ if (configuration) {
11927
+ baseOptions = configuration.baseOptions;
11928
+ }
11929
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11930
+ const localVarHeaderParameter = {};
11931
+ const localVarQueryParameter = {};
11932
+ // authentication BearerAuth required
11933
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11934
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11935
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11936
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11937
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11938
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
11939
+ return {
11940
+ url: toPathString(localVarUrlObj),
11941
+ options: localVarRequestOptions,
11942
+ };
11943
+ }),
11944
+ /**
11945
+ * Deletes a document by ID from a store
11946
+ * @summary Delete document
11947
+ * @param {string} xStoreID X-Store ID
11948
+ * @param {string} documentID Document ID
11949
+ * @param {*} [options] Override http request option.
11950
+ * @throws {RequiredError}
11951
+ */
11952
+ adminStoresXStoreIDDocumentsDocumentIDDelete: (xStoreID_1, documentID_1, ...args_1) => __awaiter(this, [xStoreID_1, documentID_1, ...args_1], void 0, function* (xStoreID, documentID, options = {}) {
11953
+ // verify required parameter 'xStoreID' is not null or undefined
11954
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'xStoreID', xStoreID);
11955
+ // verify required parameter 'documentID' is not null or undefined
11956
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'documentID', documentID);
11957
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
11958
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
11959
+ .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
11960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11961
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11962
+ let baseOptions;
11963
+ if (configuration) {
11964
+ baseOptions = configuration.baseOptions;
11965
+ }
11966
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
11967
+ const localVarHeaderParameter = {};
11968
+ const localVarQueryParameter = {};
11969
+ // authentication BearerAuth required
11970
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11973
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11974
+ return {
11975
+ url: toPathString(localVarUrlObj),
11976
+ options: localVarRequestOptions,
11977
+ };
11978
+ }),
11979
+ /**
11980
+ * Retrieves a single document by ID from a store
11981
+ * @summary Get single document
11982
+ * @param {string} xStoreID X-Store ID
11983
+ * @param {string} documentID Document ID
11984
+ * @param {*} [options] Override http request option.
11985
+ * @throws {RequiredError}
11986
+ */
11987
+ adminStoresXStoreIDDocumentsDocumentIDGet: (xStoreID_1, documentID_1, ...args_1) => __awaiter(this, [xStoreID_1, documentID_1, ...args_1], void 0, function* (xStoreID, documentID, options = {}) {
11988
+ // verify required parameter 'xStoreID' is not null or undefined
11989
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'xStoreID', xStoreID);
11990
+ // verify required parameter 'documentID' is not null or undefined
11991
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'documentID', documentID);
11992
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
11993
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
11994
+ .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
11995
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11996
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11997
+ let baseOptions;
11998
+ if (configuration) {
11999
+ baseOptions = configuration.baseOptions;
12000
+ }
12001
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12002
+ const localVarHeaderParameter = {};
12003
+ const localVarQueryParameter = {};
12004
+ // authentication BearerAuth required
12005
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
12006
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12008
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12009
+ return {
12010
+ url: toPathString(localVarUrlObj),
12011
+ options: localVarRequestOptions,
12012
+ };
12013
+ }),
12014
+ /**
12015
+ * Updates an existing document by ID. The document ID will not change even if document properties change.
12016
+ * @summary Update document
12017
+ * @param {string} xStoreID X-Store ID
12018
+ * @param {string} documentID Document ID
12019
+ * @param {object} body Document data
12020
+ * @param {*} [options] Override http request option.
12021
+ * @throws {RequiredError}
12022
+ */
12023
+ adminStoresXStoreIDDocumentsDocumentIDPut: (xStoreID_1, documentID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, documentID_1, body_1, ...args_1], void 0, function* (xStoreID, documentID, body, options = {}) {
12024
+ // verify required parameter 'xStoreID' is not null or undefined
12025
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDPut', 'xStoreID', xStoreID);
12026
+ // verify required parameter 'documentID' is not null or undefined
12027
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDPut', 'documentID', documentID);
12028
+ // verify required parameter 'body' is not null or undefined
12029
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDPut', 'body', body);
12030
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
12031
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
12032
+ .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
12033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12035
+ let baseOptions;
12036
+ if (configuration) {
12037
+ baseOptions = configuration.baseOptions;
12038
+ }
12039
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12040
+ const localVarHeaderParameter = {};
12041
+ const localVarQueryParameter = {};
12042
+ // authentication BearerAuth required
12043
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
12044
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12045
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12046
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12047
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12048
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
12049
+ return {
12050
+ url: toPathString(localVarUrlObj),
12051
+ options: localVarRequestOptions,
12052
+ };
12053
+ }),
12054
+ /**
12055
+ * Retrieves documents from a store with pagination and optional filtering
12056
+ * @summary Get documents from store
12057
+ * @param {string} xStoreID X-Store ID
12058
+ * @param {number} [page] Page number (default: 1)
12059
+ * @param {number} [limit] Results per page (default: 20, max: 100)
12060
+ * @param {string} [search] Search query
12061
+ * @param {string} [filter] JSON filter object
12062
+ * @param {string} [sort] Sort field and direction (e.g., \'created_at:desc\')
12063
+ * @param {*} [options] Override http request option.
12064
+ * @throws {RequiredError}
12065
+ */
12066
+ adminStoresXStoreIDDocumentsGet: (xStoreID_1, page_1, limit_1, search_1, filter_1, sort_1, ...args_1) => __awaiter(this, [xStoreID_1, page_1, limit_1, search_1, filter_1, sort_1, ...args_1], void 0, function* (xStoreID, page, limit, search, filter, sort, options = {}) {
12067
+ // verify required parameter 'xStoreID' is not null or undefined
12068
+ assertParamExists('adminStoresXStoreIDDocumentsGet', 'xStoreID', xStoreID);
12069
+ const localVarPath = `/admin/Stores/{xStoreID}/documents`
12070
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
12071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12073
+ let baseOptions;
12074
+ if (configuration) {
12075
+ baseOptions = configuration.baseOptions;
12076
+ }
12077
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12078
+ const localVarHeaderParameter = {};
12079
+ const localVarQueryParameter = {};
12080
+ // authentication BearerAuth required
12081
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
12082
+ if (page !== undefined) {
12083
+ localVarQueryParameter['page'] = page;
12084
+ }
12085
+ if (limit !== undefined) {
12086
+ localVarQueryParameter['limit'] = limit;
12087
+ }
12088
+ if (search !== undefined) {
12089
+ localVarQueryParameter['search'] = search;
12090
+ }
12091
+ if (filter !== undefined) {
12092
+ localVarQueryParameter['filter'] = filter;
12093
+ }
12094
+ if (sort !== undefined) {
12095
+ localVarQueryParameter['sort'] = sort;
12096
+ }
12097
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12099
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12100
+ return {
12101
+ url: toPathString(localVarUrlObj),
12102
+ options: localVarRequestOptions,
12103
+ };
12104
+ }),
12105
+ /**
12106
+ * Inserts a new document into a store. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
12107
+ * @summary Insert document
12108
+ * @param {string} xStoreID X-Store ID
12109
+ * @param {object} body Document data
12110
+ * @param {*} [options] Override http request option.
12111
+ * @throws {RequiredError}
12112
+ */
12113
+ adminStoresXStoreIDDocumentsPost: (xStoreID_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, body_1, ...args_1], void 0, function* (xStoreID, body, options = {}) {
12114
+ // verify required parameter 'xStoreID' is not null or undefined
12115
+ assertParamExists('adminStoresXStoreIDDocumentsPost', 'xStoreID', xStoreID);
12116
+ // verify required parameter 'body' is not null or undefined
12117
+ assertParamExists('adminStoresXStoreIDDocumentsPost', 'body', body);
12118
+ const localVarPath = `/admin/Stores/{xStoreID}/documents`
12119
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
12120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12122
+ let baseOptions;
12123
+ if (configuration) {
12124
+ baseOptions = configuration.baseOptions;
12125
+ }
12126
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12127
+ const localVarHeaderParameter = {};
12128
+ const localVarQueryParameter = {};
12129
+ // authentication BearerAuth required
12130
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
12131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12134
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12135
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
12136
+ return {
12137
+ url: toPathString(localVarUrlObj),
12138
+ options: localVarRequestOptions,
12139
+ };
12140
+ }),
12141
+ };
12142
+ };
12143
+ /**
12144
+ * StoreDocumentsApi - functional programming interface
12145
+ * @export
12146
+ */
12147
+ export const StoreDocumentsApiFp = function (configuration) {
12148
+ const localVarAxiosParamCreator = StoreDocumentsApiAxiosParamCreator(configuration);
12149
+ return {
12150
+ /**
12151
+ * Performs bulk insert, update, upsert, or delete operations on documents. Each document can specify its own action. If same hash is generated for multiple documents, they will be treated as the same document.
12152
+ * @summary Bulk document operations
12153
+ * @param {string} xStoreID X-Store ID
12154
+ * @param {DataTypesBulkDocumentRequest} body Bulk operation data
12155
+ * @param {*} [options] Override http request option.
12156
+ * @throws {RequiredError}
12157
+ */
12158
+ adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options) {
12159
+ return __awaiter(this, void 0, void 0, function* () {
12160
+ var _a, _b, _c;
12161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options);
12162
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12163
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsBulkPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12164
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12165
+ });
12166
+ },
12167
+ /**
12168
+ * Deletes a document by ID from a store
12169
+ * @summary Delete document
12170
+ * @param {string} xStoreID X-Store ID
12171
+ * @param {string} documentID Document ID
12172
+ * @param {*} [options] Override http request option.
12173
+ * @throws {RequiredError}
12174
+ */
12175
+ adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options) {
12176
+ return __awaiter(this, void 0, void 0, function* () {
12177
+ var _a, _b, _c;
12178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options);
12179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12180
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsDocumentIDDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12181
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12182
+ });
12183
+ },
12184
+ /**
12185
+ * Retrieves a single document by ID from a store
12186
+ * @summary Get single document
12187
+ * @param {string} xStoreID X-Store ID
12188
+ * @param {string} documentID Document ID
12189
+ * @param {*} [options] Override http request option.
12190
+ * @throws {RequiredError}
12191
+ */
12192
+ adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options) {
12193
+ return __awaiter(this, void 0, void 0, function* () {
12194
+ var _a, _b, _c;
12195
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options);
12196
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12197
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsDocumentIDGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12199
+ });
12200
+ },
12201
+ /**
12202
+ * Updates an existing document by ID. The document ID will not change even if document properties change.
12203
+ * @summary Update document
12204
+ * @param {string} xStoreID X-Store ID
12205
+ * @param {string} documentID Document ID
12206
+ * @param {object} body Document data
12207
+ * @param {*} [options] Override http request option.
12208
+ * @throws {RequiredError}
12209
+ */
12210
+ adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options) {
12211
+ return __awaiter(this, void 0, void 0, function* () {
12212
+ var _a, _b, _c;
12213
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options);
12214
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12215
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsDocumentIDPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12217
+ });
12218
+ },
12219
+ /**
12220
+ * Retrieves documents from a store with pagination and optional filtering
12221
+ * @summary Get documents from store
12222
+ * @param {string} xStoreID X-Store ID
12223
+ * @param {number} [page] Page number (default: 1)
12224
+ * @param {number} [limit] Results per page (default: 20, max: 100)
12225
+ * @param {string} [search] Search query
12226
+ * @param {string} [filter] JSON filter object
12227
+ * @param {string} [sort] Sort field and direction (e.g., \'created_at:desc\')
12228
+ * @param {*} [options] Override http request option.
12229
+ * @throws {RequiredError}
12230
+ */
12231
+ adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options) {
12232
+ return __awaiter(this, void 0, void 0, function* () {
12233
+ var _a, _b, _c;
12234
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options);
12235
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12236
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12238
+ });
12239
+ },
12240
+ /**
12241
+ * Inserts a new document into a store. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
12242
+ * @summary Insert document
12243
+ * @param {string} xStoreID X-Store ID
12244
+ * @param {object} body Document data
12245
+ * @param {*} [options] Override http request option.
12246
+ * @throws {RequiredError}
12247
+ */
12248
+ adminStoresXStoreIDDocumentsPost(xStoreID, body, options) {
12249
+ return __awaiter(this, void 0, void 0, function* () {
12250
+ var _a, _b, _c;
12251
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDDocumentsPost(xStoreID, body, options);
12252
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12253
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreDocumentsApi.adminStoresXStoreIDDocumentsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12255
+ });
12256
+ },
12257
+ };
12258
+ };
12259
+ /**
12260
+ * StoreDocumentsApi - factory interface
12261
+ * @export
12262
+ */
12263
+ export const StoreDocumentsApiFactory = function (configuration, basePath, axios) {
12264
+ const localVarFp = StoreDocumentsApiFp(configuration);
12265
+ return {
12266
+ /**
12267
+ * Performs bulk insert, update, upsert, or delete operations on documents. Each document can specify its own action. If same hash is generated for multiple documents, they will be treated as the same document.
12268
+ * @summary Bulk document operations
12269
+ * @param {string} xStoreID X-Store ID
12270
+ * @param {DataTypesBulkDocumentRequest} body Bulk operation data
12271
+ * @param {*} [options] Override http request option.
12272
+ * @throws {RequiredError}
12273
+ */
12274
+ adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options) {
12275
+ return localVarFp.adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options).then((request) => request(axios, basePath));
12276
+ },
12277
+ /**
12278
+ * Deletes a document by ID from a store
12279
+ * @summary Delete document
12280
+ * @param {string} xStoreID X-Store ID
12281
+ * @param {string} documentID Document ID
12282
+ * @param {*} [options] Override http request option.
12283
+ * @throws {RequiredError}
12284
+ */
12285
+ adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options) {
12286
+ return localVarFp.adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options).then((request) => request(axios, basePath));
12287
+ },
12288
+ /**
12289
+ * Retrieves a single document by ID from a store
12290
+ * @summary Get single document
12291
+ * @param {string} xStoreID X-Store ID
12292
+ * @param {string} documentID Document ID
12293
+ * @param {*} [options] Override http request option.
12294
+ * @throws {RequiredError}
12295
+ */
12296
+ adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options) {
12297
+ return localVarFp.adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options).then((request) => request(axios, basePath));
12298
+ },
12299
+ /**
12300
+ * Updates an existing document by ID. The document ID will not change even if document properties change.
12301
+ * @summary Update document
12302
+ * @param {string} xStoreID X-Store ID
12303
+ * @param {string} documentID Document ID
12304
+ * @param {object} body Document data
12305
+ * @param {*} [options] Override http request option.
12306
+ * @throws {RequiredError}
12307
+ */
12308
+ adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options) {
12309
+ return localVarFp.adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options).then((request) => request(axios, basePath));
12310
+ },
12311
+ /**
12312
+ * Retrieves documents from a store with pagination and optional filtering
12313
+ * @summary Get documents from store
12314
+ * @param {string} xStoreID X-Store ID
12315
+ * @param {number} [page] Page number (default: 1)
12316
+ * @param {number} [limit] Results per page (default: 20, max: 100)
12317
+ * @param {string} [search] Search query
12318
+ * @param {string} [filter] JSON filter object
12319
+ * @param {string} [sort] Sort field and direction (e.g., \'created_at:desc\')
12320
+ * @param {*} [options] Override http request option.
12321
+ * @throws {RequiredError}
12322
+ */
12323
+ adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options) {
12324
+ return localVarFp.adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options).then((request) => request(axios, basePath));
12325
+ },
12326
+ /**
12327
+ * Inserts a new document into a store. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
12328
+ * @summary Insert document
12329
+ * @param {string} xStoreID X-Store ID
12330
+ * @param {object} body Document data
12331
+ * @param {*} [options] Override http request option.
12332
+ * @throws {RequiredError}
12333
+ */
12334
+ adminStoresXStoreIDDocumentsPost(xStoreID, body, options) {
12335
+ return localVarFp.adminStoresXStoreIDDocumentsPost(xStoreID, body, options).then((request) => request(axios, basePath));
12336
+ },
12337
+ };
12338
+ };
12339
+ /**
12340
+ * StoreDocumentsApi - object-oriented interface
12341
+ * @export
12342
+ * @class StoreDocumentsApi
12343
+ * @extends {BaseAPI}
12344
+ */
12345
+ export class StoreDocumentsApi extends BaseAPI {
12346
+ /**
12347
+ * Performs bulk insert, update, upsert, or delete operations on documents. Each document can specify its own action. If same hash is generated for multiple documents, they will be treated as the same document.
12348
+ * @summary Bulk document operations
12349
+ * @param {string} xStoreID X-Store ID
12350
+ * @param {DataTypesBulkDocumentRequest} body Bulk operation data
12351
+ * @param {*} [options] Override http request option.
12352
+ * @throws {RequiredError}
12353
+ * @memberof StoreDocumentsApi
12354
+ */
12355
+ adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options) {
12356
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsBulkPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
12357
+ }
12358
+ /**
12359
+ * Deletes a document by ID from a store
12360
+ * @summary Delete document
12361
+ * @param {string} xStoreID X-Store ID
12362
+ * @param {string} documentID Document ID
12363
+ * @param {*} [options] Override http request option.
12364
+ * @throws {RequiredError}
12365
+ * @memberof StoreDocumentsApi
12366
+ */
12367
+ adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options) {
12368
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsDocumentIDDelete(xStoreID, documentID, options).then((request) => request(this.axios, this.basePath));
12369
+ }
12370
+ /**
12371
+ * Retrieves a single document by ID from a store
12372
+ * @summary Get single document
12373
+ * @param {string} xStoreID X-Store ID
12374
+ * @param {string} documentID Document ID
12375
+ * @param {*} [options] Override http request option.
12376
+ * @throws {RequiredError}
12377
+ * @memberof StoreDocumentsApi
12378
+ */
12379
+ adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options) {
12380
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsDocumentIDGet(xStoreID, documentID, options).then((request) => request(this.axios, this.basePath));
12381
+ }
12382
+ /**
12383
+ * Updates an existing document by ID. The document ID will not change even if document properties change.
12384
+ * @summary Update document
12385
+ * @param {string} xStoreID X-Store ID
12386
+ * @param {string} documentID Document ID
12387
+ * @param {object} body Document data
12388
+ * @param {*} [options] Override http request option.
12389
+ * @throws {RequiredError}
12390
+ * @memberof StoreDocumentsApi
12391
+ */
12392
+ adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options) {
12393
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsDocumentIDPut(xStoreID, documentID, body, options).then((request) => request(this.axios, this.basePath));
12394
+ }
12395
+ /**
12396
+ * Retrieves documents from a store with pagination and optional filtering
12397
+ * @summary Get documents from store
12398
+ * @param {string} xStoreID X-Store ID
12399
+ * @param {number} [page] Page number (default: 1)
12400
+ * @param {number} [limit] Results per page (default: 20, max: 100)
12401
+ * @param {string} [search] Search query
12402
+ * @param {string} [filter] JSON filter object
12403
+ * @param {string} [sort] Sort field and direction (e.g., \'created_at:desc\')
12404
+ * @param {*} [options] Override http request option.
12405
+ * @throws {RequiredError}
12406
+ * @memberof StoreDocumentsApi
12407
+ */
12408
+ adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options) {
12409
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsGet(xStoreID, page, limit, search, filter, sort, options).then((request) => request(this.axios, this.basePath));
12410
+ }
12411
+ /**
12412
+ * Inserts a new document into a store. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
12413
+ * @summary Insert document
12414
+ * @param {string} xStoreID X-Store ID
12415
+ * @param {object} body Document data
12416
+ * @param {*} [options] Override http request option.
12417
+ * @throws {RequiredError}
12418
+ * @memberof StoreDocumentsApi
12419
+ */
12420
+ adminStoresXStoreIDDocumentsPost(xStoreID, body, options) {
12421
+ return StoreDocumentsApiFp(this.configuration).adminStoresXStoreIDDocumentsPost(xStoreID, body, options).then((request) => request(this.axios, this.basePath));
12422
+ }
12423
+ }
11788
12424
  /**
11789
12425
  * StoresApi - axios parameter creator
11790
12426
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file