@emilgroup/tenant-sdk-node 1.30.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/invite-users-api.ts +4 -4
  4. package/api/organization-migration-api.ts +683 -0
  5. package/api/users-api.ts +4 -4
  6. package/api.ts +2 -0
  7. package/base.ts +45 -3
  8. package/dist/api/invite-users-api.d.ts +4 -4
  9. package/dist/api/invite-users-api.js +3 -3
  10. package/dist/api/organization-migration-api.d.ts +385 -0
  11. package/dist/api/organization-migration-api.js +639 -0
  12. package/dist/api/users-api.d.ts +4 -4
  13. package/dist/api/users-api.js +3 -3
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.d.ts +11 -2
  17. package/dist/base.js +42 -3
  18. package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
  19. package/dist/models/create-organization-migration-request-dto.js +15 -0
  20. package/dist/models/create-organization-migration-response-class.d.ts +25 -0
  21. package/dist/models/create-organization-migration-response-class.js +15 -0
  22. package/dist/models/create-resources-migration-request-dto.d.ts +36 -0
  23. package/dist/models/create-resources-migration-request-dto.js +15 -0
  24. package/dist/models/get-organization-migration-response-class.d.ts +25 -0
  25. package/dist/models/get-organization-migration-response-class.js +15 -0
  26. package/dist/models/index.d.ts +8 -0
  27. package/dist/models/index.js +8 -0
  28. package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
  29. package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
  30. package/dist/models/list-organization-migrations-response-class.js +15 -0
  31. package/dist/models/organization-migration-class.d.ts +81 -0
  32. package/dist/models/organization-migration-class.js +24 -0
  33. package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
  34. package/dist/models/revert-organization-migration-request-dto.js +15 -0
  35. package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
  36. package/dist/models/revert-organization-migration-response-class.js +15 -0
  37. package/models/create-organization-migration-request-dto.ts +48 -0
  38. package/models/create-organization-migration-response-class.ts +31 -0
  39. package/models/create-resources-migration-request-dto.ts +42 -0
  40. package/models/get-organization-migration-response-class.ts +31 -0
  41. package/models/index.ts +8 -0
  42. package/models/link-user-with-partner-request-dto-rest.ts +6 -0
  43. package/models/list-organization-migrations-response-class.ts +49 -0
  44. package/models/organization-migration-class.ts +90 -0
  45. package/models/revert-organization-migration-request-dto.ts +36 -0
  46. package/models/revert-organization-migration-response-class.ts +31 -0
  47. package/package.json +1 -1
@@ -89,7 +89,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
89
89
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
90
90
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
91
91
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
92
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
92
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
93
93
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
94
94
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
95
95
  * @param {*} [options] Override http request option.
@@ -162,7 +162,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
162
162
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
163
163
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
164
164
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
165
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
165
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
166
166
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
167
167
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
168
168
  * @param {*} [options] Override http request option.
@@ -235,7 +235,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
235
235
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
236
236
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
237
237
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
238
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
238
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
239
239
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
240
240
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
241
241
  * @param {*} [options] Override http request option.
@@ -412,7 +412,7 @@ export interface UsersApiListUsersRequest {
412
412
  */
413
413
  readonly search?: string;
414
414
  /**
415
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
415
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
416
416
  * @type {string}
417
417
  * @memberof UsersApiListUsers
418
418
  */
@@ -404,7 +404,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
404
404
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
405
405
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
406
406
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
407
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
407
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
408
408
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
409
409
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
410
410
  * @param {*} [options] Override http request option.
@@ -610,7 +610,7 @@ var UsersApiFp = function (configuration) {
610
610
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
611
611
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
612
612
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
613
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
613
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
614
614
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
615
615
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
616
616
  * @param {*} [options] Override http request option.
@@ -711,7 +711,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
711
711
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
712
712
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
713
713
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
714
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
714
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
715
715
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
716
716
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
717
717
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from './api/health-check-api';
19
19
  export * from './api/invite-organizations-api';
20
20
  export * from './api/invite-users-api';
21
21
  export * from './api/list-organization-invitations-api';
22
+ export * from './api/organization-migration-api';
22
23
  export * from './api/organizations-api';
23
24
  export * from './api/re-invite-an-organization-api';
24
25
  export * from './api/roles-api';
package/dist/api.js CHANGED
@@ -37,6 +37,7 @@ __exportStar(require("./api/health-check-api"), exports);
37
37
  __exportStar(require("./api/invite-organizations-api"), exports);
38
38
  __exportStar(require("./api/invite-users-api"), exports);
39
39
  __exportStar(require("./api/list-organization-invitations-api"), exports);
40
+ __exportStar(require("./api/organization-migration-api"), exports);
40
41
  __exportStar(require("./api/organizations-api"), exports);
41
42
  __exportStar(require("./api/re-invite-an-organization-api"), exports);
42
43
  __exportStar(require("./api/roles-api"), exports);
package/dist/base.d.ts CHANGED
@@ -26,6 +26,14 @@ export interface LoginClass {
26
26
  accessToken: string;
27
27
  permissions: string;
28
28
  }
29
+ export interface SwitchWorkspaceRequest {
30
+ username: string;
31
+ targetWorkspace: string;
32
+ }
33
+ export interface SwitchWorkspaceResponseClass {
34
+ accessToken: string;
35
+ permissions: string;
36
+ }
29
37
  export declare enum Environment {
30
38
  Production = "https://apiv2.emil.de",
31
39
  Test = "https://apiv2-test.emil.de",
@@ -55,12 +63,13 @@ export declare class BaseAPI {
55
63
  private username?;
56
64
  private password?;
57
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
58
- initialize(env?: Environment): Promise<void>;
66
+ initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
59
67
  private loadCredentials;
60
68
  private readConfigFile;
61
69
  private readEnvVariables;
62
70
  selectEnvironment(env: Environment): void;
63
- authorize(username: string, password: string): Promise<void>;
71
+ authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
72
+ switchWorkspace(targetWorkspace: string): Promise<void>;
64
73
  refreshTokenInternal(): Promise<string>;
65
74
  private extractRefreshToken;
66
75
  getConfiguration(): Configuration;
package/dist/base.js CHANGED
@@ -162,7 +162,7 @@ var BaseAPI = /** @class */ (function () {
162
162
  }
163
163
  this.attachInterceptor(axios);
164
164
  }
165
- BaseAPI.prototype.initialize = function (env) {
165
+ BaseAPI.prototype.initialize = function (env, targetWorkspace) {
166
166
  if (env === void 0) { env = Environment.Production; }
167
167
  return __awaiter(this, void 0, void 0, function () {
168
168
  return __generator(this, function (_a) {
@@ -173,7 +173,7 @@ var BaseAPI = /** @class */ (function () {
173
173
  case 1:
174
174
  _a.sent();
175
175
  if (!this.username) return [3 /*break*/, 3];
176
- return [4 /*yield*/, this.authorize(this.username, this.password)];
176
+ return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)];
177
177
  case 2:
178
178
  _a.sent();
179
179
  this.password = null; // to avoid keeping password loaded in memory.
@@ -243,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
243
243
  BaseAPI.prototype.selectEnvironment = function (env) {
244
244
  this.configuration.basePath = env;
245
245
  };
246
- BaseAPI.prototype.authorize = function (username, password) {
246
+ BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
247
247
  return __awaiter(this, void 0, void 0, function () {
248
248
  var options, response, accessToken, refreshToken;
249
249
  return __generator(this, function (_a) {
@@ -267,6 +267,45 @@ var BaseAPI = /** @class */ (function () {
267
267
  this.configuration.accessToken = "Bearer ".concat(accessToken);
268
268
  refreshToken = this.extractRefreshToken(response);
269
269
  this.configuration.refreshToken = refreshToken;
270
+ if (!targetWorkspace) return [3 /*break*/, 3];
271
+ return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
272
+ case 2:
273
+ _a.sent();
274
+ _a.label = 3;
275
+ case 3: return [2 /*return*/];
276
+ }
277
+ });
278
+ });
279
+ };
280
+ BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
281
+ return __awaiter(this, void 0, void 0, function () {
282
+ var options, response, accessToken, refreshToken;
283
+ return __generator(this, function (_a) {
284
+ switch (_a.label) {
285
+ case 0:
286
+ options = {
287
+ method: 'POST',
288
+ url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
289
+ headers: {
290
+ 'Content-Type': 'application/json',
291
+ 'Authorization': "Bearer ".concat(this.configuration.accessToken),
292
+ 'Cookie': this.configuration.refreshToken,
293
+ },
294
+ data: {
295
+ username: this.configuration.username,
296
+ targetWorkspace: targetWorkspace,
297
+ },
298
+ withCredentials: true,
299
+ };
300
+ return [4 /*yield*/, axios_1.default.request(options)];
301
+ case 1:
302
+ response = _a.sent();
303
+ accessToken = response.data.accessToken;
304
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
305
+ refreshToken = this.extractRefreshToken(response);
306
+ if (refreshToken) {
307
+ this.configuration.refreshToken = refreshToken;
308
+ }
270
309
  return [2 /*return*/];
271
310
  }
272
311
  });
@@ -0,0 +1,42 @@
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 CreateOrganizationMigrationRequestDto
16
+ */
17
+ export interface CreateOrganizationMigrationRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateOrganizationMigrationRequestDto
22
+ */
23
+ 'source': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateOrganizationMigrationRequestDto
28
+ */
29
+ 'target': string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CreateOrganizationMigrationRequestDto
34
+ */
35
+ 'dryRun'?: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CreateOrganizationMigrationRequestDto
40
+ */
41
+ 'onlySubtenants'?: boolean;
42
+ }
@@ -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 });
@@ -0,0 +1,25 @@
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
+ import { OrganizationMigrationClass } from './organization-migration-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateOrganizationMigrationResponseClass
17
+ */
18
+ export interface CreateOrganizationMigrationResponseClass {
19
+ /**
20
+ * Organization Migration
21
+ * @type {OrganizationMigrationClass}
22
+ * @memberof CreateOrganizationMigrationResponseClass
23
+ */
24
+ 'organizationMigration': OrganizationMigrationClass;
25
+ }
@@ -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 });
@@ -0,0 +1,36 @@
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 CreateResourcesMigrationRequestDto
16
+ */
17
+ export interface CreateResourcesMigrationRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateResourcesMigrationRequestDto
22
+ */
23
+ 'source': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateResourcesMigrationRequestDto
28
+ */
29
+ 'target': string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CreateResourcesMigrationRequestDto
34
+ */
35
+ 'dryRun'?: boolean;
36
+ }
@@ -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 });
@@ -0,0 +1,25 @@
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
+ import { OrganizationMigrationClass } from './organization-migration-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetOrganizationMigrationResponseClass
17
+ */
18
+ export interface GetOrganizationMigrationResponseClass {
19
+ /**
20
+ * Organization Migration
21
+ * @type {OrganizationMigrationClass}
22
+ * @memberof GetOrganizationMigrationResponseClass
23
+ */
24
+ 'organizationMigration': OrganizationMigrationClass;
25
+ }
@@ -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,9 @@ 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-organization-migration-request-dto';
14
+ export * from './create-organization-migration-response-class';
15
+ export * from './create-resources-migration-request-dto';
13
16
  export * from './create-tenant-request-dto';
14
17
  export * from './custom-field-dto';
15
18
  export * from './custom-schema-class';
@@ -32,6 +35,7 @@ export * from './get-dashboard-group-response-class';
32
35
  export * from './get-dashboard-response-class';
33
36
  export * from './get-data-report-response-class';
34
37
  export * from './get-embedded-url-response-class';
38
+ export * from './get-organization-migration-response-class';
35
39
  export * from './get-organization-response-class';
36
40
  export * from './get-settings-response-class';
37
41
  export * from './get-user-response-class';
@@ -52,16 +56,20 @@ export * from './list-dashboards-response-class';
52
56
  export * from './list-data-reports-response-class';
53
57
  export * from './list-invites-response-class';
54
58
  export * from './list-org-invitations-response-class';
59
+ export * from './list-organization-migrations-response-class';
55
60
  export * from './list-organizations-response-class';
56
61
  export * from './list-roles-response-class';
57
62
  export * from './list-users-response-class';
58
63
  export * from './org-invitation-class';
59
64
  export * from './org-invitation-response-class';
60
65
  export * from './organization-class';
66
+ export * from './organization-migration-class';
61
67
  export * from './permission-class';
62
68
  export * from './publish-dashboard-request-dto';
63
69
  export * from './re-invite-org-request-dto';
64
70
  export * from './revert-analysis-request-dto';
71
+ export * from './revert-organization-migration-request-dto';
72
+ export * from './revert-organization-migration-response-class';
65
73
  export * from './role-class';
66
74
  export * from './run-data-report-request-dto';
67
75
  export * from './run-data-report-response-class';
@@ -26,6 +26,9 @@ __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-organization-migration-request-dto"), exports);
30
+ __exportStar(require("./create-organization-migration-response-class"), exports);
31
+ __exportStar(require("./create-resources-migration-request-dto"), exports);
29
32
  __exportStar(require("./create-tenant-request-dto"), exports);
30
33
  __exportStar(require("./custom-field-dto"), exports);
31
34
  __exportStar(require("./custom-schema-class"), exports);
@@ -48,6 +51,7 @@ __exportStar(require("./get-dashboard-group-response-class"), exports);
48
51
  __exportStar(require("./get-dashboard-response-class"), exports);
49
52
  __exportStar(require("./get-data-report-response-class"), exports);
50
53
  __exportStar(require("./get-embedded-url-response-class"), exports);
54
+ __exportStar(require("./get-organization-migration-response-class"), exports);
51
55
  __exportStar(require("./get-organization-response-class"), exports);
52
56
  __exportStar(require("./get-settings-response-class"), exports);
53
57
  __exportStar(require("./get-user-response-class"), exports);
@@ -68,16 +72,20 @@ __exportStar(require("./list-dashboards-response-class"), exports);
68
72
  __exportStar(require("./list-data-reports-response-class"), exports);
69
73
  __exportStar(require("./list-invites-response-class"), exports);
70
74
  __exportStar(require("./list-org-invitations-response-class"), exports);
75
+ __exportStar(require("./list-organization-migrations-response-class"), exports);
71
76
  __exportStar(require("./list-organizations-response-class"), exports);
72
77
  __exportStar(require("./list-roles-response-class"), exports);
73
78
  __exportStar(require("./list-users-response-class"), exports);
74
79
  __exportStar(require("./org-invitation-class"), exports);
75
80
  __exportStar(require("./org-invitation-response-class"), exports);
76
81
  __exportStar(require("./organization-class"), exports);
82
+ __exportStar(require("./organization-migration-class"), exports);
77
83
  __exportStar(require("./permission-class"), exports);
78
84
  __exportStar(require("./publish-dashboard-request-dto"), exports);
79
85
  __exportStar(require("./re-invite-org-request-dto"), exports);
80
86
  __exportStar(require("./revert-analysis-request-dto"), exports);
87
+ __exportStar(require("./revert-organization-migration-request-dto"), exports);
88
+ __exportStar(require("./revert-organization-migration-response-class"), exports);
81
89
  __exportStar(require("./role-class"), exports);
82
90
  __exportStar(require("./run-data-report-request-dto"), exports);
83
91
  __exportStar(require("./run-data-report-response-class"), exports);
@@ -27,4 +27,10 @@ export interface LinkUserWithPartnerRequestDtoRest {
27
27
  * @memberof LinkUserWithPartnerRequestDtoRest
28
28
  */
29
29
  'partnerCode'?: string;
30
+ /**
31
+ * The type of the partner that will be linked with the user, only if shouldCreateNewPartner is true
32
+ * @type {string}
33
+ * @memberof LinkUserWithPartnerRequestDtoRest
34
+ */
35
+ 'partnerTypeSlug'?: string;
30
36
  }
@@ -0,0 +1,43 @@
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
+ import { OrganizationMigrationClass } from './organization-migration-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListOrganizationMigrationsResponseClass
17
+ */
18
+ export interface ListOrganizationMigrationsResponseClass {
19
+ /**
20
+ * Organization Migrations
21
+ * @type {Array<OrganizationMigrationClass>}
22
+ * @memberof ListOrganizationMigrationsResponseClass
23
+ */
24
+ 'items': Array<OrganizationMigrationClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListOrganizationMigrationsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListOrganizationMigrationsResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListOrganizationMigrationsResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -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 });
@@ -0,0 +1,81 @@
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 OrganizationMigrationClass
16
+ */
17
+ export interface OrganizationMigrationClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof OrganizationMigrationClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof OrganizationMigrationClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Source tenant identifier
32
+ * @type {string}
33
+ * @memberof OrganizationMigrationClass
34
+ */
35
+ 'source': string;
36
+ /**
37
+ * Target tenant identifier
38
+ * @type {string}
39
+ * @memberof OrganizationMigrationClass
40
+ */
41
+ 'target': string;
42
+ /**
43
+ * Status of the organization migration
44
+ * @type {string}
45
+ * @memberof OrganizationMigrationClass
46
+ */
47
+ 'status': OrganizationMigrationClassStatusEnum;
48
+ /**
49
+ * Time at which the object was created.
50
+ * @type {string}
51
+ * @memberof OrganizationMigrationClass
52
+ */
53
+ 'createdAt': string;
54
+ /**
55
+ * Time at which the object was updated.
56
+ * @type {string}
57
+ * @memberof OrganizationMigrationClass
58
+ */
59
+ 'updatedAt': string;
60
+ /**
61
+ * Identifier of the user who created the record.
62
+ * @type {string}
63
+ * @memberof OrganizationMigrationClass
64
+ */
65
+ 'createdBy': string;
66
+ /**
67
+ * Identifier of the user who last updated the record.
68
+ * @type {string}
69
+ * @memberof OrganizationMigrationClass
70
+ */
71
+ 'updatedBy': string;
72
+ }
73
+ export declare const OrganizationMigrationClassStatusEnum: {
74
+ readonly Queued: "queued";
75
+ readonly InProgress: "in_progress";
76
+ readonly Completed: "completed";
77
+ readonly Failed: "failed";
78
+ readonly Reverting: "reverting";
79
+ readonly Reverted: "reverted";
80
+ };
81
+ export type OrganizationMigrationClassStatusEnum = typeof OrganizationMigrationClassStatusEnum[keyof typeof OrganizationMigrationClassStatusEnum];