@emilgroup/tenant-sdk 1.31.1-beta.2 → 1.31.1-beta.3

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.
@@ -59,7 +59,7 @@ export declare const InviteUsersApiAxiosParamCreator: (configuration?: Configura
59
59
  * @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.
60
60
  * @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, email, token, organizationId, ern, partnerCode</i>
61
61
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
62
- * @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, expiresOn</i>
62
+ * @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, expiresOn</i>
63
63
  * @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: organizations<i>
64
64
  * @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, email, token, organizationId, ern, partnerCode</i>
65
65
  * @param {*} [options] Override http request option.
@@ -107,7 +107,7 @@ export declare const InviteUsersApiFp: (configuration?: Configuration) => {
107
107
  * @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.
108
108
  * @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, email, token, organizationId, ern, partnerCode</i>
109
109
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
110
- * @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, expiresOn</i>
110
+ * @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, expiresOn</i>
111
111
  * @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: organizations<i>
112
112
  * @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, email, token, organizationId, ern, partnerCode</i>
113
113
  * @param {*} [options] Override http request option.
@@ -155,7 +155,7 @@ export declare const InviteUsersApiFactory: (configuration?: Configuration, base
155
155
  * @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.
156
156
  * @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, email, token, organizationId, ern, partnerCode</i>
157
157
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
158
- * @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, expiresOn</i>
158
+ * @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, expiresOn</i>
159
159
  * @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: organizations<i>
160
160
  * @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, email, token, organizationId, ern, partnerCode</i>
161
161
  * @param {*} [options] Override http request option.
@@ -257,7 +257,7 @@ export interface InviteUsersApiListInvitesRequest {
257
257
  */
258
258
  readonly search?: string;
259
259
  /**
260
- * 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, expiresOn</i>
260
+ * 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, expiresOn</i>
261
261
  * @type {string}
262
262
  * @memberof InviteUsersApiListInvites
263
263
  */
@@ -247,7 +247,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
247
247
  * @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.
248
248
  * @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, email, token, organizationId, ern, partnerCode</i>
249
249
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
250
- * @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, expiresOn</i>
250
+ * @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, expiresOn</i>
251
251
  * @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: organizations<i>
252
252
  * @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, email, token, organizationId, ern, partnerCode</i>
253
253
  * @param {*} [options] Override http request option.
@@ -392,7 +392,7 @@ var InviteUsersApiFp = function (configuration) {
392
392
  * @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.
393
393
  * @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, email, token, organizationId, ern, partnerCode</i>
394
394
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
395
- * @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, expiresOn</i>
395
+ * @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, expiresOn</i>
396
396
  * @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: organizations<i>
397
397
  * @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, email, token, organizationId, ern, partnerCode</i>
398
398
  * @param {*} [options] Override http request option.
@@ -462,7 +462,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
462
462
  * @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.
463
463
  * @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, email, token, organizationId, ern, partnerCode</i>
464
464
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
465
- * @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, expiresOn</i>
465
+ * @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, expiresOn</i>
466
466
  * @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: organizations<i>
467
467
  * @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, email, token, organizationId, ern, partnerCode</i>
468
468
  * @param {*} [options] Override http request option.
@@ -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
@@ -39,4 +39,10 @@ export interface CreateOrganizationMigrationRequestDto {
39
39
  * @memberof CreateOrganizationMigrationRequestDto
40
40
  */
41
41
  'onlySubtenants'?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateOrganizationMigrationRequestDto
46
+ */
47
+ 'startTime'?: string;
42
48
  }
@@ -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 { DashboardClass } from './dashboard-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DuplicateDashboardResponseClass
17
+ */
18
+ export interface DuplicateDashboardResponseClass {
19
+ /**
20
+ * Duplicated dashboard
21
+ * @type {DashboardClass}
22
+ * @memberof DuplicateDashboardResponseClass
23
+ */
24
+ 'dashboard': DashboardClass;
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 });
@@ -14,6 +14,7 @@ export * from './create-data-report-request-dto';
14
14
  export * from './create-data-report-response-class';
15
15
  export * from './create-organization-migration-request-dto';
16
16
  export * from './create-organization-migration-response-class';
17
+ export * from './create-resources-migration-request-dto';
17
18
  export * from './create-tenant-request-dto';
18
19
  export * from './custom-field-dto';
19
20
  export * from './custom-schema-class';
@@ -28,6 +29,7 @@ export * from './data-report-filter-value-dto';
28
29
  export * from './delete-response-class';
29
30
  export * from './disable-users-request-dto';
30
31
  export * from './disable-users-response-class';
32
+ export * from './duplicate-dashboard-response-class';
31
33
  export * from './enable-users-request-dto';
32
34
  export * from './enable-users-response-class';
33
35
  export * from './format-tenant-settings-class';
@@ -30,6 +30,7 @@ __exportStar(require("./create-data-report-request-dto"), exports);
30
30
  __exportStar(require("./create-data-report-response-class"), exports);
31
31
  __exportStar(require("./create-organization-migration-request-dto"), exports);
32
32
  __exportStar(require("./create-organization-migration-response-class"), exports);
33
+ __exportStar(require("./create-resources-migration-request-dto"), exports);
33
34
  __exportStar(require("./create-tenant-request-dto"), exports);
34
35
  __exportStar(require("./custom-field-dto"), exports);
35
36
  __exportStar(require("./custom-schema-class"), exports);
@@ -44,6 +45,7 @@ __exportStar(require("./data-report-filter-value-dto"), exports);
44
45
  __exportStar(require("./delete-response-class"), exports);
45
46
  __exportStar(require("./disable-users-request-dto"), exports);
46
47
  __exportStar(require("./disable-users-response-class"), exports);
48
+ __exportStar(require("./duplicate-dashboard-response-class"), exports);
47
49
  __exportStar(require("./enable-users-request-dto"), exports);
48
50
  __exportStar(require("./enable-users-response-class"), exports);
49
51
  __exportStar(require("./format-tenant-settings-class"), exports);
@@ -44,5 +44,11 @@ export interface CreateOrganizationMigrationRequestDto {
44
44
  * @memberof CreateOrganizationMigrationRequestDto
45
45
  */
46
46
  'onlySubtenants'?: boolean;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof CreateOrganizationMigrationRequestDto
51
+ */
52
+ 'startTime'?: string;
47
53
  }
48
54
 
@@ -0,0 +1,42 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateResourcesMigrationRequestDto
21
+ */
22
+ export interface CreateResourcesMigrationRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CreateResourcesMigrationRequestDto
27
+ */
28
+ 'source': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreateResourcesMigrationRequestDto
33
+ */
34
+ 'target': string;
35
+ /**
36
+ *
37
+ * @type {boolean}
38
+ * @memberof CreateResourcesMigrationRequestDto
39
+ */
40
+ 'dryRun'?: boolean;
41
+ }
42
+
@@ -0,0 +1,31 @@
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 DuplicateDashboardResponseClass
22
+ */
23
+ export interface DuplicateDashboardResponseClass {
24
+ /**
25
+ * Duplicated dashboard
26
+ * @type {DashboardClass}
27
+ * @memberof DuplicateDashboardResponseClass
28
+ */
29
+ 'dashboard': DashboardClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './create-data-report-request-dto';
14
14
  export * from './create-data-report-response-class';
15
15
  export * from './create-organization-migration-request-dto';
16
16
  export * from './create-organization-migration-response-class';
17
+ export * from './create-resources-migration-request-dto';
17
18
  export * from './create-tenant-request-dto';
18
19
  export * from './custom-field-dto';
19
20
  export * from './custom-schema-class';
@@ -28,6 +29,7 @@ export * from './data-report-filter-value-dto';
28
29
  export * from './delete-response-class';
29
30
  export * from './disable-users-request-dto';
30
31
  export * from './disable-users-response-class';
32
+ export * from './duplicate-dashboard-response-class';
31
33
  export * from './enable-users-request-dto';
32
34
  export * from './enable-users-response-class';
33
35
  export * from './format-tenant-settings-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk",
3
- "version": "1.31.1-beta.2",
3
+ "version": "1.31.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [