@seekora-ai/admin-api 1.1.29 → 1.1.31
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 +4 -4
- package/api.ts +210 -149
- package/dist/api.d.ts +157 -93
- package/dist/api.js +113 -122
- package/dist/esm/api.d.ts +157 -93
- package/dist/esm/api.js +106 -115
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.31.tgz +0 -0
- package/seekora-ai-admin-api-1.1.29.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -211,6 +211,11 @@ export const DataTypesStoreAccessRequestAccessLevelEnum = {
|
|
|
211
211
|
Write: 'write',
|
|
212
212
|
Admin: 'admin'
|
|
213
213
|
};
|
|
214
|
+
export const DataTypesStoreLevelMenuRightAccessLevelEnum = {
|
|
215
|
+
Read: 'read',
|
|
216
|
+
Write: 'write',
|
|
217
|
+
Admin: 'admin'
|
|
218
|
+
};
|
|
214
219
|
export const DataTypesUpdateMemberRoleRequestMemberRoleEnum = {
|
|
215
220
|
Owner: 'owner',
|
|
216
221
|
Admin: 'admin',
|
|
@@ -29016,6 +29021,33 @@ export class RoleRightsApi extends BaseAPI {
|
|
|
29016
29021
|
*/
|
|
29017
29022
|
export const RolesApiAxiosParamCreator = function (configuration) {
|
|
29018
29023
|
return {
|
|
29024
|
+
/**
|
|
29025
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29026
|
+
* @summary Fetches list of all roles
|
|
29027
|
+
* @param {*} [options] Override http request option.
|
|
29028
|
+
* @throws {RequiredError}
|
|
29029
|
+
*/
|
|
29030
|
+
adminRolesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
29031
|
+
const localVarPath = `/admin/roles`;
|
|
29032
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29034
|
+
let baseOptions;
|
|
29035
|
+
if (configuration) {
|
|
29036
|
+
baseOptions = configuration.baseOptions;
|
|
29037
|
+
}
|
|
29038
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
29039
|
+
const localVarHeaderParameter = {};
|
|
29040
|
+
const localVarQueryParameter = {};
|
|
29041
|
+
// authentication BearerAuth required
|
|
29042
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
29043
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29045
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29046
|
+
return {
|
|
29047
|
+
url: toPathString(localVarUrlObj),
|
|
29048
|
+
options: localVarRequestOptions,
|
|
29049
|
+
};
|
|
29050
|
+
}),
|
|
29019
29051
|
/**
|
|
29020
29052
|
* Deletes a role from the system by ID.
|
|
29021
29053
|
* @summary Delete a role
|
|
@@ -29084,51 +29116,48 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
29084
29116
|
};
|
|
29085
29117
|
}),
|
|
29086
29118
|
/**
|
|
29087
|
-
*
|
|
29088
|
-
* @summary
|
|
29089
|
-
* @param {
|
|
29119
|
+
* Adds a new role to the system
|
|
29120
|
+
* @summary Creates a new role
|
|
29121
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29090
29122
|
* @param {*} [options] Override http request option.
|
|
29091
29123
|
* @throws {RequiredError}
|
|
29092
29124
|
*/
|
|
29093
|
-
|
|
29094
|
-
// verify required parameter '
|
|
29095
|
-
assertParamExists('
|
|
29096
|
-
const localVarPath = `/admin/roles
|
|
29097
|
-
.replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)));
|
|
29125
|
+
adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
|
|
29126
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
29127
|
+
assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
|
|
29128
|
+
const localVarPath = `/admin/roles`;
|
|
29098
29129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29099
29130
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29100
29131
|
let baseOptions;
|
|
29101
29132
|
if (configuration) {
|
|
29102
29133
|
baseOptions = configuration.baseOptions;
|
|
29103
29134
|
}
|
|
29104
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
29135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29105
29136
|
const localVarHeaderParameter = {};
|
|
29106
29137
|
const localVarQueryParameter = {};
|
|
29107
29138
|
// authentication BearerAuth required
|
|
29108
29139
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
29140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29109
29141
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29110
29142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29111
29143
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29144
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
|
|
29112
29145
|
return {
|
|
29113
29146
|
url: toPathString(localVarUrlObj),
|
|
29114
29147
|
options: localVarRequestOptions,
|
|
29115
29148
|
};
|
|
29116
29149
|
}),
|
|
29117
29150
|
/**
|
|
29118
|
-
* Fetches role by id
|
|
29151
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29119
29152
|
* @summary Fetches role by id
|
|
29120
|
-
* @param {number} orgId Org ID
|
|
29121
29153
|
* @param {number} roleId RoleId ID
|
|
29122
29154
|
* @param {*} [options] Override http request option.
|
|
29123
29155
|
* @throws {RequiredError}
|
|
29124
29156
|
*/
|
|
29125
|
-
|
|
29126
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
29127
|
-
assertParamExists('adminRolesOrgIdRoleIdGet', 'orgId', orgId);
|
|
29157
|
+
adminRolesRoleIdGet: (roleId_1, ...args_1) => __awaiter(this, [roleId_1, ...args_1], void 0, function* (roleId, options = {}) {
|
|
29128
29158
|
// verify required parameter 'roleId' is not null or undefined
|
|
29129
|
-
assertParamExists('
|
|
29130
|
-
const localVarPath = `/admin/roles/{
|
|
29131
|
-
.replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)))
|
|
29159
|
+
assertParamExists('adminRolesRoleIdGet', 'roleId', roleId);
|
|
29160
|
+
const localVarPath = `/admin/roles/{RoleId}`
|
|
29132
29161
|
.replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
|
|
29133
29162
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29134
29163
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29149,38 +29178,6 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
29149
29178
|
options: localVarRequestOptions,
|
|
29150
29179
|
};
|
|
29151
29180
|
}),
|
|
29152
|
-
/**
|
|
29153
|
-
* Adds a new role to the system
|
|
29154
|
-
* @summary Creates a new role
|
|
29155
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29156
|
-
* @param {*} [options] Override http request option.
|
|
29157
|
-
* @throws {RequiredError}
|
|
29158
|
-
*/
|
|
29159
|
-
adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
|
|
29160
|
-
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
29161
|
-
assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
|
|
29162
|
-
const localVarPath = `/admin/roles`;
|
|
29163
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29164
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29165
|
-
let baseOptions;
|
|
29166
|
-
if (configuration) {
|
|
29167
|
-
baseOptions = configuration.baseOptions;
|
|
29168
|
-
}
|
|
29169
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29170
|
-
const localVarHeaderParameter = {};
|
|
29171
|
-
const localVarQueryParameter = {};
|
|
29172
|
-
// authentication BearerAuth required
|
|
29173
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
29174
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29175
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29176
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29177
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29178
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
|
|
29179
|
-
return {
|
|
29180
|
-
url: toPathString(localVarUrlObj),
|
|
29181
|
-
options: localVarRequestOptions,
|
|
29182
|
-
};
|
|
29183
|
-
}),
|
|
29184
29181
|
/**
|
|
29185
29182
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
29186
29183
|
* @summary Get role permissions with org-level and store-level separation
|
|
@@ -29257,6 +29254,21 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
29257
29254
|
export const RolesApiFp = function (configuration) {
|
|
29258
29255
|
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
|
|
29259
29256
|
return {
|
|
29257
|
+
/**
|
|
29258
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29259
|
+
* @summary Fetches list of all roles
|
|
29260
|
+
* @param {*} [options] Override http request option.
|
|
29261
|
+
* @throws {RequiredError}
|
|
29262
|
+
*/
|
|
29263
|
+
adminRolesGet(options) {
|
|
29264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29265
|
+
var _a, _b, _c;
|
|
29266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesGet(options);
|
|
29267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29268
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29270
|
+
});
|
|
29271
|
+
},
|
|
29260
29272
|
/**
|
|
29261
29273
|
* Deletes a role from the system by ID.
|
|
29262
29274
|
* @summary Delete a role
|
|
@@ -29291,51 +29303,34 @@ export const RolesApiFp = function (configuration) {
|
|
|
29291
29303
|
});
|
|
29292
29304
|
},
|
|
29293
29305
|
/**
|
|
29294
|
-
*
|
|
29295
|
-
* @summary
|
|
29296
|
-
* @param {
|
|
29306
|
+
* Adds a new role to the system
|
|
29307
|
+
* @summary Creates a new role
|
|
29308
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29297
29309
|
* @param {*} [options] Override http request option.
|
|
29298
29310
|
* @throws {RequiredError}
|
|
29299
29311
|
*/
|
|
29300
|
-
|
|
29312
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29301
29313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29302
29314
|
var _a, _b, _c;
|
|
29303
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
29315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
29304
29316
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29305
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.
|
|
29317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29306
29318
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29307
29319
|
});
|
|
29308
29320
|
},
|
|
29309
29321
|
/**
|
|
29310
|
-
* Fetches role by id
|
|
29322
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29311
29323
|
* @summary Fetches role by id
|
|
29312
|
-
* @param {number} orgId Org ID
|
|
29313
29324
|
* @param {number} roleId RoleId ID
|
|
29314
29325
|
* @param {*} [options] Override http request option.
|
|
29315
29326
|
* @throws {RequiredError}
|
|
29316
29327
|
*/
|
|
29317
|
-
|
|
29328
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29318
29329
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29319
29330
|
var _a, _b, _c;
|
|
29320
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
29331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
|
|
29321
29332
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29322
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.
|
|
29323
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29324
|
-
});
|
|
29325
|
-
},
|
|
29326
|
-
/**
|
|
29327
|
-
* Adds a new role to the system
|
|
29328
|
-
* @summary Creates a new role
|
|
29329
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29330
|
-
* @param {*} [options] Override http request option.
|
|
29331
|
-
* @throws {RequiredError}
|
|
29332
|
-
*/
|
|
29333
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29334
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29335
|
-
var _a, _b, _c;
|
|
29336
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
29337
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29338
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29333
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesRoleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29339
29334
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29340
29335
|
});
|
|
29341
29336
|
},
|
|
@@ -29381,6 +29376,15 @@ export const RolesApiFp = function (configuration) {
|
|
|
29381
29376
|
export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
29382
29377
|
const localVarFp = RolesApiFp(configuration);
|
|
29383
29378
|
return {
|
|
29379
|
+
/**
|
|
29380
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29381
|
+
* @summary Fetches list of all roles
|
|
29382
|
+
* @param {*} [options] Override http request option.
|
|
29383
|
+
* @throws {RequiredError}
|
|
29384
|
+
*/
|
|
29385
|
+
adminRolesGet(options) {
|
|
29386
|
+
return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
|
|
29387
|
+
},
|
|
29384
29388
|
/**
|
|
29385
29389
|
* Deletes a role from the system by ID.
|
|
29386
29390
|
* @summary Delete a role
|
|
@@ -29403,35 +29407,24 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
29403
29407
|
return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29404
29408
|
},
|
|
29405
29409
|
/**
|
|
29406
|
-
*
|
|
29407
|
-
* @summary
|
|
29408
|
-
* @param {
|
|
29410
|
+
* Adds a new role to the system
|
|
29411
|
+
* @summary Creates a new role
|
|
29412
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29409
29413
|
* @param {*} [options] Override http request option.
|
|
29410
29414
|
* @throws {RequiredError}
|
|
29411
29415
|
*/
|
|
29412
|
-
|
|
29413
|
-
return localVarFp.
|
|
29416
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29417
|
+
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29414
29418
|
},
|
|
29415
29419
|
/**
|
|
29416
|
-
* Fetches role by id
|
|
29420
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29417
29421
|
* @summary Fetches role by id
|
|
29418
|
-
* @param {number} orgId Org ID
|
|
29419
29422
|
* @param {number} roleId RoleId ID
|
|
29420
29423
|
* @param {*} [options] Override http request option.
|
|
29421
29424
|
* @throws {RequiredError}
|
|
29422
29425
|
*/
|
|
29423
|
-
|
|
29424
|
-
return localVarFp.
|
|
29425
|
-
},
|
|
29426
|
-
/**
|
|
29427
|
-
* Adds a new role to the system
|
|
29428
|
-
* @summary Creates a new role
|
|
29429
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29430
|
-
* @param {*} [options] Override http request option.
|
|
29431
|
-
* @throws {RequiredError}
|
|
29432
|
-
*/
|
|
29433
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29434
|
-
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29426
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29427
|
+
return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
|
|
29435
29428
|
},
|
|
29436
29429
|
/**
|
|
29437
29430
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
@@ -29463,6 +29456,16 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
29463
29456
|
* @extends {BaseAPI}
|
|
29464
29457
|
*/
|
|
29465
29458
|
export class RolesApi extends BaseAPI {
|
|
29459
|
+
/**
|
|
29460
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29461
|
+
* @summary Fetches list of all roles
|
|
29462
|
+
* @param {*} [options] Override http request option.
|
|
29463
|
+
* @throws {RequiredError}
|
|
29464
|
+
* @memberof RolesApi
|
|
29465
|
+
*/
|
|
29466
|
+
adminRolesGet(options) {
|
|
29467
|
+
return RolesApiFp(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
|
|
29468
|
+
}
|
|
29466
29469
|
/**
|
|
29467
29470
|
* Deletes a role from the system by ID.
|
|
29468
29471
|
* @summary Delete a role
|
|
@@ -29487,38 +29490,26 @@ export class RolesApi extends BaseAPI {
|
|
|
29487
29490
|
return RolesApiFp(this.configuration).adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29488
29491
|
}
|
|
29489
29492
|
/**
|
|
29490
|
-
*
|
|
29491
|
-
* @summary
|
|
29492
|
-
* @param {
|
|
29493
|
+
* Adds a new role to the system
|
|
29494
|
+
* @summary Creates a new role
|
|
29495
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29493
29496
|
* @param {*} [options] Override http request option.
|
|
29494
29497
|
* @throws {RequiredError}
|
|
29495
29498
|
* @memberof RolesApi
|
|
29496
29499
|
*/
|
|
29497
|
-
|
|
29498
|
-
return RolesApiFp(this.configuration).
|
|
29500
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29501
|
+
return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29499
29502
|
}
|
|
29500
29503
|
/**
|
|
29501
|
-
* Fetches role by id
|
|
29504
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29502
29505
|
* @summary Fetches role by id
|
|
29503
|
-
* @param {number} orgId Org ID
|
|
29504
29506
|
* @param {number} roleId RoleId ID
|
|
29505
29507
|
* @param {*} [options] Override http request option.
|
|
29506
29508
|
* @throws {RequiredError}
|
|
29507
29509
|
* @memberof RolesApi
|
|
29508
29510
|
*/
|
|
29509
|
-
|
|
29510
|
-
return RolesApiFp(this.configuration).
|
|
29511
|
-
}
|
|
29512
|
-
/**
|
|
29513
|
-
* Adds a new role to the system
|
|
29514
|
-
* @summary Creates a new role
|
|
29515
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29516
|
-
* @param {*} [options] Override http request option.
|
|
29517
|
-
* @throws {RequiredError}
|
|
29518
|
-
* @memberof RolesApi
|
|
29519
|
-
*/
|
|
29520
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29521
|
-
return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29511
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29512
|
+
return RolesApiFp(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
|
|
29522
29513
|
}
|
|
29523
29514
|
/**
|
|
29524
29515
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|