@emilgroup/tenant-sdk-node 1.23.0 → 1.24.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 (48) hide show
  1. package/.openapi-generator/FILES +5 -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 +7 -15
  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 -3
  17. package/dist/base.js +20 -26
  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/index.d.ts +5 -7
  21. package/dist/models/index.js +5 -7
  22. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  23. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  24. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  25. package/models/{invite-users-request-dto.ts → assign-user-roles-request-dto.ts} +8 -14
  26. package/models/assign-user-roles-response-class.ts +31 -0
  27. package/models/index.ts +5 -7
  28. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  29. package/models/invite-user-request-dto-rest.ts +55 -0
  30. package/models/invite-users-request-dto-rest.ts +55 -0
  31. package/package.json +1 -1
  32. package/dist/models/create-permission-request-dto.d.ts +0 -42
  33. package/dist/models/create-role-request-dto.d.ts +0 -36
  34. package/dist/models/invite-user-request-dto.d.ts +0 -43
  35. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  36. package/dist/models/partner-invitation-data-dto.js +0 -15
  37. package/dist/models/update-role-request-dto.d.ts +0 -42
  38. package/dist/models/update-role-request-dto.js +0 -15
  39. package/models/create-permission-request-dto.ts +0 -48
  40. package/models/create-role-request-dto.ts +0 -42
  41. package/models/invite-user-request-dto.ts +0 -49
  42. package/models/partner-invitation-data-dto.ts +0 -42
  43. package/models/update-role-request-dto.ts +0 -48
  44. /package/dist/models/{create-permission-request-dto.js → assign-user-roles-request-dto.js} +0 -0
  45. /package/dist/models/{create-role-request-dto.js → assign-user-roles-response-class.js} +0 -0
  46. /package/dist/models/{invite-org-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  47. /package/dist/models/{invite-user-request-dto.js → invite-user-request-dto-rest.js} +0 -0
  48. /package/dist/models/{invite-users-request-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,6 @@ 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
38
  models/create-tenant-request-dto.ts
39
39
  models/custom-field-dto.ts
40
40
  models/custom-schema-class.ts
@@ -65,10 +65,10 @@ models/initial-tenant-config-class.ts
65
65
  models/inline-response200.ts
66
66
  models/inline-response503.ts
67
67
  models/invite-class.ts
68
- models/invite-org-request-dto.ts
69
- models/invite-user-request-dto.ts
68
+ models/invite-org-request-dto-rest.ts
69
+ models/invite-user-request-dto-rest.ts
70
70
  models/invite-user-response-class.ts
71
- models/invite-users-request-dto.ts
71
+ models/invite-users-request-dto-rest.ts
72
72
  models/invite-users-response-class.ts
73
73
  models/link-user-with-partner-request-dto-rest.ts
74
74
  models/link-user-with-partner-response-class.ts
@@ -84,7 +84,6 @@ models/list-users-response-class.ts
84
84
  models/org-invitation-class.ts
85
85
  models/org-invitation-response-class.ts
86
86
  models/organization-class.ts
87
- models/partner-invitation-data-dto.ts
88
87
  models/permission-class.ts
89
88
  models/re-invite-org-request-dto.ts
90
89
  models/role-class.ts
@@ -104,7 +103,6 @@ models/update-data-report-request-dto.ts
104
103
  models/update-data-report-response-class.ts
105
104
  models/update-organization-request-dto-rest.ts
106
105
  models/update-organization-response-class.ts
107
- models/update-role-request-dto.ts
108
106
  models/user-class.ts
109
107
  package.json
110
108
  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-node@1.23.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.24.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.23.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.24.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
  // URLSearchParams not necessarily used
@@ -37,14 +37,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
37
37
  /**
38
38
  * This sends an email to invite an organization.
39
39
  * @summary Invite an organization
40
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
40
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
41
41
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
42
  * @param {*} [options] Override http request option.
43
43
  * @throws {RequiredError}
44
44
  */
45
- inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'inviteOrgRequestDto' is not null or undefined
47
- assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
45
+ inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
47
+ assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
48
48
  const localVarPath = `/tenantservice/v1/invitations/organizations`;
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,7 +74,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
74
74
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
77
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
78
78
 
79
79
  return {
80
80
  url: toPathString(localVarUrlObj),
@@ -94,13 +94,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
94
94
  /**
95
95
  * This sends an email to invite an organization.
96
96
  * @summary Invite an organization
97
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
97
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
98
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
101
101
  */
102
- async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
103
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
102
+ async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
104
104
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
105
  },
106
106
  }
@@ -116,13 +116,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
116
116
  /**
117
117
  * This sends an email to invite an organization.
118
118
  * @summary Invite an organization
119
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
119
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
120
120
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}
123
123
  */
124
- inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
125
- return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
124
+ inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
125
+ return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
126
126
  },
127
127
  };
128
128
  };
@@ -135,10 +135,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
135
135
  export interface InviteOrganizationsApiInviteOrgRequest {
136
136
  /**
137
137
  *
138
- * @type {InviteOrgRequestDto}
138
+ * @type {InviteOrgRequestDtoRest}
139
139
  * @memberof InviteOrganizationsApiInviteOrg
140
140
  */
141
- readonly inviteOrgRequestDto: InviteOrgRequestDto
141
+ readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
142
142
 
143
143
  /**
144
144
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -164,6 +164,6 @@ export class InviteOrganizationsApi extends BaseAPI {
164
164
  * @memberof InviteOrganizationsApi
165
165
  */
166
166
  public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
167
- return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
167
+ return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
168
  }
169
169
  }
@@ -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
@@ -94,14 +94,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
94
94
  /**
95
95
  * This send an email to invite a user with the specific role/roles.
96
96
  * @summary Invite a user
97
- * @param {InviteUserRequestDto} inviteUserRequestDto
97
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
98
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
101
101
  */
102
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
- // verify required parameter 'inviteUserRequestDto' is not null or undefined
104
- assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
102
+ inviteUser: async (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
104
+ assertParamExists('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest)
105
105
  const localVarPath = `/tenantservice/v1/users/invites`;
106
106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
107
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -131,7 +131,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
131
131
  setSearchParams(localVarUrlObj, localVarQueryParameter);
132
132
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
133
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
134
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
135
135
 
136
136
  return {
137
137
  url: toPathString(localVarUrlObj),
@@ -141,14 +141,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
141
141
  /**
142
142
  * This send bulk emails to invite users with the specific role/roles.
143
143
  * @summary Invite batch of users
144
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
144
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
145
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
146
  * @param {*} [options] Override http request option.
147
147
  * @throws {RequiredError}
148
148
  */
149
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
- // verify required parameter 'inviteUsersRequestDto' is not null or undefined
151
- assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
149
+ inviteUsers: async (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
151
+ assertParamExists('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest)
152
152
  const localVarPath = `/tenantservice/v1/users/invites/batch`;
153
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
154
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -178,7 +178,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
178
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
179
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
181
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
182
182
 
183
183
  return {
184
184
  url: toPathString(localVarUrlObj),
@@ -194,7 +194,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
194
194
  * @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;
195
195
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
196
196
  * @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;
197
- * @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;
197
+ * @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;
198
198
  * @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;
199
199
  * @param {*} [options] Override http request option.
200
200
  * @throws {RequiredError}
@@ -286,25 +286,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
286
286
  /**
287
287
  * This send an email to invite a user with the specific role/roles.
288
288
  * @summary Invite a user
289
- * @param {InviteUserRequestDto} inviteUserRequestDto
289
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
290
290
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
291
291
  * @param {*} [options] Override http request option.
292
292
  * @throws {RequiredError}
293
293
  */
294
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
295
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
294
+ async inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options);
296
296
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
297
297
  },
298
298
  /**
299
299
  * This send bulk emails to invite users with the specific role/roles.
300
300
  * @summary Invite batch of users
301
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
301
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
302
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
303
  * @param {*} [options] Override http request option.
304
304
  * @throws {RequiredError}
305
305
  */
306
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
307
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
306
+ async inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options);
308
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
309
309
  },
310
310
  /**
@@ -316,7 +316,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
316
316
  * @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;
317
317
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
318
318
  * @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;
319
- * @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;
319
+ * @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;
320
320
  * @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;
321
321
  * @param {*} [options] Override http request option.
322
322
  * @throws {RequiredError}
@@ -349,24 +349,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
349
349
  /**
350
350
  * This send an email to invite a user with the specific role/roles.
351
351
  * @summary Invite a user
352
- * @param {InviteUserRequestDto} inviteUserRequestDto
352
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
353
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
354
  * @param {*} [options] Override http request option.
355
355
  * @throws {RequiredError}
356
356
  */
357
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
358
- return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
357
+ inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
358
+ return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
359
359
  },
360
360
  /**
361
361
  * This send bulk emails to invite users with the specific role/roles.
362
362
  * @summary Invite batch of users
363
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
363
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
364
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
365
  * @param {*} [options] Override http request option.
366
366
  * @throws {RequiredError}
367
367
  */
368
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
369
- return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
368
+ inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
369
+ return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
370
370
  },
371
371
  /**
372
372
  * 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.
@@ -377,7 +377,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
377
377
  * @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;
378
378
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
379
379
  * @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;
380
- * @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;
380
+ * @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;
381
381
  * @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;
382
382
  * @param {*} [options] Override http request option.
383
383
  * @throws {RequiredError}
@@ -417,10 +417,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
417
417
  export interface InviteUsersApiInviteUserRequest {
418
418
  /**
419
419
  *
420
- * @type {InviteUserRequestDto}
420
+ * @type {InviteUserRequestDtoRest}
421
421
  * @memberof InviteUsersApiInviteUser
422
422
  */
423
- readonly inviteUserRequestDto: InviteUserRequestDto
423
+ readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
424
424
 
425
425
  /**
426
426
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -438,10 +438,10 @@ export interface InviteUsersApiInviteUserRequest {
438
438
  export interface InviteUsersApiInviteUsersRequest {
439
439
  /**
440
440
  *
441
- * @type {InviteUsersRequestDto}
441
+ * @type {InviteUsersRequestDtoRest}
442
442
  * @memberof InviteUsersApiInviteUsers
443
443
  */
444
- readonly inviteUsersRequestDto: InviteUsersRequestDto
444
+ readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
445
445
 
446
446
  /**
447
447
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -500,7 +500,7 @@ export interface InviteUsersApiListInvitesRequest {
500
500
  readonly order?: string
501
501
 
502
502
  /**
503
- * 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;
503
+ * 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;
504
504
  * @type {string}
505
505
  * @memberof InviteUsersApiListInvites
506
506
  */
@@ -542,7 +542,7 @@ export class InviteUsersApi extends BaseAPI {
542
542
  * @memberof InviteUsersApi
543
543
  */
544
544
  public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
545
- return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
545
+ return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
546
546
  }
547
547
 
548
548
  /**
@@ -554,7 +554,7 @@ export class InviteUsersApi extends BaseAPI {
554
554
  * @memberof InviteUsersApi
555
555
  */
556
556
  public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
557
- return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
557
+ return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
558
558
  }
559
559
 
560
560
  /**
package/api/roles-api.ts CHANGED
@@ -43,6 +43,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
43
43
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
44
44
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
45
45
  * @param {*} [options] Override http request option.
46
+ * @deprecated
46
47
  * @throws {RequiredError}
47
48
  */
48
49
  listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -124,6 +125,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
124
125
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
125
126
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
126
127
  * @param {*} [options] Override http request option.
128
+ * @deprecated
127
129
  * @throws {RequiredError}
128
130
  */
129
131
  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>> {
@@ -151,6 +153,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
151
153
  * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
152
154
  * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
153
155
  * @param {*} [options] Override http request option.
156
+ * @deprecated
154
157
  * @throws {RequiredError}
155
158
  */
156
159
  listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
@@ -227,6 +230,7 @@ export class RolesApi extends BaseAPI {
227
230
  * @summary List roles
228
231
  * @param {RolesApiListRolesRequest} requestParameters Request parameters.
229
232
  * @param {*} [options] Override http request option.
233
+ * @deprecated
230
234
  * @throws {RequiredError}
231
235
  * @memberof RolesApi
232
236
  */
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';
@@ -50,6 +54,57 @@ const FormData = require('form-data');
50
54
  */
51
55
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
52
56
  return {
57
+ /**
58
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
59
+ * @param {number} id
60
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
61
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
62
+ * @param {*} [options] Override http request option.
63
+ * @deprecated
64
+ * @throws {RequiredError}
65
+ */
66
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
67
+ // verify required parameter 'id' is not null or undefined
68
+ assertParamExists('assignUserRoles', 'id', id)
69
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
70
+ assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
71
+ const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
72
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
73
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
74
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
+ let baseOptions;
76
+ let baseAccessToken;
77
+ if (configuration) {
78
+ baseOptions = configuration.baseOptions;
79
+ baseAccessToken = configuration.accessToken;
80
+ }
81
+
82
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
83
+ const localVarHeaderParameter = {} as any;
84
+ const localVarQueryParameter = {} as any;
85
+
86
+ // authentication bearer required
87
+ // http bearer authentication required
88
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
89
+
90
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
91
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
92
+ }
93
+
94
+
95
+
96
+ localVarHeaderParameter['Content-Type'] = 'application/json';
97
+
98
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
101
+ localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
102
+
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ },
53
108
  /**
54
109
  *
55
110
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -296,7 +351,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
296
351
  * @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;
297
352
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
298
353
  * @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;
299
- * @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;
354
+ * @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;
300
355
  * @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;
301
356
  * @param {*} [options] Override http request option.
302
357
  * @throws {RequiredError}
@@ -373,6 +428,19 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
373
428
  export const UsersApiFp = function(configuration?: Configuration) {
374
429
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
375
430
  return {
431
+ /**
432
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
433
+ * @param {number} id
434
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
435
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {*} [options] Override http request option.
437
+ * @deprecated
438
+ * @throws {RequiredError}
439
+ */
440
+ async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
442
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
443
+ },
376
444
  /**
377
445
  *
378
446
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -439,7 +507,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
439
507
  * @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;
440
508
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
441
509
  * @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;
442
- * @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;
510
+ * @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;
443
511
  * @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;
444
512
  * @param {*} [options] Override http request option.
445
513
  * @throws {RequiredError}
@@ -458,6 +526,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
458
526
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
459
527
  const localVarFp = UsersApiFp(configuration)
460
528
  return {
529
+ /**
530
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
531
+ * @param {number} id
532
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
533
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @param {*} [options] Override http request option.
535
+ * @deprecated
536
+ * @throws {RequiredError}
537
+ */
538
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
539
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
540
+ },
461
541
  /**
462
542
  *
463
543
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -519,7 +599,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
519
599
  * @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;
520
600
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
521
601
  * @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;
522
- * @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;
602
+ * @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;
523
603
  * @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;
524
604
  * @param {*} [options] Override http request option.
525
605
  * @throws {RequiredError}
@@ -530,6 +610,34 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
530
610
  };
531
611
  };
532
612
 
613
+ /**
614
+ * Request parameters for assignUserRoles operation in UsersApi.
615
+ * @export
616
+ * @interface UsersApiAssignUserRolesRequest
617
+ */
618
+ export interface UsersApiAssignUserRolesRequest {
619
+ /**
620
+ *
621
+ * @type {number}
622
+ * @memberof UsersApiAssignUserRoles
623
+ */
624
+ readonly id: number
625
+
626
+ /**
627
+ *
628
+ * @type {AssignUserRolesRequestDto}
629
+ * @memberof UsersApiAssignUserRoles
630
+ */
631
+ readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
632
+
633
+ /**
634
+ * Bearer Token: provided by the login endpoint under the name accessToken.
635
+ * @type {string}
636
+ * @memberof UsersApiAssignUserRoles
637
+ */
638
+ readonly authorization?: string
639
+ }
640
+
533
641
  /**
534
642
  * Request parameters for deleteUsers operation in UsersApi.
535
643
  * @export
@@ -698,7 +806,7 @@ export interface UsersApiListUsersRequest {
698
806
  readonly order?: string
699
807
 
700
808
  /**
701
- * 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;
809
+ * 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;
702
810
  * @type {string}
703
811
  * @memberof UsersApiListUsers
704
812
  */
@@ -719,6 +827,18 @@ export interface UsersApiListUsersRequest {
719
827
  * @extends {BaseAPI}
720
828
  */
721
829
  export class UsersApi extends BaseAPI {
830
+ /**
831
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
832
+ * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @deprecated
835
+ * @throws {RequiredError}
836
+ * @memberof UsersApi
837
+ */
838
+ public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
839
+ return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
840
+ }
841
+
722
842
  /**
723
843
  *
724
844
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.