@seekora-ai/admin-api 1.1.22 → 1.1.24

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.1.22
1
+ ## @seekora-ai/admin-api@1.1.24
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.1.22 --save
39
+ npm install @seekora-ai/admin-api@1.1.24 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
205
205
  *FeatureLimitsApi* | [**featureLimitsStatusGet**](docs/FeatureLimitsApi.md#featurelimitsstatusget) | **GET** /feature-limits/status | Get real-time limit status
206
206
  *FeatureLimitsApi* | [**featureLimitsUsageGet**](docs/FeatureLimitsApi.md#featurelimitsusageget) | **GET** /feature-limits/usage | Get feature usage statistics
207
207
  *FeatureLimitsAdminApi* | [**adminFeatureLimitsCacheInvalidatePost**](docs/FeatureLimitsAdminApi.md#adminfeaturelimitscacheinvalidatepost) | **POST** /admin/feature-limits/cache/invalidate | Invalidate plan cache (Admin)
208
+ *FeatureLimitsAdminApi* | [**adminFeatureLimitsMetricsSyncPost**](docs/FeatureLimitsAdminApi.md#adminfeaturelimitsmetricssyncpost) | **POST** /admin/feature-limits/metrics/sync | Sync all metrics (Admin)
208
209
  *FeatureLimitsAdminApi* | [**adminFeatureLimitsResetPost**](docs/FeatureLimitsAdminApi.md#adminfeaturelimitsresetpost) | **POST** /admin/feature-limits/reset | Reset feature usage (Admin)
209
210
  *ItemAnalyticsApi* | [**adminAnalyticsStoreXStoreIDItemsComparisonGet**](docs/ItemAnalyticsApi.md#adminanalyticsstorexstoreiditemscomparisonget) | **GET** /admin/analytics/store/{xStoreID}/items/comparison | Get Item Comparison Analytics
210
211
  *ItemAnalyticsApi* | [**adminAnalyticsStoreXStoreIDItemsDiscoveryGet**](docs/ItemAnalyticsApi.md#adminanalyticsstorexstoreiditemsdiscoveryget) | **GET** /admin/analytics/store/{xStoreID}/items/discovery | Get Item Discovery Analytics
package/api.ts CHANGED
@@ -32751,16 +32751,18 @@ export class AutomatedRefundManagementApi extends BaseAPI {
32751
32751
  export const BillingDashboardApiAxiosParamCreator = function (configuration?: Configuration) {
32752
32752
  return {
32753
32753
  /**
32754
- * Returns paginated billing alerts configured for the organization
32754
+ * 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.
32755
32755
  * @summary Get billing alerts
32756
32756
  * @param {number} [page] Page number (default: 1)
32757
32757
  * @param {number} [pageSize] Page size (default: 50, max: 100)
32758
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
32759
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
32758
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
32759
+ * @param {number} [offset] Alternative offset
32760
+ * @param {number} [storeId] Filter alerts by store
32761
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
32760
32762
  * @param {*} [options] Override http request option.
32761
32763
  * @throws {RequiredError}
32762
32764
  */
32763
- adminBillingAlertsGet: async (page?: number, pageSize?: number, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32765
+ adminBillingAlertsGet: async (page?: number, pageSize?: number, limit?: number, offset?: number, storeId?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32764
32766
  const localVarPath = `/admin/billing/alerts`;
32765
32767
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32766
32768
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -32792,6 +32794,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
32792
32794
  localVarQueryParameter['offset'] = offset;
32793
32795
  }
32794
32796
 
32797
+ if (storeId !== undefined) {
32798
+ localVarQueryParameter['store_id'] = storeId;
32799
+ }
32800
+
32801
+ if (search !== undefined) {
32802
+ localVarQueryParameter['search'] = search;
32803
+ }
32804
+
32795
32805
 
32796
32806
 
32797
32807
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -33643,20 +33653,20 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
33643
33653
  };
33644
33654
  },
33645
33655
  /**
33646
- * 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.
33656
+ * 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.
33647
33657
  * @summary Get orders
33648
33658
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
33649
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
33650
- * @param {string} [endDate] End date (YYYY-MM-DD format)
33659
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
33660
+ * @param {string} [endDate] End date (YYYY-MM-DD)
33651
33661
  * @param {number} [page] Page number (default: 1)
33652
33662
  * @param {number} [pageSize] Page size (default: 50, max: 100)
33653
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
33654
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
33663
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
33664
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
33655
33665
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
33656
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
33657
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
33658
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
33659
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
33666
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
33667
+ * @param {string} [status] Filter by order status
33668
+ * @param {string} [gateway] Filter by payment gateway
33669
+ * @param {string} [paymentType] Filter by payment type
33660
33670
  * @param {*} [options] Override http request option.
33661
33671
  * @throws {RequiredError}
33662
33672
  */
@@ -34346,17 +34356,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
34346
34356
  const localVarAxiosParamCreator = BillingDashboardApiAxiosParamCreator(configuration)
34347
34357
  return {
34348
34358
  /**
34349
- * Returns paginated billing alerts configured for the organization
34359
+ * 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.
34350
34360
  * @summary Get billing alerts
34351
34361
  * @param {number} [page] Page number (default: 1)
34352
34362
  * @param {number} [pageSize] Page size (default: 50, max: 100)
34353
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
34354
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
34363
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
34364
+ * @param {number} [offset] Alternative offset
34365
+ * @param {number} [storeId] Filter alerts by store
34366
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
34355
34367
  * @param {*} [options] Override http request option.
34356
34368
  * @throws {RequiredError}
34357
34369
  */
34358
- async adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
34359
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, options);
34370
+ async adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, storeId?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
34371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options);
34360
34372
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34361
34373
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingAlertsGet']?.[localVarOperationServerIndex]?.url;
34362
34374
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -34623,20 +34635,20 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
34623
34635
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34624
34636
  },
34625
34637
  /**
34626
- * 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.
34638
+ * 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.
34627
34639
  * @summary Get orders
34628
34640
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
34629
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
34630
- * @param {string} [endDate] End date (YYYY-MM-DD format)
34641
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
34642
+ * @param {string} [endDate] End date (YYYY-MM-DD)
34631
34643
  * @param {number} [page] Page number (default: 1)
34632
34644
  * @param {number} [pageSize] Page size (default: 50, max: 100)
34633
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
34634
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
34645
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
34646
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
34635
34647
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
34636
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
34637
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
34638
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
34639
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
34648
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
34649
+ * @param {string} [status] Filter by order status
34650
+ * @param {string} [gateway] Filter by payment gateway
34651
+ * @param {string} [paymentType] Filter by payment type
34640
34652
  * @param {*} [options] Override http request option.
34641
34653
  * @throws {RequiredError}
34642
34654
  */
@@ -34848,17 +34860,19 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
34848
34860
  const localVarFp = BillingDashboardApiFp(configuration)
34849
34861
  return {
34850
34862
  /**
34851
- * Returns paginated billing alerts configured for the organization
34863
+ * 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.
34852
34864
  * @summary Get billing alerts
34853
34865
  * @param {number} [page] Page number (default: 1)
34854
34866
  * @param {number} [pageSize] Page size (default: 50, max: 100)
34855
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
34856
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
34867
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
34868
+ * @param {number} [offset] Alternative offset
34869
+ * @param {number} [storeId] Filter alerts by store
34870
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
34857
34871
  * @param {*} [options] Override http request option.
34858
34872
  * @throws {RequiredError}
34859
34873
  */
34860
- adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
34861
- return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
34874
+ adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, storeId?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
34875
+ return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(axios, basePath));
34862
34876
  },
34863
34877
  /**
34864
34878
  * Deletes a billing alert configuration
@@ -35071,20 +35085,20 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
35071
35085
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
35072
35086
  },
35073
35087
  /**
35074
- * 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.
35088
+ * 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.
35075
35089
  * @summary Get orders
35076
35090
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
35077
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
35078
- * @param {string} [endDate] End date (YYYY-MM-DD format)
35091
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
35092
+ * @param {string} [endDate] End date (YYYY-MM-DD)
35079
35093
  * @param {number} [page] Page number (default: 1)
35080
35094
  * @param {number} [pageSize] Page size (default: 50, max: 100)
35081
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
35082
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
35095
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
35096
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
35083
35097
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
35084
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
35085
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
35086
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
35087
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
35098
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
35099
+ * @param {string} [status] Filter by order status
35100
+ * @param {string} [gateway] Filter by payment gateway
35101
+ * @param {string} [paymentType] Filter by payment type
35088
35102
  * @param {*} [options] Override http request option.
35089
35103
  * @throws {RequiredError}
35090
35104
  */
@@ -35254,18 +35268,20 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
35254
35268
  */
35255
35269
  export class BillingDashboardApi extends BaseAPI {
35256
35270
  /**
35257
- * Returns paginated billing alerts configured for the organization
35271
+ * 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.
35258
35272
  * @summary Get billing alerts
35259
35273
  * @param {number} [page] Page number (default: 1)
35260
35274
  * @param {number} [pageSize] Page size (default: 50, max: 100)
35261
- * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
35262
- * @param {number} [offset] Alternative: Number of results to skip (default: 0)
35275
+ * @param {number} [limit] Alternative limit (default: 50, max: 100)
35276
+ * @param {number} [offset] Alternative offset
35277
+ * @param {number} [storeId] Filter alerts by store
35278
+ * @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
35263
35279
  * @param {*} [options] Override http request option.
35264
35280
  * @throws {RequiredError}
35265
35281
  * @memberof BillingDashboardApi
35266
35282
  */
35267
- public adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
35268
- return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
35283
+ public adminBillingAlertsGet(page?: number, pageSize?: number, limit?: number, offset?: number, storeId?: number, search?: string, options?: RawAxiosRequestConfig) {
35284
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(this.axios, this.basePath));
35269
35285
  }
35270
35286
 
35271
35287
  /**
@@ -35513,20 +35529,20 @@ export class BillingDashboardApi extends BaseAPI {
35513
35529
  }
35514
35530
 
35515
35531
  /**
35516
- * 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.
35532
+ * 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.
35517
35533
  * @summary Get orders
35518
35534
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
35519
- * @param {string} [startDate] Start date (YYYY-MM-DD format)
35520
- * @param {string} [endDate] End date (YYYY-MM-DD format)
35535
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
35536
+ * @param {string} [endDate] End date (YYYY-MM-DD)
35521
35537
  * @param {number} [page] Page number (default: 1)
35522
35538
  * @param {number} [pageSize] Page size (default: 50, max: 100)
35523
- * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
35524
- * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
35539
+ * @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
35540
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
35525
35541
  * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
35526
- * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
35527
- * @param {string} [status] Filter by order status (created, paid, failed, refunded)
35528
- * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
35529
- * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
35542
+ * @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
35543
+ * @param {string} [status] Filter by order status
35544
+ * @param {string} [gateway] Filter by payment gateway
35545
+ * @param {string} [paymentType] Filter by payment type
35530
35546
  * @param {*} [options] Override http request option.
35531
35547
  * @throws {RequiredError}
35532
35548
  * @memberof BillingDashboardApi
@@ -35808,7 +35824,10 @@ export const AdminBillingOrdersGetSortByEnum = {
35808
35824
  Amount: 'amount',
35809
35825
  CreatedAt: 'created_at',
35810
35826
  UpdatedAt: 'updated_at',
35811
- Status: 'status'
35827
+ Status: 'status',
35828
+ OrgId: 'org_id',
35829
+ UserId: 'user_id',
35830
+ Gateway: 'gateway'
35812
35831
  } as const;
35813
35832
  export type AdminBillingOrdersGetSortByEnum = typeof AdminBillingOrdersGetSortByEnum[keyof typeof AdminBillingOrdersGetSortByEnum];
35814
35833
  /**
@@ -39614,6 +39633,39 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
39614
39633
 
39615
39634
 
39616
39635
 
39636
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39638
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39639
+
39640
+ return {
39641
+ url: toPathString(localVarUrlObj),
39642
+ options: localVarRequestOptions,
39643
+ };
39644
+ },
39645
+ /**
39646
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis
39647
+ * @summary Sync all metrics (Admin)
39648
+ * @param {*} [options] Override http request option.
39649
+ * @throws {RequiredError}
39650
+ */
39651
+ adminFeatureLimitsMetricsSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39652
+ const localVarPath = `/admin/feature-limits/metrics/sync`;
39653
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39654
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39655
+ let baseOptions;
39656
+ if (configuration) {
39657
+ baseOptions = configuration.baseOptions;
39658
+ }
39659
+
39660
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
39661
+ const localVarHeaderParameter = {} as any;
39662
+ const localVarQueryParameter = {} as any;
39663
+
39664
+ // authentication BearerAuth required
39665
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
39666
+
39667
+
39668
+
39617
39669
  setSearchParams(localVarUrlObj, localVarQueryParameter);
39618
39670
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39619
39671
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -39685,6 +39737,18 @@ export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
39685
39737
  const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsCacheInvalidatePost']?.[localVarOperationServerIndex]?.url;
39686
39738
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39687
39739
  },
39740
+ /**
39741
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis
39742
+ * @summary Sync all metrics (Admin)
39743
+ * @param {*} [options] Override http request option.
39744
+ * @throws {RequiredError}
39745
+ */
39746
+ async adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
39747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
39748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39749
+ const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']?.[localVarOperationServerIndex]?.url;
39750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39751
+ },
39688
39752
  /**
39689
39753
  * Resets usage counter for a specific feature (admin only)
39690
39754
  * @summary Reset feature usage (Admin)
@@ -39717,6 +39781,15 @@ export const FeatureLimitsAdminApiFactory = function (configuration?: Configurat
39717
39781
  adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
39718
39782
  return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
39719
39783
  },
39784
+ /**
39785
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis
39786
+ * @summary Sync all metrics (Admin)
39787
+ * @param {*} [options] Override http request option.
39788
+ * @throws {RequiredError}
39789
+ */
39790
+ adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
39791
+ return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
39792
+ },
39720
39793
  /**
39721
39794
  * Resets usage counter for a specific feature (admin only)
39722
39795
  * @summary Reset feature usage (Admin)
@@ -39748,6 +39821,17 @@ export class FeatureLimitsAdminApi extends BaseAPI {
39748
39821
  return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
39749
39822
  }
39750
39823
 
39824
+ /**
39825
+ * Recalculates and syncs all metrics for the organization from source tables to database and Redis
39826
+ * @summary Sync all metrics (Admin)
39827
+ * @param {*} [options] Override http request option.
39828
+ * @throws {RequiredError}
39829
+ * @memberof FeatureLimitsAdminApi
39830
+ */
39831
+ public adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig) {
39832
+ return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
39833
+ }
39834
+
39751
39835
  /**
39752
39836
  * Resets usage counter for a specific feature (admin only)
39753
39837
  * @summary Reset feature usage (Admin)