@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/README.md +2 -2
- package/api.ts +94 -67
- package/dist/api.d.ts +75 -60
- package/dist/api.js +91 -67
- package/dist/esm/api.d.ts +75 -60
- package/dist/esm/api.js +91 -67
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.25.tgz +0 -0
- package/seekora-ai-admin-api-1.1.23.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.1.
|
|
1
|
+
## @seekora-ai/admin-api@1.1.25
|
|
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.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.1.25 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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
|
-
*
|
|
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
|
|
32759
|
-
* @param {number} [offset] Alternative
|
|
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
|
|
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\'s org)
|
|
33649
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
33650
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
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
|
|
33654
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
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
|
|
33657
|
-
* @param {string} [status] Filter by order status
|
|
33658
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
33659
|
-
* @param {string} [paymentType] Filter by payment type
|
|
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
|
-
*
|
|
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
|
|
34354
|
-
* @param {number} [offset] Alternative
|
|
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
|
|
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\'s org)
|
|
34629
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
34630
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
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
|
|
34634
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
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
|
|
34637
|
-
* @param {string} [status] Filter by order status
|
|
34638
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
34639
|
-
* @param {string} [paymentType] Filter by payment type
|
|
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
|
-
*
|
|
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
|
|
34856
|
-
* @param {number} [offset] Alternative
|
|
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
|
|
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\'s org)
|
|
35077
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
35078
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
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
|
|
35082
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
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
|
|
35085
|
-
* @param {string} [status] Filter by order status
|
|
35086
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
35087
|
-
* @param {string} [paymentType] Filter by payment type
|
|
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
|
-
*
|
|
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
|
|
35262
|
-
* @param {number} [offset] Alternative
|
|
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
|
|
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\'s org)
|
|
35519
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
35520
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
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
|
|
35524
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
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
|
|
35527
|
-
* @param {string} [status] Filter by order status
|
|
35528
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
35529
|
-
* @param {string} [paymentType] Filter by payment type
|
|
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
|
/**
|
|
@@ -39624,12 +39643,13 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
|
|
|
39624
39643
|
};
|
|
39625
39644
|
},
|
|
39626
39645
|
/**
|
|
39627
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39646
|
+
* 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
|
|
39628
39647
|
* @summary Sync all metrics (Admin)
|
|
39648
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
39629
39649
|
* @param {*} [options] Override http request option.
|
|
39630
39650
|
* @throws {RequiredError}
|
|
39631
39651
|
*/
|
|
39632
|
-
adminFeatureLimitsMetricsSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39652
|
+
adminFeatureLimitsMetricsSyncPost: async (force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39633
39653
|
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
39634
39654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39635
39655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -39645,6 +39665,10 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
|
|
|
39645
39665
|
// authentication BearerAuth required
|
|
39646
39666
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
39647
39667
|
|
|
39668
|
+
if (force !== undefined) {
|
|
39669
|
+
localVarQueryParameter['force'] = force;
|
|
39670
|
+
}
|
|
39671
|
+
|
|
39648
39672
|
|
|
39649
39673
|
|
|
39650
39674
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -39719,13 +39743,14 @@ export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
|
|
|
39719
39743
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39720
39744
|
},
|
|
39721
39745
|
/**
|
|
39722
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39746
|
+
* 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
|
|
39723
39747
|
* @summary Sync all metrics (Admin)
|
|
39748
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
39724
39749
|
* @param {*} [options] Override http request option.
|
|
39725
39750
|
* @throws {RequiredError}
|
|
39726
39751
|
*/
|
|
39727
|
-
async adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
39728
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
39752
|
+
async adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
39753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(force, options);
|
|
39729
39754
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
39730
39755
|
const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']?.[localVarOperationServerIndex]?.url;
|
|
39731
39756
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -39763,13 +39788,14 @@ export const FeatureLimitsAdminApiFactory = function (configuration?: Configurat
|
|
|
39763
39788
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
39764
39789
|
},
|
|
39765
39790
|
/**
|
|
39766
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39791
|
+
* 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
|
|
39767
39792
|
* @summary Sync all metrics (Admin)
|
|
39793
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
39768
39794
|
* @param {*} [options] Override http request option.
|
|
39769
39795
|
* @throws {RequiredError}
|
|
39770
39796
|
*/
|
|
39771
|
-
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
39772
|
-
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
39797
|
+
adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
39798
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(axios, basePath));
|
|
39773
39799
|
},
|
|
39774
39800
|
/**
|
|
39775
39801
|
* Resets usage counter for a specific feature (admin only)
|
|
@@ -39803,14 +39829,15 @@ export class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
39803
39829
|
}
|
|
39804
39830
|
|
|
39805
39831
|
/**
|
|
39806
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39832
|
+
* 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
|
|
39807
39833
|
* @summary Sync all metrics (Admin)
|
|
39834
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
39808
39835
|
* @param {*} [options] Override http request option.
|
|
39809
39836
|
* @throws {RequiredError}
|
|
39810
39837
|
* @memberof FeatureLimitsAdminApi
|
|
39811
39838
|
*/
|
|
39812
|
-
public adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig) {
|
|
39813
|
-
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
39839
|
+
public adminFeatureLimitsMetricsSyncPost(force?: boolean, options?: RawAxiosRequestConfig) {
|
|
39840
|
+
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(this.axios, this.basePath));
|
|
39814
39841
|
}
|
|
39815
39842
|
|
|
39816
39843
|
/**
|