@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/dist/esm/api.js CHANGED
@@ -14457,6 +14457,61 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
14457
14457
  options: localVarRequestOptions,
14458
14458
  };
14459
14459
  }),
14460
+ /**
14461
+ * Returns paginated alert trigger history with optional filters
14462
+ * @summary Get alert trigger history
14463
+ * @param {string} [storeId] Filter by store xStoreID
14464
+ * @param {string} [from] Start date (YYYY-MM-DD)
14465
+ * @param {string} [to] End date (YYYY-MM-DD)
14466
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
14467
+ * @param {string} [status] Filter by status (resolved, unresolved)
14468
+ * @param {number} [page] Page number
14469
+ * @param {number} [perPage] Items per page
14470
+ * @param {*} [options] Override http request option.
14471
+ * @throws {RequiredError}
14472
+ */
14473
+ adminBillingAlertHistoryGet: (storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1) => __awaiter(this, [storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1], void 0, function* (storeId, from, to, alertType, status, page, perPage, options = {}) {
14474
+ const localVarPath = `/admin/billing/alert-history`;
14475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14476
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14477
+ let baseOptions;
14478
+ if (configuration) {
14479
+ baseOptions = configuration.baseOptions;
14480
+ }
14481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14482
+ const localVarHeaderParameter = {};
14483
+ const localVarQueryParameter = {};
14484
+ // authentication BearerAuth required
14485
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
14486
+ if (storeId !== undefined) {
14487
+ localVarQueryParameter['store_id'] = storeId;
14488
+ }
14489
+ if (from !== undefined) {
14490
+ localVarQueryParameter['from'] = from;
14491
+ }
14492
+ if (to !== undefined) {
14493
+ localVarQueryParameter['to'] = to;
14494
+ }
14495
+ if (alertType !== undefined) {
14496
+ localVarQueryParameter['alert_type'] = alertType;
14497
+ }
14498
+ if (status !== undefined) {
14499
+ localVarQueryParameter['status'] = status;
14500
+ }
14501
+ if (page !== undefined) {
14502
+ localVarQueryParameter['page'] = page;
14503
+ }
14504
+ if (perPage !== undefined) {
14505
+ localVarQueryParameter['per_page'] = perPage;
14506
+ }
14507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14509
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14510
+ return {
14511
+ url: toPathString(localVarUrlObj),
14512
+ options: localVarRequestOptions,
14513
+ };
14514
+ }),
14460
14515
  /**
14461
14516
  * 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.
14462
14517
  * @summary Get billing alerts
@@ -15832,6 +15887,241 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
15832
15887
  options: localVarRequestOptions,
15833
15888
  };
15834
15889
  }),
15890
+ /**
15891
+ * Returns paginated list of per-store credit quotas for the organization
15892
+ * @summary List store credit quotas
15893
+ * @param {number} [page] Page number
15894
+ * @param {number} [perPage] Items per page
15895
+ * @param {string} [search] Search by store name
15896
+ * @param {*} [options] Override http request option.
15897
+ * @throws {RequiredError}
15898
+ */
15899
+ adminBillingStoreQuotasGet: (page_1, perPage_1, search_1, ...args_1) => __awaiter(this, [page_1, perPage_1, search_1, ...args_1], void 0, function* (page, perPage, search, options = {}) {
15900
+ const localVarPath = `/admin/billing/store-quotas`;
15901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15903
+ let baseOptions;
15904
+ if (configuration) {
15905
+ baseOptions = configuration.baseOptions;
15906
+ }
15907
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15908
+ const localVarHeaderParameter = {};
15909
+ const localVarQueryParameter = {};
15910
+ // authentication BearerAuth required
15911
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15912
+ if (page !== undefined) {
15913
+ localVarQueryParameter['page'] = page;
15914
+ }
15915
+ if (perPage !== undefined) {
15916
+ localVarQueryParameter['per_page'] = perPage;
15917
+ }
15918
+ if (search !== undefined) {
15919
+ localVarQueryParameter['search'] = search;
15920
+ }
15921
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15923
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15924
+ return {
15925
+ url: toPathString(localVarUrlObj),
15926
+ options: localVarRequestOptions,
15927
+ };
15928
+ }),
15929
+ /**
15930
+ * Creates a per-store credit quota with configurable window and enforcement
15931
+ * @summary Create store credit quota
15932
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
15933
+ * @param {*} [options] Override http request option.
15934
+ * @throws {RequiredError}
15935
+ */
15936
+ adminBillingStoreQuotasPost: (dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (dataTypesStoreQuotaRequest, options = {}) {
15937
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
15938
+ assertParamExists('adminBillingStoreQuotasPost', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
15939
+ const localVarPath = `/admin/billing/store-quotas`;
15940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15942
+ let baseOptions;
15943
+ if (configuration) {
15944
+ baseOptions = configuration.baseOptions;
15945
+ }
15946
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15947
+ const localVarHeaderParameter = {};
15948
+ const localVarQueryParameter = {};
15949
+ // authentication BearerAuth required
15950
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15951
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15954
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15955
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
15956
+ return {
15957
+ url: toPathString(localVarUrlObj),
15958
+ options: localVarRequestOptions,
15959
+ };
15960
+ }),
15961
+ /**
15962
+ * Deletes a per-store credit quota by UUID
15963
+ * @summary Delete store credit quota
15964
+ * @param {string} quotaUuid Quota UUID
15965
+ * @param {*} [options] Override http request option.
15966
+ * @throws {RequiredError}
15967
+ */
15968
+ adminBillingStoreQuotasQuotaUuidDelete: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
15969
+ // verify required parameter 'quotaUuid' is not null or undefined
15970
+ assertParamExists('adminBillingStoreQuotasQuotaUuidDelete', 'quotaUuid', quotaUuid);
15971
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
15972
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
15973
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15974
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15975
+ let baseOptions;
15976
+ if (configuration) {
15977
+ baseOptions = configuration.baseOptions;
15978
+ }
15979
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
15980
+ const localVarHeaderParameter = {};
15981
+ const localVarQueryParameter = {};
15982
+ // authentication BearerAuth required
15983
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15984
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15985
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15986
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15987
+ return {
15988
+ url: toPathString(localVarUrlObj),
15989
+ options: localVarRequestOptions,
15990
+ };
15991
+ }),
15992
+ /**
15993
+ * Returns a single store credit quota by UUID
15994
+ * @summary Get store credit quota
15995
+ * @param {string} quotaUuid Quota UUID
15996
+ * @param {*} [options] Override http request option.
15997
+ * @throws {RequiredError}
15998
+ */
15999
+ adminBillingStoreQuotasQuotaUuidGet: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
16000
+ // verify required parameter 'quotaUuid' is not null or undefined
16001
+ assertParamExists('adminBillingStoreQuotasQuotaUuidGet', 'quotaUuid', quotaUuid);
16002
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16003
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16004
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16005
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16006
+ let baseOptions;
16007
+ if (configuration) {
16008
+ baseOptions = configuration.baseOptions;
16009
+ }
16010
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16011
+ const localVarHeaderParameter = {};
16012
+ const localVarQueryParameter = {};
16013
+ // authentication BearerAuth required
16014
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16015
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16016
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16017
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16018
+ return {
16019
+ url: toPathString(localVarUrlObj),
16020
+ options: localVarRequestOptions,
16021
+ };
16022
+ }),
16023
+ /**
16024
+ * Updates an existing per-store credit quota
16025
+ * @summary Update store credit quota
16026
+ * @param {string} quotaUuid Quota UUID
16027
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
16028
+ * @param {*} [options] Override http request option.
16029
+ * @throws {RequiredError}
16030
+ */
16031
+ adminBillingStoreQuotasQuotaUuidPut: (quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (quotaUuid, dataTypesStoreQuotaRequest, options = {}) {
16032
+ // verify required parameter 'quotaUuid' is not null or undefined
16033
+ assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'quotaUuid', quotaUuid);
16034
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
16035
+ assertParamExists('adminBillingStoreQuotasQuotaUuidPut', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
16036
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16037
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16040
+ let baseOptions;
16041
+ if (configuration) {
16042
+ baseOptions = configuration.baseOptions;
16043
+ }
16044
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
16045
+ const localVarHeaderParameter = {};
16046
+ const localVarQueryParameter = {};
16047
+ // authentication BearerAuth required
16048
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16049
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16050
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16051
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16052
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16053
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
16054
+ return {
16055
+ url: toPathString(localVarUrlObj),
16056
+ options: localVarRequestOptions,
16057
+ };
16058
+ }),
16059
+ /**
16060
+ * Returns paginated usage summary for all stores in the organization
16061
+ * @summary Get all stores usage summary
16062
+ * @param {number} [page] Page number
16063
+ * @param {number} [perPage] Items per page
16064
+ * @param {*} [options] Override http request option.
16065
+ * @throws {RequiredError}
16066
+ */
16067
+ adminBillingStoreUsageGet: (page_1, perPage_1, ...args_1) => __awaiter(this, [page_1, perPage_1, ...args_1], void 0, function* (page, perPage, options = {}) {
16068
+ const localVarPath = `/admin/billing/store-usage`;
16069
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16070
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16071
+ let baseOptions;
16072
+ if (configuration) {
16073
+ baseOptions = configuration.baseOptions;
16074
+ }
16075
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16076
+ const localVarHeaderParameter = {};
16077
+ const localVarQueryParameter = {};
16078
+ // authentication BearerAuth required
16079
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16080
+ if (page !== undefined) {
16081
+ localVarQueryParameter['page'] = page;
16082
+ }
16083
+ if (perPage !== undefined) {
16084
+ localVarQueryParameter['per_page'] = perPage;
16085
+ }
16086
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16088
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16089
+ return {
16090
+ url: toPathString(localVarUrlObj),
16091
+ options: localVarRequestOptions,
16092
+ };
16093
+ }),
16094
+ /**
16095
+ * Returns detailed usage breakdown for a single store
16096
+ * @summary Get single store usage detail
16097
+ * @param {string} xStoreId Store external ID
16098
+ * @param {*} [options] Override http request option.
16099
+ * @throws {RequiredError}
16100
+ */
16101
+ adminBillingStoreUsageXStoreIdGet: (xStoreId_1, ...args_1) => __awaiter(this, [xStoreId_1, ...args_1], void 0, function* (xStoreId, options = {}) {
16102
+ // verify required parameter 'xStoreId' is not null or undefined
16103
+ assertParamExists('adminBillingStoreUsageXStoreIdGet', 'xStoreId', xStoreId);
16104
+ const localVarPath = `/admin/billing/store-usage/{xStoreId}`
16105
+ .replace(`{${"xStoreId"}}`, encodeURIComponent(String(xStoreId)));
16106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16108
+ let baseOptions;
16109
+ if (configuration) {
16110
+ baseOptions = configuration.baseOptions;
16111
+ }
16112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16113
+ const localVarHeaderParameter = {};
16114
+ const localVarQueryParameter = {};
16115
+ // authentication BearerAuth required
16116
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16119
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16120
+ return {
16121
+ url: toPathString(localVarUrlObj),
16122
+ options: localVarRequestOptions,
16123
+ };
16124
+ }),
15835
16125
  /**
15836
16126
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
15837
16127
  * @summary Get usage details with granularity and pagination
@@ -16045,6 +16335,28 @@ export const BillingDashboardApiFp = function (configuration) {
16045
16335
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16046
16336
  });
16047
16337
  },
16338
+ /**
16339
+ * Returns paginated alert trigger history with optional filters
16340
+ * @summary Get alert trigger history
16341
+ * @param {string} [storeId] Filter by store xStoreID
16342
+ * @param {string} [from] Start date (YYYY-MM-DD)
16343
+ * @param {string} [to] End date (YYYY-MM-DD)
16344
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
16345
+ * @param {string} [status] Filter by status (resolved, unresolved)
16346
+ * @param {number} [page] Page number
16347
+ * @param {number} [perPage] Items per page
16348
+ * @param {*} [options] Override http request option.
16349
+ * @throws {RequiredError}
16350
+ */
16351
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
16352
+ return __awaiter(this, void 0, void 0, function* () {
16353
+ var _a, _b, _c;
16354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options);
16355
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16356
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16357
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16358
+ });
16359
+ },
16048
16360
  /**
16049
16361
  * 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.
16050
16362
  * @summary Get billing alerts
@@ -16677,6 +16989,122 @@ export const BillingDashboardApiFp = function (configuration) {
16677
16989
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16678
16990
  });
16679
16991
  },
16992
+ /**
16993
+ * Returns paginated list of per-store credit quotas for the organization
16994
+ * @summary List store credit quotas
16995
+ * @param {number} [page] Page number
16996
+ * @param {number} [perPage] Items per page
16997
+ * @param {string} [search] Search by store name
16998
+ * @param {*} [options] Override http request option.
16999
+ * @throws {RequiredError}
17000
+ */
17001
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17002
+ return __awaiter(this, void 0, void 0, function* () {
17003
+ var _a, _b, _c;
17004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasGet(page, perPage, search, options);
17005
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17006
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17007
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17008
+ });
17009
+ },
17010
+ /**
17011
+ * Creates a per-store credit quota with configurable window and enforcement
17012
+ * @summary Create store credit quota
17013
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17014
+ * @param {*} [options] Override http request option.
17015
+ * @throws {RequiredError}
17016
+ */
17017
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17018
+ return __awaiter(this, void 0, void 0, function* () {
17019
+ var _a, _b, _c;
17020
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options);
17021
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17022
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17024
+ });
17025
+ },
17026
+ /**
17027
+ * Deletes a per-store credit quota by UUID
17028
+ * @summary Delete store credit quota
17029
+ * @param {string} quotaUuid Quota UUID
17030
+ * @param {*} [options] Override http request option.
17031
+ * @throws {RequiredError}
17032
+ */
17033
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17034
+ return __awaiter(this, void 0, void 0, function* () {
17035
+ var _a, _b, _c;
17036
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options);
17037
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17038
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17039
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17040
+ });
17041
+ },
17042
+ /**
17043
+ * Returns a single store credit quota by UUID
17044
+ * @summary Get store credit quota
17045
+ * @param {string} quotaUuid Quota UUID
17046
+ * @param {*} [options] Override http request option.
17047
+ * @throws {RequiredError}
17048
+ */
17049
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17050
+ return __awaiter(this, void 0, void 0, function* () {
17051
+ var _a, _b, _c;
17052
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options);
17053
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17054
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17056
+ });
17057
+ },
17058
+ /**
17059
+ * Updates an existing per-store credit quota
17060
+ * @summary Update store credit quota
17061
+ * @param {string} quotaUuid Quota UUID
17062
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17063
+ * @param {*} [options] Override http request option.
17064
+ * @throws {RequiredError}
17065
+ */
17066
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17067
+ return __awaiter(this, void 0, void 0, function* () {
17068
+ var _a, _b, _c;
17069
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options);
17070
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17071
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17072
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17073
+ });
17074
+ },
17075
+ /**
17076
+ * Returns paginated usage summary for all stores in the organization
17077
+ * @summary Get all stores usage summary
17078
+ * @param {number} [page] Page number
17079
+ * @param {number} [perPage] Items per page
17080
+ * @param {*} [options] Override http request option.
17081
+ * @throws {RequiredError}
17082
+ */
17083
+ adminBillingStoreUsageGet(page, perPage, options) {
17084
+ return __awaiter(this, void 0, void 0, function* () {
17085
+ var _a, _b, _c;
17086
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageGet(page, perPage, options);
17087
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17088
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17090
+ });
17091
+ },
17092
+ /**
17093
+ * Returns detailed usage breakdown for a single store
17094
+ * @summary Get single store usage detail
17095
+ * @param {string} xStoreId Store external ID
17096
+ * @param {*} [options] Override http request option.
17097
+ * @throws {RequiredError}
17098
+ */
17099
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17100
+ return __awaiter(this, void 0, void 0, function* () {
17101
+ var _a, _b, _c;
17102
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageXStoreIdGet(xStoreId, options);
17103
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17104
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingStoreUsageXStoreIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17105
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17106
+ });
17107
+ },
16680
17108
  /**
16681
17109
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
16682
17110
  * @summary Get usage details with granularity and pagination
@@ -16783,6 +17211,22 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
16783
17211
  adminBillingActivePlanGet(options) {
16784
17212
  return localVarFp.adminBillingActivePlanGet(options).then((request) => request(axios, basePath));
16785
17213
  },
17214
+ /**
17215
+ * Returns paginated alert trigger history with optional filters
17216
+ * @summary Get alert trigger history
17217
+ * @param {string} [storeId] Filter by store xStoreID
17218
+ * @param {string} [from] Start date (YYYY-MM-DD)
17219
+ * @param {string} [to] End date (YYYY-MM-DD)
17220
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17221
+ * @param {string} [status] Filter by status (resolved, unresolved)
17222
+ * @param {number} [page] Page number
17223
+ * @param {number} [perPage] Items per page
17224
+ * @param {*} [options] Override http request option.
17225
+ * @throws {RequiredError}
17226
+ */
17227
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17228
+ return localVarFp.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(axios, basePath));
17229
+ },
16786
17230
  /**
16787
17231
  * 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.
16788
17232
  * @summary Get billing alerts
@@ -17205,6 +17649,80 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
17205
17649
  adminBillingSavedCardsGet(options) {
17206
17650
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
17207
17651
  },
17652
+ /**
17653
+ * Returns paginated list of per-store credit quotas for the organization
17654
+ * @summary List store credit quotas
17655
+ * @param {number} [page] Page number
17656
+ * @param {number} [perPage] Items per page
17657
+ * @param {string} [search] Search by store name
17658
+ * @param {*} [options] Override http request option.
17659
+ * @throws {RequiredError}
17660
+ */
17661
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17662
+ return localVarFp.adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(axios, basePath));
17663
+ },
17664
+ /**
17665
+ * Creates a per-store credit quota with configurable window and enforcement
17666
+ * @summary Create store credit quota
17667
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17668
+ * @param {*} [options] Override http request option.
17669
+ * @throws {RequiredError}
17670
+ */
17671
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17672
+ return localVarFp.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17673
+ },
17674
+ /**
17675
+ * Deletes a per-store credit quota by UUID
17676
+ * @summary Delete store credit quota
17677
+ * @param {string} quotaUuid Quota UUID
17678
+ * @param {*} [options] Override http request option.
17679
+ * @throws {RequiredError}
17680
+ */
17681
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17682
+ return localVarFp.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(axios, basePath));
17683
+ },
17684
+ /**
17685
+ * Returns a single store credit quota by UUID
17686
+ * @summary Get store credit quota
17687
+ * @param {string} quotaUuid Quota UUID
17688
+ * @param {*} [options] Override http request option.
17689
+ * @throws {RequiredError}
17690
+ */
17691
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17692
+ return localVarFp.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(axios, basePath));
17693
+ },
17694
+ /**
17695
+ * Updates an existing per-store credit quota
17696
+ * @summary Update store credit quota
17697
+ * @param {string} quotaUuid Quota UUID
17698
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17699
+ * @param {*} [options] Override http request option.
17700
+ * @throws {RequiredError}
17701
+ */
17702
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17703
+ return localVarFp.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17704
+ },
17705
+ /**
17706
+ * Returns paginated usage summary for all stores in the organization
17707
+ * @summary Get all stores usage summary
17708
+ * @param {number} [page] Page number
17709
+ * @param {number} [perPage] Items per page
17710
+ * @param {*} [options] Override http request option.
17711
+ * @throws {RequiredError}
17712
+ */
17713
+ adminBillingStoreUsageGet(page, perPage, options) {
17714
+ return localVarFp.adminBillingStoreUsageGet(page, perPage, options).then((request) => request(axios, basePath));
17715
+ },
17716
+ /**
17717
+ * Returns detailed usage breakdown for a single store
17718
+ * @summary Get single store usage detail
17719
+ * @param {string} xStoreId Store external ID
17720
+ * @param {*} [options] Override http request option.
17721
+ * @throws {RequiredError}
17722
+ */
17723
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17724
+ return localVarFp.adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(axios, basePath));
17725
+ },
17208
17726
  /**
17209
17727
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17210
17728
  * @summary Get usage details with granularity and pagination
@@ -17282,6 +17800,23 @@ export class BillingDashboardApi extends BaseAPI {
17282
17800
  adminBillingActivePlanGet(options) {
17283
17801
  return BillingDashboardApiFp(this.configuration).adminBillingActivePlanGet(options).then((request) => request(this.axios, this.basePath));
17284
17802
  }
17803
+ /**
17804
+ * Returns paginated alert trigger history with optional filters
17805
+ * @summary Get alert trigger history
17806
+ * @param {string} [storeId] Filter by store xStoreID
17807
+ * @param {string} [from] Start date (YYYY-MM-DD)
17808
+ * @param {string} [to] End date (YYYY-MM-DD)
17809
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17810
+ * @param {string} [status] Filter by status (resolved, unresolved)
17811
+ * @param {number} [page] Page number
17812
+ * @param {number} [perPage] Items per page
17813
+ * @param {*} [options] Override http request option.
17814
+ * @throws {RequiredError}
17815
+ * @memberof BillingDashboardApi
17816
+ */
17817
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17818
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(this.axios, this.basePath));
17819
+ }
17285
17820
  /**
17286
17821
  * 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.
17287
17822
  * @summary Get billing alerts
@@ -17739,6 +18274,87 @@ export class BillingDashboardApi extends BaseAPI {
17739
18274
  adminBillingSavedCardsGet(options) {
17740
18275
  return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
17741
18276
  }
18277
+ /**
18278
+ * Returns paginated list of per-store credit quotas for the organization
18279
+ * @summary List store credit quotas
18280
+ * @param {number} [page] Page number
18281
+ * @param {number} [perPage] Items per page
18282
+ * @param {string} [search] Search by store name
18283
+ * @param {*} [options] Override http request option.
18284
+ * @throws {RequiredError}
18285
+ * @memberof BillingDashboardApi
18286
+ */
18287
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
18288
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(this.axios, this.basePath));
18289
+ }
18290
+ /**
18291
+ * Creates a per-store credit quota with configurable window and enforcement
18292
+ * @summary Create store credit quota
18293
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
18294
+ * @param {*} [options] Override http request option.
18295
+ * @throws {RequiredError}
18296
+ * @memberof BillingDashboardApi
18297
+ */
18298
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
18299
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18300
+ }
18301
+ /**
18302
+ * Deletes a per-store credit quota by UUID
18303
+ * @summary Delete store credit quota
18304
+ * @param {string} quotaUuid Quota UUID
18305
+ * @param {*} [options] Override http request option.
18306
+ * @throws {RequiredError}
18307
+ * @memberof BillingDashboardApi
18308
+ */
18309
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
18310
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18311
+ }
18312
+ /**
18313
+ * Returns a single store credit quota by UUID
18314
+ * @summary Get store credit quota
18315
+ * @param {string} quotaUuid Quota UUID
18316
+ * @param {*} [options] Override http request option.
18317
+ * @throws {RequiredError}
18318
+ * @memberof BillingDashboardApi
18319
+ */
18320
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
18321
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18322
+ }
18323
+ /**
18324
+ * Updates an existing per-store credit quota
18325
+ * @summary Update store credit quota
18326
+ * @param {string} quotaUuid Quota UUID
18327
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
18328
+ * @param {*} [options] Override http request option.
18329
+ * @throws {RequiredError}
18330
+ * @memberof BillingDashboardApi
18331
+ */
18332
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
18333
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18334
+ }
18335
+ /**
18336
+ * Returns paginated usage summary for all stores in the organization
18337
+ * @summary Get all stores usage summary
18338
+ * @param {number} [page] Page number
18339
+ * @param {number} [perPage] Items per page
18340
+ * @param {*} [options] Override http request option.
18341
+ * @throws {RequiredError}
18342
+ * @memberof BillingDashboardApi
18343
+ */
18344
+ adminBillingStoreUsageGet(page, perPage, options) {
18345
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageGet(page, perPage, options).then((request) => request(this.axios, this.basePath));
18346
+ }
18347
+ /**
18348
+ * Returns detailed usage breakdown for a single store
18349
+ * @summary Get single store usage detail
18350
+ * @param {string} xStoreId Store external ID
18351
+ * @param {*} [options] Override http request option.
18352
+ * @throws {RequiredError}
18353
+ * @memberof BillingDashboardApi
18354
+ */
18355
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
18356
+ return BillingDashboardApiFp(this.configuration).adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(this.axios, this.basePath));
18357
+ }
17742
18358
  /**
17743
18359
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17744
18360
  * @summary Get usage details with granularity and pagination