@emilgroup/tenant-sdk-node 1.28.0 → 1.28.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +338 -39
  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 +189 -34
  23. package/dist/api/dashboard-api.js +300 -34
  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
@@ -30,7 +30,7 @@ import { ListUsersResponseClass } from '../models';
30
30
  */
31
31
  export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
32
32
  /**
33
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
33
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
34
34
  * @param {number} id
35
35
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
36
36
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -40,7 +40,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
40
40
  */
41
41
  assignUserRoles: (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
- *
43
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
44
44
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
45
45
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
46
  * @param {*} [options] Override http request option.
@@ -48,7 +48,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
48
48
  */
49
49
  deleteUsers: (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
50
  /**
51
- *
51
+ * undefined **Required Permissions** \"tenant-management.users.update\"
52
52
  * @param {DisableUsersRequestDto} disableUsersRequestDto
53
53
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
54
  * @param {*} [options] Override http request option.
@@ -56,7 +56,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
56
56
  */
57
57
  disableUsers: (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
58
  /**
59
- *
59
+ * undefined **Required Permissions** \"tenant-management.users.update\"
60
60
  * @param {EnableUsersRequestDto} enableUsersRequestDto
61
61
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
62
62
  * @param {*} [options] Override http request option.
@@ -64,7 +64,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
64
64
  */
65
65
  enableUsers: (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
66
  /**
67
- *
67
+ * undefined **Required Permissions** \"tenant-management.users.view\"
68
68
  * @param {string} code
69
69
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
70
70
  * @param {string} [expand] Fields to expand response by
@@ -73,7 +73,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
73
73
  */
74
74
  getUser: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
75
  /**
76
- *
76
+ * undefined **Required Permissions** \"partner-management.partners.update\"
77
77
  * @param {string} code Unique identifier for the object.
78
78
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
79
79
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -82,7 +82,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
82
82
  */
83
83
  linkUserWithPartner: (code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
84
  /**
85
- * 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.
85
+ * 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\"
86
86
  * @summary List users
87
87
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
88
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -103,7 +103,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
103
103
  */
104
104
  export declare const UsersApiFp: (configuration?: Configuration) => {
105
105
  /**
106
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
106
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
107
107
  * @param {number} id
108
108
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
109
109
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -113,7 +113,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
113
113
  */
114
114
  assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>>;
115
115
  /**
116
- *
116
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
117
117
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
118
118
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
119
119
  * @param {*} [options] Override http request option.
@@ -121,7 +121,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
121
121
  */
122
122
  deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>>;
123
123
  /**
124
- *
124
+ * undefined **Required Permissions** \"tenant-management.users.update\"
125
125
  * @param {DisableUsersRequestDto} disableUsersRequestDto
126
126
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
127
127
  * @param {*} [options] Override http request option.
@@ -129,7 +129,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
129
129
  */
130
130
  disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>>;
131
131
  /**
132
- *
132
+ * undefined **Required Permissions** \"tenant-management.users.update\"
133
133
  * @param {EnableUsersRequestDto} enableUsersRequestDto
134
134
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
135
  * @param {*} [options] Override http request option.
@@ -137,7 +137,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
137
137
  */
138
138
  enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>>;
139
139
  /**
140
- *
140
+ * undefined **Required Permissions** \"tenant-management.users.view\"
141
141
  * @param {string} code
142
142
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
143
  * @param {string} [expand] Fields to expand response by
@@ -146,7 +146,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
146
146
  */
147
147
  getUser(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>>;
148
148
  /**
149
- *
149
+ * undefined **Required Permissions** \"partner-management.partners.update\"
150
150
  * @param {string} code Unique identifier for the object.
151
151
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -155,7 +155,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
155
155
  */
156
156
  linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkUserWithPartnerResponseClass>>;
157
157
  /**
158
- * 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.
158
+ * 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\"
159
159
  * @summary List users
160
160
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
161
161
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -176,7 +176,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
176
176
  */
177
177
  export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
178
178
  /**
179
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
179
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
180
180
  * @param {number} id
181
181
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
182
182
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -186,7 +186,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
186
186
  */
187
187
  assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass>;
188
188
  /**
189
- *
189
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
190
190
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
191
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
192
  * @param {*} [options] Override http request option.
@@ -194,7 +194,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
194
194
  */
195
195
  deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass>;
196
196
  /**
197
- *
197
+ * undefined **Required Permissions** \"tenant-management.users.update\"
198
198
  * @param {DisableUsersRequestDto} disableUsersRequestDto
199
199
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
200
  * @param {*} [options] Override http request option.
@@ -202,7 +202,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
202
202
  */
203
203
  disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass>;
204
204
  /**
205
- *
205
+ * undefined **Required Permissions** \"tenant-management.users.update\"
206
206
  * @param {EnableUsersRequestDto} enableUsersRequestDto
207
207
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
208
208
  * @param {*} [options] Override http request option.
@@ -210,7 +210,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
210
210
  */
211
211
  enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<EnableUsersResponseClass>;
212
212
  /**
213
- *
213
+ * undefined **Required Permissions** \"tenant-management.users.view\"
214
214
  * @param {string} code
215
215
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
216
216
  * @param {string} [expand] Fields to expand response by
@@ -219,7 +219,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
219
219
  */
220
220
  getUser(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass>;
221
221
  /**
222
- *
222
+ * undefined **Required Permissions** \"partner-management.partners.update\"
223
223
  * @param {string} code Unique identifier for the object.
224
224
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
225
225
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -228,7 +228,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
228
228
  */
229
229
  linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkUserWithPartnerResponseClass>;
230
230
  /**
231
- * 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.
231
+ * 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\"
232
232
  * @summary List users
233
233
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
234
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -438,7 +438,7 @@ export interface UsersApiListUsersRequest {
438
438
  */
439
439
  export declare class UsersApi extends BaseAPI {
440
440
  /**
441
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
441
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
442
442
  * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
443
443
  * @param {*} [options] Override http request option.
444
444
  * @deprecated
@@ -447,7 +447,7 @@ export declare class UsersApi extends BaseAPI {
447
447
  */
448
448
  assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignUserRolesResponseClass, any>>;
449
449
  /**
450
- *
450
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
451
451
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
452
452
  * @param {*} [options] Override http request option.
453
453
  * @throws {RequiredError}
@@ -455,7 +455,7 @@ export declare class UsersApi extends BaseAPI {
455
455
  */
456
456
  deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchDeleteResponseClass, any>>;
457
457
  /**
458
- *
458
+ * undefined **Required Permissions** \"tenant-management.users.update\"
459
459
  * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
460
460
  * @param {*} [options] Override http request option.
461
461
  * @throws {RequiredError}
@@ -463,7 +463,7 @@ export declare class UsersApi extends BaseAPI {
463
463
  */
464
464
  disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DisableUsersResponseClass, any>>;
465
465
  /**
466
- *
466
+ * undefined **Required Permissions** \"tenant-management.users.update\"
467
467
  * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
468
468
  * @param {*} [options] Override http request option.
469
469
  * @throws {RequiredError}
@@ -471,7 +471,7 @@ export declare class UsersApi extends BaseAPI {
471
471
  */
472
472
  enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EnableUsersResponseClass, any>>;
473
473
  /**
474
- *
474
+ * undefined **Required Permissions** \"tenant-management.users.view\"
475
475
  * @param {UsersApiGetUserRequest} requestParameters Request parameters.
476
476
  * @param {*} [options] Override http request option.
477
477
  * @throws {RequiredError}
@@ -479,7 +479,7 @@ export declare class UsersApi extends BaseAPI {
479
479
  */
480
480
  getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserResponseClass, any>>;
481
481
  /**
482
- *
482
+ * undefined **Required Permissions** \"partner-management.partners.update\"
483
483
  * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
484
484
  * @param {*} [options] Override http request option.
485
485
  * @throws {RequiredError}
@@ -487,7 +487,7 @@ export declare class UsersApi extends BaseAPI {
487
487
  */
488
488
  linkUserWithPartner(requestParameters: UsersApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkUserWithPartnerResponseClass, any>>;
489
489
  /**
490
- * 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.
490
+ * 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\"
491
491
  * @summary List users
492
492
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
493
493
  * @param {*} [options] Override http request option.
@@ -97,7 +97,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
100
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
101
101
  * @param {number} id
102
102
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -150,7 +150,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
150
150
  });
151
151
  },
152
152
  /**
153
- *
153
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
154
154
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
155
155
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
156
  * @param {*} [options] Override http request option.
@@ -198,7 +198,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
198
198
  });
199
199
  },
200
200
  /**
201
- *
201
+ * undefined **Required Permissions** \"tenant-management.users.update\"
202
202
  * @param {DisableUsersRequestDto} disableUsersRequestDto
203
203
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
204
  * @param {*} [options] Override http request option.
@@ -246,7 +246,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
246
246
  });
247
247
  },
248
248
  /**
249
- *
249
+ * undefined **Required Permissions** \"tenant-management.users.update\"
250
250
  * @param {EnableUsersRequestDto} enableUsersRequestDto
251
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
252
  * @param {*} [options] Override http request option.
@@ -294,7 +294,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
294
294
  });
295
295
  },
296
296
  /**
297
- *
297
+ * undefined **Required Permissions** \"tenant-management.users.view\"
298
298
  * @param {string} code
299
299
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
300
300
  * @param {string} [expand] Fields to expand response by
@@ -345,7 +345,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
345
345
  });
346
346
  },
347
347
  /**
348
- *
348
+ * undefined **Required Permissions** \"partner-management.partners.update\"
349
349
  * @param {string} code Unique identifier for the object.
350
350
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
351
351
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -397,7 +397,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
397
397
  });
398
398
  },
399
399
  /**
400
- * 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.
400
+ * 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\"
401
401
  * @summary List users
402
402
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
403
403
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -479,7 +479,7 @@ var UsersApiFp = function (configuration) {
479
479
  var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
480
480
  return {
481
481
  /**
482
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
482
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
483
483
  * @param {number} id
484
484
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
485
485
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -501,7 +501,7 @@ var UsersApiFp = function (configuration) {
501
501
  });
502
502
  },
503
503
  /**
504
- *
504
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
505
505
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
506
506
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
507
507
  * @param {*} [options] Override http request option.
@@ -521,7 +521,7 @@ var UsersApiFp = function (configuration) {
521
521
  });
522
522
  },
523
523
  /**
524
- *
524
+ * undefined **Required Permissions** \"tenant-management.users.update\"
525
525
  * @param {DisableUsersRequestDto} disableUsersRequestDto
526
526
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
527
  * @param {*} [options] Override http request option.
@@ -541,7 +541,7 @@ var UsersApiFp = function (configuration) {
541
541
  });
542
542
  },
543
543
  /**
544
- *
544
+ * undefined **Required Permissions** \"tenant-management.users.update\"
545
545
  * @param {EnableUsersRequestDto} enableUsersRequestDto
546
546
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
547
547
  * @param {*} [options] Override http request option.
@@ -561,7 +561,7 @@ var UsersApiFp = function (configuration) {
561
561
  });
562
562
  },
563
563
  /**
564
- *
564
+ * undefined **Required Permissions** \"tenant-management.users.view\"
565
565
  * @param {string} code
566
566
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
567
  * @param {string} [expand] Fields to expand response by
@@ -582,7 +582,7 @@ var UsersApiFp = function (configuration) {
582
582
  });
583
583
  },
584
584
  /**
585
- *
585
+ * undefined **Required Permissions** \"partner-management.partners.update\"
586
586
  * @param {string} code Unique identifier for the object.
587
587
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
588
588
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -603,7 +603,7 @@ var UsersApiFp = function (configuration) {
603
603
  });
604
604
  },
605
605
  /**
606
- * 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.
606
+ * 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\"
607
607
  * @summary List users
608
608
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
609
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -640,7 +640,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
640
640
  var localVarFp = (0, exports.UsersApiFp)(configuration);
641
641
  return {
642
642
  /**
643
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
643
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
644
644
  * @param {number} id
645
645
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
646
646
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -652,7 +652,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
652
652
  return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
653
653
  },
654
654
  /**
655
- *
655
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
656
656
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
657
657
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
658
658
  * @param {*} [options] Override http request option.
@@ -662,7 +662,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
662
662
  return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
663
663
  },
664
664
  /**
665
- *
665
+ * undefined **Required Permissions** \"tenant-management.users.update\"
666
666
  * @param {DisableUsersRequestDto} disableUsersRequestDto
667
667
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
668
668
  * @param {*} [options] Override http request option.
@@ -672,7 +672,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
672
672
  return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
673
673
  },
674
674
  /**
675
- *
675
+ * undefined **Required Permissions** \"tenant-management.users.update\"
676
676
  * @param {EnableUsersRequestDto} enableUsersRequestDto
677
677
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
678
678
  * @param {*} [options] Override http request option.
@@ -682,7 +682,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
682
682
  return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
683
683
  },
684
684
  /**
685
- *
685
+ * undefined **Required Permissions** \"tenant-management.users.view\"
686
686
  * @param {string} code
687
687
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
688
688
  * @param {string} [expand] Fields to expand response by
@@ -693,7 +693,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
693
693
  return localVarFp.getUser(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
694
694
  },
695
695
  /**
696
- *
696
+ * undefined **Required Permissions** \"partner-management.partners.update\"
697
697
  * @param {string} code Unique identifier for the object.
698
698
  * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
699
699
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -704,7 +704,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
704
704
  return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
705
705
  },
706
706
  /**
707
- * 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.
707
+ * 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\"
708
708
  * @summary List users
709
709
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
710
710
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -735,7 +735,7 @@ var UsersApi = /** @class */ (function (_super) {
735
735
  return _super !== null && _super.apply(this, arguments) || this;
736
736
  }
737
737
  /**
738
- * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api.
738
+ * This endpoint is deprecated, please refer to the policy administration service at /policy-administration-service/api. **Required Permissions** \"identity-management.roles.update\"
739
739
  * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
740
740
  * @param {*} [options] Override http request option.
741
741
  * @deprecated
@@ -747,7 +747,7 @@ var UsersApi = /** @class */ (function (_super) {
747
747
  return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
748
748
  };
749
749
  /**
750
- *
750
+ * undefined **Required Permissions** \"tenant-management.users.delete\"
751
751
  * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
752
752
  * @param {*} [options] Override http request option.
753
753
  * @throws {RequiredError}
@@ -758,7 +758,7 @@ var UsersApi = /** @class */ (function (_super) {
758
758
  return (0, exports.UsersApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
759
759
  };
760
760
  /**
761
- *
761
+ * undefined **Required Permissions** \"tenant-management.users.update\"
762
762
  * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
763
763
  * @param {*} [options] Override http request option.
764
764
  * @throws {RequiredError}
@@ -769,7 +769,7 @@ var UsersApi = /** @class */ (function (_super) {
769
769
  return (0, exports.UsersApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
770
770
  };
771
771
  /**
772
- *
772
+ * undefined **Required Permissions** \"tenant-management.users.update\"
773
773
  * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
774
774
  * @param {*} [options] Override http request option.
775
775
  * @throws {RequiredError}
@@ -780,7 +780,7 @@ var UsersApi = /** @class */ (function (_super) {
780
780
  return (0, exports.UsersApiFp)(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
781
781
  };
782
782
  /**
783
- *
783
+ * undefined **Required Permissions** \"tenant-management.users.view\"
784
784
  * @param {UsersApiGetUserRequest} requestParameters Request parameters.
785
785
  * @param {*} [options] Override http request option.
786
786
  * @throws {RequiredError}
@@ -791,7 +791,7 @@ var UsersApi = /** @class */ (function (_super) {
791
791
  return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
792
792
  };
793
793
  /**
794
- *
794
+ * undefined **Required Permissions** \"partner-management.partners.update\"
795
795
  * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
796
796
  * @param {*} [options] Override http request option.
797
797
  * @throws {RequiredError}
@@ -802,7 +802,7 @@ var UsersApi = /** @class */ (function (_super) {
802
802
  return (0, exports.UsersApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
803
803
  };
804
804
  /**
805
- * 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.
805
+ * 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\"
806
806
  * @summary List users
807
807
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
808
808
  * @param {*} [options] Override http request option.
package/dist/base.js CHANGED
@@ -330,7 +330,7 @@ var BaseAPI = /** @class */ (function () {
330
330
  case 2:
331
331
  tokenString = _a.sent();
332
332
  accessToken = "Bearer ".concat(tokenString);
333
- originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
333
+ originalConfig.headers['Authorization'] = accessToken;
334
334
  this.configuration.accessToken = accessToken;
335
335
  return [2 /*return*/, axios.request(originalConfig)];
336
336
  case 3:
package/dist/common.js CHANGED
@@ -141,7 +141,7 @@ var setBearerAuthToObject = function (object, configuration) {
141
141
  _b.label = 4;
142
142
  case 4:
143
143
  accessToken = _a;
144
- object["Authorization"] = "Bearer " + accessToken;
144
+ object["Authorization"] = configuration.getBearerToken(accessToken);
145
145
  _b.label = 5;
146
146
  case 5: return [2 /*return*/];
147
147
  }
@@ -171,7 +171,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
171
171
  _b.label = 4;
172
172
  case 4:
173
173
  localVarAccessTokenValue = _a;
174
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
174
+ object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
175
175
  _b.label = 5;
176
176
  case 5: return [2 /*return*/];
177
177
  }
@@ -87,4 +87,10 @@ export declare class Configuration {
87
87
  * @return True if the given MIME is JSON, false otherwise.
88
88
  */
89
89
  isJsonMime(mime: string): boolean;
90
+ /**
91
+ * Returns "Bearer" token.
92
+ * @param token - access token.
93
+ * @return Bearer token.
94
+ */
95
+ getBearerToken(token?: string): string;
90
96
  }
@@ -39,6 +39,14 @@ var Configuration = /** @class */ (function () {
39
39
  var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
40
40
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
41
41
  };
42
+ /**
43
+ * Returns "Bearer" token.
44
+ * @param token - access token.
45
+ * @return Bearer token.
46
+ */
47
+ Configuration.prototype.getBearerToken = function (token) {
48
+ return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
49
+ };
42
50
  return Configuration;
43
51
  }());
44
52
  exports.Configuration = Configuration;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateTenantDbConfigRequestDto
16
+ */
17
+ export interface CreateTenantDbConfigRequestDto {
18
+ /**
19
+ * Tenant Slug
20
+ * @type {string}
21
+ * @memberof CreateTenantDbConfigRequestDto
22
+ */
23
+ 'tenantSlug': string;
24
+ /**
25
+ * Tenant DB Config
26
+ * @type {object}
27
+ * @memberof CreateTenantDbConfigRequestDto
28
+ */
29
+ 'config': object;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export * from './create-dashboard-request-dto';
10
10
  export * from './create-dashboard-response-class';
11
11
  export * from './create-data-report-request-dto';
12
12
  export * from './create-data-report-response-class';
13
+ export * from './create-tenant-db-config-request-dto';
13
14
  export * from './create-tenant-request-dto';
14
15
  export * from './custom-field-dto';
15
16
  export * from './custom-schema-class';
@@ -59,7 +60,9 @@ export * from './org-invitation-class';
59
60
  export * from './org-invitation-response-class';
60
61
  export * from './organization-class';
61
62
  export * from './permission-class';
63
+ export * from './publish-dashboard-request-dto';
62
64
  export * from './re-invite-org-request-dto';
65
+ export * from './revert-analysis-request-dto';
63
66
  export * from './role-class';
64
67
  export * from './run-data-report-request-dto';
65
68
  export * from './run-data-report-response-class';
@@ -26,6 +26,7 @@ __exportStar(require("./create-dashboard-request-dto"), exports);
26
26
  __exportStar(require("./create-dashboard-response-class"), exports);
27
27
  __exportStar(require("./create-data-report-request-dto"), exports);
28
28
  __exportStar(require("./create-data-report-response-class"), exports);
29
+ __exportStar(require("./create-tenant-db-config-request-dto"), exports);
29
30
  __exportStar(require("./create-tenant-request-dto"), exports);
30
31
  __exportStar(require("./custom-field-dto"), exports);
31
32
  __exportStar(require("./custom-schema-class"), exports);
@@ -75,7 +76,9 @@ __exportStar(require("./org-invitation-class"), exports);
75
76
  __exportStar(require("./org-invitation-response-class"), exports);
76
77
  __exportStar(require("./organization-class"), exports);
77
78
  __exportStar(require("./permission-class"), exports);
79
+ __exportStar(require("./publish-dashboard-request-dto"), exports);
78
80
  __exportStar(require("./re-invite-org-request-dto"), exports);
81
+ __exportStar(require("./revert-analysis-request-dto"), exports);
79
82
  __exportStar(require("./role-class"), exports);
80
83
  __exportStar(require("./run-data-report-request-dto"), exports);
81
84
  __exportStar(require("./run-data-report-response-class"), exports);