@celigo/api-specs 0.2.294 → 0.2.295
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/flow.yml +37 -8
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/flow.yml
CHANGED
|
@@ -5208,16 +5208,45 @@ components:
|
|
|
5208
5208
|
Hook that runs after the step's response mapping completes. The function receives
|
|
5209
5209
|
`options.postResponseMapData` (the records, with response mapping applied) and
|
|
5210
5210
|
`options.responseData` (the step's per-record results, in the same order) and returns
|
|
5211
|
-
`postResponseMapData`, same length.
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5211
|
+
`postResponseMapData`, same length. What an entry holds depends on the step and on
|
|
5212
|
+
the record's outcome. Import step: the entry of a record that was written carries the
|
|
5213
|
+
`statusCode` and the destination's reply, and no `errors`. Lookup step, where no entry
|
|
5214
|
+
has a `statusCode`: the entry of a record the lookup returned records for carries them
|
|
5215
|
+
in `data`, with an empty `errors` array; the entry of a record the lookup returned
|
|
5216
|
+
nothing for carries an empty `data` and an empty `errors`; the entry of a record the
|
|
5217
|
+
lookup's `inputFilter` skipped carries an empty `data`, an empty `errors` and
|
|
5218
|
+
`ignored: true`. A record the step failed is in neither array unless
|
|
5219
|
+
`proceedOnFailure` is true. Then it is included. On an import step it carries the
|
|
5220
|
+
fields its response mapping extracted from the failure envelope (`statusCode` 422 and
|
|
5221
|
+
`errors`; `id` only when the id path resolves on the destination's reply), and its
|
|
5215
5222
|
`responseData` entry has `statusCode` 422 and `errors` as an object keyed by index
|
|
5216
|
-
(`"0"`, `"1"`, ...) rather than an array.
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5223
|
+
(`"0"`, `"1"`, ...) rather than an array. On a lookup step it carries none of the
|
|
5224
|
+
step's response-mapped fields, and its entry holds only `errors` (an array of
|
|
5225
|
+
`{code, message, source}`) and `recordId`. An error this hook raises is stored at
|
|
5226
|
+
retry stage `post_response_mapping`: a retry runs the hook again on the saved record
|
|
5227
|
+
(as response mapping left it) and the step's stored reply, without repeating the
|
|
5228
|
+
lookup or the destination request.
|
|
5220
5229
|
x-celigo-ai-guidance:
|
|
5230
|
+
- |-
|
|
5231
|
+
Verified live 2026-11-12 in flow runs with this hook on an HTTP lookup step and on
|
|
5232
|
+
an HTTP import step. Import step, two written records: each entry held `statusCode`
|
|
5233
|
+
(200), `id`, `_json`, `_headers` and `recordId`, and neither `errors` nor `ignored`.
|
|
5234
|
+
Lookup step with `proceedOnFailure: true`, four records, no entry holding
|
|
5235
|
+
`statusCode`: the entry of the record the lookup returned one record for held
|
|
5236
|
+
`data` (that record), `errors` (`[]`), `dataURIs`, `groupId`, `ignoredResults`,
|
|
5237
|
+
`recordId`, `resultRecordIds` and `subGroupIdMapForSuccess`; the entry of the record
|
|
5238
|
+
the lookup answered an empty array for held the same members without `groupId`,
|
|
5239
|
+
with `data` `[]`; the entry of the record the lookup's `inputFilter` skipped held,
|
|
5240
|
+
beside an empty `data` and an empty `errors`, `ignored: true`, `stage:
|
|
5241
|
+
"inputFilter"` and `ignoredData`; the entry of the record the lookup failed (HTTP
|
|
5242
|
+
404) held only `errors` (`[{code: 404, message: "Not Found", source:
|
|
5243
|
+
"application"}]`) and `recordId`.
|
|
5244
|
+
A run with `proceedOnFailure` false over a returned, a failed and a skipped record
|
|
5245
|
+
held the returned and the skipped record in both arrays and nothing for the failed
|
|
5246
|
+
one. So a hook on a lookup step that lets a record through only when its entry's
|
|
5247
|
+
`statusCode` is 2xx reads `undefined` and stops every record. Read the entry
|
|
5248
|
+
instead: `errors` not empty is a failed lookup, `ignored` true a skipped one, an
|
|
5249
|
+
empty `data` no match.
|
|
5221
5250
|
- |-
|
|
5222
5251
|
Verified live 2026-10-22 in flow runs of an HTTP import, three records with one
|
|
5223
5252
|
answered 404: with `proceedOnFailure` unset, both arrays held the two written
|
package/package.json
CHANGED