@seekora-ai/admin-api 1.1.24 → 1.1.26
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 +13 -2
- package/api.ts +951 -11
- package/dist/api.d.ts +711 -8
- package/dist/api.js +454 -15
- package/dist/esm/api.d.ts +711 -8
- package/dist/esm/api.js +442 -11
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.26.tgz +0 -0
- package/seekora-ai-admin-api-1.1.24.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -14985,12 +14985,13 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
14985
14985
|
};
|
|
14986
14986
|
}),
|
|
14987
14987
|
/**
|
|
14988
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
14988
|
+
* 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
|
|
14989
14989
|
* @summary Sync all metrics (Admin)
|
|
14990
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
14990
14991
|
* @param {*} [options] Override http request option.
|
|
14991
14992
|
* @throws {RequiredError}
|
|
14992
14993
|
*/
|
|
14993
|
-
adminFeatureLimitsMetricsSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14994
|
+
adminFeatureLimitsMetricsSyncPost: (force_1, ...args_1) => __awaiter(this, [force_1, ...args_1], void 0, function* (force, options = {}) {
|
|
14994
14995
|
const localVarPath = `/admin/feature-limits/metrics/sync`;
|
|
14995
14996
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14996
14997
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15003,6 +15004,9 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
|
15003
15004
|
const localVarQueryParameter = {};
|
|
15004
15005
|
// authentication BearerAuth required
|
|
15005
15006
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15007
|
+
if (force !== undefined) {
|
|
15008
|
+
localVarQueryParameter['force'] = force;
|
|
15009
|
+
}
|
|
15006
15010
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15007
15011
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15008
15012
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -15069,15 +15073,16 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
|
|
|
15069
15073
|
});
|
|
15070
15074
|
},
|
|
15071
15075
|
/**
|
|
15072
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15076
|
+
* 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
|
|
15073
15077
|
* @summary Sync all metrics (Admin)
|
|
15078
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15074
15079
|
* @param {*} [options] Override http request option.
|
|
15075
15080
|
* @throws {RequiredError}
|
|
15076
15081
|
*/
|
|
15077
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15082
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15078
15083
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15079
15084
|
var _a, _b, _c;
|
|
15080
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(options);
|
|
15085
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsMetricsSyncPost(force, options);
|
|
15081
15086
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15082
15087
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsMetricsSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15083
15088
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15118,13 +15123,14 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
|
|
|
15118
15123
|
return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
15119
15124
|
},
|
|
15120
15125
|
/**
|
|
15121
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15126
|
+
* 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
|
|
15122
15127
|
* @summary Sync all metrics (Admin)
|
|
15128
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15123
15129
|
* @param {*} [options] Override http request option.
|
|
15124
15130
|
* @throws {RequiredError}
|
|
15125
15131
|
*/
|
|
15126
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15127
|
-
return localVarFp.adminFeatureLimitsMetricsSyncPost(options).then((request) => request(axios, basePath));
|
|
15132
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15133
|
+
return localVarFp.adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(axios, basePath));
|
|
15128
15134
|
},
|
|
15129
15135
|
/**
|
|
15130
15136
|
* Resets usage counter for a specific feature (admin only)
|
|
@@ -15156,14 +15162,15 @@ export class FeatureLimitsAdminApi extends BaseAPI {
|
|
|
15156
15162
|
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
15157
15163
|
}
|
|
15158
15164
|
/**
|
|
15159
|
-
* Recalculates and syncs all metrics for the organization from source tables to database and Redis
|
|
15165
|
+
* 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
|
|
15160
15166
|
* @summary Sync all metrics (Admin)
|
|
15167
|
+
* @param {boolean} [force] Force sync increment-based metrics even if Redis has values
|
|
15161
15168
|
* @param {*} [options] Override http request option.
|
|
15162
15169
|
* @throws {RequiredError}
|
|
15163
15170
|
* @memberof FeatureLimitsAdminApi
|
|
15164
15171
|
*/
|
|
15165
|
-
adminFeatureLimitsMetricsSyncPost(options) {
|
|
15166
|
-
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
15172
|
+
adminFeatureLimitsMetricsSyncPost(force, options) {
|
|
15173
|
+
return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsMetricsSyncPost(force, options).then((request) => request(this.axios, this.basePath));
|
|
15167
15174
|
}
|
|
15168
15175
|
/**
|
|
15169
15176
|
* Resets usage counter for a specific feature (admin only)
|
|
@@ -16929,6 +16936,210 @@ export class LimitsApi extends BaseAPI {
|
|
|
16929
16936
|
return LimitsApiFp(this.configuration).miscLimitsPost(dataTypesCreateLimitRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
16930
16937
|
}
|
|
16931
16938
|
}
|
|
16939
|
+
/**
|
|
16940
|
+
* MenuRouteMetricsApi - axios parameter creator
|
|
16941
|
+
* @export
|
|
16942
|
+
*/
|
|
16943
|
+
export const MenuRouteMetricsApiAxiosParamCreator = function (configuration) {
|
|
16944
|
+
return {
|
|
16945
|
+
/**
|
|
16946
|
+
* Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages.
|
|
16947
|
+
* @summary Get feature limit metric for a menu route
|
|
16948
|
+
* @param {string} [route] Route path (e.g., /en/profile-settings)
|
|
16949
|
+
* @param {string} [formname] Form name (e.g., profileSettings)
|
|
16950
|
+
* @param {*} [options] Override http request option.
|
|
16951
|
+
* @throws {RequiredError}
|
|
16952
|
+
*/
|
|
16953
|
+
menuRouteMetricGet: (route_1, formname_1, ...args_1) => __awaiter(this, [route_1, formname_1, ...args_1], void 0, function* (route, formname, options = {}) {
|
|
16954
|
+
const localVarPath = `/menu-route-metric`;
|
|
16955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16957
|
+
let baseOptions;
|
|
16958
|
+
if (configuration) {
|
|
16959
|
+
baseOptions = configuration.baseOptions;
|
|
16960
|
+
}
|
|
16961
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16962
|
+
const localVarHeaderParameter = {};
|
|
16963
|
+
const localVarQueryParameter = {};
|
|
16964
|
+
// authentication BearerAuth required
|
|
16965
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16966
|
+
if (route !== undefined) {
|
|
16967
|
+
localVarQueryParameter['route'] = route;
|
|
16968
|
+
}
|
|
16969
|
+
if (formname !== undefined) {
|
|
16970
|
+
localVarQueryParameter['formname'] = formname;
|
|
16971
|
+
}
|
|
16972
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16973
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16974
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16975
|
+
return {
|
|
16976
|
+
url: toPathString(localVarUrlObj),
|
|
16977
|
+
options: localVarRequestOptions,
|
|
16978
|
+
};
|
|
16979
|
+
}),
|
|
16980
|
+
};
|
|
16981
|
+
};
|
|
16982
|
+
/**
|
|
16983
|
+
* MenuRouteMetricsApi - functional programming interface
|
|
16984
|
+
* @export
|
|
16985
|
+
*/
|
|
16986
|
+
export const MenuRouteMetricsApiFp = function (configuration) {
|
|
16987
|
+
const localVarAxiosParamCreator = MenuRouteMetricsApiAxiosParamCreator(configuration);
|
|
16988
|
+
return {
|
|
16989
|
+
/**
|
|
16990
|
+
* Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages.
|
|
16991
|
+
* @summary Get feature limit metric for a menu route
|
|
16992
|
+
* @param {string} [route] Route path (e.g., /en/profile-settings)
|
|
16993
|
+
* @param {string} [formname] Form name (e.g., profileSettings)
|
|
16994
|
+
* @param {*} [options] Override http request option.
|
|
16995
|
+
* @throws {RequiredError}
|
|
16996
|
+
*/
|
|
16997
|
+
menuRouteMetricGet(route, formname, options) {
|
|
16998
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16999
|
+
var _a, _b, _c;
|
|
17000
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.menuRouteMetricGet(route, formname, options);
|
|
17001
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17002
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuRouteMetricsApi.menuRouteMetricGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17003
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17004
|
+
});
|
|
17005
|
+
},
|
|
17006
|
+
};
|
|
17007
|
+
};
|
|
17008
|
+
/**
|
|
17009
|
+
* MenuRouteMetricsApi - factory interface
|
|
17010
|
+
* @export
|
|
17011
|
+
*/
|
|
17012
|
+
export const MenuRouteMetricsApiFactory = function (configuration, basePath, axios) {
|
|
17013
|
+
const localVarFp = MenuRouteMetricsApiFp(configuration);
|
|
17014
|
+
return {
|
|
17015
|
+
/**
|
|
17016
|
+
* Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages.
|
|
17017
|
+
* @summary Get feature limit metric for a menu route
|
|
17018
|
+
* @param {string} [route] Route path (e.g., /en/profile-settings)
|
|
17019
|
+
* @param {string} [formname] Form name (e.g., profileSettings)
|
|
17020
|
+
* @param {*} [options] Override http request option.
|
|
17021
|
+
* @throws {RequiredError}
|
|
17022
|
+
*/
|
|
17023
|
+
menuRouteMetricGet(route, formname, options) {
|
|
17024
|
+
return localVarFp.menuRouteMetricGet(route, formname, options).then((request) => request(axios, basePath));
|
|
17025
|
+
},
|
|
17026
|
+
};
|
|
17027
|
+
};
|
|
17028
|
+
/**
|
|
17029
|
+
* MenuRouteMetricsApi - object-oriented interface
|
|
17030
|
+
* @export
|
|
17031
|
+
* @class MenuRouteMetricsApi
|
|
17032
|
+
* @extends {BaseAPI}
|
|
17033
|
+
*/
|
|
17034
|
+
export class MenuRouteMetricsApi extends BaseAPI {
|
|
17035
|
+
/**
|
|
17036
|
+
* Returns a single feature limit metric to display for a specific menu route or formname. Used by frontend to show progress indicator and upgrade button at the top of pages.
|
|
17037
|
+
* @summary Get feature limit metric for a menu route
|
|
17038
|
+
* @param {string} [route] Route path (e.g., /en/profile-settings)
|
|
17039
|
+
* @param {string} [formname] Form name (e.g., profileSettings)
|
|
17040
|
+
* @param {*} [options] Override http request option.
|
|
17041
|
+
* @throws {RequiredError}
|
|
17042
|
+
* @memberof MenuRouteMetricsApi
|
|
17043
|
+
*/
|
|
17044
|
+
menuRouteMetricGet(route, formname, options) {
|
|
17045
|
+
return MenuRouteMetricsApiFp(this.configuration).menuRouteMetricGet(route, formname, options).then((request) => request(this.axios, this.basePath));
|
|
17046
|
+
}
|
|
17047
|
+
}
|
|
17048
|
+
/**
|
|
17049
|
+
* MenuRouteMetricsAdminApi - axios parameter creator
|
|
17050
|
+
* @export
|
|
17051
|
+
*/
|
|
17052
|
+
export const MenuRouteMetricsAdminApiAxiosParamCreator = function (configuration) {
|
|
17053
|
+
return {
|
|
17054
|
+
/**
|
|
17055
|
+
* Syncs all active route-to-metric mappings from database to Redis for fast access
|
|
17056
|
+
* @summary Sync route metric mappings to Redis (Admin)
|
|
17057
|
+
* @param {*} [options] Override http request option.
|
|
17058
|
+
* @throws {RequiredError}
|
|
17059
|
+
*/
|
|
17060
|
+
adminMenuRouteMetricSyncPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
17061
|
+
const localVarPath = `/admin/menu-route-metric/sync`;
|
|
17062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17063
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17064
|
+
let baseOptions;
|
|
17065
|
+
if (configuration) {
|
|
17066
|
+
baseOptions = configuration.baseOptions;
|
|
17067
|
+
}
|
|
17068
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17069
|
+
const localVarHeaderParameter = {};
|
|
17070
|
+
const localVarQueryParameter = {};
|
|
17071
|
+
// authentication BearerAuth required
|
|
17072
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
17073
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17074
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17075
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17076
|
+
return {
|
|
17077
|
+
url: toPathString(localVarUrlObj),
|
|
17078
|
+
options: localVarRequestOptions,
|
|
17079
|
+
};
|
|
17080
|
+
}),
|
|
17081
|
+
};
|
|
17082
|
+
};
|
|
17083
|
+
/**
|
|
17084
|
+
* MenuRouteMetricsAdminApi - functional programming interface
|
|
17085
|
+
* @export
|
|
17086
|
+
*/
|
|
17087
|
+
export const MenuRouteMetricsAdminApiFp = function (configuration) {
|
|
17088
|
+
const localVarAxiosParamCreator = MenuRouteMetricsAdminApiAxiosParamCreator(configuration);
|
|
17089
|
+
return {
|
|
17090
|
+
/**
|
|
17091
|
+
* Syncs all active route-to-metric mappings from database to Redis for fast access
|
|
17092
|
+
* @summary Sync route metric mappings to Redis (Admin)
|
|
17093
|
+
* @param {*} [options] Override http request option.
|
|
17094
|
+
* @throws {RequiredError}
|
|
17095
|
+
*/
|
|
17096
|
+
adminMenuRouteMetricSyncPost(options) {
|
|
17097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17098
|
+
var _a, _b, _c;
|
|
17099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminMenuRouteMetricSyncPost(options);
|
|
17100
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17101
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuRouteMetricsAdminApi.adminMenuRouteMetricSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17103
|
+
});
|
|
17104
|
+
},
|
|
17105
|
+
};
|
|
17106
|
+
};
|
|
17107
|
+
/**
|
|
17108
|
+
* MenuRouteMetricsAdminApi - factory interface
|
|
17109
|
+
* @export
|
|
17110
|
+
*/
|
|
17111
|
+
export const MenuRouteMetricsAdminApiFactory = function (configuration, basePath, axios) {
|
|
17112
|
+
const localVarFp = MenuRouteMetricsAdminApiFp(configuration);
|
|
17113
|
+
return {
|
|
17114
|
+
/**
|
|
17115
|
+
* Syncs all active route-to-metric mappings from database to Redis for fast access
|
|
17116
|
+
* @summary Sync route metric mappings to Redis (Admin)
|
|
17117
|
+
* @param {*} [options] Override http request option.
|
|
17118
|
+
* @throws {RequiredError}
|
|
17119
|
+
*/
|
|
17120
|
+
adminMenuRouteMetricSyncPost(options) {
|
|
17121
|
+
return localVarFp.adminMenuRouteMetricSyncPost(options).then((request) => request(axios, basePath));
|
|
17122
|
+
},
|
|
17123
|
+
};
|
|
17124
|
+
};
|
|
17125
|
+
/**
|
|
17126
|
+
* MenuRouteMetricsAdminApi - object-oriented interface
|
|
17127
|
+
* @export
|
|
17128
|
+
* @class MenuRouteMetricsAdminApi
|
|
17129
|
+
* @extends {BaseAPI}
|
|
17130
|
+
*/
|
|
17131
|
+
export class MenuRouteMetricsAdminApi extends BaseAPI {
|
|
17132
|
+
/**
|
|
17133
|
+
* Syncs all active route-to-metric mappings from database to Redis for fast access
|
|
17134
|
+
* @summary Sync route metric mappings to Redis (Admin)
|
|
17135
|
+
* @param {*} [options] Override http request option.
|
|
17136
|
+
* @throws {RequiredError}
|
|
17137
|
+
* @memberof MenuRouteMetricsAdminApi
|
|
17138
|
+
*/
|
|
17139
|
+
adminMenuRouteMetricSyncPost(options) {
|
|
17140
|
+
return MenuRouteMetricsAdminApiFp(this.configuration).adminMenuRouteMetricSyncPost(options).then((request) => request(this.axios, this.basePath));
|
|
17141
|
+
}
|
|
17142
|
+
}
|
|
16932
17143
|
/**
|
|
16933
17144
|
* MenusApi - axios parameter creator
|
|
16934
17145
|
* @export
|
|
@@ -34683,6 +34894,109 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
34683
34894
|
options: localVarRequestOptions,
|
|
34684
34895
|
};
|
|
34685
34896
|
}),
|
|
34897
|
+
/**
|
|
34898
|
+
* Retrieves user\'s permission configuration (route-level and store-level)
|
|
34899
|
+
* @summary Get user\'s custom permissions
|
|
34900
|
+
* @param {number} userId User ID
|
|
34901
|
+
* @param {*} [options] Override http request option.
|
|
34902
|
+
* @throws {RequiredError}
|
|
34903
|
+
*/
|
|
34904
|
+
adminUsersUserIdPermissionsGet: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
34905
|
+
// verify required parameter 'userId' is not null or undefined
|
|
34906
|
+
assertParamExists('adminUsersUserIdPermissionsGet', 'userId', userId);
|
|
34907
|
+
const localVarPath = `/admin/users/{userId}/permissions`
|
|
34908
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34910
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34911
|
+
let baseOptions;
|
|
34912
|
+
if (configuration) {
|
|
34913
|
+
baseOptions = configuration.baseOptions;
|
|
34914
|
+
}
|
|
34915
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
34916
|
+
const localVarHeaderParameter = {};
|
|
34917
|
+
const localVarQueryParameter = {};
|
|
34918
|
+
// authentication BearerAuth required
|
|
34919
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34922
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34923
|
+
return {
|
|
34924
|
+
url: toPathString(localVarUrlObj),
|
|
34925
|
+
options: localVarRequestOptions,
|
|
34926
|
+
};
|
|
34927
|
+
}),
|
|
34928
|
+
/**
|
|
34929
|
+
* Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
|
|
34930
|
+
* @summary Set user to custom permissions mode or regular role
|
|
34931
|
+
* @param {number} userId User ID
|
|
34932
|
+
* @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
|
|
34933
|
+
* @param {*} [options] Override http request option.
|
|
34934
|
+
* @throws {RequiredError}
|
|
34935
|
+
*/
|
|
34936
|
+
adminUsersUserIdPermissionsModePut: (userId_1, dataTypesUserCustomPermissionsRequest_1, ...args_1) => __awaiter(this, [userId_1, dataTypesUserCustomPermissionsRequest_1, ...args_1], void 0, function* (userId, dataTypesUserCustomPermissionsRequest, options = {}) {
|
|
34937
|
+
// verify required parameter 'userId' is not null or undefined
|
|
34938
|
+
assertParamExists('adminUsersUserIdPermissionsModePut', 'userId', userId);
|
|
34939
|
+
// verify required parameter 'dataTypesUserCustomPermissionsRequest' is not null or undefined
|
|
34940
|
+
assertParamExists('adminUsersUserIdPermissionsModePut', 'dataTypesUserCustomPermissionsRequest', dataTypesUserCustomPermissionsRequest);
|
|
34941
|
+
const localVarPath = `/admin/users/{userId}/permissions/mode`
|
|
34942
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34944
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34945
|
+
let baseOptions;
|
|
34946
|
+
if (configuration) {
|
|
34947
|
+
baseOptions = configuration.baseOptions;
|
|
34948
|
+
}
|
|
34949
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
34950
|
+
const localVarHeaderParameter = {};
|
|
34951
|
+
const localVarQueryParameter = {};
|
|
34952
|
+
// authentication BearerAuth required
|
|
34953
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34954
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34955
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34956
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34957
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34958
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUserCustomPermissionsRequest, localVarRequestOptions, configuration);
|
|
34959
|
+
return {
|
|
34960
|
+
url: toPathString(localVarUrlObj),
|
|
34961
|
+
options: localVarRequestOptions,
|
|
34962
|
+
};
|
|
34963
|
+
}),
|
|
34964
|
+
/**
|
|
34965
|
+
* Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
|
|
34966
|
+
* @summary Update user\'s custom permissions
|
|
34967
|
+
* @param {number} userId User ID
|
|
34968
|
+
* @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
|
|
34969
|
+
* @param {*} [options] Override http request option.
|
|
34970
|
+
* @throws {RequiredError}
|
|
34971
|
+
*/
|
|
34972
|
+
adminUsersUserIdPermissionsPut: (userId_1, dataTypesSetUserCustomPermissionsRequest_1, ...args_1) => __awaiter(this, [userId_1, dataTypesSetUserCustomPermissionsRequest_1, ...args_1], void 0, function* (userId, dataTypesSetUserCustomPermissionsRequest, options = {}) {
|
|
34973
|
+
// verify required parameter 'userId' is not null or undefined
|
|
34974
|
+
assertParamExists('adminUsersUserIdPermissionsPut', 'userId', userId);
|
|
34975
|
+
// verify required parameter 'dataTypesSetUserCustomPermissionsRequest' is not null or undefined
|
|
34976
|
+
assertParamExists('adminUsersUserIdPermissionsPut', 'dataTypesSetUserCustomPermissionsRequest', dataTypesSetUserCustomPermissionsRequest);
|
|
34977
|
+
const localVarPath = `/admin/users/{userId}/permissions`
|
|
34978
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34981
|
+
let baseOptions;
|
|
34982
|
+
if (configuration) {
|
|
34983
|
+
baseOptions = configuration.baseOptions;
|
|
34984
|
+
}
|
|
34985
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
34986
|
+
const localVarHeaderParameter = {};
|
|
34987
|
+
const localVarQueryParameter = {};
|
|
34988
|
+
// authentication BearerAuth required
|
|
34989
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34990
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34991
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34992
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34993
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34994
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSetUserCustomPermissionsRequest, localVarRequestOptions, configuration);
|
|
34995
|
+
return {
|
|
34996
|
+
url: toPathString(localVarUrlObj),
|
|
34997
|
+
options: localVarRequestOptions,
|
|
34998
|
+
};
|
|
34999
|
+
}),
|
|
34686
35000
|
};
|
|
34687
35001
|
};
|
|
34688
35002
|
/**
|
|
@@ -34805,6 +35119,56 @@ export const UserApiFp = function (configuration) {
|
|
|
34805
35119
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34806
35120
|
});
|
|
34807
35121
|
},
|
|
35122
|
+
/**
|
|
35123
|
+
* Retrieves user\'s permission configuration (route-level and store-level)
|
|
35124
|
+
* @summary Get user\'s custom permissions
|
|
35125
|
+
* @param {number} userId User ID
|
|
35126
|
+
* @param {*} [options] Override http request option.
|
|
35127
|
+
* @throws {RequiredError}
|
|
35128
|
+
*/
|
|
35129
|
+
adminUsersUserIdPermissionsGet(userId, options) {
|
|
35130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35131
|
+
var _a, _b, _c;
|
|
35132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUsersUserIdPermissionsGet(userId, options);
|
|
35133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35134
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.adminUsersUserIdPermissionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35135
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35136
|
+
});
|
|
35137
|
+
},
|
|
35138
|
+
/**
|
|
35139
|
+
* Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
|
|
35140
|
+
* @summary Set user to custom permissions mode or regular role
|
|
35141
|
+
* @param {number} userId User ID
|
|
35142
|
+
* @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
|
|
35143
|
+
* @param {*} [options] Override http request option.
|
|
35144
|
+
* @throws {RequiredError}
|
|
35145
|
+
*/
|
|
35146
|
+
adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options) {
|
|
35147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35148
|
+
var _a, _b, _c;
|
|
35149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options);
|
|
35150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35151
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.adminUsersUserIdPermissionsModePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35153
|
+
});
|
|
35154
|
+
},
|
|
35155
|
+
/**
|
|
35156
|
+
* Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
|
|
35157
|
+
* @summary Update user\'s custom permissions
|
|
35158
|
+
* @param {number} userId User ID
|
|
35159
|
+
* @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
|
|
35160
|
+
* @param {*} [options] Override http request option.
|
|
35161
|
+
* @throws {RequiredError}
|
|
35162
|
+
*/
|
|
35163
|
+
adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options) {
|
|
35164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35165
|
+
var _a, _b, _c;
|
|
35166
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options);
|
|
35167
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35168
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.adminUsersUserIdPermissionsPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35170
|
+
});
|
|
35171
|
+
},
|
|
34808
35172
|
};
|
|
34809
35173
|
};
|
|
34810
35174
|
/**
|
|
@@ -34885,6 +35249,38 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
34885
35249
|
adminUsersResetpasswordIdPut(id, options) {
|
|
34886
35250
|
return localVarFp.adminUsersResetpasswordIdPut(id, options).then((request) => request(axios, basePath));
|
|
34887
35251
|
},
|
|
35252
|
+
/**
|
|
35253
|
+
* Retrieves user\'s permission configuration (route-level and store-level)
|
|
35254
|
+
* @summary Get user\'s custom permissions
|
|
35255
|
+
* @param {number} userId User ID
|
|
35256
|
+
* @param {*} [options] Override http request option.
|
|
35257
|
+
* @throws {RequiredError}
|
|
35258
|
+
*/
|
|
35259
|
+
adminUsersUserIdPermissionsGet(userId, options) {
|
|
35260
|
+
return localVarFp.adminUsersUserIdPermissionsGet(userId, options).then((request) => request(axios, basePath));
|
|
35261
|
+
},
|
|
35262
|
+
/**
|
|
35263
|
+
* Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
|
|
35264
|
+
* @summary Set user to custom permissions mode or regular role
|
|
35265
|
+
* @param {number} userId User ID
|
|
35266
|
+
* @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
|
|
35267
|
+
* @param {*} [options] Override http request option.
|
|
35268
|
+
* @throws {RequiredError}
|
|
35269
|
+
*/
|
|
35270
|
+
adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options) {
|
|
35271
|
+
return localVarFp.adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
|
|
35272
|
+
},
|
|
35273
|
+
/**
|
|
35274
|
+
* Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
|
|
35275
|
+
* @summary Update user\'s custom permissions
|
|
35276
|
+
* @param {number} userId User ID
|
|
35277
|
+
* @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
|
|
35278
|
+
* @param {*} [options] Override http request option.
|
|
35279
|
+
* @throws {RequiredError}
|
|
35280
|
+
*/
|
|
35281
|
+
adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options) {
|
|
35282
|
+
return localVarFp.adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(axios, basePath));
|
|
35283
|
+
},
|
|
34888
35284
|
};
|
|
34889
35285
|
};
|
|
34890
35286
|
/**
|
|
@@ -34972,4 +35368,39 @@ export class UserApi extends BaseAPI {
|
|
|
34972
35368
|
adminUsersResetpasswordIdPut(id, options) {
|
|
34973
35369
|
return UserApiFp(this.configuration).adminUsersResetpasswordIdPut(id, options).then((request) => request(this.axios, this.basePath));
|
|
34974
35370
|
}
|
|
35371
|
+
/**
|
|
35372
|
+
* Retrieves user\'s permission configuration (route-level and store-level)
|
|
35373
|
+
* @summary Get user\'s custom permissions
|
|
35374
|
+
* @param {number} userId User ID
|
|
35375
|
+
* @param {*} [options] Override http request option.
|
|
35376
|
+
* @throws {RequiredError}
|
|
35377
|
+
* @memberof UserApi
|
|
35378
|
+
*/
|
|
35379
|
+
adminUsersUserIdPermissionsGet(userId, options) {
|
|
35380
|
+
return UserApiFp(this.configuration).adminUsersUserIdPermissionsGet(userId, options).then((request) => request(this.axios, this.basePath));
|
|
35381
|
+
}
|
|
35382
|
+
/**
|
|
35383
|
+
* Sets a user to use custom permissions (creates user-specific role) or assigns a regular role
|
|
35384
|
+
* @summary Set user to custom permissions mode or regular role
|
|
35385
|
+
* @param {number} userId User ID
|
|
35386
|
+
* @param {DataTypesUserCustomPermissionsRequest} dataTypesUserCustomPermissionsRequest Permission mode configuration
|
|
35387
|
+
* @param {*} [options] Override http request option.
|
|
35388
|
+
* @throws {RequiredError}
|
|
35389
|
+
* @memberof UserApi
|
|
35390
|
+
*/
|
|
35391
|
+
adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options) {
|
|
35392
|
+
return UserApiFp(this.configuration).adminUsersUserIdPermissionsModePut(userId, dataTypesUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35393
|
+
}
|
|
35394
|
+
/**
|
|
35395
|
+
* Updates user\'s custom permissions (route-level and store-level). User must be in custom mode.
|
|
35396
|
+
* @summary Update user\'s custom permissions
|
|
35397
|
+
* @param {number} userId User ID
|
|
35398
|
+
* @param {DataTypesSetUserCustomPermissionsRequest} dataTypesSetUserCustomPermissionsRequest Permission configuration
|
|
35399
|
+
* @param {*} [options] Override http request option.
|
|
35400
|
+
* @throws {RequiredError}
|
|
35401
|
+
* @memberof UserApi
|
|
35402
|
+
*/
|
|
35403
|
+
adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options) {
|
|
35404
|
+
return UserApiFp(this.configuration).adminUsersUserIdPermissionsPut(userId, dataTypesSetUserCustomPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35405
|
+
}
|
|
34975
35406
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|