@seekora-ai/admin-api 1.1.23 → 1.1.25

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
@@ -8608,16 +8608,18 @@ export class AutomatedRefundManagementApi extends BaseAPI {
8608
8608
  export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8609
8609
  return {
8610
8610
  /**
8611
- * Returns paginated billing alerts configured for the organization
8611
+ * 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.
8612
8612
  * @summary Get billing alerts
8613
8613
  * @param {number} [page] Page number (default: 1)
8614
8614
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8615
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
8616
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8615
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
8616
+ * @param {number} [offset] Alternative offset
8617
+ * @param {number} [storeId] Filter alerts by store
8618
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
8617
8619
  * @param {*} [options] Override http request option.
8618
8620
  * @throws {RequiredError}
8619
8621
  */
8620
- adminBillingAlertsGet: (page_1, pageSize_1, limit_1, offset_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, limit_1, offset_1, ...args_1], void 0, function* (page, pageSize, limit, offset, options = {}) {
8622
+ adminBillingAlertsGet: (page_1, pageSize_1, limit_1, offset_1, storeId_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, limit_1, offset_1, storeId_1, search_1, ...args_1], void 0, function* (page, pageSize, limit, offset, storeId, search, options = {}) {
8621
8623
  const localVarPath = `/admin/billing/alerts`;
8622
8624
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8623
8625
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8642,6 +8644,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8642
8644
  if (offset !== undefined) {
8643
8645
  localVarQueryParameter['offset'] = offset;
8644
8646
  }
8647
+ if (storeId !== undefined) {
8648
+ localVarQueryParameter['store_id'] = storeId;
8649
+ }
8650
+ if (search !== undefined) {
8651
+ localVarQueryParameter['search'] = search;
8652
+ }
8645
8653
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8646
8654
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8647
8655
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9340,20 +9348,20 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
9340
9348
  };
9341
9349
  }),
9342
9350
  /**
9343
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
9351
+ * Retrieves paginated orders with full filtering, sorting, and search. The `search` field performs case-insensitive matching across: order ID, amount, status, payment type, gateway, currency, gateway order/payment IDs, organization name, and user name.
9344
9352
  * @summary Get orders
9345
9353
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9346
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
9347
- * @param {string} [endDate] End date (YYYY-MM-DD format)
9354
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
9355
+ * @param {string} [endDate] End date (YYYY-MM-DD)
9348
9356
  * @param {number} [page] Page number (default: 1)
9349
9357
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9350
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9351
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
9358
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
9359
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
9352
9360
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
9353
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9354
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9355
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
9356
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
9361
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
9362
+ * @param {string} [status] Filter by order status
9363
+ * @param {string} [gateway] Filter by payment gateway
9364
+ * @param {string} [paymentType] Filter by payment type
9357
9365
  * @param {*} [options] Override http request option.
9358
9366
  * @throws {RequiredError}
9359
9367
  */
@@ -9915,19 +9923,21 @@ export const BillingDashboardApiFp = function (configuration) {
9915
9923
  const localVarAxiosParamCreator = BillingDashboardApiAxiosParamCreator(configuration);
9916
9924
  return {
9917
9925
  /**
9918
- * Returns paginated billing alerts configured for the organization
9926
+ * 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.
9919
9927
  * @summary Get billing alerts
9920
9928
  * @param {number} [page] Page number (default: 1)
9921
9929
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9922
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
9923
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9930
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
9931
+ * @param {number} [offset] Alternative offset
9932
+ * @param {number} [storeId] Filter alerts by store
9933
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
9924
9934
  * @param {*} [options] Override http request option.
9925
9935
  * @throws {RequiredError}
9926
9936
  */
9927
- adminBillingAlertsGet(page, pageSize, limit, offset, options) {
9937
+ adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
9928
9938
  return __awaiter(this, void 0, void 0, function* () {
9929
9939
  var _a, _b, _c;
9930
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, options);
9940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options);
9931
9941
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9932
9942
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9933
9943
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -10246,20 +10256,20 @@ export const BillingDashboardApiFp = function (configuration) {
10246
10256
  });
10247
10257
  },
10248
10258
  /**
10249
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
10259
+ * Retrieves paginated orders with full filtering, sorting, and search. The `search` field performs case-insensitive matching across: order ID, amount, status, payment type, gateway, currency, gateway order/payment IDs, organization name, and user name.
10250
10260
  * @summary Get orders
10251
10261
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
10252
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
10253
- * @param {string} [endDate] End date (YYYY-MM-DD format)
10262
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
10263
+ * @param {string} [endDate] End date (YYYY-MM-DD)
10254
10264
  * @param {number} [page] Page number (default: 1)
10255
10265
  * @param {number} [pageSize] Page size (default: 50, max: 100)
10256
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
10257
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
10266
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
10267
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
10258
10268
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
10259
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
10260
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
10261
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
10262
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
10269
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
10270
+ * @param {string} [status] Filter by order status
10271
+ * @param {string} [gateway] Filter by payment gateway
10272
+ * @param {string} [paymentType] Filter by payment type
10263
10273
  * @param {*} [options] Override http request option.
10264
10274
  * @throws {RequiredError}
10265
10275
  */
@@ -10512,17 +10522,19 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
10512
10522
  const localVarFp = BillingDashboardApiFp(configuration);
10513
10523
  return {
10514
10524
  /**
10515
- * Returns paginated billing alerts configured for the organization
10525
+ * 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.
10516
10526
  * @summary Get billing alerts
10517
10527
  * @param {number} [page] Page number (default: 1)
10518
10528
  * @param {number} [pageSize] Page size (default: 50, max: 100)
10519
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
10520
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
10529
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
10530
+ * @param {number} [offset] Alternative offset
10531
+ * @param {number} [storeId] Filter alerts by store
10532
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
10521
10533
  * @param {*} [options] Override http request option.
10522
10534
  * @throws {RequiredError}
10523
10535
  */
10524
- adminBillingAlertsGet(page, pageSize, limit, offset, options) {
10525
- return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
10536
+ adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
10537
+ return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(axios, basePath));
10526
10538
  },
10527
10539
  /**
10528
10540
  * Deletes a billing alert configuration
@@ -10735,20 +10747,20 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
10735
10747
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
10736
10748
  },
10737
10749
  /**
10738
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
10750
+ * Retrieves paginated orders with full filtering, sorting, and search. The `search` field performs case-insensitive matching across: order ID, amount, status, payment type, gateway, currency, gateway order/payment IDs, organization name, and user name.
10739
10751
  * @summary Get orders
10740
10752
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
10741
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
10742
- * @param {string} [endDate] End date (YYYY-MM-DD format)
10753
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
10754
+ * @param {string} [endDate] End date (YYYY-MM-DD)
10743
10755
  * @param {number} [page] Page number (default: 1)
10744
10756
  * @param {number} [pageSize] Page size (default: 50, max: 100)
10745
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
10746
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
10757
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
10758
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
10747
10759
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
10748
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
10749
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
10750
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
10751
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
10760
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
10761
+ * @param {string} [status] Filter by order status
10762
+ * @param {string} [gateway] Filter by payment gateway
10763
+ * @param {string} [paymentType] Filter by payment type
10752
10764
  * @param {*} [options] Override http request option.
10753
10765
  * @throws {RequiredError}
10754
10766
  */
@@ -10917,18 +10929,20 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
10917
10929
  */
10918
10930
  export class BillingDashboardApi extends BaseAPI {
10919
10931
  /**
10920
- * Returns paginated billing alerts configured for the organization
10932
+ * 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.
10921
10933
  * @summary Get billing alerts
10922
10934
  * @param {number} [page] Page number (default: 1)
10923
10935
  * @param {number} [pageSize] Page size (default: 50, max: 100)
10924
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
10925
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
10936
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
10937
+ * @param {number} [offset] Alternative offset
10938
+ * @param {number} [storeId] Filter alerts by store
10939
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
10926
10940
  * @param {*} [options] Override http request option.
10927
10941
  * @throws {RequiredError}
10928
10942
  * @memberof BillingDashboardApi
10929
10943
  */
10930
- adminBillingAlertsGet(page, pageSize, limit, offset, options) {
10931
- return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
10944
+ adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
10945
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(this.axios, this.basePath));
10932
10946
  }
10933
10947
  /**
10934
10948
  * Deletes a billing alert configuration
@@ -11158,20 +11172,20 @@ export class BillingDashboardApi extends BaseAPI {
11158
11172
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
11159
11173
  }
11160
11174
  /**
11161
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
11175
+ * Retrieves paginated orders with full filtering, sorting, and search. The `search` field performs case-insensitive matching across: order ID, amount, status, payment type, gateway, currency, gateway order/payment IDs, organization name, and user name.
11162
11176
  * @summary Get orders
11163
11177
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
11164
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
11165
- * @param {string} [endDate] End date (YYYY-MM-DD format)
11178
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
11179
+ * @param {string} [endDate] End date (YYYY-MM-DD)
11166
11180
  * @param {number} [page] Page number (default: 1)
11167
11181
  * @param {number} [pageSize] Page size (default: 50, max: 100)
11168
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
11169
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
11182
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
11183
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
11170
11184
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
11171
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
11172
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
11173
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
11174
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
11185
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
11186
+ * @param {string} [status] Filter by order status
11187
+ * @param {string} [gateway] Filter by payment gateway
11188
+ * @param {string} [paymentType] Filter by payment type
11175
11189
  * @param {*} [options] Override http request option.
11176
11190
  * @throws {RequiredError}
11177
11191
  * @memberof BillingDashboardApi
@@ -11431,7 +11445,10 @@ export const AdminBillingOrdersGetSortByEnum = {
11431
11445
  Amount: 'amount',
11432
11446
  CreatedAt: 'created_at',
11433
11447
  UpdatedAt: 'updated_at',
11434
- Status: 'status'
11448
+ Status: 'status',
11449
+ OrgId: 'org_id',
11450
+ UserId: 'user_id',
11451
+ Gateway: 'gateway'
11435
11452
  };
11436
11453
  /**
11437
11454
  * @export
@@ -14968,12 +14985,13 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
14968
14985
  };
14969
14986
  }),
14970
14987
  /**
14971
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
14988
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
14972
14989
  * @summary Sync all metrics (Admin)
14990
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
14973
14991
  * @param {*} [options] Override http request option.
14974
14992
  * @throws {RequiredError}
14975
14993
  */
14976
- adminFeatureLimitsMetricsSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14994
+ adminFeatureLimitsMetricsSyncPost: (force_1, ...args_1) => __awaiter(this, [force_1, ...args_1], void 0, function* (force, options = {}) {
14977
14995
  const localVarPath = `/admin/feature-limits/metrics/sync`;
14978
14996
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14979
14997
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14986,6 +15004,9 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
14986
15004
  const localVarQueryParameter = {};
14987
15005
  // authentication BearerAuth required
14988
15006
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
15007
+ if (force !== undefined) {
15008
+ localVarQueryParameter['force'] = force;
15009
+ }
14989
15010
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14990
15011
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14991
15012
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -15052,15 +15073,16 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
15052
15073
  });
15053
15074
  },
15054
15075
  /**
15055
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
15076
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
15056
15077
  * @summary Sync all metrics (Admin)
15078
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
15057
15079
  * @param {*} [options] Override http request option.
15058
15080
  * @throws {RequiredError}
15059
15081
  */
15060
- adminFeatureLimitsMetricsSyncPost(options) {
15082
+ adminFeatureLimitsMetricsSyncPost(force, options) {
15061
15083
  return __awaiter(this, void 0, void 0, function* () {
15062
15084
  var _a, _b, _c;
15063
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
15085
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(force, options);
15064
15086
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15065
15087
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15066
15088
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15101,13 +15123,14 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
15101
15123
  return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
15102
15124
  },
15103
15125
  /**
15104
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
15126
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
15105
15127
  * @summary Sync all metrics (Admin)
15128
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
15106
15129
  * @param {*} [options] Override http request option.
15107
15130
  * @throws {RequiredError}
15108
15131
  */
15109
- adminFeatureLimitsMetricsSyncPost(options) {
15110
- return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
15132
+ adminFeatureLimitsMetricsSyncPost(force, options) {
15133
+ return localVarFp.adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(axios, basePath));
15111
15134
  },
15112
15135
  /**
15113
15136
  * Resets usage counter for a specific feature (admin only)
@@ -15139,14 +15162,15 @@ export class FeatureLimitsAdminApi extends BaseAPI {
15139
15162
  return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
15140
15163
  }
15141
15164
  /**
15142
- * Recalculates and syncs all metrics for the organization from source tables to database and Redis
15165
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis. For increment-based metrics (api_calls, analytics_events), only syncs if Redis is empty unless force=true
15143
15166
  * @summary Sync all metrics (Admin)
15167
+ * @param {boolean} [force] Force sync increment-based metrics even if Redis has values
15144
15168
  * @param {*} [options] Override http request option.
15145
15169
  * @throws {RequiredError}
15146
15170
  * @memberof FeatureLimitsAdminApi
15147
15171
  */
15148
- adminFeatureLimitsMetricsSyncPost(options) {
15149
- return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
15172
+ adminFeatureLimitsMetricsSyncPost(force, options) {
15173
+ return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(this.axios, this.basePath));
15150
15174
  }
15151
15175
  /**
15152
15176
  * Resets usage counter for a specific feature (admin only)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file