@emilgroup/migration-sdk 0.1.1-beta.11

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 (124) hide show
  1. package/.openapi-generator/FILES +46 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/default-api.ts +124 -0
  6. package/api/migration-api.ts +2150 -0
  7. package/api.ts +29 -0
  8. package/base.ts +282 -0
  9. package/common.ts +198 -0
  10. package/configuration.ts +110 -0
  11. package/dist/api/default-api.d.ts +70 -0
  12. package/dist/api/default-api.js +200 -0
  13. package/dist/api/migration-api.d.ts +1210 -0
  14. package/dist/api/migration-api.js +1795 -0
  15. package/dist/api.d.ts +13 -0
  16. package/dist/api.js +31 -0
  17. package/dist/base.d.ts +77 -0
  18. package/dist/base.js +324 -0
  19. package/dist/common.d.ts +91 -0
  20. package/dist/common.js +276 -0
  21. package/dist/configuration.d.ts +89 -0
  22. package/dist/configuration.js +52 -0
  23. package/dist/index.d.ts +15 -0
  24. package/dist/index.js +36 -0
  25. package/dist/models/cleanup-ingest-run-async-response-class.d.ts +25 -0
  26. package/dist/models/cleanup-ingest-run-async-response-class.js +15 -0
  27. package/dist/models/cleanup-ingest-run-sync-response-class.d.ts +25 -0
  28. package/dist/models/cleanup-ingest-run-sync-response-class.js +15 -0
  29. package/dist/models/create-ingest-run-async-request-dto.d.ts +41 -0
  30. package/dist/models/create-ingest-run-async-request-dto.js +20 -0
  31. package/dist/models/create-ingest-run-async-response-class.d.ts +25 -0
  32. package/dist/models/create-ingest-run-async-response-class.js +15 -0
  33. package/dist/models/create-ingest-run-sync-request-dto.d.ts +41 -0
  34. package/dist/models/create-ingest-run-sync-request-dto.js +20 -0
  35. package/dist/models/create-ingest-run-sync-response-class.d.ts +25 -0
  36. package/dist/models/create-ingest-run-sync-response-class.js +15 -0
  37. package/dist/models/entity-json-schema-class.d.ts +36 -0
  38. package/dist/models/entity-json-schema-class.js +15 -0
  39. package/dist/models/entity-mapping-class.d.ts +126 -0
  40. package/dist/models/entity-mapping-class.js +15 -0
  41. package/dist/models/flush-ingested-data-request-dto.d.ts +24 -0
  42. package/dist/models/flush-ingested-data-request-dto.js +15 -0
  43. package/dist/models/flush-ingested-data-response-class.d.ts +25 -0
  44. package/dist/models/flush-ingested-data-response-class.js +15 -0
  45. package/dist/models/get-ingest-flush-response-class.d.ts +25 -0
  46. package/dist/models/get-ingest-flush-response-class.js +15 -0
  47. package/dist/models/get-ingest-run-response-class.d.ts +25 -0
  48. package/dist/models/get-ingest-run-response-class.js +15 -0
  49. package/dist/models/get-json-schemas-response-class.d.ts +25 -0
  50. package/dist/models/get-json-schemas-response-class.js +15 -0
  51. package/dist/models/index.d.ts +31 -0
  52. package/dist/models/index.js +47 -0
  53. package/dist/models/ingest-batch-class.d.ts +163 -0
  54. package/dist/models/ingest-batch-class.js +15 -0
  55. package/dist/models/ingest-batch-entity-class.d.ts +114 -0
  56. package/dist/models/ingest-batch-entity-class.js +15 -0
  57. package/dist/models/ingest-flush-class.d.ts +85 -0
  58. package/dist/models/ingest-flush-class.js +15 -0
  59. package/dist/models/ingest-flush-entity-class.d.ts +84 -0
  60. package/dist/models/ingest-flush-entity-class.js +15 -0
  61. package/dist/models/ingest-run-class.d.ts +181 -0
  62. package/dist/models/ingest-run-class.js +15 -0
  63. package/dist/models/ingest-run-record-class.d.ts +102 -0
  64. package/dist/models/ingest-run-record-class.js +15 -0
  65. package/dist/models/inline-response200.d.ts +54 -0
  66. package/dist/models/inline-response200.js +15 -0
  67. package/dist/models/inline-response503.d.ts +54 -0
  68. package/dist/models/inline-response503.js +15 -0
  69. package/dist/models/list-entity-mappings-response-class.d.ts +43 -0
  70. package/dist/models/list-entity-mappings-response-class.js +15 -0
  71. package/dist/models/list-ingest-flushes-response-class.d.ts +43 -0
  72. package/dist/models/list-ingest-flushes-response-class.js +15 -0
  73. package/dist/models/list-ingest-run-records-response-class.d.ts +43 -0
  74. package/dist/models/list-ingest-run-records-response-class.js +15 -0
  75. package/dist/models/list-ingest-runs-response-class.d.ts +43 -0
  76. package/dist/models/list-ingest-runs-response-class.js +15 -0
  77. package/dist/models/stop-ingest-flush-request-dto.d.ts +24 -0
  78. package/dist/models/stop-ingest-flush-request-dto.js +15 -0
  79. package/dist/models/stop-ingest-flush-response-class.d.ts +25 -0
  80. package/dist/models/stop-ingest-flush-response-class.js +15 -0
  81. package/dist/models/stop-ingest-run-cleanup-request-dto.d.ts +24 -0
  82. package/dist/models/stop-ingest-run-cleanup-request-dto.js +15 -0
  83. package/dist/models/stop-ingest-run-cleanup-response-class.d.ts +25 -0
  84. package/dist/models/stop-ingest-run-cleanup-response-class.js +15 -0
  85. package/dist/models/stop-ingest-run-request-dto.d.ts +24 -0
  86. package/dist/models/stop-ingest-run-request-dto.js +15 -0
  87. package/dist/models/stop-ingest-run-response-class.d.ts +25 -0
  88. package/dist/models/stop-ingest-run-response-class.js +15 -0
  89. package/git_push.sh +57 -0
  90. package/index.ts +19 -0
  91. package/models/cleanup-ingest-run-async-response-class.ts +31 -0
  92. package/models/cleanup-ingest-run-sync-response-class.ts +31 -0
  93. package/models/create-ingest-run-async-request-dto.ts +50 -0
  94. package/models/create-ingest-run-async-response-class.ts +31 -0
  95. package/models/create-ingest-run-sync-request-dto.ts +50 -0
  96. package/models/create-ingest-run-sync-response-class.ts +31 -0
  97. package/models/entity-json-schema-class.ts +42 -0
  98. package/models/entity-mapping-class.ts +132 -0
  99. package/models/flush-ingested-data-request-dto.ts +30 -0
  100. package/models/flush-ingested-data-response-class.ts +31 -0
  101. package/models/get-ingest-flush-response-class.ts +31 -0
  102. package/models/get-ingest-run-response-class.ts +31 -0
  103. package/models/get-json-schemas-response-class.ts +31 -0
  104. package/models/index.ts +31 -0
  105. package/models/ingest-batch-class.ts +169 -0
  106. package/models/ingest-batch-entity-class.ts +120 -0
  107. package/models/ingest-flush-class.ts +91 -0
  108. package/models/ingest-flush-entity-class.ts +90 -0
  109. package/models/ingest-run-class.ts +187 -0
  110. package/models/ingest-run-record-class.ts +108 -0
  111. package/models/inline-response200.ts +48 -0
  112. package/models/inline-response503.ts +48 -0
  113. package/models/list-entity-mappings-response-class.ts +49 -0
  114. package/models/list-ingest-flushes-response-class.ts +49 -0
  115. package/models/list-ingest-run-records-response-class.ts +49 -0
  116. package/models/list-ingest-runs-response-class.ts +49 -0
  117. package/models/stop-ingest-flush-request-dto.ts +30 -0
  118. package/models/stop-ingest-flush-response-class.ts +31 -0
  119. package/models/stop-ingest-run-cleanup-request-dto.ts +30 -0
  120. package/models/stop-ingest-run-cleanup-response-class.ts +31 -0
  121. package/models/stop-ingest-run-request-dto.ts +30 -0
  122. package/models/stop-ingest-run-response-class.ts +31 -0
  123. package/package.json +27 -0
  124. package/tsconfig.json +23 -0
@@ -0,0 +1,1795 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL MigrationService
6
+ * The EMIL MigrationService 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.MigrationApi = exports.MigrationApiFactory = exports.MigrationApiFp = exports.MigrationApiAxiosParamCreator = 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
+ * MigrationApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var MigrationApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will start asynchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
97
+ * @summary Starts the ingest run cleanup asynchronously
98
+ * @param {string} code
99
+ * @param {object} body
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ cleanupIngestRunAsync: function (code, body, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'code' is not null or undefined
112
+ (0, common_1.assertParamExists)('cleanupIngestRunAsync', 'code', code);
113
+ // verify required parameter 'body' is not null or undefined
114
+ (0, common_1.assertParamExists)('cleanupIngestRunAsync', 'body', body);
115
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}/cleanup/async"
116
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will start synchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
150
+ * @summary Cleans up the ingest run synchronously
151
+ * @param {string} code
152
+ * @param {object} body
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ cleanupIngestRunSync: function (code, body, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'code' is not null or undefined
165
+ (0, common_1.assertParamExists)('cleanupIngestRunSync', 'code', code);
166
+ // verify required parameter 'body' is not null or undefined
167
+ (0, common_1.assertParamExists)('cleanupIngestRunSync', 'body', body);
168
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}/cleanup/sync"
169
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * This will start asynchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
203
+ * @summary Create the Async ingest run
204
+ * @param {CreateIngestRunAsyncRequestDto} createIngestRunAsyncRequestDto
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ createIngestRunAsync: function (createIngestRunAsyncRequestDto, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'createIngestRunAsyncRequestDto' is not null or undefined
217
+ (0, common_1.assertParamExists)('createIngestRunAsync', 'createIngestRunAsyncRequestDto', createIngestRunAsyncRequestDto);
218
+ localVarPath = "/migrationservice/v1/ingest-runs/async";
219
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ baseAccessToken = configuration.accessToken;
223
+ }
224
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
225
+ localVarHeaderParameter = {};
226
+ localVarQueryParameter = {};
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ case 1:
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ _a.sent();
234
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ }
237
+ localVarHeaderParameter['Content-Type'] = 'application/json';
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createIngestRunAsyncRequestDto, localVarRequestOptions, configuration);
242
+ return [2 /*return*/, {
243
+ url: (0, common_1.toPathString)(localVarUrlObj),
244
+ options: localVarRequestOptions,
245
+ }];
246
+ }
247
+ });
248
+ });
249
+ },
250
+ /**
251
+ * This will start synchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
252
+ * @summary Create the Sync ingest run
253
+ * @param {CreateIngestRunSyncRequestDto} createIngestRunSyncRequestDto
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ createIngestRunSync: function (createIngestRunSyncRequestDto, authorization, options) {
259
+ if (options === void 0) { options = {}; }
260
+ return __awaiter(_this, void 0, void 0, function () {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
264
+ case 0:
265
+ // verify required parameter 'createIngestRunSyncRequestDto' is not null or undefined
266
+ (0, common_1.assertParamExists)('createIngestRunSync', 'createIngestRunSyncRequestDto', createIngestRunSyncRequestDto);
267
+ localVarPath = "/migrationservice/v1/ingest-runs/sync";
268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
274
+ localVarHeaderParameter = {};
275
+ localVarQueryParameter = {};
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
279
+ case 1:
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ _a.sent();
283
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
+ }
286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
287
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createIngestRunSyncRequestDto, localVarRequestOptions, configuration);
291
+ return [2 /*return*/, {
292
+ url: (0, common_1.toPathString)(localVarUrlObj),
293
+ options: localVarRequestOptions,
294
+ }];
295
+ }
296
+ });
297
+ });
298
+ },
299
+ /**
300
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
301
+ * @summary Create the Sync ingest flush
302
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
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
+ flushIngestedDataAsync: function (flushIngestedDataRequestDto, authorization, options) {
308
+ if (options === void 0) { options = {}; }
309
+ return __awaiter(_this, void 0, void 0, function () {
310
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
311
+ return __generator(this, function (_a) {
312
+ switch (_a.label) {
313
+ case 0:
314
+ // verify required parameter 'flushIngestedDataRequestDto' is not null or undefined
315
+ (0, common_1.assertParamExists)('flushIngestedDataAsync', 'flushIngestedDataRequestDto', flushIngestedDataRequestDto);
316
+ localVarPath = "/migrationservice/v1/flushes/async";
317
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ baseAccessToken = configuration.accessToken;
321
+ }
322
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
323
+ localVarHeaderParameter = {};
324
+ localVarQueryParameter = {};
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
328
+ case 1:
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ _a.sent();
332
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
333
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
334
+ }
335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(flushIngestedDataRequestDto, localVarRequestOptions, configuration);
340
+ return [2 /*return*/, {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ }];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ /**
349
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
350
+ * @summary Create the Sync ingest flush
351
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
352
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ flushIngestedDataSync: function (flushIngestedDataRequestDto, authorization, options) {
357
+ if (options === void 0) { options = {}; }
358
+ return __awaiter(_this, void 0, void 0, function () {
359
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
360
+ return __generator(this, function (_a) {
361
+ switch (_a.label) {
362
+ case 0:
363
+ // verify required parameter 'flushIngestedDataRequestDto' is not null or undefined
364
+ (0, common_1.assertParamExists)('flushIngestedDataSync', 'flushIngestedDataRequestDto', flushIngestedDataRequestDto);
365
+ localVarPath = "/migrationservice/v1/flushes/sync";
366
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
367
+ if (configuration) {
368
+ baseOptions = configuration.baseOptions;
369
+ baseAccessToken = configuration.accessToken;
370
+ }
371
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
372
+ localVarHeaderParameter = {};
373
+ localVarQueryParameter = {};
374
+ // authentication bearer required
375
+ // http bearer authentication required
376
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
377
+ case 1:
378
+ // authentication bearer required
379
+ // http bearer authentication required
380
+ _a.sent();
381
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
382
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
+ }
384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
385
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
386
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
387
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
388
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(flushIngestedDataRequestDto, localVarRequestOptions, configuration);
389
+ return [2 /*return*/, {
390
+ url: (0, common_1.toPathString)(localVarUrlObj),
391
+ options: localVarRequestOptions,
392
+ }];
393
+ }
394
+ });
395
+ });
396
+ },
397
+ /**
398
+ * Retrieves the details of the ingest flush that was previously created. Supply the unique ingest flush code that was returned when you created it and Emil Api will return the corresponding ingest flush information. **Required Permissions** \"migration.ingest-flushes.view\"
399
+ * @summary Retrieve the ingest flush
400
+ * @param {string} code
401
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ getIngestFlush: function (code, authorization, options) {
406
+ if (options === void 0) { options = {}; }
407
+ return __awaiter(_this, void 0, void 0, function () {
408
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
409
+ return __generator(this, function (_a) {
410
+ switch (_a.label) {
411
+ case 0:
412
+ // verify required parameter 'code' is not null or undefined
413
+ (0, common_1.assertParamExists)('getIngestFlush', 'code', code);
414
+ localVarPath = "/migrationservice/v1/flushes/{code}"
415
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
416
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ if (configuration) {
418
+ baseOptions = configuration.baseOptions;
419
+ baseAccessToken = configuration.accessToken;
420
+ }
421
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
422
+ localVarHeaderParameter = {};
423
+ localVarQueryParameter = {};
424
+ // authentication bearer required
425
+ // http bearer authentication required
426
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ case 1:
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ _a.sent();
431
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
432
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
433
+ }
434
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
435
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
437
+ return [2 /*return*/, {
438
+ url: (0, common_1.toPathString)(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ }];
441
+ }
442
+ });
443
+ });
444
+ },
445
+ /**
446
+ * Retrieves the details of the ingest run that was previously created. Supply the unique ingest run code that was returned when you created it and Emil Api will return the corresponding ingest run information. **Required Permissions** \"migration.ingest-runs.view\"
447
+ * @summary Retrieve the ingest run
448
+ * @param {string} code
449
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ getIngestRun: function (code, authorization, options) {
454
+ if (options === void 0) { options = {}; }
455
+ return __awaiter(_this, void 0, void 0, function () {
456
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
457
+ return __generator(this, function (_a) {
458
+ switch (_a.label) {
459
+ case 0:
460
+ // verify required parameter 'code' is not null or undefined
461
+ (0, common_1.assertParamExists)('getIngestRun', 'code', code);
462
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}"
463
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
464
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
465
+ if (configuration) {
466
+ baseOptions = configuration.baseOptions;
467
+ baseAccessToken = configuration.accessToken;
468
+ }
469
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
470
+ localVarHeaderParameter = {};
471
+ localVarQueryParameter = {};
472
+ // authentication bearer required
473
+ // http bearer authentication required
474
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
475
+ case 1:
476
+ // authentication bearer required
477
+ // http bearer authentication required
478
+ _a.sent();
479
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
480
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
481
+ }
482
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
483
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
484
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
485
+ return [2 /*return*/, {
486
+ url: (0, common_1.toPathString)(localVarUrlObj),
487
+ options: localVarRequestOptions,
488
+ }];
489
+ }
490
+ });
491
+ });
492
+ },
493
+ /**
494
+ * Retrieves the details of the JSON schemas that was previously created. Supply the unique JSON schemas code that was returned when you created it and Emil Api will return the corresponding JSON schemas information. **Required Permissions** \"migration.json-schemas.view\"
495
+ * @summary Retrieve the JSON schemas
496
+ * @param {string} sourceEntity
497
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ getJsonSchemas: function (sourceEntity, authorization, options) {
502
+ if (options === void 0) { options = {}; }
503
+ return __awaiter(_this, void 0, void 0, function () {
504
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
505
+ return __generator(this, function (_a) {
506
+ switch (_a.label) {
507
+ case 0:
508
+ // verify required parameter 'sourceEntity' is not null or undefined
509
+ (0, common_1.assertParamExists)('getJsonSchemas', 'sourceEntity', sourceEntity);
510
+ localVarPath = "/migrationservice/v1/json-schemas/{sourceEntity}"
511
+ .replace("{".concat("sourceEntity", "}"), encodeURIComponent(String(sourceEntity)));
512
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
513
+ if (configuration) {
514
+ baseOptions = configuration.baseOptions;
515
+ baseAccessToken = configuration.accessToken;
516
+ }
517
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
518
+ localVarHeaderParameter = {};
519
+ localVarQueryParameter = {};
520
+ // authentication bearer required
521
+ // http bearer authentication required
522
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
523
+ case 1:
524
+ // authentication bearer required
525
+ // http bearer authentication required
526
+ _a.sent();
527
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
528
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
529
+ }
530
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
531
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
532
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
533
+ return [2 /*return*/, {
534
+ url: (0, common_1.toPathString)(localVarUrlObj),
535
+ options: localVarRequestOptions,
536
+ }];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ * Returns a list of entity mappings you have previously created. The entity mappings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
543
+ * @summary List entity mappings
544
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
546
+ * @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.
547
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
548
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, sourceId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3&lt;/i&gt;
549
+ * @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, createdAt, updatedAt, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
550
+ * @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;
551
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ listEntityMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
556
+ if (options === void 0) { options = {}; }
557
+ return __awaiter(_this, void 0, void 0, function () {
558
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
559
+ return __generator(this, function (_a) {
560
+ switch (_a.label) {
561
+ case 0:
562
+ localVarPath = "/migrationservice/v1/entity-mappings";
563
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
564
+ if (configuration) {
565
+ baseOptions = configuration.baseOptions;
566
+ baseAccessToken = configuration.accessToken;
567
+ }
568
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
569
+ localVarHeaderParameter = {};
570
+ localVarQueryParameter = {};
571
+ // authentication bearer required
572
+ // http bearer authentication required
573
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
574
+ case 1:
575
+ // authentication bearer required
576
+ // http bearer authentication required
577
+ _a.sent();
578
+ if (pageSize !== undefined) {
579
+ localVarQueryParameter['pageSize'] = pageSize;
580
+ }
581
+ if (pageToken !== undefined) {
582
+ localVarQueryParameter['pageToken'] = pageToken;
583
+ }
584
+ if (filter !== undefined) {
585
+ localVarQueryParameter['filter'] = filter;
586
+ }
587
+ if (search !== undefined) {
588
+ localVarQueryParameter['search'] = search;
589
+ }
590
+ if (order !== undefined) {
591
+ localVarQueryParameter['order'] = order;
592
+ }
593
+ if (expand !== undefined) {
594
+ localVarQueryParameter['expand'] = expand;
595
+ }
596
+ if (filters !== undefined) {
597
+ localVarQueryParameter['filters'] = filters;
598
+ }
599
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
600
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
601
+ }
602
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
603
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
604
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
605
+ return [2 /*return*/, {
606
+ url: (0, common_1.toPathString)(localVarUrlObj),
607
+ options: localVarRequestOptions,
608
+ }];
609
+ }
610
+ });
611
+ });
612
+ },
613
+ /**
614
+ * Returns a list of ingest flushes you have previously created. The ingest flushes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-flushes.view\"
615
+ * @summary List ingest flushes
616
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
617
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
618
+ * @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.
619
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
620
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, errorMessage, code&lt;/i&gt;
621
+ * @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, createdAt, updatedAt, code, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
622
+ * @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: entities&lt;i&gt;
623
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ listIngestFlushes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
628
+ if (options === void 0) { options = {}; }
629
+ return __awaiter(_this, void 0, void 0, function () {
630
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
631
+ return __generator(this, function (_a) {
632
+ switch (_a.label) {
633
+ case 0:
634
+ localVarPath = "/migrationservice/v1/flushes";
635
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
636
+ if (configuration) {
637
+ baseOptions = configuration.baseOptions;
638
+ baseAccessToken = configuration.accessToken;
639
+ }
640
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
641
+ localVarHeaderParameter = {};
642
+ localVarQueryParameter = {};
643
+ // authentication bearer required
644
+ // http bearer authentication required
645
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
646
+ case 1:
647
+ // authentication bearer required
648
+ // http bearer authentication required
649
+ _a.sent();
650
+ if (pageSize !== undefined) {
651
+ localVarQueryParameter['pageSize'] = pageSize;
652
+ }
653
+ if (pageToken !== undefined) {
654
+ localVarQueryParameter['pageToken'] = pageToken;
655
+ }
656
+ if (filter !== undefined) {
657
+ localVarQueryParameter['filter'] = filter;
658
+ }
659
+ if (search !== undefined) {
660
+ localVarQueryParameter['search'] = search;
661
+ }
662
+ if (order !== undefined) {
663
+ localVarQueryParameter['order'] = order;
664
+ }
665
+ if (expand !== undefined) {
666
+ localVarQueryParameter['expand'] = expand;
667
+ }
668
+ if (filters !== undefined) {
669
+ localVarQueryParameter['filters'] = filters;
670
+ }
671
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
672
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
673
+ }
674
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
675
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
676
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
677
+ return [2 /*return*/, {
678
+ url: (0, common_1.toPathString)(localVarUrlObj),
679
+ options: localVarRequestOptions,
680
+ }];
681
+ }
682
+ });
683
+ });
684
+ },
685
+ /**
686
+ * Returns a list of ingest run records you have previously created. The ingest run records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
687
+ * @summary List ingest run records
688
+ * @param {string} code
689
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
690
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
691
+ * @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.
692
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
693
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: externalId, errorMessage&lt;/i&gt;
694
+ * @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, createdAt, updatedAt, ingestRunId, ingestBatchId, rowNo, externalId, status, stage, errorMessage&lt;/i&gt;
695
+ * @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;
696
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ listIngestRunRecords: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
701
+ if (options === void 0) { options = {}; }
702
+ return __awaiter(_this, void 0, void 0, function () {
703
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
704
+ return __generator(this, function (_a) {
705
+ switch (_a.label) {
706
+ case 0:
707
+ // verify required parameter 'code' is not null or undefined
708
+ (0, common_1.assertParamExists)('listIngestRunRecords', 'code', code);
709
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}/records"
710
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
711
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
712
+ if (configuration) {
713
+ baseOptions = configuration.baseOptions;
714
+ baseAccessToken = configuration.accessToken;
715
+ }
716
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
717
+ localVarHeaderParameter = {};
718
+ localVarQueryParameter = {};
719
+ // authentication bearer required
720
+ // http bearer authentication required
721
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
722
+ case 1:
723
+ // authentication bearer required
724
+ // http bearer authentication required
725
+ _a.sent();
726
+ if (pageSize !== undefined) {
727
+ localVarQueryParameter['pageSize'] = pageSize;
728
+ }
729
+ if (pageToken !== undefined) {
730
+ localVarQueryParameter['pageToken'] = pageToken;
731
+ }
732
+ if (filter !== undefined) {
733
+ localVarQueryParameter['filter'] = filter;
734
+ }
735
+ if (search !== undefined) {
736
+ localVarQueryParameter['search'] = search;
737
+ }
738
+ if (order !== undefined) {
739
+ localVarQueryParameter['order'] = order;
740
+ }
741
+ if (expand !== undefined) {
742
+ localVarQueryParameter['expand'] = expand;
743
+ }
744
+ if (filters !== undefined) {
745
+ localVarQueryParameter['filters'] = filters;
746
+ }
747
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
748
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
749
+ }
750
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
751
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
753
+ return [2 /*return*/, {
754
+ url: (0, common_1.toPathString)(localVarUrlObj),
755
+ options: localVarRequestOptions,
756
+ }];
757
+ }
758
+ });
759
+ });
760
+ },
761
+ /**
762
+ * Returns a list of ingest runs you have previously created. The ingest runs are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
763
+ * @summary List ingest runs
764
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
765
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
766
+ * @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.
767
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
768
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, payload, fileUrl, errorMessage, code&lt;/i&gt;
769
+ * @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, createdAt, updatedAt, code, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
770
+ * @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: batches&lt;i&gt;
771
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ listIngestRuns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
776
+ if (options === void 0) { options = {}; }
777
+ return __awaiter(_this, void 0, void 0, function () {
778
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
779
+ return __generator(this, function (_a) {
780
+ switch (_a.label) {
781
+ case 0:
782
+ localVarPath = "/migrationservice/v1/ingest-runs";
783
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
784
+ if (configuration) {
785
+ baseOptions = configuration.baseOptions;
786
+ baseAccessToken = configuration.accessToken;
787
+ }
788
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
789
+ localVarHeaderParameter = {};
790
+ localVarQueryParameter = {};
791
+ // authentication bearer required
792
+ // http bearer authentication required
793
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
794
+ case 1:
795
+ // authentication bearer required
796
+ // http bearer authentication required
797
+ _a.sent();
798
+ if (pageSize !== undefined) {
799
+ localVarQueryParameter['pageSize'] = pageSize;
800
+ }
801
+ if (pageToken !== undefined) {
802
+ localVarQueryParameter['pageToken'] = pageToken;
803
+ }
804
+ if (filter !== undefined) {
805
+ localVarQueryParameter['filter'] = filter;
806
+ }
807
+ if (search !== undefined) {
808
+ localVarQueryParameter['search'] = search;
809
+ }
810
+ if (order !== undefined) {
811
+ localVarQueryParameter['order'] = order;
812
+ }
813
+ if (expand !== undefined) {
814
+ localVarQueryParameter['expand'] = expand;
815
+ }
816
+ if (filters !== undefined) {
817
+ localVarQueryParameter['filters'] = filters;
818
+ }
819
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
820
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
821
+ }
822
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
823
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
824
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
825
+ return [2 /*return*/, {
826
+ url: (0, common_1.toPathString)(localVarUrlObj),
827
+ options: localVarRequestOptions,
828
+ }];
829
+ }
830
+ });
831
+ });
832
+ },
833
+ /**
834
+ * This will stop the running ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
835
+ * @summary Stops the ingest flush
836
+ * @param {string} code
837
+ * @param {StopIngestFlushRequestDto} stopIngestFlushRequestDto
838
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ stopIngestFlush: function (code, stopIngestFlushRequestDto, authorization, options) {
843
+ if (options === void 0) { options = {}; }
844
+ return __awaiter(_this, void 0, void 0, function () {
845
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
846
+ return __generator(this, function (_a) {
847
+ switch (_a.label) {
848
+ case 0:
849
+ // verify required parameter 'code' is not null or undefined
850
+ (0, common_1.assertParamExists)('stopIngestFlush', 'code', code);
851
+ // verify required parameter 'stopIngestFlushRequestDto' is not null or undefined
852
+ (0, common_1.assertParamExists)('stopIngestFlush', 'stopIngestFlushRequestDto', stopIngestFlushRequestDto);
853
+ localVarPath = "/migrationservice/v1/flushes/{code}"
854
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
855
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
856
+ if (configuration) {
857
+ baseOptions = configuration.baseOptions;
858
+ baseAccessToken = configuration.accessToken;
859
+ }
860
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
861
+ localVarHeaderParameter = {};
862
+ localVarQueryParameter = {};
863
+ // authentication bearer required
864
+ // http bearer authentication required
865
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
866
+ case 1:
867
+ // authentication bearer required
868
+ // http bearer authentication required
869
+ _a.sent();
870
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
871
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
872
+ }
873
+ localVarHeaderParameter['Content-Type'] = 'application/json';
874
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
875
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
876
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
877
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stopIngestFlushRequestDto, localVarRequestOptions, configuration);
878
+ return [2 /*return*/, {
879
+ url: (0, common_1.toPathString)(localVarUrlObj),
880
+ options: localVarRequestOptions,
881
+ }];
882
+ }
883
+ });
884
+ });
885
+ },
886
+ /**
887
+ * This will stop the running ingest run. **Required Permissions** \"migration.ingest-runs.*\"
888
+ * @summary Stops the ingest run
889
+ * @param {string} code
890
+ * @param {StopIngestRunRequestDto} stopIngestRunRequestDto
891
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ stopIngestRun: function (code, stopIngestRunRequestDto, authorization, options) {
896
+ if (options === void 0) { options = {}; }
897
+ return __awaiter(_this, void 0, void 0, function () {
898
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
899
+ return __generator(this, function (_a) {
900
+ switch (_a.label) {
901
+ case 0:
902
+ // verify required parameter 'code' is not null or undefined
903
+ (0, common_1.assertParamExists)('stopIngestRun', 'code', code);
904
+ // verify required parameter 'stopIngestRunRequestDto' is not null or undefined
905
+ (0, common_1.assertParamExists)('stopIngestRun', 'stopIngestRunRequestDto', stopIngestRunRequestDto);
906
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}"
907
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
908
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
909
+ if (configuration) {
910
+ baseOptions = configuration.baseOptions;
911
+ baseAccessToken = configuration.accessToken;
912
+ }
913
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
914
+ localVarHeaderParameter = {};
915
+ localVarQueryParameter = {};
916
+ // authentication bearer required
917
+ // http bearer authentication required
918
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
919
+ case 1:
920
+ // authentication bearer required
921
+ // http bearer authentication required
922
+ _a.sent();
923
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
924
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
925
+ }
926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
927
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
928
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
929
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
930
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stopIngestRunRequestDto, localVarRequestOptions, configuration);
931
+ return [2 /*return*/, {
932
+ url: (0, common_1.toPathString)(localVarUrlObj),
933
+ options: localVarRequestOptions,
934
+ }];
935
+ }
936
+ });
937
+ });
938
+ },
939
+ /**
940
+ * This will stop the ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
941
+ * @summary Stops the ingest run cleanup
942
+ * @param {string} code
943
+ * @param {StopIngestRunCleanupRequestDto} stopIngestRunCleanupRequestDto
944
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ stopIngestRunCleanup: function (code, stopIngestRunCleanupRequestDto, authorization, options) {
949
+ if (options === void 0) { options = {}; }
950
+ return __awaiter(_this, void 0, void 0, function () {
951
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
952
+ return __generator(this, function (_a) {
953
+ switch (_a.label) {
954
+ case 0:
955
+ // verify required parameter 'code' is not null or undefined
956
+ (0, common_1.assertParamExists)('stopIngestRunCleanup', 'code', code);
957
+ // verify required parameter 'stopIngestRunCleanupRequestDto' is not null or undefined
958
+ (0, common_1.assertParamExists)('stopIngestRunCleanup', 'stopIngestRunCleanupRequestDto', stopIngestRunCleanupRequestDto);
959
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}/cleanup"
960
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
961
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
962
+ if (configuration) {
963
+ baseOptions = configuration.baseOptions;
964
+ baseAccessToken = configuration.accessToken;
965
+ }
966
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
967
+ localVarHeaderParameter = {};
968
+ localVarQueryParameter = {};
969
+ // authentication bearer required
970
+ // http bearer authentication required
971
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
972
+ case 1:
973
+ // authentication bearer required
974
+ // http bearer authentication required
975
+ _a.sent();
976
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
977
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
978
+ }
979
+ localVarHeaderParameter['Content-Type'] = 'application/json';
980
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
981
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
982
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
983
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stopIngestRunCleanupRequestDto, localVarRequestOptions, configuration);
984
+ return [2 /*return*/, {
985
+ url: (0, common_1.toPathString)(localVarUrlObj),
986
+ options: localVarRequestOptions,
987
+ }];
988
+ }
989
+ });
990
+ });
991
+ },
992
+ };
993
+ };
994
+ exports.MigrationApiAxiosParamCreator = MigrationApiAxiosParamCreator;
995
+ /**
996
+ * MigrationApi - functional programming interface
997
+ * @export
998
+ */
999
+ var MigrationApiFp = function (configuration) {
1000
+ var localVarAxiosParamCreator = (0, exports.MigrationApiAxiosParamCreator)(configuration);
1001
+ return {
1002
+ /**
1003
+ * This will start asynchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1004
+ * @summary Starts the ingest run cleanup asynchronously
1005
+ * @param {string} code
1006
+ * @param {object} body
1007
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ cleanupIngestRunAsync: function (code, body, authorization, options) {
1012
+ return __awaiter(this, void 0, void 0, function () {
1013
+ var localVarAxiosArgs;
1014
+ return __generator(this, function (_a) {
1015
+ switch (_a.label) {
1016
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cleanupIngestRunAsync(code, body, authorization, options)];
1017
+ case 1:
1018
+ localVarAxiosArgs = _a.sent();
1019
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1020
+ }
1021
+ });
1022
+ });
1023
+ },
1024
+ /**
1025
+ * This will start synchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1026
+ * @summary Cleans up the ingest run synchronously
1027
+ * @param {string} code
1028
+ * @param {object} body
1029
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ cleanupIngestRunSync: function (code, body, authorization, options) {
1034
+ return __awaiter(this, void 0, void 0, function () {
1035
+ var localVarAxiosArgs;
1036
+ return __generator(this, function (_a) {
1037
+ switch (_a.label) {
1038
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cleanupIngestRunSync(code, body, authorization, options)];
1039
+ case 1:
1040
+ localVarAxiosArgs = _a.sent();
1041
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1042
+ }
1043
+ });
1044
+ });
1045
+ },
1046
+ /**
1047
+ * This will start asynchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1048
+ * @summary Create the Async ingest run
1049
+ * @param {CreateIngestRunAsyncRequestDto} createIngestRunAsyncRequestDto
1050
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1051
+ * @param {*} [options] Override http request option.
1052
+ * @throws {RequiredError}
1053
+ */
1054
+ createIngestRunAsync: function (createIngestRunAsyncRequestDto, authorization, options) {
1055
+ return __awaiter(this, void 0, void 0, function () {
1056
+ var localVarAxiosArgs;
1057
+ return __generator(this, function (_a) {
1058
+ switch (_a.label) {
1059
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createIngestRunAsync(createIngestRunAsyncRequestDto, authorization, options)];
1060
+ case 1:
1061
+ localVarAxiosArgs = _a.sent();
1062
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1063
+ }
1064
+ });
1065
+ });
1066
+ },
1067
+ /**
1068
+ * This will start synchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1069
+ * @summary Create the Sync ingest run
1070
+ * @param {CreateIngestRunSyncRequestDto} createIngestRunSyncRequestDto
1071
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1072
+ * @param {*} [options] Override http request option.
1073
+ * @throws {RequiredError}
1074
+ */
1075
+ createIngestRunSync: function (createIngestRunSyncRequestDto, authorization, options) {
1076
+ return __awaiter(this, void 0, void 0, function () {
1077
+ var localVarAxiosArgs;
1078
+ return __generator(this, function (_a) {
1079
+ switch (_a.label) {
1080
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createIngestRunSync(createIngestRunSyncRequestDto, authorization, options)];
1081
+ case 1:
1082
+ localVarAxiosArgs = _a.sent();
1083
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1084
+ }
1085
+ });
1086
+ });
1087
+ },
1088
+ /**
1089
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1090
+ * @summary Create the Sync ingest flush
1091
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
1092
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ flushIngestedDataAsync: function (flushIngestedDataRequestDto, authorization, options) {
1097
+ return __awaiter(this, void 0, void 0, function () {
1098
+ var localVarAxiosArgs;
1099
+ return __generator(this, function (_a) {
1100
+ switch (_a.label) {
1101
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.flushIngestedDataAsync(flushIngestedDataRequestDto, authorization, options)];
1102
+ case 1:
1103
+ localVarAxiosArgs = _a.sent();
1104
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1105
+ }
1106
+ });
1107
+ });
1108
+ },
1109
+ /**
1110
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1111
+ * @summary Create the Sync ingest flush
1112
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
1113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ */
1117
+ flushIngestedDataSync: function (flushIngestedDataRequestDto, authorization, options) {
1118
+ return __awaiter(this, void 0, void 0, function () {
1119
+ var localVarAxiosArgs;
1120
+ return __generator(this, function (_a) {
1121
+ switch (_a.label) {
1122
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.flushIngestedDataSync(flushIngestedDataRequestDto, authorization, options)];
1123
+ case 1:
1124
+ localVarAxiosArgs = _a.sent();
1125
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1126
+ }
1127
+ });
1128
+ });
1129
+ },
1130
+ /**
1131
+ * Retrieves the details of the ingest flush that was previously created. Supply the unique ingest flush code that was returned when you created it and Emil Api will return the corresponding ingest flush information. **Required Permissions** \"migration.ingest-flushes.view\"
1132
+ * @summary Retrieve the ingest flush
1133
+ * @param {string} code
1134
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ getIngestFlush: function (code, authorization, options) {
1139
+ return __awaiter(this, void 0, void 0, function () {
1140
+ var localVarAxiosArgs;
1141
+ return __generator(this, function (_a) {
1142
+ switch (_a.label) {
1143
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIngestFlush(code, authorization, options)];
1144
+ case 1:
1145
+ localVarAxiosArgs = _a.sent();
1146
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1147
+ }
1148
+ });
1149
+ });
1150
+ },
1151
+ /**
1152
+ * Retrieves the details of the ingest run that was previously created. Supply the unique ingest run code that was returned when you created it and Emil Api will return the corresponding ingest run information. **Required Permissions** \"migration.ingest-runs.view\"
1153
+ * @summary Retrieve the ingest run
1154
+ * @param {string} code
1155
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ */
1159
+ getIngestRun: function (code, authorization, options) {
1160
+ return __awaiter(this, void 0, void 0, function () {
1161
+ var localVarAxiosArgs;
1162
+ return __generator(this, function (_a) {
1163
+ switch (_a.label) {
1164
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIngestRun(code, authorization, options)];
1165
+ case 1:
1166
+ localVarAxiosArgs = _a.sent();
1167
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1168
+ }
1169
+ });
1170
+ });
1171
+ },
1172
+ /**
1173
+ * Retrieves the details of the JSON schemas that was previously created. Supply the unique JSON schemas code that was returned when you created it and Emil Api will return the corresponding JSON schemas information. **Required Permissions** \"migration.json-schemas.view\"
1174
+ * @summary Retrieve the JSON schemas
1175
+ * @param {string} sourceEntity
1176
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ getJsonSchemas: function (sourceEntity, authorization, options) {
1181
+ return __awaiter(this, void 0, void 0, function () {
1182
+ var localVarAxiosArgs;
1183
+ return __generator(this, function (_a) {
1184
+ switch (_a.label) {
1185
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getJsonSchemas(sourceEntity, authorization, options)];
1186
+ case 1:
1187
+ localVarAxiosArgs = _a.sent();
1188
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1189
+ }
1190
+ });
1191
+ });
1192
+ },
1193
+ /**
1194
+ * Returns a list of entity mappings you have previously created. The entity mappings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1195
+ * @summary List entity mappings
1196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1197
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1198
+ * @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.
1199
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1200
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, sourceId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3&lt;/i&gt;
1201
+ * @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, createdAt, updatedAt, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1202
+ * @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;
1203
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ listEntityMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1208
+ return __awaiter(this, void 0, void 0, function () {
1209
+ var localVarAxiosArgs;
1210
+ return __generator(this, function (_a) {
1211
+ switch (_a.label) {
1212
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listEntityMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1213
+ case 1:
1214
+ localVarAxiosArgs = _a.sent();
1215
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1216
+ }
1217
+ });
1218
+ });
1219
+ },
1220
+ /**
1221
+ * Returns a list of ingest flushes you have previously created. The ingest flushes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-flushes.view\"
1222
+ * @summary List ingest flushes
1223
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1224
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1225
+ * @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.
1226
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1227
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, errorMessage, code&lt;/i&gt;
1228
+ * @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, createdAt, updatedAt, code, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1229
+ * @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: entities&lt;i&gt;
1230
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ */
1234
+ listIngestFlushes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1235
+ return __awaiter(this, void 0, void 0, function () {
1236
+ var localVarAxiosArgs;
1237
+ return __generator(this, function (_a) {
1238
+ switch (_a.label) {
1239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listIngestFlushes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1240
+ case 1:
1241
+ localVarAxiosArgs = _a.sent();
1242
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1243
+ }
1244
+ });
1245
+ });
1246
+ },
1247
+ /**
1248
+ * Returns a list of ingest run records you have previously created. The ingest run records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1249
+ * @summary List ingest run records
1250
+ * @param {string} code
1251
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1252
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1253
+ * @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.
1254
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
1255
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: externalId, errorMessage&lt;/i&gt;
1256
+ * @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, createdAt, updatedAt, ingestRunId, ingestBatchId, rowNo, externalId, status, stage, errorMessage&lt;/i&gt;
1257
+ * @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;
1258
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ listIngestRunRecords: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1263
+ return __awaiter(this, void 0, void 0, function () {
1264
+ var localVarAxiosArgs;
1265
+ return __generator(this, function (_a) {
1266
+ switch (_a.label) {
1267
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listIngestRunRecords(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1268
+ case 1:
1269
+ localVarAxiosArgs = _a.sent();
1270
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1271
+ }
1272
+ });
1273
+ });
1274
+ },
1275
+ /**
1276
+ * Returns a list of ingest runs you have previously created. The ingest runs are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1277
+ * @summary List ingest runs
1278
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1279
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1280
+ * @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.
1281
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1282
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, payload, fileUrl, errorMessage, code&lt;/i&gt;
1283
+ * @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, createdAt, updatedAt, code, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1284
+ * @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: batches&lt;i&gt;
1285
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ */
1289
+ listIngestRuns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1290
+ return __awaiter(this, void 0, void 0, function () {
1291
+ var localVarAxiosArgs;
1292
+ return __generator(this, function (_a) {
1293
+ switch (_a.label) {
1294
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listIngestRuns(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1295
+ case 1:
1296
+ localVarAxiosArgs = _a.sent();
1297
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1298
+ }
1299
+ });
1300
+ });
1301
+ },
1302
+ /**
1303
+ * This will stop the running ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1304
+ * @summary Stops the ingest flush
1305
+ * @param {string} code
1306
+ * @param {StopIngestFlushRequestDto} stopIngestFlushRequestDto
1307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1308
+ * @param {*} [options] Override http request option.
1309
+ * @throws {RequiredError}
1310
+ */
1311
+ stopIngestFlush: function (code, stopIngestFlushRequestDto, authorization, options) {
1312
+ return __awaiter(this, void 0, void 0, function () {
1313
+ var localVarAxiosArgs;
1314
+ return __generator(this, function (_a) {
1315
+ switch (_a.label) {
1316
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.stopIngestFlush(code, stopIngestFlushRequestDto, authorization, options)];
1317
+ case 1:
1318
+ localVarAxiosArgs = _a.sent();
1319
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1320
+ }
1321
+ });
1322
+ });
1323
+ },
1324
+ /**
1325
+ * This will stop the running ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1326
+ * @summary Stops the ingest run
1327
+ * @param {string} code
1328
+ * @param {StopIngestRunRequestDto} stopIngestRunRequestDto
1329
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ stopIngestRun: function (code, stopIngestRunRequestDto, authorization, options) {
1334
+ return __awaiter(this, void 0, void 0, function () {
1335
+ var localVarAxiosArgs;
1336
+ return __generator(this, function (_a) {
1337
+ switch (_a.label) {
1338
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.stopIngestRun(code, stopIngestRunRequestDto, authorization, options)];
1339
+ case 1:
1340
+ localVarAxiosArgs = _a.sent();
1341
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1342
+ }
1343
+ });
1344
+ });
1345
+ },
1346
+ /**
1347
+ * This will stop the ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1348
+ * @summary Stops the ingest run cleanup
1349
+ * @param {string} code
1350
+ * @param {StopIngestRunCleanupRequestDto} stopIngestRunCleanupRequestDto
1351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1352
+ * @param {*} [options] Override http request option.
1353
+ * @throws {RequiredError}
1354
+ */
1355
+ stopIngestRunCleanup: function (code, stopIngestRunCleanupRequestDto, authorization, options) {
1356
+ return __awaiter(this, void 0, void 0, function () {
1357
+ var localVarAxiosArgs;
1358
+ return __generator(this, function (_a) {
1359
+ switch (_a.label) {
1360
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.stopIngestRunCleanup(code, stopIngestRunCleanupRequestDto, authorization, options)];
1361
+ case 1:
1362
+ localVarAxiosArgs = _a.sent();
1363
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1364
+ }
1365
+ });
1366
+ });
1367
+ },
1368
+ };
1369
+ };
1370
+ exports.MigrationApiFp = MigrationApiFp;
1371
+ /**
1372
+ * MigrationApi - factory interface
1373
+ * @export
1374
+ */
1375
+ var MigrationApiFactory = function (configuration, basePath, axios) {
1376
+ var localVarFp = (0, exports.MigrationApiFp)(configuration);
1377
+ return {
1378
+ /**
1379
+ * This will start asynchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1380
+ * @summary Starts the ingest run cleanup asynchronously
1381
+ * @param {string} code
1382
+ * @param {object} body
1383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ */
1387
+ cleanupIngestRunAsync: function (code, body, authorization, options) {
1388
+ return localVarFp.cleanupIngestRunAsync(code, body, authorization, options).then(function (request) { return request(axios, basePath); });
1389
+ },
1390
+ /**
1391
+ * This will start synchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1392
+ * @summary Cleans up the ingest run synchronously
1393
+ * @param {string} code
1394
+ * @param {object} body
1395
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ */
1399
+ cleanupIngestRunSync: function (code, body, authorization, options) {
1400
+ return localVarFp.cleanupIngestRunSync(code, body, authorization, options).then(function (request) { return request(axios, basePath); });
1401
+ },
1402
+ /**
1403
+ * This will start asynchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1404
+ * @summary Create the Async ingest run
1405
+ * @param {CreateIngestRunAsyncRequestDto} createIngestRunAsyncRequestDto
1406
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ */
1410
+ createIngestRunAsync: function (createIngestRunAsyncRequestDto, authorization, options) {
1411
+ return localVarFp.createIngestRunAsync(createIngestRunAsyncRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1412
+ },
1413
+ /**
1414
+ * This will start synchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1415
+ * @summary Create the Sync ingest run
1416
+ * @param {CreateIngestRunSyncRequestDto} createIngestRunSyncRequestDto
1417
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1418
+ * @param {*} [options] Override http request option.
1419
+ * @throws {RequiredError}
1420
+ */
1421
+ createIngestRunSync: function (createIngestRunSyncRequestDto, authorization, options) {
1422
+ return localVarFp.createIngestRunSync(createIngestRunSyncRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1423
+ },
1424
+ /**
1425
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1426
+ * @summary Create the Sync ingest flush
1427
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
1428
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ flushIngestedDataAsync: function (flushIngestedDataRequestDto, authorization, options) {
1433
+ return localVarFp.flushIngestedDataAsync(flushIngestedDataRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1434
+ },
1435
+ /**
1436
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1437
+ * @summary Create the Sync ingest flush
1438
+ * @param {FlushIngestedDataRequestDto} flushIngestedDataRequestDto
1439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1440
+ * @param {*} [options] Override http request option.
1441
+ * @throws {RequiredError}
1442
+ */
1443
+ flushIngestedDataSync: function (flushIngestedDataRequestDto, authorization, options) {
1444
+ return localVarFp.flushIngestedDataSync(flushIngestedDataRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1445
+ },
1446
+ /**
1447
+ * Retrieves the details of the ingest flush that was previously created. Supply the unique ingest flush code that was returned when you created it and Emil Api will return the corresponding ingest flush information. **Required Permissions** \"migration.ingest-flushes.view\"
1448
+ * @summary Retrieve the ingest flush
1449
+ * @param {string} code
1450
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ getIngestFlush: function (code, authorization, options) {
1455
+ return localVarFp.getIngestFlush(code, authorization, options).then(function (request) { return request(axios, basePath); });
1456
+ },
1457
+ /**
1458
+ * Retrieves the details of the ingest run that was previously created. Supply the unique ingest run code that was returned when you created it and Emil Api will return the corresponding ingest run information. **Required Permissions** \"migration.ingest-runs.view\"
1459
+ * @summary Retrieve the ingest run
1460
+ * @param {string} code
1461
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1462
+ * @param {*} [options] Override http request option.
1463
+ * @throws {RequiredError}
1464
+ */
1465
+ getIngestRun: function (code, authorization, options) {
1466
+ return localVarFp.getIngestRun(code, authorization, options).then(function (request) { return request(axios, basePath); });
1467
+ },
1468
+ /**
1469
+ * Retrieves the details of the JSON schemas that was previously created. Supply the unique JSON schemas code that was returned when you created it and Emil Api will return the corresponding JSON schemas information. **Required Permissions** \"migration.json-schemas.view\"
1470
+ * @summary Retrieve the JSON schemas
1471
+ * @param {string} sourceEntity
1472
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ getJsonSchemas: function (sourceEntity, authorization, options) {
1477
+ return localVarFp.getJsonSchemas(sourceEntity, authorization, options).then(function (request) { return request(axios, basePath); });
1478
+ },
1479
+ /**
1480
+ * Returns a list of entity mappings you have previously created. The entity mappings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1481
+ * @summary List entity mappings
1482
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1483
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1484
+ * @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.
1485
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1486
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, sourceId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3&lt;/i&gt;
1487
+ * @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, createdAt, updatedAt, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1488
+ * @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;
1489
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, sourceId, targetEntity, targetId, targetCode, targetSlug, targetOtherId1, targetOtherId2, targetOtherId3, ingestBatchId&lt;/i&gt;
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ listEntityMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1494
+ return localVarFp.listEntityMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1495
+ },
1496
+ /**
1497
+ * Returns a list of ingest flushes you have previously created. The ingest flushes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-flushes.view\"
1498
+ * @summary List ingest flushes
1499
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1500
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1501
+ * @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.
1502
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1503
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, errorMessage, code&lt;/i&gt;
1504
+ * @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, createdAt, updatedAt, code, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1505
+ * @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: entities&lt;i&gt;
1506
+ * @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, createdAt, updatedAt, ern, sourceSystem, totalDeletedRowCount, isSuccess, errorMessage&lt;/i&gt;
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ listIngestFlushes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1511
+ return localVarFp.listIngestFlushes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1512
+ },
1513
+ /**
1514
+ * Returns a list of ingest run records you have previously created. The ingest run records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1515
+ * @summary List ingest run records
1516
+ * @param {string} code
1517
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1518
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1519
+ * @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.
1520
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
1521
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: externalId, errorMessage&lt;/i&gt;
1522
+ * @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, createdAt, updatedAt, ingestRunId, ingestBatchId, rowNo, externalId, status, stage, errorMessage&lt;/i&gt;
1523
+ * @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;
1524
+ * @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, ingestRunId, ingestBatchId, createdAt, updatedAt, ern, rowNo, externalId, errorMessage&lt;/i&gt;
1525
+ * @param {*} [options] Override http request option.
1526
+ * @throws {RequiredError}
1527
+ */
1528
+ listIngestRunRecords: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1529
+ return localVarFp.listIngestRunRecords(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1530
+ },
1531
+ /**
1532
+ * Returns a list of ingest runs you have previously created. The ingest runs are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1533
+ * @summary List ingest runs
1534
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1535
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1536
+ * @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.
1537
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1538
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: sourceSystem, sourceEntity, payload, fileUrl, errorMessage, code&lt;/i&gt;
1539
+ * @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, createdAt, updatedAt, code, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1540
+ * @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: batches&lt;i&gt;
1541
+ * @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, createdAt, updatedAt, ern, sourceSystem, sourceEntity, fileUrl, recordCount, isSuccess, errorMessage&lt;/i&gt;
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ */
1545
+ listIngestRuns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1546
+ return localVarFp.listIngestRuns(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1547
+ },
1548
+ /**
1549
+ * This will stop the running ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1550
+ * @summary Stops the ingest flush
1551
+ * @param {string} code
1552
+ * @param {StopIngestFlushRequestDto} stopIngestFlushRequestDto
1553
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1554
+ * @param {*} [options] Override http request option.
1555
+ * @throws {RequiredError}
1556
+ */
1557
+ stopIngestFlush: function (code, stopIngestFlushRequestDto, authorization, options) {
1558
+ return localVarFp.stopIngestFlush(code, stopIngestFlushRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1559
+ },
1560
+ /**
1561
+ * This will stop the running ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1562
+ * @summary Stops the ingest run
1563
+ * @param {string} code
1564
+ * @param {StopIngestRunRequestDto} stopIngestRunRequestDto
1565
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1566
+ * @param {*} [options] Override http request option.
1567
+ * @throws {RequiredError}
1568
+ */
1569
+ stopIngestRun: function (code, stopIngestRunRequestDto, authorization, options) {
1570
+ return localVarFp.stopIngestRun(code, stopIngestRunRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1571
+ },
1572
+ /**
1573
+ * This will stop the ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1574
+ * @summary Stops the ingest run cleanup
1575
+ * @param {string} code
1576
+ * @param {StopIngestRunCleanupRequestDto} stopIngestRunCleanupRequestDto
1577
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ */
1581
+ stopIngestRunCleanup: function (code, stopIngestRunCleanupRequestDto, authorization, options) {
1582
+ return localVarFp.stopIngestRunCleanup(code, stopIngestRunCleanupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1583
+ },
1584
+ };
1585
+ };
1586
+ exports.MigrationApiFactory = MigrationApiFactory;
1587
+ /**
1588
+ * MigrationApi - object-oriented interface
1589
+ * @export
1590
+ * @class MigrationApi
1591
+ * @extends {BaseAPI}
1592
+ */
1593
+ var MigrationApi = /** @class */ (function (_super) {
1594
+ __extends(MigrationApi, _super);
1595
+ function MigrationApi() {
1596
+ return _super !== null && _super.apply(this, arguments) || this;
1597
+ }
1598
+ /**
1599
+ * This will start asynchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1600
+ * @summary Starts the ingest run cleanup asynchronously
1601
+ * @param {MigrationApiCleanupIngestRunAsyncRequest} requestParameters Request parameters.
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ * @memberof MigrationApi
1605
+ */
1606
+ MigrationApi.prototype.cleanupIngestRunAsync = function (requestParameters, options) {
1607
+ var _this = this;
1608
+ return (0, exports.MigrationApiFp)(this.configuration).cleanupIngestRunAsync(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1609
+ };
1610
+ /**
1611
+ * This will start synchronous ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1612
+ * @summary Cleans up the ingest run synchronously
1613
+ * @param {MigrationApiCleanupIngestRunSyncRequest} requestParameters Request parameters.
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ * @memberof MigrationApi
1617
+ */
1618
+ MigrationApi.prototype.cleanupIngestRunSync = function (requestParameters, options) {
1619
+ var _this = this;
1620
+ return (0, exports.MigrationApiFp)(this.configuration).cleanupIngestRunSync(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1621
+ };
1622
+ /**
1623
+ * This will start asynchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1624
+ * @summary Create the Async ingest run
1625
+ * @param {MigrationApiCreateIngestRunAsyncRequest} requestParameters Request parameters.
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ * @memberof MigrationApi
1629
+ */
1630
+ MigrationApi.prototype.createIngestRunAsync = function (requestParameters, options) {
1631
+ var _this = this;
1632
+ return (0, exports.MigrationApiFp)(this.configuration).createIngestRunAsync(requestParameters.createIngestRunAsyncRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1633
+ };
1634
+ /**
1635
+ * This will start synchronous ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1636
+ * @summary Create the Sync ingest run
1637
+ * @param {MigrationApiCreateIngestRunSyncRequest} requestParameters Request parameters.
1638
+ * @param {*} [options] Override http request option.
1639
+ * @throws {RequiredError}
1640
+ * @memberof MigrationApi
1641
+ */
1642
+ MigrationApi.prototype.createIngestRunSync = function (requestParameters, options) {
1643
+ var _this = this;
1644
+ return (0, exports.MigrationApiFp)(this.configuration).createIngestRunSync(requestParameters.createIngestRunSyncRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1645
+ };
1646
+ /**
1647
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1648
+ * @summary Create the Sync ingest flush
1649
+ * @param {MigrationApiFlushIngestedDataAsyncRequest} requestParameters Request parameters.
1650
+ * @param {*} [options] Override http request option.
1651
+ * @throws {RequiredError}
1652
+ * @memberof MigrationApi
1653
+ */
1654
+ MigrationApi.prototype.flushIngestedDataAsync = function (requestParameters, options) {
1655
+ var _this = this;
1656
+ return (0, exports.MigrationApiFp)(this.configuration).flushIngestedDataAsync(requestParameters.flushIngestedDataRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1657
+ };
1658
+ /**
1659
+ * This will start synchronous ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1660
+ * @summary Create the Sync ingest flush
1661
+ * @param {MigrationApiFlushIngestedDataSyncRequest} requestParameters Request parameters.
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ * @memberof MigrationApi
1665
+ */
1666
+ MigrationApi.prototype.flushIngestedDataSync = function (requestParameters, options) {
1667
+ var _this = this;
1668
+ return (0, exports.MigrationApiFp)(this.configuration).flushIngestedDataSync(requestParameters.flushIngestedDataRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1669
+ };
1670
+ /**
1671
+ * Retrieves the details of the ingest flush that was previously created. Supply the unique ingest flush code that was returned when you created it and Emil Api will return the corresponding ingest flush information. **Required Permissions** \"migration.ingest-flushes.view\"
1672
+ * @summary Retrieve the ingest flush
1673
+ * @param {MigrationApiGetIngestFlushRequest} requestParameters Request parameters.
1674
+ * @param {*} [options] Override http request option.
1675
+ * @throws {RequiredError}
1676
+ * @memberof MigrationApi
1677
+ */
1678
+ MigrationApi.prototype.getIngestFlush = function (requestParameters, options) {
1679
+ var _this = this;
1680
+ return (0, exports.MigrationApiFp)(this.configuration).getIngestFlush(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1681
+ };
1682
+ /**
1683
+ * Retrieves the details of the ingest run that was previously created. Supply the unique ingest run code that was returned when you created it and Emil Api will return the corresponding ingest run information. **Required Permissions** \"migration.ingest-runs.view\"
1684
+ * @summary Retrieve the ingest run
1685
+ * @param {MigrationApiGetIngestRunRequest} requestParameters Request parameters.
1686
+ * @param {*} [options] Override http request option.
1687
+ * @throws {RequiredError}
1688
+ * @memberof MigrationApi
1689
+ */
1690
+ MigrationApi.prototype.getIngestRun = function (requestParameters, options) {
1691
+ var _this = this;
1692
+ return (0, exports.MigrationApiFp)(this.configuration).getIngestRun(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1693
+ };
1694
+ /**
1695
+ * Retrieves the details of the JSON schemas that was previously created. Supply the unique JSON schemas code that was returned when you created it and Emil Api will return the corresponding JSON schemas information. **Required Permissions** \"migration.json-schemas.view\"
1696
+ * @summary Retrieve the JSON schemas
1697
+ * @param {MigrationApiGetJsonSchemasRequest} requestParameters Request parameters.
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ * @memberof MigrationApi
1701
+ */
1702
+ MigrationApi.prototype.getJsonSchemas = function (requestParameters, options) {
1703
+ var _this = this;
1704
+ return (0, exports.MigrationApiFp)(this.configuration).getJsonSchemas(requestParameters.sourceEntity, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1705
+ };
1706
+ /**
1707
+ * Returns a list of entity mappings you have previously created. The entity mappings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1708
+ * @summary List entity mappings
1709
+ * @param {MigrationApiListEntityMappingsRequest} requestParameters Request parameters.
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ * @memberof MigrationApi
1713
+ */
1714
+ MigrationApi.prototype.listEntityMappings = function (requestParameters, options) {
1715
+ var _this = this;
1716
+ if (requestParameters === void 0) { requestParameters = {}; }
1717
+ return (0, exports.MigrationApiFp)(this.configuration).listEntityMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1718
+ };
1719
+ /**
1720
+ * Returns a list of ingest flushes you have previously created. The ingest flushes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-flushes.view\"
1721
+ * @summary List ingest flushes
1722
+ * @param {MigrationApiListIngestFlushesRequest} requestParameters Request parameters.
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ * @memberof MigrationApi
1726
+ */
1727
+ MigrationApi.prototype.listIngestFlushes = function (requestParameters, options) {
1728
+ var _this = this;
1729
+ if (requestParameters === void 0) { requestParameters = {}; }
1730
+ return (0, exports.MigrationApiFp)(this.configuration).listIngestFlushes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1731
+ };
1732
+ /**
1733
+ * Returns a list of ingest run records you have previously created. The ingest run records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1734
+ * @summary List ingest run records
1735
+ * @param {MigrationApiListIngestRunRecordsRequest} requestParameters Request parameters.
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ * @memberof MigrationApi
1739
+ */
1740
+ MigrationApi.prototype.listIngestRunRecords = function (requestParameters, options) {
1741
+ var _this = this;
1742
+ return (0, exports.MigrationApiFp)(this.configuration).listIngestRunRecords(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1743
+ };
1744
+ /**
1745
+ * Returns a list of ingest runs you have previously created. The ingest runs are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"migration.ingest-runs.view\"
1746
+ * @summary List ingest runs
1747
+ * @param {MigrationApiListIngestRunsRequest} requestParameters Request parameters.
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ * @memberof MigrationApi
1751
+ */
1752
+ MigrationApi.prototype.listIngestRuns = function (requestParameters, options) {
1753
+ var _this = this;
1754
+ if (requestParameters === void 0) { requestParameters = {}; }
1755
+ return (0, exports.MigrationApiFp)(this.configuration).listIngestRuns(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1756
+ };
1757
+ /**
1758
+ * This will stop the running ingest flush. **Required Permissions** \"migration.ingest-flushes.*\"
1759
+ * @summary Stops the ingest flush
1760
+ * @param {MigrationApiStopIngestFlushRequest} requestParameters Request parameters.
1761
+ * @param {*} [options] Override http request option.
1762
+ * @throws {RequiredError}
1763
+ * @memberof MigrationApi
1764
+ */
1765
+ MigrationApi.prototype.stopIngestFlush = function (requestParameters, options) {
1766
+ var _this = this;
1767
+ return (0, exports.MigrationApiFp)(this.configuration).stopIngestFlush(requestParameters.code, requestParameters.stopIngestFlushRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1768
+ };
1769
+ /**
1770
+ * This will stop the running ingest run. **Required Permissions** \"migration.ingest-runs.*\"
1771
+ * @summary Stops the ingest run
1772
+ * @param {MigrationApiStopIngestRunRequest} requestParameters Request parameters.
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ * @memberof MigrationApi
1776
+ */
1777
+ MigrationApi.prototype.stopIngestRun = function (requestParameters, options) {
1778
+ var _this = this;
1779
+ return (0, exports.MigrationApiFp)(this.configuration).stopIngestRun(requestParameters.code, requestParameters.stopIngestRunRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1780
+ };
1781
+ /**
1782
+ * This will stop the ingest run cleanup. **Required Permissions** \"migration.ingest-runs.*\"
1783
+ * @summary Stops the ingest run cleanup
1784
+ * @param {MigrationApiStopIngestRunCleanupRequest} requestParameters Request parameters.
1785
+ * @param {*} [options] Override http request option.
1786
+ * @throws {RequiredError}
1787
+ * @memberof MigrationApi
1788
+ */
1789
+ MigrationApi.prototype.stopIngestRunCleanup = function (requestParameters, options) {
1790
+ var _this = this;
1791
+ return (0, exports.MigrationApiFp)(this.configuration).stopIngestRunCleanup(requestParameters.code, requestParameters.stopIngestRunCleanupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1792
+ };
1793
+ return MigrationApi;
1794
+ }(base_1.BaseAPI));
1795
+ exports.MigrationApi = MigrationApi;