@seekora-ai/admin-api 1.0.72 → 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/api.ts CHANGED
@@ -5939,6 +5939,12 @@ export interface AnalyticsQuerySuggestionConfig {
5939
5939
  * @memberof AnalyticsQuerySuggestionConfig
5940
5940
  */
5941
5941
  'category_counts'?: boolean;
5942
+ /**
5943
+ * Whether auto query suggestions management feature is enabled (controls UI visibility)
5944
+ * @type {boolean}
5945
+ * @memberof AnalyticsQuerySuggestionConfig
5946
+ */
5947
+ 'enable_auto_query_suggestions'?: boolean;
5942
5948
  /**
5943
5949
  * Whether to include category-based suggestions
5944
5950
  * @type {boolean}
@@ -5951,6 +5957,12 @@ export interface AnalyticsQuerySuggestionConfig {
5951
5957
  * @memberof AnalyticsQuerySuggestionConfig
5952
5958
  */
5953
5959
  'enable_facet_suggestions'?: boolean;
5960
+ /**
5961
+ * Whether manual query suggestions management feature is enabled (controls UI visibility)
5962
+ * @type {boolean}
5963
+ * @memberof AnalyticsQuerySuggestionConfig
5964
+ */
5965
+ 'enable_manual_query_suggestions'?: boolean;
5954
5966
  /**
5955
5967
  * Personalization (boolean flag for now as requested)
5956
5968
  * @type {boolean}
@@ -6786,12 +6798,24 @@ export interface AnalyticsUpdateSuggestionConfigRequest {
6786
6798
  * @memberof AnalyticsUpdateSuggestionConfigRequest
6787
6799
  */
6788
6800
  'category_counts'?: boolean;
6801
+ /**
6802
+ * Enable/disable auto query suggestions management feature (controls UI visibility)
6803
+ * @type {boolean}
6804
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6805
+ */
6806
+ 'enable_auto_query_suggestions'?: boolean;
6789
6807
  /**
6790
6808
  * Enable/disable facet-based suggestions
6791
6809
  * @type {boolean}
6792
6810
  * @memberof AnalyticsUpdateSuggestionConfigRequest
6793
6811
  */
6794
6812
  'enable_facet_suggestions'?: boolean;
6813
+ /**
6814
+ * Enable/disable manual query suggestions management feature (controls UI visibility)
6815
+ * @type {boolean}
6816
+ * @memberof AnalyticsUpdateSuggestionConfigRequest
6817
+ */
6818
+ 'enable_manual_query_suggestions'?: boolean;
6795
6819
  /**
6796
6820
  * Enable personalization
6797
6821
  * @type {boolean}
@@ -15134,6 +15158,12 @@ export interface DataTypesQuerySuggestionsConfig {
15134
15158
  * @memberof DataTypesQuerySuggestionsConfig
15135
15159
  */
15136
15160
  'category_attributes'?: Array<string>;
15161
+ /**
15162
+ * Whether auto query suggestions management feature is enabled (controls UI visibility)
15163
+ * @type {boolean}
15164
+ * @memberof DataTypesQuerySuggestionsConfig
15165
+ */
15166
+ 'enable_auto_query_suggestions'?: boolean;
15137
15167
  /**
15138
15168
  * Whether to include category-based suggestions
15139
15169
  * @type {boolean}
@@ -15146,6 +15176,12 @@ export interface DataTypesQuerySuggestionsConfig {
15146
15176
  * @memberof DataTypesQuerySuggestionsConfig
15147
15177
  */
15148
15178
  'enable_facet_suggestions'?: boolean;
15179
+ /**
15180
+ * Whether manual query suggestions management feature is enabled (controls UI visibility)
15181
+ * @type {boolean}
15182
+ * @memberof DataTypesQuerySuggestionsConfig
15183
+ */
15184
+ 'enable_manual_query_suggestions'?: boolean;
15149
15185
  /**
15150
15186
  * Whether query suggestions are enabled for the store
15151
15187
  * @type {boolean}
@@ -17035,6 +17071,105 @@ export interface DataTypesStore {
17035
17071
  */
17036
17072
  'xStoreID'?: string;
17037
17073
  }
17074
+ /**
17075
+ *
17076
+ * @export
17077
+ * @interface DataTypesStoreCreationRequest
17078
+ */
17079
+ export interface DataTypesStoreCreationRequest {
17080
+ /**
17081
+ *
17082
+ * @type {{ [key: string]: any; }}
17083
+ * @memberof DataTypesStoreCreationRequest
17084
+ */
17085
+ 'data'?: { [key: string]: any; };
17086
+ /**
17087
+ *
17088
+ * @type {string}
17089
+ * @memberof DataTypesStoreCreationRequest
17090
+ */
17091
+ 'step': string;
17092
+ /**
17093
+ *
17094
+ * @type {string}
17095
+ * @memberof DataTypesStoreCreationRequest
17096
+ */
17097
+ 'visibleStep'?: string;
17098
+ }
17099
+ /**
17100
+ *
17101
+ * @export
17102
+ * @interface DataTypesStoreCreationResponse
17103
+ */
17104
+ export interface DataTypesStoreCreationResponse {
17105
+ /**
17106
+ *
17107
+ * @type {string}
17108
+ * @memberof DataTypesStoreCreationResponse
17109
+ */
17110
+ 'jobId'?: string;
17111
+ /**
17112
+ *
17113
+ * @type {{ [key: string]: any; }}
17114
+ * @memberof DataTypesStoreCreationResponse
17115
+ */
17116
+ 'state'?: { [key: string]: any; };
17117
+ /**
17118
+ *
17119
+ * @type {string}
17120
+ * @memberof DataTypesStoreCreationResponse
17121
+ */
17122
+ 'step'?: string;
17123
+ /**
17124
+ *
17125
+ * @type {number}
17126
+ * @memberof DataTypesStoreCreationResponse
17127
+ */
17128
+ 'storeId'?: number;
17129
+ /**
17130
+ *
17131
+ * @type {string}
17132
+ * @memberof DataTypesStoreCreationResponse
17133
+ */
17134
+ 'visibleStep'?: string;
17135
+ /**
17136
+ *
17137
+ * @type {string}
17138
+ * @memberof DataTypesStoreCreationResponse
17139
+ */
17140
+ 'xStoreId'?: string;
17141
+ /**
17142
+ *
17143
+ * @type {string}
17144
+ * @memberof DataTypesStoreCreationResponse
17145
+ */
17146
+ 'xStoreSecret'?: string;
17147
+ }
17148
+ /**
17149
+ *
17150
+ * @export
17151
+ * @interface DataTypesStoreCreationResponseWrapper
17152
+ */
17153
+ export interface DataTypesStoreCreationResponseWrapper {
17154
+ /**
17155
+ *
17156
+ * @type {DataTypesStoreCreationResponse}
17157
+ * @memberof DataTypesStoreCreationResponseWrapper
17158
+ */
17159
+ 'data'?: DataTypesStoreCreationResponse;
17160
+ /**
17161
+ *
17162
+ * @type {string}
17163
+ * @memberof DataTypesStoreCreationResponseWrapper
17164
+ */
17165
+ 'message'?: string;
17166
+ /**
17167
+ *
17168
+ * @type {number}
17169
+ * @memberof DataTypesStoreCreationResponseWrapper
17170
+ */
17171
+ 'status'?: number;
17172
+ }
17038
17173
  /**
17039
17174
  *
17040
17175
  * @export
@@ -19232,6 +19367,62 @@ export interface RefundSubscriptionInfoDto {
19232
19367
  */
19233
19368
  'will_be_cancelled'?: boolean;
19234
19369
  }
19370
+ /**
19371
+ *
19372
+ * @export
19373
+ * @interface SubscriptionRouteCancelPreviewRequest
19374
+ */
19375
+ export interface SubscriptionRouteCancelPreviewRequest {
19376
+ /**
19377
+ *
19378
+ * @type {number}
19379
+ * @memberof SubscriptionRouteCancelPreviewRequest
19380
+ */
19381
+ 'org_id': number;
19382
+ /**
19383
+ *
19384
+ * @type {string}
19385
+ * @memberof SubscriptionRouteCancelPreviewRequest
19386
+ */
19387
+ 'reason': string;
19388
+ /**
19389
+ *
19390
+ * @type {string}
19391
+ * @memberof SubscriptionRouteCancelPreviewRequest
19392
+ */
19393
+ 'subscription_id': string;
19394
+ }
19395
+ /**
19396
+ *
19397
+ * @export
19398
+ * @interface SubscriptionRouteCancelProcessRequest
19399
+ */
19400
+ export interface SubscriptionRouteCancelProcessRequest {
19401
+ /**
19402
+ * true = cancel now, false = cancel at cycle end
19403
+ * @type {boolean}
19404
+ * @memberof SubscriptionRouteCancelProcessRequest
19405
+ */
19406
+ 'immediate_cancellation'?: boolean;
19407
+ /**
19408
+ *
19409
+ * @type {number}
19410
+ * @memberof SubscriptionRouteCancelProcessRequest
19411
+ */
19412
+ 'org_id': number;
19413
+ /**
19414
+ *
19415
+ * @type {string}
19416
+ * @memberof SubscriptionRouteCancelProcessRequest
19417
+ */
19418
+ 'reason': string;
19419
+ /**
19420
+ *
19421
+ * @type {string}
19422
+ * @memberof SubscriptionRouteCancelProcessRequest
19423
+ */
19424
+ 'subscription_id': string;
19425
+ }
19235
19426
  /**
19236
19427
  *
19237
19428
  * @export
@@ -35771,6 +35962,50 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
35771
35962
 
35772
35963
 
35773
35964
 
35965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35967
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35968
+
35969
+ return {
35970
+ url: toPathString(localVarUrlObj),
35971
+ options: localVarRequestOptions,
35972
+ };
35973
+ },
35974
+ /**
35975
+ * 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.
35976
+ * @summary Get a single subscription plan by ID or identifier
35977
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
35978
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
35979
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
35980
+ * @param {*} [options] Override http request option.
35981
+ * @throws {RequiredError}
35982
+ */
35983
+ v1SubscriptionPlansIdGet: async (id: string, currency?: string, billingFrequency?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35984
+ // verify required parameter 'id' is not null or undefined
35985
+ assertParamExists('v1SubscriptionPlansIdGet', 'id', id)
35986
+ const localVarPath = `/v1/subscription-plans/{id}`
35987
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
35988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35990
+ let baseOptions;
35991
+ if (configuration) {
35992
+ baseOptions = configuration.baseOptions;
35993
+ }
35994
+
35995
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35996
+ const localVarHeaderParameter = {} as any;
35997
+ const localVarQueryParameter = {} as any;
35998
+
35999
+ if (currency !== undefined) {
36000
+ localVarQueryParameter['currency'] = currency;
36001
+ }
36002
+
36003
+ if (billingFrequency !== undefined) {
36004
+ localVarQueryParameter['billing_frequency'] = billingFrequency;
36005
+ }
36006
+
36007
+
36008
+
35774
36009
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35775
36010
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35776
36011
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -35877,6 +36112,21 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
35877
36112
  const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.v1SubscriptionPlansGet']?.[localVarOperationServerIndex]?.url;
35878
36113
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35879
36114
  },
36115
+ /**
36116
+ * 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.
36117
+ * @summary Get a single subscription plan by ID or identifier
36118
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
36119
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
36120
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
36121
+ * @param {*} [options] Override http request option.
36122
+ * @throws {RequiredError}
36123
+ */
36124
+ async v1SubscriptionPlansIdGet(id: string, currency?: string, billingFrequency?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
36125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options);
36126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36127
+ const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.v1SubscriptionPlansIdGet']?.[localVarOperationServerIndex]?.url;
36128
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36129
+ },
35880
36130
  }
35881
36131
  };
35882
36132
 
@@ -35953,6 +36203,18 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
35953
36203
  v1SubscriptionPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
35954
36204
  return localVarFp.v1SubscriptionPlansGet(options).then((request) => request(axios, basePath));
35955
36205
  },
36206
+ /**
36207
+ * 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.
36208
+ * @summary Get a single subscription plan by ID or identifier
36209
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
36210
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
36211
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
36212
+ * @param {*} [options] Override http request option.
36213
+ * @throws {RequiredError}
36214
+ */
36215
+ v1SubscriptionPlansIdGet(id: string, currency?: string, billingFrequency?: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
36216
+ return localVarFp.v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(axios, basePath));
36217
+ },
35956
36218
  };
35957
36219
  };
35958
36220
 
@@ -36042,6 +36304,20 @@ export class PaymentGatewayApi extends BaseAPI {
36042
36304
  public v1SubscriptionPlansGet(options?: RawAxiosRequestConfig) {
36043
36305
  return PaymentGatewayApiFp(this.configuration).v1SubscriptionPlansGet(options).then((request) => request(this.axios, this.basePath));
36044
36306
  }
36307
+
36308
+ /**
36309
+ * 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.
36310
+ * @summary Get a single subscription plan by ID or identifier
36311
+ * @param {string} id Plan ID (numeric) or Plan Identifier (hexadecimal)
36312
+ * @param {string} [currency] Filter by currency code (e.g., USD, INR)
36313
+ * @param {string} [billingFrequency] Filter by billing frequency (monthly, annual)
36314
+ * @param {*} [options] Override http request option.
36315
+ * @throws {RequiredError}
36316
+ * @memberof PaymentGatewayApi
36317
+ */
36318
+ public v1SubscriptionPlansIdGet(id: string, currency?: string, billingFrequency?: string, options?: RawAxiosRequestConfig) {
36319
+ return PaymentGatewayApiFp(this.configuration).v1SubscriptionPlansIdGet(id, currency, billingFrequency, options).then((request) => request(this.axios, this.basePath));
36320
+ }
36045
36321
  }
36046
36322
 
36047
36323
 
@@ -44416,70 +44692,19 @@ export class StopwordsApi extends BaseAPI {
44416
44692
 
44417
44693
 
44418
44694
  /**
44419
- * StoreDocumentsApi - axios parameter creator
44695
+ * StoreCreationApi - axios parameter creator
44420
44696
  * @export
44421
44697
  */
44422
- export const StoreDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
44698
+ export const StoreCreationApiAxiosParamCreator = function (configuration?: Configuration) {
44423
44699
  return {
44424
44700
  /**
44425
- * 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.
44426
- * @summary Bulk document operations
44427
- * @param {string} xStoreID X-Store ID
44428
- * @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
44701
+ * Deletes (soft delete) the current store creation progress
44702
+ * @summary Delete store creation progress
44429
44703
  * @param {*} [options] Override http request option.
44430
44704
  * @throws {RequiredError}
44431
44705
  */
44432
- adminStoresXStoreIDDocumentsBulkPost: async (xStoreID: string, dataTypesBulkDocumentRequest: DataTypesBulkDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44433
- // verify required parameter 'xStoreID' is not null or undefined
44434
- assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'xStoreID', xStoreID)
44435
- // verify required parameter 'dataTypesBulkDocumentRequest' is not null or undefined
44436
- assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'dataTypesBulkDocumentRequest', dataTypesBulkDocumentRequest)
44437
- const localVarPath = `/admin/Stores/{xStoreID}/documents/bulk`
44438
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
44439
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44440
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44441
- let baseOptions;
44442
- if (configuration) {
44443
- baseOptions = configuration.baseOptions;
44444
- }
44445
-
44446
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44447
- const localVarHeaderParameter = {} as any;
44448
- const localVarQueryParameter = {} as any;
44449
-
44450
- // authentication BearerAuth required
44451
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44452
-
44453
-
44454
-
44455
- localVarHeaderParameter['Content-Type'] = 'application/json';
44456
-
44457
- setSearchParams(localVarUrlObj, localVarQueryParameter);
44458
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44459
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44460
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBulkDocumentRequest, localVarRequestOptions, configuration)
44461
-
44462
- return {
44463
- url: toPathString(localVarUrlObj),
44464
- options: localVarRequestOptions,
44465
- };
44466
- },
44467
- /**
44468
- * Deletes a document by ID from a store
44469
- * @summary Delete document
44470
- * @param {string} xStoreID X-Store ID
44471
- * @param {string} documentID Document ID
44472
- * @param {*} [options] Override http request option.
44473
- * @throws {RequiredError}
44474
- */
44475
- adminStoresXStoreIDDocumentsDocumentIDDelete: async (xStoreID: string, documentID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44476
- // verify required parameter 'xStoreID' is not null or undefined
44477
- assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'xStoreID', xStoreID)
44478
- // verify required parameter 'documentID' is not null or undefined
44479
- assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'documentID', documentID)
44480
- const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
44481
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
44482
- .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
44706
+ adminV1StoreCreationProgressDelete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44707
+ const localVarPath = `/admin/v1/store-creation/progress`;
44483
44708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
44484
44709
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44485
44710
  let baseOptions;
@@ -44506,21 +44731,480 @@ export const StoreDocumentsApiAxiosParamCreator = function (configuration?: Conf
44506
44731
  };
44507
44732
  },
44508
44733
  /**
44509
- * Retrieves a single document by ID from a store
44510
- * @summary Get single document
44511
- * @param {string} xStoreID X-Store ID
44512
- * @param {string} documentID Document ID
44734
+ * Retrieves the current step and state of store creation for the user
44735
+ * @summary Get current store creation progress
44513
44736
  * @param {*} [options] Override http request option.
44514
44737
  * @throws {RequiredError}
44515
44738
  */
44516
- adminStoresXStoreIDDocumentsDocumentIDGet: async (xStoreID: string, documentID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44517
- // verify required parameter 'xStoreID' is not null or undefined
44518
- assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'xStoreID', xStoreID)
44519
- // verify required parameter 'documentID' is not null or undefined
44520
- assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'documentID', documentID)
44521
- const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
44522
- .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
44523
- .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
44739
+ adminV1StoreCreationProgressGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44740
+ const localVarPath = `/admin/v1/store-creation/progress`;
44741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44743
+ let baseOptions;
44744
+ if (configuration) {
44745
+ baseOptions = configuration.baseOptions;
44746
+ }
44747
+
44748
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44749
+ const localVarHeaderParameter = {} as any;
44750
+ const localVarQueryParameter = {} as any;
44751
+
44752
+ // authentication BearerAuth required
44753
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44754
+
44755
+
44756
+
44757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44759
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44760
+
44761
+ return {
44762
+ url: toPathString(localVarUrlObj),
44763
+ options: localVarRequestOptions,
44764
+ };
44765
+ },
44766
+ /**
44767
+ * Uploads a custom schema JSON file for store data structure definition
44768
+ * @summary Upload custom schema for store
44769
+ * @param {File} file Schema JSON file
44770
+ * @param {*} [options] Override http request option.
44771
+ * @throws {RequiredError}
44772
+ */
44773
+ adminV1StoreCreationSchemaUploadPost: async (file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44774
+ // verify required parameter 'file' is not null or undefined
44775
+ assertParamExists('adminV1StoreCreationSchemaUploadPost', 'file', file)
44776
+ const localVarPath = `/admin/v1/store-creation/schema-upload`;
44777
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44779
+ let baseOptions;
44780
+ if (configuration) {
44781
+ baseOptions = configuration.baseOptions;
44782
+ }
44783
+
44784
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44785
+ const localVarHeaderParameter = {} as any;
44786
+ const localVarQueryParameter = {} as any;
44787
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
44788
+
44789
+ // authentication BearerAuth required
44790
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44791
+
44792
+
44793
+ if (file !== undefined) {
44794
+ localVarFormParams.append('file', file as any);
44795
+ }
44796
+
44797
+
44798
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
44799
+
44800
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44801
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44802
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44803
+ localVarRequestOptions.data = localVarFormParams;
44804
+
44805
+ return {
44806
+ url: toPathString(localVarUrlObj),
44807
+ options: localVarRequestOptions,
44808
+ };
44809
+ },
44810
+ /**
44811
+ * Updates a specific step in the store creation flow
44812
+ * @summary Update store creation step
44813
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
44814
+ * @param {*} [options] Override http request option.
44815
+ * @throws {RequiredError}
44816
+ */
44817
+ adminV1StoreCreationStepPost: async (dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44818
+ // verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
44819
+ assertParamExists('adminV1StoreCreationStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest)
44820
+ const localVarPath = `/admin/v1/store-creation/step`;
44821
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44822
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44823
+ let baseOptions;
44824
+ if (configuration) {
44825
+ baseOptions = configuration.baseOptions;
44826
+ }
44827
+
44828
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44829
+ const localVarHeaderParameter = {} as any;
44830
+ const localVarQueryParameter = {} as any;
44831
+
44832
+ // authentication BearerAuth required
44833
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44834
+
44835
+
44836
+
44837
+ localVarHeaderParameter['Content-Type'] = 'application/json';
44838
+
44839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44842
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreCreationRequest, localVarRequestOptions, configuration)
44843
+
44844
+ return {
44845
+ url: toPathString(localVarUrlObj),
44846
+ options: localVarRequestOptions,
44847
+ };
44848
+ },
44849
+ /**
44850
+ * Uploads a custom JSON or CSV file for store data import
44851
+ * @summary Upload custom data file for store
44852
+ * @param {number} storeId Store ID
44853
+ * @param {File} file Data file (JSON or CSV)
44854
+ * @param {*} [options] Override http request option.
44855
+ * @throws {RequiredError}
44856
+ */
44857
+ adminV1StoreCreationStoreIdUploadDataPost: async (storeId: number, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44858
+ // verify required parameter 'storeId' is not null or undefined
44859
+ assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'storeId', storeId)
44860
+ // verify required parameter 'file' is not null or undefined
44861
+ assertParamExists('adminV1StoreCreationStoreIdUploadDataPost', 'file', file)
44862
+ const localVarPath = `/admin/v1/store-creation/{storeId}/upload-data`
44863
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
44864
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44865
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44866
+ let baseOptions;
44867
+ if (configuration) {
44868
+ baseOptions = configuration.baseOptions;
44869
+ }
44870
+
44871
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44872
+ const localVarHeaderParameter = {} as any;
44873
+ const localVarQueryParameter = {} as any;
44874
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
44875
+
44876
+ // authentication BearerAuth required
44877
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
44878
+
44879
+
44880
+ if (file !== undefined) {
44881
+ localVarFormParams.append('file', file as any);
44882
+ }
44883
+
44884
+
44885
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
44886
+
44887
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44889
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44890
+ localVarRequestOptions.data = localVarFormParams;
44891
+
44892
+ return {
44893
+ url: toPathString(localVarUrlObj),
44894
+ options: localVarRequestOptions,
44895
+ };
44896
+ },
44897
+ }
44898
+ };
44899
+
44900
+ /**
44901
+ * StoreCreationApi - functional programming interface
44902
+ * @export
44903
+ */
44904
+ export const StoreCreationApiFp = function(configuration?: Configuration) {
44905
+ const localVarAxiosParamCreator = StoreCreationApiAxiosParamCreator(configuration)
44906
+ return {
44907
+ /**
44908
+ * Deletes (soft delete) the current store creation progress
44909
+ * @summary Delete store creation progress
44910
+ * @param {*} [options] Override http request option.
44911
+ * @throws {RequiredError}
44912
+ */
44913
+ async adminV1StoreCreationProgressDelete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
44914
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationProgressDelete(options);
44915
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44916
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationProgressDelete']?.[localVarOperationServerIndex]?.url;
44917
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44918
+ },
44919
+ /**
44920
+ * Retrieves the current step and state of store creation for the user
44921
+ * @summary Get current store creation progress
44922
+ * @param {*} [options] Override http request option.
44923
+ * @throws {RequiredError}
44924
+ */
44925
+ async adminV1StoreCreationProgressGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
44926
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationProgressGet(options);
44927
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44928
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationProgressGet']?.[localVarOperationServerIndex]?.url;
44929
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44930
+ },
44931
+ /**
44932
+ * Uploads a custom schema JSON file for store data structure definition
44933
+ * @summary Upload custom schema for store
44934
+ * @param {File} file Schema JSON file
44935
+ * @param {*} [options] Override http request option.
44936
+ * @throws {RequiredError}
44937
+ */
44938
+ async adminV1StoreCreationSchemaUploadPost(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
44939
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationSchemaUploadPost(file, options);
44940
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44941
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationSchemaUploadPost']?.[localVarOperationServerIndex]?.url;
44942
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44943
+ },
44944
+ /**
44945
+ * Updates a specific step in the store creation flow
44946
+ * @summary Update store creation step
44947
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
44948
+ * @param {*} [options] Override http request option.
44949
+ * @throws {RequiredError}
44950
+ */
44951
+ async adminV1StoreCreationStepPost(dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCreationResponseWrapper>> {
44952
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options);
44953
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44954
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStepPost']?.[localVarOperationServerIndex]?.url;
44955
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44956
+ },
44957
+ /**
44958
+ * Uploads a custom JSON or CSV file for store data import
44959
+ * @summary Upload custom data file for store
44960
+ * @param {number} storeId Store ID
44961
+ * @param {File} file Data file (JSON or CSV)
44962
+ * @param {*} [options] Override http request option.
44963
+ * @throws {RequiredError}
44964
+ */
44965
+ async adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
44966
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options);
44967
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
44968
+ const localVarOperationServerBasePath = operationServerMap['StoreCreationApi.adminV1StoreCreationStoreIdUploadDataPost']?.[localVarOperationServerIndex]?.url;
44969
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
44970
+ },
44971
+ }
44972
+ };
44973
+
44974
+ /**
44975
+ * StoreCreationApi - factory interface
44976
+ * @export
44977
+ */
44978
+ export const StoreCreationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
44979
+ const localVarFp = StoreCreationApiFp(configuration)
44980
+ return {
44981
+ /**
44982
+ * Deletes (soft delete) the current store creation progress
44983
+ * @summary Delete store creation progress
44984
+ * @param {*} [options] Override http request option.
44985
+ * @throws {RequiredError}
44986
+ */
44987
+ adminV1StoreCreationProgressDelete(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
44988
+ return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
44989
+ },
44990
+ /**
44991
+ * Retrieves the current step and state of store creation for the user
44992
+ * @summary Get current store creation progress
44993
+ * @param {*} [options] Override http request option.
44994
+ * @throws {RequiredError}
44995
+ */
44996
+ adminV1StoreCreationProgressGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
44997
+ return localVarFp.adminV1StoreCreationProgressGet(options).then((request) => request(axios, basePath));
44998
+ },
44999
+ /**
45000
+ * Uploads a custom schema JSON file for store data structure definition
45001
+ * @summary Upload custom schema for store
45002
+ * @param {File} file Schema JSON file
45003
+ * @param {*} [options] Override http request option.
45004
+ * @throws {RequiredError}
45005
+ */
45006
+ adminV1StoreCreationSchemaUploadPost(file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
45007
+ return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
45008
+ },
45009
+ /**
45010
+ * Updates a specific step in the store creation flow
45011
+ * @summary Update store creation step
45012
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
45013
+ * @param {*} [options] Override http request option.
45014
+ * @throws {RequiredError}
45015
+ */
45016
+ adminV1StoreCreationStepPost(dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCreationResponseWrapper> {
45017
+ return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
45018
+ },
45019
+ /**
45020
+ * Uploads a custom JSON or CSV file for store data import
45021
+ * @summary Upload custom data file for store
45022
+ * @param {number} storeId Store ID
45023
+ * @param {File} file Data file (JSON or CSV)
45024
+ * @param {*} [options] Override http request option.
45025
+ * @throws {RequiredError}
45026
+ */
45027
+ adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
45028
+ return localVarFp.adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(axios, basePath));
45029
+ },
45030
+ };
45031
+ };
45032
+
45033
+ /**
45034
+ * StoreCreationApi - object-oriented interface
45035
+ * @export
45036
+ * @class StoreCreationApi
45037
+ * @extends {BaseAPI}
45038
+ */
45039
+ export class StoreCreationApi extends BaseAPI {
45040
+ /**
45041
+ * Deletes (soft delete) the current store creation progress
45042
+ * @summary Delete store creation progress
45043
+ * @param {*} [options] Override http request option.
45044
+ * @throws {RequiredError}
45045
+ * @memberof StoreCreationApi
45046
+ */
45047
+ public adminV1StoreCreationProgressDelete(options?: RawAxiosRequestConfig) {
45048
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationProgressDelete(options).then((request) => request(this.axios, this.basePath));
45049
+ }
45050
+
45051
+ /**
45052
+ * Retrieves the current step and state of store creation for the user
45053
+ * @summary Get current store creation progress
45054
+ * @param {*} [options] Override http request option.
45055
+ * @throws {RequiredError}
45056
+ * @memberof StoreCreationApi
45057
+ */
45058
+ public adminV1StoreCreationProgressGet(options?: RawAxiosRequestConfig) {
45059
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationProgressGet(options).then((request) => request(this.axios, this.basePath));
45060
+ }
45061
+
45062
+ /**
45063
+ * Uploads a custom schema JSON file for store data structure definition
45064
+ * @summary Upload custom schema for store
45065
+ * @param {File} file Schema JSON file
45066
+ * @param {*} [options] Override http request option.
45067
+ * @throws {RequiredError}
45068
+ * @memberof StoreCreationApi
45069
+ */
45070
+ public adminV1StoreCreationSchemaUploadPost(file: File, options?: RawAxiosRequestConfig) {
45071
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(this.axios, this.basePath));
45072
+ }
45073
+
45074
+ /**
45075
+ * Updates a specific step in the store creation flow
45076
+ * @summary Update store creation step
45077
+ * @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
45078
+ * @param {*} [options] Override http request option.
45079
+ * @throws {RequiredError}
45080
+ * @memberof StoreCreationApi
45081
+ */
45082
+ public adminV1StoreCreationStepPost(dataTypesStoreCreationRequest: DataTypesStoreCreationRequest, options?: RawAxiosRequestConfig) {
45083
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
45084
+ }
45085
+
45086
+ /**
45087
+ * Uploads a custom JSON or CSV file for store data import
45088
+ * @summary Upload custom data file for store
45089
+ * @param {number} storeId Store ID
45090
+ * @param {File} file Data file (JSON or CSV)
45091
+ * @param {*} [options] Override http request option.
45092
+ * @throws {RequiredError}
45093
+ * @memberof StoreCreationApi
45094
+ */
45095
+ public adminV1StoreCreationStoreIdUploadDataPost(storeId: number, file: File, options?: RawAxiosRequestConfig) {
45096
+ return StoreCreationApiFp(this.configuration).adminV1StoreCreationStoreIdUploadDataPost(storeId, file, options).then((request) => request(this.axios, this.basePath));
45097
+ }
45098
+ }
45099
+
45100
+
45101
+
45102
+ /**
45103
+ * StoreDocumentsApi - axios parameter creator
45104
+ * @export
45105
+ */
45106
+ export const StoreDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
45107
+ return {
45108
+ /**
45109
+ * 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.
45110
+ * @summary Bulk document operations
45111
+ * @param {string} xStoreID X-Store ID
45112
+ * @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
45113
+ * @param {*} [options] Override http request option.
45114
+ * @throws {RequiredError}
45115
+ */
45116
+ adminStoresXStoreIDDocumentsBulkPost: async (xStoreID: string, dataTypesBulkDocumentRequest: DataTypesBulkDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45117
+ // verify required parameter 'xStoreID' is not null or undefined
45118
+ assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'xStoreID', xStoreID)
45119
+ // verify required parameter 'dataTypesBulkDocumentRequest' is not null or undefined
45120
+ assertParamExists('adminStoresXStoreIDDocumentsBulkPost', 'dataTypesBulkDocumentRequest', dataTypesBulkDocumentRequest)
45121
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/bulk`
45122
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
45123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45125
+ let baseOptions;
45126
+ if (configuration) {
45127
+ baseOptions = configuration.baseOptions;
45128
+ }
45129
+
45130
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
45131
+ const localVarHeaderParameter = {} as any;
45132
+ const localVarQueryParameter = {} as any;
45133
+
45134
+ // authentication BearerAuth required
45135
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
45136
+
45137
+
45138
+
45139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45140
+
45141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45144
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBulkDocumentRequest, localVarRequestOptions, configuration)
45145
+
45146
+ return {
45147
+ url: toPathString(localVarUrlObj),
45148
+ options: localVarRequestOptions,
45149
+ };
45150
+ },
45151
+ /**
45152
+ * Deletes a document by ID from a store
45153
+ * @summary Delete document
45154
+ * @param {string} xStoreID X-Store ID
45155
+ * @param {string} documentID Document ID
45156
+ * @param {*} [options] Override http request option.
45157
+ * @throws {RequiredError}
45158
+ */
45159
+ adminStoresXStoreIDDocumentsDocumentIDDelete: async (xStoreID: string, documentID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45160
+ // verify required parameter 'xStoreID' is not null or undefined
45161
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'xStoreID', xStoreID)
45162
+ // verify required parameter 'documentID' is not null or undefined
45163
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDDelete', 'documentID', documentID)
45164
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
45165
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
45166
+ .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
45167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45168
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45169
+ let baseOptions;
45170
+ if (configuration) {
45171
+ baseOptions = configuration.baseOptions;
45172
+ }
45173
+
45174
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
45175
+ const localVarHeaderParameter = {} as any;
45176
+ const localVarQueryParameter = {} as any;
45177
+
45178
+ // authentication BearerAuth required
45179
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
45180
+
45181
+
45182
+
45183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45185
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45186
+
45187
+ return {
45188
+ url: toPathString(localVarUrlObj),
45189
+ options: localVarRequestOptions,
45190
+ };
45191
+ },
45192
+ /**
45193
+ * Retrieves a single document by ID from a store
45194
+ * @summary Get single document
45195
+ * @param {string} xStoreID X-Store ID
45196
+ * @param {string} documentID Document ID
45197
+ * @param {*} [options] Override http request option.
45198
+ * @throws {RequiredError}
45199
+ */
45200
+ adminStoresXStoreIDDocumentsDocumentIDGet: async (xStoreID: string, documentID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45201
+ // verify required parameter 'xStoreID' is not null or undefined
45202
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'xStoreID', xStoreID)
45203
+ // verify required parameter 'documentID' is not null or undefined
45204
+ assertParamExists('adminStoresXStoreIDDocumentsDocumentIDGet', 'documentID', documentID)
45205
+ const localVarPath = `/admin/Stores/{xStoreID}/documents/{documentID}`
45206
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
45207
+ .replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
44524
45208
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
44525
45209
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44526
45210
  let baseOptions;
@@ -45831,6 +46515,84 @@ export class StoresApi extends BaseAPI {
45831
46515
  */
45832
46516
  export const SubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
45833
46517
  return {
46518
+ /**
46519
+ * Shows detailed preview of subscription cancellation including credit calculation, billing period info, and potential refund
46520
+ * @summary Preview subscription cancellation details
46521
+ * @param {SubscriptionRouteCancelPreviewRequest} subscriptionRouteCancelPreviewRequest Cancellation preview request
46522
+ * @param {*} [options] Override http request option.
46523
+ * @throws {RequiredError}
46524
+ */
46525
+ adminSubscriptionsCancelPreviewPost: async (subscriptionRouteCancelPreviewRequest: SubscriptionRouteCancelPreviewRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46526
+ // verify required parameter 'subscriptionRouteCancelPreviewRequest' is not null or undefined
46527
+ assertParamExists('adminSubscriptionsCancelPreviewPost', 'subscriptionRouteCancelPreviewRequest', subscriptionRouteCancelPreviewRequest)
46528
+ const localVarPath = `/admin/subscriptions/cancel/preview`;
46529
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46530
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46531
+ let baseOptions;
46532
+ if (configuration) {
46533
+ baseOptions = configuration.baseOptions;
46534
+ }
46535
+
46536
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
46537
+ const localVarHeaderParameter = {} as any;
46538
+ const localVarQueryParameter = {} as any;
46539
+
46540
+ // authentication BearerAuth required
46541
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
46542
+
46543
+
46544
+
46545
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46546
+
46547
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46549
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46550
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteCancelPreviewRequest, localVarRequestOptions, configuration)
46551
+
46552
+ return {
46553
+ url: toPathString(localVarUrlObj),
46554
+ options: localVarRequestOptions,
46555
+ };
46556
+ },
46557
+ /**
46558
+ * Cancels the subscription, removes unused credits, and processes refund if applicable
46559
+ * @summary Process subscription cancellation
46560
+ * @param {SubscriptionRouteCancelProcessRequest} subscriptionRouteCancelProcessRequest Cancellation process request
46561
+ * @param {*} [options] Override http request option.
46562
+ * @throws {RequiredError}
46563
+ */
46564
+ adminSubscriptionsCancelProcessPost: async (subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46565
+ // verify required parameter 'subscriptionRouteCancelProcessRequest' is not null or undefined
46566
+ assertParamExists('adminSubscriptionsCancelProcessPost', 'subscriptionRouteCancelProcessRequest', subscriptionRouteCancelProcessRequest)
46567
+ const localVarPath = `/admin/subscriptions/cancel/process`;
46568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46569
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46570
+ let baseOptions;
46571
+ if (configuration) {
46572
+ baseOptions = configuration.baseOptions;
46573
+ }
46574
+
46575
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
46576
+ const localVarHeaderParameter = {} as any;
46577
+ const localVarQueryParameter = {} as any;
46578
+
46579
+ // authentication BearerAuth required
46580
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
46581
+
46582
+
46583
+
46584
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46585
+
46586
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46588
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46589
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteCancelProcessRequest, localVarRequestOptions, configuration)
46590
+
46591
+ return {
46592
+ url: toPathString(localVarUrlObj),
46593
+ options: localVarRequestOptions,
46594
+ };
46595
+ },
45834
46596
  /**
45835
46597
  * Updates Subscription information by ID.
45836
46598
  * @summary Update an existing Subscription
@@ -46034,6 +46796,32 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
46034
46796
  export const SubscriptionsApiFp = function(configuration?: Configuration) {
46035
46797
  const localVarAxiosParamCreator = SubscriptionsApiAxiosParamCreator(configuration)
46036
46798
  return {
46799
+ /**
46800
+ * Shows detailed preview of subscription cancellation including credit calculation, billing period info, and potential refund
46801
+ * @summary Preview subscription cancellation details
46802
+ * @param {SubscriptionRouteCancelPreviewRequest} subscriptionRouteCancelPreviewRequest Cancellation preview request
46803
+ * @param {*} [options] Override http request option.
46804
+ * @throws {RequiredError}
46805
+ */
46806
+ async adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest: SubscriptionRouteCancelPreviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
46807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest, options);
46808
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
46809
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsCancelPreviewPost']?.[localVarOperationServerIndex]?.url;
46810
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
46811
+ },
46812
+ /**
46813
+ * Cancels the subscription, removes unused credits, and processes refund if applicable
46814
+ * @summary Process subscription cancellation
46815
+ * @param {SubscriptionRouteCancelProcessRequest} subscriptionRouteCancelProcessRequest Cancellation process request
46816
+ * @param {*} [options] Override http request option.
46817
+ * @throws {RequiredError}
46818
+ */
46819
+ async adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
46820
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options);
46821
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
46822
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsCancelProcessPost']?.[localVarOperationServerIndex]?.url;
46823
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
46824
+ },
46037
46825
  /**
46038
46826
  * Updates Subscription information by ID.
46039
46827
  * @summary Update an existing Subscription
@@ -46110,6 +46898,26 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
46110
46898
  export const SubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
46111
46899
  const localVarFp = SubscriptionsApiFp(configuration)
46112
46900
  return {
46901
+ /**
46902
+ * Shows detailed preview of subscription cancellation including credit calculation, billing period info, and potential refund
46903
+ * @summary Preview subscription cancellation details
46904
+ * @param {SubscriptionRouteCancelPreviewRequest} subscriptionRouteCancelPreviewRequest Cancellation preview request
46905
+ * @param {*} [options] Override http request option.
46906
+ * @throws {RequiredError}
46907
+ */
46908
+ adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest: SubscriptionRouteCancelPreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
46909
+ return localVarFp.adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest, options).then((request) => request(axios, basePath));
46910
+ },
46911
+ /**
46912
+ * Cancels the subscription, removes unused credits, and processes refund if applicable
46913
+ * @summary Process subscription cancellation
46914
+ * @param {SubscriptionRouteCancelProcessRequest} subscriptionRouteCancelProcessRequest Cancellation process request
46915
+ * @param {*} [options] Override http request option.
46916
+ * @throws {RequiredError}
46917
+ */
46918
+ adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
46919
+ return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
46920
+ },
46113
46921
  /**
46114
46922
  * Updates Subscription information by ID.
46115
46923
  * @summary Update an existing Subscription
@@ -46171,6 +46979,30 @@ export const SubscriptionsApiFactory = function (configuration?: Configuration,
46171
46979
  * @extends {BaseAPI}
46172
46980
  */
46173
46981
  export class SubscriptionsApi extends BaseAPI {
46982
+ /**
46983
+ * Shows detailed preview of subscription cancellation including credit calculation, billing period info, and potential refund
46984
+ * @summary Preview subscription cancellation details
46985
+ * @param {SubscriptionRouteCancelPreviewRequest} subscriptionRouteCancelPreviewRequest Cancellation preview request
46986
+ * @param {*} [options] Override http request option.
46987
+ * @throws {RequiredError}
46988
+ * @memberof SubscriptionsApi
46989
+ */
46990
+ public adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest: SubscriptionRouteCancelPreviewRequest, options?: RawAxiosRequestConfig) {
46991
+ return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelPreviewPost(subscriptionRouteCancelPreviewRequest, options).then((request) => request(this.axios, this.basePath));
46992
+ }
46993
+
46994
+ /**
46995
+ * Cancels the subscription, removes unused credits, and processes refund if applicable
46996
+ * @summary Process subscription cancellation
46997
+ * @param {SubscriptionRouteCancelProcessRequest} subscriptionRouteCancelProcessRequest Cancellation process request
46998
+ * @param {*} [options] Override http request option.
46999
+ * @throws {RequiredError}
47000
+ * @memberof SubscriptionsApi
47001
+ */
47002
+ public adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig) {
47003
+ return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
47004
+ }
47005
+
46174
47006
  /**
46175
47007
  * Updates Subscription information by ID.
46176
47008
  * @summary Update an existing Subscription