@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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.1.
|
|
1
|
+
## @seekora-ai/admin-api@1.1.31
|
|
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.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -374,11 +374,11 @@ Class | Method | HTTP request | Description
|
|
|
374
374
|
*RoleRightsApi* | [**adminRolerightsOrgOrgIdGet**](docs/RoleRightsApi.md#adminrolerightsorgorgidget) | **GET** /admin/rolerights/org/{orgId} | Fetches list of all roleright by orgId
|
|
375
375
|
*RoleRightsApi* | [**adminRolerightsPost**](docs/RoleRightsApi.md#adminrolerightspost) | **POST** /admin/rolerights | Creates a new roleright
|
|
376
376
|
*RoleRightsApi* | [**adminRolerightsStoreStoreIdGet**](docs/RoleRightsApi.md#adminrolerightsstorestoreidget) | **GET** /admin/rolerights/store/:storeId | Fetches list of all roleright by storeid
|
|
377
|
+
*RolesApi* | [**adminRolesGet**](docs/RolesApi.md#adminrolesget) | **GET** /admin/roles | Fetches list of all roles
|
|
377
378
|
*RolesApi* | [**adminRolesIdDelete**](docs/RolesApi.md#adminrolesiddelete) | **DELETE** /admin/roles/{id} | Delete a role
|
|
378
379
|
*RolesApi* | [**adminRolesIdPut**](docs/RolesApi.md#adminrolesidput) | **PUT** /admin/roles/{id} | Update an existing role
|
|
379
|
-
*RolesApi* | [**adminRolesOrgIdGet**](docs/RolesApi.md#adminrolesorgidget) | **GET** /admin/roles/{OrgId} | Fetches list of all roles
|
|
380
|
-
*RolesApi* | [**adminRolesOrgIdRoleIdGet**](docs/RolesApi.md#adminrolesorgidroleidget) | **GET** /admin/roles/{OrgId}/{RoleId} | Fetches role by id
|
|
381
380
|
*RolesApi* | [**adminRolesPost**](docs/RolesApi.md#adminrolespost) | **POST** /admin/roles | Creates a new role
|
|
381
|
+
*RolesApi* | [**adminRolesRoleIdGet**](docs/RolesApi.md#adminrolesroleidget) | **GET** /admin/roles/{RoleId} | Fetches role by id
|
|
382
382
|
*RolesApi* | [**adminRolesRoleIdPermissionsGet**](docs/RolesApi.md#adminrolesroleidpermissionsget) | **GET** /admin/roles/{roleId}/permissions | Get role permissions with org-level and store-level separation
|
|
383
383
|
*RolesApi* | [**adminRolesRoleIdPermissionsPut**](docs/RolesApi.md#adminrolesroleidpermissionsput) | **PUT** /admin/roles/{roleId}/permissions | Update role permissions
|
|
384
384
|
*SearchApi* | [**adminV1SearchXStoreIDPost**](docs/SearchApi.md#adminv1searchxstoreidpost) | **POST** /admin/v1/search/{xStoreID} | Admin Search API
|
package/api.ts
CHANGED
|
@@ -15706,6 +15706,12 @@ export interface DataTypesOnboardingStatus {
|
|
|
15706
15706
|
* @memberof DataTypesOnboardingStatus
|
|
15707
15707
|
*/
|
|
15708
15708
|
'missing_components'?: Array<string>;
|
|
15709
|
+
/**
|
|
15710
|
+
* Step in create store flow to redirect to
|
|
15711
|
+
* @type {string}
|
|
15712
|
+
* @memberof DataTypesOnboardingStatus
|
|
15713
|
+
*/
|
|
15714
|
+
'redirect_to_step'?: string;
|
|
15709
15715
|
}
|
|
15710
15716
|
/**
|
|
15711
15717
|
*
|
|
@@ -18565,17 +18571,11 @@ export interface DataTypesRolePermissionsResponse {
|
|
|
18565
18571
|
*/
|
|
18566
18572
|
'roleName'?: string;
|
|
18567
18573
|
/**
|
|
18568
|
-
* Store access
|
|
18569
|
-
* @type {Array<DataTypesStoreAccessWithDetails>}
|
|
18570
|
-
* @memberof DataTypesRolePermissionsResponse
|
|
18571
|
-
*/
|
|
18572
|
-
'storeAccess'?: Array<DataTypesStoreAccessWithDetails>;
|
|
18573
|
-
/**
|
|
18574
|
-
* Store-level menu/route permissions
|
|
18574
|
+
* Store-level menu/route permissions (includes store access fields)
|
|
18575
18575
|
* @type {Array<DataTypesStoreLevelMenuRightWithMenu>}
|
|
18576
18576
|
* @memberof DataTypesRolePermissionsResponse
|
|
18577
18577
|
*/
|
|
18578
|
-
'
|
|
18578
|
+
'storeAccess'?: Array<DataTypesStoreLevelMenuRightWithMenu>;
|
|
18579
18579
|
}
|
|
18580
18580
|
/**
|
|
18581
18581
|
*
|
|
@@ -20428,6 +20428,48 @@ export interface DataTypesStoreKeyResponseWrapper {
|
|
|
20428
20428
|
* @interface DataTypesStoreLevelMenuRight
|
|
20429
20429
|
*/
|
|
20430
20430
|
export interface DataTypesStoreLevelMenuRight {
|
|
20431
|
+
/**
|
|
20432
|
+
* Store access fields (merged from storeAccess array)
|
|
20433
|
+
* @type {string}
|
|
20434
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20435
|
+
*/
|
|
20436
|
+
'access_level'?: DataTypesStoreLevelMenuRightAccessLevelEnum;
|
|
20437
|
+
/**
|
|
20438
|
+
* Optional: overrides default based on access_level
|
|
20439
|
+
* @type {boolean}
|
|
20440
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20441
|
+
*/
|
|
20442
|
+
'can_add'?: boolean;
|
|
20443
|
+
/**
|
|
20444
|
+
* Optional: overrides default based on access_level
|
|
20445
|
+
* @type {boolean}
|
|
20446
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20447
|
+
*/
|
|
20448
|
+
'can_approve'?: boolean;
|
|
20449
|
+
/**
|
|
20450
|
+
* Optional: overrides default based on access_level
|
|
20451
|
+
* @type {boolean}
|
|
20452
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20453
|
+
*/
|
|
20454
|
+
'can_delete'?: boolean;
|
|
20455
|
+
/**
|
|
20456
|
+
* Optional: overrides default based on access_level
|
|
20457
|
+
* @type {boolean}
|
|
20458
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20459
|
+
*/
|
|
20460
|
+
'can_modify'?: boolean;
|
|
20461
|
+
/**
|
|
20462
|
+
* Optional: overrides default based on access_level
|
|
20463
|
+
* @type {boolean}
|
|
20464
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20465
|
+
*/
|
|
20466
|
+
'can_view'?: boolean;
|
|
20467
|
+
/**
|
|
20468
|
+
* Optional: if true, grants all CRUD permissions
|
|
20469
|
+
* @type {boolean}
|
|
20470
|
+
* @memberof DataTypesStoreLevelMenuRight
|
|
20471
|
+
*/
|
|
20472
|
+
'full_access'?: boolean;
|
|
20431
20473
|
/**
|
|
20432
20474
|
*
|
|
20433
20475
|
* @type {Array<DataTypesRoleRightRequestDto>}
|
|
@@ -20441,12 +20483,63 @@ export interface DataTypesStoreLevelMenuRight {
|
|
|
20441
20483
|
*/
|
|
20442
20484
|
'storeId': number;
|
|
20443
20485
|
}
|
|
20486
|
+
|
|
20487
|
+
export const DataTypesStoreLevelMenuRightAccessLevelEnum = {
|
|
20488
|
+
Read: 'read',
|
|
20489
|
+
Write: 'write',
|
|
20490
|
+
Admin: 'admin'
|
|
20491
|
+
} as const;
|
|
20492
|
+
|
|
20493
|
+
export type DataTypesStoreLevelMenuRightAccessLevelEnum = typeof DataTypesStoreLevelMenuRightAccessLevelEnum[keyof typeof DataTypesStoreLevelMenuRightAccessLevelEnum];
|
|
20494
|
+
|
|
20444
20495
|
/**
|
|
20445
20496
|
*
|
|
20446
20497
|
* @export
|
|
20447
20498
|
* @interface DataTypesStoreLevelMenuRightWithMenu
|
|
20448
20499
|
*/
|
|
20449
20500
|
export interface DataTypesStoreLevelMenuRightWithMenu {
|
|
20501
|
+
/**
|
|
20502
|
+
* Store access fields (merged from storeAccess array)
|
|
20503
|
+
* @type {string}
|
|
20504
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20505
|
+
*/
|
|
20506
|
+
'access_level'?: string;
|
|
20507
|
+
/**
|
|
20508
|
+
*
|
|
20509
|
+
* @type {boolean}
|
|
20510
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20511
|
+
*/
|
|
20512
|
+
'can_add'?: boolean;
|
|
20513
|
+
/**
|
|
20514
|
+
*
|
|
20515
|
+
* @type {boolean}
|
|
20516
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20517
|
+
*/
|
|
20518
|
+
'can_approve'?: boolean;
|
|
20519
|
+
/**
|
|
20520
|
+
*
|
|
20521
|
+
* @type {boolean}
|
|
20522
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20523
|
+
*/
|
|
20524
|
+
'can_delete'?: boolean;
|
|
20525
|
+
/**
|
|
20526
|
+
*
|
|
20527
|
+
* @type {boolean}
|
|
20528
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20529
|
+
*/
|
|
20530
|
+
'can_modify'?: boolean;
|
|
20531
|
+
/**
|
|
20532
|
+
*
|
|
20533
|
+
* @type {boolean}
|
|
20534
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20535
|
+
*/
|
|
20536
|
+
'can_view'?: boolean;
|
|
20537
|
+
/**
|
|
20538
|
+
*
|
|
20539
|
+
* @type {boolean}
|
|
20540
|
+
* @memberof DataTypesStoreLevelMenuRightWithMenu
|
|
20541
|
+
*/
|
|
20542
|
+
'full_access'?: boolean;
|
|
20450
20543
|
/**
|
|
20451
20544
|
*
|
|
20452
20545
|
* @type {Array<DataTypesRoleRightWithMenu>}
|
|
@@ -22152,17 +22245,11 @@ export interface DataTypesUpdateRolePermissionsRequest {
|
|
|
22152
22245
|
*/
|
|
22153
22246
|
'roleId': number;
|
|
22154
22247
|
/**
|
|
22155
|
-
* Store
|
|
22156
|
-
* @type {Array<DataTypesStoreAccessRequest>}
|
|
22157
|
-
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
22158
|
-
*/
|
|
22159
|
-
'storeAccess'?: Array<DataTypesStoreAccessRequest>;
|
|
22160
|
-
/**
|
|
22161
|
-
* Store-level menu/route permissions
|
|
22248
|
+
* Store-level menu/route permissions (includes store access fields)
|
|
22162
22249
|
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
22163
22250
|
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
22164
22251
|
*/
|
|
22165
|
-
'
|
|
22252
|
+
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
22166
22253
|
}
|
|
22167
22254
|
/**
|
|
22168
22255
|
*
|
|
@@ -22291,17 +22378,11 @@ export interface DataTypesUpdateUserRolePermissionsRequest {
|
|
|
22291
22378
|
*/
|
|
22292
22379
|
'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
|
|
22293
22380
|
/**
|
|
22294
|
-
* Store
|
|
22295
|
-
* @type {Array<DataTypesStoreAccessRequest>}
|
|
22296
|
-
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
22297
|
-
*/
|
|
22298
|
-
'storeAccess'?: Array<DataTypesStoreAccessRequest>;
|
|
22299
|
-
/**
|
|
22300
|
-
* Store-level menu/route permissions
|
|
22381
|
+
* Store-level menu/route permissions (includes store access fields)
|
|
22301
22382
|
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
22302
22383
|
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
22303
22384
|
*/
|
|
22304
|
-
'
|
|
22385
|
+
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
22305
22386
|
/**
|
|
22306
22387
|
*
|
|
22307
22388
|
* @type {number}
|
|
@@ -22845,17 +22926,11 @@ export interface DataTypesUserRolePermissionsResponse {
|
|
|
22845
22926
|
*/
|
|
22846
22927
|
'roleName'?: string;
|
|
22847
22928
|
/**
|
|
22848
|
-
* Store access
|
|
22849
|
-
* @type {Array<DataTypesStoreAccessWithDetails>}
|
|
22850
|
-
* @memberof DataTypesUserRolePermissionsResponse
|
|
22851
|
-
*/
|
|
22852
|
-
'storeAccess'?: Array<DataTypesStoreAccessWithDetails>;
|
|
22853
|
-
/**
|
|
22854
|
-
* Store-level menu/route permissions
|
|
22929
|
+
* Store-level menu/route permissions (includes store access fields)
|
|
22855
22930
|
* @type {Array<DataTypesStoreLevelMenuRightWithMenu>}
|
|
22856
22931
|
* @memberof DataTypesUserRolePermissionsResponse
|
|
22857
22932
|
*/
|
|
22858
|
-
'
|
|
22933
|
+
'storeAccess'?: Array<DataTypesStoreLevelMenuRightWithMenu>;
|
|
22859
22934
|
/**
|
|
22860
22935
|
*
|
|
22861
22936
|
* @type {boolean}
|
|
@@ -55850,17 +55925,13 @@ export class RoleRightsApi extends BaseAPI {
|
|
|
55850
55925
|
export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
55851
55926
|
return {
|
|
55852
55927
|
/**
|
|
55853
|
-
*
|
|
55854
|
-
* @summary
|
|
55855
|
-
* @param {number} id Role ID
|
|
55928
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
55929
|
+
* @summary Fetches list of all roles
|
|
55856
55930
|
* @param {*} [options] Override http request option.
|
|
55857
55931
|
* @throws {RequiredError}
|
|
55858
55932
|
*/
|
|
55859
|
-
|
|
55860
|
-
|
|
55861
|
-
assertParamExists('adminRolesIdDelete', 'id', id)
|
|
55862
|
-
const localVarPath = `/admin/roles/{id}`
|
|
55863
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55933
|
+
adminRolesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55934
|
+
const localVarPath = `/admin/roles`;
|
|
55864
55935
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55865
55936
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55866
55937
|
let baseOptions;
|
|
@@ -55868,7 +55939,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55868
55939
|
baseOptions = configuration.baseOptions;
|
|
55869
55940
|
}
|
|
55870
55941
|
|
|
55871
|
-
const localVarRequestOptions = { method: '
|
|
55942
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55872
55943
|
const localVarHeaderParameter = {} as any;
|
|
55873
55944
|
const localVarQueryParameter = {} as any;
|
|
55874
55945
|
|
|
@@ -55887,18 +55958,15 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55887
55958
|
};
|
|
55888
55959
|
},
|
|
55889
55960
|
/**
|
|
55890
|
-
*
|
|
55891
|
-
* @summary
|
|
55961
|
+
* Deletes a role from the system by ID.
|
|
55962
|
+
* @summary Delete a role
|
|
55892
55963
|
* @param {number} id Role ID
|
|
55893
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto Role data to update
|
|
55894
55964
|
* @param {*} [options] Override http request option.
|
|
55895
55965
|
* @throws {RequiredError}
|
|
55896
55966
|
*/
|
|
55897
|
-
|
|
55967
|
+
adminRolesIdDelete: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55898
55968
|
// verify required parameter 'id' is not null or undefined
|
|
55899
|
-
assertParamExists('
|
|
55900
|
-
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
55901
|
-
assertParamExists('adminRolesIdPut', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto)
|
|
55969
|
+
assertParamExists('adminRolesIdDelete', 'id', id)
|
|
55902
55970
|
const localVarPath = `/admin/roles/{id}`
|
|
55903
55971
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55904
55972
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -55908,7 +55976,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55908
55976
|
baseOptions = configuration.baseOptions;
|
|
55909
55977
|
}
|
|
55910
55978
|
|
|
55911
|
-
const localVarRequestOptions = { method: '
|
|
55979
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
55912
55980
|
const localVarHeaderParameter = {} as any;
|
|
55913
55981
|
const localVarQueryParameter = {} as any;
|
|
55914
55982
|
|
|
@@ -55917,12 +55985,9 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55917
55985
|
|
|
55918
55986
|
|
|
55919
55987
|
|
|
55920
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55921
|
-
|
|
55922
55988
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55923
55989
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55924
55990
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55925
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
55926
55991
|
|
|
55927
55992
|
return {
|
|
55928
55993
|
url: toPathString(localVarUrlObj),
|
|
@@ -55930,17 +55995,20 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55930
55995
|
};
|
|
55931
55996
|
},
|
|
55932
55997
|
/**
|
|
55933
|
-
*
|
|
55934
|
-
* @summary
|
|
55935
|
-
* @param {number}
|
|
55998
|
+
* Updates role information by ID.
|
|
55999
|
+
* @summary Update an existing role
|
|
56000
|
+
* @param {number} id Role ID
|
|
56001
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto Role data to update
|
|
55936
56002
|
* @param {*} [options] Override http request option.
|
|
55937
56003
|
* @throws {RequiredError}
|
|
55938
56004
|
*/
|
|
55939
|
-
|
|
55940
|
-
// verify required parameter '
|
|
55941
|
-
assertParamExists('
|
|
55942
|
-
|
|
55943
|
-
|
|
56005
|
+
adminRolesIdPut: async (id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56006
|
+
// verify required parameter 'id' is not null or undefined
|
|
56007
|
+
assertParamExists('adminRolesIdPut', 'id', id)
|
|
56008
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
56009
|
+
assertParamExists('adminRolesIdPut', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto)
|
|
56010
|
+
const localVarPath = `/admin/roles/{id}`
|
|
56011
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55944
56012
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55945
56013
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55946
56014
|
let baseOptions;
|
|
@@ -55948,7 +56016,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55948
56016
|
baseOptions = configuration.baseOptions;
|
|
55949
56017
|
}
|
|
55950
56018
|
|
|
55951
|
-
const localVarRequestOptions = { method: '
|
|
56019
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
55952
56020
|
const localVarHeaderParameter = {} as any;
|
|
55953
56021
|
const localVarQueryParameter = {} as any;
|
|
55954
56022
|
|
|
@@ -55957,9 +56025,12 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55957
56025
|
|
|
55958
56026
|
|
|
55959
56027
|
|
|
56028
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56029
|
+
|
|
55960
56030
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55961
56031
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55962
56032
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56033
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
55963
56034
|
|
|
55964
56035
|
return {
|
|
55965
56036
|
url: toPathString(localVarUrlObj),
|
|
@@ -55967,21 +56038,16 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55967
56038
|
};
|
|
55968
56039
|
},
|
|
55969
56040
|
/**
|
|
55970
|
-
*
|
|
55971
|
-
* @summary
|
|
55972
|
-
* @param {
|
|
55973
|
-
* @param {number} roleId RoleId ID
|
|
56041
|
+
* Adds a new role to the system
|
|
56042
|
+
* @summary Creates a new role
|
|
56043
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
55974
56044
|
* @param {*} [options] Override http request option.
|
|
55975
56045
|
* @throws {RequiredError}
|
|
55976
56046
|
*/
|
|
55977
|
-
|
|
55978
|
-
// verify required parameter '
|
|
55979
|
-
assertParamExists('
|
|
55980
|
-
|
|
55981
|
-
assertParamExists('adminRolesOrgIdRoleIdGet', 'roleId', roleId)
|
|
55982
|
-
const localVarPath = `/admin/roles/{OrgId}/{RoleId}`
|
|
55983
|
-
.replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)))
|
|
55984
|
-
.replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
|
|
56047
|
+
adminRolesPost: async (dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56048
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
56049
|
+
assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto)
|
|
56050
|
+
const localVarPath = `/admin/roles`;
|
|
55985
56051
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55986
56052
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55987
56053
|
let baseOptions;
|
|
@@ -55989,7 +56055,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55989
56055
|
baseOptions = configuration.baseOptions;
|
|
55990
56056
|
}
|
|
55991
56057
|
|
|
55992
|
-
const localVarRequestOptions = { method: '
|
|
56058
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55993
56059
|
const localVarHeaderParameter = {} as any;
|
|
55994
56060
|
const localVarQueryParameter = {} as any;
|
|
55995
56061
|
|
|
@@ -55998,9 +56064,12 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55998
56064
|
|
|
55999
56065
|
|
|
56000
56066
|
|
|
56067
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56068
|
+
|
|
56001
56069
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56002
56070
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56003
56071
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56072
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
56004
56073
|
|
|
56005
56074
|
return {
|
|
56006
56075
|
url: toPathString(localVarUrlObj),
|
|
@@ -56008,16 +56077,17 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56008
56077
|
};
|
|
56009
56078
|
},
|
|
56010
56079
|
/**
|
|
56011
|
-
*
|
|
56012
|
-
* @summary
|
|
56013
|
-
* @param {
|
|
56080
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56081
|
+
* @summary Fetches role by id
|
|
56082
|
+
* @param {number} roleId RoleId ID
|
|
56014
56083
|
* @param {*} [options] Override http request option.
|
|
56015
56084
|
* @throws {RequiredError}
|
|
56016
56085
|
*/
|
|
56017
|
-
|
|
56018
|
-
// verify required parameter '
|
|
56019
|
-
assertParamExists('
|
|
56020
|
-
const localVarPath = `/admin/roles
|
|
56086
|
+
adminRolesRoleIdGet: async (roleId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56087
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
56088
|
+
assertParamExists('adminRolesRoleIdGet', 'roleId', roleId)
|
|
56089
|
+
const localVarPath = `/admin/roles/{RoleId}`
|
|
56090
|
+
.replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
|
|
56021
56091
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56022
56092
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56023
56093
|
let baseOptions;
|
|
@@ -56025,7 +56095,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56025
56095
|
baseOptions = configuration.baseOptions;
|
|
56026
56096
|
}
|
|
56027
56097
|
|
|
56028
|
-
const localVarRequestOptions = { method: '
|
|
56098
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56029
56099
|
const localVarHeaderParameter = {} as any;
|
|
56030
56100
|
const localVarQueryParameter = {} as any;
|
|
56031
56101
|
|
|
@@ -56034,12 +56104,9 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56034
56104
|
|
|
56035
56105
|
|
|
56036
56106
|
|
|
56037
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56038
|
-
|
|
56039
56107
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56040
56108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56041
56109
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56042
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
56043
56110
|
|
|
56044
56111
|
return {
|
|
56045
56112
|
url: toPathString(localVarUrlObj),
|
|
@@ -56136,6 +56203,18 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56136
56203
|
export const RolesApiFp = function(configuration?: Configuration) {
|
|
56137
56204
|
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
|
|
56138
56205
|
return {
|
|
56206
|
+
/**
|
|
56207
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56208
|
+
* @summary Fetches list of all roles
|
|
56209
|
+
* @param {*} [options] Override http request option.
|
|
56210
|
+
* @throws {RequiredError}
|
|
56211
|
+
*/
|
|
56212
|
+
async adminRolesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRolesListResponse>> {
|
|
56213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesGet(options);
|
|
56214
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56215
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesGet']?.[localVarOperationServerIndex]?.url;
|
|
56216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56217
|
+
},
|
|
56139
56218
|
/**
|
|
56140
56219
|
* Deletes a role from the system by ID.
|
|
56141
56220
|
* @summary Delete a role
|
|
@@ -56164,43 +56243,29 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
56164
56243
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56165
56244
|
},
|
|
56166
56245
|
/**
|
|
56167
|
-
*
|
|
56168
|
-
* @summary
|
|
56169
|
-
* @param {
|
|
56246
|
+
* Adds a new role to the system
|
|
56247
|
+
* @summary Creates a new role
|
|
56248
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56170
56249
|
* @param {*} [options] Override http request option.
|
|
56171
56250
|
* @throws {RequiredError}
|
|
56172
56251
|
*/
|
|
56173
|
-
async
|
|
56174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
56252
|
+
async adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
56253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
56175
56254
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56176
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.
|
|
56255
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesPost']?.[localVarOperationServerIndex]?.url;
|
|
56177
56256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56178
56257
|
},
|
|
56179
56258
|
/**
|
|
56180
|
-
* Fetches role by id
|
|
56259
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56181
56260
|
* @summary Fetches role by id
|
|
56182
|
-
* @param {number} orgId Org ID
|
|
56183
56261
|
* @param {number} roleId RoleId ID
|
|
56184
56262
|
* @param {*} [options] Override http request option.
|
|
56185
56263
|
* @throws {RequiredError}
|
|
56186
56264
|
*/
|
|
56187
|
-
async
|
|
56188
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
56265
|
+
async adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRoleResponse>> {
|
|
56266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
|
|
56189
56267
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56190
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.
|
|
56191
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56192
|
-
},
|
|
56193
|
-
/**
|
|
56194
|
-
* Adds a new role to the system
|
|
56195
|
-
* @summary Creates a new role
|
|
56196
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56197
|
-
* @param {*} [options] Override http request option.
|
|
56198
|
-
* @throws {RequiredError}
|
|
56199
|
-
*/
|
|
56200
|
-
async adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
56201
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
56202
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56203
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesPost']?.[localVarOperationServerIndex]?.url;
|
|
56268
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdGet']?.[localVarOperationServerIndex]?.url;
|
|
56204
56269
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56205
56270
|
},
|
|
56206
56271
|
/**
|
|
@@ -56240,6 +56305,15 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
56240
56305
|
export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56241
56306
|
const localVarFp = RolesApiFp(configuration)
|
|
56242
56307
|
return {
|
|
56308
|
+
/**
|
|
56309
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56310
|
+
* @summary Fetches list of all roles
|
|
56311
|
+
* @param {*} [options] Override http request option.
|
|
56312
|
+
* @throws {RequiredError}
|
|
56313
|
+
*/
|
|
56314
|
+
adminRolesGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRolesListResponse> {
|
|
56315
|
+
return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
|
|
56316
|
+
},
|
|
56243
56317
|
/**
|
|
56244
56318
|
* Deletes a role from the system by ID.
|
|
56245
56319
|
* @summary Delete a role
|
|
@@ -56262,35 +56336,24 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
56262
56336
|
return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
56263
56337
|
},
|
|
56264
56338
|
/**
|
|
56265
|
-
*
|
|
56266
|
-
* @summary
|
|
56267
|
-
* @param {
|
|
56339
|
+
* Adds a new role to the system
|
|
56340
|
+
* @summary Creates a new role
|
|
56341
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56268
56342
|
* @param {*} [options] Override http request option.
|
|
56269
56343
|
* @throws {RequiredError}
|
|
56270
56344
|
*/
|
|
56271
|
-
|
|
56272
|
-
return localVarFp.
|
|
56345
|
+
adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
56346
|
+
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
56273
56347
|
},
|
|
56274
56348
|
/**
|
|
56275
|
-
* Fetches role by id
|
|
56349
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56276
56350
|
* @summary Fetches role by id
|
|
56277
|
-
* @param {number} orgId Org ID
|
|
56278
56351
|
* @param {number} roleId RoleId ID
|
|
56279
56352
|
* @param {*} [options] Override http request option.
|
|
56280
56353
|
* @throws {RequiredError}
|
|
56281
56354
|
*/
|
|
56282
|
-
|
|
56283
|
-
return localVarFp.
|
|
56284
|
-
},
|
|
56285
|
-
/**
|
|
56286
|
-
* Adds a new role to the system
|
|
56287
|
-
* @summary Creates a new role
|
|
56288
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56289
|
-
* @param {*} [options] Override http request option.
|
|
56290
|
-
* @throws {RequiredError}
|
|
56291
|
-
*/
|
|
56292
|
-
adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
56293
|
-
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
56355
|
+
adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRoleResponse> {
|
|
56356
|
+
return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
|
|
56294
56357
|
},
|
|
56295
56358
|
/**
|
|
56296
56359
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
@@ -56323,6 +56386,17 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
56323
56386
|
* @extends {BaseAPI}
|
|
56324
56387
|
*/
|
|
56325
56388
|
export class RolesApi extends BaseAPI {
|
|
56389
|
+
/**
|
|
56390
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56391
|
+
* @summary Fetches list of all roles
|
|
56392
|
+
* @param {*} [options] Override http request option.
|
|
56393
|
+
* @throws {RequiredError}
|
|
56394
|
+
* @memberof RolesApi
|
|
56395
|
+
*/
|
|
56396
|
+
public adminRolesGet(options?: RawAxiosRequestConfig) {
|
|
56397
|
+
return RolesApiFp(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
|
|
56398
|
+
}
|
|
56399
|
+
|
|
56326
56400
|
/**
|
|
56327
56401
|
* Deletes a role from the system by ID.
|
|
56328
56402
|
* @summary Delete a role
|
|
@@ -56349,40 +56423,27 @@ export class RolesApi extends BaseAPI {
|
|
|
56349
56423
|
}
|
|
56350
56424
|
|
|
56351
56425
|
/**
|
|
56352
|
-
*
|
|
56353
|
-
* @summary
|
|
56354
|
-
* @param {
|
|
56426
|
+
* Adds a new role to the system
|
|
56427
|
+
* @summary Creates a new role
|
|
56428
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56355
56429
|
* @param {*} [options] Override http request option.
|
|
56356
56430
|
* @throws {RequiredError}
|
|
56357
56431
|
* @memberof RolesApi
|
|
56358
56432
|
*/
|
|
56359
|
-
public
|
|
56360
|
-
return RolesApiFp(this.configuration).
|
|
56433
|
+
public adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) {
|
|
56434
|
+
return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
56361
56435
|
}
|
|
56362
56436
|
|
|
56363
56437
|
/**
|
|
56364
|
-
* Fetches role by id
|
|
56438
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56365
56439
|
* @summary Fetches role by id
|
|
56366
|
-
* @param {number} orgId Org ID
|
|
56367
56440
|
* @param {number} roleId RoleId ID
|
|
56368
56441
|
* @param {*} [options] Override http request option.
|
|
56369
56442
|
* @throws {RequiredError}
|
|
56370
56443
|
* @memberof RolesApi
|
|
56371
56444
|
*/
|
|
56372
|
-
public
|
|
56373
|
-
return RolesApiFp(this.configuration).
|
|
56374
|
-
}
|
|
56375
|
-
|
|
56376
|
-
/**
|
|
56377
|
-
* Adds a new role to the system
|
|
56378
|
-
* @summary Creates a new role
|
|
56379
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56380
|
-
* @param {*} [options] Override http request option.
|
|
56381
|
-
* @throws {RequiredError}
|
|
56382
|
-
* @memberof RolesApi
|
|
56383
|
-
*/
|
|
56384
|
-
public adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) {
|
|
56385
|
-
return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
56445
|
+
public adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig) {
|
|
56446
|
+
return RolesApiFp(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
|
|
56386
56447
|
}
|
|
56387
56448
|
|
|
56388
56449
|
/**
|