@emilgroup/tenant-sdk 1.31.0 → 1.31.1-beta.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 (41) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/organization-migration-api.ts +574 -0
  4. package/api/users-api.ts +4 -4
  5. package/api.ts +2 -0
  6. package/base.ts +45 -1
  7. package/dist/api/organization-migration-api.d.ts +329 -0
  8. package/dist/api/organization-migration-api.js +542 -0
  9. package/dist/api/users-api.d.ts +4 -4
  10. package/dist/api/users-api.js +3 -3
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +10 -1
  14. package/dist/base.js +41 -1
  15. package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
  16. package/dist/models/create-organization-migration-request-dto.js +15 -0
  17. package/dist/models/create-organization-migration-response-class.d.ts +25 -0
  18. package/dist/models/create-organization-migration-response-class.js +15 -0
  19. package/dist/models/get-organization-migration-response-class.d.ts +25 -0
  20. package/dist/models/get-organization-migration-response-class.js +15 -0
  21. package/dist/models/index.d.ts +7 -0
  22. package/dist/models/index.js +7 -0
  23. package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
  24. package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
  25. package/dist/models/list-organization-migrations-response-class.js +15 -0
  26. package/dist/models/organization-migration-class.d.ts +81 -0
  27. package/dist/models/organization-migration-class.js +24 -0
  28. package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
  29. package/dist/models/revert-organization-migration-request-dto.js +15 -0
  30. package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
  31. package/dist/models/revert-organization-migration-response-class.js +15 -0
  32. package/models/create-organization-migration-request-dto.ts +48 -0
  33. package/models/create-organization-migration-response-class.ts +31 -0
  34. package/models/get-organization-migration-response-class.ts +31 -0
  35. package/models/index.ts +7 -0
  36. package/models/link-user-with-partner-request-dto-rest.ts +6 -0
  37. package/models/list-organization-migrations-response-class.ts +49 -0
  38. package/models/organization-migration-class.ts +90 -0
  39. package/models/revert-organization-migration-request-dto.ts +36 -0
  40. package/models/revert-organization-migration-response-class.ts +31 -0
  41. package/package.json +1 -1
@@ -13,6 +13,7 @@ api/health-check-api.ts
13
13
  api/invite-organizations-api.ts
14
14
  api/invite-users-api.ts
15
15
  api/list-organization-invitations-api.ts
16
+ api/organization-migration-api.ts
16
17
  api/organizations-api.ts
17
18
  api/re-invite-an-organization-api.ts
18
19
  api/roles-api.ts
@@ -35,6 +36,8 @@ models/create-dashboard-request-dto.ts
35
36
  models/create-dashboard-response-class.ts
36
37
  models/create-data-report-request-dto.ts
37
38
  models/create-data-report-response-class.ts
39
+ models/create-organization-migration-request-dto.ts
40
+ models/create-organization-migration-response-class.ts
38
41
  models/create-tenant-request-dto.ts
39
42
  models/custom-field-dto.ts
40
43
  models/custom-schema-class.ts
@@ -57,6 +60,7 @@ models/get-dashboard-group-response-class.ts
57
60
  models/get-dashboard-response-class.ts
58
61
  models/get-data-report-response-class.ts
59
62
  models/get-embedded-url-response-class.ts
63
+ models/get-organization-migration-response-class.ts
60
64
  models/get-organization-response-class.ts
61
65
  models/get-settings-response-class.ts
62
66
  models/get-user-response-class.ts
@@ -78,16 +82,20 @@ models/list-dashboards-response-class.ts
78
82
  models/list-data-reports-response-class.ts
79
83
  models/list-invites-response-class.ts
80
84
  models/list-org-invitations-response-class.ts
85
+ models/list-organization-migrations-response-class.ts
81
86
  models/list-organizations-response-class.ts
82
87
  models/list-roles-response-class.ts
83
88
  models/list-users-response-class.ts
84
89
  models/org-invitation-class.ts
85
90
  models/org-invitation-response-class.ts
86
91
  models/organization-class.ts
92
+ models/organization-migration-class.ts
87
93
  models/permission-class.ts
88
94
  models/publish-dashboard-request-dto.ts
89
95
  models/re-invite-org-request-dto.ts
90
96
  models/revert-analysis-request-dto.ts
97
+ models/revert-organization-migration-request-dto.ts
98
+ models/revert-organization-migration-response-class.ts
91
99
  models/role-class.ts
92
100
  models/run-data-report-request-dto.ts
93
101
  models/run-data-report-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk@1.31.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.31.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.31.0
24
+ yarn add @emilgroup/tenant-sdk@1.31.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,574 @@
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 { GetOrganizationMigrationResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListOrganizationMigrationsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { RevertOrganizationMigrationRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { RevertOrganizationMigrationResponseClass } from '../models';
35
+ /**
36
+ * OrganizationMigrationApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const OrganizationMigrationApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
43
+ * @summary Create organization migration
44
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createOrganizationMigration: async (createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createOrganizationMigrationRequestDto' is not null or undefined
51
+ assertParamExists('createOrganizationMigration', 'createOrganizationMigrationRequestDto', createOrganizationMigrationRequestDto)
52
+ const localVarPath = `/tenantservice/v1/organization-migrations`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrganizationMigrationRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
90
+ * @summary Get organization migration
91
+ * @param {any} code Unique identifier for the object.
92
+ * @param {string} [expand] Fields to expand response by
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ getOrganizationMigration: async (code: any, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'code' is not null or undefined
99
+ assertParamExists('getOrganizationMigration', 'code', code)
100
+ const localVarPath = `/tenantservice/v1/organization-migrations/{code}`
101
+ .replace(`{${"expand"}}`, encodeURIComponent(String(expand)))
102
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ let baseAccessToken;
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+
112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
113
+ const localVarHeaderParameter = {} as any;
114
+ const localVarQueryParameter = {} as any;
115
+
116
+ // authentication bearer required
117
+ // http bearer authentication required
118
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
+
120
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ }
123
+
124
+
125
+
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
137
+ * @summary List organization migrations
138
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
139
+ * @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.
140
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
141
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
142
+ * @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.
143
+ * @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.
144
+ * @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.
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ listOrganizationMigrations: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ const localVarPath = `/tenantservice/v1/organization-migrations`;
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ let baseAccessToken;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ baseAccessToken = configuration.accessToken;
158
+ }
159
+
160
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
161
+ const localVarHeaderParameter = {} as any;
162
+ const localVarQueryParameter = {} as any;
163
+
164
+ // authentication bearer required
165
+ // http bearer authentication required
166
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
167
+
168
+ if (pageSize !== undefined) {
169
+ localVarQueryParameter['pageSize'] = pageSize;
170
+ }
171
+
172
+ if (pageToken !== undefined) {
173
+ localVarQueryParameter['pageToken'] = pageToken;
174
+ }
175
+
176
+ if (filter !== undefined) {
177
+ localVarQueryParameter['filter'] = filter;
178
+ }
179
+
180
+ if (search !== undefined) {
181
+ localVarQueryParameter['search'] = search;
182
+ }
183
+
184
+ if (order !== undefined) {
185
+ localVarQueryParameter['order'] = order;
186
+ }
187
+
188
+ if (expand !== undefined) {
189
+ localVarQueryParameter['expand'] = expand;
190
+ }
191
+
192
+ if (filters !== undefined) {
193
+ localVarQueryParameter['filters'] = filters;
194
+ }
195
+
196
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
198
+ }
199
+
200
+
201
+
202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
205
+
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ },
211
+ /**
212
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
213
+ * @summary Revert organization migration
214
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
215
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ revertOrganizationMigration: async (revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
220
+ // verify required parameter 'revertOrganizationMigrationRequestDto' is not null or undefined
221
+ assertParamExists('revertOrganizationMigration', 'revertOrganizationMigrationRequestDto', revertOrganizationMigrationRequestDto)
222
+ const localVarPath = `/tenantservice/v1/organization-migrations/revert`;
223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
225
+ let baseOptions;
226
+ let baseAccessToken;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ baseAccessToken = configuration.accessToken;
230
+ }
231
+
232
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
233
+ const localVarHeaderParameter = {} as any;
234
+ const localVarQueryParameter = {} as any;
235
+
236
+ // authentication bearer required
237
+ // http bearer authentication required
238
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
239
+
240
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
241
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ }
243
+
244
+
245
+
246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
247
+
248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
251
+ localVarRequestOptions.data = serializeDataIfNeeded(revertOrganizationMigrationRequestDto, localVarRequestOptions, configuration)
252
+
253
+ return {
254
+ url: toPathString(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ },
258
+ }
259
+ };
260
+
261
+ /**
262
+ * OrganizationMigrationApi - functional programming interface
263
+ * @export
264
+ */
265
+ export const OrganizationMigrationApiFp = function(configuration?: Configuration) {
266
+ const localVarAxiosParamCreator = OrganizationMigrationApiAxiosParamCreator(configuration)
267
+ return {
268
+ /**
269
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
270
+ * @summary Create organization migration
271
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
272
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ async createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>> {
277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options);
278
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
279
+ },
280
+ /**
281
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
282
+ * @summary Get organization migration
283
+ * @param {any} code Unique identifier for the object.
284
+ * @param {string} [expand] Fields to expand response by
285
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ async getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>> {
290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMigration(code, expand, authorization, options);
291
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
292
+ },
293
+ /**
294
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
295
+ * @summary List organization migrations
296
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
297
+ * @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.
298
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
299
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
300
+ * @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.
301
+ * @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.
302
+ * @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.
303
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ 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>> {
308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
309
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
310
+ },
311
+ /**
312
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
313
+ * @summary Revert organization migration
314
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
315
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ async revertOrganizationMigration(revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertOrganizationMigrationResponseClass>> {
320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options);
321
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
322
+ },
323
+ }
324
+ };
325
+
326
+ /**
327
+ * OrganizationMigrationApi - factory interface
328
+ * @export
329
+ */
330
+ export const OrganizationMigrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
331
+ const localVarFp = OrganizationMigrationApiFp(configuration)
332
+ return {
333
+ /**
334
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
335
+ * @summary Create organization migration
336
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
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
+ createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass> {
342
+ return localVarFp.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
343
+ },
344
+ /**
345
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
346
+ * @summary Get organization migration
347
+ * @param {any} code Unique identifier for the object.
348
+ * @param {string} [expand] Fields to expand response by
349
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass> {
354
+ return localVarFp.getOrganizationMigration(code, expand, authorization, options).then((request) => request(axios, basePath));
355
+ },
356
+ /**
357
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
358
+ * @summary List organization migrations
359
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
360
+ * @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.
361
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
362
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
363
+ * @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.
364
+ * @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.
365
+ * @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.
366
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ listOrganizationMigrations(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListOrganizationMigrationsResponseClass> {
371
+ return localVarFp.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
372
+ },
373
+ /**
374
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
375
+ * @summary Revert organization migration
376
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
377
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ revertOrganizationMigration(revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<RevertOrganizationMigrationResponseClass> {
382
+ return localVarFp.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
383
+ },
384
+ };
385
+ };
386
+
387
+ /**
388
+ * Request parameters for createOrganizationMigration operation in OrganizationMigrationApi.
389
+ * @export
390
+ * @interface OrganizationMigrationApiCreateOrganizationMigrationRequest
391
+ */
392
+ export interface OrganizationMigrationApiCreateOrganizationMigrationRequest {
393
+ /**
394
+ *
395
+ * @type {CreateOrganizationMigrationRequestDto}
396
+ * @memberof OrganizationMigrationApiCreateOrganizationMigration
397
+ */
398
+ readonly createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto
399
+
400
+ /**
401
+ * Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @type {string}
403
+ * @memberof OrganizationMigrationApiCreateOrganizationMigration
404
+ */
405
+ readonly authorization?: string
406
+ }
407
+
408
+ /**
409
+ * Request parameters for getOrganizationMigration operation in OrganizationMigrationApi.
410
+ * @export
411
+ * @interface OrganizationMigrationApiGetOrganizationMigrationRequest
412
+ */
413
+ export interface OrganizationMigrationApiGetOrganizationMigrationRequest {
414
+ /**
415
+ * Unique identifier for the object.
416
+ * @type {any}
417
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
418
+ */
419
+ readonly code: any
420
+
421
+ /**
422
+ * Fields to expand response by
423
+ * @type {string}
424
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
425
+ */
426
+ readonly expand?: string
427
+
428
+ /**
429
+ * Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @type {string}
431
+ * @memberof OrganizationMigrationApiGetOrganizationMigration
432
+ */
433
+ readonly authorization?: string
434
+ }
435
+
436
+ /**
437
+ * Request parameters for listOrganizationMigrations operation in OrganizationMigrationApi.
438
+ * @export
439
+ * @interface OrganizationMigrationApiListOrganizationMigrationsRequest
440
+ */
441
+ export interface OrganizationMigrationApiListOrganizationMigrationsRequest {
442
+ /**
443
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
444
+ * @type {number}
445
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
446
+ */
447
+ readonly pageSize?: number
448
+
449
+ /**
450
+ * 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.
451
+ * @type {string}
452
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
453
+ */
454
+ readonly pageToken?: string
455
+
456
+ /**
457
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
458
+ * @type {string}
459
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
460
+ */
461
+ readonly filter?: string
462
+
463
+ /**
464
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
465
+ * @type {string}
466
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
467
+ */
468
+ readonly search?: string
469
+
470
+ /**
471
+ * 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.
472
+ * @type {string}
473
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
474
+ */
475
+ readonly order?: string
476
+
477
+ /**
478
+ * 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.
479
+ * @type {string}
480
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
481
+ */
482
+ readonly expand?: string
483
+
484
+ /**
485
+ * 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.
486
+ * @type {string}
487
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
488
+ */
489
+ readonly filters?: string
490
+
491
+ /**
492
+ * Bearer Token: provided by the login endpoint under the name accessToken.
493
+ * @type {string}
494
+ * @memberof OrganizationMigrationApiListOrganizationMigrations
495
+ */
496
+ readonly authorization?: string
497
+ }
498
+
499
+ /**
500
+ * Request parameters for revertOrganizationMigration operation in OrganizationMigrationApi.
501
+ * @export
502
+ * @interface OrganizationMigrationApiRevertOrganizationMigrationRequest
503
+ */
504
+ export interface OrganizationMigrationApiRevertOrganizationMigrationRequest {
505
+ /**
506
+ *
507
+ * @type {RevertOrganizationMigrationRequestDto}
508
+ * @memberof OrganizationMigrationApiRevertOrganizationMigration
509
+ */
510
+ readonly revertOrganizationMigrationRequestDto: RevertOrganizationMigrationRequestDto
511
+
512
+ /**
513
+ * Bearer Token: provided by the login endpoint under the name accessToken.
514
+ * @type {string}
515
+ * @memberof OrganizationMigrationApiRevertOrganizationMigration
516
+ */
517
+ readonly authorization?: string
518
+ }
519
+
520
+ /**
521
+ * OrganizationMigrationApi - object-oriented interface
522
+ * @export
523
+ * @class OrganizationMigrationApi
524
+ * @extends {BaseAPI}
525
+ */
526
+ export class OrganizationMigrationApi extends BaseAPI {
527
+ /**
528
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
529
+ * @summary Create organization migration
530
+ * @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ * @memberof OrganizationMigrationApi
534
+ */
535
+ public createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig) {
536
+ return OrganizationMigrationApiFp(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
537
+ }
538
+
539
+ /**
540
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
541
+ * @summary Get organization migration
542
+ * @param {OrganizationMigrationApiGetOrganizationMigrationRequest} requestParameters Request parameters.
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ * @memberof OrganizationMigrationApi
546
+ */
547
+ public getOrganizationMigration(requestParameters: OrganizationMigrationApiGetOrganizationMigrationRequest, options?: AxiosRequestConfig) {
548
+ return OrganizationMigrationApiFp(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
549
+ }
550
+
551
+ /**
552
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
553
+ * @summary List organization migrations
554
+ * @param {OrganizationMigrationApiListOrganizationMigrationsRequest} requestParameters Request parameters.
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ * @memberof OrganizationMigrationApi
558
+ */
559
+ public listOrganizationMigrations(requestParameters: OrganizationMigrationApiListOrganizationMigrationsRequest = {}, options?: AxiosRequestConfig) {
560
+ 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));
561
+ }
562
+
563
+ /**
564
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
565
+ * @summary Revert organization migration
566
+ * @param {OrganizationMigrationApiRevertOrganizationMigrationRequest} requestParameters Request parameters.
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ * @memberof OrganizationMigrationApi
570
+ */
571
+ public revertOrganizationMigration(requestParameters: OrganizationMigrationApiRevertOrganizationMigrationRequest, options?: AxiosRequestConfig) {
572
+ return OrganizationMigrationApiFp(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
573
+ }
574
+ }