@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/api.js CHANGED
@@ -14565,6 +14565,61 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
14565
14565
  options: localVarRequestOptions,
14566
14566
  };
14567
14567
  }),
14568
+ /**
14569
+ * Returns paginated alert trigger history with optional filters
14570
+ * @summary Get alert trigger history
14571
+ * @param {string} [storeId] Filter by store xStoreID
14572
+ * @param {string} [from] Start date (YYYY-MM-DD)
14573
+ * @param {string} [to] End date (YYYY-MM-DD)
14574
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
14575
+ * @param {string} [status] Filter by status (resolved, unresolved)
14576
+ * @param {number} [page] Page number
14577
+ * @param {number} [perPage] Items per page
14578
+ * @param {*} [options] Override http request option.
14579
+ * @throws {RequiredError}
14580
+ */
14581
+ 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 = {}) {
14582
+ const localVarPath = `/admin/billing/alert-history`;
14583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14585
+ let baseOptions;
14586
+ if (configuration) {
14587
+ baseOptions = configuration.baseOptions;
14588
+ }
14589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14590
+ const localVarHeaderParameter = {};
14591
+ const localVarQueryParameter = {};
14592
+ // authentication BearerAuth required
14593
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
14594
+ if (storeId !== undefined) {
14595
+ localVarQueryParameter['store_id'] = storeId;
14596
+ }
14597
+ if (from !== undefined) {
14598
+ localVarQueryParameter['from'] = from;
14599
+ }
14600
+ if (to !== undefined) {
14601
+ localVarQueryParameter['to'] = to;
14602
+ }
14603
+ if (alertType !== undefined) {
14604
+ localVarQueryParameter['alert_type'] = alertType;
14605
+ }
14606
+ if (status !== undefined) {
14607
+ localVarQueryParameter['status'] = status;
14608
+ }
14609
+ if (page !== undefined) {
14610
+ localVarQueryParameter['page'] = page;
14611
+ }
14612
+ if (perPage !== undefined) {
14613
+ localVarQueryParameter['per_page'] = perPage;
14614
+ }
14615
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14617
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14618
+ return {
14619
+ url: (0, common_1.toPathString)(localVarUrlObj),
14620
+ options: localVarRequestOptions,
14621
+ };
14622
+ }),
14568
14623
  /**
14569
14624
  * 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.
14570
14625
  * @summary Get billing alerts
@@ -15940,6 +15995,241 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15940
15995
  options: localVarRequestOptions,
15941
15996
  };
15942
15997
  }),
15998
+ /**
15999
+ * Returns paginated list of per-store credit quotas for the organization
16000
+ * @summary List store credit quotas
16001
+ * @param {number} [page] Page number
16002
+ * @param {number} [perPage] Items per page
16003
+ * @param {string} [search] Search by store name
16004
+ * @param {*} [options] Override http request option.
16005
+ * @throws {RequiredError}
16006
+ */
16007
+ 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 = {}) {
16008
+ const localVarPath = `/admin/billing/store-quotas`;
16009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16011
+ let baseOptions;
16012
+ if (configuration) {
16013
+ baseOptions = configuration.baseOptions;
16014
+ }
16015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16016
+ const localVarHeaderParameter = {};
16017
+ const localVarQueryParameter = {};
16018
+ // authentication BearerAuth required
16019
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16020
+ if (page !== undefined) {
16021
+ localVarQueryParameter['page'] = page;
16022
+ }
16023
+ if (perPage !== undefined) {
16024
+ localVarQueryParameter['per_page'] = perPage;
16025
+ }
16026
+ if (search !== undefined) {
16027
+ localVarQueryParameter['search'] = search;
16028
+ }
16029
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16032
+ return {
16033
+ url: (0, common_1.toPathString)(localVarUrlObj),
16034
+ options: localVarRequestOptions,
16035
+ };
16036
+ }),
16037
+ /**
16038
+ * Creates a per-store credit quota with configurable window and enforcement
16039
+ * @summary Create store credit quota
16040
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
16041
+ * @param {*} [options] Override http request option.
16042
+ * @throws {RequiredError}
16043
+ */
16044
+ adminBillingStoreQuotasPost: (dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (dataTypesStoreQuotaRequest, options = {}) {
16045
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
16046
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasPost', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
16047
+ const localVarPath = `/admin/billing/store-quotas`;
16048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16050
+ let baseOptions;
16051
+ if (configuration) {
16052
+ baseOptions = configuration.baseOptions;
16053
+ }
16054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16055
+ const localVarHeaderParameter = {};
16056
+ const localVarQueryParameter = {};
16057
+ // authentication BearerAuth required
16058
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16059
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16060
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16063
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
16064
+ return {
16065
+ url: (0, common_1.toPathString)(localVarUrlObj),
16066
+ options: localVarRequestOptions,
16067
+ };
16068
+ }),
16069
+ /**
16070
+ * Deletes a per-store credit quota by UUID
16071
+ * @summary Delete store credit quota
16072
+ * @param {string} quotaUuid Quota UUID
16073
+ * @param {*} [options] Override http request option.
16074
+ * @throws {RequiredError}
16075
+ */
16076
+ adminBillingStoreQuotasQuotaUuidDelete: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
16077
+ // verify required parameter 'quotaUuid' is not null or undefined
16078
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidDelete', 'quotaUuid', quotaUuid);
16079
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16080
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16082
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16083
+ let baseOptions;
16084
+ if (configuration) {
16085
+ baseOptions = configuration.baseOptions;
16086
+ }
16087
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16088
+ const localVarHeaderParameter = {};
16089
+ const localVarQueryParameter = {};
16090
+ // authentication BearerAuth required
16091
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16092
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16094
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16095
+ return {
16096
+ url: (0, common_1.toPathString)(localVarUrlObj),
16097
+ options: localVarRequestOptions,
16098
+ };
16099
+ }),
16100
+ /**
16101
+ * Returns a single store credit quota by UUID
16102
+ * @summary Get store credit quota
16103
+ * @param {string} quotaUuid Quota UUID
16104
+ * @param {*} [options] Override http request option.
16105
+ * @throws {RequiredError}
16106
+ */
16107
+ adminBillingStoreQuotasQuotaUuidGet: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
16108
+ // verify required parameter 'quotaUuid' is not null or undefined
16109
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidGet', 'quotaUuid', quotaUuid);
16110
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16111
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16113
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16114
+ let baseOptions;
16115
+ if (configuration) {
16116
+ baseOptions = configuration.baseOptions;
16117
+ }
16118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16119
+ const localVarHeaderParameter = {};
16120
+ const localVarQueryParameter = {};
16121
+ // authentication BearerAuth required
16122
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16123
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16125
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16126
+ return {
16127
+ url: (0, common_1.toPathString)(localVarUrlObj),
16128
+ options: localVarRequestOptions,
16129
+ };
16130
+ }),
16131
+ /**
16132
+ * Updates an existing per-store credit quota
16133
+ * @summary Update store credit quota
16134
+ * @param {string} quotaUuid Quota UUID
16135
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
16136
+ * @param {*} [options] Override http request option.
16137
+ * @throws {RequiredError}
16138
+ */
16139
+ adminBillingStoreQuotasQuotaUuidPut: (quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (quotaUuid, dataTypesStoreQuotaRequest, options = {}) {
16140
+ // verify required parameter 'quotaUuid' is not null or undefined
16141
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidPut', 'quotaUuid', quotaUuid);
16142
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
16143
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidPut', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
16144
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16145
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16147
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16148
+ let baseOptions;
16149
+ if (configuration) {
16150
+ baseOptions = configuration.baseOptions;
16151
+ }
16152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
16153
+ const localVarHeaderParameter = {};
16154
+ const localVarQueryParameter = {};
16155
+ // authentication BearerAuth required
16156
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16161
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
16162
+ return {
16163
+ url: (0, common_1.toPathString)(localVarUrlObj),
16164
+ options: localVarRequestOptions,
16165
+ };
16166
+ }),
16167
+ /**
16168
+ * Returns paginated usage summary for all stores in the organization
16169
+ * @summary Get all stores usage summary
16170
+ * @param {number} [page] Page number
16171
+ * @param {number} [perPage] Items per page
16172
+ * @param {*} [options] Override http request option.
16173
+ * @throws {RequiredError}
16174
+ */
16175
+ adminBillingStoreUsageGet: (page_1, perPage_1, ...args_1) => __awaiter(this, [page_1, perPage_1, ...args_1], void 0, function* (page, perPage, options = {}) {
16176
+ const localVarPath = `/admin/billing/store-usage`;
16177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16179
+ let baseOptions;
16180
+ if (configuration) {
16181
+ baseOptions = configuration.baseOptions;
16182
+ }
16183
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16184
+ const localVarHeaderParameter = {};
16185
+ const localVarQueryParameter = {};
16186
+ // authentication BearerAuth required
16187
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16188
+ if (page !== undefined) {
16189
+ localVarQueryParameter['page'] = page;
16190
+ }
16191
+ if (perPage !== undefined) {
16192
+ localVarQueryParameter['per_page'] = perPage;
16193
+ }
16194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16197
+ return {
16198
+ url: (0, common_1.toPathString)(localVarUrlObj),
16199
+ options: localVarRequestOptions,
16200
+ };
16201
+ }),
16202
+ /**
16203
+ * Returns detailed usage breakdown for a single store
16204
+ * @summary Get single store usage detail
16205
+ * @param {string} xStoreId Store external ID
16206
+ * @param {*} [options] Override http request option.
16207
+ * @throws {RequiredError}
16208
+ */
16209
+ adminBillingStoreUsageXStoreIdGet: (xStoreId_1, ...args_1) => __awaiter(this, [xStoreId_1, ...args_1], void 0, function* (xStoreId, options = {}) {
16210
+ // verify required parameter 'xStoreId' is not null or undefined
16211
+ (0, common_1.assertParamExists)('adminBillingStoreUsageXStoreIdGet', 'xStoreId', xStoreId);
16212
+ const localVarPath = `/admin/billing/store-usage/{xStoreId}`
16213
+ .replace(`{${"xStoreId"}}`, encodeURIComponent(String(xStoreId)));
16214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16215
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16216
+ let baseOptions;
16217
+ if (configuration) {
16218
+ baseOptions = configuration.baseOptions;
16219
+ }
16220
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16221
+ const localVarHeaderParameter = {};
16222
+ const localVarQueryParameter = {};
16223
+ // authentication BearerAuth required
16224
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16225
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16227
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16228
+ return {
16229
+ url: (0, common_1.toPathString)(localVarUrlObj),
16230
+ options: localVarRequestOptions,
16231
+ };
16232
+ }),
15943
16233
  /**
15944
16234
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
15945
16235
  * @summary Get usage details with granularity and pagination
@@ -16154,6 +16444,28 @@ const BillingDashboardApiFp = function (configuration) {
16154
16444
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16155
16445
  });
16156
16446
  },
16447
+ /**
16448
+ * Returns paginated alert trigger history with optional filters
16449
+ * @summary Get alert trigger history
16450
+ * @param {string} [storeId] Filter by store xStoreID
16451
+ * @param {string} [from] Start date (YYYY-MM-DD)
16452
+ * @param {string} [to] End date (YYYY-MM-DD)
16453
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
16454
+ * @param {string} [status] Filter by status (resolved, unresolved)
16455
+ * @param {number} [page] Page number
16456
+ * @param {number} [perPage] Items per page
16457
+ * @param {*} [options] Override http request option.
16458
+ * @throws {RequiredError}
16459
+ */
16460
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
16461
+ return __awaiter(this, void 0, void 0, function* () {
16462
+ var _a, _b, _c;
16463
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options);
16464
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16465
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16466
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16467
+ });
16468
+ },
16157
16469
  /**
16158
16470
  * 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.
16159
16471
  * @summary Get billing alerts
@@ -16786,6 +17098,122 @@ const BillingDashboardApiFp = function (configuration) {
16786
17098
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16787
17099
  });
16788
17100
  },
17101
+ /**
17102
+ * Returns paginated list of per-store credit quotas for the organization
17103
+ * @summary List store credit quotas
17104
+ * @param {number} [page] Page number
17105
+ * @param {number} [perPage] Items per page
17106
+ * @param {string} [search] Search by store name
17107
+ * @param {*} [options] Override http request option.
17108
+ * @throws {RequiredError}
17109
+ */
17110
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17111
+ return __awaiter(this, void 0, void 0, function* () {
17112
+ var _a, _b, _c;
17113
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasGet(page, perPage, search, options);
17114
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17115
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17116
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17117
+ });
17118
+ },
17119
+ /**
17120
+ * Creates a per-store credit quota with configurable window and enforcement
17121
+ * @summary Create store credit quota
17122
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17123
+ * @param {*} [options] Override http request option.
17124
+ * @throws {RequiredError}
17125
+ */
17126
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17127
+ return __awaiter(this, void 0, void 0, function* () {
17128
+ var _a, _b, _c;
17129
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options);
17130
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17131
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17132
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17133
+ });
17134
+ },
17135
+ /**
17136
+ * Deletes a per-store credit quota by UUID
17137
+ * @summary Delete store credit quota
17138
+ * @param {string} quotaUuid Quota UUID
17139
+ * @param {*} [options] Override http request option.
17140
+ * @throws {RequiredError}
17141
+ */
17142
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17143
+ return __awaiter(this, void 0, void 0, function* () {
17144
+ var _a, _b, _c;
17145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options);
17146
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17147
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17148
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17149
+ });
17150
+ },
17151
+ /**
17152
+ * Returns a single store credit quota by UUID
17153
+ * @summary Get store credit quota
17154
+ * @param {string} quotaUuid Quota UUID
17155
+ * @param {*} [options] Override http request option.
17156
+ * @throws {RequiredError}
17157
+ */
17158
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17159
+ return __awaiter(this, void 0, void 0, function* () {
17160
+ var _a, _b, _c;
17161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options);
17162
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17163
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17164
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17165
+ });
17166
+ },
17167
+ /**
17168
+ * Updates an existing per-store credit quota
17169
+ * @summary Update store credit quota
17170
+ * @param {string} quotaUuid Quota UUID
17171
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17172
+ * @param {*} [options] Override http request option.
17173
+ * @throws {RequiredError}
17174
+ */
17175
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17176
+ return __awaiter(this, void 0, void 0, function* () {
17177
+ var _a, _b, _c;
17178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options);
17179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17180
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17182
+ });
17183
+ },
17184
+ /**
17185
+ * Returns paginated usage summary for all stores in the organization
17186
+ * @summary Get all stores usage summary
17187
+ * @param {number} [page] Page number
17188
+ * @param {number} [perPage] Items per page
17189
+ * @param {*} [options] Override http request option.
17190
+ * @throws {RequiredError}
17191
+ */
17192
+ adminBillingStoreUsageGet(page, perPage, options) {
17193
+ return __awaiter(this, void 0, void 0, function* () {
17194
+ var _a, _b, _c;
17195
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageGet(page, perPage, options);
17196
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17197
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17198
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17199
+ });
17200
+ },
17201
+ /**
17202
+ * Returns detailed usage breakdown for a single store
17203
+ * @summary Get single store usage detail
17204
+ * @param {string} xStoreId Store external ID
17205
+ * @param {*} [options] Override http request option.
17206
+ * @throws {RequiredError}
17207
+ */
17208
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17209
+ return __awaiter(this, void 0, void 0, function* () {
17210
+ var _a, _b, _c;
17211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageXStoreIdGet(xStoreId, options);
17212
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17213
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreUsageXStoreIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17214
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17215
+ });
17216
+ },
16789
17217
  /**
16790
17218
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
16791
17219
  * @summary Get usage details with granularity and pagination
@@ -16893,6 +17321,22 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16893
17321
  adminBillingActivePlanGet(options) {
16894
17322
  return localVarFp.adminBillingActivePlanGet(options).then((request) => request(axios, basePath));
16895
17323
  },
17324
+ /**
17325
+ * Returns paginated alert trigger history with optional filters
17326
+ * @summary Get alert trigger history
17327
+ * @param {string} [storeId] Filter by store xStoreID
17328
+ * @param {string} [from] Start date (YYYY-MM-DD)
17329
+ * @param {string} [to] End date (YYYY-MM-DD)
17330
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17331
+ * @param {string} [status] Filter by status (resolved, unresolved)
17332
+ * @param {number} [page] Page number
17333
+ * @param {number} [perPage] Items per page
17334
+ * @param {*} [options] Override http request option.
17335
+ * @throws {RequiredError}
17336
+ */
17337
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17338
+ return localVarFp.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(axios, basePath));
17339
+ },
16896
17340
  /**
16897
17341
  * 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.
16898
17342
  * @summary Get billing alerts
@@ -17315,6 +17759,80 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
17315
17759
  adminBillingSavedCardsGet(options) {
17316
17760
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
17317
17761
  },
17762
+ /**
17763
+ * Returns paginated list of per-store credit quotas for the organization
17764
+ * @summary List store credit quotas
17765
+ * @param {number} [page] Page number
17766
+ * @param {number} [perPage] Items per page
17767
+ * @param {string} [search] Search by store name
17768
+ * @param {*} [options] Override http request option.
17769
+ * @throws {RequiredError}
17770
+ */
17771
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17772
+ return localVarFp.adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(axios, basePath));
17773
+ },
17774
+ /**
17775
+ * Creates a per-store credit quota with configurable window and enforcement
17776
+ * @summary Create store credit quota
17777
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17778
+ * @param {*} [options] Override http request option.
17779
+ * @throws {RequiredError}
17780
+ */
17781
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17782
+ return localVarFp.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17783
+ },
17784
+ /**
17785
+ * Deletes a per-store credit quota by UUID
17786
+ * @summary Delete store credit quota
17787
+ * @param {string} quotaUuid Quota UUID
17788
+ * @param {*} [options] Override http request option.
17789
+ * @throws {RequiredError}
17790
+ */
17791
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17792
+ return localVarFp.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(axios, basePath));
17793
+ },
17794
+ /**
17795
+ * Returns a single store credit quota by UUID
17796
+ * @summary Get store credit quota
17797
+ * @param {string} quotaUuid Quota UUID
17798
+ * @param {*} [options] Override http request option.
17799
+ * @throws {RequiredError}
17800
+ */
17801
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17802
+ return localVarFp.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(axios, basePath));
17803
+ },
17804
+ /**
17805
+ * Updates an existing per-store credit quota
17806
+ * @summary Update store credit quota
17807
+ * @param {string} quotaUuid Quota UUID
17808
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17809
+ * @param {*} [options] Override http request option.
17810
+ * @throws {RequiredError}
17811
+ */
17812
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17813
+ return localVarFp.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17814
+ },
17815
+ /**
17816
+ * Returns paginated usage summary for all stores in the organization
17817
+ * @summary Get all stores usage summary
17818
+ * @param {number} [page] Page number
17819
+ * @param {number} [perPage] Items per page
17820
+ * @param {*} [options] Override http request option.
17821
+ * @throws {RequiredError}
17822
+ */
17823
+ adminBillingStoreUsageGet(page, perPage, options) {
17824
+ return localVarFp.adminBillingStoreUsageGet(page, perPage, options).then((request) => request(axios, basePath));
17825
+ },
17826
+ /**
17827
+ * Returns detailed usage breakdown for a single store
17828
+ * @summary Get single store usage detail
17829
+ * @param {string} xStoreId Store external ID
17830
+ * @param {*} [options] Override http request option.
17831
+ * @throws {RequiredError}
17832
+ */
17833
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17834
+ return localVarFp.adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(axios, basePath));
17835
+ },
17318
17836
  /**
17319
17837
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17320
17838
  * @summary Get usage details with granularity and pagination
@@ -17393,6 +17911,23 @@ class BillingDashboardApi extends base_1.BaseAPI {
17393
17911
  adminBillingActivePlanGet(options) {
17394
17912
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingActivePlanGet(options).then((request) => request(this.axios, this.basePath));
17395
17913
  }
17914
+ /**
17915
+ * Returns paginated alert trigger history with optional filters
17916
+ * @summary Get alert trigger history
17917
+ * @param {string} [storeId] Filter by store xStoreID
17918
+ * @param {string} [from] Start date (YYYY-MM-DD)
17919
+ * @param {string} [to] End date (YYYY-MM-DD)
17920
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17921
+ * @param {string} [status] Filter by status (resolved, unresolved)
17922
+ * @param {number} [page] Page number
17923
+ * @param {number} [perPage] Items per page
17924
+ * @param {*} [options] Override http request option.
17925
+ * @throws {RequiredError}
17926
+ * @memberof BillingDashboardApi
17927
+ */
17928
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17929
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(this.axios, this.basePath));
17930
+ }
17396
17931
  /**
17397
17932
  * 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.
17398
17933
  * @summary Get billing alerts
@@ -17850,6 +18385,87 @@ class BillingDashboardApi extends base_1.BaseAPI {
17850
18385
  adminBillingSavedCardsGet(options) {
17851
18386
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
17852
18387
  }
18388
+ /**
18389
+ * Returns paginated list of per-store credit quotas for the organization
18390
+ * @summary List store credit quotas
18391
+ * @param {number} [page] Page number
18392
+ * @param {number} [perPage] Items per page
18393
+ * @param {string} [search] Search by store name
18394
+ * @param {*} [options] Override http request option.
18395
+ * @throws {RequiredError}
18396
+ * @memberof BillingDashboardApi
18397
+ */
18398
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
18399
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(this.axios, this.basePath));
18400
+ }
18401
+ /**
18402
+ * Creates a per-store credit quota with configurable window and enforcement
18403
+ * @summary Create store credit quota
18404
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
18405
+ * @param {*} [options] Override http request option.
18406
+ * @throws {RequiredError}
18407
+ * @memberof BillingDashboardApi
18408
+ */
18409
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
18410
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18411
+ }
18412
+ /**
18413
+ * Deletes a per-store credit quota by UUID
18414
+ * @summary Delete store credit quota
18415
+ * @param {string} quotaUuid Quota UUID
18416
+ * @param {*} [options] Override http request option.
18417
+ * @throws {RequiredError}
18418
+ * @memberof BillingDashboardApi
18419
+ */
18420
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
18421
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18422
+ }
18423
+ /**
18424
+ * Returns a single store credit quota by UUID
18425
+ * @summary Get store credit quota
18426
+ * @param {string} quotaUuid Quota UUID
18427
+ * @param {*} [options] Override http request option.
18428
+ * @throws {RequiredError}
18429
+ * @memberof BillingDashboardApi
18430
+ */
18431
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
18432
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18433
+ }
18434
+ /**
18435
+ * Updates an existing per-store credit quota
18436
+ * @summary Update store credit quota
18437
+ * @param {string} quotaUuid Quota UUID
18438
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
18439
+ * @param {*} [options] Override http request option.
18440
+ * @throws {RequiredError}
18441
+ * @memberof BillingDashboardApi
18442
+ */
18443
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
18444
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18445
+ }
18446
+ /**
18447
+ * Returns paginated usage summary for all stores in the organization
18448
+ * @summary Get all stores usage summary
18449
+ * @param {number} [page] Page number
18450
+ * @param {number} [perPage] Items per page
18451
+ * @param {*} [options] Override http request option.
18452
+ * @throws {RequiredError}
18453
+ * @memberof BillingDashboardApi
18454
+ */
18455
+ adminBillingStoreUsageGet(page, perPage, options) {
18456
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreUsageGet(page, perPage, options).then((request) => request(this.axios, this.basePath));
18457
+ }
18458
+ /**
18459
+ * Returns detailed usage breakdown for a single store
18460
+ * @summary Get single store usage detail
18461
+ * @param {string} xStoreId Store external ID
18462
+ * @param {*} [options] Override http request option.
18463
+ * @throws {RequiredError}
18464
+ * @memberof BillingDashboardApi
18465
+ */
18466
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
18467
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(this.axios, this.basePath));
18468
+ }
17853
18469
  /**
17854
18470
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17855
18471
  * @summary Get usage details with granularity and pagination