@emilgroup/tenant-sdk 1.29.0 → 1.29.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 (66) 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/common.ts +2 -2
  18. package/configuration.ts +9 -0
  19. package/dist/api/custom-schema-api.d.ts +16 -16
  20. package/dist/api/custom-schema-api.js +16 -16
  21. package/dist/api/dashboard-api.d.ts +128 -24
  22. package/dist/api/dashboard-api.js +202 -24
  23. package/dist/api/dashboard-group-api.d.ts +20 -20
  24. package/dist/api/dashboard-group-api.js +20 -20
  25. package/dist/api/data-report-api.d.ts +16 -16
  26. package/dist/api/data-report-api.js +16 -16
  27. package/dist/api/data-report-executor-api.d.ts +4 -4
  28. package/dist/api/data-report-executor-api.js +4 -4
  29. package/dist/api/delete-organization-invitations-api.d.ts +4 -4
  30. package/dist/api/delete-organization-invitations-api.js +4 -4
  31. package/dist/api/invite-organizations-api.d.ts +4 -4
  32. package/dist/api/invite-organizations-api.js +4 -4
  33. package/dist/api/invite-users-api.d.ts +16 -16
  34. package/dist/api/invite-users-api.js +16 -16
  35. package/dist/api/list-organization-invitations-api.d.ts +4 -4
  36. package/dist/api/list-organization-invitations-api.js +4 -4
  37. package/dist/api/organizations-api.d.ts +12 -12
  38. package/dist/api/organizations-api.js +12 -12
  39. package/dist/api/re-invite-an-organization-api.d.ts +4 -4
  40. package/dist/api/re-invite-an-organization-api.js +4 -4
  41. package/dist/api/roles-api.d.ts +4 -4
  42. package/dist/api/roles-api.js +4 -4
  43. package/dist/api/settings-api.d.ts +4 -4
  44. package/dist/api/settings-api.js +4 -4
  45. package/dist/api/users-api.d.ts +28 -28
  46. package/dist/api/users-api.js +28 -28
  47. package/dist/common.js +2 -2
  48. package/dist/configuration.d.ts +6 -0
  49. package/dist/configuration.js +8 -0
  50. package/dist/models/create-tenant-db-config-request-dto.d.ts +30 -0
  51. package/dist/models/create-tenant-db-config-request-dto.js +15 -0
  52. package/dist/models/index.d.ts +3 -0
  53. package/dist/models/index.js +3 -0
  54. package/dist/models/invite-class.d.ts +12 -12
  55. package/dist/models/publish-dashboard-request-dto.d.ts +34 -0
  56. package/dist/models/publish-dashboard-request-dto.js +19 -0
  57. package/dist/models/revert-analysis-request-dto.d.ts +34 -0
  58. package/dist/models/revert-analysis-request-dto.js +19 -0
  59. package/dist/models/user-class.d.ts +8 -8
  60. package/models/create-tenant-db-config-request-dto.ts +36 -0
  61. package/models/index.ts +3 -0
  62. package/models/invite-class.ts +12 -12
  63. package/models/publish-dashboard-request-dto.ts +43 -0
  64. package/models/revert-analysis-request-dto.ts +43 -0
  65. package/models/user-class.ts +8 -8
  66. package/package.json +1 -1
@@ -35,7 +35,7 @@ import { UpdateOrganizationResponseClass } from '../models';
35
35
  export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * Get Organization by code
38
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
39
39
  * @summary Retrieve the Organization
40
40
  * @param {string} code
41
41
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -80,7 +80,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
80
80
  };
81
81
  },
82
82
  /**
83
- * This will fetch list of organizations
83
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
84
84
  * @summary List organizations
85
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 50. Default: 10.
@@ -156,7 +156,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
156
156
  };
157
157
  },
158
158
  /**
159
- * Update organization data
159
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
160
160
  * @summary Update the Organization
161
161
  * @param {string} code
162
162
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -217,7 +217,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
217
217
  const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration)
218
218
  return {
219
219
  /**
220
- * Get Organization by code
220
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
221
221
  * @summary Retrieve the Organization
222
222
  * @param {string} code
223
223
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -229,7 +229,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
229
229
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
230
230
  },
231
231
  /**
232
- * This will fetch list of organizations
232
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
233
233
  * @summary List organizations
234
234
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
235
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -247,7 +247,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
247
247
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
248
248
  },
249
249
  /**
250
- * Update organization data
250
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
251
251
  * @summary Update the Organization
252
252
  * @param {string} code
253
253
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -270,7 +270,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
270
270
  const localVarFp = OrganizationsApiFp(configuration)
271
271
  return {
272
272
  /**
273
- * Get Organization by code
273
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
274
274
  * @summary Retrieve the Organization
275
275
  * @param {string} code
276
276
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -281,7 +281,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
281
281
  return localVarFp.getOrganization(code, authorization, options).then((request) => request(axios, basePath));
282
282
  },
283
283
  /**
284
- * This will fetch list of organizations
284
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
285
285
  * @summary List organizations
286
286
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
287
287
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -298,7 +298,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
298
298
  return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
299
299
  },
300
300
  /**
301
- * Update organization data
301
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
302
302
  * @summary Update the Organization
303
303
  * @param {string} code
304
304
  * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
@@ -432,7 +432,7 @@ export interface OrganizationsApiUpdateOrganizationRequest {
432
432
  */
433
433
  export class OrganizationsApi extends BaseAPI {
434
434
  /**
435
- * Get Organization by code
435
+ * Get Organization by code **Required Permissions** \"tenant-management.organizations.view\"
436
436
  * @summary Retrieve the Organization
437
437
  * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
438
438
  * @param {*} [options] Override http request option.
@@ -444,7 +444,7 @@ export class OrganizationsApi extends BaseAPI {
444
444
  }
445
445
 
446
446
  /**
447
- * This will fetch list of organizations
447
+ * This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
448
448
  * @summary List organizations
449
449
  * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
450
450
  * @param {*} [options] Override http request option.
@@ -456,7 +456,7 @@ export class OrganizationsApi extends BaseAPI {
456
456
  }
457
457
 
458
458
  /**
459
- * Update organization data
459
+ * Update organization data **Required Permissions** \"tenant-management.organizations.update\"
460
460
  * @summary Update the Organization
461
461
  * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
462
462
  * @param {*} [options] Override http request option.
@@ -31,7 +31,7 @@ import { ReInviteOrgRequestDto } from '../models';
31
31
  export const ReInviteAnOrganizationApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
- * This re-sends an email to invite an organization.
34
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
35
35
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
36
36
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
37
37
  * @param {*} [options] Override http request option.
@@ -87,7 +87,7 @@ export const ReInviteAnOrganizationApiFp = function(configuration?: Configuratio
87
87
  const localVarAxiosParamCreator = ReInviteAnOrganizationApiAxiosParamCreator(configuration)
88
88
  return {
89
89
  /**
90
- * This re-sends an email to invite an organization.
90
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
91
91
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
92
92
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
93
  * @param {*} [options] Override http request option.
@@ -108,7 +108,7 @@ export const ReInviteAnOrganizationApiFactory = function (configuration?: Config
108
108
  const localVarFp = ReInviteAnOrganizationApiFp(configuration)
109
109
  return {
110
110
  /**
111
- * This re-sends an email to invite an organization.
111
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
112
112
  * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
113
113
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
114
  * @param {*} [options] Override http request option.
@@ -149,7 +149,7 @@ export interface ReInviteAnOrganizationApiReInviteOrganizationRequest {
149
149
  */
150
150
  export class ReInviteAnOrganizationApi extends BaseAPI {
151
151
  /**
152
- * This re-sends an email to invite an organization.
152
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
153
153
  * @param {ReInviteAnOrganizationApiReInviteOrganizationRequest} requestParameters Request parameters.
154
154
  * @param {*} [options] Override http request option.
155
155
  * @throws {RequiredError}
package/api/roles-api.ts CHANGED
@@ -29,7 +29,7 @@ import { ListRolesResponseClass } from '../models';
29
29
  export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
30
30
  return {
31
31
  /**
32
- * 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.
32
+ * 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\"
33
33
  * @summary List roles
34
34
  * @param {string} [authorization] Bearer Token
35
35
  * @param {number} [pageSize] Page size
@@ -111,7 +111,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
111
111
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
112
112
  return {
113
113
  /**
114
- * 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.
114
+ * 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\"
115
115
  * @summary List roles
116
116
  * @param {string} [authorization] Bearer Token
117
117
  * @param {number} [pageSize] Page size
@@ -139,7 +139,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
139
139
  const localVarFp = RolesApiFp(configuration)
140
140
  return {
141
141
  /**
142
- * 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.
142
+ * 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\"
143
143
  * @summary List roles
144
144
  * @param {string} [authorization] Bearer Token
145
145
  * @param {number} [pageSize] Page size
@@ -222,7 +222,7 @@ export interface RolesApiListRolesRequest {
222
222
  */
223
223
  export class RolesApi extends BaseAPI {
224
224
  /**
225
- * 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.
225
+ * 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\"
226
226
  * @summary List roles
227
227
  * @param {RolesApiListRolesRequest} requestParameters Request parameters.
228
228
  * @param {*} [options] Override http request option.
@@ -29,7 +29,7 @@ import { GetSettingsResponseClass } from '../models';
29
29
  export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
30
30
  return {
31
31
  /**
32
- * 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.
32
+ * 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\"
33
33
  * @summary Retrieve the settings
34
34
  * @param {string} keys
35
35
  * @param {string} [authorization] Bearer Token
@@ -87,7 +87,7 @@ export const SettingsApiFp = function(configuration?: Configuration) {
87
87
  const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
88
88
  return {
89
89
  /**
90
- * 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.
90
+ * 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\"
91
91
  * @summary Retrieve the settings
92
92
  * @param {string} keys
93
93
  * @param {string} [authorization] Bearer Token
@@ -109,7 +109,7 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
109
109
  const localVarFp = SettingsApiFp(configuration)
110
110
  return {
111
111
  /**
112
- * 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.
112
+ * 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\"
113
113
  * @summary Retrieve the settings
114
114
  * @param {string} keys
115
115
  * @param {string} [authorization] Bearer Token
@@ -151,7 +151,7 @@ export interface SettingsApiGetTenantSettingsRequest {
151
151
  */
152
152
  export class SettingsApi extends BaseAPI {
153
153
  /**
154
- * 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.
154
+ * 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\"
155
155
  * @summary Retrieve the settings
156
156
  * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
157
157
  * @param {*} [options] Override http request option.
package/api/users-api.ts CHANGED
@@ -51,7 +51,7 @@ import { ListUsersResponseClass } from '../models';
51
51
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
52
52
  return {
53
53
  /**
54
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
54
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
55
55
  * @param {number} id
56
56
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -102,7 +102,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
102
102
  };
103
103
  },
104
104
  /**
105
- *
105
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
106
106
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
107
107
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
108
108
  * @param {*} [options] Override http request option.
@@ -148,7 +148,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
148
148
  };
149
149
  },
150
150
  /**
151
- *
151
+ * undefined **Required Permissions** \"tenant-management.users.update\"
152
152
  * @param {DisableUsersRequestDto} disableUsersRequestDto
153
153
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
154
  * @param {*} [options] Override http request option.
@@ -194,7 +194,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
194
194
  };
195
195
  },
196
196
  /**
197
- *
197
+ * undefined **Required Permissions** \"tenant-management.users.update\"
198
198
  * @param {EnableUsersRequestDto} enableUsersRequestDto
199
199
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
200
  * @param {*} [options] Override http request option.
@@ -240,7 +240,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
240
240
  };
241
241
  },
242
242
  /**
243
- *
243
+ * undefined **Required Permissions** \"tenant-management.users.view\"
244
244
  * @param {string} code
245
245
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
246
  * @param {string} [expand] Fields to expand response by
@@ -289,7 +289,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
289
289
  };
290
290
  },
291
291
  /**
292
- *
292
+ * undefined **Required Permissions** \"partner-management.partners.update\"
293
293
  * @param {string} code Unique identifier for the object.
294
294
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
295
295
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -339,7 +339,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
339
339
  };
340
340
  },
341
341
  /**
342
- * 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.
342
+ * 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\"
343
343
  * @summary List users
344
344
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
345
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -425,7 +425,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
425
425
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
426
426
  return {
427
427
  /**
428
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
428
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
429
429
  * @param {number} id
430
430
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
431
431
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -438,7 +438,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
438
438
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
439
439
  },
440
440
  /**
441
- *
441
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
442
442
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
443
443
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
444
  * @param {*} [options] Override http request option.
@@ -449,7 +449,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
449
449
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
450
450
  },
451
451
  /**
452
- *
452
+ * undefined **Required Permissions** \"tenant-management.users.update\"
453
453
  * @param {DisableUsersRequestDto} disableUsersRequestDto
454
454
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
455
  * @param {*} [options] Override http request option.
@@ -460,7 +460,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
460
460
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
461
461
  },
462
462
  /**
463
- *
463
+ * undefined **Required Permissions** \"tenant-management.users.update\"
464
464
  * @param {EnableUsersRequestDto} enableUsersRequestDto
465
465
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
466
466
  * @param {*} [options] Override http request option.
@@ -471,7 +471,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
471
471
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
472
472
  },
473
473
  /**
474
- *
474
+ * undefined **Required Permissions** \"tenant-management.users.view\"
475
475
  * @param {string} code
476
476
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
477
  * @param {string} [expand] Fields to expand response by
@@ -483,7 +483,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
483
483
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
484
484
  },
485
485
  /**
486
- *
486
+ * undefined **Required Permissions** \"partner-management.partners.update\"
487
487
  * @param {string} code Unique identifier for the object.
488
488
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
489
489
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -495,7 +495,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
495
495
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
496
496
  },
497
497
  /**
498
- * 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.
498
+ * 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\"
499
499
  * @summary List users
500
500
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
501
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -523,7 +523,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
523
523
  const localVarFp = UsersApiFp(configuration)
524
524
  return {
525
525
  /**
526
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
526
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
527
527
  * @param {number} id
528
528
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
529
529
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -535,7 +535,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
535
535
  return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
536
536
  },
537
537
  /**
538
- *
538
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
539
539
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
540
540
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
541
541
  * @param {*} [options] Override http request option.
@@ -545,7 +545,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
545
545
  return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
546
546
  },
547
547
  /**
548
- *
548
+ * undefined **Required Permissions** \"tenant-management.users.update\"
549
549
  * @param {DisableUsersRequestDto} disableUsersRequestDto
550
550
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
551
551
  * @param {*} [options] Override http request option.
@@ -555,7 +555,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
555
555
  return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
556
556
  },
557
557
  /**
558
- *
558
+ * undefined **Required Permissions** \"tenant-management.users.update\"
559
559
  * @param {EnableUsersRequestDto} enableUsersRequestDto
560
560
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
561
561
  * @param {*} [options] Override http request option.
@@ -565,7 +565,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
565
565
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
566
566
  },
567
567
  /**
568
- *
568
+ * undefined **Required Permissions** \"tenant-management.users.view\"
569
569
  * @param {string} code
570
570
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
571
  * @param {string} [expand] Fields to expand response by
@@ -576,7 +576,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
576
576
  return localVarFp.getUser(code, authorization, expand, options).then((request) => request(axios, basePath));
577
577
  },
578
578
  /**
579
- *
579
+ * undefined **Required Permissions** \"partner-management.partners.update\"
580
580
  * @param {string} code Unique identifier for the object.
581
581
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
582
582
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -587,7 +587,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
587
587
  return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
588
588
  },
589
589
  /**
590
- * 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.
590
+ * 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\"
591
591
  * @summary List users
592
592
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
593
593
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -824,7 +824,7 @@ export interface UsersApiListUsersRequest {
824
824
  */
825
825
  export class UsersApi extends BaseAPI {
826
826
  /**
827
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
827
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
828
828
  * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
829
829
  * @param {*} [options] Override http request option.
830
830
  * @deprecated
@@ -836,7 +836,7 @@ export class UsersApi extends BaseAPI {
836
836
  }
837
837
 
838
838
  /**
839
- *
839
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
840
840
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
841
841
  * @param {*} [options] Override http request option.
842
842
  * @throws {RequiredError}
@@ -847,7 +847,7 @@ export class UsersApi extends BaseAPI {
847
847
  }
848
848
 
849
849
  /**
850
- *
850
+ * undefined **Required Permissions** \"tenant-management.users.update\"
851
851
  * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
852
852
  * @param {*} [options] Override http request option.
853
853
  * @throws {RequiredError}
@@ -858,7 +858,7 @@ export class UsersApi extends BaseAPI {
858
858
  }
859
859
 
860
860
  /**
861
- *
861
+ * undefined **Required Permissions** \"tenant-management.users.update\"
862
862
  * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
863
863
  * @param {*} [options] Override http request option.
864
864
  * @throws {RequiredError}
@@ -869,7 +869,7 @@ export class UsersApi extends BaseAPI {
869
869
  }
870
870
 
871
871
  /**
872
- *
872
+ * undefined **Required Permissions** \"tenant-management.users.view\"
873
873
  * @param {UsersApiGetUserRequest} requestParameters Request parameters.
874
874
  * @param {*} [options] Override http request option.
875
875
  * @throws {RequiredError}
@@ -880,7 +880,7 @@ export class UsersApi extends BaseAPI {
880
880
  }
881
881
 
882
882
  /**
883
- *
883
+ * undefined **Required Permissions** \"partner-management.partners.update\"
884
884
  * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
885
885
  * @param {*} [options] Override http request option.
886
886
  * @throws {RequiredError}
@@ -891,7 +891,7 @@ export class UsersApi extends BaseAPI {
891
891
  }
892
892
 
893
893
  /**
894
- * 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.
894
+ * 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\"
895
895
  * @summary List users
896
896
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
897
897
  * @param {*} [options] Override http request option.
package/common.ts CHANGED
@@ -65,7 +65,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
65
65
  const accessToken = typeof configuration.accessToken === 'function'
66
66
  ? await configuration.accessToken()
67
67
  : await configuration.accessToken;
68
- object["Authorization"] = "Bearer " + accessToken;
68
+ object["Authorization"] = configuration.getBearerToken(accessToken);
69
69
  }
70
70
  }
71
71
 
@@ -78,7 +78,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
78
78
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
79
79
  ? await configuration.accessToken(name, scopes)
80
80
  : await configuration.accessToken;
81
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
81
+ object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
82
82
  }
83
83
  }
84
84
 
package/configuration.ts CHANGED
@@ -98,4 +98,13 @@ export class Configuration {
98
98
  const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
99
99
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
100
100
  }
101
+
102
+ /**
103
+ * Returns "Bearer" token.
104
+ * @param token - access token.
105
+ * @return Bearer token.
106
+ */
107
+ public getBearerToken(token?: string): string {
108
+ return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
109
+ }
101
110
  }