@seekora-ai/admin-api 1.0.94 → 1.0.95

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
@@ -10440,6 +10440,12 @@ export interface DataTypesCreditChart {
10440
10440
  * @memberof DataTypesCreditChart
10441
10441
  */
10442
10442
  'metric'?: string;
10443
+ /**
10444
+ *
10445
+ * @type {DataTypesPaginationMetadata}
10446
+ * @memberof DataTypesCreditChart
10447
+ */
10448
+ 'pagination'?: DataTypesPaginationMetadata;
10443
10449
  /**
10444
10450
  *
10445
10451
  * @type {string}
@@ -10452,6 +10458,12 @@ export interface DataTypesCreditChart {
10452
10458
  * @memberof DataTypesCreditChart
10453
10459
  */
10454
10460
  'total_credits'?: number;
10461
+ /**
10462
+ *
10463
+ * @type {number}
10464
+ * @memberof DataTypesCreditChart
10465
+ */
10466
+ 'total_points'?: number;
10455
10467
  }
10456
10468
  /**
10457
10469
  *
@@ -10577,10 +10589,16 @@ export interface DataTypesCreditConsumptionResult {
10577
10589
  export interface DataTypesCreditConsumptionSummary {
10578
10590
  /**
10579
10591
  *
10580
- * @type {Array<DataTypesDailyConsumption>}
10592
+ * @type {DataTypesPaginationMetadata}
10593
+ * @memberof DataTypesCreditConsumptionSummary
10594
+ */
10595
+ 'consumption_pagination'?: DataTypesPaginationMetadata;
10596
+ /**
10597
+ *
10598
+ * @type {DataTypesPaginationMetadata}
10581
10599
  * @memberof DataTypesCreditConsumptionSummary
10582
10600
  */
10583
- 'daily_consumption'?: Array<DataTypesDailyConsumption>;
10601
+ 'endpoint_pagination'?: DataTypesPaginationMetadata;
10584
10602
  /**
10585
10603
  *
10586
10604
  * @type {number}
@@ -10593,18 +10611,36 @@ export interface DataTypesCreditConsumptionSummary {
10593
10611
  * @memberof DataTypesCreditConsumptionSummary
10594
10612
  */
10595
10613
  'search_requests'?: number;
10614
+ /**
10615
+ * Renamed from daily_consumption
10616
+ * @type {Array<DataTypesTimeSeriesConsumption>}
10617
+ * @memberof DataTypesCreditConsumptionSummary
10618
+ */
10619
+ 'time_series_consumption'?: Array<DataTypesTimeSeriesConsumption>;
10596
10620
  /**
10597
10621
  *
10598
10622
  * @type {Array<DataTypesEndpointUsage>}
10599
10623
  * @memberof DataTypesCreditConsumptionSummary
10600
10624
  */
10601
10625
  'top_endpoints'?: Array<DataTypesEndpointUsage>;
10626
+ /**
10627
+ *
10628
+ * @type {number}
10629
+ * @memberof DataTypesCreditConsumptionSummary
10630
+ */
10631
+ 'total_buckets'?: number;
10602
10632
  /**
10603
10633
  *
10604
10634
  * @type {number}
10605
10635
  * @memberof DataTypesCreditConsumptionSummary
10606
10636
  */
10607
10637
  'total_credits_consumed'?: number;
10638
+ /**
10639
+ *
10640
+ * @type {number}
10641
+ * @memberof DataTypesCreditConsumptionSummary
10642
+ */
10643
+ 'total_endpoints'?: number;
10608
10644
  }
10609
10645
  /**
10610
10646
  *
@@ -11064,37 +11100,6 @@ export interface DataTypesCustomerInfoDto {
11064
11100
  */
11065
11101
  'phone'?: string;
11066
11102
  }
11067
- /**
11068
- *
11069
- * @export
11070
- * @interface DataTypesDailyConsumption
11071
- */
11072
- export interface DataTypesDailyConsumption {
11073
- /**
11074
- *
11075
- * @type {number}
11076
- * @memberof DataTypesDailyConsumption
11077
- */
11078
- 'credits_used'?: number;
11079
- /**
11080
- *
11081
- * @type {string}
11082
- * @memberof DataTypesDailyConsumption
11083
- */
11084
- 'date'?: string;
11085
- /**
11086
- *
11087
- * @type {number}
11088
- * @memberof DataTypesDailyConsumption
11089
- */
11090
- 'record_count'?: number;
11091
- /**
11092
- *
11093
- * @type {number}
11094
- * @memberof DataTypesDailyConsumption
11095
- */
11096
- 'search_count'?: number;
11097
- }
11098
11103
  /**
11099
11104
  *
11100
11105
  * @export
@@ -15664,6 +15669,43 @@ export interface DataTypesPaginationInfo {
15664
15669
  */
15665
15670
  'total_pages'?: number;
15666
15671
  }
15672
+ /**
15673
+ *
15674
+ * @export
15675
+ * @interface DataTypesPaginationMetadata
15676
+ */
15677
+ export interface DataTypesPaginationMetadata {
15678
+ /**
15679
+ * Whether there are more pages
15680
+ * @type {boolean}
15681
+ * @memberof DataTypesPaginationMetadata
15682
+ */
15683
+ 'has_more'?: boolean;
15684
+ /**
15685
+ * Current page number (1-based)
15686
+ * @type {number}
15687
+ * @memberof DataTypesPaginationMetadata
15688
+ */
15689
+ 'page'?: number;
15690
+ /**
15691
+ * Items per page
15692
+ * @type {number}
15693
+ * @memberof DataTypesPaginationMetadata
15694
+ */
15695
+ 'page_size'?: number;
15696
+ /**
15697
+ * Total number of items
15698
+ * @type {number}
15699
+ * @memberof DataTypesPaginationMetadata
15700
+ */
15701
+ 'total_items'?: number;
15702
+ /**
15703
+ * Total number of pages
15704
+ * @type {number}
15705
+ * @memberof DataTypesPaginationMetadata
15706
+ */
15707
+ 'total_pages'?: number;
15708
+ }
15667
15709
  /**
15668
15710
  *
15669
15711
  * @export
@@ -16027,7 +16069,13 @@ export interface DataTypesPeriodInfo {
16027
16069
  */
16028
16070
  'end_date'?: string;
16029
16071
  /**
16030
- * \"April 1, 2025 to October 31, 2025\"
16072
+ * \"minute\", \"hour\", \"day\", \"week\", \"month\"
16073
+ * @type {string}
16074
+ * @memberof DataTypesPeriodInfo
16075
+ */
16076
+ 'granularity'?: string;
16077
+ /**
16078
+ * \"October 2025\"
16031
16079
  * @type {string}
16032
16080
  * @memberof DataTypesPeriodInfo
16033
16081
  */
@@ -19425,6 +19473,12 @@ export interface DataTypesSynonymEntry {
19425
19473
  * @interface DataTypesTableCell
19426
19474
  */
19427
19475
  export interface DataTypesTableCell {
19476
+ /**
19477
+ * Optional: raw datetime for headers with dates
19478
+ * @type {string}
19479
+ * @memberof DataTypesTableCell
19480
+ */
19481
+ 'date'?: string;
19428
19482
  /**
19429
19483
  * \"header\", \"data\", \"total\"
19430
19484
  * @type {string}
@@ -19608,6 +19662,37 @@ export interface DataTypesTaskRun {
19608
19662
  */
19609
19663
  'task_run_id'?: number;
19610
19664
  }
19665
+ /**
19666
+ *
19667
+ * @export
19668
+ * @interface DataTypesTimeSeriesConsumption
19669
+ */
19670
+ export interface DataTypesTimeSeriesConsumption {
19671
+ /**
19672
+ *
19673
+ * @type {number}
19674
+ * @memberof DataTypesTimeSeriesConsumption
19675
+ */
19676
+ 'credits_used'?: number;
19677
+ /**
19678
+ *
19679
+ * @type {string}
19680
+ * @memberof DataTypesTimeSeriesConsumption
19681
+ */
19682
+ 'date'?: string;
19683
+ /**
19684
+ *
19685
+ * @type {number}
19686
+ * @memberof DataTypesTimeSeriesConsumption
19687
+ */
19688
+ 'record_count'?: number;
19689
+ /**
19690
+ *
19691
+ * @type {number}
19692
+ * @memberof DataTypesTimeSeriesConsumption
19693
+ */
19694
+ 'search_count'?: number;
19695
+ }
19611
19696
  /**
19612
19697
  *
19613
19698
  * @export
@@ -20133,6 +20218,12 @@ export interface DataTypesUploadsourceDataResponse {
20133
20218
  * @interface DataTypesUsageBreakdown
20134
20219
  */
20135
20220
  export interface DataTypesUsageBreakdown {
20221
+ /**
20222
+ *
20223
+ * @type {string}
20224
+ * @memberof DataTypesUsageBreakdown
20225
+ */
20226
+ 'granularity'?: string;
20136
20227
  /**
20137
20228
  *
20138
20229
  * @type {Array<DataTypesMetricData>}
@@ -20151,6 +20242,12 @@ export interface DataTypesUsageBreakdown {
20151
20242
  * @memberof DataTypesUsageBreakdown
20152
20243
  */
20153
20244
  'table_data'?: Array<Array<DataTypesTableCell>>;
20245
+ /**
20246
+ *
20247
+ * @type {number}
20248
+ * @memberof DataTypesUsageBreakdown
20249
+ */
20250
+ 'total_buckets'?: number;
20154
20251
  }
20155
20252
  /**
20156
20253
  *
@@ -20165,13 +20262,13 @@ export interface DataTypesUsageDetailsResponse {
20165
20262
  */
20166
20263
  'breakdown'?: DataTypesUsageBreakdown;
20167
20264
  /**
20168
- * Credit consumption charts
20265
+ * Credit consumption charts with pagination
20169
20266
  * @type {Array<DataTypesCreditChart>}
20170
20267
  * @memberof DataTypesUsageDetailsResponse
20171
20268
  */
20172
20269
  'credit_charts'?: Array<DataTypesCreditChart>;
20173
20270
  /**
20174
- * Credit consumption summary
20271
+ * Credit consumption summary with pagination
20175
20272
  * @type {DataTypesCreditConsumptionSummary}
20176
20273
  * @memberof DataTypesUsageDetailsResponse
20177
20274
  */
@@ -29890,14 +29987,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29890
29987
  };
29891
29988
  },
29892
29989
  /**
29893
- * Returns detailed usage information with charts and breakdown
29894
- * @summary Get usage details
29895
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
29896
- * @param {string} [endDate] End date (YYYY-MM-DD format)
29990
+ * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
29991
+ * @summary Get usage details with granularity and pagination
29992
+ * @param {string} [xstoreid] Filter by specific store ID
29993
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339 format)
29994
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339 format)
29995
+ * @param {AdminBillingUsageDetailsGetGranularityEnum} [granularity] Time granularity
29996
+ * @param {number} [chartPage] Chart data page number (1-based)
29997
+ * @param {number} [chartPageSize] Chart data items per page
29998
+ * @param {number} [endpointPage] Endpoints page number (1-based)
29999
+ * @param {number} [endpointPageSize] Endpoints items per page
30000
+ * @param {number} [consumptionPage] Consumption page number (1-based)
30001
+ * @param {number} [consumptionPageSize] Consumption items per page
29897
30002
  * @param {*} [options] Override http request option.
29898
30003
  * @throws {RequiredError}
29899
30004
  */
29900
- adminBillingUsageDetailsGet: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30005
+ adminBillingUsageDetailsGet: async (xstoreid?: string, startDate?: string, endDate?: string, granularity?: AdminBillingUsageDetailsGetGranularityEnum, chartPage?: number, chartPageSize?: number, endpointPage?: number, endpointPageSize?: number, consumptionPage?: number, consumptionPageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29901
30006
  const localVarPath = `/admin/billing/usage-details`;
29902
30007
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29903
30008
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29913,6 +30018,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29913
30018
  // authentication BearerAuth required
29914
30019
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
29915
30020
 
30021
+ if (xstoreid !== undefined) {
30022
+ localVarQueryParameter['xstoreid'] = xstoreid;
30023
+ }
30024
+
29916
30025
  if (startDate !== undefined) {
29917
30026
  localVarQueryParameter['start_date'] = startDate;
29918
30027
  }
@@ -29921,6 +30030,34 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29921
30030
  localVarQueryParameter['end_date'] = endDate;
29922
30031
  }
29923
30032
 
30033
+ if (granularity !== undefined) {
30034
+ localVarQueryParameter['granularity'] = granularity;
30035
+ }
30036
+
30037
+ if (chartPage !== undefined) {
30038
+ localVarQueryParameter['chart_page'] = chartPage;
30039
+ }
30040
+
30041
+ if (chartPageSize !== undefined) {
30042
+ localVarQueryParameter['chart_page_size'] = chartPageSize;
30043
+ }
30044
+
30045
+ if (endpointPage !== undefined) {
30046
+ localVarQueryParameter['endpoint_page'] = endpointPage;
30047
+ }
30048
+
30049
+ if (endpointPageSize !== undefined) {
30050
+ localVarQueryParameter['endpoint_page_size'] = endpointPageSize;
30051
+ }
30052
+
30053
+ if (consumptionPage !== undefined) {
30054
+ localVarQueryParameter['consumption_page'] = consumptionPage;
30055
+ }
30056
+
30057
+ if (consumptionPageSize !== undefined) {
30058
+ localVarQueryParameter['consumption_page_size'] = consumptionPageSize;
30059
+ }
30060
+
29924
30061
 
29925
30062
 
29926
30063
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -30250,15 +30387,23 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30250
30387
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30251
30388
  },
30252
30389
  /**
30253
- * Returns detailed usage information with charts and breakdown
30254
- * @summary Get usage details
30255
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
30256
- * @param {string} [endDate] End date (YYYY-MM-DD format)
30390
+ * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
30391
+ * @summary Get usage details with granularity and pagination
30392
+ * @param {string} [xstoreid] Filter by specific store ID
30393
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339 format)
30394
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339 format)
30395
+ * @param {AdminBillingUsageDetailsGetGranularityEnum} [granularity] Time granularity
30396
+ * @param {number} [chartPage] Chart data page number (1-based)
30397
+ * @param {number} [chartPageSize] Chart data items per page
30398
+ * @param {number} [endpointPage] Endpoints page number (1-based)
30399
+ * @param {number} [endpointPageSize] Endpoints items per page
30400
+ * @param {number} [consumptionPage] Consumption page number (1-based)
30401
+ * @param {number} [consumptionPageSize] Consumption items per page
30257
30402
  * @param {*} [options] Override http request option.
30258
30403
  * @throws {RequiredError}
30259
30404
  */
30260
- async adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse>> {
30261
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingUsageDetailsGet(startDate, endDate, options);
30405
+ async adminBillingUsageDetailsGet(xstoreid?: string, startDate?: string, endDate?: string, granularity?: AdminBillingUsageDetailsGetGranularityEnum, chartPage?: number, chartPageSize?: number, endpointPage?: number, endpointPageSize?: number, consumptionPage?: number, consumptionPageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse>> {
30406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingUsageDetailsGet(xstoreid, startDate, endDate, granularity, chartPage, chartPageSize, endpointPage, endpointPageSize, consumptionPage, consumptionPageSize, options);
30262
30407
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30263
30408
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingUsageDetailsGet']?.[localVarOperationServerIndex]?.url;
30264
30409
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30518,15 +30663,23 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
30518
30663
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
30519
30664
  },
30520
30665
  /**
30521
- * Returns detailed usage information with charts and breakdown
30522
- * @summary Get usage details
30523
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
30524
- * @param {string} [endDate] End date (YYYY-MM-DD format)
30666
+ * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
30667
+ * @summary Get usage details with granularity and pagination
30668
+ * @param {string} [xstoreid] Filter by specific store ID
30669
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339 format)
30670
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339 format)
30671
+ * @param {AdminBillingUsageDetailsGetGranularityEnum} [granularity] Time granularity
30672
+ * @param {number} [chartPage] Chart data page number (1-based)
30673
+ * @param {number} [chartPageSize] Chart data items per page
30674
+ * @param {number} [endpointPage] Endpoints page number (1-based)
30675
+ * @param {number} [endpointPageSize] Endpoints items per page
30676
+ * @param {number} [consumptionPage] Consumption page number (1-based)
30677
+ * @param {number} [consumptionPageSize] Consumption items per page
30525
30678
  * @param {*} [options] Override http request option.
30526
30679
  * @throws {RequiredError}
30527
30680
  */
30528
- adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse> {
30529
- return localVarFp.adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(axios, basePath));
30681
+ adminBillingUsageDetailsGet(xstoreid?: string, startDate?: string, endDate?: string, granularity?: AdminBillingUsageDetailsGetGranularityEnum, chartPage?: number, chartPageSize?: number, endpointPage?: number, endpointPageSize?: number, consumptionPage?: number, consumptionPageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesUsageDetailsResponse> {
30682
+ return localVarFp.adminBillingUsageDetailsGet(xstoreid, startDate, endDate, granularity, chartPage, chartPageSize, endpointPage, endpointPageSize, consumptionPage, consumptionPageSize, options).then((request) => request(axios, basePath));
30530
30683
  },
30531
30684
  };
30532
30685
  };
@@ -30825,19 +30978,38 @@ export class BillingDashboardApi extends BaseAPI {
30825
30978
  }
30826
30979
 
30827
30980
  /**
30828
- * Returns detailed usage information with charts and breakdown
30829
- * @summary Get usage details
30830
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
30831
- * @param {string} [endDate] End date (YYYY-MM-DD format)
30981
+ * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
30982
+ * @summary Get usage details with granularity and pagination
30983
+ * @param {string} [xstoreid] Filter by specific store ID
30984
+ * @param {string} [startDate] Start date (YYYY-MM-DD or RFC3339 format)
30985
+ * @param {string} [endDate] End date (YYYY-MM-DD or RFC3339 format)
30986
+ * @param {AdminBillingUsageDetailsGetGranularityEnum} [granularity] Time granularity
30987
+ * @param {number} [chartPage] Chart data page number (1-based)
30988
+ * @param {number} [chartPageSize] Chart data items per page
30989
+ * @param {number} [endpointPage] Endpoints page number (1-based)
30990
+ * @param {number} [endpointPageSize] Endpoints items per page
30991
+ * @param {number} [consumptionPage] Consumption page number (1-based)
30992
+ * @param {number} [consumptionPageSize] Consumption items per page
30832
30993
  * @param {*} [options] Override http request option.
30833
30994
  * @throws {RequiredError}
30834
30995
  * @memberof BillingDashboardApi
30835
30996
  */
30836
- public adminBillingUsageDetailsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
30837
- return BillingDashboardApiFp(this.configuration).adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
30997
+ public adminBillingUsageDetailsGet(xstoreid?: string, startDate?: string, endDate?: string, granularity?: AdminBillingUsageDetailsGetGranularityEnum, chartPage?: number, chartPageSize?: number, endpointPage?: number, endpointPageSize?: number, consumptionPage?: number, consumptionPageSize?: number, options?: RawAxiosRequestConfig) {
30998
+ return BillingDashboardApiFp(this.configuration).adminBillingUsageDetailsGet(xstoreid, startDate, endDate, granularity, chartPage, chartPageSize, endpointPage, endpointPageSize, consumptionPage, consumptionPageSize, options).then((request) => request(this.axios, this.basePath));
30838
30999
  }
30839
31000
  }
30840
31001
 
31002
+ /**
31003
+ * @export
31004
+ */
31005
+ export const AdminBillingUsageDetailsGetGranularityEnum = {
31006
+ Minute: 'minute',
31007
+ Hour: 'hour',
31008
+ Day: 'day',
31009
+ Week: 'week',
31010
+ Month: 'month'
31011
+ } as const;
31012
+ export type AdminBillingUsageDetailsGetGranularityEnum = typeof AdminBillingUsageDetailsGetGranularityEnum[keyof typeof AdminBillingUsageDetailsGetGranularityEnum];
30841
31013
 
30842
31014
 
30843
31015
  /**
@@ -50243,6 +50415,144 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
50243
50415
  options: localVarRequestOptions,
50244
50416
  };
50245
50417
  },
50418
+ /**
50419
+ * Get schema options for a specific store by xStoreID
50420
+ * @summary Get store schema options
50421
+ * @param {string} xStoreID X-Store ID
50422
+ * @param {*} [options] Override http request option.
50423
+ * @throws {RequiredError}
50424
+ */
50425
+ adminStoresXStoreIDSchemaOptionsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
50426
+ // verify required parameter 'xStoreID' is not null or undefined
50427
+ assertParamExists('adminStoresXStoreIDSchemaOptionsGet', 'xStoreID', xStoreID)
50428
+ const localVarPath = `/admin/stores/{xStoreID}/schema-options`
50429
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
50430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50432
+ let baseOptions;
50433
+ if (configuration) {
50434
+ baseOptions = configuration.baseOptions;
50435
+ }
50436
+
50437
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50438
+ const localVarHeaderParameter = {} as any;
50439
+ const localVarQueryParameter = {} as any;
50440
+
50441
+ // authentication BearerAuth required
50442
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
50443
+
50444
+
50445
+
50446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
50447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50448
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
50449
+
50450
+ return {
50451
+ url: toPathString(localVarUrlObj),
50452
+ options: localVarRequestOptions,
50453
+ };
50454
+ },
50455
+ /**
50456
+ * Perform search on a specific store by xStoreID
50457
+ * @summary Get store search results
50458
+ * @param {string} xStoreID X-Store ID
50459
+ * @param {string} query Search query
50460
+ * @param {number} [page] Page number
50461
+ * @param {number} [pageSize] Page size
50462
+ * @param {*} [options] Override http request option.
50463
+ * @throws {RequiredError}
50464
+ */
50465
+ adminStoresXStoreIDSearchGet: async (xStoreID: string, query: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
50466
+ // verify required parameter 'xStoreID' is not null or undefined
50467
+ assertParamExists('adminStoresXStoreIDSearchGet', 'xStoreID', xStoreID)
50468
+ // verify required parameter 'query' is not null or undefined
50469
+ assertParamExists('adminStoresXStoreIDSearchGet', 'query', query)
50470
+ const localVarPath = `/admin/stores/{xStoreID}/search`
50471
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
50472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50474
+ let baseOptions;
50475
+ if (configuration) {
50476
+ baseOptions = configuration.baseOptions;
50477
+ }
50478
+
50479
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50480
+ const localVarHeaderParameter = {} as any;
50481
+ const localVarQueryParameter = {} as any;
50482
+
50483
+ // authentication BearerAuth required
50484
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
50485
+
50486
+ if (query !== undefined) {
50487
+ localVarQueryParameter['query'] = query;
50488
+ }
50489
+
50490
+ if (page !== undefined) {
50491
+ localVarQueryParameter['page'] = page;
50492
+ }
50493
+
50494
+ if (pageSize !== undefined) {
50495
+ localVarQueryParameter['pageSize'] = pageSize;
50496
+ }
50497
+
50498
+
50499
+
50500
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
50501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50502
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
50503
+
50504
+ return {
50505
+ url: toPathString(localVarUrlObj),
50506
+ options: localVarRequestOptions,
50507
+ };
50508
+ },
50509
+ /**
50510
+ * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
50511
+ * @summary Update store step configuration
50512
+ * @param {string} xStoreID X-Store ID
50513
+ * @param {string} step Step name (displayAttributes, searchableAttributes, relevancyOrder)
50514
+ * @param {object} body Configuration data
50515
+ * @param {*} [options] Override http request option.
50516
+ * @throws {RequiredError}
50517
+ */
50518
+ adminStoresXStoreIDStepStepPut: async (xStoreID: string, step: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
50519
+ // verify required parameter 'xStoreID' is not null or undefined
50520
+ assertParamExists('adminStoresXStoreIDStepStepPut', 'xStoreID', xStoreID)
50521
+ // verify required parameter 'step' is not null or undefined
50522
+ assertParamExists('adminStoresXStoreIDStepStepPut', 'step', step)
50523
+ // verify required parameter 'body' is not null or undefined
50524
+ assertParamExists('adminStoresXStoreIDStepStepPut', 'body', body)
50525
+ const localVarPath = `/admin/stores/{xStoreID}/step/{step}`
50526
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
50527
+ .replace(`{${"step"}}`, encodeURIComponent(String(step)));
50528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50530
+ let baseOptions;
50531
+ if (configuration) {
50532
+ baseOptions = configuration.baseOptions;
50533
+ }
50534
+
50535
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
50536
+ const localVarHeaderParameter = {} as any;
50537
+ const localVarQueryParameter = {} as any;
50538
+
50539
+ // authentication BearerAuth required
50540
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
50541
+
50542
+
50543
+
50544
+ localVarHeaderParameter['Content-Type'] = 'application/json';
50545
+
50546
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
50547
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50548
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
50549
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
50550
+
50551
+ return {
50552
+ url: toPathString(localVarUrlObj),
50553
+ options: localVarRequestOptions,
50554
+ };
50555
+ },
50246
50556
  /**
50247
50557
  * Generates and assigns a new X-Store Secret for an existing store, keeping the same X-Store ID.
50248
50558
  * @summary Regenerate X-Store Secret
@@ -50422,6 +50732,50 @@ export const StoresApiFp = function(configuration?: Configuration) {
50422
50732
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDDefaultsGet']?.[localVarOperationServerIndex]?.url;
50423
50733
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50424
50734
  },
50735
+ /**
50736
+ * Get schema options for a specific store by xStoreID
50737
+ * @summary Get store schema options
50738
+ * @param {string} xStoreID X-Store ID
50739
+ * @param {*} [options] Override http request option.
50740
+ * @throws {RequiredError}
50741
+ */
50742
+ async adminStoresXStoreIDSchemaOptionsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSchemaOptionsResponseWrapper>> {
50743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options);
50744
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50745
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDSchemaOptionsGet']?.[localVarOperationServerIndex]?.url;
50746
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50747
+ },
50748
+ /**
50749
+ * Perform search on a specific store by xStoreID
50750
+ * @summary Get store search results
50751
+ * @param {string} xStoreID X-Store ID
50752
+ * @param {string} query Search query
50753
+ * @param {number} [page] Page number
50754
+ * @param {number} [pageSize] Page size
50755
+ * @param {*} [options] Override http request option.
50756
+ * @throws {RequiredError}
50757
+ */
50758
+ async adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper>> {
50759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options);
50760
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50761
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDSearchGet']?.[localVarOperationServerIndex]?.url;
50762
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50763
+ },
50764
+ /**
50765
+ * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
50766
+ * @summary Update store step configuration
50767
+ * @param {string} xStoreID X-Store ID
50768
+ * @param {string} step Step name (displayAttributes, searchableAttributes, relevancyOrder)
50769
+ * @param {object} body Configuration data
50770
+ * @param {*} [options] Override http request option.
50771
+ * @throws {RequiredError}
50772
+ */
50773
+ async adminStoresXStoreIDStepStepPut(xStoreID: string, step: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
50774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStepStepPut(xStoreID, step, body, options);
50775
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50776
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDStepStepPut']?.[localVarOperationServerIndex]?.url;
50777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50778
+ },
50425
50779
  /**
50426
50780
  * Generates and assigns a new X-Store Secret for an existing store, keeping the same X-Store ID.
50427
50781
  * @summary Regenerate X-Store Secret
@@ -50547,6 +50901,41 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
50547
50901
  adminStoresXStoreIDDefaultsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper> {
50548
50902
  return localVarFp.adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(axios, basePath));
50549
50903
  },
50904
+ /**
50905
+ * Get schema options for a specific store by xStoreID
50906
+ * @summary Get store schema options
50907
+ * @param {string} xStoreID X-Store ID
50908
+ * @param {*} [options] Override http request option.
50909
+ * @throws {RequiredError}
50910
+ */
50911
+ adminStoresXStoreIDSchemaOptionsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaOptionsResponseWrapper> {
50912
+ return localVarFp.adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(axios, basePath));
50913
+ },
50914
+ /**
50915
+ * Perform search on a specific store by xStoreID
50916
+ * @summary Get store search results
50917
+ * @param {string} xStoreID X-Store ID
50918
+ * @param {string} query Search query
50919
+ * @param {number} [page] Page number
50920
+ * @param {number} [pageSize] Page size
50921
+ * @param {*} [options] Override http request option.
50922
+ * @throws {RequiredError}
50923
+ */
50924
+ adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOnboardingTestSearchResponseWrapper> {
50925
+ return localVarFp.adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(axios, basePath));
50926
+ },
50927
+ /**
50928
+ * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
50929
+ * @summary Update store step configuration
50930
+ * @param {string} xStoreID X-Store ID
50931
+ * @param {string} step Step name (displayAttributes, searchableAttributes, relevancyOrder)
50932
+ * @param {object} body Configuration data
50933
+ * @param {*} [options] Override http request option.
50934
+ * @throws {RequiredError}
50935
+ */
50936
+ adminStoresXStoreIDStepStepPut(xStoreID: string, step: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
50937
+ return localVarFp.adminStoresXStoreIDStepStepPut(xStoreID, step, body, options).then((request) => request(axios, basePath));
50938
+ },
50550
50939
  /**
50551
50940
  * Generates and assigns a new X-Store Secret for an existing store, keeping the same X-Store ID.
50552
50941
  * @summary Regenerate X-Store Secret
@@ -50689,6 +51078,47 @@ export class StoresApi extends BaseAPI {
50689
51078
  return StoresApiFp(this.configuration).adminStoresXStoreIDDefaultsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
50690
51079
  }
50691
51080
 
51081
+ /**
51082
+ * Get schema options for a specific store by xStoreID
51083
+ * @summary Get store schema options
51084
+ * @param {string} xStoreID X-Store ID
51085
+ * @param {*} [options] Override http request option.
51086
+ * @throws {RequiredError}
51087
+ * @memberof StoresApi
51088
+ */
51089
+ public adminStoresXStoreIDSchemaOptionsGet(xStoreID: string, options?: RawAxiosRequestConfig) {
51090
+ return StoresApiFp(this.configuration).adminStoresXStoreIDSchemaOptionsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
51091
+ }
51092
+
51093
+ /**
51094
+ * Perform search on a specific store by xStoreID
51095
+ * @summary Get store search results
51096
+ * @param {string} xStoreID X-Store ID
51097
+ * @param {string} query Search query
51098
+ * @param {number} [page] Page number
51099
+ * @param {number} [pageSize] Page size
51100
+ * @param {*} [options] Override http request option.
51101
+ * @throws {RequiredError}
51102
+ * @memberof StoresApi
51103
+ */
51104
+ public adminStoresXStoreIDSearchGet(xStoreID: string, query: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
51105
+ return StoresApiFp(this.configuration).adminStoresXStoreIDSearchGet(xStoreID, query, page, pageSize, options).then((request) => request(this.axios, this.basePath));
51106
+ }
51107
+
51108
+ /**
51109
+ * Update store configuration for specific steps (displayAttributes, searchableAttributes, relevancyOrder)
51110
+ * @summary Update store step configuration
51111
+ * @param {string} xStoreID X-Store ID
51112
+ * @param {string} step Step name (displayAttributes, searchableAttributes, relevancyOrder)
51113
+ * @param {object} body Configuration data
51114
+ * @param {*} [options] Override http request option.
51115
+ * @throws {RequiredError}
51116
+ * @memberof StoresApi
51117
+ */
51118
+ public adminStoresXStoreIDStepStepPut(xStoreID: string, step: string, body: object, options?: RawAxiosRequestConfig) {
51119
+ return StoresApiFp(this.configuration).adminStoresXStoreIDStepStepPut(xStoreID, step, body, options).then((request) => request(this.axios, this.basePath));
51120
+ }
51121
+
50692
51122
  /**
50693
51123
  * Generates and assigns a new X-Store Secret for an existing store, keeping the same X-Store ID.
50694
51124
  * @summary Regenerate X-Store Secret