@celigo/api-specs 0.2.295 → 0.2.296
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/connection.yml +27 -12
- package/dist/flow.yml +3 -1
- package/dist/import.yml +123 -19
- package/dist/tool.yml +51 -4
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/connection.yml
CHANGED
|
@@ -11128,21 +11128,32 @@ components:
|
|
|
11128
11128
|
statusCode:
|
|
11129
11129
|
type: integer
|
|
11130
11130
|
description: |-
|
|
11131
|
-
|
|
11132
|
-
accepted record
|
|
11133
|
-
|
|
11134
|
-
the
|
|
11131
|
+
The import's verdict on the record, not the destination's HTTP status:
|
|
11132
|
+
`200` for an accepted record — destination answers 200, 201, 202 and
|
|
11133
|
+
204 each return `200` here — and `422` when the import recorded a
|
|
11134
|
+
failure for the record: the destination answered an error status, it
|
|
11135
|
+
answered `200` and the import's `failPath` or `successPath` rules
|
|
11136
|
+
judged that a failure, or the request could not be built. On a failed
|
|
11137
|
+
record, `errors[].code` carries the destination's status when that
|
|
11138
|
+
code is an integer — see there.
|
|
11135
11139
|
_json:
|
|
11136
|
-
type: object
|
|
11137
11140
|
description: |-
|
|
11138
|
-
The destination's
|
|
11141
|
+
The destination's response body for the record, parsed — the slice
|
|
11139
11142
|
under the import's `response.resourcePath` when one is defined — not
|
|
11140
11143
|
the record that was sent. `{}` when the record was ignored or the
|
|
11141
|
-
destination returned no
|
|
11142
|
-
|
|
11144
|
+
destination returned no body; the raw text, as a string, when the
|
|
11145
|
+
body is not JSON. A failed record carries it too.
|
|
11146
|
+
oneOf:
|
|
11147
|
+
- type: object
|
|
11148
|
+
additionalProperties: true
|
|
11149
|
+
- type: string
|
|
11143
11150
|
_headers:
|
|
11144
11151
|
type: object
|
|
11145
|
-
description:
|
|
11152
|
+
description: |-
|
|
11153
|
+
Response headers the destination returned for the record. Present
|
|
11154
|
+
when the destination accepted the record; the failed results probed
|
|
11155
|
+
— an error status, a `failPath` match, a `successPath` miss, a
|
|
11156
|
+
request that could not be built — carried none.
|
|
11146
11157
|
additionalProperties: true
|
|
11147
11158
|
ignored:
|
|
11148
11159
|
type: boolean
|
|
@@ -11176,9 +11187,13 @@ components:
|
|
|
11176
11187
|
- type: string
|
|
11177
11188
|
- type: integer
|
|
11178
11189
|
description: |-
|
|
11179
|
-
The
|
|
11180
|
-
|
|
11181
|
-
|
|
11190
|
+
The destination's HTTP status as an integer when its answer was
|
|
11191
|
+
the failure: the error status it answered (`400`, `404`, `418`),
|
|
11192
|
+
or `200` when the import's `failPath` rules matched a `200`
|
|
11193
|
+
answer. Otherwise the adaptor's error code as a string:
|
|
11194
|
+
`response_failure` when a `200` answer did not meet the
|
|
11195
|
+
import's `successPath` rules, `handlebars_template_parse_error`
|
|
11196
|
+
for a request that could not be built.
|
|
11182
11197
|
message:
|
|
11183
11198
|
type: string
|
|
11184
11199
|
resolved:
|
package/dist/flow.yml
CHANGED
|
@@ -5189,7 +5189,9 @@ components:
|
|
|
5189
5189
|
`errors` mapped: a record failed by `failPath` on a 200 echo body reached the next
|
|
5190
5190
|
router carrying `statusCode` 422, `errors` and the `id` read from that body; records
|
|
5191
5191
|
answered a real 404 carried `statusCode` 422 and `errors` and no `id`; written records
|
|
5192
|
-
carried
|
|
5192
|
+
carried `statusCode` 200 and no `errors`. That 200 is the platform's verdict as well:
|
|
5193
|
+
in a flow run on 2026-11-13, imports whose destinations answered 201 and 204 each
|
|
5194
|
+
mapped `statusCode` 200. So a router after
|
|
5193
5195
|
the step picks out the failed records with a rule on the mapped `statusCode` equal to
|
|
5194
5196
|
422 (or `errors` not empty) and lets every other record take the other branch —
|
|
5195
5197
|
written records, and records the import's input filter skipped, which continue without
|
package/dist/import.yml
CHANGED
|
@@ -660,18 +660,60 @@ paths:
|
|
|
660
660
|
_headers:
|
|
661
661
|
content-type: application/json; charset=utf-8
|
|
662
662
|
destination_error:
|
|
663
|
-
summary:
|
|
663
|
+
summary: The destination answers HTTP 400 with no body — its status is errors[].code
|
|
664
664
|
value:
|
|
665
665
|
- statusCode: 422
|
|
666
666
|
_json: {}
|
|
667
|
+
errors:
|
|
668
|
+
- source: application
|
|
669
|
+
code: 400
|
|
670
|
+
message: Bad Request
|
|
671
|
+
resolved: false
|
|
672
|
+
occurredAt: 1794545289277
|
|
673
|
+
stage: apiCall
|
|
674
|
+
classification: intermittent
|
|
675
|
+
success_path_not_met:
|
|
676
|
+
summary: The destination answers HTTP 200, but not with the value the import's successPath rule requires
|
|
677
|
+
value:
|
|
678
|
+
- statusCode: 422
|
|
679
|
+
_json:
|
|
680
|
+
Content-Length: '84'
|
|
681
|
+
Content-Type: application/json
|
|
682
|
+
ok: 'false'
|
|
667
683
|
errors:
|
|
668
684
|
- source: application
|
|
669
685
|
code: response_failure
|
|
670
|
-
message:
|
|
686
|
+
message: |
|
|
687
|
+
response failed using path: "ok". Value found: "false". Response body: {
|
|
688
|
+
"Content-Length": "84",
|
|
689
|
+
"Content-Type": "application/json",
|
|
690
|
+
"ok": "false"
|
|
691
|
+
}
|
|
671
692
|
resolved: false
|
|
672
|
-
occurredAt:
|
|
693
|
+
occurredAt: 1794545287674
|
|
673
694
|
stage: apiCall
|
|
674
695
|
classification: value
|
|
696
|
+
fail_path_matched:
|
|
697
|
+
summary: The destination answers HTTP 200 with a value the import's failPath rule names — errors[].code is 200
|
|
698
|
+
value:
|
|
699
|
+
- statusCode: 422
|
|
700
|
+
_json:
|
|
701
|
+
Content-Length: '84'
|
|
702
|
+
Content-Type: application/json
|
|
703
|
+
ok: 'false'
|
|
704
|
+
errors:
|
|
705
|
+
- code: 200
|
|
706
|
+
source: application
|
|
707
|
+
message: |
|
|
708
|
+
{
|
|
709
|
+
"Content-Length": "84",
|
|
710
|
+
"Content-Type": "application/json",
|
|
711
|
+
"ok": "false"
|
|
712
|
+
}
|
|
713
|
+
resolved: false
|
|
714
|
+
occurredAt: 1794545288511
|
|
715
|
+
stage: apiCall
|
|
716
|
+
classification: none
|
|
675
717
|
ignored_by_input_filter:
|
|
676
718
|
summary: Record excluded by the import's input filter — nothing sent
|
|
677
719
|
value:
|
|
@@ -18157,10 +18199,12 @@ components:
|
|
|
18157
18199
|
Hook that runs after the destination system responds, with access to both the
|
|
18158
18200
|
submitted records and the destination's responses. Commonly used to inspect results
|
|
18159
18201
|
or adjust the response data passed downstream. Each `options.responseData` entry is
|
|
18160
|
-
one submitted record's result, in order: `statusCode
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18202
|
+
one submitted record's result, in order: `statusCode` (the import's verdict on the
|
|
18203
|
+
record — 200 written, 422 failed — not the destination's HTTP status), `errors`
|
|
18204
|
+
(`{code, message, source}`, empty on a written record; on a failed one `errors[0]`
|
|
18205
|
+
holds the failure's detail), `ignored`, `id`, and `_json` — the destination's response
|
|
18206
|
+
body, parsed: `{}` when it sent none, the raw text when the body is not JSON. A
|
|
18207
|
+
written record's entry also carries `_headers`, the response headers.
|
|
18164
18208
|
x-celigo-ai-guidance:
|
|
18165
18209
|
- |-
|
|
18166
18210
|
Post-submit JavaScript hook — runs AFTER each batch of
|
|
@@ -18173,6 +18217,51 @@ components:
|
|
|
18173
18217
|
response, whose envelope carries the mock's id, such as
|
|
18174
18218
|
``1234567890``) → array of the same length, typically mutated
|
|
18175
18219
|
to annotate or augment per-record errors.
|
|
18220
|
+
- |-
|
|
18221
|
+
`statusCode` is the import's verdict, not the HTTP status the
|
|
18222
|
+
destination answered: 200 on the entry of a record the import
|
|
18223
|
+
counts as written, 422 on the entry of a record it counts as
|
|
18224
|
+
failed. Verified live 2026-11-13 with a hook that reported its
|
|
18225
|
+
input: destination answers 200, 201, 202 and 204 each arrived
|
|
18226
|
+
as `statusCode` 200 with `errors` empty; answers 400, 404, 409,
|
|
18227
|
+
418 and 500 each arrived as `statusCode` 422. The Help Center's
|
|
18228
|
+
postSubmit stub documents a third value that run did not
|
|
18229
|
+
produce: 403, "the connection went offline".
|
|
18230
|
+
- |-
|
|
18231
|
+
What `errors[0]` of a failed entry carried in that run, by
|
|
18232
|
+
cause. The destination answered 400, 404, 409, 418 or 500:
|
|
18233
|
+
`code` is that status as a number and `message` the raw
|
|
18234
|
+
response body, or the status text ("Bad Request") when the body
|
|
18235
|
+
is empty. A 200 answer matched the import's
|
|
18236
|
+
`http.response.failPath`: `code` is 200 (a number) and
|
|
18237
|
+
`message` the raw body. A 200 answer did not meet
|
|
18238
|
+
`http.response.successPath`: `code` is the string
|
|
18239
|
+
`response_failure` and `message` starts "response failed using
|
|
18240
|
+
path". The request URL template could not be rendered, so
|
|
18241
|
+
nothing was sent: `code` is the string
|
|
18242
|
+
`handlebars_template_parse_error`. Read `errors[0].code` as the
|
|
18243
|
+
destination's status only when it is a number.
|
|
18244
|
+
- |-
|
|
18245
|
+
Each failed entry in that run — one per cause above — had the
|
|
18246
|
+
keys `_json`, `errors` and `statusCode` and no `_headers`; each
|
|
18247
|
+
written entry had `_headers`. A written entry does not carry
|
|
18248
|
+
the destination's status anywhere, so a hook cannot tell a 204
|
|
18249
|
+
from a 200 by status: tell written answers apart by what they
|
|
18250
|
+
carry in `_json` or `_headers`.
|
|
18251
|
+
- |-
|
|
18252
|
+
Test `statusCode` against 200 for "written", never against a
|
|
18253
|
+
status the destination sends. With the entries of that run a
|
|
18254
|
+
test such as `statusCode !== 204` holds for every written
|
|
18255
|
+
record, so a hook that raises an error on it fails all of them,
|
|
18256
|
+
and a test such as `statusCode === 400` never holds, so a hook
|
|
18257
|
+
that handles a refused record on it does nothing: read a failed
|
|
18258
|
+
record's destination status from `errors[0].code`.
|
|
18259
|
+
- |-
|
|
18260
|
+
`_json` is `{}` when the answer has no body, the raw text when
|
|
18261
|
+
the body is not JSON (the 418 answer had a plain-text body) and
|
|
18262
|
+
the parsed body otherwise, on failed entries too (the
|
|
18263
|
+
`failPath` and `successPath` failures above), so check its type
|
|
18264
|
+
before reading fields from it.
|
|
18176
18265
|
- |-
|
|
18177
18266
|
An error this hook raises is stored at retry stage
|
|
18178
18267
|
`page_processor_import`, like the import's own errors: a retry
|
|
@@ -19148,21 +19237,32 @@ components:
|
|
|
19148
19237
|
statusCode:
|
|
19149
19238
|
type: integer
|
|
19150
19239
|
description: |-
|
|
19151
|
-
|
|
19152
|
-
accepted record
|
|
19153
|
-
|
|
19154
|
-
the
|
|
19240
|
+
The import's verdict on the record, not the destination's HTTP status:
|
|
19241
|
+
`200` for an accepted record — destination answers 200, 201, 202 and
|
|
19242
|
+
204 each return `200` here — and `422` when the import recorded a
|
|
19243
|
+
failure for the record: the destination answered an error status, it
|
|
19244
|
+
answered `200` and the import's `failPath` or `successPath` rules
|
|
19245
|
+
judged that a failure, or the request could not be built. On a failed
|
|
19246
|
+
record, `errors[].code` carries the destination's status when that
|
|
19247
|
+
code is an integer — see there.
|
|
19155
19248
|
_json:
|
|
19156
|
-
type: object
|
|
19157
19249
|
description: |-
|
|
19158
|
-
The destination's
|
|
19250
|
+
The destination's response body for the record, parsed — the slice
|
|
19159
19251
|
under the import's `response.resourcePath` when one is defined — not
|
|
19160
19252
|
the record that was sent. `{}` when the record was ignored or the
|
|
19161
|
-
destination returned no
|
|
19162
|
-
|
|
19253
|
+
destination returned no body; the raw text, as a string, when the
|
|
19254
|
+
body is not JSON. A failed record carries it too.
|
|
19255
|
+
oneOf:
|
|
19256
|
+
- type: object
|
|
19257
|
+
additionalProperties: true
|
|
19258
|
+
- type: string
|
|
19163
19259
|
_headers:
|
|
19164
19260
|
type: object
|
|
19165
|
-
description:
|
|
19261
|
+
description: |-
|
|
19262
|
+
Response headers the destination returned for the record. Present
|
|
19263
|
+
when the destination accepted the record; the failed results probed
|
|
19264
|
+
— an error status, a `failPath` match, a `successPath` miss, a
|
|
19265
|
+
request that could not be built — carried none.
|
|
19166
19266
|
additionalProperties: true
|
|
19167
19267
|
ignored:
|
|
19168
19268
|
type: boolean
|
|
@@ -19196,9 +19296,13 @@ components:
|
|
|
19196
19296
|
- type: string
|
|
19197
19297
|
- type: integer
|
|
19198
19298
|
description: |-
|
|
19199
|
-
The
|
|
19200
|
-
|
|
19201
|
-
|
|
19299
|
+
The destination's HTTP status as an integer when its answer was
|
|
19300
|
+
the failure: the error status it answered (`400`, `404`, `418`),
|
|
19301
|
+
or `200` when the import's `failPath` rules matched a `200`
|
|
19302
|
+
answer. Otherwise the adaptor's error code as a string:
|
|
19303
|
+
`response_failure` when a `200` answer did not meet the
|
|
19304
|
+
import's `successPath` rules, `handlebars_template_parse_error`
|
|
19305
|
+
for a request that could not be built.
|
|
19202
19306
|
message:
|
|
19203
19307
|
type: string
|
|
19204
19308
|
resolved:
|
package/dist/tool.yml
CHANGED
|
@@ -27854,10 +27854,12 @@ components:
|
|
|
27854
27854
|
Hook that runs after the destination system responds, with access to both the
|
|
27855
27855
|
submitted records and the destination's responses. Commonly used to inspect results
|
|
27856
27856
|
or adjust the response data passed downstream. Each `options.responseData` entry is
|
|
27857
|
-
one submitted record's result, in order: `statusCode
|
|
27858
|
-
|
|
27859
|
-
|
|
27860
|
-
|
|
27857
|
+
one submitted record's result, in order: `statusCode` (the import's verdict on the
|
|
27858
|
+
record — 200 written, 422 failed — not the destination's HTTP status), `errors`
|
|
27859
|
+
(`{code, message, source}`, empty on a written record; on a failed one `errors[0]`
|
|
27860
|
+
holds the failure's detail), `ignored`, `id`, and `_json` — the destination's response
|
|
27861
|
+
body, parsed: `{}` when it sent none, the raw text when the body is not JSON. A
|
|
27862
|
+
written record's entry also carries `_headers`, the response headers.
|
|
27861
27863
|
x-celigo-ai-guidance:
|
|
27862
27864
|
- |-
|
|
27863
27865
|
Post-submit JavaScript hook — runs AFTER each batch of
|
|
@@ -27870,6 +27872,51 @@ components:
|
|
|
27870
27872
|
response, whose envelope carries the mock's id, such as
|
|
27871
27873
|
``1234567890``) → array of the same length, typically mutated
|
|
27872
27874
|
to annotate or augment per-record errors.
|
|
27875
|
+
- |-
|
|
27876
|
+
`statusCode` is the import's verdict, not the HTTP status the
|
|
27877
|
+
destination answered: 200 on the entry of a record the import
|
|
27878
|
+
counts as written, 422 on the entry of a record it counts as
|
|
27879
|
+
failed. Verified live 2026-11-13 with a hook that reported its
|
|
27880
|
+
input: destination answers 200, 201, 202 and 204 each arrived
|
|
27881
|
+
as `statusCode` 200 with `errors` empty; answers 400, 404, 409,
|
|
27882
|
+
418 and 500 each arrived as `statusCode` 422. The Help Center's
|
|
27883
|
+
postSubmit stub documents a third value that run did not
|
|
27884
|
+
produce: 403, "the connection went offline".
|
|
27885
|
+
- |-
|
|
27886
|
+
What `errors[0]` of a failed entry carried in that run, by
|
|
27887
|
+
cause. The destination answered 400, 404, 409, 418 or 500:
|
|
27888
|
+
`code` is that status as a number and `message` the raw
|
|
27889
|
+
response body, or the status text ("Bad Request") when the body
|
|
27890
|
+
is empty. A 200 answer matched the import's
|
|
27891
|
+
`http.response.failPath`: `code` is 200 (a number) and
|
|
27892
|
+
`message` the raw body. A 200 answer did not meet
|
|
27893
|
+
`http.response.successPath`: `code` is the string
|
|
27894
|
+
`response_failure` and `message` starts "response failed using
|
|
27895
|
+
path". The request URL template could not be rendered, so
|
|
27896
|
+
nothing was sent: `code` is the string
|
|
27897
|
+
`handlebars_template_parse_error`. Read `errors[0].code` as the
|
|
27898
|
+
destination's status only when it is a number.
|
|
27899
|
+
- |-
|
|
27900
|
+
Each failed entry in that run — one per cause above — had the
|
|
27901
|
+
keys `_json`, `errors` and `statusCode` and no `_headers`; each
|
|
27902
|
+
written entry had `_headers`. A written entry does not carry
|
|
27903
|
+
the destination's status anywhere, so a hook cannot tell a 204
|
|
27904
|
+
from a 200 by status: tell written answers apart by what they
|
|
27905
|
+
carry in `_json` or `_headers`.
|
|
27906
|
+
- |-
|
|
27907
|
+
Test `statusCode` against 200 for "written", never against a
|
|
27908
|
+
status the destination sends. With the entries of that run a
|
|
27909
|
+
test such as `statusCode !== 204` holds for every written
|
|
27910
|
+
record, so a hook that raises an error on it fails all of them,
|
|
27911
|
+
and a test such as `statusCode === 400` never holds, so a hook
|
|
27912
|
+
that handles a refused record on it does nothing: read a failed
|
|
27913
|
+
record's destination status from `errors[0].code`.
|
|
27914
|
+
- |-
|
|
27915
|
+
`_json` is `{}` when the answer has no body, the raw text when
|
|
27916
|
+
the body is not JSON (the 418 answer had a plain-text body) and
|
|
27917
|
+
the parsed body otherwise, on failed entries too (the
|
|
27918
|
+
`failPath` and `successPath` failures above), so check its type
|
|
27919
|
+
before reading fields from it.
|
|
27873
27920
|
- |-
|
|
27874
27921
|
An error this hook raises is stored at retry stage
|
|
27875
27922
|
`page_processor_import`, like the import's own errors: a retry
|
package/package.json
CHANGED