@emilgroup/tenant-sdk-node 1.29.1-beta.1 → 1.31.0

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