@seekora-ai/admin-api 1.1.29 → 1.1.30
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 +109 -117
- package/dist/api.d.ts +59 -61
- package/dist/api.js +101 -115
- package/dist/esm/api.d.ts +59 -61
- package/dist/esm/api.js +101 -115
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.30.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.30
|
|
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.30 --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
|
*
|
|
@@ -55850,17 +55856,13 @@ export class RoleRightsApi extends BaseAPI {
|
|
|
55850
55856
|
export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
55851
55857
|
return {
|
|
55852
55858
|
/**
|
|
55853
|
-
*
|
|
55854
|
-
* @summary
|
|
55855
|
-
* @param {number} id Role ID
|
|
55859
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
55860
|
+
* @summary Fetches list of all roles
|
|
55856
55861
|
* @param {*} [options] Override http request option.
|
|
55857
55862
|
* @throws {RequiredError}
|
|
55858
55863
|
*/
|
|
55859
|
-
|
|
55860
|
-
|
|
55861
|
-
assertParamExists('adminRolesIdDelete', 'id', id)
|
|
55862
|
-
const localVarPath = `/admin/roles/{id}`
|
|
55863
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55864
|
+
adminRolesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55865
|
+
const localVarPath = `/admin/roles`;
|
|
55864
55866
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55865
55867
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55866
55868
|
let baseOptions;
|
|
@@ -55868,7 +55870,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55868
55870
|
baseOptions = configuration.baseOptions;
|
|
55869
55871
|
}
|
|
55870
55872
|
|
|
55871
|
-
const localVarRequestOptions = { method: '
|
|
55873
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55872
55874
|
const localVarHeaderParameter = {} as any;
|
|
55873
55875
|
const localVarQueryParameter = {} as any;
|
|
55874
55876
|
|
|
@@ -55887,18 +55889,15 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55887
55889
|
};
|
|
55888
55890
|
},
|
|
55889
55891
|
/**
|
|
55890
|
-
*
|
|
55891
|
-
* @summary
|
|
55892
|
+
* Deletes a role from the system by ID.
|
|
55893
|
+
* @summary Delete a role
|
|
55892
55894
|
* @param {number} id Role ID
|
|
55893
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto Role data to update
|
|
55894
55895
|
* @param {*} [options] Override http request option.
|
|
55895
55896
|
* @throws {RequiredError}
|
|
55896
55897
|
*/
|
|
55897
|
-
|
|
55898
|
+
adminRolesIdDelete: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55898
55899
|
// 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)
|
|
55900
|
+
assertParamExists('adminRolesIdDelete', 'id', id)
|
|
55902
55901
|
const localVarPath = `/admin/roles/{id}`
|
|
55903
55902
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55904
55903
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -55908,7 +55907,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55908
55907
|
baseOptions = configuration.baseOptions;
|
|
55909
55908
|
}
|
|
55910
55909
|
|
|
55911
|
-
const localVarRequestOptions = { method: '
|
|
55910
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
55912
55911
|
const localVarHeaderParameter = {} as any;
|
|
55913
55912
|
const localVarQueryParameter = {} as any;
|
|
55914
55913
|
|
|
@@ -55917,12 +55916,9 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55917
55916
|
|
|
55918
55917
|
|
|
55919
55918
|
|
|
55920
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55921
|
-
|
|
55922
55919
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55923
55920
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55924
55921
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55925
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
55926
55922
|
|
|
55927
55923
|
return {
|
|
55928
55924
|
url: toPathString(localVarUrlObj),
|
|
@@ -55930,17 +55926,20 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55930
55926
|
};
|
|
55931
55927
|
},
|
|
55932
55928
|
/**
|
|
55933
|
-
*
|
|
55934
|
-
* @summary
|
|
55935
|
-
* @param {number}
|
|
55929
|
+
* Updates role information by ID.
|
|
55930
|
+
* @summary Update an existing role
|
|
55931
|
+
* @param {number} id Role ID
|
|
55932
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto Role data to update
|
|
55936
55933
|
* @param {*} [options] Override http request option.
|
|
55937
55934
|
* @throws {RequiredError}
|
|
55938
55935
|
*/
|
|
55939
|
-
|
|
55940
|
-
// verify required parameter '
|
|
55941
|
-
assertParamExists('
|
|
55942
|
-
|
|
55943
|
-
|
|
55936
|
+
adminRolesIdPut: async (id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55937
|
+
// verify required parameter 'id' is not null or undefined
|
|
55938
|
+
assertParamExists('adminRolesIdPut', 'id', id)
|
|
55939
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
55940
|
+
assertParamExists('adminRolesIdPut', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto)
|
|
55941
|
+
const localVarPath = `/admin/roles/{id}`
|
|
55942
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55944
55943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55945
55944
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55946
55945
|
let baseOptions;
|
|
@@ -55948,7 +55947,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55948
55947
|
baseOptions = configuration.baseOptions;
|
|
55949
55948
|
}
|
|
55950
55949
|
|
|
55951
|
-
const localVarRequestOptions = { method: '
|
|
55950
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
55952
55951
|
const localVarHeaderParameter = {} as any;
|
|
55953
55952
|
const localVarQueryParameter = {} as any;
|
|
55954
55953
|
|
|
@@ -55957,9 +55956,12 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55957
55956
|
|
|
55958
55957
|
|
|
55959
55958
|
|
|
55959
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55960
|
+
|
|
55960
55961
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55961
55962
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55962
55963
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55964
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
55963
55965
|
|
|
55964
55966
|
return {
|
|
55965
55967
|
url: toPathString(localVarUrlObj),
|
|
@@ -55967,21 +55969,16 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55967
55969
|
};
|
|
55968
55970
|
},
|
|
55969
55971
|
/**
|
|
55970
|
-
*
|
|
55971
|
-
* @summary
|
|
55972
|
-
* @param {
|
|
55973
|
-
* @param {number} roleId RoleId ID
|
|
55972
|
+
* Adds a new role to the system
|
|
55973
|
+
* @summary Creates a new role
|
|
55974
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
55974
55975
|
* @param {*} [options] Override http request option.
|
|
55975
55976
|
* @throws {RequiredError}
|
|
55976
55977
|
*/
|
|
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)));
|
|
55978
|
+
adminRolesPost: async (dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55979
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
55980
|
+
assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto)
|
|
55981
|
+
const localVarPath = `/admin/roles`;
|
|
55985
55982
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55986
55983
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55987
55984
|
let baseOptions;
|
|
@@ -55989,7 +55986,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55989
55986
|
baseOptions = configuration.baseOptions;
|
|
55990
55987
|
}
|
|
55991
55988
|
|
|
55992
|
-
const localVarRequestOptions = { method: '
|
|
55989
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55993
55990
|
const localVarHeaderParameter = {} as any;
|
|
55994
55991
|
const localVarQueryParameter = {} as any;
|
|
55995
55992
|
|
|
@@ -55998,9 +55995,12 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
55998
55995
|
|
|
55999
55996
|
|
|
56000
55997
|
|
|
55998
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55999
|
+
|
|
56001
56000
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56002
56001
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56003
56002
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56003
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
56004
56004
|
|
|
56005
56005
|
return {
|
|
56006
56006
|
url: toPathString(localVarUrlObj),
|
|
@@ -56008,16 +56008,17 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56008
56008
|
};
|
|
56009
56009
|
},
|
|
56010
56010
|
/**
|
|
56011
|
-
*
|
|
56012
|
-
* @summary
|
|
56013
|
-
* @param {
|
|
56011
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56012
|
+
* @summary Fetches role by id
|
|
56013
|
+
* @param {number} roleId RoleId ID
|
|
56014
56014
|
* @param {*} [options] Override http request option.
|
|
56015
56015
|
* @throws {RequiredError}
|
|
56016
56016
|
*/
|
|
56017
|
-
|
|
56018
|
-
// verify required parameter '
|
|
56019
|
-
assertParamExists('
|
|
56020
|
-
const localVarPath = `/admin/roles
|
|
56017
|
+
adminRolesRoleIdGet: async (roleId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56018
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
56019
|
+
assertParamExists('adminRolesRoleIdGet', 'roleId', roleId)
|
|
56020
|
+
const localVarPath = `/admin/roles/{RoleId}`
|
|
56021
|
+
.replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
|
|
56021
56022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56022
56023
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56023
56024
|
let baseOptions;
|
|
@@ -56025,7 +56026,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56025
56026
|
baseOptions = configuration.baseOptions;
|
|
56026
56027
|
}
|
|
56027
56028
|
|
|
56028
|
-
const localVarRequestOptions = { method: '
|
|
56029
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56029
56030
|
const localVarHeaderParameter = {} as any;
|
|
56030
56031
|
const localVarQueryParameter = {} as any;
|
|
56031
56032
|
|
|
@@ -56034,12 +56035,9 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56034
56035
|
|
|
56035
56036
|
|
|
56036
56037
|
|
|
56037
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56038
|
-
|
|
56039
56038
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56040
56039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56041
56040
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56042
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration)
|
|
56043
56041
|
|
|
56044
56042
|
return {
|
|
56045
56043
|
url: toPathString(localVarUrlObj),
|
|
@@ -56136,6 +56134,18 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
56136
56134
|
export const RolesApiFp = function(configuration?: Configuration) {
|
|
56137
56135
|
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
|
|
56138
56136
|
return {
|
|
56137
|
+
/**
|
|
56138
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56139
|
+
* @summary Fetches list of all roles
|
|
56140
|
+
* @param {*} [options] Override http request option.
|
|
56141
|
+
* @throws {RequiredError}
|
|
56142
|
+
*/
|
|
56143
|
+
async adminRolesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRolesListResponse>> {
|
|
56144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesGet(options);
|
|
56145
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56146
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesGet']?.[localVarOperationServerIndex]?.url;
|
|
56147
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56148
|
+
},
|
|
56139
56149
|
/**
|
|
56140
56150
|
* Deletes a role from the system by ID.
|
|
56141
56151
|
* @summary Delete a role
|
|
@@ -56164,43 +56174,29 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
56164
56174
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56165
56175
|
},
|
|
56166
56176
|
/**
|
|
56167
|
-
*
|
|
56168
|
-
* @summary
|
|
56169
|
-
* @param {
|
|
56177
|
+
* Adds a new role to the system
|
|
56178
|
+
* @summary Creates a new role
|
|
56179
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56170
56180
|
* @param {*} [options] Override http request option.
|
|
56171
56181
|
* @throws {RequiredError}
|
|
56172
56182
|
*/
|
|
56173
|
-
async
|
|
56174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
56183
|
+
async adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
56184
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
56175
56185
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56176
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.
|
|
56186
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesPost']?.[localVarOperationServerIndex]?.url;
|
|
56177
56187
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56178
56188
|
},
|
|
56179
56189
|
/**
|
|
56180
|
-
* Fetches role by id
|
|
56190
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56181
56191
|
* @summary Fetches role by id
|
|
56182
|
-
* @param {number} orgId Org ID
|
|
56183
56192
|
* @param {number} roleId RoleId ID
|
|
56184
56193
|
* @param {*} [options] Override http request option.
|
|
56185
56194
|
* @throws {RequiredError}
|
|
56186
56195
|
*/
|
|
56187
|
-
async
|
|
56188
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
56189
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56190
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesOrgIdRoleIdGet']?.[localVarOperationServerIndex]?.url;
|
|
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);
|
|
56196
|
+
async adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRoleResponse>> {
|
|
56197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
|
|
56202
56198
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
56203
|
-
const localVarOperationServerBasePath = operationServerMap['RolesApi.
|
|
56199
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.adminRolesRoleIdGet']?.[localVarOperationServerIndex]?.url;
|
|
56204
56200
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56205
56201
|
},
|
|
56206
56202
|
/**
|
|
@@ -56240,6 +56236,15 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
56240
56236
|
export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56241
56237
|
const localVarFp = RolesApiFp(configuration)
|
|
56242
56238
|
return {
|
|
56239
|
+
/**
|
|
56240
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56241
|
+
* @summary Fetches list of all roles
|
|
56242
|
+
* @param {*} [options] Override http request option.
|
|
56243
|
+
* @throws {RequiredError}
|
|
56244
|
+
*/
|
|
56245
|
+
adminRolesGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRolesListResponse> {
|
|
56246
|
+
return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
|
|
56247
|
+
},
|
|
56243
56248
|
/**
|
|
56244
56249
|
* Deletes a role from the system by ID.
|
|
56245
56250
|
* @summary Delete a role
|
|
@@ -56262,35 +56267,24 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
56262
56267
|
return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
56263
56268
|
},
|
|
56264
56269
|
/**
|
|
56265
|
-
*
|
|
56266
|
-
* @summary
|
|
56267
|
-
* @param {
|
|
56270
|
+
* Adds a new role to the system
|
|
56271
|
+
* @summary Creates a new role
|
|
56272
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56268
56273
|
* @param {*} [options] Override http request option.
|
|
56269
56274
|
* @throws {RequiredError}
|
|
56270
56275
|
*/
|
|
56271
|
-
|
|
56272
|
-
return localVarFp.
|
|
56276
|
+
adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
56277
|
+
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
56273
56278
|
},
|
|
56274
56279
|
/**
|
|
56275
|
-
* Fetches role by id
|
|
56280
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56276
56281
|
* @summary Fetches role by id
|
|
56277
|
-
* @param {number} orgId Org ID
|
|
56278
56282
|
* @param {number} roleId RoleId ID
|
|
56279
56283
|
* @param {*} [options] Override http request option.
|
|
56280
56284
|
* @throws {RequiredError}
|
|
56281
56285
|
*/
|
|
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));
|
|
56286
|
+
adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRoleResponse> {
|
|
56287
|
+
return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
|
|
56294
56288
|
},
|
|
56295
56289
|
/**
|
|
56296
56290
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
@@ -56323,6 +56317,17 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
56323
56317
|
* @extends {BaseAPI}
|
|
56324
56318
|
*/
|
|
56325
56319
|
export class RolesApi extends BaseAPI {
|
|
56320
|
+
/**
|
|
56321
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
56322
|
+
* @summary Fetches list of all roles
|
|
56323
|
+
* @param {*} [options] Override http request option.
|
|
56324
|
+
* @throws {RequiredError}
|
|
56325
|
+
* @memberof RolesApi
|
|
56326
|
+
*/
|
|
56327
|
+
public adminRolesGet(options?: RawAxiosRequestConfig) {
|
|
56328
|
+
return RolesApiFp(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
|
|
56329
|
+
}
|
|
56330
|
+
|
|
56326
56331
|
/**
|
|
56327
56332
|
* Deletes a role from the system by ID.
|
|
56328
56333
|
* @summary Delete a role
|
|
@@ -56349,40 +56354,27 @@ export class RolesApi extends BaseAPI {
|
|
|
56349
56354
|
}
|
|
56350
56355
|
|
|
56351
56356
|
/**
|
|
56352
|
-
*
|
|
56353
|
-
* @summary
|
|
56354
|
-
* @param {
|
|
56357
|
+
* Adds a new role to the system
|
|
56358
|
+
* @summary Creates a new role
|
|
56359
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
56355
56360
|
* @param {*} [options] Override http request option.
|
|
56356
56361
|
* @throws {RequiredError}
|
|
56357
56362
|
* @memberof RolesApi
|
|
56358
56363
|
*/
|
|
56359
|
-
public
|
|
56360
|
-
return RolesApiFp(this.configuration).
|
|
56364
|
+
public adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) {
|
|
56365
|
+
return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
56361
56366
|
}
|
|
56362
56367
|
|
|
56363
56368
|
/**
|
|
56364
|
-
* Fetches role by id
|
|
56369
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
56365
56370
|
* @summary Fetches role by id
|
|
56366
|
-
* @param {number} orgId Org ID
|
|
56367
56371
|
* @param {number} roleId RoleId ID
|
|
56368
56372
|
* @param {*} [options] Override http request option.
|
|
56369
56373
|
* @throws {RequiredError}
|
|
56370
56374
|
* @memberof RolesApi
|
|
56371
56375
|
*/
|
|
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));
|
|
56376
|
+
public adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig) {
|
|
56377
|
+
return RolesApiFp(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
|
|
56386
56378
|
}
|
|
56387
56379
|
|
|
56388
56380
|
/**
|