@emilgroup/tenant-sdk-node 1.0.2 → 1.1.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 (47) hide show
  1. package/README.md +2 -2
  2. package/api/custom-schema-api.ts +16 -16
  3. package/api/data-report-api.ts +20 -20
  4. package/api/data-report-executor-api.ts +4 -4
  5. package/api/invite-organizations-api.ts +8 -8
  6. package/api/invite-users-api.ts +20 -20
  7. package/api/organizations-api.ts +124 -8
  8. package/api/users-api.ts +36 -36
  9. package/base.ts +3 -3
  10. package/dist/api/custom-schema-api.d.ts +16 -16
  11. package/dist/api/custom-schema-api.js +12 -12
  12. package/dist/api/data-report-api.d.ts +20 -20
  13. package/dist/api/data-report-api.js +15 -15
  14. package/dist/api/data-report-executor-api.d.ts +4 -4
  15. package/dist/api/data-report-executor-api.js +3 -3
  16. package/dist/api/invite-organizations-api.d.ts +8 -8
  17. package/dist/api/invite-organizations-api.js +6 -6
  18. package/dist/api/invite-users-api.d.ts +20 -20
  19. package/dist/api/invite-users-api.js +15 -15
  20. package/dist/api/organizations-api.d.ts +72 -8
  21. package/dist/api/organizations-api.js +105 -6
  22. package/dist/api/users-api.d.ts +36 -36
  23. package/dist/api/users-api.js +27 -27
  24. package/dist/base.d.ts +1 -1
  25. package/dist/base.js +3 -3
  26. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  27. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  28. package/dist/models/create-custom-schema-request-dto.js +2 -1
  29. package/dist/models/invite-org-request-dto.d.ts +2 -14
  30. package/dist/models/invite-org-request-dto.js +0 -6
  31. package/dist/models/invite-user-request-dto.d.ts +2 -2
  32. package/dist/models/invite-users-request-dto.d.ts +2 -2
  33. package/dist/models/org-invitation-class.d.ts +0 -12
  34. package/dist/models/org-invitation-class.js +0 -6
  35. package/dist/models/organization-class.d.ts +6 -12
  36. package/dist/models/organization-class.js +0 -6
  37. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  38. package/dist/models/update-custom-schema-request-dto.js +2 -1
  39. package/models/assign-user-roles-request-dto.ts +2 -2
  40. package/models/create-custom-schema-request-dto.ts +2 -1
  41. package/models/invite-org-request-dto.ts +2 -17
  42. package/models/invite-user-request-dto.ts +2 -2
  43. package/models/invite-users-request-dto.ts +2 -2
  44. package/models/org-invitation-class.ts +0 -15
  45. package/models/organization-class.ts +6 -15
  46. package/models/update-custom-schema-request-dto.ts +2 -1
  47. package/package.json +1 -1
@@ -38,7 +38,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
38
38
  * Get Organization by code
39
39
  * @summary Retrieve the Organization
40
40
  * @param {string} code
41
- * @param {string} [authorization] Bearer Token
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
  */
@@ -82,7 +82,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
82
82
  /**
83
83
  * This will fetch list of organizations
84
84
  * @summary List organizations
85
- * @param {string} [authorization] Bearer Token
85
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
86
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
87
87
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
88
88
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -145,6 +145,57 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
145
145
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
146
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
147
 
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ /**
154
+ * Update organization data
155
+ * @summary Update the Organization
156
+ * @param {string} code
157
+ * @param {object} body
158
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ updateOrganization: async (code: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
163
+ // verify required parameter 'code' is not null or undefined
164
+ assertParamExists('updateOrganization', 'code', code)
165
+ // verify required parameter 'body' is not null or undefined
166
+ assertParamExists('updateOrganization', 'body', body)
167
+ const localVarPath = `/tenantservice/v1/organizations/{code}`
168
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ let baseAccessToken;
173
+ if (configuration) {
174
+ baseOptions = configuration.baseOptions;
175
+ baseAccessToken = configuration.accessToken;
176
+ }
177
+
178
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
179
+ const localVarHeaderParameter = {} as any;
180
+ const localVarQueryParameter = {} as any;
181
+
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
185
+
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+
190
+
191
+
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
197
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
198
+
148
199
  return {
149
200
  url: toPathString(localVarUrlObj),
150
201
  options: localVarRequestOptions,
@@ -164,7 +215,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
164
215
  * Get Organization by code
165
216
  * @summary Retrieve the Organization
166
217
  * @param {string} code
167
- * @param {string} [authorization] Bearer Token
218
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
219
  * @param {*} [options] Override http request option.
169
220
  * @throws {RequiredError}
170
221
  */
@@ -175,7 +226,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
175
226
  /**
176
227
  * This will fetch list of organizations
177
228
  * @summary List organizations
178
- * @param {string} [authorization] Bearer Token
229
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
179
230
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
180
231
  * @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.
181
232
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -189,6 +240,19 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
189
240
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options);
190
241
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
191
242
  },
243
+ /**
244
+ * Update organization data
245
+ * @summary Update the Organization
246
+ * @param {string} code
247
+ * @param {object} body
248
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ async updateOrganization(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(code, body, authorization, options);
254
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
255
+ },
192
256
  }
193
257
  };
194
258
 
@@ -203,7 +267,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
203
267
  * Get Organization by code
204
268
  * @summary Retrieve the Organization
205
269
  * @param {string} code
206
- * @param {string} [authorization] Bearer Token
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
271
  * @param {*} [options] Override http request option.
208
272
  * @throws {RequiredError}
209
273
  */
@@ -213,7 +277,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
213
277
  /**
214
278
  * This will fetch list of organizations
215
279
  * @summary List organizations
216
- * @param {string} [authorization] Bearer Token
280
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
281
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
218
282
  * @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.
219
283
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -226,6 +290,18 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
226
290
  listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass> {
227
291
  return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
228
292
  },
293
+ /**
294
+ * Update organization data
295
+ * @summary Update the Organization
296
+ * @param {string} code
297
+ * @param {object} body
298
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ updateOrganization(code: string, body: object, authorization?: string, options?: any): AxiosPromise<object> {
303
+ return localVarFp.updateOrganization(code, body, authorization, options).then((request) => request(axios, basePath));
304
+ },
229
305
  };
230
306
  };
231
307
 
@@ -243,7 +319,7 @@ export interface OrganizationsApiGetOrganizationRequest {
243
319
  readonly code: string
244
320
 
245
321
  /**
246
- * Bearer Token
322
+ * Bearer Token: provided by the login endpoint under the name accessToken.
247
323
  * @type {string}
248
324
  * @memberof OrganizationsApiGetOrganization
249
325
  */
@@ -257,7 +333,7 @@ export interface OrganizationsApiGetOrganizationRequest {
257
333
  */
258
334
  export interface OrganizationsApiListOrganizationsRequest {
259
335
  /**
260
- * Bearer Token
336
+ * Bearer Token: provided by the login endpoint under the name accessToken.
261
337
  * @type {string}
262
338
  * @memberof OrganizationsApiListOrganizations
263
339
  */
@@ -306,6 +382,34 @@ export interface OrganizationsApiListOrganizationsRequest {
306
382
  readonly expand?: any
307
383
  }
308
384
 
385
+ /**
386
+ * Request parameters for updateOrganization operation in OrganizationsApi.
387
+ * @export
388
+ * @interface OrganizationsApiUpdateOrganizationRequest
389
+ */
390
+ export interface OrganizationsApiUpdateOrganizationRequest {
391
+ /**
392
+ *
393
+ * @type {string}
394
+ * @memberof OrganizationsApiUpdateOrganization
395
+ */
396
+ readonly code: string
397
+
398
+ /**
399
+ *
400
+ * @type {object}
401
+ * @memberof OrganizationsApiUpdateOrganization
402
+ */
403
+ readonly body: object
404
+
405
+ /**
406
+ * Bearer Token: provided by the login endpoint under the name accessToken.
407
+ * @type {string}
408
+ * @memberof OrganizationsApiUpdateOrganization
409
+ */
410
+ readonly authorization?: string
411
+ }
412
+
309
413
  /**
310
414
  * OrganizationsApi - object-oriented interface
311
415
  * @export
@@ -336,4 +440,16 @@ export class OrganizationsApi extends BaseAPI {
336
440
  public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest = {}, options?: AxiosRequestConfig) {
337
441
  return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
338
442
  }
443
+
444
+ /**
445
+ * Update organization data
446
+ * @summary Update the Organization
447
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof OrganizationsApi
451
+ */
452
+ public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig) {
453
+ return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
454
+ }
339
455
  }
package/api/users-api.ts CHANGED
@@ -60,7 +60,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
60
60
  *
61
61
  * @param {number} id
62
62
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
- * @param {string} [authorization] Bearer Token
63
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
@@ -109,7 +109,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
109
109
  /**
110
110
  *
111
111
  * @param {number} id
112
- * @param {string} [authorization] Bearer Token
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
@@ -153,7 +153,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
153
153
  /**
154
154
  *
155
155
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
- * @param {string} [authorization] Bearer Token
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
157
  * @param {*} [options] Override http request option.
158
158
  * @throws {RequiredError}
159
159
  */
@@ -199,7 +199,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
199
199
  /**
200
200
  *
201
201
  * @param {number} id
202
- * @param {string} [authorization] Bearer Token
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
203
  * @param {*} [options] Override http request option.
204
204
  * @throws {RequiredError}
205
205
  */
@@ -243,7 +243,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
243
243
  /**
244
244
  *
245
245
  * @param {DisableUsersRequestDto} disableUsersRequestDto
246
- * @param {string} [authorization] Bearer Token
246
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
247
  * @param {*} [options] Override http request option.
248
248
  * @throws {RequiredError}
249
249
  */
@@ -289,7 +289,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
289
289
  /**
290
290
  *
291
291
  * @param {number} id
292
- * @param {string} [authorization] Bearer Token
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
293
  * @param {*} [options] Override http request option.
294
294
  * @throws {RequiredError}
295
295
  */
@@ -333,7 +333,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
333
333
  /**
334
334
  *
335
335
  * @param {EnableUsersRequestDto} enableUsersRequestDto
336
- * @param {string} [authorization] Bearer Token
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
337
  * @param {*} [options] Override http request option.
338
338
  * @throws {RequiredError}
339
339
  */
@@ -380,7 +380,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
380
380
  *
381
381
  * @param {string} code
382
382
  * @param {string} code2 code
383
- * @param {string} [authorization] Bearer Token
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
384
384
  * @param {string} [expand] Fields to expand response by
385
385
  * @param {*} [options] Override http request option.
386
386
  * @throws {RequiredError}
@@ -435,7 +435,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
435
435
  /**
436
436
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
437
437
  * @summary List users
438
- * @param {string} [authorization] Bearer Token
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
439
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
440
440
  * @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.
441
441
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -517,7 +517,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
517
517
  *
518
518
  * @param {number} id
519
519
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
520
- * @param {string} [authorization] Bearer Token
520
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
521
  * @param {*} [options] Override http request option.
522
522
  * @throws {RequiredError}
523
523
  */
@@ -528,7 +528,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
528
528
  /**
529
529
  *
530
530
  * @param {number} id
531
- * @param {string} [authorization] Bearer Token
531
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
532
532
  * @param {*} [options] Override http request option.
533
533
  * @throws {RequiredError}
534
534
  */
@@ -539,7 +539,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
539
539
  /**
540
540
  *
541
541
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
542
- * @param {string} [authorization] Bearer Token
542
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
543
543
  * @param {*} [options] Override http request option.
544
544
  * @throws {RequiredError}
545
545
  */
@@ -550,7 +550,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
550
550
  /**
551
551
  *
552
552
  * @param {number} id
553
- * @param {string} [authorization] Bearer Token
553
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
554
554
  * @param {*} [options] Override http request option.
555
555
  * @throws {RequiredError}
556
556
  */
@@ -561,7 +561,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
561
561
  /**
562
562
  *
563
563
  * @param {DisableUsersRequestDto} disableUsersRequestDto
564
- * @param {string} [authorization] Bearer Token
564
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
565
  * @param {*} [options] Override http request option.
566
566
  * @throws {RequiredError}
567
567
  */
@@ -572,7 +572,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
572
572
  /**
573
573
  *
574
574
  * @param {number} id
575
- * @param {string} [authorization] Bearer Token
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
576
  * @param {*} [options] Override http request option.
577
577
  * @throws {RequiredError}
578
578
  */
@@ -583,7 +583,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
583
583
  /**
584
584
  *
585
585
  * @param {EnableUsersRequestDto} enableUsersRequestDto
586
- * @param {string} [authorization] Bearer Token
586
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
587
587
  * @param {*} [options] Override http request option.
588
588
  * @throws {RequiredError}
589
589
  */
@@ -595,7 +595,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
595
595
  *
596
596
  * @param {string} code
597
597
  * @param {string} code2 code
598
- * @param {string} [authorization] Bearer Token
598
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
599
599
  * @param {string} [expand] Fields to expand response by
600
600
  * @param {*} [options] Override http request option.
601
601
  * @throws {RequiredError}
@@ -607,7 +607,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
607
607
  /**
608
608
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
609
609
  * @summary List users
610
- * @param {string} [authorization] Bearer Token
610
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
611
611
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
612
612
  * @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.
613
613
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -635,7 +635,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
635
635
  *
636
636
  * @param {number} id
637
637
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
638
- * @param {string} [authorization] Bearer Token
638
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
639
639
  * @param {*} [options] Override http request option.
640
640
  * @throws {RequiredError}
641
641
  */
@@ -645,7 +645,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
645
645
  /**
646
646
  *
647
647
  * @param {number} id
648
- * @param {string} [authorization] Bearer Token
648
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
649
649
  * @param {*} [options] Override http request option.
650
650
  * @throws {RequiredError}
651
651
  */
@@ -655,7 +655,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
655
655
  /**
656
656
  *
657
657
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
658
- * @param {string} [authorization] Bearer Token
658
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
659
659
  * @param {*} [options] Override http request option.
660
660
  * @throws {RequiredError}
661
661
  */
@@ -665,7 +665,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
665
665
  /**
666
666
  *
667
667
  * @param {number} id
668
- * @param {string} [authorization] Bearer Token
668
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
669
  * @param {*} [options] Override http request option.
670
670
  * @throws {RequiredError}
671
671
  */
@@ -675,7 +675,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
675
675
  /**
676
676
  *
677
677
  * @param {DisableUsersRequestDto} disableUsersRequestDto
678
- * @param {string} [authorization] Bearer Token
678
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
679
679
  * @param {*} [options] Override http request option.
680
680
  * @throws {RequiredError}
681
681
  */
@@ -685,7 +685,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
685
685
  /**
686
686
  *
687
687
  * @param {number} id
688
- * @param {string} [authorization] Bearer Token
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
689
  * @param {*} [options] Override http request option.
690
690
  * @throws {RequiredError}
691
691
  */
@@ -695,7 +695,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
695
695
  /**
696
696
  *
697
697
  * @param {EnableUsersRequestDto} enableUsersRequestDto
698
- * @param {string} [authorization] Bearer Token
698
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
699
699
  * @param {*} [options] Override http request option.
700
700
  * @throws {RequiredError}
701
701
  */
@@ -706,7 +706,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
706
706
  *
707
707
  * @param {string} code
708
708
  * @param {string} code2 code
709
- * @param {string} [authorization] Bearer Token
709
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
710
710
  * @param {string} [expand] Fields to expand response by
711
711
  * @param {*} [options] Override http request option.
712
712
  * @throws {RequiredError}
@@ -717,7 +717,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
717
717
  /**
718
718
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
719
719
  * @summary List users
720
- * @param {string} [authorization] Bearer Token
720
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
721
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
722
722
  * @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.
723
723
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -754,7 +754,7 @@ export interface UsersApiAssignUserRolesRequest {
754
754
  readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
755
755
 
756
756
  /**
757
- * Bearer Token
757
+ * Bearer Token: provided by the login endpoint under the name accessToken.
758
758
  * @type {string}
759
759
  * @memberof UsersApiAssignUserRoles
760
760
  */
@@ -775,7 +775,7 @@ export interface UsersApiDeleteUserRequest {
775
775
  readonly id: number
776
776
 
777
777
  /**
778
- * Bearer Token
778
+ * Bearer Token: provided by the login endpoint under the name accessToken.
779
779
  * @type {string}
780
780
  * @memberof UsersApiDeleteUser
781
781
  */
@@ -796,7 +796,7 @@ export interface UsersApiDeleteUsersRequest {
796
796
  readonly batchDeleteRequestDto: BatchDeleteRequestDto
797
797
 
798
798
  /**
799
- * Bearer Token
799
+ * Bearer Token: provided by the login endpoint under the name accessToken.
800
800
  * @type {string}
801
801
  * @memberof UsersApiDeleteUsers
802
802
  */
@@ -817,7 +817,7 @@ export interface UsersApiDisableUserRequest {
817
817
  readonly id: number
818
818
 
819
819
  /**
820
- * Bearer Token
820
+ * Bearer Token: provided by the login endpoint under the name accessToken.
821
821
  * @type {string}
822
822
  * @memberof UsersApiDisableUser
823
823
  */
@@ -838,7 +838,7 @@ export interface UsersApiDisableUsersRequest {
838
838
  readonly disableUsersRequestDto: DisableUsersRequestDto
839
839
 
840
840
  /**
841
- * Bearer Token
841
+ * Bearer Token: provided by the login endpoint under the name accessToken.
842
842
  * @type {string}
843
843
  * @memberof UsersApiDisableUsers
844
844
  */
@@ -859,7 +859,7 @@ export interface UsersApiEnableUserRequest {
859
859
  readonly id: number
860
860
 
861
861
  /**
862
- * Bearer Token
862
+ * Bearer Token: provided by the login endpoint under the name accessToken.
863
863
  * @type {string}
864
864
  * @memberof UsersApiEnableUser
865
865
  */
@@ -880,7 +880,7 @@ export interface UsersApiEnableUsersRequest {
880
880
  readonly enableUsersRequestDto: EnableUsersRequestDto
881
881
 
882
882
  /**
883
- * Bearer Token
883
+ * Bearer Token: provided by the login endpoint under the name accessToken.
884
884
  * @type {string}
885
885
  * @memberof UsersApiEnableUsers
886
886
  */
@@ -908,7 +908,7 @@ export interface UsersApiGetUserRequest {
908
908
  readonly code2: string
909
909
 
910
910
  /**
911
- * Bearer Token
911
+ * Bearer Token: provided by the login endpoint under the name accessToken.
912
912
  * @type {string}
913
913
  * @memberof UsersApiGetUser
914
914
  */
@@ -929,7 +929,7 @@ export interface UsersApiGetUserRequest {
929
929
  */
930
930
  export interface UsersApiListUsersRequest {
931
931
  /**
932
- * Bearer Token
932
+ * Bearer Token: provided by the login endpoint under the name accessToken.
933
933
  * @type {string}
934
934
  * @memberof UsersApiListUsers
935
935
  */
package/base.ts CHANGED
@@ -170,7 +170,7 @@ export class BaseAPI {
170
170
  this.configuration.refreshToken = refreshToken;
171
171
  }
172
172
 
173
- async refreshToken(): Promise<string> {
173
+ async refreshTokenInternal(): Promise<string> {
174
174
  const { username, refreshToken } = this.configuration;
175
175
 
176
176
 
@@ -220,7 +220,7 @@ export class BaseAPI {
220
220
  if (err.response.status === 401 && !originalConfig._retry) {
221
221
  originalConfig._retry = true;
222
222
  try {
223
- const tokenString = await this.refreshToken();
223
+ const tokenString = await this.refreshTokenInternal();
224
224
  const accessToken = `Bearer ${tokenString}`;
225
225
 
226
226
  originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
@@ -245,7 +245,7 @@ export class BaseAPI {
245
245
  ){
246
246
  _retry_count++;
247
247
  try {
248
- const tokenString = await this.refreshToken();
248
+ const tokenString = await this.refreshTokenInternal();
249
249
  const accessToken = `Bearer ${tokenString}`;
250
250
 
251
251
  _retry = true;