@seekora-ai/admin-api 1.0.16 → 1.0.17

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/api.js CHANGED
@@ -8176,20 +8176,18 @@ const SearchApiAxiosParamCreator = function (configuration) {
8176
8176
  /**
8177
8177
  * Search documents with optional configuration override and autocomplete suggestions
8178
8178
  * @summary Admin Search API
8179
- * @param {string} xStoreID Store ID for the selected store
8180
- * @param {string} xStoreSecret Store Secret for the selected store
8179
+ * @param {number} storeid Store ID
8181
8180
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8182
8181
  * @param {*} [options] Override http request option.
8183
8182
  * @throws {RequiredError}
8184
8183
  */
8185
- adminV1SearchPost: (xStoreID_1, xStoreSecret_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreSecret_1, body_1, ...args_1], void 0, function* (xStoreID, xStoreSecret, body, options = {}) {
8186
- // verify required parameter 'xStoreID' is not null or undefined
8187
- (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreID', xStoreID);
8188
- // verify required parameter 'xStoreSecret' is not null or undefined
8189
- (0, common_1.assertParamExists)('adminV1SearchPost', 'xStoreSecret', xStoreSecret);
8184
+ adminV1SearchStoreidPost: (storeid_1, body_1, ...args_1) => __awaiter(this, [storeid_1, body_1, ...args_1], void 0, function* (storeid, body, options = {}) {
8185
+ // verify required parameter 'storeid' is not null or undefined
8186
+ (0, common_1.assertParamExists)('adminV1SearchStoreidPost', 'storeid', storeid);
8190
8187
  // verify required parameter 'body' is not null or undefined
8191
- (0, common_1.assertParamExists)('adminV1SearchPost', 'body', body);
8192
- const localVarPath = `/admin/v1/search`;
8188
+ (0, common_1.assertParamExists)('adminV1SearchStoreidPost', 'body', body);
8189
+ const localVarPath = `/admin/v1/search/{storeid}`
8190
+ .replace(`{${"storeid"}}`, encodeURIComponent(String(storeid)));
8193
8191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8194
8192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8195
8193
  let baseOptions;
@@ -8202,16 +8200,39 @@ const SearchApiAxiosParamCreator = function (configuration) {
8202
8200
  // authentication BearerAuth required
8203
8201
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8204
8202
  localVarHeaderParameter['Content-Type'] = 'application/json';
8205
- if (xStoreID != null) {
8206
- localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8203
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8205
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8206
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8207
+ return {
8208
+ url: (0, common_1.toPathString)(localVarUrlObj),
8209
+ options: localVarRequestOptions,
8210
+ };
8211
+ }),
8212
+ /**
8213
+ * Get metadata about all configurable fields for dynamic form generation
8214
+ * @summary Get Configuration Schema
8215
+ * @param {string} [indexname] Index name to get field options from
8216
+ * @param {*} [options] Override http request option.
8217
+ * @throws {RequiredError}
8218
+ */
8219
+ v1IndexConfigSchemaGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8220
+ const localVarPath = `/v1/index/config-schema`;
8221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8222
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8223
+ let baseOptions;
8224
+ if (configuration) {
8225
+ baseOptions = configuration.baseOptions;
8207
8226
  }
8208
- if (xStoreSecret != null) {
8209
- localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8228
+ const localVarHeaderParameter = {};
8229
+ const localVarQueryParameter = {};
8230
+ if (indexname !== undefined) {
8231
+ localVarQueryParameter['indexname'] = indexname;
8210
8232
  }
8211
8233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8212
8234
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8213
8235
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8214
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8215
8236
  return {
8216
8237
  url: (0, common_1.toPathString)(localVarUrlObj),
8217
8238
  options: localVarRequestOptions,
@@ -8318,20 +8339,49 @@ const SearchApiAxiosParamCreator = function (configuration) {
8318
8339
  options: localVarRequestOptions,
8319
8340
  };
8320
8341
  }),
8342
+ /**
8343
+ * Get default configuration values computed from the Typesense schema
8344
+ * @summary Get Schema-Based Defaults
8345
+ * @param {string} indexname Index Name
8346
+ * @param {*} [options] Override http request option.
8347
+ * @throws {RequiredError}
8348
+ */
8349
+ v1IndexIndexnameDefaultsGet: (indexname_1, ...args_1) => __awaiter(this, [indexname_1, ...args_1], void 0, function* (indexname, options = {}) {
8350
+ // verify required parameter 'indexname' is not null or undefined
8351
+ (0, common_1.assertParamExists)('v1IndexIndexnameDefaultsGet', 'indexname', indexname);
8352
+ const localVarPath = `/v1/index/{indexname}/defaults`
8353
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
8354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8355
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8356
+ let baseOptions;
8357
+ if (configuration) {
8358
+ baseOptions = configuration.baseOptions;
8359
+ }
8360
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8361
+ const localVarHeaderParameter = {};
8362
+ const localVarQueryParameter = {};
8363
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8365
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8366
+ return {
8367
+ url: (0, common_1.toPathString)(localVarUrlObj),
8368
+ options: localVarRequestOptions,
8369
+ };
8370
+ }),
8321
8371
  /**
8322
8372
  * Search documents using store credentials with optional autocomplete suggestions
8323
8373
  * @summary Public Search API
8324
- * @param {string} xStoreID Store ID
8325
- * @param {string} xStoreSecret Store Secret
8374
+ * @param {string} xStoreid Store ID
8375
+ * @param {string} xStoresecret Store Secret
8326
8376
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8327
8377
  * @param {*} [options] Override http request option.
8328
8378
  * @throws {RequiredError}
8329
8379
  */
8330
- v1SearchPost: (xStoreID_1, xStoreSecret_1, body_1, ...args_1) => __awaiter(this, [xStoreID_1, xStoreSecret_1, body_1, ...args_1], void 0, function* (xStoreID, xStoreSecret, body, options = {}) {
8331
- // verify required parameter 'xStoreID' is not null or undefined
8332
- (0, common_1.assertParamExists)('v1SearchPost', 'xStoreID', xStoreID);
8333
- // verify required parameter 'xStoreSecret' is not null or undefined
8334
- (0, common_1.assertParamExists)('v1SearchPost', 'xStoreSecret', xStoreSecret);
8380
+ v1SearchPost: (xStoreid_1, xStoresecret_1, body_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, body_1, ...args_1], void 0, function* (xStoreid, xStoresecret, body, options = {}) {
8381
+ // verify required parameter 'xStoreid' is not null or undefined
8382
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoreid', xStoreid);
8383
+ // verify required parameter 'xStoresecret' is not null or undefined
8384
+ (0, common_1.assertParamExists)('v1SearchPost', 'xStoresecret', xStoresecret);
8335
8385
  // verify required parameter 'body' is not null or undefined
8336
8386
  (0, common_1.assertParamExists)('v1SearchPost', 'body', body);
8337
8387
  const localVarPath = `/v1/search`;
@@ -8345,11 +8395,11 @@ const SearchApiAxiosParamCreator = function (configuration) {
8345
8395
  const localVarHeaderParameter = {};
8346
8396
  const localVarQueryParameter = {};
8347
8397
  localVarHeaderParameter['Content-Type'] = 'application/json';
8348
- if (xStoreID != null) {
8349
- localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
8398
+ if (xStoreid != null) {
8399
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
8350
8400
  }
8351
- if (xStoreSecret != null) {
8352
- localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
8401
+ if (xStoresecret != null) {
8402
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
8353
8403
  }
8354
8404
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8355
8405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8373,18 +8423,33 @@ const SearchApiFp = function (configuration) {
8373
8423
  /**
8374
8424
  * Search documents with optional configuration override and autocomplete suggestions
8375
8425
  * @summary Admin Search API
8376
- * @param {string} xStoreID Store ID for the selected store
8377
- * @param {string} xStoreSecret Store Secret for the selected store
8426
+ * @param {number} storeid Store ID
8378
8427
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8379
8428
  * @param {*} [options] Override http request option.
8380
8429
  * @throws {RequiredError}
8381
8430
  */
8382
- adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8431
+ adminV1SearchStoreidPost(storeid, body, options) {
8383
8432
  return __awaiter(this, void 0, void 0, function* () {
8384
8433
  var _a, _b, _c;
8385
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
8434
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1SearchStoreidPost(storeid, body, options);
8386
8435
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8387
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.adminV1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8436
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.adminV1SearchStoreidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8437
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8438
+ });
8439
+ },
8440
+ /**
8441
+ * Get metadata about all configurable fields for dynamic form generation
8442
+ * @summary Get Configuration Schema
8443
+ * @param {string} [indexname] Index name to get field options from
8444
+ * @param {*} [options] Override http request option.
8445
+ * @throws {RequiredError}
8446
+ */
8447
+ v1IndexConfigSchemaGet(indexname, options) {
8448
+ return __awaiter(this, void 0, void 0, function* () {
8449
+ var _a, _b, _c;
8450
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexConfigSchemaGet(indexname, options);
8451
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8452
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8388
8453
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8389
8454
  });
8390
8455
  },
@@ -8439,19 +8504,35 @@ const SearchApiFp = function (configuration) {
8439
8504
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8440
8505
  });
8441
8506
  },
8507
+ /**
8508
+ * Get default configuration values computed from the Typesense schema
8509
+ * @summary Get Schema-Based Defaults
8510
+ * @param {string} indexname Index Name
8511
+ * @param {*} [options] Override http request option.
8512
+ * @throws {RequiredError}
8513
+ */
8514
+ v1IndexIndexnameDefaultsGet(indexname, options) {
8515
+ return __awaiter(this, void 0, void 0, function* () {
8516
+ var _a, _b, _c;
8517
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1IndexIndexnameDefaultsGet(indexname, options);
8518
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8519
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1IndexIndexnameDefaultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8520
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8521
+ });
8522
+ },
8442
8523
  /**
8443
8524
  * Search documents using store credentials with optional autocomplete suggestions
8444
8525
  * @summary Public Search API
8445
- * @param {string} xStoreID Store ID
8446
- * @param {string} xStoreSecret Store Secret
8526
+ * @param {string} xStoreid Store ID
8527
+ * @param {string} xStoresecret Store Secret
8447
8528
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8448
8529
  * @param {*} [options] Override http request option.
8449
8530
  * @throws {RequiredError}
8450
8531
  */
8451
- v1SearchPost(xStoreID, xStoreSecret, body, options) {
8532
+ v1SearchPost(xStoreid, xStoresecret, body, options) {
8452
8533
  return __awaiter(this, void 0, void 0, function* () {
8453
8534
  var _a, _b, _c;
8454
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
8535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, body, options);
8455
8536
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8456
8537
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8457
8538
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8470,14 +8551,23 @@ const SearchApiFactory = function (configuration, basePath, axios) {
8470
8551
  /**
8471
8552
  * Search documents with optional configuration override and autocomplete suggestions
8472
8553
  * @summary Admin Search API
8473
- * @param {string} xStoreID Store ID for the selected store
8474
- * @param {string} xStoreSecret Store Secret for the selected store
8554
+ * @param {number} storeid Store ID
8475
8555
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8476
8556
  * @param {*} [options] Override http request option.
8477
8557
  * @throws {RequiredError}
8478
8558
  */
8479
- adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8480
- return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8559
+ adminV1SearchStoreidPost(storeid, body, options) {
8560
+ return localVarFp.adminV1SearchStoreidPost(storeid, body, options).then((request) => request(axios, basePath));
8561
+ },
8562
+ /**
8563
+ * Get metadata about all configurable fields for dynamic form generation
8564
+ * @summary Get Configuration Schema
8565
+ * @param {string} [indexname] Index name to get field options from
8566
+ * @param {*} [options] Override http request option.
8567
+ * @throws {RequiredError}
8568
+ */
8569
+ v1IndexConfigSchemaGet(indexname, options) {
8570
+ return localVarFp.v1IndexConfigSchemaGet(indexname, options).then((request) => request(axios, basePath));
8481
8571
  },
8482
8572
  /**
8483
8573
  * Get the current index configuration
@@ -8512,17 +8602,27 @@ const SearchApiFactory = function (configuration, basePath, axios) {
8512
8602
  v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8513
8603
  return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
8514
8604
  },
8605
+ /**
8606
+ * Get default configuration values computed from the Typesense schema
8607
+ * @summary Get Schema-Based Defaults
8608
+ * @param {string} indexname Index Name
8609
+ * @param {*} [options] Override http request option.
8610
+ * @throws {RequiredError}
8611
+ */
8612
+ v1IndexIndexnameDefaultsGet(indexname, options) {
8613
+ return localVarFp.v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(axios, basePath));
8614
+ },
8515
8615
  /**
8516
8616
  * Search documents using store credentials with optional autocomplete suggestions
8517
8617
  * @summary Public Search API
8518
- * @param {string} xStoreID Store ID
8519
- * @param {string} xStoreSecret Store Secret
8618
+ * @param {string} xStoreid Store ID
8619
+ * @param {string} xStoresecret Store Secret
8520
8620
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8521
8621
  * @param {*} [options] Override http request option.
8522
8622
  * @throws {RequiredError}
8523
8623
  */
8524
- v1SearchPost(xStoreID, xStoreSecret, body, options) {
8525
- return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
8624
+ v1SearchPost(xStoreid, xStoresecret, body, options) {
8625
+ return localVarFp.v1SearchPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
8526
8626
  },
8527
8627
  };
8528
8628
  };
@@ -8537,15 +8637,25 @@ class SearchApi extends base_1.BaseAPI {
8537
8637
  /**
8538
8638
  * Search documents with optional configuration override and autocomplete suggestions
8539
8639
  * @summary Admin Search API
8540
- * @param {string} xStoreID Store ID for the selected store
8541
- * @param {string} xStoreSecret Store Secret for the selected store
8640
+ * @param {number} storeid Store ID
8542
8641
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
8543
8642
  * @param {*} [options] Override http request option.
8544
8643
  * @throws {RequiredError}
8545
8644
  * @memberof SearchApi
8546
8645
  */
8547
- adminV1SearchPost(xStoreID, xStoreSecret, body, options) {
8548
- return (0, exports.SearchApiFp)(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8646
+ adminV1SearchStoreidPost(storeid, body, options) {
8647
+ return (0, exports.SearchApiFp)(this.configuration).adminV1SearchStoreidPost(storeid, body, options).then((request) => request(this.axios, this.basePath));
8648
+ }
8649
+ /**
8650
+ * Get metadata about all configurable fields for dynamic form generation
8651
+ * @summary Get Configuration Schema
8652
+ * @param {string} [indexname] Index name to get field options from
8653
+ * @param {*} [options] Override http request option.
8654
+ * @throws {RequiredError}
8655
+ * @memberof SearchApi
8656
+ */
8657
+ v1IndexConfigSchemaGet(indexname, options) {
8658
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexConfigSchemaGet(indexname, options).then((request) => request(this.axios, this.basePath));
8549
8659
  }
8550
8660
  /**
8551
8661
  * Get the current index configuration
@@ -8583,18 +8693,29 @@ class SearchApi extends base_1.BaseAPI {
8583
8693
  v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options) {
8584
8694
  return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
8585
8695
  }
8696
+ /**
8697
+ * Get default configuration values computed from the Typesense schema
8698
+ * @summary Get Schema-Based Defaults
8699
+ * @param {string} indexname Index Name
8700
+ * @param {*} [options] Override http request option.
8701
+ * @throws {RequiredError}
8702
+ * @memberof SearchApi
8703
+ */
8704
+ v1IndexIndexnameDefaultsGet(indexname, options) {
8705
+ return (0, exports.SearchApiFp)(this.configuration).v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(this.axios, this.basePath));
8706
+ }
8586
8707
  /**
8587
8708
  * Search documents using store credentials with optional autocomplete suggestions
8588
8709
  * @summary Public Search API
8589
- * @param {string} xStoreID Store ID
8590
- * @param {string} xStoreSecret Store Secret
8710
+ * @param {string} xStoreid Store ID
8711
+ * @param {string} xStoresecret Store Secret
8591
8712
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
8592
8713
  * @param {*} [options] Override http request option.
8593
8714
  * @throws {RequiredError}
8594
8715
  * @memberof SearchApi
8595
8716
  */
8596
- v1SearchPost(xStoreID, xStoreSecret, body, options) {
8597
- return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
8717
+ v1SearchPost(xStoreid, xStoresecret, body, options) {
8718
+ return (0, exports.SearchApiFp)(this.configuration).v1SearchPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
8598
8719
  }
8599
8720
  }
8600
8721
  exports.SearchApi = SearchApi;
@@ -8698,6 +8819,135 @@ const StoresApiAxiosParamCreator = function (configuration) {
8698
8819
  options: localVarRequestOptions,
8699
8820
  };
8700
8821
  }),
8822
+ /**
8823
+ * Retrieves the store configuration
8824
+ * @summary Get Store Config
8825
+ * @param {number} storeID Store ID
8826
+ * @param {*} [options] Override http request option.
8827
+ * @throws {RequiredError}
8828
+ */
8829
+ adminStoresStoreIDConfigGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8830
+ // verify required parameter 'storeID' is not null or undefined
8831
+ (0, common_1.assertParamExists)('adminStoresStoreIDConfigGet', 'storeID', storeID);
8832
+ const localVarPath = `/admin/Stores/{storeID}/config`
8833
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8834
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8835
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8836
+ let baseOptions;
8837
+ if (configuration) {
8838
+ baseOptions = configuration.baseOptions;
8839
+ }
8840
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8841
+ const localVarHeaderParameter = {};
8842
+ const localVarQueryParameter = {};
8843
+ // authentication BearerAuth required
8844
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8845
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8846
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8847
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8848
+ return {
8849
+ url: (0, common_1.toPathString)(localVarUrlObj),
8850
+ options: localVarRequestOptions,
8851
+ };
8852
+ }),
8853
+ /**
8854
+ * Updates the store configuration
8855
+ * @summary Update Store Config
8856
+ * @param {number} storeID Store ID
8857
+ * @param {DataTypesIndexConfig} body Store configuration
8858
+ * @param {*} [options] Override http request option.
8859
+ * @throws {RequiredError}
8860
+ */
8861
+ adminStoresStoreIDConfigPut: (storeID_1, body_1, ...args_1) => __awaiter(this, [storeID_1, body_1, ...args_1], void 0, function* (storeID, body, options = {}) {
8862
+ // verify required parameter 'storeID' is not null or undefined
8863
+ (0, common_1.assertParamExists)('adminStoresStoreIDConfigPut', 'storeID', storeID);
8864
+ // verify required parameter 'body' is not null or undefined
8865
+ (0, common_1.assertParamExists)('adminStoresStoreIDConfigPut', 'body', body);
8866
+ const localVarPath = `/admin/Stores/{storeID}/config`
8867
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8868
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8869
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8870
+ let baseOptions;
8871
+ if (configuration) {
8872
+ baseOptions = configuration.baseOptions;
8873
+ }
8874
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
8875
+ const localVarHeaderParameter = {};
8876
+ const localVarQueryParameter = {};
8877
+ // authentication BearerAuth required
8878
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8879
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8880
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8882
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8883
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8884
+ return {
8885
+ url: (0, common_1.toPathString)(localVarUrlObj),
8886
+ options: localVarRequestOptions,
8887
+ };
8888
+ }),
8889
+ /**
8890
+ * Get metadata about all configurable fields for store configuration
8891
+ * @summary Get Store Config Schema
8892
+ * @param {number} storeID Store ID to get field options from
8893
+ * @param {*} [options] Override http request option.
8894
+ * @throws {RequiredError}
8895
+ */
8896
+ adminStoresStoreIDConfigSchemaGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8897
+ // verify required parameter 'storeID' is not null or undefined
8898
+ (0, common_1.assertParamExists)('adminStoresStoreIDConfigSchemaGet', 'storeID', storeID);
8899
+ const localVarPath = `/admin/Stores/{storeID}/config-schema`
8900
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8902
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8903
+ let baseOptions;
8904
+ if (configuration) {
8905
+ baseOptions = configuration.baseOptions;
8906
+ }
8907
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8908
+ const localVarHeaderParameter = {};
8909
+ const localVarQueryParameter = {};
8910
+ // authentication BearerAuth required
8911
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8912
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8914
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8915
+ return {
8916
+ url: (0, common_1.toPathString)(localVarUrlObj),
8917
+ options: localVarRequestOptions,
8918
+ };
8919
+ }),
8920
+ /**
8921
+ * Get default configuration values computed from the store\'s index schema
8922
+ * @summary Get Store Schema-Based Defaults
8923
+ * @param {number} storeID Store ID
8924
+ * @param {*} [options] Override http request option.
8925
+ * @throws {RequiredError}
8926
+ */
8927
+ adminStoresStoreIDDefaultsGet: (storeID_1, ...args_1) => __awaiter(this, [storeID_1, ...args_1], void 0, function* (storeID, options = {}) {
8928
+ // verify required parameter 'storeID' is not null or undefined
8929
+ (0, common_1.assertParamExists)('adminStoresStoreIDDefaultsGet', 'storeID', storeID);
8930
+ const localVarPath = `/admin/Stores/{storeID}/defaults`
8931
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
8932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8933
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8934
+ let baseOptions;
8935
+ if (configuration) {
8936
+ baseOptions = configuration.baseOptions;
8937
+ }
8938
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8939
+ const localVarHeaderParameter = {};
8940
+ const localVarQueryParameter = {};
8941
+ // authentication BearerAuth required
8942
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8943
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8945
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8946
+ return {
8947
+ url: (0, common_1.toPathString)(localVarUrlObj),
8948
+ options: localVarRequestOptions,
8949
+ };
8950
+ }),
8701
8951
  /**
8702
8952
  * Updates store information by ID.
8703
8953
  * @summary Update an existing store
@@ -8827,6 +9077,71 @@ const StoresApiFp = function (configuration) {
8827
9077
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8828
9078
  });
8829
9079
  },
9080
+ /**
9081
+ * Retrieves the store configuration
9082
+ * @summary Get Store Config
9083
+ * @param {number} storeID Store ID
9084
+ * @param {*} [options] Override http request option.
9085
+ * @throws {RequiredError}
9086
+ */
9087
+ adminStoresStoreIDConfigGet(storeID, options) {
9088
+ return __awaiter(this, void 0, void 0, function* () {
9089
+ var _a, _b, _c;
9090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigGet(storeID, options);
9091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9092
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9093
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9094
+ });
9095
+ },
9096
+ /**
9097
+ * Updates the store configuration
9098
+ * @summary Update Store Config
9099
+ * @param {number} storeID Store ID
9100
+ * @param {DataTypesIndexConfig} body Store configuration
9101
+ * @param {*} [options] Override http request option.
9102
+ * @throws {RequiredError}
9103
+ */
9104
+ adminStoresStoreIDConfigPut(storeID, body, options) {
9105
+ return __awaiter(this, void 0, void 0, function* () {
9106
+ var _a, _b, _c;
9107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigPut(storeID, body, options);
9108
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9109
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9110
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9111
+ });
9112
+ },
9113
+ /**
9114
+ * Get metadata about all configurable fields for store configuration
9115
+ * @summary Get Store Config Schema
9116
+ * @param {number} storeID Store ID to get field options from
9117
+ * @param {*} [options] Override http request option.
9118
+ * @throws {RequiredError}
9119
+ */
9120
+ adminStoresStoreIDConfigSchemaGet(storeID, options) {
9121
+ return __awaiter(this, void 0, void 0, function* () {
9122
+ var _a, _b, _c;
9123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDConfigSchemaGet(storeID, options);
9124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9125
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDConfigSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9126
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9127
+ });
9128
+ },
9129
+ /**
9130
+ * Get default configuration values computed from the store\'s index schema
9131
+ * @summary Get Store Schema-Based Defaults
9132
+ * @param {number} storeID Store ID
9133
+ * @param {*} [options] Override http request option.
9134
+ * @throws {RequiredError}
9135
+ */
9136
+ adminStoresStoreIDDefaultsGet(storeID, options) {
9137
+ return __awaiter(this, void 0, void 0, function* () {
9138
+ var _a, _b, _c;
9139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresStoreIDDefaultsGet(storeID, options);
9140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresStoreIDDefaultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9143
+ });
9144
+ },
8830
9145
  /**
8831
9146
  * Updates store information by ID.
8832
9147
  * @summary Update an existing store
@@ -8901,6 +9216,47 @@ const StoresApiFactory = function (configuration, basePath, axios) {
8901
9216
  adminStoresPost(store, options) {
8902
9217
  return localVarFp.adminStoresPost(store, options).then((request) => request(axios, basePath));
8903
9218
  },
9219
+ /**
9220
+ * Retrieves the store configuration
9221
+ * @summary Get Store Config
9222
+ * @param {number} storeID Store ID
9223
+ * @param {*} [options] Override http request option.
9224
+ * @throws {RequiredError}
9225
+ */
9226
+ adminStoresStoreIDConfigGet(storeID, options) {
9227
+ return localVarFp.adminStoresStoreIDConfigGet(storeID, options).then((request) => request(axios, basePath));
9228
+ },
9229
+ /**
9230
+ * Updates the store configuration
9231
+ * @summary Update Store Config
9232
+ * @param {number} storeID Store ID
9233
+ * @param {DataTypesIndexConfig} body Store configuration
9234
+ * @param {*} [options] Override http request option.
9235
+ * @throws {RequiredError}
9236
+ */
9237
+ adminStoresStoreIDConfigPut(storeID, body, options) {
9238
+ return localVarFp.adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(axios, basePath));
9239
+ },
9240
+ /**
9241
+ * Get metadata about all configurable fields for store configuration
9242
+ * @summary Get Store Config Schema
9243
+ * @param {number} storeID Store ID to get field options from
9244
+ * @param {*} [options] Override http request option.
9245
+ * @throws {RequiredError}
9246
+ */
9247
+ adminStoresStoreIDConfigSchemaGet(storeID, options) {
9248
+ return localVarFp.adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(axios, basePath));
9249
+ },
9250
+ /**
9251
+ * Get default configuration values computed from the store\'s index schema
9252
+ * @summary Get Store Schema-Based Defaults
9253
+ * @param {number} storeID Store ID
9254
+ * @param {*} [options] Override http request option.
9255
+ * @throws {RequiredError}
9256
+ */
9257
+ adminStoresStoreIDDefaultsGet(storeID, options) {
9258
+ return localVarFp.adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(axios, basePath));
9259
+ },
8904
9260
  /**
8905
9261
  * Updates store information by ID.
8906
9262
  * @summary Update an existing store
@@ -8966,6 +9322,51 @@ class StoresApi extends base_1.BaseAPI {
8966
9322
  adminStoresPost(store, options) {
8967
9323
  return (0, exports.StoresApiFp)(this.configuration).adminStoresPost(store, options).then((request) => request(this.axios, this.basePath));
8968
9324
  }
9325
+ /**
9326
+ * Retrieves the store configuration
9327
+ * @summary Get Store Config
9328
+ * @param {number} storeID Store ID
9329
+ * @param {*} [options] Override http request option.
9330
+ * @throws {RequiredError}
9331
+ * @memberof StoresApi
9332
+ */
9333
+ adminStoresStoreIDConfigGet(storeID, options) {
9334
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigGet(storeID, options).then((request) => request(this.axios, this.basePath));
9335
+ }
9336
+ /**
9337
+ * Updates the store configuration
9338
+ * @summary Update Store Config
9339
+ * @param {number} storeID Store ID
9340
+ * @param {DataTypesIndexConfig} body Store configuration
9341
+ * @param {*} [options] Override http request option.
9342
+ * @throws {RequiredError}
9343
+ * @memberof StoresApi
9344
+ */
9345
+ adminStoresStoreIDConfigPut(storeID, body, options) {
9346
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(this.axios, this.basePath));
9347
+ }
9348
+ /**
9349
+ * Get metadata about all configurable fields for store configuration
9350
+ * @summary Get Store Config Schema
9351
+ * @param {number} storeID Store ID to get field options from
9352
+ * @param {*} [options] Override http request option.
9353
+ * @throws {RequiredError}
9354
+ * @memberof StoresApi
9355
+ */
9356
+ adminStoresStoreIDConfigSchemaGet(storeID, options) {
9357
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(this.axios, this.basePath));
9358
+ }
9359
+ /**
9360
+ * Get default configuration values computed from the store\'s index schema
9361
+ * @summary Get Store Schema-Based Defaults
9362
+ * @param {number} storeID Store ID
9363
+ * @param {*} [options] Override http request option.
9364
+ * @throws {RequiredError}
9365
+ * @memberof StoresApi
9366
+ */
9367
+ adminStoresStoreIDDefaultsGet(storeID, options) {
9368
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(this.axios, this.basePath));
9369
+ }
8969
9370
  /**
8970
9371
  * Updates store information by ID.
8971
9372
  * @summary Update an existing store