@emilgroup/tenant-sdk-node 1.21.0 → 1.22.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 (88) hide show
  1. package/.openapi-generator/FILES +6 -12
  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/{default-api.ts → health-check-api.ts} +21 -17
  6. package/api/invite-organizations-api.ts +15 -15
  7. package/api/invite-users-api.ts +34 -137
  8. package/api/roles-api.ts +4 -0
  9. package/api/users-api.ts +18 -447
  10. package/api.ts +2 -2
  11. package/dist/api/dashboard-api.d.ts +52 -0
  12. package/dist/api/dashboard-api.js +88 -0
  13. package/dist/api/data-report-api.d.ts +0 -51
  14. package/dist/api/data-report-api.js +0 -88
  15. package/dist/api/health-check-api.d.ts +70 -0
  16. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  17. package/dist/api/invite-organizations-api.d.ts +9 -9
  18. package/dist/api/invite-organizations-api.js +12 -12
  19. package/dist/api/invite-users-api.d.ts +22 -78
  20. package/dist/api/invite-users-api.js +27 -119
  21. package/dist/api/roles-api.d.ts +4 -0
  22. package/dist/api/roles-api.js +4 -0
  23. package/dist/api/users-api.d.ts +15 -242
  24. package/dist/api/users-api.js +15 -382
  25. package/dist/api.d.ts +1 -1
  26. package/dist/api.js +1 -1
  27. package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
  28. package/dist/models/custom-schema-class.d.ts +12 -0
  29. package/dist/models/data-report-class.d.ts +12 -0
  30. package/dist/models/data-report-filter-class.d.ts +12 -0
  31. package/dist/models/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -7
  32. package/dist/models/index.d.ts +5 -11
  33. package/dist/models/index.js +5 -11
  34. package/dist/models/invite-class.d.ts +12 -0
  35. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  36. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  37. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  38. package/dist/models/org-invitation-class.d.ts +12 -0
  39. package/dist/models/organization-class.d.ts +12 -0
  40. package/dist/models/permission-class.d.ts +12 -0
  41. package/dist/models/role-class.d.ts +12 -0
  42. package/dist/models/subscription-class.d.ts +12 -0
  43. package/dist/models/user-class.d.ts +12 -0
  44. package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
  45. package/models/custom-schema-class.ts +12 -0
  46. package/models/data-report-class.ts +12 -0
  47. package/models/data-report-filter-class.ts +12 -0
  48. package/models/{enable-user-response-class.ts → get-embedded-url-response-class.ts} +6 -7
  49. package/models/index.ts +5 -11
  50. package/models/invite-class.ts +12 -0
  51. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  52. package/models/invite-user-request-dto-rest.ts +55 -0
  53. package/models/invite-users-request-dto-rest.ts +55 -0
  54. package/models/org-invitation-class.ts +12 -0
  55. package/models/organization-class.ts +12 -0
  56. package/models/permission-class.ts +12 -0
  57. package/models/role-class.ts +12 -0
  58. package/models/subscription-class.ts +12 -0
  59. package/models/user-class.ts +12 -0
  60. package/package.json +1 -1
  61. package/dist/api/default-api.d.ts +0 -66
  62. package/dist/models/assign-user-roles-response-class.d.ts +0 -25
  63. package/dist/models/create-permission-request-dto.d.ts +0 -42
  64. package/dist/models/create-role-request-dto.d.ts +0 -36
  65. package/dist/models/disable-user-response-class.d.ts +0 -25
  66. package/dist/models/enable-user-response-class.js +0 -15
  67. package/dist/models/invite-org-request-dto.js +0 -15
  68. package/dist/models/invite-user-request-dto.d.ts +0 -43
  69. package/dist/models/invite-user-request-dto.js +0 -15
  70. package/dist/models/invite-users-request-dto.d.ts +0 -36
  71. package/dist/models/invite-users-request-dto.js +0 -15
  72. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  73. package/dist/models/partner-invitation-data-dto.js +0 -15
  74. package/dist/models/update-role-request-dto.d.ts +0 -42
  75. package/dist/models/update-role-request-dto.js +0 -15
  76. package/models/assign-user-roles-response-class.ts +0 -31
  77. package/models/create-permission-request-dto.ts +0 -48
  78. package/models/create-role-request-dto.ts +0 -42
  79. package/models/disable-user-response-class.ts +0 -31
  80. package/models/invite-user-request-dto.ts +0 -49
  81. package/models/invite-users-request-dto.ts +0 -42
  82. package/models/partner-invitation-data-dto.ts +0 -42
  83. package/models/update-role-request-dto.ts +0 -48
  84. /package/dist/models/{assign-user-roles-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
  85. /package/dist/models/{assign-user-roles-response-class.js → get-embedded-url-response-class.js} +0 -0
  86. /package/dist/models/{create-permission-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  87. /package/dist/models/{create-role-request-dto.js → invite-user-request-dto-rest.js} +0 -0
  88. /package/dist/models/{disable-user-response-class.js → invite-users-request-dto-rest.js} +0 -0
package/api/users-api.ts CHANGED
@@ -21,24 +21,14 @@ 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
28
24
  import { BatchDeleteRequestDto } from '../models';
29
25
  // @ts-ignore
30
26
  import { BatchDeleteResponseClass } from '../models';
31
27
  // @ts-ignore
32
- import { DeleteResponseClass } from '../models';
33
- // @ts-ignore
34
- import { DisableUserResponseClass } from '../models';
35
- // @ts-ignore
36
28
  import { DisableUsersRequestDto } from '../models';
37
29
  // @ts-ignore
38
30
  import { DisableUsersResponseClass } from '../models';
39
31
  // @ts-ignore
40
- import { EnableUserResponseClass } from '../models';
41
- // @ts-ignore
42
32
  import { EnableUsersRequestDto } from '../models';
43
33
  // @ts-ignore
44
34
  import { EnableUsersResponseClass } from '../models';
@@ -60,100 +50,6 @@ const FormData = require('form-data');
60
50
  */
61
51
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
62
52
  return {
63
- /**
64
- *
65
- * @param {number} id
66
- * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
67
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
68
- * @param {*} [options] Override http request option.
69
- * @throws {RequiredError}
70
- */
71
- assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
72
- // verify required parameter 'id' is not null or undefined
73
- assertParamExists('assignUserRoles', 'id', id)
74
- // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
75
- assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
76
- const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
77
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
78
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
- let baseOptions;
81
- let baseAccessToken;
82
- if (configuration) {
83
- baseOptions = configuration.baseOptions;
84
- baseAccessToken = configuration.accessToken;
85
- }
86
-
87
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
88
- const localVarHeaderParameter = {} as any;
89
- const localVarQueryParameter = {} as any;
90
-
91
- // authentication bearer required
92
- // http bearer authentication required
93
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
94
-
95
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
96
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
97
- }
98
-
99
-
100
-
101
- localVarHeaderParameter['Content-Type'] = 'application/json';
102
-
103
- setSearchParams(localVarUrlObj, localVarQueryParameter);
104
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
106
- localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
107
-
108
- return {
109
- url: toPathString(localVarUrlObj),
110
- options: localVarRequestOptions,
111
- };
112
- },
113
- /**
114
- *
115
- * @param {number} id
116
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
121
- // verify required parameter 'id' is not null or undefined
122
- assertParamExists('deleteUser', 'id', id)
123
- const localVarPath = `/tenantservice/v1/users/{id}`
124
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
125
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
127
- let baseOptions;
128
- let baseAccessToken;
129
- if (configuration) {
130
- baseOptions = configuration.baseOptions;
131
- baseAccessToken = configuration.accessToken;
132
- }
133
-
134
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
135
- const localVarHeaderParameter = {} as any;
136
- const localVarQueryParameter = {} as any;
137
-
138
- // authentication bearer required
139
- // http bearer authentication required
140
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
141
-
142
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
143
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
144
- }
145
-
146
-
147
-
148
- setSearchParams(localVarUrlObj, localVarQueryParameter);
149
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151
-
152
- return {
153
- url: toPathString(localVarUrlObj),
154
- options: localVarRequestOptions,
155
- };
156
- },
157
53
  /**
158
54
  *
159
55
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -200,50 +96,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
200
96
  options: localVarRequestOptions,
201
97
  };
202
98
  },
203
- /**
204
- *
205
- * @param {number} id
206
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
- * @param {*} [options] Override http request option.
208
- * @throws {RequiredError}
209
- */
210
- disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
211
- // verify required parameter 'id' is not null or undefined
212
- assertParamExists('disableUser', 'id', id)
213
- const localVarPath = `/tenantservice/v1/users/{id}/disable`
214
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
215
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
216
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
217
- let baseOptions;
218
- let baseAccessToken;
219
- if (configuration) {
220
- baseOptions = configuration.baseOptions;
221
- baseAccessToken = configuration.accessToken;
222
- }
223
-
224
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
225
- const localVarHeaderParameter = {} as any;
226
- const localVarQueryParameter = {} as any;
227
-
228
- // authentication bearer required
229
- // http bearer authentication required
230
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
231
-
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
- }
235
-
236
-
237
-
238
- setSearchParams(localVarUrlObj, localVarQueryParameter);
239
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
241
-
242
- return {
243
- url: toPathString(localVarUrlObj),
244
- options: localVarRequestOptions,
245
- };
246
- },
247
99
  /**
248
100
  *
249
101
  * @param {DisableUsersRequestDto} disableUsersRequestDto
@@ -290,50 +142,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
290
142
  options: localVarRequestOptions,
291
143
  };
292
144
  },
293
- /**
294
- *
295
- * @param {number} id
296
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
301
- // verify required parameter 'id' is not null or undefined
302
- assertParamExists('enableUser', 'id', id)
303
- const localVarPath = `/tenantservice/v1/users/{id}/enable`
304
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
305
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
- let baseOptions;
308
- let baseAccessToken;
309
- if (configuration) {
310
- baseOptions = configuration.baseOptions;
311
- baseAccessToken = configuration.accessToken;
312
- }
313
-
314
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
315
- const localVarHeaderParameter = {} as any;
316
- const localVarQueryParameter = {} as any;
317
-
318
- // authentication bearer required
319
- // http bearer authentication required
320
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
321
-
322
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
323
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
324
- }
325
-
326
-
327
-
328
- setSearchParams(localVarUrlObj, localVarQueryParameter);
329
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
331
-
332
- return {
333
- url: toPathString(localVarUrlObj),
334
- options: localVarRequestOptions,
335
- };
336
- },
337
145
  /**
338
146
  *
339
147
  * @param {EnableUsersRequestDto} enableUsersRequestDto
@@ -383,17 +191,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
383
191
  /**
384
192
  *
385
193
  * @param {string} code
386
- * @param {string} code2 code
387
194
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
388
195
  * @param {string} [expand] Fields to expand response by
389
196
  * @param {*} [options] Override http request option.
390
197
  * @throws {RequiredError}
391
198
  */
392
- getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ getUser: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
393
200
  // verify required parameter 'code' is not null or undefined
394
201
  assertParamExists('getUser', 'code', code)
395
- // verify required parameter 'code2' is not null or undefined
396
- assertParamExists('getUser', 'code2', code2)
397
202
  const localVarPath = `/tenantservice/v1/users/{code}`
398
203
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
399
204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -413,10 +218,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
413
218
  // http bearer authentication required
414
219
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
415
220
 
416
- if (code2 !== undefined) {
417
- localVarQueryParameter['code'] = code2;
418
- }
419
-
420
221
  if (expand !== undefined) {
421
222
  localVarQueryParameter['expand'] = expand;
422
223
  }
@@ -492,11 +293,11 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
492
293
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
493
294
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
494
295
  * @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.
495
- * @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&lt;/i&gt;
296
+ * @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;
496
297
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
497
298
  * @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;
498
- * @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;
499
- * @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&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: subscriptions, organizations&lt;i&gt;
300
+ * @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;
500
301
  * @param {*} [options] Override http request option.
501
302
  * @throws {RequiredError}
502
303
  */
@@ -572,29 +373,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
572
373
  export const UsersApiFp = function(configuration?: Configuration) {
573
374
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
574
375
  return {
575
- /**
576
- *
577
- * @param {number} id
578
- * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
579
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
580
- * @param {*} [options] Override http request option.
581
- * @throws {RequiredError}
582
- */
583
- async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
584
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
585
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
586
- },
587
- /**
588
- *
589
- * @param {number} id
590
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- */
594
- async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
595
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
596
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
597
- },
598
376
  /**
599
377
  *
600
378
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -606,17 +384,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
606
384
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
607
385
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
608
386
  },
609
- /**
610
- *
611
- * @param {number} id
612
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
617
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
618
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
619
- },
620
387
  /**
621
388
  *
622
389
  * @param {DisableUsersRequestDto} disableUsersRequestDto
@@ -628,17 +395,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
628
395
  const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
629
396
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
630
397
  },
631
- /**
632
- *
633
- * @param {number} id
634
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- */
638
- async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
639
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
640
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
641
- },
642
398
  /**
643
399
  *
644
400
  * @param {EnableUsersRequestDto} enableUsersRequestDto
@@ -653,14 +409,13 @@ export const UsersApiFp = function(configuration?: Configuration) {
653
409
  /**
654
410
  *
655
411
  * @param {string} code
656
- * @param {string} code2 code
657
412
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
658
413
  * @param {string} [expand] Fields to expand response by
659
414
  * @param {*} [options] Override http request option.
660
415
  * @throws {RequiredError}
661
416
  */
662
- async getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
663
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
417
+ async getUser(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, authorization, expand, options);
664
419
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
665
420
  },
666
421
  /**
@@ -681,11 +436,11 @@ export const UsersApiFp = function(configuration?: Configuration) {
681
436
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
682
437
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
683
438
  * @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.
684
- * @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&lt;/i&gt;
439
+ * @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;
685
440
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
686
441
  * @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;
687
- * @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;
688
- * @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&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: subscriptions, organizations&lt;i&gt;
443
+ * @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;
689
444
  * @param {*} [options] Override http request option.
690
445
  * @throws {RequiredError}
691
446
  */
@@ -703,27 +458,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
703
458
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
704
459
  const localVarFp = UsersApiFp(configuration)
705
460
  return {
706
- /**
707
- *
708
- * @param {number} id
709
- * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
710
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
711
- * @param {*} [options] Override http request option.
712
- * @throws {RequiredError}
713
- */
714
- assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
715
- return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
716
- },
717
- /**
718
- *
719
- * @param {number} id
720
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
- * @param {*} [options] Override http request option.
722
- * @throws {RequiredError}
723
- */
724
- deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
725
- return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
726
- },
727
461
  /**
728
462
  *
729
463
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
@@ -734,16 +468,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
734
468
  deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
735
469
  return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
736
470
  },
737
- /**
738
- *
739
- * @param {number} id
740
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
741
- * @param {*} [options] Override http request option.
742
- * @throws {RequiredError}
743
- */
744
- disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
745
- return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
746
- },
747
471
  /**
748
472
  *
749
473
  * @param {DisableUsersRequestDto} disableUsersRequestDto
@@ -754,16 +478,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
754
478
  disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
755
479
  return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
756
480
  },
757
- /**
758
- *
759
- * @param {number} id
760
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
761
- * @param {*} [options] Override http request option.
762
- * @throws {RequiredError}
763
- */
764
- enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
765
- return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
766
- },
767
481
  /**
768
482
  *
769
483
  * @param {EnableUsersRequestDto} enableUsersRequestDto
@@ -777,14 +491,13 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
777
491
  /**
778
492
  *
779
493
  * @param {string} code
780
- * @param {string} code2 code
781
494
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
782
495
  * @param {string} [expand] Fields to expand response by
783
496
  * @param {*} [options] Override http request option.
784
497
  * @throws {RequiredError}
785
498
  */
786
- getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
787
- return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
499
+ getUser(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
500
+ return localVarFp.getUser(code, authorization, expand, options).then((request) => request(axios, basePath));
788
501
  },
789
502
  /**
790
503
  *
@@ -803,11 +516,11 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
803
516
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
804
517
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
805
518
  * @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.
806
- * @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&lt;/i&gt;
519
+ * @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;
807
520
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
808
521
  * @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;
809
- * @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;
810
- * @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&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: subscriptions, organizations&lt;i&gt;
523
+ * @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;
811
524
  * @param {*} [options] Override http request option.
812
525
  * @throws {RequiredError}
813
526
  */
@@ -817,55 +530,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
817
530
  };
818
531
  };
819
532
 
820
- /**
821
- * Request parameters for assignUserRoles operation in UsersApi.
822
- * @export
823
- * @interface UsersApiAssignUserRolesRequest
824
- */
825
- export interface UsersApiAssignUserRolesRequest {
826
- /**
827
- *
828
- * @type {number}
829
- * @memberof UsersApiAssignUserRoles
830
- */
831
- readonly id: number
832
-
833
- /**
834
- *
835
- * @type {AssignUserRolesRequestDto}
836
- * @memberof UsersApiAssignUserRoles
837
- */
838
- readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
839
-
840
- /**
841
- * Bearer Token: provided by the login endpoint under the name accessToken.
842
- * @type {string}
843
- * @memberof UsersApiAssignUserRoles
844
- */
845
- readonly authorization?: string
846
- }
847
-
848
- /**
849
- * Request parameters for deleteUser operation in UsersApi.
850
- * @export
851
- * @interface UsersApiDeleteUserRequest
852
- */
853
- export interface UsersApiDeleteUserRequest {
854
- /**
855
- *
856
- * @type {number}
857
- * @memberof UsersApiDeleteUser
858
- */
859
- readonly id: number
860
-
861
- /**
862
- * Bearer Token: provided by the login endpoint under the name accessToken.
863
- * @type {string}
864
- * @memberof UsersApiDeleteUser
865
- */
866
- readonly authorization?: string
867
- }
868
-
869
533
  /**
870
534
  * Request parameters for deleteUsers operation in UsersApi.
871
535
  * @export
@@ -887,27 +551,6 @@ export interface UsersApiDeleteUsersRequest {
887
551
  readonly authorization?: string
888
552
  }
889
553
 
890
- /**
891
- * Request parameters for disableUser operation in UsersApi.
892
- * @export
893
- * @interface UsersApiDisableUserRequest
894
- */
895
- export interface UsersApiDisableUserRequest {
896
- /**
897
- *
898
- * @type {number}
899
- * @memberof UsersApiDisableUser
900
- */
901
- readonly id: number
902
-
903
- /**
904
- * Bearer Token: provided by the login endpoint under the name accessToken.
905
- * @type {string}
906
- * @memberof UsersApiDisableUser
907
- */
908
- readonly authorization?: string
909
- }
910
-
911
554
  /**
912
555
  * Request parameters for disableUsers operation in UsersApi.
913
556
  * @export
@@ -929,27 +572,6 @@ export interface UsersApiDisableUsersRequest {
929
572
  readonly authorization?: string
930
573
  }
931
574
 
932
- /**
933
- * Request parameters for enableUser operation in UsersApi.
934
- * @export
935
- * @interface UsersApiEnableUserRequest
936
- */
937
- export interface UsersApiEnableUserRequest {
938
- /**
939
- *
940
- * @type {number}
941
- * @memberof UsersApiEnableUser
942
- */
943
- readonly id: number
944
-
945
- /**
946
- * Bearer Token: provided by the login endpoint under the name accessToken.
947
- * @type {string}
948
- * @memberof UsersApiEnableUser
949
- */
950
- readonly authorization?: string
951
- }
952
-
953
575
  /**
954
576
  * Request parameters for enableUsers operation in UsersApi.
955
577
  * @export
@@ -984,13 +606,6 @@ export interface UsersApiGetUserRequest {
984
606
  */
985
607
  readonly code: string
986
608
 
987
- /**
988
- * code
989
- * @type {string}
990
- * @memberof UsersApiGetUser
991
- */
992
- readonly code2: string
993
-
994
609
  /**
995
610
  * Bearer Token: provided by the login endpoint under the name accessToken.
996
611
  * @type {string}
@@ -1062,7 +677,7 @@ export interface UsersApiListUsersRequest {
1062
677
  readonly pageToken?: any
1063
678
 
1064
679
  /**
1065
- * 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&lt;/i&gt;
680
+ * 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;
1066
681
  * @type {string}
1067
682
  * @memberof UsersApiListUsers
1068
683
  */
@@ -1083,14 +698,14 @@ export interface UsersApiListUsersRequest {
1083
698
  readonly order?: string
1084
699
 
1085
700
  /**
1086
- * 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;
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: subscriptions, organizations&lt;i&gt;
1087
702
  * @type {string}
1088
703
  * @memberof UsersApiListUsers
1089
704
  */
1090
705
  readonly expand?: string
1091
706
 
1092
707
  /**
1093
- * 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&lt;/i&gt;
708
+ * 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;
1094
709
  * @type {string}
1095
710
  * @memberof UsersApiListUsers
1096
711
  */
@@ -1104,28 +719,6 @@ export interface UsersApiListUsersRequest {
1104
719
  * @extends {BaseAPI}
1105
720
  */
1106
721
  export class UsersApi extends BaseAPI {
1107
- /**
1108
- *
1109
- * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
1110
- * @param {*} [options] Override http request option.
1111
- * @throws {RequiredError}
1112
- * @memberof UsersApi
1113
- */
1114
- public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1115
- return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1116
- }
1117
-
1118
- /**
1119
- *
1120
- * @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
1121
- * @param {*} [options] Override http request option.
1122
- * @throws {RequiredError}
1123
- * @memberof UsersApi
1124
- */
1125
- public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
1126
- return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1127
- }
1128
-
1129
722
  /**
1130
723
  *
1131
724
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
@@ -1137,17 +730,6 @@ export class UsersApi extends BaseAPI {
1137
730
  return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1138
731
  }
1139
732
 
1140
- /**
1141
- *
1142
- * @param {UsersApiDisableUserRequest} requestParameters Request parameters.
1143
- * @param {*} [options] Override http request option.
1144
- * @throws {RequiredError}
1145
- * @memberof UsersApi
1146
- */
1147
- public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
1148
- return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1149
- }
1150
-
1151
733
  /**
1152
734
  *
1153
735
  * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
@@ -1159,17 +741,6 @@ export class UsersApi extends BaseAPI {
1159
741
  return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1160
742
  }
1161
743
 
1162
- /**
1163
- *
1164
- * @param {UsersApiEnableUserRequest} requestParameters Request parameters.
1165
- * @param {*} [options] Override http request option.
1166
- * @throws {RequiredError}
1167
- * @memberof UsersApi
1168
- */
1169
- public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
1170
- return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1171
- }
1172
-
1173
744
  /**
1174
745
  *
1175
746
  * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
@@ -1189,7 +760,7 @@ export class UsersApi extends BaseAPI {
1189
760
  * @memberof UsersApi
1190
761
  */
1191
762
  public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
1192
- return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
763
+ return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1193
764
  }
1194
765
 
1195
766
  /**