@emilgroup/tenant-sdk-node 1.29.1-beta.1 → 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 (64) 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/custom-schema-api.js +14 -39
  9. package/dist/api/dashboard-api.js +29 -74
  10. package/dist/api/dashboard-group-api.js +17 -46
  11. package/dist/api/data-report-api.js +14 -39
  12. package/dist/api/data-report-executor-api.js +5 -18
  13. package/dist/api/delete-organization-invitations-api.js +5 -18
  14. package/dist/api/health-check-api.js +5 -18
  15. package/dist/api/invite-organizations-api.js +5 -18
  16. package/dist/api/invite-users-api.d.ts +4 -4
  17. package/dist/api/invite-users-api.js +17 -42
  18. package/dist/api/list-organization-invitations-api.js +5 -18
  19. package/dist/api/organization-migration-api.d.ts +385 -0
  20. package/dist/api/organization-migration-api.js +639 -0
  21. package/dist/api/organizations-api.js +11 -32
  22. package/dist/api/re-invite-an-organization-api.js +5 -18
  23. package/dist/api/roles-api.js +5 -18
  24. package/dist/api/settings-api.js +5 -18
  25. package/dist/api/users-api.d.ts +4 -4
  26. package/dist/api/users-api.js +26 -63
  27. package/dist/api.d.ts +1 -0
  28. package/dist/api.js +1 -0
  29. package/dist/base.d.ts +11 -2
  30. package/dist/base.js +56 -27
  31. package/dist/common.d.ts +1 -1
  32. package/dist/common.js +2 -2
  33. package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
  34. package/dist/models/create-organization-migration-request-dto.js +15 -0
  35. package/dist/models/create-organization-migration-response-class.d.ts +25 -0
  36. package/dist/models/create-organization-migration-response-class.js +15 -0
  37. package/dist/models/create-resources-migration-request-dto.d.ts +36 -0
  38. package/dist/models/create-resources-migration-request-dto.js +15 -0
  39. package/dist/models/get-organization-migration-response-class.d.ts +25 -0
  40. package/dist/models/get-organization-migration-response-class.js +15 -0
  41. package/dist/models/index.d.ts +8 -0
  42. package/dist/models/index.js +8 -0
  43. package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
  44. package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
  45. package/dist/models/list-organization-migrations-response-class.js +15 -0
  46. package/dist/models/org-invitation-class.d.ts +6 -0
  47. package/dist/models/organization-migration-class.d.ts +81 -0
  48. package/dist/models/organization-migration-class.js +24 -0
  49. package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
  50. package/dist/models/revert-organization-migration-request-dto.js +15 -0
  51. package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
  52. package/dist/models/revert-organization-migration-response-class.js +15 -0
  53. package/models/create-organization-migration-request-dto.ts +48 -0
  54. package/models/create-organization-migration-response-class.ts +31 -0
  55. package/models/create-resources-migration-request-dto.ts +42 -0
  56. package/models/get-organization-migration-response-class.ts +31 -0
  57. package/models/index.ts +8 -0
  58. package/models/link-user-with-partner-request-dto-rest.ts +6 -0
  59. package/models/list-organization-migrations-response-class.ts +49 -0
  60. package/models/org-invitation-class.ts +6 -0
  61. package/models/organization-migration-class.ts +90 -0
  62. package/models/revert-organization-migration-request-dto.ts +36 -0
  63. package/models/revert-organization-migration-response-class.ts +31 -0
  64. package/package.json +4 -4
package/dist/base.js CHANGED
@@ -54,23 +54,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
54
54
  }) : function(o, v) {
55
55
  o["default"] = v;
56
56
  });
57
- var __importStar = (this && this.__importStar) || (function () {
58
- var ownKeys = function(o) {
59
- ownKeys = Object.getOwnPropertyNames || function (o) {
60
- var ar = [];
61
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
62
- return ar;
63
- };
64
- return ownKeys(o);
65
- };
66
- return function (mod) {
67
- if (mod && mod.__esModule) return mod;
68
- var result = {};
69
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
70
- __setModuleDefault(result, mod);
71
- return result;
72
- };
73
- })();
57
+ var __importStar = (this && this.__importStar) || function (mod) {
58
+ if (mod && mod.__esModule) return mod;
59
+ var result = {};
60
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
61
+ __setModuleDefault(result, mod);
62
+ return result;
63
+ };
74
64
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
75
65
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
66
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -81,8 +71,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
81
71
  });
82
72
  };
83
73
  var __generator = (this && this.__generator) || function (thisArg, body) {
84
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
85
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
74
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
75
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86
76
  function verb(n) { return function (v) { return step([n, v]); }; }
87
77
  function step(op) {
88
78
  if (f) throw new TypeError("Generator is already executing.");
@@ -111,8 +101,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
111
101
  return (mod && mod.__esModule) ? mod : { "default": mod };
112
102
  };
113
103
  Object.defineProperty(exports, "__esModule", { value: true });
114
- exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
115
- exports.resetRetry = resetRetry;
104
+ exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
116
105
  var configuration_1 = require("./configuration");
117
106
  // Some imports not used depending on template conditions
118
107
  // @ts-ignore
@@ -143,12 +132,13 @@ var Environment;
143
132
  Environment["Staging"] = "https://apiv2-staging.emil.de";
144
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
145
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
146
- })(Environment || (exports.Environment = Environment = {}));
135
+ })(Environment = exports.Environment || (exports.Environment = {}));
147
136
  var _retry_count = 0;
148
137
  var _retry = null;
149
138
  function resetRetry() {
150
139
  _retry_count = 0;
151
140
  }
141
+ exports.resetRetry = resetRetry;
152
142
  var NETWORK_ERROR_MESSAGE = "Network Error";
153
143
  /**
154
144
  *
@@ -172,9 +162,9 @@ var BaseAPI = /** @class */ (function () {
172
162
  }
173
163
  this.attachInterceptor(axios);
174
164
  }
175
- BaseAPI.prototype.initialize = function () {
176
- return __awaiter(this, arguments, void 0, function (env) {
177
- if (env === void 0) { env = Environment.Production; }
165
+ BaseAPI.prototype.initialize = function (env, targetWorkspace) {
166
+ if (env === void 0) { env = Environment.Production; }
167
+ return __awaiter(this, void 0, void 0, function () {
178
168
  return __generator(this, function (_a) {
179
169
  switch (_a.label) {
180
170
  case 0:
@@ -183,7 +173,7 @@ var BaseAPI = /** @class */ (function () {
183
173
  case 1:
184
174
  _a.sent();
185
175
  if (!this.username) return [3 /*break*/, 3];
186
- return [4 /*yield*/, this.authorize(this.username, this.password)];
176
+ return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)];
187
177
  case 2:
188
178
  _a.sent();
189
179
  this.password = null; // to avoid keeping password loaded in memory.
@@ -253,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
253
243
  BaseAPI.prototype.selectEnvironment = function (env) {
254
244
  this.configuration.basePath = env;
255
245
  };
256
- BaseAPI.prototype.authorize = function (username, password) {
246
+ BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
257
247
  return __awaiter(this, void 0, void 0, function () {
258
248
  var options, response, accessToken, refreshToken;
259
249
  return __generator(this, function (_a) {
@@ -277,6 +267,45 @@ var BaseAPI = /** @class */ (function () {
277
267
  this.configuration.accessToken = "Bearer ".concat(accessToken);
278
268
  refreshToken = this.extractRefreshToken(response);
279
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
+ }
280
309
  return [2 /*return*/];
281
310
  }
282
311
  });
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
68
  * EMIL Tenant Service
69
69
  * The EMIL TenantService API description
package/dist/common.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  });
34
34
  };
35
35
  var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
38
  function verb(n) { return function (v) { return step([n, v]); }; }
39
39
  function step(op) {
40
40
  if (f) throw new TypeError("Generator is already executing.");
@@ -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 });
@@ -34,6 +34,12 @@ export interface OrgInvitationClass {
34
34
  * @memberof OrgInvitationClass
35
35
  */
36
36
  'roles'?: Array<RoleClass>;
37
+ /**
38
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
39
+ * @type {string}
40
+ * @memberof OrgInvitationClass
41
+ */
42
+ 'ern': string;
37
43
  /**
38
44
  * Name of the invited organization.
39
45
  * @type {string}
@@ -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];
@@ -0,0 +1,24 @@
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 });
16
+ exports.OrganizationMigrationClassStatusEnum = void 0;
17
+ exports.OrganizationMigrationClassStatusEnum = {
18
+ Queued: 'queued',
19
+ InProgress: 'in_progress',
20
+ Completed: 'completed',
21
+ Failed: 'failed',
22
+ Reverting: 'reverting',
23
+ Reverted: 'reverted'
24
+ };
@@ -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 RevertOrganizationMigrationRequestDto
16
+ */
17
+ export interface RevertOrganizationMigrationRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RevertOrganizationMigrationRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof RevertOrganizationMigrationRequestDto
28
+ */
29
+ 'dryRun'?: boolean;
30
+ }