@seekora-ai/admin-api 1.2.5 → 1.2.6

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
@@ -13034,6 +13034,12 @@ export interface DataTypesBillingAlertRequest {
13034
13034
  * @memberof DataTypesBillingAlertRequest
13035
13035
  */
13036
13036
  'alert_type'?: DataTypesBillingAlertRequestAlertTypeEnum;
13037
+ /**
13038
+ *
13039
+ * @type {boolean}
13040
+ * @memberof DataTypesBillingAlertRequest
13041
+ */
13042
+ 'applies_to_all_stores'?: boolean;
13037
13043
  /**
13038
13044
  * Minutes between alerts (default: 60)
13039
13045
  * @type {number}
@@ -13058,6 +13064,12 @@ export interface DataTypesBillingAlertRequest {
13058
13064
  * @memberof DataTypesBillingAlertRequest
13059
13065
  */
13060
13066
  'notification_channels'?: { [key: string]: any; };
13067
+ /**
13068
+ *
13069
+ * @type {number}
13070
+ * @memberof DataTypesBillingAlertRequest
13071
+ */
13072
+ 'rolling_days'?: number;
13061
13073
  /**
13062
13074
  * Percentage threshold 0-100 (exclusive with threshold_value)
13063
13075
  * @type {number}
@@ -13076,6 +13088,12 @@ export interface DataTypesBillingAlertRequest {
13076
13088
  * @memberof DataTypesBillingAlertRequest
13077
13089
  */
13078
13090
  'threshold_value'?: number;
13091
+ /**
13092
+ *
13093
+ * @type {string}
13094
+ * @memberof DataTypesBillingAlertRequest
13095
+ */
13096
+ 'window_type'?: string;
13079
13097
  /**
13080
13098
  * Alternative to store_id - will be converted to store_id
13081
13099
  * @type {string}
@@ -32157,6 +32175,49 @@ export interface DataTypesStoreLevelMenuRightWithMenu {
32157
32175
  */
32158
32176
  'xStoreId'?: string;
32159
32177
  }
32178
+ /**
32179
+ *
32180
+ * @export
32181
+ * @interface DataTypesStoreQuotaRequest
32182
+ */
32183
+ export interface DataTypesStoreQuotaRequest {
32184
+ /**
32185
+ *
32186
+ * @type {string}
32187
+ * @memberof DataTypesStoreQuotaRequest
32188
+ */
32189
+ 'enforcement_mode'?: string;
32190
+ /**
32191
+ *
32192
+ * @type {boolean}
32193
+ * @memberof DataTypesStoreQuotaRequest
32194
+ */
32195
+ 'is_enabled'?: boolean;
32196
+ /**
32197
+ *
32198
+ * @type {number}
32199
+ * @memberof DataTypesStoreQuotaRequest
32200
+ */
32201
+ 'quota_amount'?: number;
32202
+ /**
32203
+ *
32204
+ * @type {number}
32205
+ * @memberof DataTypesStoreQuotaRequest
32206
+ */
32207
+ 'rolling_days'?: number;
32208
+ /**
32209
+ *
32210
+ * @type {string}
32211
+ * @memberof DataTypesStoreQuotaRequest
32212
+ */
32213
+ 'store_id'?: string;
32214
+ /**
32215
+ *
32216
+ * @type {string}
32217
+ * @memberof DataTypesStoreQuotaRequest
32218
+ */
32219
+ 'window_type'?: string;
32220
+ }
32160
32221
  /**
32161
32222
  *
32162
32223
  * @export
@@ -56086,6 +56147,74 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
56086
56147
 
56087
56148
 
56088
56149
 
56150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56152
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
56153
+
56154
+ return {
56155
+ url: toPathString(localVarUrlObj),
56156
+ options: localVarRequestOptions,
56157
+ };
56158
+ },
56159
+ /**
56160
+ * Returns paginated alert trigger history with optional filters
56161
+ * @summary Get alert trigger history
56162
+ * @param {string} [storeId] Filter by store xStoreID
56163
+ * @param {string} [from] Start date (YYYY-MM-DD)
56164
+ * @param {string} [to] End date (YYYY-MM-DD)
56165
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
56166
+ * @param {string} [status] Filter by status (resolved, unresolved)
56167
+ * @param {number} [page] Page number
56168
+ * @param {number} [perPage] Items per page
56169
+ * @param {*} [options] Override http request option.
56170
+ * @throws {RequiredError}
56171
+ */
56172
+ adminBillingAlertHistoryGet: async (storeId?: string, from?: string, to?: string, alertType?: string, status?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56173
+ const localVarPath = `/admin/billing/alert-history`;
56174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56176
+ let baseOptions;
56177
+ if (configuration) {
56178
+ baseOptions = configuration.baseOptions;
56179
+ }
56180
+
56181
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56182
+ const localVarHeaderParameter = {} as any;
56183
+ const localVarQueryParameter = {} as any;
56184
+
56185
+ // authentication BearerAuth required
56186
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
56187
+
56188
+ if (storeId !== undefined) {
56189
+ localVarQueryParameter['store_id'] = storeId;
56190
+ }
56191
+
56192
+ if (from !== undefined) {
56193
+ localVarQueryParameter['from'] = from;
56194
+ }
56195
+
56196
+ if (to !== undefined) {
56197
+ localVarQueryParameter['to'] = to;
56198
+ }
56199
+
56200
+ if (alertType !== undefined) {
56201
+ localVarQueryParameter['alert_type'] = alertType;
56202
+ }
56203
+
56204
+ if (status !== undefined) {
56205
+ localVarQueryParameter['status'] = status;
56206
+ }
56207
+
56208
+ if (page !== undefined) {
56209
+ localVarQueryParameter['page'] = page;
56210
+ }
56211
+
56212
+ if (perPage !== undefined) {
56213
+ localVarQueryParameter['per_page'] = perPage;
56214
+ }
56215
+
56216
+
56217
+
56089
56218
  setSearchParams(localVarUrlObj, localVarQueryParameter);
56090
56219
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56091
56220
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -57762,6 +57891,290 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
57762
57891
 
57763
57892
 
57764
57893
 
57894
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57895
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57896
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57897
+
57898
+ return {
57899
+ url: toPathString(localVarUrlObj),
57900
+ options: localVarRequestOptions,
57901
+ };
57902
+ },
57903
+ /**
57904
+ * Returns paginated list of per-store credit quotas for the organization
57905
+ * @summary List store credit quotas
57906
+ * @param {number} [page] Page number
57907
+ * @param {number} [perPage] Items per page
57908
+ * @param {string} [search] Search by store name
57909
+ * @param {*} [options] Override http request option.
57910
+ * @throws {RequiredError}
57911
+ */
57912
+ adminBillingStoreQuotasGet: async (page?: number, perPage?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57913
+ const localVarPath = `/admin/billing/store-quotas`;
57914
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57915
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57916
+ let baseOptions;
57917
+ if (configuration) {
57918
+ baseOptions = configuration.baseOptions;
57919
+ }
57920
+
57921
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57922
+ const localVarHeaderParameter = {} as any;
57923
+ const localVarQueryParameter = {} as any;
57924
+
57925
+ // authentication BearerAuth required
57926
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57927
+
57928
+ if (page !== undefined) {
57929
+ localVarQueryParameter['page'] = page;
57930
+ }
57931
+
57932
+ if (perPage !== undefined) {
57933
+ localVarQueryParameter['per_page'] = perPage;
57934
+ }
57935
+
57936
+ if (search !== undefined) {
57937
+ localVarQueryParameter['search'] = search;
57938
+ }
57939
+
57940
+
57941
+
57942
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57944
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57945
+
57946
+ return {
57947
+ url: toPathString(localVarUrlObj),
57948
+ options: localVarRequestOptions,
57949
+ };
57950
+ },
57951
+ /**
57952
+ * Creates a per-store credit quota with configurable window and enforcement
57953
+ * @summary Create store credit quota
57954
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
57955
+ * @param {*} [options] Override http request option.
57956
+ * @throws {RequiredError}
57957
+ */
57958
+ adminBillingStoreQuotasPost: async (dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57959
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
57960
+ assertParamExists('adminBillingStoreQuotasPost', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest)
57961
+ const localVarPath = `/admin/billing/store-quotas`;
57962
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57963
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57964
+ let baseOptions;
57965
+ if (configuration) {
57966
+ baseOptions = configuration.baseOptions;
57967
+ }
57968
+
57969
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57970
+ const localVarHeaderParameter = {} as any;
57971
+ const localVarQueryParameter = {} as any;
57972
+
57973
+ // authentication BearerAuth required
57974
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57975
+
57976
+
57977
+
57978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57979
+
57980
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57981
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57982
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57983
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration)
57984
+
57985
+ return {
57986
+ url: toPathString(localVarUrlObj),
57987
+ options: localVarRequestOptions,
57988
+ };
57989
+ },
57990
+ /**
57991
+ * Deletes a per-store credit quota by UUID
57992
+ * @summary Delete store credit quota
57993
+ * @param {string} quotaUuid Quota UUID
57994
+ * @param {*} [options] Override http request option.
57995
+ * @throws {RequiredError}
57996
+ */
57997
+ adminBillingStoreQuotasQuotaUuidDelete: async (quotaUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57998
+ // verify required parameter 'quotaUuid' is not null or undefined
57999
+ assertParamExists('adminBillingStoreQuotasQuotaUuidDelete', 'quotaUuid', quotaUuid)
58000
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
58001
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
58002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58003
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58004
+ let baseOptions;
58005
+ if (configuration) {
58006
+ baseOptions = configuration.baseOptions;
58007
+ }
58008
+
58009
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
58010
+ const localVarHeaderParameter = {} as any;
58011
+ const localVarQueryParameter = {} as any;
58012
+
58013
+ // authentication BearerAuth required
58014
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58015
+
58016
+
58017
+
58018
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58019
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58020
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58021
+
58022
+ return {
58023
+ url: toPathString(localVarUrlObj),
58024
+ options: localVarRequestOptions,
58025
+ };
58026
+ },
58027
+ /**
58028
+ * Returns a single store credit quota by UUID
58029
+ * @summary Get store credit quota
58030
+ * @param {string} quotaUuid Quota UUID
58031
+ * @param {*} [options] Override http request option.
58032
+ * @throws {RequiredError}
58033
+ */
58034
+ adminBillingStoreQuotasQuotaUuidGet: async (quotaUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58035
+ // verify required parameter 'quotaUuid' is not null or undefined
58036
+ assertParamExists('adminBillingStoreQuotasQuotaUuidGet', 'quotaUuid', quotaUuid)
58037
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
58038
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
58039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58041
+ let baseOptions;
58042
+ if (configuration) {
58043
+ baseOptions = configuration.baseOptions;
58044
+ }
58045
+
58046
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58047
+ const localVarHeaderParameter = {} as any;
58048
+ const localVarQueryParameter = {} as any;
58049
+
58050
+ // authentication BearerAuth required
58051
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58052
+
58053
+
58054
+
58055
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58057
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58058
+
58059
+ return {
58060
+ url: toPathString(localVarUrlObj),
58061
+ options: localVarRequestOptions,
58062
+ };
58063
+ },
58064
+ /**
58065
+ * Updates an existing per-store credit quota
58066
+ * @summary Update store credit quota
58067
+ * @param {string} quotaUuid Quota UUID
58068
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
58069
+ * @param {*} [options] Override http request option.
58070
+ * @throws {RequiredError}
58071
+ */
58072
+ adminBillingStoreQuotasQuotaUuidPut: async (quotaUuid: string, dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58073
+ // verify required parameter 'quotaUuid' is not null or undefined
58074
+ assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'quotaUuid', quotaUuid)
58075
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
58076
+ assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest)
58077
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
58078
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
58079
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58080
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58081
+ let baseOptions;
58082
+ if (configuration) {
58083
+ baseOptions = configuration.baseOptions;
58084
+ }
58085
+
58086
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
58087
+ const localVarHeaderParameter = {} as any;
58088
+ const localVarQueryParameter = {} as any;
58089
+
58090
+ // authentication BearerAuth required
58091
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58092
+
58093
+
58094
+
58095
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58096
+
58097
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58099
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58100
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration)
58101
+
58102
+ return {
58103
+ url: toPathString(localVarUrlObj),
58104
+ options: localVarRequestOptions,
58105
+ };
58106
+ },
58107
+ /**
58108
+ * Returns paginated usage summary for all stores in the organization
58109
+ * @summary Get all stores usage summary
58110
+ * @param {number} [page] Page number
58111
+ * @param {number} [perPage] Items per page
58112
+ * @param {*} [options] Override http request option.
58113
+ * @throws {RequiredError}
58114
+ */
58115
+ adminBillingStoreUsageGet: async (page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58116
+ const localVarPath = `/admin/billing/store-usage`;
58117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58119
+ let baseOptions;
58120
+ if (configuration) {
58121
+ baseOptions = configuration.baseOptions;
58122
+ }
58123
+
58124
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58125
+ const localVarHeaderParameter = {} as any;
58126
+ const localVarQueryParameter = {} as any;
58127
+
58128
+ // authentication BearerAuth required
58129
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58130
+
58131
+ if (page !== undefined) {
58132
+ localVarQueryParameter['page'] = page;
58133
+ }
58134
+
58135
+ if (perPage !== undefined) {
58136
+ localVarQueryParameter['per_page'] = perPage;
58137
+ }
58138
+
58139
+
58140
+
58141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58144
+
58145
+ return {
58146
+ url: toPathString(localVarUrlObj),
58147
+ options: localVarRequestOptions,
58148
+ };
58149
+ },
58150
+ /**
58151
+ * Returns detailed usage breakdown for a single store
58152
+ * @summary Get single store usage detail
58153
+ * @param {string} xStoreId Store external ID
58154
+ * @param {*} [options] Override http request option.
58155
+ * @throws {RequiredError}
58156
+ */
58157
+ adminBillingStoreUsageXStoreIdGet: async (xStoreId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58158
+ // verify required parameter 'xStoreId' is not null or undefined
58159
+ assertParamExists('adminBillingStoreUsageXStoreIdGet', 'xStoreId', xStoreId)
58160
+ const localVarPath = `/admin/billing/store-usage/{xStoreId}`
58161
+ .replace(`{${"xStoreId"}}`, encodeURIComponent(String(xStoreId)));
58162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58164
+ let baseOptions;
58165
+ if (configuration) {
58166
+ baseOptions = configuration.baseOptions;
58167
+ }
58168
+
58169
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58170
+ const localVarHeaderParameter = {} as any;
58171
+ const localVarQueryParameter = {} as any;
58172
+
58173
+ // authentication BearerAuth required
58174
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58175
+
58176
+
58177
+
57765
58178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
57766
58179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57767
58180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -58025,6 +58438,25 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
58025
58438
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingActivePlanGet']?.[localVarOperationServerIndex]?.url;
58026
58439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58027
58440
  },
58441
+ /**
58442
+ * Returns paginated alert trigger history with optional filters
58443
+ * @summary Get alert trigger history
58444
+ * @param {string} [storeId] Filter by store xStoreID
58445
+ * @param {string} [from] Start date (YYYY-MM-DD)
58446
+ * @param {string} [to] End date (YYYY-MM-DD)
58447
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
58448
+ * @param {string} [status] Filter by status (resolved, unresolved)
58449
+ * @param {number} [page] Page number
58450
+ * @param {number} [perPage] Items per page
58451
+ * @param {*} [options] Override http request option.
58452
+ * @throws {RequiredError}
58453
+ */
58454
+ async adminBillingAlertHistoryGet(storeId?: string, from?: string, to?: string, alertType?: string, status?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
58455
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options);
58456
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58457
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertHistoryGet']?.[localVarOperationServerIndex]?.url;
58458
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58459
+ },
58028
58460
  /**
58029
58461
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
58030
58462
  * @summary Get billing alerts
@@ -58552,6 +58984,101 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
58552
58984
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']?.[localVarOperationServerIndex]?.url;
58553
58985
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58554
58986
  },
58987
+ /**
58988
+ * Returns paginated list of per-store credit quotas for the organization
58989
+ * @summary List store credit quotas
58990
+ * @param {number} [page] Page number
58991
+ * @param {number} [perPage] Items per page
58992
+ * @param {string} [search] Search by store name
58993
+ * @param {*} [options] Override http request option.
58994
+ * @throws {RequiredError}
58995
+ */
58996
+ async adminBillingStoreQuotasGet(page?: number, perPage?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
58997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreQuotasGet(page, perPage, search, options);
58998
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58999
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasGet']?.[localVarOperationServerIndex]?.url;
59000
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59001
+ },
59002
+ /**
59003
+ * Creates a per-store credit quota with configurable window and enforcement
59004
+ * @summary Create store credit quota
59005
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
59006
+ * @param {*} [options] Override http request option.
59007
+ * @throws {RequiredError}
59008
+ */
59009
+ async adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59010
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options);
59011
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59012
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasPost']?.[localVarOperationServerIndex]?.url;
59013
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59014
+ },
59015
+ /**
59016
+ * Deletes a per-store credit quota by UUID
59017
+ * @summary Delete store credit quota
59018
+ * @param {string} quotaUuid Quota UUID
59019
+ * @param {*} [options] Override http request option.
59020
+ * @throws {RequiredError}
59021
+ */
59022
+ async adminBillingStoreQuotasQuotaUuidDelete(quotaUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59023
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options);
59024
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59025
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidDelete']?.[localVarOperationServerIndex]?.url;
59026
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59027
+ },
59028
+ /**
59029
+ * Returns a single store credit quota by UUID
59030
+ * @summary Get store credit quota
59031
+ * @param {string} quotaUuid Quota UUID
59032
+ * @param {*} [options] Override http request option.
59033
+ * @throws {RequiredError}
59034
+ */
59035
+ async adminBillingStoreQuotasQuotaUuidGet(quotaUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59036
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options);
59037
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59038
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidGet']?.[localVarOperationServerIndex]?.url;
59039
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59040
+ },
59041
+ /**
59042
+ * Updates an existing per-store credit quota
59043
+ * @summary Update store credit quota
59044
+ * @param {string} quotaUuid Quota UUID
59045
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
59046
+ * @param {*} [options] Override http request option.
59047
+ * @throws {RequiredError}
59048
+ */
59049
+ async adminBillingStoreQuotasQuotaUuidPut(quotaUuid: string, dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options);
59051
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59052
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidPut']?.[localVarOperationServerIndex]?.url;
59053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59054
+ },
59055
+ /**
59056
+ * Returns paginated usage summary for all stores in the organization
59057
+ * @summary Get all stores usage summary
59058
+ * @param {number} [page] Page number
59059
+ * @param {number} [perPage] Items per page
59060
+ * @param {*} [options] Override http request option.
59061
+ * @throws {RequiredError}
59062
+ */
59063
+ async adminBillingStoreUsageGet(page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreUsageGet(page, perPage, options);
59065
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59066
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreUsageGet']?.[localVarOperationServerIndex]?.url;
59067
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59068
+ },
59069
+ /**
59070
+ * Returns detailed usage breakdown for a single store
59071
+ * @summary Get single store usage detail
59072
+ * @param {string} xStoreId Store external ID
59073
+ * @param {*} [options] Override http request option.
59074
+ * @throws {RequiredError}
59075
+ */
59076
+ async adminBillingStoreUsageXStoreIdGet(xStoreId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
59077
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingStoreUsageXStoreIdGet(xStoreId, options);
59078
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59079
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingStoreUsageXStoreIdGet']?.[localVarOperationServerIndex]?.url;
59080
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59081
+ },
58555
59082
  /**
58556
59083
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
58557
59084
  * @summary Get usage details with granularity and pagination
@@ -58644,6 +59171,22 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
58644
59171
  adminBillingActivePlanGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesCurrentPlanInfo> {
58645
59172
  return localVarFp.adminBillingActivePlanGet(options).then((request) => request(axios, basePath));
58646
59173
  },
59174
+ /**
59175
+ * Returns paginated alert trigger history with optional filters
59176
+ * @summary Get alert trigger history
59177
+ * @param {string} [storeId] Filter by store xStoreID
59178
+ * @param {string} [from] Start date (YYYY-MM-DD)
59179
+ * @param {string} [to] End date (YYYY-MM-DD)
59180
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
59181
+ * @param {string} [status] Filter by status (resolved, unresolved)
59182
+ * @param {number} [page] Page number
59183
+ * @param {number} [perPage] Items per page
59184
+ * @param {*} [options] Override http request option.
59185
+ * @throws {RequiredError}
59186
+ */
59187
+ adminBillingAlertHistoryGet(storeId?: string, from?: string, to?: string, alertType?: string, status?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59188
+ return localVarFp.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(axios, basePath));
59189
+ },
58647
59190
  /**
58648
59191
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
58649
59192
  * @summary Get billing alerts
@@ -59066,6 +59609,80 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
59066
59609
  adminBillingSavedCardsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59067
59610
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
59068
59611
  },
59612
+ /**
59613
+ * Returns paginated list of per-store credit quotas for the organization
59614
+ * @summary List store credit quotas
59615
+ * @param {number} [page] Page number
59616
+ * @param {number} [perPage] Items per page
59617
+ * @param {string} [search] Search by store name
59618
+ * @param {*} [options] Override http request option.
59619
+ * @throws {RequiredError}
59620
+ */
59621
+ adminBillingStoreQuotasGet(page?: number, perPage?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59622
+ return localVarFp.adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(axios, basePath));
59623
+ },
59624
+ /**
59625
+ * Creates a per-store credit quota with configurable window and enforcement
59626
+ * @summary Create store credit quota
59627
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
59628
+ * @param {*} [options] Override http request option.
59629
+ * @throws {RequiredError}
59630
+ */
59631
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59632
+ return localVarFp.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
59633
+ },
59634
+ /**
59635
+ * Deletes a per-store credit quota by UUID
59636
+ * @summary Delete store credit quota
59637
+ * @param {string} quotaUuid Quota UUID
59638
+ * @param {*} [options] Override http request option.
59639
+ * @throws {RequiredError}
59640
+ */
59641
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59642
+ return localVarFp.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(axios, basePath));
59643
+ },
59644
+ /**
59645
+ * Returns a single store credit quota by UUID
59646
+ * @summary Get store credit quota
59647
+ * @param {string} quotaUuid Quota UUID
59648
+ * @param {*} [options] Override http request option.
59649
+ * @throws {RequiredError}
59650
+ */
59651
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59652
+ return localVarFp.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(axios, basePath));
59653
+ },
59654
+ /**
59655
+ * Updates an existing per-store credit quota
59656
+ * @summary Update store credit quota
59657
+ * @param {string} quotaUuid Quota UUID
59658
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
59659
+ * @param {*} [options] Override http request option.
59660
+ * @throws {RequiredError}
59661
+ */
59662
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid: string, dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59663
+ return localVarFp.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
59664
+ },
59665
+ /**
59666
+ * Returns paginated usage summary for all stores in the organization
59667
+ * @summary Get all stores usage summary
59668
+ * @param {number} [page] Page number
59669
+ * @param {number} [perPage] Items per page
59670
+ * @param {*} [options] Override http request option.
59671
+ * @throws {RequiredError}
59672
+ */
59673
+ adminBillingStoreUsageGet(page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59674
+ return localVarFp.adminBillingStoreUsageGet(page, perPage, options).then((request) => request(axios, basePath));
59675
+ },
59676
+ /**
59677
+ * Returns detailed usage breakdown for a single store
59678
+ * @summary Get single store usage detail
59679
+ * @param {string} xStoreId Store external ID
59680
+ * @param {*} [options] Override http request option.
59681
+ * @throws {RequiredError}
59682
+ */
59683
+ adminBillingStoreUsageXStoreIdGet(xStoreId: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
59684
+ return localVarFp.adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(axios, basePath));
59685
+ },
59069
59686
  /**
59070
59687
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
59071
59688
  * @summary Get usage details with granularity and pagination
@@ -59145,6 +59762,24 @@ export class BillingDashboardApi extends BaseAPI {
59145
59762
  return BillingDashboardApiFp(this.configuration).adminBillingActivePlanGet(options).then((request) => request(this.axios, this.basePath));
59146
59763
  }
59147
59764
 
59765
+ /**
59766
+ * Returns paginated alert trigger history with optional filters
59767
+ * @summary Get alert trigger history
59768
+ * @param {string} [storeId] Filter by store xStoreID
59769
+ * @param {string} [from] Start date (YYYY-MM-DD)
59770
+ * @param {string} [to] End date (YYYY-MM-DD)
59771
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
59772
+ * @param {string} [status] Filter by status (resolved, unresolved)
59773
+ * @param {number} [page] Page number
59774
+ * @param {number} [perPage] Items per page
59775
+ * @param {*} [options] Override http request option.
59776
+ * @throws {RequiredError}
59777
+ * @memberof BillingDashboardApi
59778
+ */
59779
+ public adminBillingAlertHistoryGet(storeId?: string, from?: string, to?: string, alertType?: string, status?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
59780
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(this.axios, this.basePath));
59781
+ }
59782
+
59148
59783
  /**
59149
59784
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
59150
59785
  * @summary Get billing alerts
@@ -59637,6 +60272,94 @@ export class BillingDashboardApi extends BaseAPI {
59637
60272
  return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
59638
60273
  }
59639
60274
 
60275
+ /**
60276
+ * Returns paginated list of per-store credit quotas for the organization
60277
+ * @summary List store credit quotas
60278
+ * @param {number} [page] Page number
60279
+ * @param {number} [perPage] Items per page
60280
+ * @param {string} [search] Search by store name
60281
+ * @param {*} [options] Override http request option.
60282
+ * @throws {RequiredError}
60283
+ * @memberof BillingDashboardApi
60284
+ */
60285
+ public adminBillingStoreQuotasGet(page?: number, perPage?: number, search?: string, options?: RawAxiosRequestConfig) {
60286
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(this.axios, this.basePath));
60287
+ }
60288
+
60289
+ /**
60290
+ * Creates a per-store credit quota with configurable window and enforcement
60291
+ * @summary Create store credit quota
60292
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
60293
+ * @param {*} [options] Override http request option.
60294
+ * @throws {RequiredError}
60295
+ * @memberof BillingDashboardApi
60296
+ */
60297
+ public adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig) {
60298
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
60299
+ }
60300
+
60301
+ /**
60302
+ * Deletes a per-store credit quota by UUID
60303
+ * @summary Delete store credit quota
60304
+ * @param {string} quotaUuid Quota UUID
60305
+ * @param {*} [options] Override http request option.
60306
+ * @throws {RequiredError}
60307
+ * @memberof BillingDashboardApi
60308
+ */
60309
+ public adminBillingStoreQuotasQuotaUuidDelete(quotaUuid: string, options?: RawAxiosRequestConfig) {
60310
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(this.axios, this.basePath));
60311
+ }
60312
+
60313
+ /**
60314
+ * Returns a single store credit quota by UUID
60315
+ * @summary Get store credit quota
60316
+ * @param {string} quotaUuid Quota UUID
60317
+ * @param {*} [options] Override http request option.
60318
+ * @throws {RequiredError}
60319
+ * @memberof BillingDashboardApi
60320
+ */
60321
+ public adminBillingStoreQuotasQuotaUuidGet(quotaUuid: string, options?: RawAxiosRequestConfig) {
60322
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(this.axios, this.basePath));
60323
+ }
60324
+
60325
+ /**
60326
+ * Updates an existing per-store credit quota
60327
+ * @summary Update store credit quota
60328
+ * @param {string} quotaUuid Quota UUID
60329
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
60330
+ * @param {*} [options] Override http request option.
60331
+ * @throws {RequiredError}
60332
+ * @memberof BillingDashboardApi
60333
+ */
60334
+ public adminBillingStoreQuotasQuotaUuidPut(quotaUuid: string, dataTypesStoreQuotaRequest: DataTypesStoreQuotaRequest, options?: RawAxiosRequestConfig) {
60335
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
60336
+ }
60337
+
60338
+ /**
60339
+ * Returns paginated usage summary for all stores in the organization
60340
+ * @summary Get all stores usage summary
60341
+ * @param {number} [page] Page number
60342
+ * @param {number} [perPage] Items per page
60343
+ * @param {*} [options] Override http request option.
60344
+ * @throws {RequiredError}
60345
+ * @memberof BillingDashboardApi
60346
+ */
60347
+ public adminBillingStoreUsageGet(page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
60348
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageGet(page, perPage, options).then((request) => request(this.axios, this.basePath));
60349
+ }
60350
+
60351
+ /**
60352
+ * Returns detailed usage breakdown for a single store
60353
+ * @summary Get single store usage detail
60354
+ * @param {string} xStoreId Store external ID
60355
+ * @param {*} [options] Override http request option.
60356
+ * @throws {RequiredError}
60357
+ * @memberof BillingDashboardApi
60358
+ */
60359
+ public adminBillingStoreUsageXStoreIdGet(xStoreId: string, options?: RawAxiosRequestConfig) {
60360
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(this.axios, this.basePath));
60361
+ }
60362
+
59640
60363
  /**
59641
60364
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
59642
60365
  * @summary Get usage details with granularity and pagination