@seekora-ai/admin-api 1.1.95 → 1.1.96
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 +6 -2
- package/api.ts +223 -24
- package/dist/api.d.ts +148 -24
- package/dist/api.js +129 -0
- package/dist/esm/api.d.ts +148 -24
- package/dist/esm/api.js +129 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.96.tgz +0 -0
- package/seekora-ai-admin-api-1.1.95.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.96
|
|
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.96 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -334,6 +334,7 @@ Class | Method | HTTP request | Description
|
|
|
334
334
|
*FeatureLimitsApi* | [**adminV1FeatureLimitsStatusGet**](docs/FeatureLimitsApi.md#adminv1featurelimitsstatusget) | **GET** /admin/v1/feature-limits/status | Get real-time limit status
|
|
335
335
|
*FeatureLimitsApi* | [**adminV1FeatureLimitsUsageGet**](docs/FeatureLimitsApi.md#adminv1featurelimitsusageget) | **GET** /admin/v1/feature-limits/usage | Get feature usage statistics
|
|
336
336
|
*FeatureLimitsApi* | [**adminV1FeatureLimitsViolationsGet**](docs/FeatureLimitsApi.md#adminv1featurelimitsviolationsget) | **GET** /admin/v1/feature-limits/violations | Get feature limit violations
|
|
337
|
+
*FeatureLimitsAdminApi* | [**adminV1FeatureLimitsCacheInvalidateAllPost**](docs/FeatureLimitsAdminApi.md#adminv1featurelimitscacheinvalidateallpost) | **POST** /admin/v1/feature-limits/cache/invalidate-all | Invalidate all org plan caches (Admin)
|
|
337
338
|
*FeatureLimitsAdminApi* | [**adminV1FeatureLimitsCacheInvalidatePost**](docs/FeatureLimitsAdminApi.md#adminv1featurelimitscacheinvalidatepost) | **POST** /admin/v1/feature-limits/cache/invalidate | Invalidate plan cache (Admin)
|
|
338
339
|
*FeatureLimitsAdminApi* | [**adminV1FeatureLimitsMetricsSyncPost**](docs/FeatureLimitsAdminApi.md#adminv1featurelimitsmetricssyncpost) | **POST** /admin/v1/feature-limits/metrics/sync | Sync all metrics (Admin)
|
|
339
340
|
*FeatureLimitsAdminApi* | [**adminV1FeatureLimitsResetPost**](docs/FeatureLimitsAdminApi.md#adminv1featurelimitsresetpost) | **POST** /admin/v1/feature-limits/reset | Reset feature usage (Admin)
|
|
@@ -592,6 +593,7 @@ Class | Method | HTTP request | Description
|
|
|
592
593
|
*StoresApi* | [**adminStoresGetStoreXStoreIDGet**](docs/StoresApi.md#adminstoresgetstorexstoreidget) | **GET** /admin/Stores/GetStore/{xStoreID} | Fetches stores by xStoreID
|
|
593
594
|
*StoresApi* | [**adminStoresPost**](docs/StoresApi.md#adminstorespost) | **POST** /admin/Stores | Creates a new store
|
|
594
595
|
*StoresApi* | [**adminStoresStoreIDDocumentsDelete**](docs/StoresApi.md#adminstoresstoreiddocumentsdelete) | **DELETE** /admin/Stores/{storeID}/documents | Clear All Documents (Admin API)
|
|
596
|
+
*StoresApi* | [**adminStoresStoreIDMetricsRecordSizeGet**](docs/StoresApi.md#adminstoresstoreidmetricsrecordsizeget) | **GET** /admin/Stores/{storeID}/metrics/record-size | Get store record size metrics
|
|
595
597
|
*StoresApi* | [**adminStoresStoreIDPut**](docs/StoresApi.md#adminstoresstoreidput) | **PUT** /admin/Stores/{storeID} | Update an existing store
|
|
596
598
|
*StoresApi* | [**adminStoresStoreIDSchemaGet**](docs/StoresApi.md#adminstoresstoreidschemaget) | **GET** /admin/Stores/{storeID}/schema | Get Collection Schema (Admin API)
|
|
597
599
|
*StoresApi* | [**adminStoresStoreIDSchemaPost**](docs/StoresApi.md#adminstoresstoreidschemapost) | **POST** /admin/Stores/{storeID}/schema | Create or Update Collection Schema (Admin API)
|
|
@@ -1136,6 +1138,7 @@ Class | Method | HTTP request | Description
|
|
|
1136
1138
|
- [DataTypesGenericResponseDataTypesSearchRequestsGraphResponse](docs/DataTypesGenericResponseDataTypesSearchRequestsGraphResponse.md)
|
|
1137
1139
|
- [DataTypesGenericResponseDataTypesStoreConfigWithOnboardingResponse](docs/DataTypesGenericResponseDataTypesStoreConfigWithOnboardingResponse.md)
|
|
1138
1140
|
- [DataTypesGenericResponseDataTypesStoreInfoResponse](docs/DataTypesGenericResponseDataTypesStoreInfoResponse.md)
|
|
1141
|
+
- [DataTypesGenericResponseDataTypesStoreRecordSizeMetrics](docs/DataTypesGenericResponseDataTypesStoreRecordSizeMetrics.md)
|
|
1139
1142
|
- [DataTypesGenericResponseDataTypesTaxCalculationResponse](docs/DataTypesGenericResponseDataTypesTaxCalculationResponse.md)
|
|
1140
1143
|
- [DataTypesGenericResponseDataTypesTimeSeriesConsumptionGraphResponse](docs/DataTypesGenericResponseDataTypesTimeSeriesConsumptionGraphResponse.md)
|
|
1141
1144
|
- [DataTypesGenericResponseDataTypesUsageBreakdownGraphResponse](docs/DataTypesGenericResponseDataTypesUsageBreakdownGraphResponse.md)
|
|
@@ -1366,6 +1369,7 @@ Class | Method | HTTP request | Description
|
|
|
1366
1369
|
- [DataTypesStoreKeyResponseWrapper](docs/DataTypesStoreKeyResponseWrapper.md)
|
|
1367
1370
|
- [DataTypesStoreLevelMenuRight](docs/DataTypesStoreLevelMenuRight.md)
|
|
1368
1371
|
- [DataTypesStoreLevelMenuRightWithMenu](docs/DataTypesStoreLevelMenuRightWithMenu.md)
|
|
1372
|
+
- [DataTypesStoreRecordSizeMetrics](docs/DataTypesStoreRecordSizeMetrics.md)
|
|
1369
1373
|
- [DataTypesStoreRequestDto](docs/DataTypesStoreRequestDto.md)
|
|
1370
1374
|
- [DataTypesStoreResponse](docs/DataTypesStoreResponse.md)
|
|
1371
1375
|
- [DataTypesStoresListResponse](docs/DataTypesStoresListResponse.md)
|
package/api.ts
CHANGED
|
@@ -15845,6 +15845,12 @@ export interface DataTypesCreditBalanceInfo {
|
|
|
15845
15845
|
* @memberof DataTypesCreditBalanceInfo
|
|
15846
15846
|
*/
|
|
15847
15847
|
'total_credits'?: number;
|
|
15848
|
+
/**
|
|
15849
|
+
*
|
|
15850
|
+
* @type {number}
|
|
15851
|
+
* @memberof DataTypesCreditBalanceInfo
|
|
15852
|
+
*/
|
|
15853
|
+
'trial_credit_allocation'?: number;
|
|
15848
15854
|
}
|
|
15849
15855
|
/**
|
|
15850
15856
|
*
|
|
@@ -16021,6 +16027,12 @@ export interface DataTypesCreditPlan {
|
|
|
16021
16027
|
* @memberof DataTypesCreditPlan
|
|
16022
16028
|
*/
|
|
16023
16029
|
'price': number;
|
|
16030
|
+
/**
|
|
16031
|
+
*
|
|
16032
|
+
* @type {number}
|
|
16033
|
+
* @memberof DataTypesCreditPlan
|
|
16034
|
+
*/
|
|
16035
|
+
'trial_credit_amount'?: number;
|
|
16024
16036
|
/**
|
|
16025
16037
|
* Deprecated: kept for DB compat, ignored
|
|
16026
16038
|
* @type {number}
|
|
@@ -16162,6 +16174,18 @@ export interface DataTypesCurrentPlanInfo {
|
|
|
16162
16174
|
* @memberof DataTypesCurrentPlanInfo
|
|
16163
16175
|
*/
|
|
16164
16176
|
'end_date'?: string;
|
|
16177
|
+
/**
|
|
16178
|
+
*
|
|
16179
|
+
* @type {number}
|
|
16180
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
16181
|
+
*/
|
|
16182
|
+
'full_credit_amount'?: number;
|
|
16183
|
+
/**
|
|
16184
|
+
*
|
|
16185
|
+
* @type {boolean}
|
|
16186
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
16187
|
+
*/
|
|
16188
|
+
'is_trial'?: boolean;
|
|
16165
16189
|
/**
|
|
16166
16190
|
*
|
|
16167
16191
|
* @type {number}
|
|
@@ -16198,6 +16222,12 @@ export interface DataTypesCurrentPlanInfo {
|
|
|
16198
16222
|
* @memberof DataTypesCurrentPlanInfo
|
|
16199
16223
|
*/
|
|
16200
16224
|
'subscription_id'?: string;
|
|
16225
|
+
/**
|
|
16226
|
+
*
|
|
16227
|
+
* @type {number}
|
|
16228
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
16229
|
+
*/
|
|
16230
|
+
'trial_credit_amount'?: number;
|
|
16201
16231
|
}
|
|
16202
16232
|
/**
|
|
16203
16233
|
*
|
|
@@ -21216,6 +21246,31 @@ export interface DataTypesGenericResponseDataTypesStoreInfoResponse {
|
|
|
21216
21246
|
*/
|
|
21217
21247
|
'status'?: number;
|
|
21218
21248
|
}
|
|
21249
|
+
/**
|
|
21250
|
+
*
|
|
21251
|
+
* @export
|
|
21252
|
+
* @interface DataTypesGenericResponseDataTypesStoreRecordSizeMetrics
|
|
21253
|
+
*/
|
|
21254
|
+
export interface DataTypesGenericResponseDataTypesStoreRecordSizeMetrics {
|
|
21255
|
+
/**
|
|
21256
|
+
*
|
|
21257
|
+
* @type {DataTypesStoreRecordSizeMetrics}
|
|
21258
|
+
* @memberof DataTypesGenericResponseDataTypesStoreRecordSizeMetrics
|
|
21259
|
+
*/
|
|
21260
|
+
'data'?: DataTypesStoreRecordSizeMetrics;
|
|
21261
|
+
/**
|
|
21262
|
+
*
|
|
21263
|
+
* @type {string}
|
|
21264
|
+
* @memberof DataTypesGenericResponseDataTypesStoreRecordSizeMetrics
|
|
21265
|
+
*/
|
|
21266
|
+
'message'?: string;
|
|
21267
|
+
/**
|
|
21268
|
+
*
|
|
21269
|
+
* @type {number}
|
|
21270
|
+
* @memberof DataTypesGenericResponseDataTypesStoreRecordSizeMetrics
|
|
21271
|
+
*/
|
|
21272
|
+
'status'?: number;
|
|
21273
|
+
}
|
|
21219
21274
|
/**
|
|
21220
21275
|
*
|
|
21221
21276
|
* @export
|
|
@@ -32689,6 +32744,31 @@ export interface DataTypesStoreLevelMenuRightWithMenu {
|
|
|
32689
32744
|
*/
|
|
32690
32745
|
'storeName'?: string;
|
|
32691
32746
|
}
|
|
32747
|
+
/**
|
|
32748
|
+
*
|
|
32749
|
+
* @export
|
|
32750
|
+
* @interface DataTypesStoreRecordSizeMetrics
|
|
32751
|
+
*/
|
|
32752
|
+
export interface DataTypesStoreRecordSizeMetrics {
|
|
32753
|
+
/**
|
|
32754
|
+
*
|
|
32755
|
+
* @type {number}
|
|
32756
|
+
* @memberof DataTypesStoreRecordSizeMetrics
|
|
32757
|
+
*/
|
|
32758
|
+
'avg_record_size_bytes'?: number;
|
|
32759
|
+
/**
|
|
32760
|
+
*
|
|
32761
|
+
* @type {number}
|
|
32762
|
+
* @memberof DataTypesStoreRecordSizeMetrics
|
|
32763
|
+
*/
|
|
32764
|
+
'max_record_size_bytes'?: number;
|
|
32765
|
+
/**
|
|
32766
|
+
*
|
|
32767
|
+
* @type {number}
|
|
32768
|
+
* @memberof DataTypesStoreRecordSizeMetrics
|
|
32769
|
+
*/
|
|
32770
|
+
'record_count'?: number;
|
|
32771
|
+
}
|
|
32692
32772
|
/**
|
|
32693
32773
|
*
|
|
32694
32774
|
* @export
|
|
@@ -32924,12 +33004,6 @@ export interface DataTypesSubscription {
|
|
|
32924
33004
|
'createdAt'?: string;
|
|
32925
33005
|
/**
|
|
32926
33006
|
*
|
|
32927
|
-
* @type {number}
|
|
32928
|
-
* @memberof DataTypesSubscription
|
|
32929
|
-
*/
|
|
32930
|
-
'createdBy'?: number;
|
|
32931
|
-
/**
|
|
32932
|
-
* Subscription end date
|
|
32933
33007
|
* @type {string}
|
|
32934
33008
|
* @memberof DataTypesSubscription
|
|
32935
33009
|
*/
|
|
@@ -32948,46 +33022,34 @@ export interface DataTypesSubscription {
|
|
|
32948
33022
|
'modifiedAt'?: string;
|
|
32949
33023
|
/**
|
|
32950
33024
|
*
|
|
32951
|
-
* @type {number}
|
|
32952
|
-
* @memberof DataTypesSubscription
|
|
32953
|
-
*/
|
|
32954
|
-
'modifiedBy'?: number;
|
|
32955
|
-
/**
|
|
32956
|
-
* Nullable
|
|
32957
33025
|
* @type {string}
|
|
32958
33026
|
* @memberof DataTypesSubscription
|
|
32959
33027
|
*/
|
|
32960
33028
|
'nextBillingDate'?: string;
|
|
32961
33029
|
/**
|
|
32962
|
-
*
|
|
32963
|
-
* @type {number}
|
|
32964
|
-
* @memberof DataTypesSubscription
|
|
32965
|
-
*/
|
|
32966
|
-
'orgID'?: number;
|
|
32967
|
-
/**
|
|
32968
|
-
* Foreign key to mPlans
|
|
33030
|
+
* plan is config, not sensitive
|
|
32969
33031
|
* @type {number}
|
|
32970
33032
|
* @memberof DataTypesSubscription
|
|
32971
33033
|
*/
|
|
32972
33034
|
'planID'?: number;
|
|
32973
33035
|
/**
|
|
32974
|
-
*
|
|
33036
|
+
*
|
|
32975
33037
|
* @type {string}
|
|
32976
33038
|
* @memberof DataTypesSubscription
|
|
32977
33039
|
*/
|
|
32978
33040
|
'startDate'?: string;
|
|
32979
33041
|
/**
|
|
32980
|
-
*
|
|
33042
|
+
*
|
|
32981
33043
|
* @type {string}
|
|
32982
33044
|
* @memberof DataTypesSubscription
|
|
32983
33045
|
*/
|
|
32984
33046
|
'status'?: string;
|
|
32985
33047
|
/**
|
|
32986
|
-
*
|
|
32987
|
-
* @type {
|
|
33048
|
+
* public identifier
|
|
33049
|
+
* @type {string}
|
|
32988
33050
|
* @memberof DataTypesSubscription
|
|
32989
33051
|
*/
|
|
32990
|
-
'
|
|
33052
|
+
'subscription_id'?: string;
|
|
32991
33053
|
}
|
|
32992
33054
|
/**
|
|
32993
33055
|
*
|
|
@@ -68976,6 +69038,39 @@ export class FeatureLimitsApi extends BaseAPI {
|
|
|
68976
69038
|
*/
|
|
68977
69039
|
export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
68978
69040
|
return {
|
|
69041
|
+
/**
|
|
69042
|
+
* Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
|
|
69043
|
+
* @summary Invalidate all org plan caches (Admin)
|
|
69044
|
+
* @param {*} [options] Override http request option.
|
|
69045
|
+
* @throws {RequiredError}
|
|
69046
|
+
*/
|
|
69047
|
+
adminV1FeatureLimitsCacheInvalidateAllPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
69048
|
+
const localVarPath = `/admin/v1/feature-limits/cache/invalidate-all`;
|
|
69049
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69050
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
69051
|
+
let baseOptions;
|
|
69052
|
+
if (configuration) {
|
|
69053
|
+
baseOptions = configuration.baseOptions;
|
|
69054
|
+
}
|
|
69055
|
+
|
|
69056
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
69057
|
+
const localVarHeaderParameter = {} as any;
|
|
69058
|
+
const localVarQueryParameter = {} as any;
|
|
69059
|
+
|
|
69060
|
+
// authentication BearerAuth required
|
|
69061
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
69062
|
+
|
|
69063
|
+
|
|
69064
|
+
|
|
69065
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
69066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69067
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69068
|
+
|
|
69069
|
+
return {
|
|
69070
|
+
url: toPathString(localVarUrlObj),
|
|
69071
|
+
options: localVarRequestOptions,
|
|
69072
|
+
};
|
|
69073
|
+
},
|
|
68979
69074
|
/**
|
|
68980
69075
|
* Invalidates the cached plan data for an organization
|
|
68981
69076
|
* @summary Invalidate plan cache (Admin)
|
|
@@ -69097,6 +69192,18 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration?:
|
|
|
69097
69192
|
export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
|
|
69098
69193
|
const localVarAxiosParamCreator = FeatureLimitsAdminApiAxiosParamCreator(configuration)
|
|
69099
69194
|
return {
|
|
69195
|
+
/**
|
|
69196
|
+
* Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
|
|
69197
|
+
* @summary Invalidate all org plan caches (Admin)
|
|
69198
|
+
* @param {*} [options] Override http request option.
|
|
69199
|
+
* @throws {RequiredError}
|
|
69200
|
+
*/
|
|
69201
|
+
async adminV1FeatureLimitsCacheInvalidateAllPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
69202
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1FeatureLimitsCacheInvalidateAllPost(options);
|
|
69203
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
69204
|
+
const localVarOperationServerBasePath = operationServerMap['FeatureLimitsAdminApi.adminV1FeatureLimitsCacheInvalidateAllPost']?.[localVarOperationServerIndex]?.url;
|
|
69205
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
69206
|
+
},
|
|
69100
69207
|
/**
|
|
69101
69208
|
* Invalidates the cached plan data for an organization
|
|
69102
69209
|
* @summary Invalidate plan cache (Admin)
|
|
@@ -69145,6 +69252,15 @@ export const FeatureLimitsAdminApiFp = function(configuration?: Configuration) {
|
|
|
69145
69252
|
export const FeatureLimitsAdminApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
69146
69253
|
const localVarFp = FeatureLimitsAdminApiFp(configuration)
|
|
69147
69254
|
return {
|
|
69255
|
+
/**
|
|
69256
|
+
* Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
|
|
69257
|
+
* @summary Invalidate all org plan caches (Admin)
|
|
69258
|
+
* @param {*} [options] Override http request option.
|
|
69259
|
+
* @throws {RequiredError}
|
|
69260
|
+
*/
|
|
69261
|
+
adminV1FeatureLimitsCacheInvalidateAllPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
69262
|
+
return localVarFp.adminV1FeatureLimitsCacheInvalidateAllPost(options).then((request) => request(axios, basePath));
|
|
69263
|
+
},
|
|
69148
69264
|
/**
|
|
69149
69265
|
* Invalidates the cached plan data for an organization
|
|
69150
69266
|
* @summary Invalidate plan cache (Admin)
|
|
@@ -69184,6 +69300,17 @@ export const FeatureLimitsAdminApiFactory = function (configuration?: Configurat
|
|
|
69184
69300
|
* @extends {BaseAPI}
|
|
69185
69301
|
*/
|
|
69186
69302
|
export class FeatureLimitsAdminApi extends BaseAPI {
|
|
69303
|
+
/**
|
|
69304
|
+
* Flushes all feature_limit:org_plan:* keys from Redis. Use after updating plan-level feature limits in the database so every org picks up the new limits on their next request.
|
|
69305
|
+
* @summary Invalidate all org plan caches (Admin)
|
|
69306
|
+
* @param {*} [options] Override http request option.
|
|
69307
|
+
* @throws {RequiredError}
|
|
69308
|
+
* @memberof FeatureLimitsAdminApi
|
|
69309
|
+
*/
|
|
69310
|
+
public adminV1FeatureLimitsCacheInvalidateAllPost(options?: RawAxiosRequestConfig) {
|
|
69311
|
+
return FeatureLimitsAdminApiFp(this.configuration).adminV1FeatureLimitsCacheInvalidateAllPost(options).then((request) => request(this.axios, this.basePath));
|
|
69312
|
+
}
|
|
69313
|
+
|
|
69187
69314
|
/**
|
|
69188
69315
|
* Invalidates the cached plan data for an organization
|
|
69189
69316
|
* @summary Invalidate plan cache (Admin)
|
|
@@ -91998,6 +92125,43 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
91998
92125
|
|
|
91999
92126
|
|
|
92000
92127
|
|
|
92128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
92131
|
+
|
|
92132
|
+
return {
|
|
92133
|
+
url: toPathString(localVarUrlObj),
|
|
92134
|
+
options: localVarRequestOptions,
|
|
92135
|
+
};
|
|
92136
|
+
},
|
|
92137
|
+
/**
|
|
92138
|
+
*
|
|
92139
|
+
* @summary Get store record size metrics
|
|
92140
|
+
* @param {number} storeID Store ID
|
|
92141
|
+
* @param {*} [options] Override http request option.
|
|
92142
|
+
* @throws {RequiredError}
|
|
92143
|
+
*/
|
|
92144
|
+
adminStoresStoreIDMetricsRecordSizeGet: async (storeID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92145
|
+
// verify required parameter 'storeID' is not null or undefined
|
|
92146
|
+
assertParamExists('adminStoresStoreIDMetricsRecordSizeGet', 'storeID', storeID)
|
|
92147
|
+
const localVarPath = `/admin/Stores/{storeID}/metrics/record-size`
|
|
92148
|
+
.replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
|
|
92149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
92151
|
+
let baseOptions;
|
|
92152
|
+
if (configuration) {
|
|
92153
|
+
baseOptions = configuration.baseOptions;
|
|
92154
|
+
}
|
|
92155
|
+
|
|
92156
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
92157
|
+
const localVarHeaderParameter = {} as any;
|
|
92158
|
+
const localVarQueryParameter = {} as any;
|
|
92159
|
+
|
|
92160
|
+
// authentication BearerAuth required
|
|
92161
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
92162
|
+
|
|
92163
|
+
|
|
92164
|
+
|
|
92001
92165
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92002
92166
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92003
92167
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -92999,6 +93163,19 @@ export const StoresApiFp = function(configuration?: Configuration) {
|
|
|
92999
93163
|
const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDDocumentsDelete']?.[localVarOperationServerIndex]?.url;
|
|
93000
93164
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93001
93165
|
},
|
|
93166
|
+
/**
|
|
93167
|
+
*
|
|
93168
|
+
* @summary Get store record size metrics
|
|
93169
|
+
* @param {number} storeID Store ID
|
|
93170
|
+
* @param {*} [options] Override http request option.
|
|
93171
|
+
* @throws {RequiredError}
|
|
93172
|
+
*/
|
|
93173
|
+
async adminStoresStoreIDMetricsRecordSizeGet(storeID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesStoreRecordSizeMetrics>> {
|
|
93174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStoreIDMetricsRecordSizeGet(storeID, options);
|
|
93175
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
93176
|
+
const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDMetricsRecordSizeGet']?.[localVarOperationServerIndex]?.url;
|
|
93177
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93178
|
+
},
|
|
93002
93179
|
/**
|
|
93003
93180
|
* Updates store information by ID.
|
|
93004
93181
|
* @summary Update an existing store
|
|
@@ -93357,6 +93534,16 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
|
|
|
93357
93534
|
adminStoresStoreIDDocumentsDelete(storeID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesClearDocumentsResponseWrapper> {
|
|
93358
93535
|
return localVarFp.adminStoresStoreIDDocumentsDelete(storeID, options).then((request) => request(axios, basePath));
|
|
93359
93536
|
},
|
|
93537
|
+
/**
|
|
93538
|
+
*
|
|
93539
|
+
* @summary Get store record size metrics
|
|
93540
|
+
* @param {number} storeID Store ID
|
|
93541
|
+
* @param {*} [options] Override http request option.
|
|
93542
|
+
* @throws {RequiredError}
|
|
93543
|
+
*/
|
|
93544
|
+
adminStoresStoreIDMetricsRecordSizeGet(storeID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesStoreRecordSizeMetrics> {
|
|
93545
|
+
return localVarFp.adminStoresStoreIDMetricsRecordSizeGet(storeID, options).then((request) => request(axios, basePath));
|
|
93546
|
+
},
|
|
93360
93547
|
/**
|
|
93361
93548
|
* Updates store information by ID.
|
|
93362
93549
|
* @summary Update an existing store
|
|
@@ -93657,6 +93844,18 @@ export class StoresApi extends BaseAPI {
|
|
|
93657
93844
|
return StoresApiFp(this.configuration).adminStoresStoreIDDocumentsDelete(storeID, options).then((request) => request(this.axios, this.basePath));
|
|
93658
93845
|
}
|
|
93659
93846
|
|
|
93847
|
+
/**
|
|
93848
|
+
*
|
|
93849
|
+
* @summary Get store record size metrics
|
|
93850
|
+
* @param {number} storeID Store ID
|
|
93851
|
+
* @param {*} [options] Override http request option.
|
|
93852
|
+
* @throws {RequiredError}
|
|
93853
|
+
* @memberof StoresApi
|
|
93854
|
+
*/
|
|
93855
|
+
public adminStoresStoreIDMetricsRecordSizeGet(storeID: number, options?: RawAxiosRequestConfig) {
|
|
93856
|
+
return StoresApiFp(this.configuration).adminStoresStoreIDMetricsRecordSizeGet(storeID, options).then((request) => request(this.axios, this.basePath));
|
|
93857
|
+
}
|
|
93858
|
+
|
|
93660
93859
|
/**
|
|
93661
93860
|
* Updates store information by ID.
|
|
93662
93861
|
* @summary Update an existing store
|