@celigo/api-specs 0.2.295 → 0.2.297
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 +58 -23
- package/dist/export.yml +15 -9
- package/dist/flow.yml +22 -4
- package/dist/import.yml +147 -28
- package/dist/tool.yml +66 -13
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/connection.yml
CHANGED
|
@@ -1842,7 +1842,7 @@ paths:
|
|
|
1842
1842
|
'200':
|
|
1843
1843
|
description: |-
|
|
1844
1844
|
One result per input record, in input order — accepted, failed at
|
|
1845
|
-
the destination, or ignored by the document
|
|
1845
|
+
the destination, or ignored by the document itself.
|
|
1846
1846
|
content:
|
|
1847
1847
|
application/json:
|
|
1848
1848
|
schema:
|
|
@@ -2163,7 +2163,7 @@ paths:
|
|
|
2163
2163
|
'200':
|
|
2164
2164
|
description: |-
|
|
2165
2165
|
One result per input record, in input order — accepted, failed at
|
|
2166
|
-
the destination, or ignored by the document
|
|
2166
|
+
the destination, or ignored by the document itself.
|
|
2167
2167
|
content:
|
|
2168
2168
|
application/json:
|
|
2169
2169
|
schema:
|
|
@@ -2341,7 +2341,7 @@ paths:
|
|
|
2341
2341
|
'200':
|
|
2342
2342
|
description: |-
|
|
2343
2343
|
One result per input record, in input order — accepted, failed at
|
|
2344
|
-
the destination, or ignored by the document
|
|
2344
|
+
the destination, or ignored by the document itself.
|
|
2345
2345
|
content:
|
|
2346
2346
|
application/json:
|
|
2347
2347
|
schema:
|
|
@@ -2519,7 +2519,7 @@ paths:
|
|
|
2519
2519
|
'200':
|
|
2520
2520
|
description: |-
|
|
2521
2521
|
One result per input record, in input order — accepted, failed at
|
|
2522
|
-
the destination, or ignored by the document
|
|
2522
|
+
the destination, or ignored by the document itself.
|
|
2523
2523
|
content:
|
|
2524
2524
|
application/json:
|
|
2525
2525
|
schema:
|
|
@@ -11119,43 +11119,70 @@ components:
|
|
|
11119
11119
|
per record, in input order — shared by `POST /v1/imports/{_id}/invoke`,
|
|
11120
11120
|
the virtual import `POST /v1/connections/{_id}/import` and its
|
|
11121
11121
|
integration-scoped forms. A record the
|
|
11122
|
-
import itself
|
|
11123
|
-
|
|
11124
|
-
parsed response; a record the destination
|
|
11122
|
+
import itself skipped carries `ignored: true`, with the `stage` that
|
|
11123
|
+
dropped it when the platform reports one; a record the destination
|
|
11124
|
+
accepted carries its parsed response; a record the destination
|
|
11125
|
+
rejected — or that the
|
|
11125
11126
|
import's `failPath` / `failValues` rules judged a failure even on a
|
|
11126
11127
|
`2xx` — carries `errors[]`.
|
|
11127
11128
|
properties:
|
|
11128
11129
|
statusCode:
|
|
11129
11130
|
type: integer
|
|
11130
11131
|
description: |-
|
|
11131
|
-
|
|
11132
|
-
accepted record
|
|
11133
|
-
|
|
11134
|
-
the
|
|
11132
|
+
The import's verdict on the record, not the destination's HTTP status:
|
|
11133
|
+
`200` for an accepted record — destination answers 200, 201, 202 and
|
|
11134
|
+
204 each return `200` here — and `422` when the import recorded a
|
|
11135
|
+
failure for the record: the destination answered an error status, it
|
|
11136
|
+
answered `200` and the import's `failPath` or `successPath` rules
|
|
11137
|
+
judged that a failure, or the request could not be built. On a failed
|
|
11138
|
+
record, `errors[].code` carries the destination's status when that
|
|
11139
|
+
code is an integer — see there.
|
|
11135
11140
|
_json:
|
|
11136
|
-
type: object
|
|
11137
11141
|
description: |-
|
|
11138
|
-
The destination's
|
|
11142
|
+
The destination's response body for the record, parsed — the slice
|
|
11139
11143
|
under the import's `response.resourcePath` when one is defined — not
|
|
11140
|
-
the record that was sent. `{}` when the
|
|
11141
|
-
destination returned no
|
|
11142
|
-
|
|
11144
|
+
the record that was sent. `{}` when the import's input filter
|
|
11145
|
+
ignored the record or the destination returned no body; the raw
|
|
11146
|
+
text, as a string, when the body is not JSON. A failed record
|
|
11147
|
+
carries it too.
|
|
11148
|
+
oneOf:
|
|
11149
|
+
- type: object
|
|
11150
|
+
additionalProperties: true
|
|
11151
|
+
- type: string
|
|
11143
11152
|
_headers:
|
|
11144
11153
|
type: object
|
|
11145
|
-
description:
|
|
11154
|
+
description: |-
|
|
11155
|
+
Response headers the destination returned for the record. Present
|
|
11156
|
+
when the destination accepted the record; the failed results probed
|
|
11157
|
+
— an error status, a `failPath` match, a `successPath` miss, a
|
|
11158
|
+
request that could not be built — carried none.
|
|
11146
11159
|
additionalProperties: true
|
|
11147
11160
|
ignored:
|
|
11148
11161
|
type: boolean
|
|
11149
11162
|
description: |-
|
|
11150
|
-
When true, the import
|
|
11151
|
-
|
|
11163
|
+
When true, the import skipped the record and wrote nothing to the
|
|
11164
|
+
destination. A record its own input filter excluded carries
|
|
11165
|
+
`stage: inputFilter`, and no request was made for it. A NetSuite
|
|
11166
|
+
import with `ignoreExisting` whose lookup finds the record carries
|
|
11167
|
+
no `stage`: the destination was searched, and `id` and `_json.id`
|
|
11168
|
+
hold the internal id of the record the search found.
|
|
11152
11169
|
stage:
|
|
11153
11170
|
type: string
|
|
11154
11171
|
description: |-
|
|
11155
11172
|
The import stage that ignored the record — `inputFilter` when the
|
|
11156
|
-
import's own input filter excluded it. Present only with `ignored
|
|
11173
|
+
import's own input filter excluded it. Present only with `ignored`,
|
|
11174
|
+
and not on every ignored record.
|
|
11157
11175
|
examples:
|
|
11158
11176
|
- inputFilter
|
|
11177
|
+
id:
|
|
11178
|
+
type:
|
|
11179
|
+
- string
|
|
11180
|
+
- integer
|
|
11181
|
+
description: |-
|
|
11182
|
+
Identifier the import reports for the record; many results carry
|
|
11183
|
+
none. On a record a NetSuite import ignored because its
|
|
11184
|
+
`ignoreExisting` lookup found it, this is the internal id of the
|
|
11185
|
+
existing record the lookup found — the same value as `_json.id`.
|
|
11159
11186
|
errors:
|
|
11160
11187
|
type: array
|
|
11161
11188
|
description: |-
|
|
@@ -11176,9 +11203,13 @@ components:
|
|
|
11176
11203
|
- type: string
|
|
11177
11204
|
- type: integer
|
|
11178
11205
|
description: |-
|
|
11179
|
-
The
|
|
11180
|
-
|
|
11181
|
-
|
|
11206
|
+
The destination's HTTP status as an integer when its answer was
|
|
11207
|
+
the failure: the error status it answered (`400`, `404`, `418`),
|
|
11208
|
+
or `200` when the import's `failPath` rules matched a `200`
|
|
11209
|
+
answer. Otherwise the adaptor's error code as a string:
|
|
11210
|
+
`response_failure` when a `200` answer did not meet the
|
|
11211
|
+
import's `successPath` rules, `handlebars_template_parse_error`
|
|
11212
|
+
for a request that could not be built.
|
|
11182
11213
|
message:
|
|
11183
11214
|
type: string
|
|
11184
11215
|
resolved:
|
|
@@ -11222,6 +11253,10 @@ components:
|
|
|
11222
11253
|
`invalid_adaptor`. A record the input filter excludes comes back
|
|
11223
11254
|
`{ignored: true, stage: "inputFilter"}` and was never sent; omitting `import` or `data` is a
|
|
11224
11255
|
`400 invalid_request` in the bare error array `POST /v1/connections/{_id}/import` returns.
|
|
11256
|
+
- |-
|
|
11257
|
+
A NetSuite document with `ignoreExisting` whose lookup finds the record answers
|
|
11258
|
+
`{statusCode: 200, id, _json: {id}, ignored: true}` with no `stage`: the destination was
|
|
11259
|
+
searched, nothing was written, and `id` is the internal id of the record found.
|
|
11225
11260
|
required:
|
|
11226
11261
|
- import
|
|
11227
11262
|
- data
|
package/dist/export.yml
CHANGED
|
@@ -17041,12 +17041,13 @@ components:
|
|
|
17041
17041
|
|
|
17042
17042
|
**Usage**
|
|
17043
17043
|
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
lookup
|
|
17048
|
-
|
|
17049
|
-
|
|
17044
|
+
integrator.io substitutes this mock output for the export's live response, instead of
|
|
17045
|
+
calling the source, in a test run of the flow, API or Tool that holds the export, and in a
|
|
17046
|
+
page-processor preview (`previewPageProcessor`) for the flow's source export and for a
|
|
17047
|
+
lookup upstream of the previewed step. That preview carries only the first record of a
|
|
17048
|
+
source export's mock. A target lookup in the preview runs its live query, invoking the
|
|
17049
|
+
export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
|
|
17050
|
+
This allows you to:
|
|
17050
17051
|
- Test mappings with representative data
|
|
17051
17052
|
- Configure downstream flow steps without waiting for real data
|
|
17052
17053
|
- Simulate various data scenarios
|
|
@@ -17084,9 +17085,14 @@ components:
|
|
|
17084
17085
|
what a lookup returns, apply the transform first; a results mapping authored against
|
|
17085
17086
|
the stored shape walks paths that do not exist at runtime.
|
|
17086
17087
|
- |-
|
|
17087
|
-
A saved mockOutput is read in
|
|
17088
|
-
|
|
17089
|
-
|
|
17088
|
+
A saved mockOutput is read in a test run (flow, API or Tool) and in a page-processor
|
|
17089
|
+
preview, there for the flow's source export and for a lookup upstream of the previewed
|
|
17090
|
+
step. A target lookup's preview, `POST /v1/exports/{_id}/invoke` and every real run call
|
|
17091
|
+
the source and never read it.
|
|
17092
|
+
- |-
|
|
17093
|
+
A page-processor preview follows only the first record of a source export's mockOutput,
|
|
17094
|
+
while a test run takes the whole page. On an export with an output `filter`, put a record
|
|
17095
|
+
the filter keeps first, so a preview of a later step has a record to follow.
|
|
17090
17096
|
properties:
|
|
17091
17097
|
page_of_records:
|
|
17092
17098
|
type: array
|
package/dist/flow.yml
CHANGED
|
@@ -4524,9 +4524,15 @@ paths:
|
|
|
4524
4524
|
(`POST /v1/connections/{_id}/import`). No options flag returns the
|
|
4525
4525
|
arriving record for any adaptor without touching the target.
|
|
4526
4526
|
|
|
4527
|
-
Upstream behavior: the source export executes live
|
|
4528
|
-
|
|
4529
|
-
|
|
4527
|
+
Upstream behavior: the source export executes live unless its doc
|
|
4528
|
+
carries `mockOutput`, which stands in for the read. Either way the
|
|
4529
|
+
preview follows one record — the first record of that page — through
|
|
4530
|
+
the source's transform, output filter and preSavePage hook and on
|
|
4531
|
+
through the flow. A flow test run (`testRunFlow`) takes the whole first
|
|
4532
|
+
page through the same steps, so this preview shows only that first
|
|
4533
|
+
record's journey and can lack, or differ from, what a test run delivers
|
|
4534
|
+
to a step. Router branch filters and step input filters gate the
|
|
4535
|
+
record; upstream lookups execute live unless a
|
|
4530
4536
|
saved `mockOutput` is present (a saved mock always wins); upstream
|
|
4531
4537
|
imports are NEVER executed — each substitutes its saved `mockResponse`,
|
|
4532
4538
|
or a platform placeholder when none is saved, before its response
|
|
@@ -4647,6 +4653,10 @@ paths:
|
|
|
4647
4653
|
- An HTTP status as `code` with `source: application` and no `stage`
|
|
4648
4654
|
— the source export got that error status; the `request` and `raw`
|
|
4649
4655
|
stages come back beside `errors`.
|
|
4656
|
+
- `script_error` with `source` naming an upstream hook
|
|
4657
|
+
(`pre_save_page_hook` for the source export's preSavePage hook,
|
|
4658
|
+
`post_response_map_hook` for a step's postResponseMap hook) — that
|
|
4659
|
+
hook threw, and nothing reached the target.
|
|
4650
4660
|
- `handlebars_template_parse_error` — a target template doesn't
|
|
4651
4661
|
compile. It carries `source: application` and `stage: apiCall`
|
|
4652
4662
|
although nothing was sent.
|
|
@@ -5189,7 +5199,9 @@ components:
|
|
|
5189
5199
|
`errors` mapped: a record failed by `failPath` on a 200 echo body reached the next
|
|
5190
5200
|
router carrying `statusCode` 422, `errors` and the `id` read from that body; records
|
|
5191
5201
|
answered a real 404 carried `statusCode` 422 and `errors` and no `id`; written records
|
|
5192
|
-
carried
|
|
5202
|
+
carried `statusCode` 200 and no `errors`. That 200 is the platform's verdict as well:
|
|
5203
|
+
in a flow run on 2026-11-13, imports whose destinations answered 201 and 204 each
|
|
5204
|
+
mapped `statusCode` 200. So a router after
|
|
5193
5205
|
the step picks out the failed records with a rule on the mapped `statusCode` equal to
|
|
5194
5206
|
422 (or `errors` not empty) and lets every other record take the other branch —
|
|
5195
5207
|
written records, and records the import's input filter skipped, which continue without
|
|
@@ -9344,6 +9356,12 @@ components:
|
|
|
9344
9356
|
A `422` whose `errors[]` carry `source: application` and `stage: apiCall` after
|
|
9345
9357
|
`sendAndPreview` means the request DID execute and the target's `failPath` rules judged the
|
|
9346
9358
|
destination's answer a failure — a completed send, not a request-validation error.
|
|
9359
|
+
- |-
|
|
9360
|
+
The preview follows one record — the first record of the source export's page (its doc's
|
|
9361
|
+
`mockOutput` when present, else a live read). A flow test run (`testRunFlow`) takes the
|
|
9362
|
+
whole first page through the same steps, so read what reaches a step from a test run. To
|
|
9363
|
+
preview a step with a record that reaches it, put that record first in the source's
|
|
9364
|
+
`mockOutput`.
|
|
9347
9365
|
properties:
|
|
9348
9366
|
flow:
|
|
9349
9367
|
type: object
|
package/dist/import.yml
CHANGED
|
@@ -641,8 +641,7 @@ paths:
|
|
|
641
641
|
'200':
|
|
642
642
|
description: |-
|
|
643
643
|
Import completed. One result per input record, in input order —
|
|
644
|
-
accepted, failed at the destination, or ignored by the import
|
|
645
|
-
input filter.
|
|
644
|
+
accepted, failed at the destination, or ignored by the import itself.
|
|
646
645
|
content:
|
|
647
646
|
application/json:
|
|
648
647
|
schema:
|
|
@@ -660,18 +659,60 @@ paths:
|
|
|
660
659
|
_headers:
|
|
661
660
|
content-type: application/json; charset=utf-8
|
|
662
661
|
destination_error:
|
|
663
|
-
summary:
|
|
662
|
+
summary: The destination answers HTTP 400 with no body — its status is errors[].code
|
|
664
663
|
value:
|
|
665
664
|
- statusCode: 422
|
|
666
665
|
_json: {}
|
|
666
|
+
errors:
|
|
667
|
+
- source: application
|
|
668
|
+
code: 400
|
|
669
|
+
message: Bad Request
|
|
670
|
+
resolved: false
|
|
671
|
+
occurredAt: 1794545289277
|
|
672
|
+
stage: apiCall
|
|
673
|
+
classification: intermittent
|
|
674
|
+
success_path_not_met:
|
|
675
|
+
summary: The destination answers HTTP 200, but not with the value the import's successPath rule requires
|
|
676
|
+
value:
|
|
677
|
+
- statusCode: 422
|
|
678
|
+
_json:
|
|
679
|
+
Content-Length: '84'
|
|
680
|
+
Content-Type: application/json
|
|
681
|
+
ok: 'false'
|
|
667
682
|
errors:
|
|
668
683
|
- source: application
|
|
669
684
|
code: response_failure
|
|
670
|
-
message:
|
|
685
|
+
message: |
|
|
686
|
+
response failed using path: "ok". Value found: "false". Response body: {
|
|
687
|
+
"Content-Length": "84",
|
|
688
|
+
"Content-Type": "application/json",
|
|
689
|
+
"ok": "false"
|
|
690
|
+
}
|
|
671
691
|
resolved: false
|
|
672
|
-
occurredAt:
|
|
692
|
+
occurredAt: 1794545287674
|
|
673
693
|
stage: apiCall
|
|
674
694
|
classification: value
|
|
695
|
+
fail_path_matched:
|
|
696
|
+
summary: The destination answers HTTP 200 with a value the import's failPath rule names — errors[].code is 200
|
|
697
|
+
value:
|
|
698
|
+
- statusCode: 422
|
|
699
|
+
_json:
|
|
700
|
+
Content-Length: '84'
|
|
701
|
+
Content-Type: application/json
|
|
702
|
+
ok: 'false'
|
|
703
|
+
errors:
|
|
704
|
+
- code: 200
|
|
705
|
+
source: application
|
|
706
|
+
message: |
|
|
707
|
+
{
|
|
708
|
+
"Content-Length": "84",
|
|
709
|
+
"Content-Type": "application/json",
|
|
710
|
+
"ok": "false"
|
|
711
|
+
}
|
|
712
|
+
resolved: false
|
|
713
|
+
occurredAt: 1794545288511
|
|
714
|
+
stage: apiCall
|
|
715
|
+
classification: none
|
|
675
716
|
ignored_by_input_filter:
|
|
676
717
|
summary: Record excluded by the import's input filter — nothing sent
|
|
677
718
|
value:
|
|
@@ -18157,10 +18198,12 @@ components:
|
|
|
18157
18198
|
Hook that runs after the destination system responds, with access to both the
|
|
18158
18199
|
submitted records and the destination's responses. Commonly used to inspect results
|
|
18159
18200
|
or adjust the response data passed downstream. Each `options.responseData` entry is
|
|
18160
|
-
one submitted record's result, in order: `statusCode
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18201
|
+
one submitted record's result, in order: `statusCode` (the import's verdict on the
|
|
18202
|
+
record — 200 written, 422 failed — not the destination's HTTP status), `errors`
|
|
18203
|
+
(`{code, message, source}`, empty on a written record; on a failed one `errors[0]`
|
|
18204
|
+
holds the failure's detail), `ignored`, `id`, and `_json` — the destination's response
|
|
18205
|
+
body, parsed: `{}` when it sent none, the raw text when the body is not JSON. A
|
|
18206
|
+
written record's entry also carries `_headers`, the response headers.
|
|
18164
18207
|
x-celigo-ai-guidance:
|
|
18165
18208
|
- |-
|
|
18166
18209
|
Post-submit JavaScript hook — runs AFTER each batch of
|
|
@@ -18173,6 +18216,51 @@ components:
|
|
|
18173
18216
|
response, whose envelope carries the mock's id, such as
|
|
18174
18217
|
``1234567890``) → array of the same length, typically mutated
|
|
18175
18218
|
to annotate or augment per-record errors.
|
|
18219
|
+
- |-
|
|
18220
|
+
`statusCode` is the import's verdict, not the HTTP status the
|
|
18221
|
+
destination answered: 200 on the entry of a record the import
|
|
18222
|
+
counts as written, 422 on the entry of a record it counts as
|
|
18223
|
+
failed. Verified live 2026-11-13 with a hook that reported its
|
|
18224
|
+
input: destination answers 200, 201, 202 and 204 each arrived
|
|
18225
|
+
as `statusCode` 200 with `errors` empty; answers 400, 404, 409,
|
|
18226
|
+
418 and 500 each arrived as `statusCode` 422. The Help Center's
|
|
18227
|
+
postSubmit stub documents a third value that run did not
|
|
18228
|
+
produce: 403, "the connection went offline".
|
|
18229
|
+
- |-
|
|
18230
|
+
What `errors[0]` of a failed entry carried in that run, by
|
|
18231
|
+
cause. The destination answered 400, 404, 409, 418 or 500:
|
|
18232
|
+
`code` is that status as a number and `message` the raw
|
|
18233
|
+
response body, or the status text ("Bad Request") when the body
|
|
18234
|
+
is empty. A 200 answer matched the import's
|
|
18235
|
+
`http.response.failPath`: `code` is 200 (a number) and
|
|
18236
|
+
`message` the raw body. A 200 answer did not meet
|
|
18237
|
+
`http.response.successPath`: `code` is the string
|
|
18238
|
+
`response_failure` and `message` starts "response failed using
|
|
18239
|
+
path". The request URL template could not be rendered, so
|
|
18240
|
+
nothing was sent: `code` is the string
|
|
18241
|
+
`handlebars_template_parse_error`. Read `errors[0].code` as the
|
|
18242
|
+
destination's status only when it is a number.
|
|
18243
|
+
- |-
|
|
18244
|
+
Each failed entry in that run — one per cause above — had the
|
|
18245
|
+
keys `_json`, `errors` and `statusCode` and no `_headers`; each
|
|
18246
|
+
written entry had `_headers`. A written entry does not carry
|
|
18247
|
+
the destination's status anywhere, so a hook cannot tell a 204
|
|
18248
|
+
from a 200 by status: tell written answers apart by what they
|
|
18249
|
+
carry in `_json` or `_headers`.
|
|
18250
|
+
- |-
|
|
18251
|
+
Test `statusCode` against 200 for "written", never against a
|
|
18252
|
+
status the destination sends. With the entries of that run a
|
|
18253
|
+
test such as `statusCode !== 204` holds for every written
|
|
18254
|
+
record, so a hook that raises an error on it fails all of them,
|
|
18255
|
+
and a test such as `statusCode === 400` never holds, so a hook
|
|
18256
|
+
that handles a refused record on it does nothing: read a failed
|
|
18257
|
+
record's destination status from `errors[0].code`.
|
|
18258
|
+
- |-
|
|
18259
|
+
`_json` is `{}` when the answer has no body, the raw text when
|
|
18260
|
+
the body is not JSON (the 418 answer had a plain-text body) and
|
|
18261
|
+
the parsed body otherwise, on failed entries too (the
|
|
18262
|
+
`failPath` and `successPath` failures above), so check its type
|
|
18263
|
+
before reading fields from it.
|
|
18176
18264
|
- |-
|
|
18177
18265
|
An error this hook raises is stored at retry stage
|
|
18178
18266
|
`page_processor_import`, like the import's own errors: a retry
|
|
@@ -19139,43 +19227,70 @@ components:
|
|
|
19139
19227
|
per record, in input order — shared by `POST /v1/imports/{_id}/invoke`,
|
|
19140
19228
|
the virtual import `POST /v1/connections/{_id}/import` and its
|
|
19141
19229
|
integration-scoped forms. A record the
|
|
19142
|
-
import itself
|
|
19143
|
-
|
|
19144
|
-
parsed response; a record the destination
|
|
19230
|
+
import itself skipped carries `ignored: true`, with the `stage` that
|
|
19231
|
+
dropped it when the platform reports one; a record the destination
|
|
19232
|
+
accepted carries its parsed response; a record the destination
|
|
19233
|
+
rejected — or that the
|
|
19145
19234
|
import's `failPath` / `failValues` rules judged a failure even on a
|
|
19146
19235
|
`2xx` — carries `errors[]`.
|
|
19147
19236
|
properties:
|
|
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
|
-
the record that was sent. `{}` when the
|
|
19161
|
-
destination returned no
|
|
19162
|
-
|
|
19252
|
+
the record that was sent. `{}` when the import's input filter
|
|
19253
|
+
ignored the record or the destination returned no body; the raw
|
|
19254
|
+
text, as a string, when the body is not JSON. A failed record
|
|
19255
|
+
carries it too.
|
|
19256
|
+
oneOf:
|
|
19257
|
+
- type: object
|
|
19258
|
+
additionalProperties: true
|
|
19259
|
+
- type: string
|
|
19163
19260
|
_headers:
|
|
19164
19261
|
type: object
|
|
19165
|
-
description:
|
|
19262
|
+
description: |-
|
|
19263
|
+
Response headers the destination returned for the record. Present
|
|
19264
|
+
when the destination accepted the record; the failed results probed
|
|
19265
|
+
— an error status, a `failPath` match, a `successPath` miss, a
|
|
19266
|
+
request that could not be built — carried none.
|
|
19166
19267
|
additionalProperties: true
|
|
19167
19268
|
ignored:
|
|
19168
19269
|
type: boolean
|
|
19169
19270
|
description: |-
|
|
19170
|
-
When true, the import
|
|
19171
|
-
|
|
19271
|
+
When true, the import skipped the record and wrote nothing to the
|
|
19272
|
+
destination. A record its own input filter excluded carries
|
|
19273
|
+
`stage: inputFilter`, and no request was made for it. A NetSuite
|
|
19274
|
+
import with `ignoreExisting` whose lookup finds the record carries
|
|
19275
|
+
no `stage`: the destination was searched, and `id` and `_json.id`
|
|
19276
|
+
hold the internal id of the record the search found.
|
|
19172
19277
|
stage:
|
|
19173
19278
|
type: string
|
|
19174
19279
|
description: |-
|
|
19175
19280
|
The import stage that ignored the record — `inputFilter` when the
|
|
19176
|
-
import's own input filter excluded it. Present only with `ignored
|
|
19281
|
+
import's own input filter excluded it. Present only with `ignored`,
|
|
19282
|
+
and not on every ignored record.
|
|
19177
19283
|
examples:
|
|
19178
19284
|
- inputFilter
|
|
19285
|
+
id:
|
|
19286
|
+
type:
|
|
19287
|
+
- string
|
|
19288
|
+
- integer
|
|
19289
|
+
description: |-
|
|
19290
|
+
Identifier the import reports for the record; many results carry
|
|
19291
|
+
none. On a record a NetSuite import ignored because its
|
|
19292
|
+
`ignoreExisting` lookup found it, this is the internal id of the
|
|
19293
|
+
existing record the lookup found — the same value as `_json.id`.
|
|
19179
19294
|
errors:
|
|
19180
19295
|
type: array
|
|
19181
19296
|
description: |-
|
|
@@ -19196,9 +19311,13 @@ components:
|
|
|
19196
19311
|
- type: string
|
|
19197
19312
|
- type: integer
|
|
19198
19313
|
description: |-
|
|
19199
|
-
The
|
|
19200
|
-
|
|
19201
|
-
|
|
19314
|
+
The destination's HTTP status as an integer when its answer was
|
|
19315
|
+
the failure: the error status it answered (`400`, `404`, `418`),
|
|
19316
|
+
or `200` when the import's `failPath` rules matched a `200`
|
|
19317
|
+
answer. Otherwise the adaptor's error code as a string:
|
|
19318
|
+
`response_failure` when a `200` answer did not meet the
|
|
19319
|
+
import's `successPath` rules, `handlebars_template_parse_error`
|
|
19320
|
+
for a request that could not be built.
|
|
19202
19321
|
message:
|
|
19203
19322
|
type: string
|
|
19204
19323
|
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
|
|
@@ -39875,12 +39922,13 @@ components:
|
|
|
39875
39922
|
|
|
39876
39923
|
**Usage**
|
|
39877
39924
|
|
|
39878
|
-
|
|
39879
|
-
|
|
39880
|
-
|
|
39881
|
-
lookup
|
|
39882
|
-
|
|
39883
|
-
|
|
39925
|
+
integrator.io substitutes this mock output for the export's live response, instead of
|
|
39926
|
+
calling the source, in a test run of the flow, API or Tool that holds the export, and in a
|
|
39927
|
+
page-processor preview (`previewPageProcessor`) for the flow's source export and for a
|
|
39928
|
+
lookup upstream of the previewed step. That preview carries only the first record of a
|
|
39929
|
+
source export's mock. A target lookup in the preview runs its live query, invoking the
|
|
39930
|
+
export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
|
|
39931
|
+
This allows you to:
|
|
39884
39932
|
- Test mappings with representative data
|
|
39885
39933
|
- Configure downstream flow steps without waiting for real data
|
|
39886
39934
|
- Simulate various data scenarios
|
|
@@ -39918,9 +39966,14 @@ components:
|
|
|
39918
39966
|
what a lookup returns, apply the transform first; a results mapping authored against
|
|
39919
39967
|
the stored shape walks paths that do not exist at runtime.
|
|
39920
39968
|
- |-
|
|
39921
|
-
A saved mockOutput is read in
|
|
39922
|
-
|
|
39923
|
-
|
|
39969
|
+
A saved mockOutput is read in a test run (flow, API or Tool) and in a page-processor
|
|
39970
|
+
preview, there for the flow's source export and for a lookup upstream of the previewed
|
|
39971
|
+
step. A target lookup's preview, `POST /v1/exports/{_id}/invoke` and every real run call
|
|
39972
|
+
the source and never read it.
|
|
39973
|
+
- |-
|
|
39974
|
+
A page-processor preview follows only the first record of a source export's mockOutput,
|
|
39975
|
+
while a test run takes the whole page. On an export with an output `filter`, put a record
|
|
39976
|
+
the filter keeps first, so a preview of a later step has a record to follow.
|
|
39924
39977
|
properties:
|
|
39925
39978
|
page_of_records:
|
|
39926
39979
|
type: array
|
package/package.json
CHANGED