@emilgroup/tenant-sdk 1.24.0 → 1.27.1-beta.0

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.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +6 -7
  2. package/README.md +2 -2
  3. package/api/invite-organizations-api.ts +15 -15
  4. package/api/invite-users-api.ts +34 -34
  5. package/api/roles-api.ts +4 -0
  6. package/api/users-api.ts +124 -4
  7. package/base.ts +1 -0
  8. package/dist/api/invite-organizations-api.d.ts +9 -9
  9. package/dist/api/invite-organizations-api.js +12 -12
  10. package/dist/api/invite-users-api.d.ts +22 -22
  11. package/dist/api/invite-users-api.js +27 -27
  12. package/dist/api/roles-api.d.ts +4 -0
  13. package/dist/api/roles-api.js +4 -0
  14. package/dist/api/users-api.d.ts +70 -4
  15. package/dist/api/users-api.js +102 -3
  16. package/dist/base.d.ts +1 -0
  17. package/dist/base.js +1 -0
  18. package/dist/models/{invite-users-request-dto.d.ts → assign-user-roles-request-dto.d.ts} +8 -14
  19. package/dist/models/assign-user-roles-response-class.d.ts +25 -0
  20. package/dist/models/create-tenant-db-config-request-dto.d.ts +30 -0
  21. package/dist/models/index.d.ts +6 -7
  22. package/dist/models/index.js +6 -7
  23. package/dist/models/invite-class.d.ts +12 -12
  24. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  25. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  26. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  27. package/dist/models/user-class.d.ts +8 -8
  28. package/models/{invite-users-request-dto.ts → assign-user-roles-request-dto.ts} +8 -14
  29. package/models/assign-user-roles-response-class.ts +31 -0
  30. package/models/{create-role-request-dto.ts → create-tenant-db-config-request-dto.ts} +9 -15
  31. package/models/index.ts +6 -7
  32. package/models/invite-class.ts +12 -12
  33. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  34. package/models/invite-user-request-dto-rest.ts +55 -0
  35. package/models/invite-users-request-dto-rest.ts +55 -0
  36. package/models/user-class.ts +8 -8
  37. package/package.json +1 -1
  38. package/dist/models/create-permission-request-dto.d.ts +0 -42
  39. package/dist/models/create-role-request-dto.d.ts +0 -36
  40. package/dist/models/invite-user-request-dto.d.ts +0 -43
  41. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  42. package/dist/models/update-role-request-dto.d.ts +0 -42
  43. package/dist/models/update-role-request-dto.js +0 -15
  44. package/models/create-permission-request-dto.ts +0 -48
  45. package/models/invite-user-request-dto.ts +0 -49
  46. package/models/partner-invitation-data-dto.ts +0 -42
  47. package/models/update-role-request-dto.ts +0 -48
  48. /package/dist/models/{create-permission-request-dto.js → assign-user-roles-request-dto.js} +0 -0
  49. /package/dist/models/{create-role-request-dto.js → assign-user-roles-response-class.js} +0 -0
  50. /package/dist/models/{invite-org-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
  51. /package/dist/models/{invite-user-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  52. /package/dist/models/{invite-users-request-dto.js → invite-user-request-dto-rest.js} +0 -0
  53. /package/dist/models/{partner-invitation-data-dto.js → invite-users-request-dto-rest.js} +0 -0
@@ -23,6 +23,8 @@ common.ts
23
23
  configuration.ts
24
24
  git_push.sh
25
25
  index.ts
26
+ models/assign-user-roles-request-dto.ts
27
+ models/assign-user-roles-response-class.ts
26
28
  models/batch-delete-request-dto.ts
27
29
  models/batch-delete-response-class.ts
28
30
  models/create-custom-schema-request-dto.ts
@@ -33,8 +35,7 @@ models/create-dashboard-request-dto.ts
33
35
  models/create-dashboard-response-class.ts
34
36
  models/create-data-report-request-dto.ts
35
37
  models/create-data-report-response-class.ts
36
- models/create-permission-request-dto.ts
37
- models/create-role-request-dto.ts
38
+ models/create-tenant-db-config-request-dto.ts
38
39
  models/create-tenant-request-dto.ts
39
40
  models/custom-field-dto.ts
40
41
  models/custom-schema-class.ts
@@ -65,10 +66,10 @@ models/initial-tenant-config-class.ts
65
66
  models/inline-response200.ts
66
67
  models/inline-response503.ts
67
68
  models/invite-class.ts
68
- models/invite-org-request-dto.ts
69
- models/invite-user-request-dto.ts
69
+ models/invite-org-request-dto-rest.ts
70
+ models/invite-user-request-dto-rest.ts
70
71
  models/invite-user-response-class.ts
71
- models/invite-users-request-dto.ts
72
+ models/invite-users-request-dto-rest.ts
72
73
  models/invite-users-response-class.ts
73
74
  models/link-user-with-partner-request-dto-rest.ts
74
75
  models/link-user-with-partner-response-class.ts
@@ -84,7 +85,6 @@ models/list-users-response-class.ts
84
85
  models/org-invitation-class.ts
85
86
  models/org-invitation-response-class.ts
86
87
  models/organization-class.ts
87
- models/partner-invitation-data-dto.ts
88
88
  models/permission-class.ts
89
89
  models/re-invite-org-request-dto.ts
90
90
  models/role-class.ts
@@ -104,7 +104,6 @@ models/update-data-report-request-dto.ts
104
104
  models/update-data-report-response-class.ts
105
105
  models/update-organization-request-dto-rest.ts
106
106
  models/update-organization-response-class.ts
107
- models/update-role-request-dto.ts
108
107
  models/user-class.ts
109
108
  package.json
110
109
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk@1.24.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.27.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.24.0
24
+ yarn add @emilgroup/tenant-sdk@1.27.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -21,7 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { InviteOrgRequestDto } from '../models';
24
+ import { InviteOrgRequestDtoRest } from '../models';
25
25
  // @ts-ignore
26
26
  import { OrgInvitationResponseClass } from '../models';
27
27
  /**
@@ -33,14 +33,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
33
33
  /**
34
34
  * This sends an email to invite an organization.
35
35
  * @summary Invite an organization
36
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
36
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
37
37
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'inviteOrgRequestDto' is not null or undefined
43
- assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
41
+ inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
43
+ assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
44
44
  const localVarPath = `/tenantservice/v1/invitations/organizations`;
45
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -70,7 +70,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
70
70
  setSearchParams(localVarUrlObj, localVarQueryParameter);
71
71
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
72
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
73
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
74
74
 
75
75
  return {
76
76
  url: toPathString(localVarUrlObj),
@@ -90,13 +90,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
90
90
  /**
91
91
  * This sends an email to invite an organization.
92
92
  * @summary Invite an organization
93
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
93
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
94
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
95
  * @param {*} [options] Override http request option.
96
96
  * @throws {RequiredError}
97
97
  */
98
- async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
98
+ async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
99
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
100
100
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
101
  },
102
102
  }
@@ -112,13 +112,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
112
112
  /**
113
113
  * This sends an email to invite an organization.
114
114
  * @summary Invite an organization
115
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
115
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
116
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
119
  */
120
- inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
121
- return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
120
+ inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
121
+ return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
122
122
  },
123
123
  };
124
124
  };
@@ -131,10 +131,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
131
131
  export interface InviteOrganizationsApiInviteOrgRequest {
132
132
  /**
133
133
  *
134
- * @type {InviteOrgRequestDto}
134
+ * @type {InviteOrgRequestDtoRest}
135
135
  * @memberof InviteOrganizationsApiInviteOrg
136
136
  */
137
- readonly inviteOrgRequestDto: InviteOrgRequestDto
137
+ readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
138
138
 
139
139
  /**
140
140
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -160,6 +160,6 @@ export class InviteOrganizationsApi extends BaseAPI {
160
160
  * @memberof InviteOrganizationsApi
161
161
  */
162
162
  public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
163
- return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
163
+ return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
164
  }
165
165
  }
@@ -25,11 +25,11 @@ import { BatchDeleteRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { BatchDeleteResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { InviteUserRequestDto } from '../models';
28
+ import { InviteUserRequestDtoRest } from '../models';
29
29
  // @ts-ignore
30
30
  import { InviteUserResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { InviteUsersRequestDto } from '../models';
32
+ import { InviteUsersRequestDtoRest } from '../models';
33
33
  // @ts-ignore
34
34
  import { InviteUsersResponseClass } from '../models';
35
35
  // @ts-ignore
@@ -90,14 +90,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
90
90
  /**
91
91
  * This send an email to invite a user with the specific role/roles.
92
92
  * @summary Invite a user
93
- * @param {InviteUserRequestDto} inviteUserRequestDto
93
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
94
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
95
  * @param {*} [options] Override http request option.
96
96
  * @throws {RequiredError}
97
97
  */
98
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
- // verify required parameter 'inviteUserRequestDto' is not null or undefined
100
- assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
98
+ inviteUser: async (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
+ // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
100
+ assertParamExists('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest)
101
101
  const localVarPath = `/tenantservice/v1/users/invites`;
102
102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
103
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -127,7 +127,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
127
127
  setSearchParams(localVarUrlObj, localVarQueryParameter);
128
128
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
129
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
130
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
131
131
 
132
132
  return {
133
133
  url: toPathString(localVarUrlObj),
@@ -137,14 +137,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
137
137
  /**
138
138
  * This send bulk emails to invite users with the specific role/roles.
139
139
  * @summary Invite batch of users
140
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
140
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
141
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
- // verify required parameter 'inviteUsersRequestDto' is not null or undefined
147
- assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
145
+ inviteUsers: async (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
147
+ assertParamExists('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest)
148
148
  const localVarPath = `/tenantservice/v1/users/invites/batch`;
149
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
150
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -174,7 +174,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
174
174
  setSearchParams(localVarUrlObj, localVarQueryParameter);
175
175
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
176
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
177
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
177
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
178
178
 
179
179
  return {
180
180
  url: toPathString(localVarUrlObj),
@@ -190,7 +190,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
190
190
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
191
191
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
192
192
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
193
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
193
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
194
194
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
195
195
  * @param {*} [options] Override http request option.
196
196
  * @throws {RequiredError}
@@ -282,25 +282,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
282
282
  /**
283
283
  * This send an email to invite a user with the specific role/roles.
284
284
  * @summary Invite a user
285
- * @param {InviteUserRequestDto} inviteUserRequestDto
285
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
286
286
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
287
287
  * @param {*} [options] Override http request option.
288
288
  * @throws {RequiredError}
289
289
  */
290
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
291
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
290
+ async inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options);
292
292
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
293
293
  },
294
294
  /**
295
295
  * This send bulk emails to invite users with the specific role/roles.
296
296
  * @summary Invite batch of users
297
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
297
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
298
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
299
  * @param {*} [options] Override http request option.
300
300
  * @throws {RequiredError}
301
301
  */
302
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
303
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
302
+ async inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options);
304
304
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
305
305
  },
306
306
  /**
@@ -312,7 +312,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
312
312
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
313
313
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
314
314
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
315
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
315
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
316
316
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
317
317
  * @param {*} [options] Override http request option.
318
318
  * @throws {RequiredError}
@@ -345,24 +345,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
345
345
  /**
346
346
  * This send an email to invite a user with the specific role/roles.
347
347
  * @summary Invite a user
348
- * @param {InviteUserRequestDto} inviteUserRequestDto
348
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
349
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
350
350
  * @param {*} [options] Override http request option.
351
351
  * @throws {RequiredError}
352
352
  */
353
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
354
- return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
353
+ inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
354
+ return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
355
355
  },
356
356
  /**
357
357
  * This send bulk emails to invite users with the specific role/roles.
358
358
  * @summary Invite batch of users
359
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
359
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
360
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
361
361
  * @param {*} [options] Override http request option.
362
362
  * @throws {RequiredError}
363
363
  */
364
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
365
- return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
364
+ inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
365
+ return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
366
366
  },
367
367
  /**
368
368
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -373,7 +373,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
373
373
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
374
374
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
375
375
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
376
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
376
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
377
377
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern, partnerCode&lt;/i&gt;
378
378
  * @param {*} [options] Override http request option.
379
379
  * @throws {RequiredError}
@@ -413,10 +413,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
413
413
  export interface InviteUsersApiInviteUserRequest {
414
414
  /**
415
415
  *
416
- * @type {InviteUserRequestDto}
416
+ * @type {InviteUserRequestDtoRest}
417
417
  * @memberof InviteUsersApiInviteUser
418
418
  */
419
- readonly inviteUserRequestDto: InviteUserRequestDto
419
+ readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
420
420
 
421
421
  /**
422
422
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -434,10 +434,10 @@ export interface InviteUsersApiInviteUserRequest {
434
434
  export interface InviteUsersApiInviteUsersRequest {
435
435
  /**
436
436
  *
437
- * @type {InviteUsersRequestDto}
437
+ * @type {InviteUsersRequestDtoRest}
438
438
  * @memberof InviteUsersApiInviteUsers
439
439
  */
440
- readonly inviteUsersRequestDto: InviteUsersRequestDto
440
+ readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
441
441
 
442
442
  /**
443
443
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -496,7 +496,7 @@ export interface InviteUsersApiListInvitesRequest {
496
496
  readonly order?: string
497
497
 
498
498
  /**
499
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
499
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
500
500
  * @type {string}
501
501
  * @memberof InviteUsersApiListInvites
502
502
  */
@@ -538,7 +538,7 @@ export class InviteUsersApi extends BaseAPI {
538
538
  * @memberof InviteUsersApi
539
539
  */
540
540
  public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
541
- return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
541
+ return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
542
542
  }
543
543
 
544
544
  /**
@@ -550,7 +550,7 @@ export class InviteUsersApi extends BaseAPI {
550
550
  * @memberof InviteUsersApi
551
551
  */
552
552
  public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
553
- return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
553
+ return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
554
554
  }
555
555
 
556
556
  /**
package/api/roles-api.ts CHANGED
@@ -39,6 +39,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
39
39
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
40
40
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
41
41
  * @param {*} [options] Override http request option.
42
+ * @deprecated
42
43
  * @throws {RequiredError}
43
44
  */
44
45
  listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -120,6 +121,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
120
121
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
121
122
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
122
123
  * @param {*} [options] Override http request option.
124
+ * @deprecated
123
125
  * @throws {RequiredError}
124
126
  */
125
127
  async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
@@ -147,6 +149,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
147
149
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
148
150
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
149
151
  * @param {*} [options] Override http request option.
152
+ * @deprecated
150
153
  * @throws {RequiredError}
151
154
  */
152
155
  listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
@@ -223,6 +226,7 @@ export class RolesApi extends BaseAPI {
223
226
  * @summary List roles
224
227
  * @param {RolesApiListRolesRequest} requestParameters Request parameters.
225
228
  * @param {*} [options] Override http request option.
229
+ * @deprecated
226
230
  * @throws {RequiredError}
227
231
  * @memberof RolesApi
228
232
  */
package/api/users-api.ts CHANGED
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { AssignUserRolesRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { AssignUserRolesResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { BatchDeleteRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { BatchDeleteResponseClass } from '../models';
@@ -46,6 +50,57 @@ import { ListUsersResponseClass } from '../models';
46
50
  */
47
51
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
48
52
  return {
53
+ /**
54
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
55
+ * @param {number} id
56
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {*} [options] Override http request option.
59
+ * @deprecated
60
+ * @throws {RequiredError}
61
+ */
62
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
63
+ // verify required parameter 'id' is not null or undefined
64
+ assertParamExists('assignUserRoles', 'id', id)
65
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
66
+ assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
67
+ const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
68
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
69
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
+ let baseOptions;
72
+ let baseAccessToken;
73
+ if (configuration) {
74
+ baseOptions = configuration.baseOptions;
75
+ baseAccessToken = configuration.accessToken;
76
+ }
77
+
78
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
79
+ const localVarHeaderParameter = {} as any;
80
+ const localVarQueryParameter = {} as any;
81
+
82
+ // authentication bearer required
83
+ // http bearer authentication required
84
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
85
+
86
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
87
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
88
+ }
89
+
90
+
91
+
92
+ localVarHeaderParameter['Content-Type'] = 'application/json';
93
+
94
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
97
+ localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
98
+
99
+ return {
100
+ url: toPathString(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ },
49
104
  /**
50
105
  *
51
106
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -292,7 +347,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
292
347
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
293
348
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
294
349
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
295
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
350
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
296
351
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
297
352
  * @param {*} [options] Override http request option.
298
353
  * @throws {RequiredError}
@@ -369,6 +424,19 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
369
424
  export const UsersApiFp = function(configuration?: Configuration) {
370
425
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
371
426
  return {
427
+ /**
428
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
429
+ * @param {number} id
430
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
431
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
+ * @param {*} [options] Override http request option.
433
+ * @deprecated
434
+ * @throws {RequiredError}
435
+ */
436
+ async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
438
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
439
+ },
372
440
  /**
373
441
  *
374
442
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -435,7 +503,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
435
503
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
436
504
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
437
505
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
438
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
506
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
439
507
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
440
508
  * @param {*} [options] Override http request option.
441
509
  * @throws {RequiredError}
@@ -454,6 +522,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
454
522
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
455
523
  const localVarFp = UsersApiFp(configuration)
456
524
  return {
525
+ /**
526
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
527
+ * @param {number} id
528
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
529
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
530
+ * @param {*} [options] Override http request option.
531
+ * @deprecated
532
+ * @throws {RequiredError}
533
+ */
534
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
535
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
536
+ },
457
537
  /**
458
538
  *
459
539
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -515,7 +595,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
515
595
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
516
596
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
517
597
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
518
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
598
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
519
599
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
520
600
  * @param {*} [options] Override http request option.
521
601
  * @throws {RequiredError}
@@ -526,6 +606,34 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
526
606
  };
527
607
  };
528
608
 
609
+ /**
610
+ * Request parameters for assignUserRoles operation in UsersApi.
611
+ * @export
612
+ * @interface UsersApiAssignUserRolesRequest
613
+ */
614
+ export interface UsersApiAssignUserRolesRequest {
615
+ /**
616
+ *
617
+ * @type {number}
618
+ * @memberof UsersApiAssignUserRoles
619
+ */
620
+ readonly id: number
621
+
622
+ /**
623
+ *
624
+ * @type {AssignUserRolesRequestDto}
625
+ * @memberof UsersApiAssignUserRoles
626
+ */
627
+ readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
628
+
629
+ /**
630
+ * Bearer Token: provided by the login endpoint under the name accessToken.
631
+ * @type {string}
632
+ * @memberof UsersApiAssignUserRoles
633
+ */
634
+ readonly authorization?: string
635
+ }
636
+
529
637
  /**
530
638
  * Request parameters for deleteUsers operation in UsersApi.
531
639
  * @export
@@ -694,7 +802,7 @@ export interface UsersApiListUsersRequest {
694
802
  readonly order?: string
695
803
 
696
804
  /**
697
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, subscriptions, organizations&lt;i&gt;
805
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
698
806
  * @type {string}
699
807
  * @memberof UsersApiListUsers
700
808
  */
@@ -715,6 +823,18 @@ export interface UsersApiListUsersRequest {
715
823
  * @extends {BaseAPI}
716
824
  */
717
825
  export class UsersApi extends BaseAPI {
826
+ /**
827
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
828
+ * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
829
+ * @param {*} [options] Override http request option.
830
+ * @deprecated
831
+ * @throws {RequiredError}
832
+ * @memberof UsersApi
833
+ */
834
+ public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
835
+ return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
836
+ }
837
+
718
838
  /**
719
839
  *
720
840
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
package/base.ts CHANGED
@@ -40,6 +40,7 @@ export interface LoginClass {
40
40
  export enum Environment {
41
41
  Production = 'https://apiv2.emil.de',
42
42
  Test = 'https://apiv2-test.emil.de',
43
+ Staging = 'https://apiv2-staging.emil.de',
43
44
  Development = 'https://apiv2-dev.emil.de',
44
45
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
45
46
  }