@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/dist/api.js
CHANGED
|
@@ -8657,16 +8657,18 @@ exports.AutomatedRefundManagementApi = AutomatedRefundManagementApi;
|
|
|
8657
8657
|
const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
8658
8658
|
return {
|
|
8659
8659
|
/**
|
|
8660
|
-
*
|
|
8660
|
+
* 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.
|
|
8661
8661
|
* @summary Get billing alerts
|
|
8662
8662
|
* @param {number} [page] Page number (default: 1)
|
|
8663
8663
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8664
|
-
* @param {number} [limit] Alternative
|
|
8665
|
-
* @param {number} [offset] Alternative
|
|
8664
|
+
* @param {number} [limit] Alternative limit (default: 50, max: 100)
|
|
8665
|
+
* @param {number} [offset] Alternative offset
|
|
8666
|
+
* @param {number} [storeId] Filter alerts by store
|
|
8667
|
+
* @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
|
|
8666
8668
|
* @param {*} [options] Override http request option.
|
|
8667
8669
|
* @throws {RequiredError}
|
|
8668
8670
|
*/
|
|
8669
|
-
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 = {}) {
|
|
8671
|
+
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 = {}) {
|
|
8670
8672
|
const localVarPath = `/admin/billing/alerts`;
|
|
8671
8673
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8672
8674
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8691,6 +8693,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8691
8693
|
if (offset !== undefined) {
|
|
8692
8694
|
localVarQueryParameter['offset'] = offset;
|
|
8693
8695
|
}
|
|
8696
|
+
if (storeId !== undefined) {
|
|
8697
|
+
localVarQueryParameter['store_id'] = storeId;
|
|
8698
|
+
}
|
|
8699
|
+
if (search !== undefined) {
|
|
8700
|
+
localVarQueryParameter['search'] = search;
|
|
8701
|
+
}
|
|
8694
8702
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8695
8703
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8696
8704
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9389,20 +9397,20 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
9389
9397
|
};
|
|
9390
9398
|
}),
|
|
9391
9399
|
/**
|
|
9392
|
-
* Retrieves paginated
|
|
9400
|
+
* 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.
|
|
9393
9401
|
* @summary Get orders
|
|
9394
9402
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9395
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
9396
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
9403
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD)
|
|
9404
|
+
* @param {string} [endDate] End date (YYYY-MM-DD)
|
|
9397
9405
|
* @param {number} [page] Page number (default: 1)
|
|
9398
9406
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9399
|
-
* @param {number} [limit] Alternative: Number of results
|
|
9400
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
9407
|
+
* @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
|
|
9408
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
|
|
9401
9409
|
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
9402
|
-
* @param {string} [search] Search
|
|
9403
|
-
* @param {string} [status] Filter by order status
|
|
9404
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
9405
|
-
* @param {string} [paymentType] Filter by payment type
|
|
9410
|
+
* @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
|
|
9411
|
+
* @param {string} [status] Filter by order status
|
|
9412
|
+
* @param {string} [gateway] Filter by payment gateway
|
|
9413
|
+
* @param {string} [paymentType] Filter by payment type
|
|
9406
9414
|
* @param {*} [options] Override http request option.
|
|
9407
9415
|
* @throws {RequiredError}
|
|
9408
9416
|
*/
|
|
@@ -9965,19 +9973,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9965
9973
|
const localVarAxiosParamCreator = (0, exports.BillingDashboardApiAxiosParamCreator)(configuration);
|
|
9966
9974
|
return {
|
|
9967
9975
|
/**
|
|
9968
|
-
*
|
|
9976
|
+
* 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.
|
|
9969
9977
|
* @summary Get billing alerts
|
|
9970
9978
|
* @param {number} [page] Page number (default: 1)
|
|
9971
9979
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9972
|
-
* @param {number} [limit] Alternative
|
|
9973
|
-
* @param {number} [offset] Alternative
|
|
9980
|
+
* @param {number} [limit] Alternative limit (default: 50, max: 100)
|
|
9981
|
+
* @param {number} [offset] Alternative offset
|
|
9982
|
+
* @param {number} [storeId] Filter alerts by store
|
|
9983
|
+
* @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
|
|
9974
9984
|
* @param {*} [options] Override http request option.
|
|
9975
9985
|
* @throws {RequiredError}
|
|
9976
9986
|
*/
|
|
9977
|
-
adminBillingAlertsGet(page, pageSize, limit, offset, options) {
|
|
9987
|
+
adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
|
|
9978
9988
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9979
9989
|
var _a, _b, _c;
|
|
9980
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, options);
|
|
9990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options);
|
|
9981
9991
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9982
9992
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9983
9993
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10296,20 +10306,20 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
10296
10306
|
});
|
|
10297
10307
|
},
|
|
10298
10308
|
/**
|
|
10299
|
-
* Retrieves paginated
|
|
10309
|
+
* 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.
|
|
10300
10310
|
* @summary Get orders
|
|
10301
10311
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
10302
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
10303
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
10312
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD)
|
|
10313
|
+
* @param {string} [endDate] End date (YYYY-MM-DD)
|
|
10304
10314
|
* @param {number} [page] Page number (default: 1)
|
|
10305
10315
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10306
|
-
* @param {number} [limit] Alternative: Number of results
|
|
10307
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
10316
|
+
* @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
|
|
10317
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
|
|
10308
10318
|
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
10309
|
-
* @param {string} [search] Search
|
|
10310
|
-
* @param {string} [status] Filter by order status
|
|
10311
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
10312
|
-
* @param {string} [paymentType] Filter by payment type
|
|
10319
|
+
* @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
|
|
10320
|
+
* @param {string} [status] Filter by order status
|
|
10321
|
+
* @param {string} [gateway] Filter by payment gateway
|
|
10322
|
+
* @param {string} [paymentType] Filter by payment type
|
|
10313
10323
|
* @param {*} [options] Override http request option.
|
|
10314
10324
|
* @throws {RequiredError}
|
|
10315
10325
|
*/
|
|
@@ -10563,17 +10573,19 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
10563
10573
|
const localVarFp = (0, exports.BillingDashboardApiFp)(configuration);
|
|
10564
10574
|
return {
|
|
10565
10575
|
/**
|
|
10566
|
-
*
|
|
10576
|
+
* 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.
|
|
10567
10577
|
* @summary Get billing alerts
|
|
10568
10578
|
* @param {number} [page] Page number (default: 1)
|
|
10569
10579
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10570
|
-
* @param {number} [limit] Alternative
|
|
10571
|
-
* @param {number} [offset] Alternative
|
|
10580
|
+
* @param {number} [limit] Alternative limit (default: 50, max: 100)
|
|
10581
|
+
* @param {number} [offset] Alternative offset
|
|
10582
|
+
* @param {number} [storeId] Filter alerts by store
|
|
10583
|
+
* @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
|
|
10572
10584
|
* @param {*} [options] Override http request option.
|
|
10573
10585
|
* @throws {RequiredError}
|
|
10574
10586
|
*/
|
|
10575
|
-
adminBillingAlertsGet(page, pageSize, limit, offset, options) {
|
|
10576
|
-
return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
10587
|
+
adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
|
|
10588
|
+
return localVarFp.adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(axios, basePath));
|
|
10577
10589
|
},
|
|
10578
10590
|
/**
|
|
10579
10591
|
* Deletes a billing alert configuration
|
|
@@ -10786,20 +10798,20 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
10786
10798
|
return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
10787
10799
|
},
|
|
10788
10800
|
/**
|
|
10789
|
-
* Retrieves paginated
|
|
10801
|
+
* 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.
|
|
10790
10802
|
* @summary Get orders
|
|
10791
10803
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
10792
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
10793
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
10804
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD)
|
|
10805
|
+
* @param {string} [endDate] End date (YYYY-MM-DD)
|
|
10794
10806
|
* @param {number} [page] Page number (default: 1)
|
|
10795
10807
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10796
|
-
* @param {number} [limit] Alternative: Number of results
|
|
10797
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
10808
|
+
* @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
|
|
10809
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
|
|
10798
10810
|
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
10799
|
-
* @param {string} [search] Search
|
|
10800
|
-
* @param {string} [status] Filter by order status
|
|
10801
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
10802
|
-
* @param {string} [paymentType] Filter by payment type
|
|
10811
|
+
* @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
|
|
10812
|
+
* @param {string} [status] Filter by order status
|
|
10813
|
+
* @param {string} [gateway] Filter by payment gateway
|
|
10814
|
+
* @param {string} [paymentType] Filter by payment type
|
|
10803
10815
|
* @param {*} [options] Override http request option.
|
|
10804
10816
|
* @throws {RequiredError}
|
|
10805
10817
|
*/
|
|
@@ -10969,18 +10981,20 @@ exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
|
10969
10981
|
*/
|
|
10970
10982
|
class BillingDashboardApi extends base_1.BaseAPI {
|
|
10971
10983
|
/**
|
|
10972
|
-
*
|
|
10984
|
+
* 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.
|
|
10973
10985
|
* @summary Get billing alerts
|
|
10974
10986
|
* @param {number} [page] Page number (default: 1)
|
|
10975
10987
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10976
|
-
* @param {number} [limit] Alternative
|
|
10977
|
-
* @param {number} [offset] Alternative
|
|
10988
|
+
* @param {number} [limit] Alternative limit (default: 50, max: 100)
|
|
10989
|
+
* @param {number} [offset] Alternative offset
|
|
10990
|
+
* @param {number} [storeId] Filter alerts by store
|
|
10991
|
+
* @param {string} [search] Search across alert fields, names, thresholds, org/store names, usernames, and JSON metadata
|
|
10978
10992
|
* @param {*} [options] Override http request option.
|
|
10979
10993
|
* @throws {RequiredError}
|
|
10980
10994
|
* @memberof BillingDashboardApi
|
|
10981
10995
|
*/
|
|
10982
|
-
adminBillingAlertsGet(page, pageSize, limit, offset, options) {
|
|
10983
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
10996
|
+
adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options) {
|
|
10997
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsGet(page, pageSize, limit, offset, storeId, search, options).then((request) => request(this.axios, this.basePath));
|
|
10984
10998
|
}
|
|
10985
10999
|
/**
|
|
10986
11000
|
* Deletes a billing alert configuration
|
|
@@ -11210,20 +11224,20 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
11210
11224
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11211
11225
|
}
|
|
11212
11226
|
/**
|
|
11213
|
-
* Retrieves paginated
|
|
11227
|
+
* 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.
|
|
11214
11228
|
* @summary Get orders
|
|
11215
11229
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
11216
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD
|
|
11217
|
-
* @param {string} [endDate] End date (YYYY-MM-DD
|
|
11230
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD)
|
|
11231
|
+
* @param {string} [endDate] End date (YYYY-MM-DD)
|
|
11218
11232
|
* @param {number} [page] Page number (default: 1)
|
|
11219
11233
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
11220
|
-
* @param {number} [limit] Alternative: Number of results
|
|
11221
|
-
* @param {AdminBillingOrdersGetSortByEnum} [sortBy]
|
|
11234
|
+
* @param {number} [limit] Alternative: Number of results (default: 50, max: 100)
|
|
11235
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Sort field
|
|
11222
11236
|
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
11223
|
-
* @param {string} [search] Search
|
|
11224
|
-
* @param {string} [status] Filter by order status
|
|
11225
|
-
* @param {string} [gateway] Filter by payment gateway
|
|
11226
|
-
* @param {string} [paymentType] Filter by payment type
|
|
11237
|
+
* @param {string} [search] Search across all major fields (ID, amount, status, gateway, org name, user name, etc.)
|
|
11238
|
+
* @param {string} [status] Filter by order status
|
|
11239
|
+
* @param {string} [gateway] Filter by payment gateway
|
|
11240
|
+
* @param {string} [paymentType] Filter by payment type
|
|
11227
11241
|
* @param {*} [options] Override http request option.
|
|
11228
11242
|
* @throws {RequiredError}
|
|
11229
11243
|
* @memberof BillingDashboardApi
|
|
@@ -11484,7 +11498,10 @@ exports.AdminBillingOrdersGetSortByEnum = {
|
|
|
11484
11498
|
Amount: 'amount',
|
|
11485
11499
|
CreatedAt: 'created_at',
|
|
11486
11500
|
UpdatedAt: 'updated_at',
|
|
11487
|
-
Status: 'status'
|
|
11501
|
+
Status: 'status',
|
|
11502
|
+
OrgId: 'org_id',
|
|
11503
|
+
UserId: 'user_id',
|
|
11504
|
+
Gateway: 'gateway'
|
|
11488
11505
|
};
|
|
11489
11506
|
/**
|
|
11490
11507
|
* @export
|
|
@@ -15057,12 +15074,13 @@ const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
15057
15074
|
};
|
|
15058
15075
|
}),
|
|
15059
15076
|
/**
|
|
15060
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15077
|
+
* 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
|
|
15061
15078
|
* @summary Sync all metrics (Admin)
|
|
15079
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15062
15080
|
* @param {*} [options] Override http request option.
|
|
15063
15081
|
* @throws {RequiredError}
|
|
15064
15082
|
*/
|
|
15065
|
-
adminFeatureLimitsMetricsSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15083
|
+
adminFeatureLimitsMetricsSyncPost: (force_1, ...args_1) => __awaiter(this, [force_1, ...args_1], void 0, function* (force, options = {}) {
|
|
15066
15084
|
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
15067
15085
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15068
15086
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -15075,6 +15093,9 @@ const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
15075
15093
|
const localVarQueryParameter = {};
|
|
15076
15094
|
// authentication BearerAuth required
|
|
15077
15095
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
15096
|
+
if (force !== undefined) {
|
|
15097
|
+
localVarQueryParameter['force'] = force;
|
|
15098
|
+
}
|
|
15078
15099
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15079
15100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15080
15101
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -15142,15 +15163,16 @@ const FeatureLimitsAdminApiFp = function (configuration) {
|
|
|
15142
15163
|
});
|
|
15143
15164
|
},
|
|
15144
15165
|
/**
|
|
15145
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15166
|
+
* 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
|
|
15146
15167
|
* @summary Sync all metrics (Admin)
|
|
15168
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15147
15169
|
* @param {*} [options] Override http request option.
|
|
15148
15170
|
* @throws {RequiredError}
|
|
15149
15171
|
*/
|
|
15150
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15172
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15151
15173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15152
15174
|
var _a, _b, _c;
|
|
15153
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
15175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(force, options);
|
|
15154
15176
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15155
15177
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15156
15178
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15192,13 +15214,14 @@ const FeatureLimitsAdminApiFactory = function (configuration, basePath, axios) {
|
|
|
15192
15214
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
15193
15215
|
},
|
|
15194
15216
|
/**
|
|
15195
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15217
|
+
* 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
|
|
15196
15218
|
* @summary Sync all metrics (Admin)
|
|
15219
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15197
15220
|
* @param {*} [options] Override http request option.
|
|
15198
15221
|
* @throws {RequiredError}
|
|
15199
15222
|
*/
|
|
15200
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15201
|
-
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
15223
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15224
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(axios, basePath));
|
|
15202
15225
|
},
|
|
15203
15226
|
/**
|
|
15204
15227
|
* Resets usage counter for a specific feature (admin only)
|
|
@@ -15231,14 +15254,15 @@ class FeatureLimitsAdminApi extends base_1.BaseAPI {
|
|
|
15231
15254
|
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
15232
15255
|
}
|
|
15233
15256
|
/**
|
|
15234
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15257
|
+
* 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
|
|
15235
15258
|
* @summary Sync all metrics (Admin)
|
|
15259
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15236
15260
|
* @param {*} [options] Override http request option.
|
|
15237
15261
|
* @throws {RequiredError}
|
|
15238
15262
|
* @memberof FeatureLimitsAdminApi
|
|
15239
15263
|
*/
|
|
15240
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15241
|
-
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
15264
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15265
|
+
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(this.axios, this.basePath));
|
|
15242
15266
|
}
|
|
15243
15267
|
/**
|
|
15244
15268
|
* Resets usage counter for a specific feature (admin only)
|