@emilgroup/tenant-sdk-node 1.22.0 → 1.22.1-beta.1

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 (65) hide show
  1. package/.openapi-generator/FILES +5 -11
  2. package/README.md +2 -2
  3. package/api/dashboard-api.ts +99 -0
  4. package/api/data-report-api.ts +0 -97
  5. package/api/invite-organizations-api.ts +15 -15
  6. package/api/invite-users-api.ts +42 -145
  7. package/api/roles-api.ts +4 -0
  8. package/api/users-api.ts +18 -447
  9. package/dist/api/dashboard-api.d.ts +52 -0
  10. package/dist/api/dashboard-api.js +88 -0
  11. package/dist/api/data-report-api.d.ts +0 -51
  12. package/dist/api/data-report-api.js +0 -88
  13. package/dist/api/invite-organizations-api.d.ts +9 -9
  14. package/dist/api/invite-organizations-api.js +12 -12
  15. package/dist/api/invite-users-api.d.ts +30 -86
  16. package/dist/api/invite-users-api.js +33 -125
  17. package/dist/api/roles-api.d.ts +4 -0
  18. package/dist/api/roles-api.js +4 -0
  19. package/dist/api/users-api.d.ts +15 -242
  20. package/dist/api/users-api.js +15 -382
  21. package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
  22. package/dist/models/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -7
  23. package/dist/models/index.d.ts +5 -11
  24. package/dist/models/index.js +5 -11
  25. package/dist/models/invite-class.d.ts +12 -12
  26. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  27. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  28. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  29. package/dist/models/user-class.d.ts +8 -8
  30. package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
  31. package/models/{enable-user-response-class.ts → get-embedded-url-response-class.ts} +6 -7
  32. package/models/index.ts +5 -11
  33. package/models/invite-class.ts +12 -12
  34. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  35. package/models/invite-user-request-dto-rest.ts +55 -0
  36. package/models/invite-users-request-dto-rest.ts +55 -0
  37. package/models/user-class.ts +8 -8
  38. package/package.json +1 -1
  39. package/dist/models/assign-user-roles-response-class.d.ts +0 -25
  40. package/dist/models/create-permission-request-dto.d.ts +0 -42
  41. package/dist/models/create-role-request-dto.d.ts +0 -36
  42. package/dist/models/disable-user-response-class.d.ts +0 -25
  43. package/dist/models/enable-user-response-class.js +0 -15
  44. package/dist/models/invite-org-request-dto.js +0 -15
  45. package/dist/models/invite-user-request-dto.d.ts +0 -43
  46. package/dist/models/invite-user-request-dto.js +0 -15
  47. package/dist/models/invite-users-request-dto.d.ts +0 -36
  48. package/dist/models/invite-users-request-dto.js +0 -15
  49. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  50. package/dist/models/partner-invitation-data-dto.js +0 -15
  51. package/dist/models/update-role-request-dto.d.ts +0 -42
  52. package/dist/models/update-role-request-dto.js +0 -15
  53. package/models/assign-user-roles-response-class.ts +0 -31
  54. package/models/create-permission-request-dto.ts +0 -48
  55. package/models/create-role-request-dto.ts +0 -42
  56. package/models/disable-user-response-class.ts +0 -31
  57. package/models/invite-user-request-dto.ts +0 -49
  58. package/models/invite-users-request-dto.ts +0 -42
  59. package/models/partner-invitation-data-dto.ts +0 -42
  60. package/models/update-role-request-dto.ts +0 -48
  61. /package/dist/models/{assign-user-roles-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
  62. /package/dist/models/{assign-user-roles-response-class.js → get-embedded-url-response-class.js} +0 -0
  63. /package/dist/models/{create-permission-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  64. /package/dist/models/{create-role-request-dto.js → invite-user-request-dto-rest.js} +0 -0
  65. /package/dist/models/{disable-user-response-class.js → invite-users-request-dto-rest.js} +0 -0
@@ -25,13 +25,11 @@ import { BatchDeleteRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { BatchDeleteResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { DeleteResponseClass } from '../models';
29
- // @ts-ignore
30
- import { InviteUserRequestDto } from '../models';
28
+ import { InviteUserRequestDtoRest } from '../models';
31
29
  // @ts-ignore
32
30
  import { InviteUserResponseClass } from '../models';
33
31
  // @ts-ignore
34
- import { InviteUsersRequestDto } from '../models';
32
+ import { InviteUsersRequestDtoRest } from '../models';
35
33
  // @ts-ignore
36
34
  import { InviteUsersResponseClass } from '../models';
37
35
  // @ts-ignore
@@ -46,51 +44,6 @@ const FormData = require('form-data');
46
44
  */
47
45
  export const InviteUsersApiAxiosParamCreator = function (configuration?: Configuration) {
48
46
  return {
49
- /**
50
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
51
- * @summary Delete the invited user
52
- * @param {number} id
53
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
- * @param {*} [options] Override http request option.
55
- * @throws {RequiredError}
56
- */
57
- deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
- // verify required parameter 'id' is not null or undefined
59
- assertParamExists('deleteInvite', 'id', id)
60
- const localVarPath = `/tenantservice/v1/users/invites/{id}`
61
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
62
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
- let baseOptions;
65
- let baseAccessToken;
66
- if (configuration) {
67
- baseOptions = configuration.baseOptions;
68
- baseAccessToken = configuration.accessToken;
69
- }
70
-
71
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
72
- const localVarHeaderParameter = {} as any;
73
- const localVarQueryParameter = {} as any;
74
-
75
- // authentication bearer required
76
- // http bearer authentication required
77
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
-
79
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
- }
82
-
83
-
84
-
85
- setSearchParams(localVarUrlObj, localVarQueryParameter);
86
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
-
89
- return {
90
- url: toPathString(localVarUrlObj),
91
- options: localVarRequestOptions,
92
- };
93
- },
94
47
  /**
95
48
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
96
49
  * @summary Delete invited users.
@@ -141,14 +94,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
141
94
  /**
142
95
  * This send an email to invite a user with the specific role/roles.
143
96
  * @summary Invite a user
144
- * @param {InviteUserRequestDto} inviteUserRequestDto
97
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
145
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
99
  * @param {*} [options] Override http request option.
147
100
  * @throws {RequiredError}
148
101
  */
149
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
- // verify required parameter 'inviteUserRequestDto' is not null or undefined
151
- 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)
152
105
  const localVarPath = `/tenantservice/v1/users/invites`;
153
106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
107
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -178,7 +131,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
178
131
  setSearchParams(localVarUrlObj, localVarQueryParameter);
179
132
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
133
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
134
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
182
135
 
183
136
  return {
184
137
  url: toPathString(localVarUrlObj),
@@ -188,14 +141,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
188
141
  /**
189
142
  * This send bulk emails to invite users with the specific role/roles.
190
143
  * @summary Invite batch of users
191
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
144
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
192
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
146
  * @param {*} [options] Override http request option.
194
147
  * @throws {RequiredError}
195
148
  */
196
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
- // verify required parameter 'inviteUsersRequestDto' is not null or undefined
198
- 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)
199
152
  const localVarPath = `/tenantservice/v1/users/invites/batch`;
200
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
154
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -225,7 +178,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
225
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
226
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
227
180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
228
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
181
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
229
182
 
230
183
  return {
231
184
  url: toPathString(localVarUrlObj),
@@ -238,11 +191,11 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
238
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
239
192
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
240
193
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
241
- * @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&lt;/i&gt;
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;
242
195
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
243
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;
244
- * @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;
245
- * @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&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
+ * @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;
246
199
  * @param {*} [options] Override http request option.
247
200
  * @throws {RequiredError}
248
201
  */
@@ -318,18 +271,6 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
318
271
  export const InviteUsersApiFp = function(configuration?: Configuration) {
319
272
  const localVarAxiosParamCreator = InviteUsersApiAxiosParamCreator(configuration)
320
273
  return {
321
- /**
322
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
323
- * @summary Delete the invited user
324
- * @param {number} id
325
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
- * @param {*} [options] Override http request option.
327
- * @throws {RequiredError}
328
- */
329
- async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
330
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
331
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
332
- },
333
274
  /**
334
275
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
335
276
  * @summary Delete invited users.
@@ -345,25 +286,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
345
286
  /**
346
287
  * This send an email to invite a user with the specific role/roles.
347
288
  * @summary Invite a user
348
- * @param {InviteUserRequestDto} inviteUserRequestDto
289
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
349
290
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
350
291
  * @param {*} [options] Override http request option.
351
292
  * @throws {RequiredError}
352
293
  */
353
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
354
- 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);
355
296
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
297
  },
357
298
  /**
358
299
  * This send bulk emails to invite users with the specific role/roles.
359
300
  * @summary Invite batch of users
360
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
301
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
361
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
362
303
  * @param {*} [options] Override http request option.
363
304
  * @throws {RequiredError}
364
305
  */
365
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
366
- 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);
367
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
309
  },
369
310
  /**
@@ -372,11 +313,11 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
372
313
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
314
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
374
315
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
375
- * @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&lt;/i&gt;
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;
376
317
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
377
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;
378
- * @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;
379
- * @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&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
+ * @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;
380
321
  * @param {*} [options] Override http request option.
381
322
  * @throws {RequiredError}
382
323
  */
@@ -394,17 +335,6 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
394
335
  export const InviteUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
395
336
  const localVarFp = InviteUsersApiFp(configuration)
396
337
  return {
397
- /**
398
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
399
- * @summary Delete the invited user
400
- * @param {number} id
401
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
- * @param {*} [options] Override http request option.
403
- * @throws {RequiredError}
404
- */
405
- deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
406
- return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
407
- },
408
338
  /**
409
339
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
410
340
  * @summary Delete invited users.
@@ -419,24 +349,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
419
349
  /**
420
350
  * This send an email to invite a user with the specific role/roles.
421
351
  * @summary Invite a user
422
- * @param {InviteUserRequestDto} inviteUserRequestDto
352
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
423
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
354
  * @param {*} [options] Override http request option.
425
355
  * @throws {RequiredError}
426
356
  */
427
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
428
- 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));
429
359
  },
430
360
  /**
431
361
  * This send bulk emails to invite users with the specific role/roles.
432
362
  * @summary Invite batch of users
433
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
363
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
434
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
435
365
  * @param {*} [options] Override http request option.
436
366
  * @throws {RequiredError}
437
367
  */
438
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
439
- 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));
440
370
  },
441
371
  /**
442
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.
@@ -444,11 +374,11 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
444
374
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
375
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
376
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
447
- * @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&lt;/i&gt;
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;
448
378
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
449
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;
450
- * @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;
451
- * @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&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
+ * @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;
452
382
  * @param {*} [options] Override http request option.
453
383
  * @throws {RequiredError}
454
384
  */
@@ -458,27 +388,6 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
458
388
  };
459
389
  };
460
390
 
461
- /**
462
- * Request parameters for deleteInvite operation in InviteUsersApi.
463
- * @export
464
- * @interface InviteUsersApiDeleteInviteRequest
465
- */
466
- export interface InviteUsersApiDeleteInviteRequest {
467
- /**
468
- *
469
- * @type {number}
470
- * @memberof InviteUsersApiDeleteInvite
471
- */
472
- readonly id: number
473
-
474
- /**
475
- * Bearer Token: provided by the login endpoint under the name accessToken.
476
- * @type {string}
477
- * @memberof InviteUsersApiDeleteInvite
478
- */
479
- readonly authorization?: string
480
- }
481
-
482
391
  /**
483
392
  * Request parameters for deleteInvites operation in InviteUsersApi.
484
393
  * @export
@@ -508,10 +417,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
508
417
  export interface InviteUsersApiInviteUserRequest {
509
418
  /**
510
419
  *
511
- * @type {InviteUserRequestDto}
420
+ * @type {InviteUserRequestDtoRest}
512
421
  * @memberof InviteUsersApiInviteUser
513
422
  */
514
- readonly inviteUserRequestDto: InviteUserRequestDto
423
+ readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
515
424
 
516
425
  /**
517
426
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -529,10 +438,10 @@ export interface InviteUsersApiInviteUserRequest {
529
438
  export interface InviteUsersApiInviteUsersRequest {
530
439
  /**
531
440
  *
532
- * @type {InviteUsersRequestDto}
441
+ * @type {InviteUsersRequestDtoRest}
533
442
  * @memberof InviteUsersApiInviteUsers
534
443
  */
535
- readonly inviteUsersRequestDto: InviteUsersRequestDto
444
+ readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
536
445
 
537
446
  /**
538
447
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -570,7 +479,7 @@ export interface InviteUsersApiListInvitesRequest {
570
479
  readonly pageToken?: any
571
480
 
572
481
  /**
573
- * 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&lt;/i&gt;
482
+ * 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;
574
483
  * @type {string}
575
484
  * @memberof InviteUsersApiListInvites
576
485
  */
@@ -591,14 +500,14 @@ export interface InviteUsersApiListInvitesRequest {
591
500
  readonly order?: string
592
501
 
593
502
  /**
594
- * 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;
595
504
  * @type {string}
596
505
  * @memberof InviteUsersApiListInvites
597
506
  */
598
507
  readonly expand?: string
599
508
 
600
509
  /**
601
- * 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&lt;/i&gt;
510
+ * 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;
602
511
  * @type {string}
603
512
  * @memberof InviteUsersApiListInvites
604
513
  */
@@ -612,18 +521,6 @@ export interface InviteUsersApiListInvitesRequest {
612
521
  * @extends {BaseAPI}
613
522
  */
614
523
  export class InviteUsersApi extends BaseAPI {
615
- /**
616
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
617
- * @summary Delete the invited user
618
- * @param {InviteUsersApiDeleteInviteRequest} requestParameters Request parameters.
619
- * @param {*} [options] Override http request option.
620
- * @throws {RequiredError}
621
- * @memberof InviteUsersApi
622
- */
623
- public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
624
- return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
625
- }
626
-
627
524
  /**
628
525
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
629
526
  * @summary Delete invited users.
@@ -645,7 +542,7 @@ export class InviteUsersApi extends BaseAPI {
645
542
  * @memberof InviteUsersApi
646
543
  */
647
544
  public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
648
- 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));
649
546
  }
650
547
 
651
548
  /**
@@ -657,7 +554,7 @@ export class InviteUsersApi extends BaseAPI {
657
554
  * @memberof InviteUsersApi
658
555
  */
659
556
  public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
660
- 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));
661
558
  }
662
559
 
663
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
  */