@seekora-ai/admin-api 1.0.73 → 1.0.74

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
@@ -15340,6 +15340,43 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15340
15340
  options: localVarRequestOptions,
15341
15341
  };
15342
15342
  }),
15343
+ /**
15344
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15345
+ * @summary Get a single subscription plan by ID or identifier
15346
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15347
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15348
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15349
+ * @param {*} [options] Override http request option.
15350
+ * @throws {RequiredError}
15351
+ */
15352
+ v1SubscriptionPlansIdGet: (id_1, currency_1, billingFrequency_1, ...args_1) => __awaiter(this, [id_1, currency_1, billingFrequency_1, ...args_1], void 0, function* (id, currency, billingFrequency, options = {}) {
15353
+ // verify required parameter 'id' is not null or undefined
15354
+ assertParamExists('v1SubscriptionPlansIdGet', 'id', id);
15355
+ const localVarPath = `/v1/subscription-plans/{id}`
15356
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15359
+ let baseOptions;
15360
+ if (configuration) {
15361
+ baseOptions = configuration.baseOptions;
15362
+ }
15363
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15364
+ const localVarHeaderParameter = {};
15365
+ const localVarQueryParameter = {};
15366
+ if (currency !== undefined) {
15367
+ localVarQueryParameter['currency'] = currency;
15368
+ }
15369
+ if (billingFrequency !== undefined) {
15370
+ localVarQueryParameter['billing_frequency'] = billingFrequency;
15371
+ }
15372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15375
+ return {
15376
+ url: toPathString(localVarUrlObj),
15377
+ options: localVarRequestOptions,
15378
+ };
15379
+ }),
15343
15380
  };
15344
15381
  };
15345
15382
  /**
@@ -15457,6 +15494,24 @@ export const PaymentGatewayApiFp = function (configuration) {
15457
15494
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15458
15495
  });
15459
15496
  },
15497
+ /**
15498
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15499
+ * @summary Get a single subscription plan by ID or identifier
15500
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15501
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15502
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15503
+ * @param {*} [options] Override http request option.
15504
+ * @throws {RequiredError}
15505
+ */
15506
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15507
+ return __awaiter(this, void 0, void 0, function* () {
15508
+ var _a, _b, _c;
15509
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options);
15510
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15511
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.v1SubscriptionPlansIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15512
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15513
+ });
15514
+ },
15460
15515
  };
15461
15516
  };
15462
15517
  /**
@@ -15532,6 +15587,18 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
15532
15587
  v1SubscriptionPlansGet(options) {
15533
15588
  return localVarFp.v1SubscriptionPlansGet(options).then((request) => request(axios, basePath));
15534
15589
  },
15590
+ /**
15591
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15592
+ * @summary Get a single subscription plan by ID or identifier
15593
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15594
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15595
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15596
+ * @param {*} [options] Override http request option.
15597
+ * @throws {RequiredError}
15598
+ */
15599
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15600
+ return localVarFp.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(axios, basePath));
15601
+ },
15535
15602
  };
15536
15603
  };
15537
15604
  /**
@@ -15614,6 +15681,19 @@ export class PaymentGatewayApi extends BaseAPI {
15614
15681
  v1SubscriptionPlansGet(options) {
15615
15682
  return PaymentGatewayApiFp(this.configuration).v1SubscriptionPlansGet(options).then((request) => request(this.axios, this.basePath));
15616
15683
  }
15684
+ /**
15685
+ * Returns a single subscription plan with all variants (monthly/annual × USD/INR). Accepts either numeric plan_id or hexadecimal plan_identifier. Can filter by currency and/or billing_frequency using query parameters.
15686
+ * @summary Get a single subscription plan by ID or identifier
15687
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
15688
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
15689
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
15690
+ * @param {*} [options] Override http request option.
15691
+ * @throws {RequiredError}
15692
+ * @memberof PaymentGatewayApi
15693
+ */
15694
+ v1SubscriptionPlansIdGet(id, currency, billingFrequency, options) {
15695
+ return PaymentGatewayApiFp(this.configuration).v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(this.axios, this.basePath));
15696
+ }
15617
15697
  }
15618
15698
  /**
15619
15699
  * PaymentsApi - axios parameter creator
@@ -23428,6 +23508,384 @@ export class StopwordsApi extends BaseAPI {
23428
23508
  return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID, wordListID, dataTypesAddWordsToLanguageListRequest, options).then((request) => request(this.axios, this.basePath));
23429
23509
  }
23430
23510
  }
23511
+ /**
23512
+ * StoreCreationApi - axios parameter creator
23513
+ * @export
23514
+ */
23515
+ export const StoreCreationApiAxiosParamCreator = function (configuration) {
23516
+ return {
23517
+ /**
23518
+ * Deletes (soft delete) the current store creation progress
23519
+ * @summary Delete store creation progress
23520
+ * @param {*} [options] Override http request option.
23521
+ * @throws {RequiredError}
23522
+ */
23523
+ adminV1StoreCreationProgressDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
23524
+ const localVarPath = `/admin/v1/store-creation/progress`;
23525
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23526
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23527
+ let baseOptions;
23528
+ if (configuration) {
23529
+ baseOptions = configuration.baseOptions;
23530
+ }
23531
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
23532
+ const localVarHeaderParameter = {};
23533
+ const localVarQueryParameter = {};
23534
+ // authentication BearerAuth required
23535
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
23536
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23537
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23538
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23539
+ return {
23540
+ url: toPathString(localVarUrlObj),
23541
+ options: localVarRequestOptions,
23542
+ };
23543
+ }),
23544
+ /**
23545
+ * Retrieves the current step and state of store creation for the user
23546
+ * @summary Get current store creation progress
23547
+ * @param {*} [options] Override http request option.
23548
+ * @throws {RequiredError}
23549
+ */
23550
+ adminV1StoreCreationProgressGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
23551
+ const localVarPath = `/admin/v1/store-creation/progress`;
23552
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23553
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23554
+ let baseOptions;
23555
+ if (configuration) {
23556
+ baseOptions = configuration.baseOptions;
23557
+ }
23558
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
23559
+ const localVarHeaderParameter = {};
23560
+ const localVarQueryParameter = {};
23561
+ // authentication BearerAuth required
23562
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
23563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23566
+ return {
23567
+ url: toPathString(localVarUrlObj),
23568
+ options: localVarRequestOptions,
23569
+ };
23570
+ }),
23571
+ /**
23572
+ * Uploads a custom schema JSON file for store data structure definition
23573
+ * @summary Upload custom schema for store
23574
+ * @param {File} file Schema JSON file
23575
+ * @param {*} [options] Override http request option.
23576
+ * @throws {RequiredError}
23577
+ */
23578
+ adminV1StoreCreationSchemaUploadPost: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
23579
+ // verify required parameter 'file' is not null or undefined
23580
+ assertParamExists('adminV1StoreCreationSchemaUploadPost', 'file', file);
23581
+ const localVarPath = `/admin/v1/store-creation/schema-upload`;
23582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23583
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23584
+ let baseOptions;
23585
+ if (configuration) {
23586
+ baseOptions = configuration.baseOptions;
23587
+ }
23588
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23589
+ const localVarHeaderParameter = {};
23590
+ const localVarQueryParameter = {};
23591
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
23592
+ // authentication BearerAuth required
23593
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
23594
+ if (file !== undefined) {
23595
+ localVarFormParams.append('file', file);
23596
+ }
23597
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
23598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23600
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23601
+ localVarRequestOptions.data = localVarFormParams;
23602
+ return {
23603
+ url: toPathString(localVarUrlObj),
23604
+ options: localVarRequestOptions,
23605
+ };
23606
+ }),
23607
+ /**
23608
+ * Updates a specific step in the store creation flow
23609
+ * @summary Update store creation step
23610
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23611
+ * @param {*} [options] Override http request option.
23612
+ * @throws {RequiredError}
23613
+ */
23614
+ adminV1StoreCreationStepPost: (dataTypesStoreCreationRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreCreationRequest_1, ...args_1], void 0, function* (dataTypesStoreCreationRequest, options = {}) {
23615
+ // verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
23616
+ assertParamExists('adminV1StoreCreationStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest);
23617
+ const localVarPath = `/admin/v1/store-creation/step`;
23618
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23619
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23620
+ let baseOptions;
23621
+ if (configuration) {
23622
+ baseOptions = configuration.baseOptions;
23623
+ }
23624
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23625
+ const localVarHeaderParameter = {};
23626
+ const localVarQueryParameter = {};
23627
+ // authentication BearerAuth required
23628
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
23629
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23633
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreCreationRequest, localVarRequestOptions, configuration);
23634
+ return {
23635
+ url: toPathString(localVarUrlObj),
23636
+ options: localVarRequestOptions,
23637
+ };
23638
+ }),
23639
+ /**
23640
+ * Uploads a custom JSON or CSV file for store data import
23641
+ * @summary Upload custom data file for store
23642
+ * @param {number} storeId Store ID
23643
+ * @param {File} file Data file (JSON or CSV)
23644
+ * @param {*} [options] Override http request option.
23645
+ * @throws {RequiredError}
23646
+ */
23647
+ adminV1StoreCreationStoreIdUploadDataPost: (storeId_1, file_1, ...args_1) => __awaiter(this, [storeId_1, file_1, ...args_1], void 0, function* (storeId, file, options = {}) {
23648
+ // verify required parameter 'storeId' is not null or undefined
23649
+ assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'storeId', storeId);
23650
+ // verify required parameter 'file' is not null or undefined
23651
+ assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'file', file);
23652
+ const localVarPath = `/admin/v1/store-creation/{storeId}/upload-data`
23653
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
23654
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23655
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23656
+ let baseOptions;
23657
+ if (configuration) {
23658
+ baseOptions = configuration.baseOptions;
23659
+ }
23660
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23661
+ const localVarHeaderParameter = {};
23662
+ const localVarQueryParameter = {};
23663
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
23664
+ // authentication BearerAuth required
23665
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
23666
+ if (file !== undefined) {
23667
+ localVarFormParams.append('file', file);
23668
+ }
23669
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
23670
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23671
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23672
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23673
+ localVarRequestOptions.data = localVarFormParams;
23674
+ return {
23675
+ url: toPathString(localVarUrlObj),
23676
+ options: localVarRequestOptions,
23677
+ };
23678
+ }),
23679
+ };
23680
+ };
23681
+ /**
23682
+ * StoreCreationApi - functional programming interface
23683
+ * @export
23684
+ */
23685
+ export const StoreCreationApiFp = function (configuration) {
23686
+ const localVarAxiosParamCreator = StoreCreationApiAxiosParamCreator(configuration);
23687
+ return {
23688
+ /**
23689
+ * Deletes (soft delete) the current store creation progress
23690
+ * @summary Delete store creation progress
23691
+ * @param {*} [options] Override http request option.
23692
+ * @throws {RequiredError}
23693
+ */
23694
+ adminV1StoreCreationProgressDelete(options) {
23695
+ return __awaiter(this, void 0, void 0, function* () {
23696
+ var _a, _b, _c;
23697
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationProgressDelete(options);
23698
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23699
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreCreationApi.adminV1StoreCreationProgressDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23701
+ });
23702
+ },
23703
+ /**
23704
+ * Retrieves the current step and state of store creation for the user
23705
+ * @summary Get current store creation progress
23706
+ * @param {*} [options] Override http request option.
23707
+ * @throws {RequiredError}
23708
+ */
23709
+ adminV1StoreCreationProgressGet(options) {
23710
+ return __awaiter(this, void 0, void 0, function* () {
23711
+ var _a, _b, _c;
23712
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationProgressGet(options);
23713
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23714
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreCreationApi.adminV1StoreCreationProgressGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23715
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23716
+ });
23717
+ },
23718
+ /**
23719
+ * Uploads a custom schema JSON file for store data structure definition
23720
+ * @summary Upload custom schema for store
23721
+ * @param {File} file Schema JSON file
23722
+ * @param {*} [options] Override http request option.
23723
+ * @throws {RequiredError}
23724
+ */
23725
+ adminV1StoreCreationSchemaUploadPost(file, options) {
23726
+ return __awaiter(this, void 0, void 0, function* () {
23727
+ var _a, _b, _c;
23728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationSchemaUploadPost(file, options);
23729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23730
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreCreationApi.adminV1StoreCreationSchemaUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23731
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23732
+ });
23733
+ },
23734
+ /**
23735
+ * Updates a specific step in the store creation flow
23736
+ * @summary Update store creation step
23737
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23738
+ * @param {*} [options] Override http request option.
23739
+ * @throws {RequiredError}
23740
+ */
23741
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
23742
+ return __awaiter(this, void 0, void 0, function* () {
23743
+ var _a, _b, _c;
23744
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options);
23745
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23746
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreCreationApi.adminV1StoreCreationStepPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23748
+ });
23749
+ },
23750
+ /**
23751
+ * Uploads a custom JSON or CSV file for store data import
23752
+ * @summary Upload custom data file for store
23753
+ * @param {number} storeId Store ID
23754
+ * @param {File} file Data file (JSON or CSV)
23755
+ * @param {*} [options] Override http request option.
23756
+ * @throws {RequiredError}
23757
+ */
23758
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
23759
+ return __awaiter(this, void 0, void 0, function* () {
23760
+ var _a, _b, _c;
23761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options);
23762
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23763
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreCreationApi.adminV1StoreCreationStoreIdUploadDataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23765
+ });
23766
+ },
23767
+ };
23768
+ };
23769
+ /**
23770
+ * StoreCreationApi - factory interface
23771
+ * @export
23772
+ */
23773
+ export const StoreCreationApiFactory = function (configuration, basePath, axios) {
23774
+ const localVarFp = StoreCreationApiFp(configuration);
23775
+ return {
23776
+ /**
23777
+ * Deletes (soft delete) the current store creation progress
23778
+ * @summary Delete store creation progress
23779
+ * @param {*} [options] Override http request option.
23780
+ * @throws {RequiredError}
23781
+ */
23782
+ adminV1StoreCreationProgressDelete(options) {
23783
+ return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
23784
+ },
23785
+ /**
23786
+ * Retrieves the current step and state of store creation for the user
23787
+ * @summary Get current store creation progress
23788
+ * @param {*} [options] Override http request option.
23789
+ * @throws {RequiredError}
23790
+ */
23791
+ adminV1StoreCreationProgressGet(options) {
23792
+ return localVarFp.adminV1StoreCreationProgressGet(options).then((request) => request(axios, basePath));
23793
+ },
23794
+ /**
23795
+ * Uploads a custom schema JSON file for store data structure definition
23796
+ * @summary Upload custom schema for store
23797
+ * @param {File} file Schema JSON file
23798
+ * @param {*} [options] Override http request option.
23799
+ * @throws {RequiredError}
23800
+ */
23801
+ adminV1StoreCreationSchemaUploadPost(file, options) {
23802
+ return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
23803
+ },
23804
+ /**
23805
+ * Updates a specific step in the store creation flow
23806
+ * @summary Update store creation step
23807
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23808
+ * @param {*} [options] Override http request option.
23809
+ * @throws {RequiredError}
23810
+ */
23811
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
23812
+ return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
23813
+ },
23814
+ /**
23815
+ * Uploads a custom JSON or CSV file for store data import
23816
+ * @summary Upload custom data file for store
23817
+ * @param {number} storeId Store ID
23818
+ * @param {File} file Data file (JSON or CSV)
23819
+ * @param {*} [options] Override http request option.
23820
+ * @throws {RequiredError}
23821
+ */
23822
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
23823
+ return localVarFp.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(axios, basePath));
23824
+ },
23825
+ };
23826
+ };
23827
+ /**
23828
+ * StoreCreationApi - object-oriented interface
23829
+ * @export
23830
+ * @class StoreCreationApi
23831
+ * @extends {BaseAPI}
23832
+ */
23833
+ export class StoreCreationApi extends BaseAPI {
23834
+ /**
23835
+ * Deletes (soft delete) the current store creation progress
23836
+ * @summary Delete store creation progress
23837
+ * @param {*} [options] Override http request option.
23838
+ * @throws {RequiredError}
23839
+ * @memberof StoreCreationApi
23840
+ */
23841
+ adminV1StoreCreationProgressDelete(options) {
23842
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationProgressDelete(options).then((request) => request(this.axios, this.basePath));
23843
+ }
23844
+ /**
23845
+ * Retrieves the current step and state of store creation for the user
23846
+ * @summary Get current store creation progress
23847
+ * @param {*} [options] Override http request option.
23848
+ * @throws {RequiredError}
23849
+ * @memberof StoreCreationApi
23850
+ */
23851
+ adminV1StoreCreationProgressGet(options) {
23852
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationProgressGet(options).then((request) => request(this.axios, this.basePath));
23853
+ }
23854
+ /**
23855
+ * Uploads a custom schema JSON file for store data structure definition
23856
+ * @summary Upload custom schema for store
23857
+ * @param {File} file Schema JSON file
23858
+ * @param {*} [options] Override http request option.
23859
+ * @throws {RequiredError}
23860
+ * @memberof StoreCreationApi
23861
+ */
23862
+ adminV1StoreCreationSchemaUploadPost(file, options) {
23863
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(this.axios, this.basePath));
23864
+ }
23865
+ /**
23866
+ * Updates a specific step in the store creation flow
23867
+ * @summary Update store creation step
23868
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
23869
+ * @param {*} [options] Override http request option.
23870
+ * @throws {RequiredError}
23871
+ * @memberof StoreCreationApi
23872
+ */
23873
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
23874
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
23875
+ }
23876
+ /**
23877
+ * Uploads a custom JSON or CSV file for store data import
23878
+ * @summary Upload custom data file for store
23879
+ * @param {number} storeId Store ID
23880
+ * @param {File} file Data file (JSON or CSV)
23881
+ * @param {*} [options] Override http request option.
23882
+ * @throws {RequiredError}
23883
+ * @memberof StoreCreationApi
23884
+ */
23885
+ adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options) {
23886
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(this.axios, this.basePath));
23887
+ }
23888
+ }
23431
23889
  /**
23432
23890
  * StoreDocumentsApi - axios parameter creator
23433
23891
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file