@celigo/api-specs 0.2.296 → 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 +33 -13
- package/dist/export.yml +15 -9
- package/dist/flow.yml +19 -3
- package/dist/import.yml +26 -11
- package/dist/tool.yml +15 -9
- 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,9 +11119,10 @@ 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:
|
|
@@ -11140,9 +11141,10 @@ components:
|
|
|
11140
11141
|
description: |-
|
|
11141
11142
|
The destination's response body for the record, parsed — the slice
|
|
11142
11143
|
under the import's `response.resourcePath` when one is defined — not
|
|
11143
|
-
the record that was sent. `{}` when the
|
|
11144
|
-
destination returned no body; the raw
|
|
11145
|
-
body is not JSON. A failed record
|
|
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.
|
|
11146
11148
|
oneOf:
|
|
11147
11149
|
- type: object
|
|
11148
11150
|
additionalProperties: true
|
|
@@ -11158,15 +11160,29 @@ components:
|
|
|
11158
11160
|
ignored:
|
|
11159
11161
|
type: boolean
|
|
11160
11162
|
description: |-
|
|
11161
|
-
When true, the import
|
|
11162
|
-
|
|
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.
|
|
11163
11169
|
stage:
|
|
11164
11170
|
type: string
|
|
11165
11171
|
description: |-
|
|
11166
11172
|
The import stage that ignored the record — `inputFilter` when the
|
|
11167
|
-
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.
|
|
11168
11175
|
examples:
|
|
11169
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`.
|
|
11170
11186
|
errors:
|
|
11171
11187
|
type: array
|
|
11172
11188
|
description: |-
|
|
@@ -11237,6 +11253,10 @@ components:
|
|
|
11237
11253
|
`invalid_adaptor`. A record the input filter excludes comes back
|
|
11238
11254
|
`{ignored: true, stage: "inputFilter"}` and was never sent; omitting `import` or `data` is a
|
|
11239
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.
|
|
11240
11260
|
required:
|
|
11241
11261
|
- import
|
|
11242
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.
|
|
@@ -9346,6 +9356,12 @@ components:
|
|
|
9346
9356
|
A `422` whose `errors[]` carry `source: application` and `stage: apiCall` after
|
|
9347
9357
|
`sendAndPreview` means the request DID execute and the target's `failPath` rules judged the
|
|
9348
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`.
|
|
9349
9365
|
properties:
|
|
9350
9366
|
flow:
|
|
9351
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:
|
|
@@ -19228,9 +19227,10 @@ components:
|
|
|
19228
19227
|
per record, in input order — shared by `POST /v1/imports/{_id}/invoke`,
|
|
19229
19228
|
the virtual import `POST /v1/connections/{_id}/import` and its
|
|
19230
19229
|
integration-scoped forms. A record the
|
|
19231
|
-
import itself
|
|
19232
|
-
|
|
19233
|
-
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
|
|
19234
19234
|
import's `failPath` / `failValues` rules judged a failure even on a
|
|
19235
19235
|
`2xx` — carries `errors[]`.
|
|
19236
19236
|
properties:
|
|
@@ -19249,9 +19249,10 @@ components:
|
|
|
19249
19249
|
description: |-
|
|
19250
19250
|
The destination's response body for the record, parsed — the slice
|
|
19251
19251
|
under the import's `response.resourcePath` when one is defined — not
|
|
19252
|
-
the record that was sent. `{}` when the
|
|
19253
|
-
destination returned no body; the raw
|
|
19254
|
-
body is not JSON. A failed record
|
|
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.
|
|
19255
19256
|
oneOf:
|
|
19256
19257
|
- type: object
|
|
19257
19258
|
additionalProperties: true
|
|
@@ -19267,15 +19268,29 @@ components:
|
|
|
19267
19268
|
ignored:
|
|
19268
19269
|
type: boolean
|
|
19269
19270
|
description: |-
|
|
19270
|
-
When true, the import
|
|
19271
|
-
|
|
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.
|
|
19272
19277
|
stage:
|
|
19273
19278
|
type: string
|
|
19274
19279
|
description: |-
|
|
19275
19280
|
The import stage that ignored the record — `inputFilter` when the
|
|
19276
|
-
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.
|
|
19277
19283
|
examples:
|
|
19278
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`.
|
|
19279
19294
|
errors:
|
|
19280
19295
|
type: array
|
|
19281
19296
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -39922,12 +39922,13 @@ components:
|
|
|
39922
39922
|
|
|
39923
39923
|
**Usage**
|
|
39924
39924
|
|
|
39925
|
-
|
|
39926
|
-
|
|
39927
|
-
|
|
39928
|
-
lookup
|
|
39929
|
-
|
|
39930
|
-
|
|
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:
|
|
39931
39932
|
- Test mappings with representative data
|
|
39932
39933
|
- Configure downstream flow steps without waiting for real data
|
|
39933
39934
|
- Simulate various data scenarios
|
|
@@ -39965,9 +39966,14 @@ components:
|
|
|
39965
39966
|
what a lookup returns, apply the transform first; a results mapping authored against
|
|
39966
39967
|
the stored shape walks paths that do not exist at runtime.
|
|
39967
39968
|
- |-
|
|
39968
|
-
A saved mockOutput is read in
|
|
39969
|
-
|
|
39970
|
-
|
|
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.
|
|
39971
39977
|
properties:
|
|
39972
39978
|
page_of_records:
|
|
39973
39979
|
type: array
|
package/package.json
CHANGED