@seekora-ai/admin-api 1.1.22 → 1.1.23
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 +3 -2
- package/api.ts +65 -0
- package/dist/api.d.ts +29 -0
- package/dist/api.js +61 -0
- package/dist/esm/api.d.ts +29 -0
- package/dist/esm/api.js +61 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.23.tgz +0 -0
- package/seekora-ai-admin-api-1.1.22.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.23
|
|
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.23 --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
|
@@ -39614,6 +39614,39 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
|
|
|
39614
39614
|
|
|
39615
39615
|
|
|
39616
39616
|
|
|
39617
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39618
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39619
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39620
|
+
|
|
39621
|
+
return {
|
|
39622
|
+
url: toPathString(localVarUrlObj),
|
|
39623
|
+
options: localVarRequestOptions,
|
|
39624
|
+
};
|
|
39625
|
+
},
|
|
39626
|
+
/**
|
|
39627
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39628
|
+
* @summary Sync all metrics (Admin)
|
|
39629
|
+
* @param {*} [options] Override http request option.
|
|
39630
|
+
* @throws {RequiredError}
|
|
39631
|
+
*/
|
|
39632
|
+
adminFeatureLimitsMetricsSyncPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39633
|
+
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
39634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39635
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39636
|
+
let baseOptions;
|
|
39637
|
+
if (configuration) {
|
|
39638
|
+
baseOptions = configuration.baseOptions;
|
|
39639
|
+
}
|
|
39640
|
+
|
|
39641
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
39642
|
+
const localVarHeaderParameter = {} as any;
|
|
39643
|
+
const localVarQueryParameter = {} as any;
|
|
39644
|
+
|
|
39645
|
+
// authentication BearerAuth required
|
|
39646
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
39647
|
+
|
|
39648
|
+
|
|
39649
|
+
|
|
39617
39650
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39618
39651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39619
39652
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -39685,6 +39718,18 @@ export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
|
|
|
39685
39718
|
const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsCacheInvalidatePost']?.[localVarOperationServerIndex]?.url;
|
|
39686
39719
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39687
39720
|
},
|
|
39721
|
+
/**
|
|
39722
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39723
|
+
* @summary Sync all metrics (Admin)
|
|
39724
|
+
* @param {*} [options] Override http request option.
|
|
39725
|
+
* @throws {RequiredError}
|
|
39726
|
+
*/
|
|
39727
|
+
async adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
39728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
39729
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
39730
|
+
const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']?.[localVarOperationServerIndex]?.url;
|
|
39731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39732
|
+
},
|
|
39688
39733
|
/**
|
|
39689
39734
|
* Resets usage counter for a specific feature (admin only)
|
|
39690
39735
|
* @summary Reset feature usage (Admin)
|
|
@@ -39717,6 +39762,15 @@ export const FeatureLimitsAdminApiFactory = function (configuration?: Configurat
|
|
|
39717
39762
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
39718
39763
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
39719
39764
|
},
|
|
39765
|
+
/**
|
|
39766
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39767
|
+
* @summary Sync all metrics (Admin)
|
|
39768
|
+
* @param {*} [options] Override http request option.
|
|
39769
|
+
* @throws {RequiredError}
|
|
39770
|
+
*/
|
|
39771
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
39772
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
39773
|
+
},
|
|
39720
39774
|
/**
|
|
39721
39775
|
* Resets usage counter for a specific feature (admin only)
|
|
39722
39776
|
* @summary Reset feature usage (Admin)
|
|
@@ -39748,6 +39802,17 @@ export class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
39748
39802
|
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
39749
39803
|
}
|
|
39750
39804
|
|
|
39805
|
+
/**
|
|
39806
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
39807
|
+
* @summary Sync all metrics (Admin)
|
|
39808
|
+
* @param {*} [options] Override http request option.
|
|
39809
|
+
* @throws {RequiredError}
|
|
39810
|
+
* @memberof FeatureLimitsAdminApi
|
|
39811
|
+
*/
|
|
39812
|
+
public adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig) {
|
|
39813
|
+
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
39814
|
+
}
|
|
39815
|
+
|
|
39751
39816
|
/**
|
|
39752
39817
|
* Resets usage counter for a specific feature (admin only)
|
|
39753
39818
|
* @summary Reset feature usage (Admin)
|
package/dist/api.d.ts
CHANGED
|
@@ -31633,6 +31633,13 @@ export declare const FeatureLimitsAdminApiAxiosParamCreator: (configuration?: Co
|
|
|
31633
31633
|
* @throws {RequiredError}
|
|
31634
31634
|
*/
|
|
31635
31635
|
adminFeatureLimitsCacheInvalidatePost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31636
|
+
/**
|
|
31637
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31638
|
+
* @summary Sync all metrics (Admin)
|
|
31639
|
+
* @param {*} [options] Override http request option.
|
|
31640
|
+
* @throws {RequiredError}
|
|
31641
|
+
*/
|
|
31642
|
+
adminFeatureLimitsMetricsSyncPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31636
31643
|
/**
|
|
31637
31644
|
* Resets usage counter for a specific feature (admin only)
|
|
31638
31645
|
* @summary Reset feature usage (Admin)
|
|
@@ -31654,6 +31661,13 @@ export declare const FeatureLimitsAdminApiFp: (configuration?: Configuration) =>
|
|
|
31654
31661
|
* @throws {RequiredError}
|
|
31655
31662
|
*/
|
|
31656
31663
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
31664
|
+
/**
|
|
31665
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31666
|
+
* @summary Sync all metrics (Admin)
|
|
31667
|
+
* @param {*} [options] Override http request option.
|
|
31668
|
+
* @throws {RequiredError}
|
|
31669
|
+
*/
|
|
31670
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
31657
31671
|
/**
|
|
31658
31672
|
* Resets usage counter for a specific feature (admin only)
|
|
31659
31673
|
* @summary Reset feature usage (Admin)
|
|
@@ -31675,6 +31689,13 @@ export declare const FeatureLimitsAdminApiFactory: (configuration?: Configuratio
|
|
|
31675
31689
|
* @throws {RequiredError}
|
|
31676
31690
|
*/
|
|
31677
31691
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
31692
|
+
/**
|
|
31693
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31694
|
+
* @summary Sync all metrics (Admin)
|
|
31695
|
+
* @param {*} [options] Override http request option.
|
|
31696
|
+
* @throws {RequiredError}
|
|
31697
|
+
*/
|
|
31698
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
31678
31699
|
/**
|
|
31679
31700
|
* Resets usage counter for a specific feature (admin only)
|
|
31680
31701
|
* @summary Reset feature usage (Admin)
|
|
@@ -31699,6 +31720,14 @@ export declare class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
31699
31720
|
* @memberof FeatureLimitsAdminApi
|
|
31700
31721
|
*/
|
|
31701
31722
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
31723
|
+
/**
|
|
31724
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31725
|
+
* @summary Sync all metrics (Admin)
|
|
31726
|
+
* @param {*} [options] Override http request option.
|
|
31727
|
+
* @throws {RequiredError}
|
|
31728
|
+
* @memberof FeatureLimitsAdminApi
|
|
31729
|
+
*/
|
|
31730
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
31702
31731
|
/**
|
|
31703
31732
|
* Resets usage counter for a specific feature (admin only)
|
|
31704
31733
|
* @summary Reset feature usage (Admin)
|
package/dist/api.js
CHANGED
|
@@ -15056,6 +15056,33 @@ const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
15056
15056
|
options: localVarRequestOptions,
|
|
15057
15057
|
};
|
|
15058
15058
|
}),
|
|
15059
|
+
/**
|
|
15060
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15061
|
+
* @summary Sync all metrics (Admin)
|
|
15062
|
+
* @param {*} [options] Override http request option.
|
|
15063
|
+
* @throws {RequiredError}
|
|
15064
|
+
*/
|
|
15065
|
+
adminFeatureLimitsMetricsSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15066
|
+
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
15067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15068
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15069
|
+
let baseOptions;
|
|
15070
|
+
if (configuration) {
|
|
15071
|
+
baseOptions = configuration.baseOptions;
|
|
15072
|
+
}
|
|
15073
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15074
|
+
const localVarHeaderParameter = {};
|
|
15075
|
+
const localVarQueryParameter = {};
|
|
15076
|
+
// authentication BearerAuth required
|
|
15077
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
15078
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15079
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15080
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15081
|
+
return {
|
|
15082
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15083
|
+
options: localVarRequestOptions,
|
|
15084
|
+
};
|
|
15085
|
+
}),
|
|
15059
15086
|
/**
|
|
15060
15087
|
* Resets usage counter for a specific feature (admin only)
|
|
15061
15088
|
* @summary Reset feature usage (Admin)
|
|
@@ -15114,6 +15141,21 @@ const FeatureLimitsAdminApiFp = function (configuration) {
|
|
|
15114
15141
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15115
15142
|
});
|
|
15116
15143
|
},
|
|
15144
|
+
/**
|
|
15145
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15146
|
+
* @summary Sync all metrics (Admin)
|
|
15147
|
+
* @param {*} [options] Override http request option.
|
|
15148
|
+
* @throws {RequiredError}
|
|
15149
|
+
*/
|
|
15150
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15152
|
+
var _a, _b, _c;
|
|
15153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
15154
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15155
|
+
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
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15157
|
+
});
|
|
15158
|
+
},
|
|
15117
15159
|
/**
|
|
15118
15160
|
* Resets usage counter for a specific feature (admin only)
|
|
15119
15161
|
* @summary Reset feature usage (Admin)
|
|
@@ -15149,6 +15191,15 @@ const FeatureLimitsAdminApiFactory = function (configuration, basePath, axios) {
|
|
|
15149
15191
|
adminFeatureLimitsCacheInvalidatePost(options) {
|
|
15150
15192
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
15151
15193
|
},
|
|
15194
|
+
/**
|
|
15195
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15196
|
+
* @summary Sync all metrics (Admin)
|
|
15197
|
+
* @param {*} [options] Override http request option.
|
|
15198
|
+
* @throws {RequiredError}
|
|
15199
|
+
*/
|
|
15200
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15201
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
15202
|
+
},
|
|
15152
15203
|
/**
|
|
15153
15204
|
* Resets usage counter for a specific feature (admin only)
|
|
15154
15205
|
* @summary Reset feature usage (Admin)
|
|
@@ -15179,6 +15230,16 @@ class FeatureLimitsAdminApi extends base_1.BaseAPI {
|
|
|
15179
15230
|
adminFeatureLimitsCacheInvalidatePost(options) {
|
|
15180
15231
|
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
15181
15232
|
}
|
|
15233
|
+
/**
|
|
15234
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15235
|
+
* @summary Sync all metrics (Admin)
|
|
15236
|
+
* @param {*} [options] Override http request option.
|
|
15237
|
+
* @throws {RequiredError}
|
|
15238
|
+
* @memberof FeatureLimitsAdminApi
|
|
15239
|
+
*/
|
|
15240
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15241
|
+
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
15242
|
+
}
|
|
15182
15243
|
/**
|
|
15183
15244
|
* Resets usage counter for a specific feature (admin only)
|
|
15184
15245
|
* @summary Reset feature usage (Admin)
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -31633,6 +31633,13 @@ export declare const FeatureLimitsAdminApiAxiosParamCreator: (configuration?: Co
|
|
|
31633
31633
|
* @throws {RequiredError}
|
|
31634
31634
|
*/
|
|
31635
31635
|
adminFeatureLimitsCacheInvalidatePost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31636
|
+
/**
|
|
31637
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31638
|
+
* @summary Sync all metrics (Admin)
|
|
31639
|
+
* @param {*} [options] Override http request option.
|
|
31640
|
+
* @throws {RequiredError}
|
|
31641
|
+
*/
|
|
31642
|
+
adminFeatureLimitsMetricsSyncPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31636
31643
|
/**
|
|
31637
31644
|
* Resets usage counter for a specific feature (admin only)
|
|
31638
31645
|
* @summary Reset feature usage (Admin)
|
|
@@ -31654,6 +31661,13 @@ export declare const FeatureLimitsAdminApiFp: (configuration?: Configuration) =>
|
|
|
31654
31661
|
* @throws {RequiredError}
|
|
31655
31662
|
*/
|
|
31656
31663
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
31664
|
+
/**
|
|
31665
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31666
|
+
* @summary Sync all metrics (Admin)
|
|
31667
|
+
* @param {*} [options] Override http request option.
|
|
31668
|
+
* @throws {RequiredError}
|
|
31669
|
+
*/
|
|
31670
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
31657
31671
|
/**
|
|
31658
31672
|
* Resets usage counter for a specific feature (admin only)
|
|
31659
31673
|
* @summary Reset feature usage (Admin)
|
|
@@ -31675,6 +31689,13 @@ export declare const FeatureLimitsAdminApiFactory: (configuration?: Configuratio
|
|
|
31675
31689
|
* @throws {RequiredError}
|
|
31676
31690
|
*/
|
|
31677
31691
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
31692
|
+
/**
|
|
31693
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31694
|
+
* @summary Sync all metrics (Admin)
|
|
31695
|
+
* @param {*} [options] Override http request option.
|
|
31696
|
+
* @throws {RequiredError}
|
|
31697
|
+
*/
|
|
31698
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
31678
31699
|
/**
|
|
31679
31700
|
* Resets usage counter for a specific feature (admin only)
|
|
31680
31701
|
* @summary Reset feature usage (Admin)
|
|
@@ -31699,6 +31720,14 @@ export declare class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
31699
31720
|
* @memberof FeatureLimitsAdminApi
|
|
31700
31721
|
*/
|
|
31701
31722
|
adminFeatureLimitsCacheInvalidatePost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
31723
|
+
/**
|
|
31724
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
31725
|
+
* @summary Sync all metrics (Admin)
|
|
31726
|
+
* @param {*} [options] Override http request option.
|
|
31727
|
+
* @throws {RequiredError}
|
|
31728
|
+
* @memberof FeatureLimitsAdminApi
|
|
31729
|
+
*/
|
|
31730
|
+
adminFeatureLimitsMetricsSyncPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
31702
31731
|
/**
|
|
31703
31732
|
* Resets usage counter for a specific feature (admin only)
|
|
31704
31733
|
* @summary Reset feature usage (Admin)
|
package/dist/esm/api.js
CHANGED
|
@@ -14967,6 +14967,33 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
14967
14967
|
options: localVarRequestOptions,
|
|
14968
14968
|
};
|
|
14969
14969
|
}),
|
|
14970
|
+
/**
|
|
14971
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
14972
|
+
* @summary Sync all metrics (Admin)
|
|
14973
|
+
* @param {*} [options] Override http request option.
|
|
14974
|
+
* @throws {RequiredError}
|
|
14975
|
+
*/
|
|
14976
|
+
adminFeatureLimitsMetricsSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14977
|
+
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
14978
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14979
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14980
|
+
let baseOptions;
|
|
14981
|
+
if (configuration) {
|
|
14982
|
+
baseOptions = configuration.baseOptions;
|
|
14983
|
+
}
|
|
14984
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14985
|
+
const localVarHeaderParameter = {};
|
|
14986
|
+
const localVarQueryParameter = {};
|
|
14987
|
+
// authentication BearerAuth required
|
|
14988
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
14989
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14991
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14992
|
+
return {
|
|
14993
|
+
url: toPathString(localVarUrlObj),
|
|
14994
|
+
options: localVarRequestOptions,
|
|
14995
|
+
};
|
|
14996
|
+
}),
|
|
14970
14997
|
/**
|
|
14971
14998
|
* Resets usage counter for a specific feature (admin only)
|
|
14972
14999
|
* @summary Reset feature usage (Admin)
|
|
@@ -15024,6 +15051,21 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
|
|
|
15024
15051
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15025
15052
|
});
|
|
15026
15053
|
},
|
|
15054
|
+
/**
|
|
15055
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15056
|
+
* @summary Sync all metrics (Admin)
|
|
15057
|
+
* @param {*} [options] Override http request option.
|
|
15058
|
+
* @throws {RequiredError}
|
|
15059
|
+
*/
|
|
15060
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15061
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15062
|
+
var _a, _b, _c;
|
|
15063
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
15064
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15065
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15066
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15067
|
+
});
|
|
15068
|
+
},
|
|
15027
15069
|
/**
|
|
15028
15070
|
* Resets usage counter for a specific feature (admin only)
|
|
15029
15071
|
* @summary Reset feature usage (Admin)
|
|
@@ -15058,6 +15100,15 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
|
|
|
15058
15100
|
adminFeatureLimitsCacheInvalidatePost(options) {
|
|
15059
15101
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
15060
15102
|
},
|
|
15103
|
+
/**
|
|
15104
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15105
|
+
* @summary Sync all metrics (Admin)
|
|
15106
|
+
* @param {*} [options] Override http request option.
|
|
15107
|
+
* @throws {RequiredError}
|
|
15108
|
+
*/
|
|
15109
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15110
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
15111
|
+
},
|
|
15061
15112
|
/**
|
|
15062
15113
|
* Resets usage counter for a specific feature (admin only)
|
|
15063
15114
|
* @summary Reset feature usage (Admin)
|
|
@@ -15087,6 +15138,16 @@ export class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
15087
15138
|
adminFeatureLimitsCacheInvalidatePost(options) {
|
|
15088
15139
|
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
15089
15140
|
}
|
|
15141
|
+
/**
|
|
15142
|
+
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15143
|
+
* @summary Sync all metrics (Admin)
|
|
15144
|
+
* @param {*} [options] Override http request option.
|
|
15145
|
+
* @throws {RequiredError}
|
|
15146
|
+
* @memberof FeatureLimitsAdminApi
|
|
15147
|
+
*/
|
|
15148
|
+
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15149
|
+
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
15150
|
+
}
|
|
15090
15151
|
/**
|
|
15091
15152
|
* Resets usage counter for a specific feature (admin only)
|
|
15092
15153
|
* @summary Reset feature usage (Admin)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|