@emilgroup/tenant-sdk-node 1.28.0 → 1.28.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 (68) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +16 -16
  4. package/api/dashboard-api.ts +226 -24
  5. package/api/dashboard-group-api.ts +20 -20
  6. package/api/data-report-api.ts +16 -16
  7. package/api/data-report-executor-api.ts +4 -4
  8. package/api/delete-organization-invitations-api.ts +4 -4
  9. package/api/invite-organizations-api.ts +4 -4
  10. package/api/invite-users-api.ts +16 -16
  11. package/api/list-organization-invitations-api.ts +4 -4
  12. package/api/organizations-api.ts +12 -12
  13. package/api/re-invite-an-organization-api.ts +4 -4
  14. package/api/roles-api.ts +4 -4
  15. package/api/settings-api.ts +4 -4
  16. package/api/users-api.ts +28 -28
  17. package/base.ts +1 -1
  18. package/common.ts +2 -2
  19. package/configuration.ts +9 -0
  20. package/dist/api/custom-schema-api.d.ts +16 -16
  21. package/dist/api/custom-schema-api.js +16 -16
  22. package/dist/api/dashboard-api.d.ts +128 -24
  23. package/dist/api/dashboard-api.js +202 -24
  24. package/dist/api/dashboard-group-api.d.ts +20 -20
  25. package/dist/api/dashboard-group-api.js +20 -20
  26. package/dist/api/data-report-api.d.ts +16 -16
  27. package/dist/api/data-report-api.js +16 -16
  28. package/dist/api/data-report-executor-api.d.ts +4 -4
  29. package/dist/api/data-report-executor-api.js +4 -4
  30. package/dist/api/delete-organization-invitations-api.d.ts +4 -4
  31. package/dist/api/delete-organization-invitations-api.js +4 -4
  32. package/dist/api/invite-organizations-api.d.ts +4 -4
  33. package/dist/api/invite-organizations-api.js +4 -4
  34. package/dist/api/invite-users-api.d.ts +16 -16
  35. package/dist/api/invite-users-api.js +16 -16
  36. package/dist/api/list-organization-invitations-api.d.ts +4 -4
  37. package/dist/api/list-organization-invitations-api.js +4 -4
  38. package/dist/api/organizations-api.d.ts +12 -12
  39. package/dist/api/organizations-api.js +12 -12
  40. package/dist/api/re-invite-an-organization-api.d.ts +4 -4
  41. package/dist/api/re-invite-an-organization-api.js +4 -4
  42. package/dist/api/roles-api.d.ts +4 -4
  43. package/dist/api/roles-api.js +4 -4
  44. package/dist/api/settings-api.d.ts +4 -4
  45. package/dist/api/settings-api.js +4 -4
  46. package/dist/api/users-api.d.ts +28 -28
  47. package/dist/api/users-api.js +28 -28
  48. package/dist/base.js +1 -1
  49. package/dist/common.js +2 -2
  50. package/dist/configuration.d.ts +6 -0
  51. package/dist/configuration.js +8 -0
  52. package/dist/models/create-tenant-db-config-request-dto.d.ts +30 -0
  53. package/dist/models/create-tenant-db-config-request-dto.js +15 -0
  54. package/dist/models/index.d.ts +3 -0
  55. package/dist/models/index.js +3 -0
  56. package/dist/models/invite-class.d.ts +12 -12
  57. package/dist/models/publish-dashboard-request-dto.d.ts +34 -0
  58. package/dist/models/publish-dashboard-request-dto.js +19 -0
  59. package/dist/models/revert-analysis-request-dto.d.ts +34 -0
  60. package/dist/models/revert-analysis-request-dto.js +19 -0
  61. package/dist/models/user-class.d.ts +8 -8
  62. package/models/create-tenant-db-config-request-dto.ts +36 -0
  63. package/models/index.ts +3 -0
  64. package/models/invite-class.ts +12 -12
  65. package/models/publish-dashboard-request-dto.ts +43 -0
  66. package/models/revert-analysis-request-dto.ts +43 -0
  67. package/models/user-class.ts +8 -8
  68. package/package.json +1 -1
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * Get Organization by code
42
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
43
43
  * @summary Retrieve the Organization
44
44
  * @param {string} code
45
45
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -84,7 +84,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
84
84
  };
85
85
  },
86
86
  /**
87
- * This will fetch list of organizations
87
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
88
88
  * @summary List organizations
89
89
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
90
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -160,7 +160,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
160
160
  };
161
161
  },
162
162
  /**
163
- * Update organization data
163
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
164
164
  * @summary Update the Organization
165
165
  * @param {string} code
166
166
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -221,7 +221,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
221
221
  const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration)
222
222
  return {
223
223
  /**
224
- * Get Organization by code
224
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
225
225
  * @summary Retrieve the Organization
226
226
  * @param {string} code
227
227
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -233,7 +233,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
233
233
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
234
234
  },
235
235
  /**
236
- * This will fetch list of organizations
236
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
237
237
  * @summary List organizations
238
238
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
239
239
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -251,7 +251,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
251
251
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
252
252
  },
253
253
  /**
254
- * Update organization data
254
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
255
255
  * @summary Update the Organization
256
256
  * @param {string} code
257
257
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -274,7 +274,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
274
274
  const localVarFp = OrganizationsApiFp(configuration)
275
275
  return {
276
276
  /**
277
- * Get Organization by code
277
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
278
278
  * @summary Retrieve the Organization
279
279
  * @param {string} code
280
280
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -285,7 +285,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
285
285
  return localVarFp.getOrganization(code, authorization, options).then((request) => request(axios, basePath));
286
286
  },
287
287
  /**
288
- * This will fetch list of organizations
288
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
289
289
  * @summary List organizations
290
290
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
291
291
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -302,7 +302,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
302
302
  return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
303
303
  },
304
304
  /**
305
- * Update organization data
305
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
306
306
  * @summary Update the Organization
307
307
  * @param {string} code
308
308
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -436,7 +436,7 @@ export interface OrganizationsApiUpdateOrganizationRequest {
436
436
  */
437
437
  export class OrganizationsApi extends BaseAPI {
438
438
  /**
439
- * Get Organization by code
439
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
440
440
  * @summary Retrieve the Organization
441
441
  * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
442
442
  * @param {*} [options] Override http request option.
@@ -448,7 +448,7 @@ export class OrganizationsApi extends BaseAPI {
448
448
  }
449
449
 
450
450
  /**
451
- * This will fetch list of organizations
451
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
452
452
  * @summary List organizations
453
453
  * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
454
454
  * @param {*} [options] Override http request option.
@@ -460,7 +460,7 @@ export class OrganizationsApi extends BaseAPI {
460
460
  }
461
461
 
462
462
  /**
463
- * Update organization data
463
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
464
464
  * @summary Update the Organization
465
465
  * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
466
466
  * @param {*} [options] Override http request option.
@@ -35,7 +35,7 @@ const FormData = require('form-data');
35
35
  export const ReInviteAnOrganizationApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * This re-sends an email to invite an organization.
38
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
39
39
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
40
40
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
41
41
  * @param {*} [options] Override http request option.
@@ -91,7 +91,7 @@ export const ReInviteAnOrganizationApiFp = function(configuration?: Configuratio
91
91
  const localVarAxiosParamCreator = ReInviteAnOrganizationApiAxiosParamCreator(configuration)
92
92
  return {
93
93
  /**
94
- * This re-sends an email to invite an organization.
94
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
95
95
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
97
  * @param {*} [options] Override http request option.
@@ -112,7 +112,7 @@ export const ReInviteAnOrganizationApiFactory = function (configuration?: Config
112
112
  const localVarFp = ReInviteAnOrganizationApiFp(configuration)
113
113
  return {
114
114
  /**
115
- * This re-sends an email to invite an organization.
115
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
116
116
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
117
117
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
118
  * @param {*} [options] Override http request option.
@@ -153,7 +153,7 @@ export interface ReInviteAnOrganizationApiReInviteOrganizationRequest {
153
153
  */
154
154
  export class ReInviteAnOrganizationApi extends BaseAPI {
155
155
  /**
156
- * This re-sends an email to invite an organization.
156
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
157
157
  * @param {ReInviteAnOrganizationApiReInviteOrganizationRequest} requestParameters Request parameters.
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
package/api/roles-api.ts CHANGED
@@ -33,7 +33,7 @@ const FormData = require('form-data');
33
33
  export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
34
34
  return {
35
35
  /**
36
- * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
36
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"identity-management.roles.view\"
37
37
  * @summary List roles
38
38
  * @param {string} [authorization] Bearer Token
39
39
  * @param {number} [pageSize] Page size
@@ -115,7 +115,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
115
115
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
116
116
  return {
117
117
  /**
118
- * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
118
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"identity-management.roles.view\"
119
119
  * @summary List roles
120
120
  * @param {string} [authorization] Bearer Token
121
121
  * @param {number} [pageSize] Page size
@@ -143,7 +143,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
143
143
  const localVarFp = RolesApiFp(configuration)
144
144
  return {
145
145
  /**
146
- * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
146
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"identity-management.roles.view\"
147
147
  * @summary List roles
148
148
  * @param {string} [authorization] Bearer Token
149
149
  * @param {number} [pageSize] Page size
@@ -226,7 +226,7 @@ export interface RolesApiListRolesRequest {
226
226
  */
227
227
  export class RolesApi extends BaseAPI {
228
228
  /**
229
- * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
229
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"identity-management.roles.view\"
230
230
  * @summary List roles
231
231
  * @param {RolesApiListRolesRequest} requestParameters Request parameters.
232
232
  * @param {*} [options] Override http request option.
@@ -33,7 +33,7 @@ const FormData = require('form-data');
33
33
  export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
34
34
  return {
35
35
  /**
36
- * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
36
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information. **Required Permissions** \"tenant-management.tenants.view\"
37
37
  * @summary Retrieve the settings
38
38
  * @param {string} keys
39
39
  * @param {string} [authorization] Bearer Token
@@ -91,7 +91,7 @@ export const SettingsApiFp = function(configuration?: Configuration) {
91
91
  const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
92
92
  return {
93
93
  /**
94
- * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
94
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information. **Required Permissions** \"tenant-management.tenants.view\"
95
95
  * @summary Retrieve the settings
96
96
  * @param {string} keys
97
97
  * @param {string} [authorization] Bearer Token
@@ -113,7 +113,7 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
113
113
  const localVarFp = SettingsApiFp(configuration)
114
114
  return {
115
115
  /**
116
- * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
116
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information. **Required Permissions** \"tenant-management.tenants.view\"
117
117
  * @summary Retrieve the settings
118
118
  * @param {string} keys
119
119
  * @param {string} [authorization] Bearer Token
@@ -155,7 +155,7 @@ export interface SettingsApiGetTenantSettingsRequest {
155
155
  */
156
156
  export class SettingsApi extends BaseAPI {
157
157
  /**
158
- * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
158
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information. **Required Permissions** \"tenant-management.tenants.view\"
159
159
  * @summary Retrieve the settings
160
160
  * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
161
161
  * @param {*} [options] Override http request option.
package/api/users-api.ts CHANGED
@@ -55,7 +55,7 @@ const FormData = require('form-data');
55
55
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
56
56
  return {
57
57
  /**
58
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
58
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
59
59
  * @param {number} id
60
60
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
61
61
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -106,7 +106,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
106
106
  };
107
107
  },
108
108
  /**
109
- *
109
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
110
110
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
111
111
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
112
112
  * @param {*} [options] Override http request option.
@@ -152,7 +152,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
152
152
  };
153
153
  },
154
154
  /**
155
- *
155
+ * undefined **Required Permissions** \"tenant-management.users.update\"
156
156
  * @param {DisableUsersRequestDto} disableUsersRequestDto
157
157
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
158
  * @param {*} [options] Override http request option.
@@ -198,7 +198,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
198
198
  };
199
199
  },
200
200
  /**
201
- *
201
+ * undefined **Required Permissions** \"tenant-management.users.update\"
202
202
  * @param {EnableUsersRequestDto} enableUsersRequestDto
203
203
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
204
  * @param {*} [options] Override http request option.
@@ -244,7 +244,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
244
244
  };
245
245
  },
246
246
  /**
247
- *
247
+ * undefined **Required Permissions** \"tenant-management.users.view\"
248
248
  * @param {string} code
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @param {string} [expand] Fields to expand response by
@@ -293,7 +293,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
293
293
  };
294
294
  },
295
295
  /**
296
- *
296
+ * undefined **Required Permissions** \"partner-management.partners.update\"
297
297
  * @param {string} code Unique identifier for the object.
298
298
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
299
299
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -343,7 +343,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
343
343
  };
344
344
  },
345
345
  /**
346
- * 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.
346
+ * 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. **Required Permissions** \"tenant-management.users.view\"
347
347
  * @summary List users
348
348
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
349
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -429,7 +429,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
429
429
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
430
430
  return {
431
431
  /**
432
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
432
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
433
433
  * @param {number} id
434
434
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
435
435
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -442,7 +442,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
442
442
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
443
443
  },
444
444
  /**
445
- *
445
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
446
446
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
447
447
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
448
  * @param {*} [options] Override http request option.
@@ -453,7 +453,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
453
453
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
454
454
  },
455
455
  /**
456
- *
456
+ * undefined **Required Permissions** \"tenant-management.users.update\"
457
457
  * @param {DisableUsersRequestDto} disableUsersRequestDto
458
458
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
459
459
  * @param {*} [options] Override http request option.
@@ -464,7 +464,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
464
464
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
465
465
  },
466
466
  /**
467
- *
467
+ * undefined **Required Permissions** \"tenant-management.users.update\"
468
468
  * @param {EnableUsersRequestDto} enableUsersRequestDto
469
469
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
470
  * @param {*} [options] Override http request option.
@@ -475,7 +475,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
475
475
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
476
  },
477
477
  /**
478
- *
478
+ * undefined **Required Permissions** \"tenant-management.users.view\"
479
479
  * @param {string} code
480
480
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
481
481
  * @param {string} [expand] Fields to expand response by
@@ -487,7 +487,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
487
487
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
488
488
  },
489
489
  /**
490
- *
490
+ * undefined **Required Permissions** \"partner-management.partners.update\"
491
491
  * @param {string} code Unique identifier for the object.
492
492
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
493
493
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -499,7 +499,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
499
499
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
500
500
  },
501
501
  /**
502
- * 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.
502
+ * 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. **Required Permissions** \"tenant-management.users.view\"
503
503
  * @summary List users
504
504
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
505
505
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -527,7 +527,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
527
527
  const localVarFp = UsersApiFp(configuration)
528
528
  return {
529
529
  /**
530
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
530
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
531
531
  * @param {number} id
532
532
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
533
533
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -539,7 +539,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
539
539
  return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
540
540
  },
541
541
  /**
542
- *
542
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
543
543
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
544
544
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
545
  * @param {*} [options] Override http request option.
@@ -549,7 +549,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
549
549
  return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
550
550
  },
551
551
  /**
552
- *
552
+ * undefined **Required Permissions** \"tenant-management.users.update\"
553
553
  * @param {DisableUsersRequestDto} disableUsersRequestDto
554
554
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
555
555
  * @param {*} [options] Override http request option.
@@ -559,7 +559,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
559
559
  return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
560
560
  },
561
561
  /**
562
- *
562
+ * undefined **Required Permissions** \"tenant-management.users.update\"
563
563
  * @param {EnableUsersRequestDto} enableUsersRequestDto
564
564
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
565
  * @param {*} [options] Override http request option.
@@ -569,7 +569,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
569
569
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
570
570
  },
571
571
  /**
572
- *
572
+ * undefined **Required Permissions** \"tenant-management.users.view\"
573
573
  * @param {string} code
574
574
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
575
  * @param {string} [expand] Fields to expand response by
@@ -580,7 +580,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
580
580
  return localVarFp.getUser(code, authorization, expand, options).then((request) => request(axios, basePath));
581
581
  },
582
582
  /**
583
- *
583
+ * undefined **Required Permissions** \"partner-management.partners.update\"
584
584
  * @param {string} code Unique identifier for the object.
585
585
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
586
586
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -591,7 +591,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
591
591
  return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
592
592
  },
593
593
  /**
594
- * 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.
594
+ * 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. **Required Permissions** \"tenant-management.users.view\"
595
595
  * @summary List users
596
596
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
597
597
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -828,7 +828,7 @@ export interface UsersApiListUsersRequest {
828
828
  */
829
829
  export class UsersApi extends BaseAPI {
830
830
  /**
831
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
831
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
832
832
  * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
833
833
  * @param {*} [options] Override http request option.
834
834
  * @deprecated
@@ -840,7 +840,7 @@ export class UsersApi extends BaseAPI {
840
840
  }
841
841
 
842
842
  /**
843
- *
843
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
844
844
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
845
845
  * @param {*} [options] Override http request option.
846
846
  * @throws {RequiredError}
@@ -851,7 +851,7 @@ export class UsersApi extends BaseAPI {
851
851
  }
852
852
 
853
853
  /**
854
- *
854
+ * undefined **Required Permissions** \"tenant-management.users.update\"
855
855
  * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
856
856
  * @param {*} [options] Override http request option.
857
857
  * @throws {RequiredError}
@@ -862,7 +862,7 @@ export class UsersApi extends BaseAPI {
862
862
  }
863
863
 
864
864
  /**
865
- *
865
+ * undefined **Required Permissions** \"tenant-management.users.update\"
866
866
  * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
867
867
  * @param {*} [options] Override http request option.
868
868
  * @throws {RequiredError}
@@ -873,7 +873,7 @@ export class UsersApi extends BaseAPI {
873
873
  }
874
874
 
875
875
  /**
876
- *
876
+ * undefined **Required Permissions** \"tenant-management.users.view\"
877
877
  * @param {UsersApiGetUserRequest} requestParameters Request parameters.
878
878
  * @param {*} [options] Override http request option.
879
879
  * @throws {RequiredError}
@@ -884,7 +884,7 @@ export class UsersApi extends BaseAPI {
884
884
  }
885
885
 
886
886
  /**
887
- *
887
+ * undefined **Required Permissions** \"partner-management.partners.update\"
888
888
  * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
889
889
  * @param {*} [options] Override http request option.
890
890
  * @throws {RequiredError}
@@ -895,7 +895,7 @@ export class UsersApi extends BaseAPI {
895
895
  }
896
896
 
897
897
  /**
898
- * 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.
898
+ * 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. **Required Permissions** \"tenant-management.users.view\"
899
899
  * @summary List users
900
900
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
901
901
  * @param {*} [options] Override http request option.
package/base.ts CHANGED
@@ -225,7 +225,7 @@ export class BaseAPI {
225
225
  const tokenString = await this.refreshTokenInternal();
226
226
  const accessToken = `Bearer ${tokenString}`;
227
227
 
228
- originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
228
+ originalConfig.headers['Authorization'] = accessToken;
229
229
 
230
230
  this.configuration.accessToken = accessToken;
231
231
 
package/common.ts CHANGED
@@ -66,7 +66,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
66
66
  const accessToken = typeof configuration.accessToken === 'function'
67
67
  ? await configuration.accessToken()
68
68
  : await configuration.accessToken;
69
- object["Authorization"] = "Bearer " + accessToken;
69
+ object["Authorization"] = configuration.getBearerToken(accessToken);
70
70
  }
71
71
  }
72
72
 
@@ -79,7 +79,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
79
79
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
80
80
  ? await configuration.accessToken(name, scopes)
81
81
  : await configuration.accessToken;
82
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
82
+ object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
83
83
  }
84
84
  }
85
85
 
package/configuration.ts CHANGED
@@ -106,4 +106,13 @@ export class Configuration {
106
106
  const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
107
107
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
108
108
  }
109
+
110
+ /**
111
+ * Returns "Bearer" token.
112
+ * @param token - access token.
113
+ * @return Bearer token.
114
+ */
115
+ public getBearerToken(token?: string): string {
116
+ return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
117
+ }
109
118
  }