@emilgroup/tenant-sdk 1.31.1-beta.2 → 1.32.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.
- package/.openapi-generator/FILES +1 -2
- package/README.md +2 -2
- package/api/dashboard-api.ts +46 -193
- package/api/invite-users-api.ts +4 -4
- package/api/organization-migration-api.ts +113 -8
- package/base.ts +6 -1
- package/dist/api/dashboard-api.d.ts +42 -139
- package/dist/api/dashboard-api.js +44 -177
- package/dist/api/invite-users-api.d.ts +4 -4
- package/dist/api/invite-users-api.js +3 -3
- package/dist/api/organization-migration-api.d.ts +64 -8
- package/dist/api/organization-migration-api.js +101 -8
- package/dist/base.js +5 -1
- package/dist/models/{create-dashboard-v2-request-dto.d.ts → create-resources-migration-request-dto.d.ts} +12 -12
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/models/{create-dashboard-v2-request-dto.ts → create-resources-migration-request-dto.ts} +12 -12
- package/models/index.ts +1 -2
- package/package.json +1 -1
- package/dist/models/create-dashboard-v2-response-class.d.ts +0 -25
- package/dist/models/create-dashboard-v2-response-class.js +0 -15
- package/models/create-dashboard-v2-response-class.ts +0 -31
- /package/dist/models/{create-dashboard-v2-request-dto.js → create-resources-migration-request-dto.js} +0 -0
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateOrganizationMigrationRequestDto } from '../models';
|
|
16
16
|
import { CreateOrganizationMigrationResponseClass } from '../models';
|
|
17
|
+
import { CreateResourcesMigrationRequestDto } from '../models';
|
|
17
18
|
import { GetOrganizationMigrationResponseClass } from '../models';
|
|
18
19
|
import { ListOrganizationMigrationsResponseClass } from '../models';
|
|
19
20
|
import { RevertOrganizationMigrationRequestDto } from '../models';
|
|
@@ -24,14 +25,23 @@ import { RevertOrganizationMigrationResponseClass } from '../models';
|
|
|
24
25
|
*/
|
|
25
26
|
export declare const OrganizationMigrationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
27
|
/**
|
|
27
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
28
|
-
* @summary Create organization migration
|
|
28
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
29
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
29
30
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
30
31
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
31
32
|
* @param {*} [options] Override http request option.
|
|
32
33
|
* @throws {RequiredError}
|
|
33
34
|
*/
|
|
34
35
|
createOrganizationMigration: (createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
38
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
39
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
createResourcesMigration: (createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
45
|
/**
|
|
36
46
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
37
47
|
* @summary Get organization migration
|
|
@@ -73,14 +83,23 @@ export declare const OrganizationMigrationApiAxiosParamCreator: (configuration?:
|
|
|
73
83
|
*/
|
|
74
84
|
export declare const OrganizationMigrationApiFp: (configuration?: Configuration) => {
|
|
75
85
|
/**
|
|
76
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
77
|
-
* @summary Create organization migration
|
|
86
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
87
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
78
88
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
79
89
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
80
90
|
* @param {*} [options] Override http request option.
|
|
81
91
|
* @throws {RequiredError}
|
|
82
92
|
*/
|
|
83
93
|
createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>>;
|
|
94
|
+
/**
|
|
95
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
96
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
97
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>>;
|
|
84
103
|
/**
|
|
85
104
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
86
105
|
* @summary Get organization migration
|
|
@@ -122,14 +141,23 @@ export declare const OrganizationMigrationApiFp: (configuration?: Configuration)
|
|
|
122
141
|
*/
|
|
123
142
|
export declare const OrganizationMigrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
124
143
|
/**
|
|
125
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
126
|
-
* @summary Create organization migration
|
|
144
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
145
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
127
146
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
128
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
148
|
* @param {*} [options] Override http request option.
|
|
130
149
|
* @throws {RequiredError}
|
|
131
150
|
*/
|
|
132
151
|
createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass>;
|
|
152
|
+
/**
|
|
153
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
154
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
155
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass>;
|
|
133
161
|
/**
|
|
134
162
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
135
163
|
* @summary Get organization migration
|
|
@@ -184,6 +212,25 @@ export interface OrganizationMigrationApiCreateOrganizationMigrationRequest {
|
|
|
184
212
|
*/
|
|
185
213
|
readonly authorization?: string;
|
|
186
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Request parameters for createResourcesMigration operation in OrganizationMigrationApi.
|
|
217
|
+
* @export
|
|
218
|
+
* @interface OrganizationMigrationApiCreateResourcesMigrationRequest
|
|
219
|
+
*/
|
|
220
|
+
export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @type {CreateResourcesMigrationRequestDto}
|
|
224
|
+
* @memberof OrganizationMigrationApiCreateResourcesMigration
|
|
225
|
+
*/
|
|
226
|
+
readonly createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto;
|
|
227
|
+
/**
|
|
228
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof OrganizationMigrationApiCreateResourcesMigration
|
|
231
|
+
*/
|
|
232
|
+
readonly authorization?: string;
|
|
233
|
+
}
|
|
187
234
|
/**
|
|
188
235
|
* Request parameters for getOrganizationMigration operation in OrganizationMigrationApi.
|
|
189
236
|
* @export
|
|
@@ -291,14 +338,23 @@ export interface OrganizationMigrationApiRevertOrganizationMigrationRequest {
|
|
|
291
338
|
*/
|
|
292
339
|
export declare class OrganizationMigrationApi extends BaseAPI {
|
|
293
340
|
/**
|
|
294
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
295
|
-
* @summary Create organization migration
|
|
341
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
342
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
296
343
|
* @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
|
|
297
344
|
* @param {*} [options] Override http request option.
|
|
298
345
|
* @throws {RequiredError}
|
|
299
346
|
* @memberof OrganizationMigrationApi
|
|
300
347
|
*/
|
|
301
348
|
createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any>>;
|
|
349
|
+
/**
|
|
350
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
351
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
352
|
+
* @param {OrganizationMigrationApiCreateResourcesMigrationRequest} requestParameters Request parameters.
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof OrganizationMigrationApi
|
|
356
|
+
*/
|
|
357
|
+
createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any>>;
|
|
302
358
|
/**
|
|
303
359
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
304
360
|
* @summary Get organization migration
|
|
@@ -93,8 +93,8 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
97
|
-
* @summary Create organization migration
|
|
96
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
97
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
98
98
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
@@ -141,6 +141,55 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
+
/**
|
|
145
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
146
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
147
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
createResourcesMigration: function (createResourcesMigrationRequestDto, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'createResourcesMigrationRequestDto' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('createResourcesMigration', 'createResourcesMigrationRequestDto', createResourcesMigrationRequestDto);
|
|
161
|
+
localVarPath = "/tenantservice/v1/organization-migrations/resources";
|
|
162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createResourcesMigrationRequestDto, localVarRequestOptions, configuration);
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
},
|
|
144
193
|
/**
|
|
145
194
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
146
195
|
* @summary Get organization migration
|
|
@@ -323,8 +372,8 @@ var OrganizationMigrationApiFp = function (configuration) {
|
|
|
323
372
|
var localVarAxiosParamCreator = (0, exports.OrganizationMigrationApiAxiosParamCreator)(configuration);
|
|
324
373
|
return {
|
|
325
374
|
/**
|
|
326
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
327
|
-
* @summary Create organization migration
|
|
375
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
376
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
328
377
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
329
378
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
330
379
|
* @param {*} [options] Override http request option.
|
|
@@ -343,6 +392,27 @@ var OrganizationMigrationApiFp = function (configuration) {
|
|
|
343
392
|
});
|
|
344
393
|
});
|
|
345
394
|
},
|
|
395
|
+
/**
|
|
396
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
397
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
398
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
399
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
createResourcesMigration: function (createResourcesMigrationRequestDto, authorization, options) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
405
|
+
var localVarAxiosArgs;
|
|
406
|
+
return __generator(this, function (_a) {
|
|
407
|
+
switch (_a.label) {
|
|
408
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options)];
|
|
409
|
+
case 1:
|
|
410
|
+
localVarAxiosArgs = _a.sent();
|
|
411
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
},
|
|
346
416
|
/**
|
|
347
417
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
348
418
|
* @summary Get organization migration
|
|
@@ -424,8 +494,8 @@ var OrganizationMigrationApiFactory = function (configuration, basePath, axios)
|
|
|
424
494
|
var localVarFp = (0, exports.OrganizationMigrationApiFp)(configuration);
|
|
425
495
|
return {
|
|
426
496
|
/**
|
|
427
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
428
|
-
* @summary Create organization migration
|
|
497
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
498
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
429
499
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
430
500
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
501
|
* @param {*} [options] Override http request option.
|
|
@@ -434,6 +504,17 @@ var OrganizationMigrationApiFactory = function (configuration, basePath, axios)
|
|
|
434
504
|
createOrganizationMigration: function (createOrganizationMigrationRequestDto, authorization, options) {
|
|
435
505
|
return localVarFp.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
436
506
|
},
|
|
507
|
+
/**
|
|
508
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
509
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
510
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
511
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
createResourcesMigration: function (createResourcesMigrationRequestDto, authorization, options) {
|
|
516
|
+
return localVarFp.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
517
|
+
},
|
|
437
518
|
/**
|
|
438
519
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
439
520
|
* @summary Get organization migration
|
|
@@ -489,8 +570,8 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
489
570
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
490
571
|
}
|
|
491
572
|
/**
|
|
492
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
493
|
-
* @summary Create organization migration
|
|
573
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
574
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
494
575
|
* @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
|
|
495
576
|
* @param {*} [options] Override http request option.
|
|
496
577
|
* @throws {RequiredError}
|
|
@@ -500,6 +581,18 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
500
581
|
var _this = this;
|
|
501
582
|
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
502
583
|
};
|
|
584
|
+
/**
|
|
585
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
586
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
587
|
+
* @param {OrganizationMigrationApiCreateResourcesMigrationRequest} requestParameters Request parameters.
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
* @memberof OrganizationMigrationApi
|
|
591
|
+
*/
|
|
592
|
+
OrganizationMigrationApi.prototype.createResourcesMigration = function (requestParameters, options) {
|
|
593
|
+
var _this = this;
|
|
594
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
595
|
+
};
|
|
503
596
|
/**
|
|
504
597
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
505
598
|
* @summary Get organization migration
|
package/dist/base.js
CHANGED
|
@@ -124,9 +124,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
124
124
|
this.axios = axios;
|
|
125
125
|
this.loadTokenData();
|
|
126
126
|
if (configuration) {
|
|
127
|
+
var accessToken = this.tokenData.accessToken;
|
|
127
128
|
this.configuration = configuration;
|
|
128
129
|
this.basePath = configuration.basePath || this.basePath;
|
|
129
|
-
|
|
130
|
+
// Use config token if provided, otherwise use tokenData token
|
|
131
|
+
var configToken = this.configuration.accessToken;
|
|
132
|
+
var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
|
|
133
|
+
this.configuration.accessToken = configToken || storedToken;
|
|
130
134
|
}
|
|
131
135
|
else {
|
|
132
136
|
var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface CreateResourcesMigrationRequestDto
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface CreateResourcesMigrationRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'source': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'target': string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
33
|
-
* @memberof
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'dryRun'?: boolean;
|
|
36
36
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,12 +8,11 @@ export * from './create-dashboard-group-request-dto';
|
|
|
8
8
|
export * from './create-dashboard-group-response-class';
|
|
9
9
|
export * from './create-dashboard-request-dto';
|
|
10
10
|
export * from './create-dashboard-response-class';
|
|
11
|
-
export * from './create-dashboard-v2-request-dto';
|
|
12
|
-
export * from './create-dashboard-v2-response-class';
|
|
13
11
|
export * from './create-data-report-request-dto';
|
|
14
12
|
export * from './create-data-report-response-class';
|
|
15
13
|
export * from './create-organization-migration-request-dto';
|
|
16
14
|
export * from './create-organization-migration-response-class';
|
|
15
|
+
export * from './create-resources-migration-request-dto';
|
|
17
16
|
export * from './create-tenant-request-dto';
|
|
18
17
|
export * from './custom-field-dto';
|
|
19
18
|
export * from './custom-schema-class';
|
package/dist/models/index.js
CHANGED
|
@@ -24,12 +24,11 @@ __exportStar(require("./create-dashboard-group-request-dto"), exports);
|
|
|
24
24
|
__exportStar(require("./create-dashboard-group-response-class"), exports);
|
|
25
25
|
__exportStar(require("./create-dashboard-request-dto"), exports);
|
|
26
26
|
__exportStar(require("./create-dashboard-response-class"), exports);
|
|
27
|
-
__exportStar(require("./create-dashboard-v2-request-dto"), exports);
|
|
28
|
-
__exportStar(require("./create-dashboard-v2-response-class"), exports);
|
|
29
27
|
__exportStar(require("./create-data-report-request-dto"), exports);
|
|
30
28
|
__exportStar(require("./create-data-report-response-class"), exports);
|
|
31
29
|
__exportStar(require("./create-organization-migration-request-dto"), exports);
|
|
32
30
|
__exportStar(require("./create-organization-migration-response-class"), exports);
|
|
31
|
+
__exportStar(require("./create-resources-migration-request-dto"), exports);
|
|
33
32
|
__exportStar(require("./create-tenant-request-dto"), exports);
|
|
34
33
|
__exportStar(require("./custom-field-dto"), exports);
|
|
35
34
|
__exportStar(require("./custom-schema-class"), exports);
|
package/models/{create-dashboard-v2-request-dto.ts → create-resources-migration-request-dto.ts}
RENAMED
|
@@ -17,26 +17,26 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface CreateResourcesMigrationRequestDto
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface CreateResourcesMigrationRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
25
|
* @type {string}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'source': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'target': string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
38
|
-
* @memberof
|
|
36
|
+
*
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof CreateResourcesMigrationRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'dryRun'?: boolean;
|
|
41
41
|
}
|
|
42
42
|
|
package/models/index.ts
CHANGED
|
@@ -8,12 +8,11 @@ export * from './create-dashboard-group-request-dto';
|
|
|
8
8
|
export * from './create-dashboard-group-response-class';
|
|
9
9
|
export * from './create-dashboard-request-dto';
|
|
10
10
|
export * from './create-dashboard-response-class';
|
|
11
|
-
export * from './create-dashboard-v2-request-dto';
|
|
12
|
-
export * from './create-dashboard-v2-response-class';
|
|
13
11
|
export * from './create-data-report-request-dto';
|
|
14
12
|
export * from './create-data-report-response-class';
|
|
15
13
|
export * from './create-organization-migration-request-dto';
|
|
16
14
|
export * from './create-organization-migration-response-class';
|
|
15
|
+
export * from './create-resources-migration-request-dto';
|
|
17
16
|
export * from './create-tenant-request-dto';
|
|
18
17
|
export * from './custom-field-dto';
|
|
19
18
|
export * from './custom-schema-class';
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
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 { DashboardClass } from './dashboard-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateDashboardV2ResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateDashboardV2ResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* Dashboard
|
|
21
|
-
* @type {DashboardClass}
|
|
22
|
-
* @memberof CreateDashboardV2ResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'dashboard': DashboardClass;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 });
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL Tenant Service
|
|
5
|
-
* The EMIL TenantService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { DashboardClass } from './dashboard-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreateDashboardV2ResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateDashboardV2ResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Dashboard
|
|
26
|
-
* @type {DashboardClass}
|
|
27
|
-
* @memberof CreateDashboardV2ResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'dashboard': DashboardClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
File without changes
|