@viu/emporix-sdk 4.11.0 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +152 -29
- package/dist/index.d.ts +152 -29
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -526,13 +526,15 @@ type SiteDto = {
|
|
|
526
526
|
*/
|
|
527
527
|
includesTax?: boolean;
|
|
528
528
|
/**
|
|
529
|
-
* Site's default language,
|
|
529
|
+
* Site's default language: a language code of 2 or 3 letters, optionally followed by hyphen-separated subtags of 2 to 8 letters or digits. Regional variants such as `fr-ca` and custom codes such as `en-NL` are supported.
|
|
530
|
+
*
|
|
531
|
+
* **Note**: The default language must be one of the site's `languages`. The values are compared ignoring letter case, so `de-de` matches `de-DE`.
|
|
530
532
|
*/
|
|
531
533
|
defaultLanguage: string;
|
|
532
534
|
/**
|
|
533
535
|
* Languages supported by the site.
|
|
534
536
|
*
|
|
535
|
-
* **Note**:
|
|
537
|
+
* **Note**: Each language must be a language code of 2 or 3 letters, optionally followed by hyphen-separated subtags of 2 to 8 letters or digits. The format is checked, not whether the language or region exists. We recommend an ISO 639 language code combined with an ISO 3166 country code, such as `en-NL`. Regional variants such as `fr-ca` and custom codes such as `en-NL` are supported. Letter case is not checked, and the values are stored as sent. For more information, see [Language configuration](https://developer.emporix.io/api-documentation/api-guides/configuration/configuration-service/language).
|
|
536
538
|
*/
|
|
537
539
|
languages: Array<string>;
|
|
538
540
|
currency: CurrencyDto;
|
|
@@ -9239,6 +9241,12 @@ type IndexConfiguration = IndexPublicConfiguration & {
|
|
|
9239
9241
|
* API key used for write purposes. For `BATTERY_INCLUDED`, this key is validated before the configuration is created or updated.
|
|
9240
9242
|
*/
|
|
9241
9243
|
writeKey?: string;
|
|
9244
|
+
/**
|
|
9245
|
+
* Optional base URL of the Battery Included API that holds the tenant's index, for example `https://api-next.batteryincluded.io`. Applies only to the `BATTERY_INCLUDED` provider.
|
|
9246
|
+
* When set, the Indexing Service sends all of the tenant's Battery Included requests to this host and validates `writeKey` against it, so the write key must be valid on this host. When not set, the default Battery Included host is used.
|
|
9247
|
+
* The value must be an `https` address of an allowed Battery Included host, without a path, query, fragment, user information, or port. A trailing slash is allowed. Other values are rejected with `400`. A change takes effect within 10 minutes. Change `apiUrl` when no product reindex is running. If the index on the new host does not yet hold all products, start a full product reindex after the change takes effect.
|
|
9248
|
+
*/
|
|
9249
|
+
apiUrl?: string;
|
|
9242
9250
|
/**
|
|
9243
9251
|
* Optional list of root product mixin keys to exclude from indexing. When set, the specified mixin keys are omitted from both the non-localized and localized portions of the indexed document. Applies only to the `BATTERY_INCLUDED` provider.
|
|
9244
9252
|
*/
|
|
@@ -10155,9 +10163,9 @@ type FileQueue = {
|
|
|
10155
10163
|
*/
|
|
10156
10164
|
pendingTotal?: number;
|
|
10157
10165
|
/**
|
|
10158
|
-
* The newest file the stream has imported
|
|
10166
|
+
* The newest file the stream has imported. Absent when it has imported none. Returned whatever `historyLimit` is, because a run with no file waiting reads this file again (a snapshot stream).
|
|
10159
10167
|
*/
|
|
10160
|
-
lastProcessed?: ImportFile$1
|
|
10168
|
+
lastProcessed?: ImportFile$1;
|
|
10161
10169
|
};
|
|
10162
10170
|
/**
|
|
10163
10171
|
* Stream
|
|
@@ -10182,17 +10190,79 @@ type ImportStream$1 = {
|
|
|
10182
10190
|
*/
|
|
10183
10191
|
sourceEntity?: string;
|
|
10184
10192
|
/**
|
|
10185
|
-
*
|
|
10193
|
+
* Where the stream writes. Possible values:
|
|
10194
|
+
*
|
|
10195
|
+
* * `emporix.customEntity` – instances of a custom entity type, named by `targetType`.
|
|
10196
|
+
* * `emporix.product` – products. `STANDALONE` streams only.
|
|
10197
|
+
* * `emporix.category` – categories of the tenant's category tree. `STANDALONE` streams only.
|
|
10198
|
+
* * `emporix.price` – prices of products.
|
|
10199
|
+
* * `emporix.availability` – stock of products at a site.
|
|
10200
|
+
* * `emporix.media` – images of products, linked by URL. The images stay where they are hosted.
|
|
10201
|
+
* * `emporix.categoryAssignment` – assignments of products to existing categories.
|
|
10202
|
+
*
|
|
10203
|
+
* The price, availability, media, and category assignment writers are normally used by a `FAN_OUT`
|
|
10204
|
+
* stream whose parent is a product stream. The `FAN_OUT` stream supplies each product's identifier as
|
|
10205
|
+
* `productId`. A `STANDALONE` stream that uses them maps `productId` itself.
|
|
10206
|
+
*
|
|
10207
|
+
* The writers other than `emporix.customEntity` are catalog writers. The Management Dashboard offers them
|
|
10208
|
+
* only to tenants for which Emporix has enabled catalog targets. To have them enabled, contact Emporix
|
|
10209
|
+
* support.
|
|
10186
10210
|
*/
|
|
10187
10211
|
targetWriter?: string;
|
|
10188
10212
|
/**
|
|
10189
|
-
*
|
|
10213
|
+
* For `emporix.customEntity`, the custom entity type the stream writes to. For the other writers, a label that groups the stream's imported records, for example in imported data and statistics. Defaults to `PRODUCT` for `emporix.product` and `CATEGORY` for `emporix.category`. For a `FAN_OUT` stream into a catalog writer, the service sets the label.
|
|
10190
10214
|
*/
|
|
10191
10215
|
targetType?: string;
|
|
10192
10216
|
/**
|
|
10193
|
-
*
|
|
10217
|
+
* The stream's position in the configuration. Streams are listed in this order. When dependencies do not decide the run order, streams run in this order.
|
|
10218
|
+
*/
|
|
10219
|
+
seq?: number;
|
|
10220
|
+
/**
|
|
10221
|
+
* How the stream contributes to the target. Possible values:
|
|
10222
|
+
*
|
|
10223
|
+
* * `STANDALONE` – reads its source and writes its own target objects.
|
|
10224
|
+
* * `COMPOSITE_CHILD` – reads its source and writes into the objects of the stream named in
|
|
10225
|
+
* `compositeParent`.
|
|
10226
|
+
* * `COMPOSITE_MERGE` – reads its source and adds fields to the objects of the stream named in
|
|
10227
|
+
* `compositeParent`.
|
|
10228
|
+
* * `FAN_OUT` – has no source of its own. It reads the records the stream named in `compositeParent`
|
|
10229
|
+
* wrote in the same run, and writes further objects for each of them, for example a product's prices.
|
|
10230
|
+
* It runs after that stream. Objects it created earlier for a record that no longer lists them are
|
|
10231
|
+
* removed.
|
|
10232
|
+
*/
|
|
10233
|
+
mode?: 'STANDALONE' | 'COMPOSITE_CHILD' | 'COMPOSITE_MERGE' | 'FAN_OUT';
|
|
10234
|
+
/**
|
|
10235
|
+
* `FAN_OUT` only. The array in the parent record whose elements each produce one target object, for example `prices[]`. When omitted, one target object is written per parent record.
|
|
10194
10236
|
*/
|
|
10195
|
-
|
|
10237
|
+
fanOutPath?: string;
|
|
10238
|
+
/**
|
|
10239
|
+
* `FAN_OUT` only. The element field that identifies an element of `fanOutPath`, for example `currency`, so that a target object keeps its identity when the elements change order. When omitted, a scalar element identifies itself and an object element is identified by its position.
|
|
10240
|
+
*/
|
|
10241
|
+
fanOutKey?: string;
|
|
10242
|
+
/**
|
|
10243
|
+
* Whether the stream is a `FAN_OUT` stream with a parent. Derived from `mode` and `compositeParent`.
|
|
10244
|
+
*/
|
|
10245
|
+
readonly fanOut?: boolean;
|
|
10246
|
+
/**
|
|
10247
|
+
* Settings for the target writer. Absent when the writer needs none. `emporix.product` reads the
|
|
10248
|
+
* following settings:
|
|
10249
|
+
*
|
|
10250
|
+
* * `matchField` – how existing products are found: `CODE` (the default) or `ID`.
|
|
10251
|
+
* * `createMissing` – whether products that are not found are created. Defaults to `true`.
|
|
10252
|
+
* * `schemas` – a list of the identifiers of the product mixin schemas the stream writes.
|
|
10253
|
+
* * `templateId` – the product template assigned to the products.
|
|
10254
|
+
* * `language` – the language of localized fields. Defaults to `en`.
|
|
10255
|
+
* * `categoryMatchField` – how the categories to assign are found: `CODE` (the default) or `ID`.
|
|
10256
|
+
*
|
|
10257
|
+
* `emporix.category` reads `language`, and `emporix.categoryAssignment` reads `categoryMatchField`.
|
|
10258
|
+
* `emporix.price` reads `currency`, `countryCode`, `siteCode`, and `priceModelId`, and
|
|
10259
|
+
* `emporix.availability` reads `site`. These price and availability settings are fallback values with no
|
|
10260
|
+
* default of their own: a record that does not map the field gets the stream's value. A price needs a
|
|
10261
|
+
* currency and a country, and stock needs a site, from a mapping or from these settings.
|
|
10262
|
+
*/
|
|
10263
|
+
targetOptions?: {
|
|
10264
|
+
[key: string]: unknown;
|
|
10265
|
+
};
|
|
10196
10266
|
/**
|
|
10197
10267
|
* The source field whose value is tracked as the delta watermark. A delta run extracts only the records whose value is newer than the last run's.
|
|
10198
10268
|
*/
|
|
@@ -10202,7 +10272,7 @@ type ImportStream$1 = {
|
|
|
10202
10272
|
*/
|
|
10203
10273
|
deltaFieldFormat?: 'DATE' | 'UNIX_SECONDS' | 'UNIX_MILLIS';
|
|
10204
10274
|
/**
|
|
10205
|
-
* For a
|
|
10275
|
+
* For a `COMPOSITE_CHILD`, `COMPOSITE_MERGE`, or `FAN_OUT` stream, the name of the stream it contributes to or fans out from.
|
|
10206
10276
|
*/
|
|
10207
10277
|
compositeParent?: string;
|
|
10208
10278
|
/**
|
|
@@ -10218,7 +10288,19 @@ type ImportStream$1 = {
|
|
|
10218
10288
|
*/
|
|
10219
10289
|
childStrategy?: 'EMBED' | 'PATCH';
|
|
10220
10290
|
/**
|
|
10221
|
-
* How an existing target object is updated.
|
|
10291
|
+
* How an existing target object is updated. Possible values:
|
|
10292
|
+
*
|
|
10293
|
+
* * `PATCH` – changes only the mapped fields and keeps everything else.
|
|
10294
|
+
* * `MERGE_PUT` – reads the object, merges the mapped fields into it, and writes it back whole.
|
|
10295
|
+
* * `REPLACE_PUT` – replaces the whole object, so fields this import does not manage are cleared.
|
|
10296
|
+
*
|
|
10297
|
+
* The values a stream can use depend on its target writer. The following values are available per
|
|
10298
|
+
* writer, with the default listed first:
|
|
10299
|
+
*
|
|
10300
|
+
* * `emporix.customEntity` – `PATCH`, `MERGE_PUT`, `REPLACE_PUT`.
|
|
10301
|
+
* * `emporix.product` and `emporix.category` – `PATCH`.
|
|
10302
|
+
* * `emporix.media` – `PATCH`, `REPLACE_PUT`.
|
|
10303
|
+
* * `emporix.price`, `emporix.availability`, and `emporix.categoryAssignment` – `REPLACE_PUT`.
|
|
10222
10304
|
*/
|
|
10223
10305
|
writeStrategy?: 'PATCH' | 'MERGE_PUT' | 'REPLACE_PUT';
|
|
10224
10306
|
/**
|
|
@@ -10306,6 +10388,10 @@ type ImportStream$1 = {
|
|
|
10306
10388
|
* For a file-based source, what one file represents. `SNAPSHOT`: each file is the whole picture, so only the most recently arrived one is read, and the per-record content hash decides what is written. A record missing from a newer file is not deleted. `INCREMENTAL`: each file is a change set, so every queued file is read in order and a later file's values win. Defaults to `SNAPSHOT`.
|
|
10307
10389
|
*/
|
|
10308
10390
|
fileMode?: 'SNAPSHOT' | 'INCREMENTAL';
|
|
10391
|
+
/**
|
|
10392
|
+
* Whether the stream treats each file as a snapshot. `true` unless `fileMode` is `INCREMENTAL`.
|
|
10393
|
+
*/
|
|
10394
|
+
readonly snapshotFiles?: boolean;
|
|
10309
10395
|
/**
|
|
10310
10396
|
* For an `EMBED` composite child, the source column its parent matches records by. Required for such a stream: without it the parent cannot find its children and writes an empty array.
|
|
10311
10397
|
*/
|
|
@@ -10360,11 +10446,11 @@ type Schedule = {
|
|
|
10360
10446
|
*/
|
|
10361
10447
|
cron: string;
|
|
10362
10448
|
/**
|
|
10363
|
-
* The IANA time zone the cron is evaluated in.
|
|
10449
|
+
* The IANA time zone the cron is evaluated in. Defaults to `UTC`.
|
|
10364
10450
|
*/
|
|
10365
10451
|
timezone?: string;
|
|
10366
10452
|
/**
|
|
10367
|
-
* Whether the schedule is active.
|
|
10453
|
+
* Whether the schedule is active. Defaults to `true`.
|
|
10368
10454
|
*/
|
|
10369
10455
|
enabled?: boolean;
|
|
10370
10456
|
/**
|
|
@@ -10391,9 +10477,13 @@ type ImportRun$1 = {
|
|
|
10391
10477
|
*/
|
|
10392
10478
|
tenant?: string;
|
|
10393
10479
|
/**
|
|
10394
|
-
* What triggered the run.
|
|
10480
|
+
* What triggered the run. Possible values:
|
|
10481
|
+
*
|
|
10482
|
+
* * `MANUAL` – triggered with the run operation.
|
|
10483
|
+
* * `SCHEDULED` – started by the configuration's schedule.
|
|
10484
|
+
* * `RETRY` – created by retrying the failed records of an earlier run. `retryOfRunId` names that run.
|
|
10395
10485
|
*/
|
|
10396
|
-
trigger?: 'MANUAL' | 'SCHEDULED';
|
|
10486
|
+
trigger?: 'MANUAL' | 'SCHEDULED' | 'RETRY';
|
|
10397
10487
|
/**
|
|
10398
10488
|
* Dry-run only. A sample of the mapped records that would be written, so the mapping can be previewed without a real import. Absent on normal runs. Each stream is sampled separately, up to the `sampleSize` set in the run request. A parent stream's records include the records of its composite child streams that have `childStrategy` set to `EMBED` or `PATCH`. Those child records appear in the parent attribute named by the child stream's `embedAttribute`, as a real import writes them. Only child records inside the child stream's own sample are included, so a sampled parent record can show fewer child records than the source contains for that parent, or none. Child records are also sampled under their own stream.
|
|
10399
10489
|
*/
|
|
@@ -10521,6 +10611,10 @@ type ImportRun$1 = {
|
|
|
10521
10611
|
* A terminal status message, typically set on failure.
|
|
10522
10612
|
*/
|
|
10523
10613
|
message?: string;
|
|
10614
|
+
/**
|
|
10615
|
+
* The streams the run was asked to execute, as sent in `streamIds` when it was triggered. Absent when the run executes every stream of the configuration.
|
|
10616
|
+
*/
|
|
10617
|
+
streamIds?: Array<string>;
|
|
10524
10618
|
/**
|
|
10525
10619
|
* When the run retries another run's failed records, the identifier of that original run.
|
|
10526
10620
|
*/
|
|
@@ -10582,9 +10676,9 @@ type ImportRunStream$1 = {
|
|
|
10582
10676
|
*/
|
|
10583
10677
|
streamName?: string;
|
|
10584
10678
|
/**
|
|
10585
|
-
* The stream's status within the run. `ABORTED` means the service refused to run the stream because of its configuration, for example because its mappings have never been published. It indicates a configuration problem to fix. The `message` field gives the reason.
|
|
10679
|
+
* The stream's status within the run. `ABORTED` means the service refused to run the stream because of its configuration, for example because its mappings have never been published. It indicates a configuration problem to fix. The `message` field gives the reason. `CANCELLED` means the run was cancelled while the stream was running.
|
|
10586
10680
|
*/
|
|
10587
|
-
status?: '
|
|
10681
|
+
status?: 'RUNNING' | 'SUCCEEDED' | 'PARTIAL' | 'FAILED' | 'ABORTED' | 'CANCELLED';
|
|
10588
10682
|
/**
|
|
10589
10683
|
* Records read for this stream. The counters reconcile: `recordsRead` = created + updated + skipped + unresolvedParents + deleted + failed + collapsed + embedded.
|
|
10590
10684
|
*/
|
|
@@ -10685,9 +10779,15 @@ type CancelResult = {
|
|
|
10685
10779
|
*/
|
|
10686
10780
|
force?: boolean;
|
|
10687
10781
|
/**
|
|
10688
|
-
* Whether the cancellation was accepted. `false` when the run
|
|
10782
|
+
* Whether the cancellation was accepted. `false` when the run does not exist, has already finished, or has the `RESUMABLE` status and `force` was not set.
|
|
10689
10783
|
*/
|
|
10690
10784
|
accepted?: boolean;
|
|
10785
|
+
/**
|
|
10786
|
+
* The same value as `accepted`. Kept for clients written against an earlier response. Use `accepted`.
|
|
10787
|
+
*
|
|
10788
|
+
* @deprecated
|
|
10789
|
+
*/
|
|
10790
|
+
cancelRequested?: boolean;
|
|
10691
10791
|
};
|
|
10692
10792
|
/**
|
|
10693
10793
|
* Error record
|
|
@@ -10716,9 +10816,14 @@ type ErrorRecord = {
|
|
|
10716
10816
|
*/
|
|
10717
10817
|
targetEntity?: string;
|
|
10718
10818
|
/**
|
|
10719
|
-
* The pipeline stage the error occurred in.
|
|
10819
|
+
* The pipeline stage the error occurred in. Possible values:
|
|
10820
|
+
*
|
|
10821
|
+
* * `EXTRACT` – reading records from the source.
|
|
10822
|
+
* * `MAP` – applying the field mappings.
|
|
10823
|
+
* * `VALIDATE` – validating the mapped record before the write.
|
|
10824
|
+
* * `UPSERT` – writing to the target.
|
|
10720
10825
|
*/
|
|
10721
|
-
stage?:
|
|
10826
|
+
stage?: 'EXTRACT' | 'MAP' | 'VALIDATE' | 'UPSERT';
|
|
10722
10827
|
/**
|
|
10723
10828
|
* A machine-readable error code:
|
|
10724
10829
|
*
|
|
@@ -10737,6 +10842,8 @@ type ErrorRecord = {
|
|
|
10737
10842
|
* delimited-file row whose array has more elements than `sourceDataset.arrays.maxElements`. That
|
|
10738
10843
|
* record is not imported, but the other records are; `message` names the column, its number of
|
|
10739
10844
|
* elements, and the limit.
|
|
10845
|
+
* * `FAN_OUT_REMOVE` – a `FAN_OUT` stream could not remove the objects its parent record no longer
|
|
10846
|
+
* lists. The next run that carries those records tries again.
|
|
10740
10847
|
* * `STREAM_ERROR` – the stream failed as a whole; the record-level detail is in `message`.
|
|
10741
10848
|
*
|
|
10742
10849
|
* `CONFIGURATION` and `EXTERNAL_SYSTEM` are reported as a plain sentence naming what to change.
|
|
@@ -10747,6 +10854,12 @@ type ErrorRecord = {
|
|
|
10747
10854
|
* A human-readable error message.
|
|
10748
10855
|
*/
|
|
10749
10856
|
message?: string;
|
|
10857
|
+
/**
|
|
10858
|
+
* The source record that failed, as the service read it, when the error concerns one record. Absent for errors that concern the whole stream.
|
|
10859
|
+
*/
|
|
10860
|
+
payload?: {
|
|
10861
|
+
[key: string]: unknown;
|
|
10862
|
+
};
|
|
10750
10863
|
/**
|
|
10751
10864
|
* When the error was recorded.
|
|
10752
10865
|
*/
|
|
@@ -10797,7 +10910,7 @@ type ImportedRecord$1 = {
|
|
|
10797
10910
|
[key: string]: unknown;
|
|
10798
10911
|
};
|
|
10799
10912
|
/**
|
|
10800
|
-
* The last outcome, one of `UPSERTED`, `DELETED`, `
|
|
10913
|
+
* The last outcome, one of `UPSERTED`, `DELETED`, `FAILED`, or `DRY_RUN`.
|
|
10801
10914
|
*/
|
|
10802
10915
|
outcome?: string;
|
|
10803
10916
|
/**
|
|
@@ -10987,6 +11100,10 @@ type ImportStatsSummary = {
|
|
|
10987
11100
|
* The number of runs that were cancelled.
|
|
10988
11101
|
*/
|
|
10989
11102
|
cancelled?: number;
|
|
11103
|
+
/**
|
|
11104
|
+
* The number of runs the service refused to run because of their configuration (`ABORTED`).
|
|
11105
|
+
*/
|
|
11106
|
+
aborted?: number;
|
|
10990
11107
|
/**
|
|
10991
11108
|
* The number of source records read.
|
|
10992
11109
|
*/
|
|
@@ -11254,7 +11371,7 @@ type GetImporttoolStreamOrderResponse = GetImporttoolStreamOrderResponses[keyof
|
|
|
11254
11371
|
type PostImporttoolTriggerRunData = {
|
|
11255
11372
|
body?: {
|
|
11256
11373
|
/**
|
|
11257
|
-
* The run mode
|
|
11374
|
+
* The run mode, `FULL` or `DELTA`. When omitted, defaults to `DELTA`. The value is not case-sensitive. Send one of the listed values. The service does not reject another value and runs the import as `DELTA`.
|
|
11258
11375
|
*/
|
|
11259
11376
|
mode?: 'FULL' | 'DELTA';
|
|
11260
11377
|
/**
|
|
@@ -11274,7 +11391,7 @@ type PostImporttoolTriggerRunData = {
|
|
|
11274
11391
|
*/
|
|
11275
11392
|
sampleSize?: number;
|
|
11276
11393
|
/**
|
|
11277
|
-
* What requested this run. Examples: `Dashboard`, an integration scenario name, or a scheduler name. The `trigger` field records only
|
|
11394
|
+
* What requested this run. Examples: `Dashboard`, an integration scenario name, or a scheduler name. The `trigger` field records only how the run started, for example `MANUAL`. Use `origin` when more than one system calls this endpoint. If you omit `origin` or send a blank value, the service stores the `trigger` value. The service rejects values longer than 40 characters and values that contain control characters. It does not shorten them.
|
|
11278
11395
|
*/
|
|
11279
11396
|
origin?: string;
|
|
11280
11397
|
/**
|
|
@@ -11342,19 +11459,25 @@ type GetImporttoolSearchDataRecordsData = {
|
|
|
11342
11459
|
*/
|
|
11343
11460
|
type: string;
|
|
11344
11461
|
/**
|
|
11345
|
-
* Optional
|
|
11462
|
+
* Optional filter. Returns the records whose natural key or Emporix identifier starts with the given text. The natural key can be given with its key name (`ID:SKU-1001`) or as the source value alone (`SKU-1001`). The match is case-sensitive and matches from the start only: text from the middle of a key matches nothing. Emporix identifiers are lower case, so the identifier is also matched with the text converted to lower case: `3FA85F64` finds `3fa85f64-…`. This is not the Emporix query language, so field selectors and operators are not supported.
|
|
11346
11463
|
*/
|
|
11347
11464
|
search?: string;
|
|
11348
11465
|
/**
|
|
11349
|
-
* Optional filter by import outcome. Omit to return records of all outcomes.
|
|
11466
|
+
* Optional filter by import outcome. Omit to return records of all outcomes. The value must match
|
|
11467
|
+
* exactly, in upper case. Any other value returns no records. Possible values:
|
|
11468
|
+
*
|
|
11469
|
+
* * `UPSERTED` – created or updated.
|
|
11470
|
+
* * `DELETED` – removed at the source.
|
|
11471
|
+
* * `FAILED` – the record could not be imported.
|
|
11472
|
+
* * `DRY_RUN` – produced by a dry run.
|
|
11350
11473
|
*/
|
|
11351
|
-
outcome?: 'UPSERTED' | 'DELETED' | '
|
|
11474
|
+
outcome?: 'UPSERTED' | 'DELETED' | 'FAILED' | 'DRY_RUN';
|
|
11352
11475
|
/**
|
|
11353
|
-
* The zero-based page number.
|
|
11476
|
+
* The zero-based page number. A negative value returns HTTP 400.
|
|
11354
11477
|
*/
|
|
11355
11478
|
page?: number;
|
|
11356
11479
|
/**
|
|
11357
|
-
* The page size.
|
|
11480
|
+
* The page size. Defaults to 20 for run history, 50 for run errors, and 25 for imported records. A value below 1 returns HTTP 400.
|
|
11358
11481
|
*/
|
|
11359
11482
|
size?: number;
|
|
11360
11483
|
};
|
|
@@ -11379,7 +11502,7 @@ type GetImporttoolStatsData = {
|
|
|
11379
11502
|
*/
|
|
11380
11503
|
configIds?: string;
|
|
11381
11504
|
/**
|
|
11382
|
-
* Restricts the statistics to a single stream. Takes precedence over the configuration
|
|
11505
|
+
* Restricts the statistics to a single stream. Takes precedence over `configIds`. When `configId` is also given, the stream must belong to that configuration.
|
|
11383
11506
|
*/
|
|
11384
11507
|
streamId?: string;
|
|
11385
11508
|
/**
|
|
@@ -11395,7 +11518,7 @@ type GetImporttoolStatsData = {
|
|
|
11395
11518
|
*/
|
|
11396
11519
|
granularity?: 'DAY' | 'WEEK' | 'MONTH';
|
|
11397
11520
|
/**
|
|
11398
|
-
* A comma-separated list of the sections to compute: `TOTALS`, `STREAMS`, `ERRORS`, `CHANGES`. When omitted, defaults to all sections. A section not requested through the `sections` parameter is returned as `null`.
|
|
11521
|
+
* A comma-separated list of the sections to compute: `TOTALS`, `STREAMS`, `ERRORS`, `CHANGES`. When omitted, defaults to all sections. A section not requested through the `sections` parameter is returned as `null`. `sourceIssues` belongs to the `STREAMS` section.
|
|
11399
11522
|
*/
|
|
11400
11523
|
sections?: string;
|
|
11401
11524
|
};
|