@celigo/api-specs 0.2.284 → 0.2.286
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/dist/export.yml +88 -19
- package/dist/flow.yml +31 -6
- package/dist/import.yml +2 -2
- package/dist/tool.yml +92 -23
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/export.yml
CHANGED
|
@@ -1368,6 +1368,14 @@ components:
|
|
|
1368
1368
|
array-records to (templates reference ``{{rows.0.<field>}}`` /
|
|
1369
1369
|
iterate ``{{#each rows}}``); hook code sees the array as the
|
|
1370
1370
|
record element and must not assume object shape.
|
|
1371
|
+
- |-
|
|
1372
|
+
On an HTTP export and on a Snowflake export that group with this field, a grouped record's
|
|
1373
|
+
trace key at the next step was the platform's default key, not the value of the export's
|
|
1374
|
+
`traceKeyTemplate`: the first field on the flow's trace-key list present on the rows, when
|
|
1375
|
+
every row holds the same value. Rows that each carry their own `id` left a multi-row
|
|
1376
|
+
group's key blank; an `id` holding the group's identifier on every row keyed the group on
|
|
1377
|
+
it. A Transform 2.0 in `mode: create` that turned each group into one object made the
|
|
1378
|
+
template the key on the HTTP export (see `traceKeyTemplate`).
|
|
1371
1379
|
- |-
|
|
1372
1380
|
A grouped record is ONE record: Mapper 2.0 and Transform 2.0 root
|
|
1373
1381
|
JSONPath at the array (``$[0].<field>`` / ``$[*].<field>``;
|
|
@@ -7371,6 +7379,8 @@ components:
|
|
|
7371
7379
|
- `lastPageStatusCode` - Detect last page by HTTP status code
|
|
7372
7380
|
- `lastPagePath` - JSON path to check for last page indicator (read only on a response whose status equals `lastPageStatusCode`, except on `method: body`, which reads it on every response)
|
|
7373
7381
|
- `lastPageValues` - Values at lastPagePath that indicate last page
|
|
7382
|
+
|
|
7383
|
+
With `method: body` and `mergeBodyParamsToPagingBody` not set, paging also ends when the paging `body` renders empty — see `body`.
|
|
7374
7384
|
- |-
|
|
7375
7385
|
## COMMON IMPLEMENTATION PATTERNS
|
|
7376
7386
|
|
|
@@ -7835,7 +7845,7 @@ components:
|
|
|
7835
7845
|
x-celigo-agent:
|
|
7836
7846
|
- handlebars
|
|
7837
7847
|
- graphql
|
|
7838
|
-
description: Overrides the main request body for second and later page requests, typically for GraphQL or SOAP APIs that paginate through the body; leave empty when the main body works for all pages. Build it with handlebars using the `previous_page` context — `previous_page.full_response`, `previous_page.last_record`, and `previous_page.headers`.
|
|
7848
|
+
description: Overrides the main request body for second and later page requests, typically for GraphQL or SOAP APIs that paginate through the body; leave empty when the main body works for all pages. Build it with handlebars using the `previous_page` context — `previous_page.full_response`, `previous_page.last_record`, and `previous_page.headers`. With `mergeBodyParamsToPagingBody` not set, a body that renders empty for a page sends no request and ends paging without an error.
|
|
7839
7849
|
x-celigo-ai-guidance:
|
|
7840
7850
|
- |-
|
|
7841
7851
|
This field only needs to be set if subsequent page requests require a different
|
|
@@ -7860,10 +7870,38 @@ components:
|
|
|
7860
7870
|
- Using the last record's ID: `{"after": "{{previous_page.last_record.id}}", "limit": 100}`
|
|
7861
7871
|
- Including a page number: `{"page": {{previous_page.full_response.meta.next_page}}, "pageSize": 50}`
|
|
7862
7872
|
- Leave this field empty if the main HTTP request body can be used for all page requests.
|
|
7873
|
+
- |-
|
|
7874
|
+
With `method: body` and `mergeBodyParamsToPagingBody` not set, a paging body that
|
|
7875
|
+
renders empty — or to whitespace only — ends paging: no request is sent for that
|
|
7876
|
+
page and no error is recorded. A body wrapped whole in a block that holds only
|
|
7877
|
+
while more pages remain therefore stops on the API's own signal:
|
|
7878
|
+
`{{#if previous_page.full_response.hasMore}}{"cursor": "{{previous_page.full_response.nextCursor}}", "limit": 100}{{/if}}`.
|
|
7879
|
+
Live-verified 2026-11-11 with virtual exports against an echo endpoint: three pages
|
|
7880
|
+
were read, the block rendered empty on the next, and the export returned the
|
|
7881
|
+
records with no further request and no error — the same with whitespace outside
|
|
7882
|
+
the block. An empty body together with `mergeBodyParamsToPagingBody: true` was not
|
|
7883
|
+
probed.
|
|
7884
|
+
- |-
|
|
7885
|
+
A block around ONE member of the body does not end paging: the body still renders,
|
|
7886
|
+
so the request is sent with that member empty. In the same probe a body whose
|
|
7887
|
+
`query` member alone sat inside the block kept requesting pages after the flag
|
|
7888
|
+
turned false, each sent with `"query": ""`.
|
|
7889
|
+
- |-
|
|
7890
|
+
A body wrapped in a block is not JSON at rest, so it belongs to a step edited in
|
|
7891
|
+
the raw HTTP form; see `http.formType` for what the GraphQL form shows for such a
|
|
7892
|
+
body. Under the GraphQL form keep the body the object that form reads and end
|
|
7893
|
+
paging with `lastPagePath` and `lastPageValues`.
|
|
7894
|
+
- |-
|
|
7895
|
+
A page with no records at the records path also ends body paging (same probe: an
|
|
7896
|
+
empty array there, then no further request and no error). When the records path is
|
|
7897
|
+
an object rather than the list — a GraphQL `data` — every response counts as one
|
|
7898
|
+
record, so this ending never applies: in the probe the export went on requesting
|
|
7899
|
+
pages past the last one.
|
|
7863
7900
|
examples:
|
|
7864
7901
|
- '{"query": "query($cursor: String) { items(after: $cursor) { edges { node { id name } } pageInfo { endCursor } } }", "variables": {"cursor": "{{previous_page.full_response.data.items.pageInfo.endCursor}}"}}'
|
|
7865
7902
|
- '{"pageToken": "{{previous_page.full_response.nextPageToken}}"}'
|
|
7866
7903
|
- '{"startIndex": {{previous_page.full_response.nextStartIndex}}, "maxResults": 100}'
|
|
7904
|
+
- '{{#if previous_page.full_response.hasMore}}{"cursor": "{{previous_page.full_response.nextCursor}}", "limit": 100}{{/if}}'
|
|
7867
7905
|
mergeBodyParamsToPagingBody:
|
|
7868
7906
|
type: boolean
|
|
7869
7907
|
description: |-
|
|
@@ -11143,6 +11181,10 @@ components:
|
|
|
11143
11181
|
per row and the repeated internal ids surface as duplicate trace keys
|
|
11144
11182
|
(`traceKeysDuplicate` in the preview). Grouping keys on the internal id only — a
|
|
11145
11183
|
different key needs a `preSavePage` hook, which sees one page at a time.
|
|
11184
|
+
- |-
|
|
11185
|
+
With grouping on, the next step's errors are keyed on the rows' `id` (the record's
|
|
11186
|
+
internal id) even when the export sets a `traceKeyTemplate`; with `true` the template's
|
|
11187
|
+
value is the key.
|
|
11146
11188
|
- |-
|
|
11147
11189
|
Celigo's documentation requires the saved search to be sorted by Internal ID for
|
|
11148
11190
|
grouping to apply.
|
|
@@ -17465,26 +17507,53 @@ components:
|
|
|
17465
17507
|
description: |-
|
|
17466
17508
|
Handlebars template that overrides how each record's unique trace key is generated, used
|
|
17467
17509
|
to track records through the flow and match retries to prior errors (e.g.
|
|
17468
|
-
`{{join "_" record.customerId record.orderId}}`). When omitted, the
|
|
17469
|
-
|
|
17470
|
-
|
|
17471
|
-
|
|
17472
|
-
|
|
17473
|
-
|
|
17474
|
-
|
|
17475
|
-
|
|
17476
|
-
|
|
17510
|
+
`{{join "_" record.customerId record.orderId}}`). When omitted, the platform derives the
|
|
17511
|
+
key from the ordered field list of the flow's source step (`GET /v1/flows/{_id}/traceKey`
|
|
17512
|
+
serves it). The rendered value of a template is stamped on an object record as
|
|
17513
|
+
`io_custom_trace_key` and travels downstream with it. If a transform reshapes the data
|
|
17514
|
+
first, omit the `record.` prefix. Trace keys are capped at 256 characters; a longer key is
|
|
17515
|
+
stored truncated from the middle, keeping the beginning and end of the value. Downstream
|
|
17516
|
+
imports use the trace key as their default concurrency lock key (a blank key means no
|
|
17517
|
+
lock); it never de-duplicates — a record emitted twice with the same key is processed
|
|
17518
|
+
twice.
|
|
17477
17519
|
x-celigo-ai-guidance:
|
|
17478
17520
|
- |-
|
|
17479
|
-
|
|
17480
|
-
|
|
17481
|
-
|
|
17482
|
-
`
|
|
17483
|
-
`
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17521
|
+
For an object record (an export that does not group), the default key is the first
|
|
17522
|
+
field the record carries from the list `GET /v1/flows/{_id}/traceKey` returns for the
|
|
17523
|
+
source step (a record carrying `id` and `internalId` is keyed on `id` alone). The list
|
|
17524
|
+
starts with the exact names `id`, `Id`, `ID`, `internalid`, `Internalid`, `internalId`,
|
|
17525
|
+
`InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`, `internal_id`, `internal_Id`,
|
|
17526
|
+
`Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`, `IDENTIFIER`.
|
|
17527
|
+
- |-
|
|
17528
|
+
After those names the list carries the source fields named like an id that the flow's
|
|
17529
|
+
import mappings read, in mapping order — an import that maps `Customer_Id` adds
|
|
17530
|
+
`Customer_Id`, so records with none of the standard names are keyed on that field —
|
|
17531
|
+
and then names taken from the export's own configuration, written with a leading `*`:
|
|
17532
|
+
an HTTP export whose relative URI is `v1/mirror` listed `*mirror`, and a record's
|
|
17533
|
+
`mirror_id` became its key.
|
|
17534
|
+
- |-
|
|
17535
|
+
The listed field is read from an object record's top level; when none is there, one
|
|
17536
|
+
level down counts (`order.id` keyed the record). Nested objects that carry different
|
|
17537
|
+
values, or the differing elements of a nested array, leave the key blank, and a field
|
|
17538
|
+
two levels down is not read.
|
|
17539
|
+
- |-
|
|
17540
|
+
On an export whose records are groups of rows — `groupByFields` on an HTTP and on a
|
|
17541
|
+
Snowflake export, and a NetSuite saved search with grouping on, were run — the
|
|
17542
|
+
template's value did not reach the next step: its errors carried the default key and
|
|
17543
|
+
no row carried `io_custom_trace_key`. The default for a group is the first listed field
|
|
17544
|
+
present on its rows when every row holds the same value; rows that differ on that field
|
|
17545
|
+
leave the key blank, and later listed fields are not tried.
|
|
17546
|
+
- |-
|
|
17547
|
+
To key grouped records on a business identifier, return it on every row as `id` — on a
|
|
17548
|
+
database export, `SELECT order_number AS id, * FROM orders` — and the next step's errors
|
|
17549
|
+
carry it, with or without a template (HTTP and Snowflake exports). On the HTTP export a
|
|
17550
|
+
Transform 2.0 in `mode: create` that reshaped each group into one object also made the
|
|
17551
|
+
template the key, because the record leaving the export was then an object.
|
|
17552
|
+
- |-
|
|
17553
|
+
An object record in flight through the flow carries `io_custom_trace_key` when a
|
|
17554
|
+
template is set — that value is the downstream imports' default lock key; without a
|
|
17555
|
+
template the record carries no trace-key field (the key is derived, not stored on the
|
|
17556
|
+
record).
|
|
17488
17557
|
examples:
|
|
17489
17558
|
- '{{record.id}}'
|
|
17490
17559
|
- '{{join "_" record.customerId record.orderId}}'
|
package/dist/flow.yml
CHANGED
|
@@ -1248,17 +1248,38 @@ paths:
|
|
|
1248
1248
|
- Flows
|
|
1249
1249
|
summary: Get a flow's trace-key patterns
|
|
1250
1250
|
description: |-
|
|
1251
|
-
Returns
|
|
1252
|
-
|
|
1253
|
-
"what happened to record X" without
|
|
1251
|
+
Returns, for each page generator in the flow, the ordered list of fields the platform reads to
|
|
1252
|
+
derive a record's default trace key. Trace keys correlate source records with their downstream
|
|
1253
|
+
results in errors and execution logs — they let you look up "what happened to record X" without
|
|
1254
|
+
scanning the full log.
|
|
1254
1255
|
|
|
1255
1256
|
Each entry in the returned array corresponds to one page generator (`pgIndex` matches the
|
|
1256
|
-
zero-based position in the flow's `pageGenerators` array). The
|
|
1257
|
-
|
|
1257
|
+
zero-based position in the flow's `pageGenerators` array). The list holds the platform's
|
|
1258
|
+
standard id names, then the id-like source fields the flow's import mappings read, then names
|
|
1259
|
+
taken from the export's own configuration, written with a leading `*`.
|
|
1260
|
+
|
|
1261
|
+
For an object record the first field in `fields` that the record carries becomes its trace
|
|
1262
|
+
key; when its top level carries none, a listed field one level down is read, and nested values
|
|
1263
|
+
that differ leave the key blank. For a record that is a group of rows the first listed field
|
|
1264
|
+
present on the rows is the key only when every row holds the same value. A `traceKeyTemplate`
|
|
1265
|
+
set on the export replaces this list for an object record and is not echoed here.
|
|
1258
1266
|
|
|
1259
1267
|
If both `fields` and `templates` are empty for a generator, the flow has no trace key configured
|
|
1260
1268
|
and log correlation must be done by position or other means. Trace keys are especially important
|
|
1261
1269
|
for fan-out flows where one source record produces many destination records.
|
|
1270
|
+
x-celigo-ai-guidance:
|
|
1271
|
+
- |-
|
|
1272
|
+
Read this list to explain a record's trace key when the export sets no template, or when
|
|
1273
|
+
the export groups records (a group is keyed from this list, not from the template): an
|
|
1274
|
+
HTTP export with relative URI `v1/mirror` feeding an import that maps `Location_Id` and
|
|
1275
|
+
then `Customer_Id` returned the eighteen standard names, `Location_Id`, `Customer_Id`,
|
|
1276
|
+
`*mirror` — and its records were keyed on `Location_Id`.
|
|
1277
|
+
- |-
|
|
1278
|
+
A NetSuite saved-search export returned its own names — `id`, `internalid`, `internalId`,
|
|
1279
|
+
`internal id`, `internal_id`, `Internal ID`, `inventory_item_id`, `productId`, `entityid`,
|
|
1280
|
+
`nsmsgId` — and a Snowflake export feeding an import with no id-like mapping returned the
|
|
1281
|
+
eighteen standard names alone; an HTTP export with no mapping returned them followed by
|
|
1282
|
+
`*mirror`.
|
|
1262
1283
|
parameters:
|
|
1263
1284
|
- name: _id
|
|
1264
1285
|
in: path
|
|
@@ -7371,7 +7392,11 @@ components:
|
|
|
7371
7392
|
properties:
|
|
7372
7393
|
fields:
|
|
7373
7394
|
type: array
|
|
7374
|
-
description:
|
|
7395
|
+
description: |-
|
|
7396
|
+
Field names read in order to derive the default trace key; the operation description
|
|
7397
|
+
says how an object record and a group of rows are matched against them. A name with a
|
|
7398
|
+
leading `*` is taken from the export's configuration: `*mirror`, from the relative
|
|
7399
|
+
URI `v1/mirror`, keyed a record on its `mirror_id` field.
|
|
7375
7400
|
items:
|
|
7376
7401
|
type: string
|
|
7377
7402
|
templates:
|
package/dist/import.yml
CHANGED
|
@@ -17805,8 +17805,8 @@ components:
|
|
|
17805
17805
|
Handlebars template that generates a concurrency lock key for each record: records that
|
|
17806
17806
|
render the same key are never submitted at the same time, while records with different
|
|
17807
17807
|
keys are processed in parallel. When omitted, the record's trace key is the lock key (a
|
|
17808
|
-
blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on
|
|
17809
|
-
as `io_custom_trace_key`); a template replaces that default rather than adding to it.
|
|
17808
|
+
blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on an object
|
|
17809
|
+
record as `io_custom_trace_key`); a template replaces that default rather than adding to it.
|
|
17810
17810
|
The template is rendered from the record as it arrives at the import — before the import's
|
|
17811
17811
|
own lookups and mapping run — so a key built from one of the import's lookup results
|
|
17812
17812
|
(`{{lookup.<name>}}`) or from a mapped field renders empty, and an empty key is no lock at
|
package/dist/tool.yml
CHANGED
|
@@ -27495,8 +27495,8 @@ components:
|
|
|
27495
27495
|
Handlebars template that generates a concurrency lock key for each record: records that
|
|
27496
27496
|
render the same key are never submitted at the same time, while records with different
|
|
27497
27497
|
keys are processed in parallel. When omitted, the record's trace key is the lock key (a
|
|
27498
|
-
blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on
|
|
27499
|
-
as `io_custom_trace_key`); a template replaces that default rather than adding to it.
|
|
27498
|
+
blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on an object
|
|
27499
|
+
record as `io_custom_trace_key`); a template replaces that default rather than adding to it.
|
|
27500
27500
|
The template is rendered from the record as it arrives at the import — before the import's
|
|
27501
27501
|
own lookups and mapping run — so a key built from one of the import's lookup results
|
|
27502
27502
|
(`{{lookup.<name>}}`) or from a mapped field renders empty, and an empty key is no lock at
|
|
@@ -28372,6 +28372,14 @@ components:
|
|
|
28372
28372
|
array-records to (templates reference ``{{rows.0.<field>}}`` /
|
|
28373
28373
|
iterate ``{{#each rows}}``); hook code sees the array as the
|
|
28374
28374
|
record element and must not assume object shape.
|
|
28375
|
+
- |-
|
|
28376
|
+
On an HTTP export and on a Snowflake export that group with this field, a grouped record's
|
|
28377
|
+
trace key at the next step was the platform's default key, not the value of the export's
|
|
28378
|
+
`traceKeyTemplate`: the first field on the flow's trace-key list present on the rows, when
|
|
28379
|
+
every row holds the same value. Rows that each carry their own `id` left a multi-row
|
|
28380
|
+
group's key blank; an `id` holding the group's identifier on every row keyed the group on
|
|
28381
|
+
it. A Transform 2.0 in `mode: create` that turned each group into one object made the
|
|
28382
|
+
template the key on the HTTP export (see `traceKeyTemplate`).
|
|
28375
28383
|
- |-
|
|
28376
28384
|
A grouped record is ONE record: Mapper 2.0 and Transform 2.0 root
|
|
28377
28385
|
JSONPath at the array (``$[0].<field>`` / ``$[*].<field>``;
|
|
@@ -33880,6 +33888,8 @@ components:
|
|
|
33880
33888
|
- `lastPageStatusCode` - Detect last page by HTTP status code
|
|
33881
33889
|
- `lastPagePath` - JSON path to check for last page indicator (read only on a response whose status equals `lastPageStatusCode`, except on `method: body`, which reads it on every response)
|
|
33882
33890
|
- `lastPageValues` - Values at lastPagePath that indicate last page
|
|
33891
|
+
|
|
33892
|
+
With `method: body` and `mergeBodyParamsToPagingBody` not set, paging also ends when the paging `body` renders empty — see `body`.
|
|
33883
33893
|
- |-
|
|
33884
33894
|
## COMMON IMPLEMENTATION PATTERNS
|
|
33885
33895
|
|
|
@@ -34344,7 +34354,7 @@ components:
|
|
|
34344
34354
|
x-celigo-agent:
|
|
34345
34355
|
- handlebars
|
|
34346
34356
|
- graphql
|
|
34347
|
-
description: Overrides the main request body for second and later page requests, typically for GraphQL or SOAP APIs that paginate through the body; leave empty when the main body works for all pages. Build it with handlebars using the `previous_page` context — `previous_page.full_response`, `previous_page.last_record`, and `previous_page.headers`.
|
|
34357
|
+
description: Overrides the main request body for second and later page requests, typically for GraphQL or SOAP APIs that paginate through the body; leave empty when the main body works for all pages. Build it with handlebars using the `previous_page` context — `previous_page.full_response`, `previous_page.last_record`, and `previous_page.headers`. With `mergeBodyParamsToPagingBody` not set, a body that renders empty for a page sends no request and ends paging without an error.
|
|
34348
34358
|
x-celigo-ai-guidance:
|
|
34349
34359
|
- |-
|
|
34350
34360
|
This field only needs to be set if subsequent page requests require a different
|
|
@@ -34369,10 +34379,38 @@ components:
|
|
|
34369
34379
|
- Using the last record's ID: `{"after": "{{previous_page.last_record.id}}", "limit": 100}`
|
|
34370
34380
|
- Including a page number: `{"page": {{previous_page.full_response.meta.next_page}}, "pageSize": 50}`
|
|
34371
34381
|
- Leave this field empty if the main HTTP request body can be used for all page requests.
|
|
34382
|
+
- |-
|
|
34383
|
+
With `method: body` and `mergeBodyParamsToPagingBody` not set, a paging body that
|
|
34384
|
+
renders empty — or to whitespace only — ends paging: no request is sent for that
|
|
34385
|
+
page and no error is recorded. A body wrapped whole in a block that holds only
|
|
34386
|
+
while more pages remain therefore stops on the API's own signal:
|
|
34387
|
+
`{{#if previous_page.full_response.hasMore}}{"cursor": "{{previous_page.full_response.nextCursor}}", "limit": 100}{{/if}}`.
|
|
34388
|
+
Live-verified 2026-11-11 with virtual exports against an echo endpoint: three pages
|
|
34389
|
+
were read, the block rendered empty on the next, and the export returned the
|
|
34390
|
+
records with no further request and no error — the same with whitespace outside
|
|
34391
|
+
the block. An empty body together with `mergeBodyParamsToPagingBody: true` was not
|
|
34392
|
+
probed.
|
|
34393
|
+
- |-
|
|
34394
|
+
A block around ONE member of the body does not end paging: the body still renders,
|
|
34395
|
+
so the request is sent with that member empty. In the same probe a body whose
|
|
34396
|
+
`query` member alone sat inside the block kept requesting pages after the flag
|
|
34397
|
+
turned false, each sent with `"query": ""`.
|
|
34398
|
+
- |-
|
|
34399
|
+
A body wrapped in a block is not JSON at rest, so it belongs to a step edited in
|
|
34400
|
+
the raw HTTP form; see `http.formType` for what the GraphQL form shows for such a
|
|
34401
|
+
body. Under the GraphQL form keep the body the object that form reads and end
|
|
34402
|
+
paging with `lastPagePath` and `lastPageValues`.
|
|
34403
|
+
- |-
|
|
34404
|
+
A page with no records at the records path also ends body paging (same probe: an
|
|
34405
|
+
empty array there, then no further request and no error). When the records path is
|
|
34406
|
+
an object rather than the list — a GraphQL `data` — every response counts as one
|
|
34407
|
+
record, so this ending never applies: in the probe the export went on requesting
|
|
34408
|
+
pages past the last one.
|
|
34372
34409
|
examples:
|
|
34373
34410
|
- '{"query": "query($cursor: String) { items(after: $cursor) { edges { node { id name } } pageInfo { endCursor } } }", "variables": {"cursor": "{{previous_page.full_response.data.items.pageInfo.endCursor}}"}}'
|
|
34374
34411
|
- '{"pageToken": "{{previous_page.full_response.nextPageToken}}"}'
|
|
34375
34412
|
- '{"startIndex": {{previous_page.full_response.nextStartIndex}}, "maxResults": 100}'
|
|
34413
|
+
- '{{#if previous_page.full_response.hasMore}}{"cursor": "{{previous_page.full_response.nextCursor}}", "limit": 100}{{/if}}'
|
|
34376
34414
|
mergeBodyParamsToPagingBody:
|
|
34377
34415
|
type: boolean
|
|
34378
34416
|
description: |-
|
|
@@ -37652,6 +37690,10 @@ components:
|
|
|
37652
37690
|
per row and the repeated internal ids surface as duplicate trace keys
|
|
37653
37691
|
(`traceKeysDuplicate` in the preview). Grouping keys on the internal id only — a
|
|
37654
37692
|
different key needs a `preSavePage` hook, which sees one page at a time.
|
|
37693
|
+
- |-
|
|
37694
|
+
With grouping on, the next step's errors are keyed on the rows' `id` (the record's
|
|
37695
|
+
internal id) even when the export sets a `traceKeyTemplate`; with `true` the template's
|
|
37696
|
+
value is the key.
|
|
37655
37697
|
- |-
|
|
37656
37698
|
Celigo's documentation requires the saved search to be sorted by Internal ID for
|
|
37657
37699
|
grouping to apply.
|
|
@@ -40204,26 +40246,53 @@ components:
|
|
|
40204
40246
|
description: |-
|
|
40205
40247
|
Handlebars template that overrides how each record's unique trace key is generated, used
|
|
40206
40248
|
to track records through the flow and match retries to prior errors (e.g.
|
|
40207
|
-
`{{join "_" record.customerId record.orderId}}`). When omitted, the
|
|
40208
|
-
|
|
40209
|
-
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
x-celigo-ai-guidance:
|
|
40217
|
-
- |-
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40221
|
-
`
|
|
40222
|
-
`
|
|
40223
|
-
|
|
40224
|
-
|
|
40225
|
-
|
|
40226
|
-
|
|
40249
|
+
`{{join "_" record.customerId record.orderId}}`). When omitted, the platform derives the
|
|
40250
|
+
key from the ordered field list of the flow's source step (`GET /v1/flows/{_id}/traceKey`
|
|
40251
|
+
serves it). The rendered value of a template is stamped on an object record as
|
|
40252
|
+
`io_custom_trace_key` and travels downstream with it. If a transform reshapes the data
|
|
40253
|
+
first, omit the `record.` prefix. Trace keys are capped at 256 characters; a longer key is
|
|
40254
|
+
stored truncated from the middle, keeping the beginning and end of the value. Downstream
|
|
40255
|
+
imports use the trace key as their default concurrency lock key (a blank key means no
|
|
40256
|
+
lock); it never de-duplicates — a record emitted twice with the same key is processed
|
|
40257
|
+
twice.
|
|
40258
|
+
x-celigo-ai-guidance:
|
|
40259
|
+
- |-
|
|
40260
|
+
For an object record (an export that does not group), the default key is the first
|
|
40261
|
+
field the record carries from the list `GET /v1/flows/{_id}/traceKey` returns for the
|
|
40262
|
+
source step (a record carrying `id` and `internalId` is keyed on `id` alone). The list
|
|
40263
|
+
starts with the exact names `id`, `Id`, `ID`, `internalid`, `Internalid`, `internalId`,
|
|
40264
|
+
`InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`, `internal_id`, `internal_Id`,
|
|
40265
|
+
`Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`, `IDENTIFIER`.
|
|
40266
|
+
- |-
|
|
40267
|
+
After those names the list carries the source fields named like an id that the flow's
|
|
40268
|
+
import mappings read, in mapping order — an import that maps `Customer_Id` adds
|
|
40269
|
+
`Customer_Id`, so records with none of the standard names are keyed on that field —
|
|
40270
|
+
and then names taken from the export's own configuration, written with a leading `*`:
|
|
40271
|
+
an HTTP export whose relative URI is `v1/mirror` listed `*mirror`, and a record's
|
|
40272
|
+
`mirror_id` became its key.
|
|
40273
|
+
- |-
|
|
40274
|
+
The listed field is read from an object record's top level; when none is there, one
|
|
40275
|
+
level down counts (`order.id` keyed the record). Nested objects that carry different
|
|
40276
|
+
values, or the differing elements of a nested array, leave the key blank, and a field
|
|
40277
|
+
two levels down is not read.
|
|
40278
|
+
- |-
|
|
40279
|
+
On an export whose records are groups of rows — `groupByFields` on an HTTP and on a
|
|
40280
|
+
Snowflake export, and a NetSuite saved search with grouping on, were run — the
|
|
40281
|
+
template's value did not reach the next step: its errors carried the default key and
|
|
40282
|
+
no row carried `io_custom_trace_key`. The default for a group is the first listed field
|
|
40283
|
+
present on its rows when every row holds the same value; rows that differ on that field
|
|
40284
|
+
leave the key blank, and later listed fields are not tried.
|
|
40285
|
+
- |-
|
|
40286
|
+
To key grouped records on a business identifier, return it on every row as `id` — on a
|
|
40287
|
+
database export, `SELECT order_number AS id, * FROM orders` — and the next step's errors
|
|
40288
|
+
carry it, with or without a template (HTTP and Snowflake exports). On the HTTP export a
|
|
40289
|
+
Transform 2.0 in `mode: create` that reshaped each group into one object also made the
|
|
40290
|
+
template the key, because the record leaving the export was then an object.
|
|
40291
|
+
- |-
|
|
40292
|
+
An object record in flight through the flow carries `io_custom_trace_key` when a
|
|
40293
|
+
template is set — that value is the downstream imports' default lock key; without a
|
|
40294
|
+
template the record carries no trace-key field (the key is derived, not stored on the
|
|
40295
|
+
record).
|
|
40227
40296
|
examples:
|
|
40228
40297
|
- '{{record.id}}'
|
|
40229
40298
|
- '{{join "_" record.customerId record.orderId}}'
|
package/package.json
CHANGED