@emilgroup/tenant-sdk 1.31.0 → 1.31.1-beta.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 (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
@@ -0,0 +1,542 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.OrganizationMigrationApi = exports.OrganizationMigrationApiFactory = exports.OrganizationMigrationApiFp = exports.OrganizationMigrationApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * OrganizationMigrationApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
97
+ * @summary Create organization migration
98
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createOrganizationMigration: function (createOrganizationMigrationRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createOrganizationMigrationRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createOrganizationMigration', 'createOrganizationMigrationRequestDto', createOrganizationMigrationRequestDto);
112
+ localVarPath = "/tenantservice/v1/organization-migrations";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrganizationMigrationRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
146
+ * @summary Get organization migration
147
+ * @param {any} code Unique identifier for the object.
148
+ * @param {string} [expand] Fields to expand response by
149
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getOrganizationMigration: function (code, expand, authorization, options) {
154
+ if (options === void 0) { options = {}; }
155
+ return __awaiter(_this, void 0, void 0, function () {
156
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0:
160
+ // verify required parameter 'code' is not null or undefined
161
+ (0, common_1.assertParamExists)('getOrganizationMigration', 'code', code);
162
+ localVarPath = "/tenantservice/v1/organization-migrations/{code}"
163
+ .replace("{".concat("expand", "}"), encodeURIComponent(String(expand)))
164
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
165
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ case 1:
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ _a.sent();
180
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ }
183
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
+ return [2 /*return*/, {
187
+ url: (0, common_1.toPathString)(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ }];
190
+ }
191
+ });
192
+ });
193
+ },
194
+ /**
195
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
196
+ * @summary List organization migrations
197
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
198
+ * @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.
199
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
200
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
201
+ * @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.
202
+ * @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.
203
+ * @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.
204
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ listOrganizationMigrations: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
209
+ if (options === void 0) { options = {}; }
210
+ return __awaiter(_this, void 0, void 0, function () {
211
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0:
215
+ localVarPath = "/tenantservice/v1/organization-migrations";
216
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ baseAccessToken = configuration.accessToken;
220
+ }
221
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
+ localVarHeaderParameter = {};
223
+ localVarQueryParameter = {};
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
+ case 1:
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ _a.sent();
231
+ if (pageSize !== undefined) {
232
+ localVarQueryParameter['pageSize'] = pageSize;
233
+ }
234
+ if (pageToken !== undefined) {
235
+ localVarQueryParameter['pageToken'] = pageToken;
236
+ }
237
+ if (filter !== undefined) {
238
+ localVarQueryParameter['filter'] = filter;
239
+ }
240
+ if (search !== undefined) {
241
+ localVarQueryParameter['search'] = search;
242
+ }
243
+ if (order !== undefined) {
244
+ localVarQueryParameter['order'] = order;
245
+ }
246
+ if (expand !== undefined) {
247
+ localVarQueryParameter['expand'] = expand;
248
+ }
249
+ if (filters !== undefined) {
250
+ localVarQueryParameter['filters'] = filters;
251
+ }
252
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
+ }
255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
258
+ return [2 /*return*/, {
259
+ url: (0, common_1.toPathString)(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ }];
262
+ }
263
+ });
264
+ });
265
+ },
266
+ /**
267
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
268
+ * @summary Revert organization migration
269
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ revertOrganizationMigration: function (revertOrganizationMigrationRequestDto, authorization, options) {
275
+ if (options === void 0) { options = {}; }
276
+ return __awaiter(_this, void 0, void 0, function () {
277
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
278
+ return __generator(this, function (_a) {
279
+ switch (_a.label) {
280
+ case 0:
281
+ // verify required parameter 'revertOrganizationMigrationRequestDto' is not null or undefined
282
+ (0, common_1.assertParamExists)('revertOrganizationMigration', 'revertOrganizationMigrationRequestDto', revertOrganizationMigrationRequestDto);
283
+ localVarPath = "/tenantservice/v1/organization-migrations/revert";
284
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
290
+ localVarHeaderParameter = {};
291
+ localVarQueryParameter = {};
292
+ // authentication bearer required
293
+ // http bearer authentication required
294
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
295
+ case 1:
296
+ // authentication bearer required
297
+ // http bearer authentication required
298
+ _a.sent();
299
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ }
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
304
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
306
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revertOrganizationMigrationRequestDto, localVarRequestOptions, configuration);
307
+ return [2 /*return*/, {
308
+ url: (0, common_1.toPathString)(localVarUrlObj),
309
+ options: localVarRequestOptions,
310
+ }];
311
+ }
312
+ });
313
+ });
314
+ },
315
+ };
316
+ };
317
+ exports.OrganizationMigrationApiAxiosParamCreator = OrganizationMigrationApiAxiosParamCreator;
318
+ /**
319
+ * OrganizationMigrationApi - functional programming interface
320
+ * @export
321
+ */
322
+ var OrganizationMigrationApiFp = function (configuration) {
323
+ var localVarAxiosParamCreator = (0, exports.OrganizationMigrationApiAxiosParamCreator)(configuration);
324
+ return {
325
+ /**
326
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
327
+ * @summary Create organization migration
328
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
329
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ createOrganizationMigration: function (createOrganizationMigrationRequestDto, authorization, options) {
334
+ return __awaiter(this, void 0, void 0, function () {
335
+ var localVarAxiosArgs;
336
+ return __generator(this, function (_a) {
337
+ switch (_a.label) {
338
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options)];
339
+ case 1:
340
+ localVarAxiosArgs = _a.sent();
341
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
342
+ }
343
+ });
344
+ });
345
+ },
346
+ /**
347
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
348
+ * @summary Get organization migration
349
+ * @param {any} code Unique identifier for the object.
350
+ * @param {string} [expand] Fields to expand response by
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ getOrganizationMigration: function (code, expand, authorization, options) {
356
+ return __awaiter(this, void 0, void 0, function () {
357
+ var localVarAxiosArgs;
358
+ return __generator(this, function (_a) {
359
+ switch (_a.label) {
360
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationMigration(code, expand, authorization, options)];
361
+ case 1:
362
+ localVarAxiosArgs = _a.sent();
363
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
364
+ }
365
+ });
366
+ });
367
+ },
368
+ /**
369
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
370
+ * @summary List organization migrations
371
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
372
+ * @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.
373
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
374
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
375
+ * @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.
376
+ * @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.
377
+ * @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.
378
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ listOrganizationMigrations: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
383
+ return __awaiter(this, void 0, void 0, function () {
384
+ var localVarAxiosArgs;
385
+ return __generator(this, function (_a) {
386
+ switch (_a.label) {
387
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
388
+ case 1:
389
+ localVarAxiosArgs = _a.sent();
390
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
391
+ }
392
+ });
393
+ });
394
+ },
395
+ /**
396
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
397
+ * @summary Revert organization migration
398
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
399
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ revertOrganizationMigration: function (revertOrganizationMigrationRequestDto, authorization, options) {
404
+ return __awaiter(this, void 0, void 0, function () {
405
+ var localVarAxiosArgs;
406
+ return __generator(this, function (_a) {
407
+ switch (_a.label) {
408
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options)];
409
+ case 1:
410
+ localVarAxiosArgs = _a.sent();
411
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
412
+ }
413
+ });
414
+ });
415
+ },
416
+ };
417
+ };
418
+ exports.OrganizationMigrationApiFp = OrganizationMigrationApiFp;
419
+ /**
420
+ * OrganizationMigrationApi - factory interface
421
+ * @export
422
+ */
423
+ var OrganizationMigrationApiFactory = function (configuration, basePath, axios) {
424
+ var localVarFp = (0, exports.OrganizationMigrationApiFp)(configuration);
425
+ return {
426
+ /**
427
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
428
+ * @summary Create organization migration
429
+ * @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
430
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ createOrganizationMigration: function (createOrganizationMigrationRequestDto, authorization, options) {
435
+ return localVarFp.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
436
+ },
437
+ /**
438
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
439
+ * @summary Get organization migration
440
+ * @param {any} code Unique identifier for the object.
441
+ * @param {string} [expand] Fields to expand response by
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
+ getOrganizationMigration: function (code, expand, authorization, options) {
447
+ return localVarFp.getOrganizationMigration(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
448
+ },
449
+ /**
450
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
451
+ * @summary List organization migrations
452
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
453
+ * @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.
454
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
455
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
456
+ * @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.
457
+ * @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.
458
+ * @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.
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ listOrganizationMigrations: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
464
+ return localVarFp.listOrganizationMigrations(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
465
+ },
466
+ /**
467
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
468
+ * @summary Revert organization migration
469
+ * @param {RevertOrganizationMigrationRequestDto} revertOrganizationMigrationRequestDto
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ revertOrganizationMigration: function (revertOrganizationMigrationRequestDto, authorization, options) {
475
+ return localVarFp.revertOrganizationMigration(revertOrganizationMigrationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
476
+ },
477
+ };
478
+ };
479
+ exports.OrganizationMigrationApiFactory = OrganizationMigrationApiFactory;
480
+ /**
481
+ * OrganizationMigrationApi - object-oriented interface
482
+ * @export
483
+ * @class OrganizationMigrationApi
484
+ * @extends {BaseAPI}
485
+ */
486
+ var OrganizationMigrationApi = /** @class */ (function (_super) {
487
+ __extends(OrganizationMigrationApi, _super);
488
+ function OrganizationMigrationApi() {
489
+ return _super !== null && _super.apply(this, arguments) || this;
490
+ }
491
+ /**
492
+ * Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
493
+ * @summary Create organization migration
494
+ * @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ * @memberof OrganizationMigrationApi
498
+ */
499
+ OrganizationMigrationApi.prototype.createOrganizationMigration = function (requestParameters, options) {
500
+ var _this = this;
501
+ return (0, exports.OrganizationMigrationApiFp)(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
502
+ };
503
+ /**
504
+ * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
505
+ * @summary Get organization migration
506
+ * @param {OrganizationMigrationApiGetOrganizationMigrationRequest} requestParameters Request parameters.
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ * @memberof OrganizationMigrationApi
510
+ */
511
+ OrganizationMigrationApi.prototype.getOrganizationMigration = function (requestParameters, options) {
512
+ var _this = this;
513
+ return (0, exports.OrganizationMigrationApiFp)(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
514
+ };
515
+ /**
516
+ * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
517
+ * @summary List organization migrations
518
+ * @param {OrganizationMigrationApiListOrganizationMigrationsRequest} requestParameters Request parameters.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ * @memberof OrganizationMigrationApi
522
+ */
523
+ OrganizationMigrationApi.prototype.listOrganizationMigrations = function (requestParameters, options) {
524
+ var _this = this;
525
+ if (requestParameters === void 0) { requestParameters = {}; }
526
+ return (0, exports.OrganizationMigrationApiFp)(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
+ };
528
+ /**
529
+ * Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
530
+ * @summary Revert organization migration
531
+ * @param {OrganizationMigrationApiRevertOrganizationMigrationRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof OrganizationMigrationApi
535
+ */
536
+ OrganizationMigrationApi.prototype.revertOrganizationMigration = function (requestParameters, options) {
537
+ var _this = this;
538
+ return (0, exports.OrganizationMigrationApiFp)(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
+ };
540
+ return OrganizationMigrationApi;
541
+ }(base_1.BaseAPI));
542
+ exports.OrganizationMigrationApi = OrganizationMigrationApi;
@@ -89,7 +89,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
89
89
  * @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.
90
90
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
91
91
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
92
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
92
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
93
93
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
94
94
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
95
95
  * @param {*} [options] Override http request option.
@@ -162,7 +162,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
162
162
  * @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.
163
163
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
164
164
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
165
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
165
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
166
166
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
167
167
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
168
168
  * @param {*} [options] Override http request option.
@@ -235,7 +235,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
235
235
  * @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.
236
236
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
237
237
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
238
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
238
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
239
239
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
240
240
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
241
241
  * @param {*} [options] Override http request option.
@@ -412,7 +412,7 @@ export interface UsersApiListUsersRequest {
412
412
  */
413
413
  readonly search?: string;
414
414
  /**
415
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
415
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
416
416
  * @type {string}
417
417
  * @memberof UsersApiListUsers
418
418
  */
@@ -400,7 +400,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
400
400
  * @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.
401
401
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
402
402
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
403
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
403
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
404
404
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
405
405
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
406
406
  * @param {*} [options] Override http request option.
@@ -606,7 +606,7 @@ var UsersApiFp = function (configuration) {
606
606
  * @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.
607
607
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
608
608
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
609
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
609
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
610
610
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
611
611
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
612
612
  * @param {*} [options] Override http request option.
@@ -707,7 +707,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
707
707
  * @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.
708
708
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
709
709
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
710
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email&lt;/i&gt;
710
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email&lt;/i&gt;
711
711
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: subscriptions, organizations&lt;i&gt;
712
712
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode&lt;/i&gt;
713
713
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from './api/health-check-api';
19
19
  export * from './api/invite-organizations-api';
20
20
  export * from './api/invite-users-api';
21
21
  export * from './api/list-organization-invitations-api';
22
+ export * from './api/organization-migration-api';
22
23
  export * from './api/organizations-api';
23
24
  export * from './api/re-invite-an-organization-api';
24
25
  export * from './api/roles-api';