@emilgroup/tenant-sdk-node 1.30.0 → 1.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/invite-users-api.ts +4 -4
  4. package/api/organization-migration-api.ts +686 -0
  5. package/api/users-api.ts +4 -4
  6. package/api.ts +2 -0
  7. package/base.ts +45 -3
  8. package/dist/api/invite-users-api.d.ts +4 -4
  9. package/dist/api/invite-users-api.js +3 -3
  10. package/dist/api/organization-migration-api.d.ts +385 -0
  11. package/dist/api/organization-migration-api.js +641 -0
  12. package/dist/api/users-api.d.ts +4 -4
  13. package/dist/api/users-api.js +3 -3
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.d.ts +11 -2
  17. package/dist/base.js +42 -3
  18. package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
  19. package/dist/models/create-organization-migration-request-dto.js +15 -0
  20. package/dist/models/create-organization-migration-response-class.d.ts +25 -0
  21. package/dist/models/create-organization-migration-response-class.js +15 -0
  22. package/dist/models/create-resources-migration-request-dto.d.ts +36 -0
  23. package/dist/models/create-resources-migration-request-dto.js +15 -0
  24. package/dist/models/get-organization-migration-response-class.d.ts +25 -0
  25. package/dist/models/get-organization-migration-response-class.js +15 -0
  26. package/dist/models/index.d.ts +8 -0
  27. package/dist/models/index.js +8 -0
  28. package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
  29. package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
  30. package/dist/models/list-organization-migrations-response-class.js +15 -0
  31. package/dist/models/organization-migration-class.d.ts +81 -0
  32. package/dist/models/organization-migration-class.js +24 -0
  33. package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
  34. package/dist/models/revert-organization-migration-request-dto.js +15 -0
  35. package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
  36. package/dist/models/revert-organization-migration-response-class.js +15 -0
  37. package/models/create-organization-migration-request-dto.ts +48 -0
  38. package/models/create-organization-migration-response-class.ts +31 -0
  39. package/models/create-resources-migration-request-dto.ts +42 -0
  40. package/models/get-organization-migration-response-class.ts +31 -0
  41. package/models/index.ts +8 -0
  42. package/models/link-user-with-partner-request-dto-rest.ts +6 -0
  43. package/models/list-organization-migrations-response-class.ts +49 -0
  44. package/models/organization-migration-class.ts +90 -0
  45. package/models/revert-organization-migration-request-dto.ts +36 -0
  46. package/models/revert-organization-migration-response-class.ts +31 -0
  47. package/package.json +1 -1
@@ -0,0 +1,686 @@
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateOrganizationMigrationRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateOrganizationMigrationResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { CreateResourcesMigrationRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { GetOrganizationMigrationResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListOrganizationMigrationsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { RevertOrganizationMigrationRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { RevertOrganizationMigrationResponseClass } from '../models';
37
+ // URLSearchParams not necessarily used
38
+ // @ts-ignore
39
+ import { URL, URLSearchParams } from 'url';
40
+ const FormData = require('form-data');
41
+ /**
42
+ * OrganizationMigrationApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const OrganizationMigrationApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
49
+ * @summary Create organization migration to move all resources including the sub organizations
50
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
51
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ createOrganizationMigration: async (createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
+ // verify required parameter 'createOrganizationMigrationRequestDto' is not null or undefined
57
+ assertParamExists('createOrganizationMigration', 'createOrganizationMigrationRequestDto', createOrganizationMigrationRequestDto)
58
+ const localVarPath = `/tenantservice/v1/organization-migrations`;
59
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61
+ let baseOptions;
62
+ let baseAccessToken;
63
+ if (configuration) {
64
+ baseOptions = configuration.baseOptions;
65
+ baseAccessToken = configuration.accessToken;
66
+ }
67
+
68
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
69
+ const localVarHeaderParameter = {} as any;
70
+ const localVarQueryParameter = {} as any;
71
+
72
+ // authentication bearer required
73
+ // http bearer authentication required
74
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
+
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ }
79
+
80
+
81
+
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
83
+
84
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
87
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrganizationMigrationRequestDto, localVarRequestOptions, configuration)
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
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: async (createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'createResourcesMigrationRequestDto' is not null or undefined
104
+ assertParamExists('createResourcesMigration', 'createResourcesMigrationRequestDto', createResourcesMigrationRequestDto)
105
+ const localVarPath = `/tenantservice/v1/organization-migrations/resources`;
106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ let baseAccessToken;
110
+ if (configuration) {
111
+ baseOptions = configuration.baseOptions;
112
+ baseAccessToken = configuration.accessToken;
113
+ }
114
+
115
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
116
+ const localVarHeaderParameter = {} as any;
117
+ const localVarQueryParameter = {} as any;
118
+
119
+ // authentication bearer required
120
+ // http bearer authentication required
121
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
+
123
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
+ }
126
+
127
+
128
+
129
+ localVarHeaderParameter['Content-Type'] = 'application/json';
130
+
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
+ localVarRequestOptions.data = serializeDataIfNeeded(createResourcesMigrationRequestDto, localVarRequestOptions, configuration)
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
143
+ * @summary Get organization migration
144
+ * @param {string} code Unique identifier for the object.
145
+ * @param {string} [expand] Fields to expand response by
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ getOrganizationMigration: async (code: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ // verify required parameter 'code' is not null or undefined
152
+ assertParamExists('getOrganizationMigration', 'code', code)
153
+ const localVarPath = `/tenantservice/v1/organization-migrations/{code}`
154
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ let baseAccessToken;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ baseAccessToken = configuration.accessToken;
162
+ }
163
+
164
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
165
+ const localVarHeaderParameter = {} as any;
166
+ const localVarQueryParameter = {} as any;
167
+
168
+ // authentication bearer required
169
+ // http bearer authentication required
170
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
171
+
172
+ if (expand !== undefined) {
173
+ localVarQueryParameter['expand'] = expand;
174
+ }
175
+
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
+ }
179
+
180
+
181
+
182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
185
+
186
+ return {
187
+ url: toPathString(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ };
190
+ },
191
+ /**
192
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
193
+ * @summary List organization migrations
194
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
195
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
196
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
197
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
198
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
199
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
200
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
201
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ listOrganizationMigrations: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
+ const localVarPath = `/tenantservice/v1/organization-migrations`;
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ let baseAccessToken;
211
+ if (configuration) {
212
+ baseOptions = configuration.baseOptions;
213
+ baseAccessToken = configuration.accessToken;
214
+ }
215
+
216
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
217
+ const localVarHeaderParameter = {} as any;
218
+ const localVarQueryParameter = {} as any;
219
+
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
223
+
224
+ if (pageSize !== undefined) {
225
+ localVarQueryParameter['pageSize'] = pageSize;
226
+ }
227
+
228
+ if (pageToken !== undefined) {
229
+ localVarQueryParameter['pageToken'] = pageToken;
230
+ }
231
+
232
+ if (filter !== undefined) {
233
+ localVarQueryParameter['filter'] = filter;
234
+ }
235
+
236
+ if (search !== undefined) {
237
+ localVarQueryParameter['search'] = search;
238
+ }
239
+
240
+ if (order !== undefined) {
241
+ localVarQueryParameter['order'] = order;
242
+ }
243
+
244
+ if (expand !== undefined) {
245
+ localVarQueryParameter['expand'] = expand;
246
+ }
247
+
248
+ if (filters !== undefined) {
249
+ localVarQueryParameter['filters'] = filters;
250
+ }
251
+
252
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
+ }
255
+
256
+
257
+
258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
261
+
262
+ return {
263
+ url: toPathString(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ },
267
+ /**
268
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
269
+ * @summary Revert organization migration
270
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
271
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ revertOrganizationMigration: async (revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ // verify required parameter 'revertOrganizationMigrationRequestDto' is not null or undefined
277
+ assertParamExists('revertOrganizationMigration', 'revertOrganizationMigrationRequestDto', revertOrganizationMigrationRequestDto)
278
+ const localVarPath = `/tenantservice/v1/organization-migrations/revert`;
279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
280
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
281
+ let baseOptions;
282
+ let baseAccessToken;
283
+ if (configuration) {
284
+ baseOptions = configuration.baseOptions;
285
+ baseAccessToken = configuration.accessToken;
286
+ }
287
+
288
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
289
+ const localVarHeaderParameter = {} as any;
290
+ const localVarQueryParameter = {} as any;
291
+
292
+ // authentication bearer required
293
+ // http bearer authentication required
294
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
295
+
296
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
297
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
298
+ }
299
+
300
+
301
+
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+
304
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
307
+ localVarRequestOptions.data = serializeDataIfNeeded(revertOrganizationMigrationRequestDto, localVarRequestOptions, configuration)
308
+
309
+ return {
310
+ url: toPathString(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ };
313
+ },
314
+ }
315
+ };
316
+
317
+ /**
318
+ * OrganizationMigrationApi - functional programming interface
319
+ * @export
320
+ */
321
+ export const OrganizationMigrationApiFp = function(configuration?: Configuration) {
322
+ const localVarAxiosParamCreator = OrganizationMigrationApiAxiosParamCreator(configuration)
323
+ return {
324
+ /**
325
+ * Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
326
+ * @summary Create organization migration to move all resources including the sub organizations
327
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
328
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ async createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>> {
333
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options);
334
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
335
+ },
336
+ /**
337
+ * 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\"
338
+ * @summary Create organization migration to move only resources excluding sub organizations
339
+ * @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
340
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ async createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>> {
345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options);
346
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
347
+ },
348
+ /**
349
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
350
+ * @summary Get organization migration
351
+ * @param {string} code Unique identifier for the object.
352
+ * @param {string} [expand] Fields to expand response by
353
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ async getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>> {
358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMigration(code, expand, authorization, options);
359
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
360
+ },
361
+ /**
362
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
363
+ * @summary List organization migrations
364
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
365
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
366
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
367
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
368
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
369
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
370
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
371
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ async listOrganizationMigrations(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationMigrationsResponseClass>> {
376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
377
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
378
+ },
379
+ /**
380
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
381
+ * @summary Revert organization migration
382
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ async revertOrganizationMigration(revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertOrganizationMigrationResponseClass>> {
388
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options);
389
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
390
+ },
391
+ }
392
+ };
393
+
394
+ /**
395
+ * OrganizationMigrationApi - factory interface
396
+ * @export
397
+ */
398
+ export const OrganizationMigrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
399
+ const localVarFp = OrganizationMigrationApiFp(configuration)
400
+ return {
401
+ /**
402
+ * Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
403
+ * @summary Create organization migration to move all resources including the sub organizations
404
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass> {
410
+ return localVarFp.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
411
+ },
412
+ /**
413
+ * 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\"
414
+ * @summary Create organization migration to move only resources excluding sub organizations
415
+ * @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
416
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass> {
421
+ return localVarFp.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
425
+ * @summary Get organization migration
426
+ * @param {string} code Unique identifier for the object.
427
+ * @param {string} [expand] Fields to expand response by
428
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass> {
433
+ return localVarFp.getOrganizationMigration(code, expand, authorization, options).then((request) => request(axios, basePath));
434
+ },
435
+ /**
436
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
437
+ * @summary List organization migrations
438
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
440
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
441
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
442
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
443
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
444
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
445
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ listOrganizationMigrations(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListOrganizationMigrationsResponseClass> {
450
+ return localVarFp.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
451
+ },
452
+ /**
453
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
454
+ * @summary Revert organization migration
455
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
456
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ revertOrganizationMigration(revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<RevertOrganizationMigrationResponseClass> {
461
+ return localVarFp.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
462
+ },
463
+ };
464
+ };
465
+
466
+ /**
467
+ * Request parameters for createOrganizationMigration operation in OrganizationMigrationApi.
468
+ * @export
469
+ * @interface OrganizationMigrationApiCreateOrganizationMigrationRequest
470
+ */
471
+ export interface OrganizationMigrationApiCreateOrganizationMigrationRequest {
472
+ /**
473
+ *
474
+ * @type {CreateOrganizationMigrationRequestDto}
475
+ * @memberof OrganizationMigrationApiCreateOrganizationMigration
476
+ */
477
+ readonly createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto
478
+
479
+ /**
480
+ * Bearer Token: provided by the login endpoint under the name accessToken.
481
+ * @type {string}
482
+ * @memberof OrganizationMigrationApiCreateOrganizationMigration
483
+ */
484
+ readonly authorization?: string
485
+ }
486
+
487
+ /**
488
+ * Request parameters for createResourcesMigration operation in OrganizationMigrationApi.
489
+ * @export
490
+ * @interface OrganizationMigrationApiCreateResourcesMigrationRequest
491
+ */
492
+ export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
493
+ /**
494
+ *
495
+ * @type {CreateResourcesMigrationRequestDto}
496
+ * @memberof OrganizationMigrationApiCreateResourcesMigration
497
+ */
498
+ readonly createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto
499
+
500
+ /**
501
+ * Bearer Token: provided by the login endpoint under the name accessToken.
502
+ * @type {string}
503
+ * @memberof OrganizationMigrationApiCreateResourcesMigration
504
+ */
505
+ readonly authorization?: string
506
+ }
507
+
508
+ /**
509
+ * Request parameters for getOrganizationMigration operation in OrganizationMigrationApi.
510
+ * @export
511
+ * @interface OrganizationMigrationApiGetOrganizationMigrationRequest
512
+ */
513
+ export interface OrganizationMigrationApiGetOrganizationMigrationRequest {
514
+ /**
515
+ * Unique identifier for the object.
516
+ * @type {string}
517
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
518
+ */
519
+ readonly code: string
520
+
521
+ /**
522
+ * Fields to expand response by
523
+ * @type {string}
524
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
525
+ */
526
+ readonly expand?: string
527
+
528
+ /**
529
+ * Bearer Token: provided by the login endpoint under the name accessToken.
530
+ * @type {string}
531
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
532
+ */
533
+ readonly authorization?: string
534
+ }
535
+
536
+ /**
537
+ * Request parameters for listOrganizationMigrations operation in OrganizationMigrationApi.
538
+ * @export
539
+ * @interface OrganizationMigrationApiListOrganizationMigrationsRequest
540
+ */
541
+ export interface OrganizationMigrationApiListOrganizationMigrationsRequest {
542
+ /**
543
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
544
+ * @type {number}
545
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
546
+ */
547
+ readonly pageSize?: number
548
+
549
+ /**
550
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
551
+ * @type {string}
552
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
553
+ */
554
+ readonly pageToken?: string
555
+
556
+ /**
557
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
558
+ * @type {string}
559
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
560
+ */
561
+ readonly filter?: string
562
+
563
+ /**
564
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
565
+ * @type {string}
566
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
567
+ */
568
+ readonly search?: string
569
+
570
+ /**
571
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
572
+ * @type {string}
573
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
574
+ */
575
+ readonly order?: string
576
+
577
+ /**
578
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
579
+ * @type {string}
580
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
581
+ */
582
+ readonly expand?: string
583
+
584
+ /**
585
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
586
+ * @type {string}
587
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
588
+ */
589
+ readonly filters?: string
590
+
591
+ /**
592
+ * Bearer Token: provided by the login endpoint under the name accessToken.
593
+ * @type {string}
594
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
595
+ */
596
+ readonly authorization?: string
597
+ }
598
+
599
+ /**
600
+ * Request parameters for revertOrganizationMigration operation in OrganizationMigrationApi.
601
+ * @export
602
+ * @interface OrganizationMigrationApiRevertOrganizationMigrationRequest
603
+ */
604
+ export interface OrganizationMigrationApiRevertOrganizationMigrationRequest {
605
+ /**
606
+ *
607
+ * @type {RevertOrganizationMigrationRequestDto}
608
+ * @memberof OrganizationMigrationApiRevertOrganizationMigration
609
+ */
610
+ readonly revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto
611
+
612
+ /**
613
+ * Bearer Token: provided by the login endpoint under the name accessToken.
614
+ * @type {string}
615
+ * @memberof OrganizationMigrationApiRevertOrganizationMigration
616
+ */
617
+ readonly authorization?: string
618
+ }
619
+
620
+ /**
621
+ * OrganizationMigrationApi - object-oriented interface
622
+ * @export
623
+ * @class OrganizationMigrationApi
624
+ * @extends {BaseAPI}
625
+ */
626
+ export class OrganizationMigrationApi extends BaseAPI {
627
+ /**
628
+ * Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
629
+ * @summary Create organization migration to move all resources including the sub organizations
630
+ * @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ * @memberof OrganizationMigrationApi
634
+ */
635
+ public createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig) {
636
+ return OrganizationMigrationApiFp(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+
639
+ /**
640
+ * 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\"
641
+ * @summary Create organization migration to move only resources excluding sub organizations
642
+ * @param {OrganizationMigrationApiCreateResourcesMigrationRequest} requestParameters Request parameters.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ * @memberof OrganizationMigrationApi
646
+ */
647
+ public createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig) {
648
+ return OrganizationMigrationApiFp(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
649
+ }
650
+
651
+ /**
652
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
653
+ * @summary Get organization migration
654
+ * @param {OrganizationMigrationApiGetOrganizationMigrationRequest} requestParameters Request parameters.
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ * @memberof OrganizationMigrationApi
658
+ */
659
+ public getOrganizationMigration(requestParameters: OrganizationMigrationApiGetOrganizationMigrationRequest, options?: AxiosRequestConfig) {
660
+ return OrganizationMigrationApiFp(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
661
+ }
662
+
663
+ /**
664
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
665
+ * @summary List organization migrations
666
+ * @param {OrganizationMigrationApiListOrganizationMigrationsRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof OrganizationMigrationApi
670
+ */
671
+ public listOrganizationMigrations(requestParameters: OrganizationMigrationApiListOrganizationMigrationsRequest = {}, options?: AxiosRequestConfig) {
672
+ return OrganizationMigrationApiFp(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
673
+ }
674
+
675
+ /**
676
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
677
+ * @summary Revert organization migration
678
+ * @param {OrganizationMigrationApiRevertOrganizationMigrationRequest} requestParameters Request parameters.
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ * @memberof OrganizationMigrationApi
682
+ */
683
+ public revertOrganizationMigration(requestParameters: OrganizationMigrationApiRevertOrganizationMigrationRequest, options?: AxiosRequestConfig) {
684
+ return OrganizationMigrationApiFp(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
685
+ }
686
+ }