@emilgroup/migration-sdk 0.3.1-beta.32 → 0.3.1-beta.35

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.
@@ -34,6 +34,7 @@ models/inline-response200.ts
34
34
  models/inline-response503.ts
35
35
  models/list-entity-mappings-response-class.ts
36
36
  models/list-ingest-flushes-response-class.ts
37
+ models/list-ingest-run-batches-response-class.ts
37
38
  models/list-ingest-run-records-response-class.ts
38
39
  models/list-ingest-runs-response-class.ts
39
40
  models/stop-ingest-flush-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/migration-sdk@0.3.1-beta.32 --save
20
+ npm install @emilgroup/migration-sdk@0.3.1-beta.35 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/migration-sdk@0.3.1-beta.32
24
+ yarn add @emilgroup/migration-sdk@0.3.1-beta.35
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -47,6 +47,8 @@ import { ListEntityMappingsResponseClass } from '../models';
47
47
  // @ts-ignore
48
48
  import { ListIngestFlushesResponseClass } from '../models';
49
49
  // @ts-ignore
50
+ import { ListIngestRunBatchesResponseClass } from '../models';
51
+ // @ts-ignore
50
52
  import { ListIngestRunRecordsResponseClass } from '../models';
51
53
  // @ts-ignore
52
54
  import { ListIngestRunsResponseClass } from '../models';
@@ -634,6 +636,86 @@ export const MigrationApiAxiosParamCreator = function (configuration?: Configura
634
636
 
635
637
 
636
638
 
639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
641
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
642
+
643
+ return {
644
+ url: toPathString(localVarUrlObj),
645
+ options: localVarRequestOptions,
646
+ };
647
+ },
648
+ /**
649
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
650
+ * @summary List ingest run batches
651
+ * @param {string} code
652
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
653
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
654
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
655
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, ingestRunId, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage</i>
656
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, errorMessage, rejectionErrorMessage</i>
657
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, ingestRunId, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage</i>
658
+ * @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.<br/> <br/> <i>Allowed values: entities<i>
659
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, ingestRunId, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage</i>
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ listIngestRunBatches: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
664
+ // verify required parameter 'code' is not null or undefined
665
+ assertParamExists('listIngestRunBatches', 'code', code)
666
+ const localVarPath = `/migrationservice/v1/ingest-runs/{code}/batches`
667
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
670
+ let baseOptions;
671
+ let baseAccessToken;
672
+ if (configuration) {
673
+ baseOptions = configuration.baseOptions;
674
+ baseAccessToken = configuration.accessToken;
675
+ }
676
+
677
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
678
+ const localVarHeaderParameter = {} as any;
679
+ const localVarQueryParameter = {} as any;
680
+
681
+ // authentication bearer required
682
+ // http bearer authentication required
683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
684
+
685
+ if (pageSize !== undefined) {
686
+ localVarQueryParameter['pageSize'] = pageSize;
687
+ }
688
+
689
+ if (pageToken !== undefined) {
690
+ localVarQueryParameter['pageToken'] = pageToken;
691
+ }
692
+
693
+ if (filter !== undefined) {
694
+ localVarQueryParameter['filter'] = filter;
695
+ }
696
+
697
+ if (search !== undefined) {
698
+ localVarQueryParameter['search'] = search;
699
+ }
700
+
701
+ if (order !== undefined) {
702
+ localVarQueryParameter['order'] = order;
703
+ }
704
+
705
+ if (expand !== undefined) {
706
+ localVarQueryParameter['expand'] = expand;
707
+ }
708
+
709
+ if (filters !== undefined) {
710
+ localVarQueryParameter['filters'] = filters;
711
+ }
712
+
713
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
714
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
715
+ }
716
+
717
+
718
+
637
719
  setSearchParams(localVarUrlObj, localVarQueryParameter);
638
720
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
721
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1108,6 +1190,25 @@ export const MigrationApiFp = function(configuration?: Configuration) {
1108
1190
  const localVarAxiosArgs = await localVarAxiosParamCreator.listIngestFlushes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
1109
1191
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1110
1192
  },
1193
+ /**
1194
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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 ingest run batches
1196
+ * @param {string} code
1197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1198
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1199
+ * @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.
1200
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1201
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
1202
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
1203
+ * @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;
1204
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1205
+ * @param {*} [options] Override http request option.
1206
+ * @throws {RequiredError}
1207
+ */
1208
+ async listIngestRunBatches(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIngestRunBatchesResponseClass>> {
1209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listIngestRunBatches(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
1210
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1211
+ },
1111
1212
  /**
1112
1213
  * 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\"
1113
1214
  * @summary List ingest run records
@@ -1329,6 +1430,24 @@ export const MigrationApiFactory = function (configuration?: Configuration, base
1329
1430
  listIngestFlushes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListIngestFlushesResponseClass> {
1330
1431
  return localVarFp.listIngestFlushes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1331
1432
  },
1433
+ /**
1434
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
1435
+ * @summary List ingest run batches
1436
+ * @param {string} code
1437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1438
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1439
+ * @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.
1440
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1441
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
1442
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
1443
+ * @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;
1444
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ */
1448
+ listIngestRunBatches(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListIngestRunBatchesResponseClass> {
1449
+ return localVarFp.listIngestRunBatches(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1450
+ },
1332
1451
  /**
1333
1452
  * 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\"
1334
1453
  * @summary List ingest run records
@@ -1732,6 +1851,76 @@ export interface MigrationApiListIngestFlushesRequest {
1732
1851
  readonly filters?: string
1733
1852
  }
1734
1853
 
1854
+ /**
1855
+ * Request parameters for listIngestRunBatches operation in MigrationApi.
1856
+ * @export
1857
+ * @interface MigrationApiListIngestRunBatchesRequest
1858
+ */
1859
+ export interface MigrationApiListIngestRunBatchesRequest {
1860
+ /**
1861
+ *
1862
+ * @type {string}
1863
+ * @memberof MigrationApiListIngestRunBatches
1864
+ */
1865
+ readonly code: string
1866
+
1867
+ /**
1868
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1869
+ * @type {string}
1870
+ * @memberof MigrationApiListIngestRunBatches
1871
+ */
1872
+ readonly authorization?: string
1873
+
1874
+ /**
1875
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1876
+ * @type {number}
1877
+ * @memberof MigrationApiListIngestRunBatches
1878
+ */
1879
+ readonly pageSize?: number
1880
+
1881
+ /**
1882
+ * 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.
1883
+ * @type {string}
1884
+ * @memberof MigrationApiListIngestRunBatches
1885
+ */
1886
+ readonly pageToken?: string
1887
+
1888
+ /**
1889
+ * 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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1890
+ * @type {string}
1891
+ * @memberof MigrationApiListIngestRunBatches
1892
+ */
1893
+ readonly filter?: string
1894
+
1895
+ /**
1896
+ * 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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
1897
+ * @type {string}
1898
+ * @memberof MigrationApiListIngestRunBatches
1899
+ */
1900
+ readonly search?: string
1901
+
1902
+ /**
1903
+ * 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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
1904
+ * @type {string}
1905
+ * @memberof MigrationApiListIngestRunBatches
1906
+ */
1907
+ readonly order?: string
1908
+
1909
+ /**
1910
+ * 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;
1911
+ * @type {string}
1912
+ * @memberof MigrationApiListIngestRunBatches
1913
+ */
1914
+ readonly expand?: string
1915
+
1916
+ /**
1917
+ * 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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1918
+ * @type {string}
1919
+ * @memberof MigrationApiListIngestRunBatches
1920
+ */
1921
+ readonly filters?: string
1922
+ }
1923
+
1735
1924
  /**
1736
1925
  * Request parameters for listIngestRunRecords operation in MigrationApi.
1737
1926
  * @export
@@ -2088,6 +2277,18 @@ export class MigrationApi extends BaseAPI {
2088
2277
  return MigrationApiFp(this.configuration).listIngestFlushes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
2089
2278
  }
2090
2279
 
2280
+ /**
2281
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
2282
+ * @summary List ingest run batches
2283
+ * @param {MigrationApiListIngestRunBatchesRequest} requestParameters Request parameters.
2284
+ * @param {*} [options] Override http request option.
2285
+ * @throws {RequiredError}
2286
+ * @memberof MigrationApi
2287
+ */
2288
+ public listIngestRunBatches(requestParameters: MigrationApiListIngestRunBatchesRequest, options?: AxiosRequestConfig) {
2289
+ return MigrationApiFp(this.configuration).listIngestRunBatches(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
2290
+ }
2291
+
2091
2292
  /**
2092
2293
  * 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\"
2093
2294
  * @summary List ingest run records
package/base.ts CHANGED
@@ -44,7 +44,6 @@ export enum Environment {
44
44
  Staging = 'https://apiv2-staging.emil.de',
45
45
  Development = 'https://apiv2-dev.emil.de',
46
46
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
47
- StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
48
47
  }
49
48
 
50
49
  let _retry_count = 0
@@ -25,6 +25,7 @@ import { GetIngestRunResponseClass } from '../models';
25
25
  import { GetJsonSchemasResponseClass } from '../models';
26
26
  import { ListEntityMappingsResponseClass } from '../models';
27
27
  import { ListIngestFlushesResponseClass } from '../models';
28
+ import { ListIngestRunBatchesResponseClass } from '../models';
28
29
  import { ListIngestRunRecordsResponseClass } from '../models';
29
30
  import { ListIngestRunsResponseClass } from '../models';
30
31
  import { StopIngestFlushRequestDto } from '../models';
@@ -150,6 +151,22 @@ export declare const MigrationApiAxiosParamCreator: (configuration?: Configurati
150
151
  * @throws {RequiredError}
151
152
  */
152
153
  listIngestFlushes: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
154
+ /**
155
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
156
+ * @summary List ingest run batches
157
+ * @param {string} code
158
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
160
+ * @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.
161
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
162
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
163
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
164
+ * @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;
165
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ listIngestRunBatches: (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
153
170
  /**
154
171
  * 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\"
155
172
  * @summary List ingest run records
@@ -330,6 +347,22 @@ export declare const MigrationApiFp: (configuration?: Configuration) => {
330
347
  * @throws {RequiredError}
331
348
  */
332
349
  listIngestFlushes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIngestFlushesResponseClass>>;
350
+ /**
351
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
352
+ * @summary List ingest run batches
353
+ * @param {string} code
354
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
356
+ * @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.
357
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
358
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
359
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
360
+ * @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;
361
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ listIngestRunBatches(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIngestRunBatchesResponseClass>>;
333
366
  /**
334
367
  * 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\"
335
368
  * @summary List ingest run records
@@ -510,6 +543,22 @@ export declare const MigrationApiFactory: (configuration?: Configuration, basePa
510
543
  * @throws {RequiredError}
511
544
  */
512
545
  listIngestFlushes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListIngestFlushesResponseClass>;
546
+ /**
547
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
548
+ * @summary List ingest run batches
549
+ * @param {string} code
550
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
551
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
552
+ * @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.
553
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
554
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
555
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
556
+ * @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;
557
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ listIngestRunBatches(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListIngestRunBatchesResponseClass>;
513
562
  /**
514
563
  * 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\"
515
564
  * @summary List ingest run records
@@ -865,6 +914,67 @@ export interface MigrationApiListIngestFlushesRequest {
865
914
  */
866
915
  readonly filters?: string;
867
916
  }
917
+ /**
918
+ * Request parameters for listIngestRunBatches operation in MigrationApi.
919
+ * @export
920
+ * @interface MigrationApiListIngestRunBatchesRequest
921
+ */
922
+ export interface MigrationApiListIngestRunBatchesRequest {
923
+ /**
924
+ *
925
+ * @type {string}
926
+ * @memberof MigrationApiListIngestRunBatches
927
+ */
928
+ readonly code: string;
929
+ /**
930
+ * Bearer Token: provided by the login endpoint under the name accessToken.
931
+ * @type {string}
932
+ * @memberof MigrationApiListIngestRunBatches
933
+ */
934
+ readonly authorization?: string;
935
+ /**
936
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
937
+ * @type {number}
938
+ * @memberof MigrationApiListIngestRunBatches
939
+ */
940
+ readonly pageSize?: number;
941
+ /**
942
+ * 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.
943
+ * @type {string}
944
+ * @memberof MigrationApiListIngestRunBatches
945
+ */
946
+ readonly pageToken?: string;
947
+ /**
948
+ * 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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
949
+ * @type {string}
950
+ * @memberof MigrationApiListIngestRunBatches
951
+ */
952
+ readonly filter?: string;
953
+ /**
954
+ * 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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
955
+ * @type {string}
956
+ * @memberof MigrationApiListIngestRunBatches
957
+ */
958
+ readonly search?: string;
959
+ /**
960
+ * 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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
961
+ * @type {string}
962
+ * @memberof MigrationApiListIngestRunBatches
963
+ */
964
+ readonly order?: string;
965
+ /**
966
+ * 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;
967
+ * @type {string}
968
+ * @memberof MigrationApiListIngestRunBatches
969
+ */
970
+ readonly expand?: string;
971
+ /**
972
+ * 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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
973
+ * @type {string}
974
+ * @memberof MigrationApiListIngestRunBatches
975
+ */
976
+ readonly filters?: string;
977
+ }
868
978
  /**
869
979
  * Request parameters for listIngestRunRecords operation in MigrationApi.
870
980
  * @export
@@ -1162,6 +1272,15 @@ export declare class MigrationApi extends BaseAPI {
1162
1272
  * @memberof MigrationApi
1163
1273
  */
1164
1274
  listIngestFlushes(requestParameters?: MigrationApiListIngestFlushesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListIngestFlushesResponseClass, any, {}>>;
1275
+ /**
1276
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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 run batches
1278
+ * @param {MigrationApiListIngestRunBatchesRequest} requestParameters Request parameters.
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ * @memberof MigrationApi
1282
+ */
1283
+ listIngestRunBatches(requestParameters: MigrationApiListIngestRunBatchesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListIngestRunBatchesResponseClass, any, {}>>;
1165
1284
  /**
1166
1285
  * 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\"
1167
1286
  * @summary List ingest run records
@@ -682,6 +682,82 @@ var MigrationApiAxiosParamCreator = function (configuration) {
682
682
  });
683
683
  });
684
684
  },
685
+ /**
686
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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 batches
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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&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: code, errorMessage, rejectionErrorMessage&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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, 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; &lt;i&gt;Allowed values: entities&lt;i&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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ listIngestRunBatches: 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)('listIngestRunBatches', 'code', code);
709
+ localVarPath = "/migrationservice/v1/ingest-runs/{code}/batches"
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
+ },
685
761
  /**
686
762
  * 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
763
  * @summary List ingest run records
@@ -1244,6 +1320,34 @@ var MigrationApiFp = function (configuration) {
1244
1320
  });
1245
1321
  });
1246
1322
  },
1323
+ /**
1324
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
1325
+ * @summary List ingest run batches
1326
+ * @param {string} code
1327
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1328
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1329
+ * @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.
1330
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1331
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
1332
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
1333
+ * @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;
1334
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ */
1338
+ listIngestRunBatches: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1339
+ return __awaiter(this, void 0, void 0, function () {
1340
+ var localVarAxiosArgs;
1341
+ return __generator(this, function (_a) {
1342
+ switch (_a.label) {
1343
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listIngestRunBatches(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1344
+ case 1:
1345
+ localVarAxiosArgs = _a.sent();
1346
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1347
+ }
1348
+ });
1349
+ });
1350
+ },
1247
1351
  /**
1248
1352
  * 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
1353
  * @summary List ingest run records
@@ -1510,6 +1614,24 @@ var MigrationApiFactory = function (configuration, basePath, axios) {
1510
1614
  listIngestFlushes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1511
1615
  return localVarFp.listIngestFlushes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1512
1616
  },
1617
+ /**
1618
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
1619
+ * @summary List ingest run batches
1620
+ * @param {string} code
1621
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1622
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1623
+ * @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.
1624
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1625
+ * @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: code, errorMessage, rejectionErrorMessage&lt;/i&gt;
1626
+ * @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, code, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage&lt;/i&gt;
1627
+ * @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;
1628
+ * @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, code, createdAt, updatedAt, ern, startRecord, recordCount, validationSuccessCount, validationErrorCount, preprocessingSuccessCount, preprocessingErrorCount, stagingSuccessCount, stagingErrorCount, targetInsertSuccessCount, targetInsertErrorCount, targetUpdateSuccessCount, targetUpdateErrorCount, isSuccess, errorMessage, rejectionErrorMessage&lt;/i&gt;
1629
+ * @param {*} [options] Override http request option.
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ listIngestRunBatches: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1633
+ return localVarFp.listIngestRunBatches(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1634
+ },
1513
1635
  /**
1514
1636
  * 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
1637
  * @summary List ingest run records
@@ -1729,6 +1851,18 @@ var MigrationApi = /** @class */ (function (_super) {
1729
1851
  if (requestParameters === void 0) { requestParameters = {}; }
1730
1852
  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
1853
  };
1854
+ /**
1855
+ * Returns a list of ingest run batches you have previously created. The ingest run batches 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\"
1856
+ * @summary List ingest run batches
1857
+ * @param {MigrationApiListIngestRunBatchesRequest} requestParameters Request parameters.
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ * @memberof MigrationApi
1861
+ */
1862
+ MigrationApi.prototype.listIngestRunBatches = function (requestParameters, options) {
1863
+ var _this = this;
1864
+ return (0, exports.MigrationApiFp)(this.configuration).listIngestRunBatches(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); });
1865
+ };
1732
1866
  /**
1733
1867
  * 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
1868
  * @summary List ingest run records
package/dist/base.d.ts CHANGED
@@ -31,8 +31,7 @@ export declare enum Environment {
31
31
  Test = "https://apiv2-test.emil.de",
32
32
  Staging = "https://apiv2-staging.emil.de",
33
33
  Development = "https://apiv2-dev.emil.de",
34
- ProductionZurich = "https://eu-central-2.apiv2.emil.de",
35
- StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
34
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de"
36
35
  }
37
36
  export declare function resetRetry(): void;
38
37
  /**
package/dist/base.js CHANGED
@@ -102,7 +102,6 @@ var Environment;
102
102
  Environment["Staging"] = "https://apiv2-staging.emil.de";
103
103
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
104
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
- Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
106
105
  })(Environment = exports.Environment || (exports.Environment = {}));
107
106
  var _retry_count = 0;
108
107
  var _retry = null;
@@ -21,6 +21,7 @@ export * from './inline-response200';
21
21
  export * from './inline-response503';
22
22
  export * from './list-entity-mappings-response-class';
23
23
  export * from './list-ingest-flushes-response-class';
24
+ export * from './list-ingest-run-batches-response-class';
24
25
  export * from './list-ingest-run-records-response-class';
25
26
  export * from './list-ingest-runs-response-class';
26
27
  export * from './stop-ingest-flush-request-dto';
@@ -37,6 +37,7 @@ __exportStar(require("./inline-response200"), exports);
37
37
  __exportStar(require("./inline-response503"), exports);
38
38
  __exportStar(require("./list-entity-mappings-response-class"), exports);
39
39
  __exportStar(require("./list-ingest-flushes-response-class"), exports);
40
+ __exportStar(require("./list-ingest-run-batches-response-class"), exports);
40
41
  __exportStar(require("./list-ingest-run-records-response-class"), exports);
41
42
  __exportStar(require("./list-ingest-runs-response-class"), exports);
42
43
  __exportStar(require("./stop-ingest-flush-request-dto"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL MigrationService
3
+ * The EMIL MigrationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { IngestBatchClass } from './ingest-batch-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListIngestRunBatchesResponseClass
17
+ */
18
+ export interface ListIngestRunBatchesResponseClass {
19
+ /**
20
+ * Ingest run batches.
21
+ * @type {Array<IngestBatchClass>}
22
+ * @memberof ListIngestRunBatchesResponseClass
23
+ */
24
+ 'items': Array<IngestBatchClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListIngestRunBatchesResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListIngestRunBatchesResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListIngestRunBatchesResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/index.ts CHANGED
@@ -21,6 +21,7 @@ export * from './inline-response200';
21
21
  export * from './inline-response503';
22
22
  export * from './list-entity-mappings-response-class';
23
23
  export * from './list-ingest-flushes-response-class';
24
+ export * from './list-ingest-run-batches-response-class';
24
25
  export * from './list-ingest-run-records-response-class';
25
26
  export * from './list-ingest-runs-response-class';
26
27
  export * from './stop-ingest-flush-request-dto';
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL MigrationService
5
+ * The EMIL MigrationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { IngestBatchClass } from './ingest-batch-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListIngestRunBatchesResponseClass
22
+ */
23
+ export interface ListIngestRunBatchesResponseClass {
24
+ /**
25
+ * Ingest run batches.
26
+ * @type {Array<IngestBatchClass>}
27
+ * @memberof ListIngestRunBatchesResponseClass
28
+ */
29
+ 'items': Array<IngestBatchClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListIngestRunBatchesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListIngestRunBatchesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListIngestRunBatchesResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/migration-sdk",
3
- "version": "0.3.1-beta.32",
3
+ "version": "0.3.1-beta.35",
4
4
  "description": "OpenAPI client for @emilgroup/migration-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0"
21
+ "axios": "1.12.0"
22
22
  },
23
23
  "devDependencies": {
24
24