@celigo/api-specs 0.2.352 → 0.2.354
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/api.yml +14 -2
- package/dist/export.yml +28 -7
- package/dist/flow.yml +84 -11
- package/dist/import.yml +21 -3
- package/dist/tool.yml +53 -11
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/api.yml
CHANGED
|
@@ -1800,7 +1800,10 @@ paths:
|
|
|
1800
1800
|
from the export to call the source again. Real calls to the API don't read it. Imports never
|
|
1801
1801
|
send; each returns its saved `mockResponse`, or a placeholder response when none is saved
|
|
1802
1802
|
(see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
1803
|
-
placeholder on it as its `mockResponse`.
|
|
1803
|
+
placeholder on it as its `mockResponse`. A step that calls a Tool (`ToolImport`) differs:
|
|
1804
|
+
the Tool runs inside the test run under these same rules and the step returns its output;
|
|
1805
|
+
the step's `mockResponse` is not read, though the placeholder is still saved on one that had
|
|
1806
|
+
none.
|
|
1804
1807
|
|
|
1805
1808
|
Test runs never paginate, whatever `pagination.enabled` says: the captured success
|
|
1806
1809
|
response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
|
|
@@ -6156,7 +6159,16 @@ components:
|
|
|
6156
6159
|
`{"id": "1234567890", "mockResponse": "replace me"}` (numbered
|
|
6157
6160
|
`1234567890-1`, `1234567890-2`, … when a page holds several records)
|
|
6158
6161
|
— an `extract: "id"` in a test run merges that mock id, never a
|
|
6159
|
-
destination record id.
|
|
6162
|
+
destination record id. A step that calls a Tool (`ToolImport`) is the
|
|
6163
|
+
exception: a test run runs the Tool, and the envelope is the Tool's
|
|
6164
|
+
output — under `_json` and again at the root, with no `id`,
|
|
6165
|
+
`statusCode`, `errors` or `ignored` — not the step's `mockResponse`.
|
|
6166
|
+
Only a page-processor preview (`previewPageProcessor`) of a later
|
|
6167
|
+
step reads that `mockResponse`, as saved and without copying its
|
|
6168
|
+
`_json` fields to the root: over a mock that holds the Tool's output
|
|
6169
|
+
under `_json` alone, `_json.<path>` finds its value and a root
|
|
6170
|
+
`<path>` finds nothing. Write a `ToolImport` step's extracts as
|
|
6171
|
+
`_json.<path>`, which both read (live, 2026-11-27).
|
|
6160
6172
|
|
|
6161
6173
|
An `extract` may also be a Handlebars expression. It evaluates against
|
|
6162
6174
|
the same envelope as a plain path, so every path inside `{{ }}` starts
|
package/dist/export.yml
CHANGED
|
@@ -10586,7 +10586,8 @@ components:
|
|
|
10586
10586
|
|
|
10587
10587
|
**Delta exports (type: "delta")**
|
|
10588
10588
|
For delta/incremental exports, do NOT populate a `delta` object inside `jdbc`.
|
|
10589
|
-
Instead,
|
|
10589
|
+
Instead, reference `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the query's
|
|
10590
|
+
WHERE clause, written as a comparison the database accepts for a date column (see `query`):
|
|
10590
10591
|
```json
|
|
10591
10592
|
{
|
|
10592
10593
|
"type": "delta",
|
|
@@ -10648,6 +10649,12 @@ components:
|
|
|
10648
10649
|
SQL SELECT statement executed to retrieve data, from simple table selections to joins and
|
|
10649
10650
|
aggregations. For delta exports, include {{lastExportDateTime}}/{{currentExportDateTime}}
|
|
10650
10651
|
in the WHERE clause rather than configuring a separate delta object.
|
|
10652
|
+
|
|
10653
|
+
Double braces render each delta variable as a single-quoted string, so add no quotes of
|
|
10654
|
+
your own; a database that converts that string to a date itself takes the bare comparison
|
|
10655
|
+
(`updatedAt > {{lastExportDateTime}}`). NetSuite JDBC does not, so on a `netsuitejdbc`
|
|
10656
|
+
connection format the variable with `dateFormat` and convert the result in the query:
|
|
10657
|
+
`lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')`.
|
|
10651
10658
|
x-celigo-ai-guidance:
|
|
10652
10659
|
- |-
|
|
10653
10660
|
This field contains the SQL SELECT statement that will be executed to fetch data
|
|
@@ -10661,15 +10668,22 @@ components:
|
|
|
10661
10668
|
- Parameterized: `SELECT * FROM orders WHERE customer_id = {{record.customer_id}}`
|
|
10662
10669
|
- |-
|
|
10663
10670
|
## FOR DELTA EXPORTS (when top-level type is "delta")
|
|
10664
|
-
Include `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the WHERE clause
|
|
10671
|
+
Include `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the WHERE clause. On a
|
|
10672
|
+
database that converts the quoted string to a date itself:
|
|
10665
10673
|
- `SELECT * FROM customers WHERE updatedAt > {{lastExportDateTime}}`
|
|
10666
10674
|
- `SELECT * FROM orders WHERE modified_date >= {{lastExportDateTime}}`
|
|
10675
|
+
- |-
|
|
10676
|
+
On a NetSuite JDBC connection (`jdbc.type` is `netsuitejdbc`) never compare a date column
|
|
10677
|
+
to the bare variable: the driver fails the query with
|
|
10678
|
+
"Error getting the literal value of right operand" (10169). Convert it, formatted first:
|
|
10679
|
+
`SELECT id, tranid, lastmodifieddate FROM transaction WHERE lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')`.
|
|
10667
10680
|
- |-
|
|
10668
10681
|
This field contains the SQL SELECT statement that will be executed to fetch data
|
|
10669
10682
|
from the database.
|
|
10670
10683
|
The query can range from simple table selections to complex joins and aggregations.
|
|
10671
10684
|
examples:
|
|
10672
10685
|
- SELECT * FROM customers WHERE updatedAt > {{lastExportDateTime}}
|
|
10686
|
+
- SELECT id, tranid, lastmodifieddate FROM transaction WHERE lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')
|
|
10673
10687
|
- SELECT * FROM orders WHERE exported = false
|
|
10674
10688
|
- SELECT * FROM customers WHERE region = 'Northeast'
|
|
10675
10689
|
- SELECT o.id, c.name, o.total FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = 'SHIPPED'
|
|
@@ -17600,11 +17614,18 @@ components:
|
|
|
17600
17614
|
`totalResults`. SuiteQL column names are the Records Catalog names (lowercase, e.g.
|
|
17601
17615
|
`entityid`, `lastmodifieddate`), not the REST record field names.
|
|
17602
17616
|
- |-
|
|
17603
|
-
For incremental runs set `type: delta
|
|
17604
|
-
`WHERE` clause (or the record endpoint's `q` parameter)
|
|
17605
|
-
|
|
17606
|
-
|
|
17607
|
-
|
|
17617
|
+
For incremental runs set `type: delta` and embed `{{lastExportDateTime}}` in the SuiteQL
|
|
17618
|
+
`WHERE` clause (or the record endpoint's `q` parameter). SuiteQL returns and compares
|
|
17619
|
+
`lastmodifieddate` as wall-clock time in the session's time zone (`SELECT SESSIONTIMEZONE
|
|
17620
|
+
FROM dual` names it), so give the bound its own UTC offset, the helper's arguments
|
|
17621
|
+
single-quoted because the query sits inside the JSON body:
|
|
17622
|
+
`lastmodifieddate >= TO_TIMESTAMP_TZ('{{dateFormat 'YYYY-MM-DD HH:mm:ss Z' lastExportDateTime}}', 'YYYY-MM-DD HH24:MI:SS TZH:TZM')`.
|
|
17623
|
+
A UTC text compared as it stands — `to_char(lastmodifieddate,'YYYY-MM-DD HH24:MI:SS') >= '{{lastExportDateTime}}'`
|
|
17624
|
+
with `delta.dateFormat: "YYYY-MM-DD HH:mm:ss"` — leaves out a record changed after the
|
|
17625
|
+
bound when the session's zone is behind UTC.
|
|
17626
|
+
- |-
|
|
17627
|
+
A preview renders `{{lastExportDateTime}}` only from the request's `postData`; without it
|
|
17628
|
+
the placeholder is empty, so the preview does not reflect the delta window.
|
|
17608
17629
|
- |-
|
|
17609
17630
|
NetSuite must have the REST Web Services feature enabled (Setup > Company > Enable
|
|
17610
17631
|
Features > SuiteCloud); otherwise every SuiteTalk call fails with NetSuite 403
|
package/dist/flow.yml
CHANGED
|
@@ -4111,7 +4111,8 @@ paths:
|
|
|
4111
4111
|
|
|
4112
4112
|
A test run does not call every application its steps name. An export with a
|
|
4113
4113
|
saved `mockOutput` — the page generator or a lookup — answers from it and is
|
|
4114
|
-
not called; one with none is read from its application. Imports never send
|
|
4114
|
+
not called; one with none is read from its application. Imports never send — a step that
|
|
4115
|
+
calls a Tool runs it, and the Tool's own imports do not send either.
|
|
4115
4116
|
For an HTTP export, `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` shows
|
|
4116
4117
|
which it did.
|
|
4117
4118
|
|
|
@@ -4137,7 +4138,12 @@ paths:
|
|
|
4137
4138
|
from the saved records instead of calling the application; remove `mockOutput` from the
|
|
4138
4139
|
export to read the application again. An import returns its saved `mockResponse`, or a
|
|
4139
4140
|
placeholder response when none is saved (see `mockResponse` on imports), and a run saves that
|
|
4140
|
-
placeholder on an import that had none.
|
|
4141
|
+
placeholder on an import that had none. A step that calls a Tool (`ToolImport`) differs: the
|
|
4142
|
+
Tool runs inside the test run under these same rules — its lookups answer from a saved
|
|
4143
|
+
`mockOutput` or read their application, its imports are not sent — and the step returns the
|
|
4144
|
+
Tool's output; its `mockResponse` is not read, though the placeholder is still saved on one
|
|
4145
|
+
that had none. Its child job has `type: tool`, and the Tool's own steps are child jobs of
|
|
4146
|
+
the run too.
|
|
4141
4147
|
|
|
4142
4148
|
Test-run state is short-lived and ephemeral — capture the `runId` (the
|
|
4143
4149
|
`flowJob._id`) and read back any step detail soon after the run returns.
|
|
@@ -4373,7 +4379,9 @@ paths:
|
|
|
4373
4379
|
`exportMapping` — no request was sent, though both stages are recorded. A
|
|
4374
4380
|
NetSuite search or Salesforce SOQL export records `request` and `parse` only,
|
|
4375
4381
|
the same in both cases. An import's request is never sent: its `response`
|
|
4376
|
-
output carries its `mockResponse` status, 200 for the placeholder.
|
|
4382
|
+
output carries its `mockResponse` status, 200 for the placeholder. A step
|
|
4383
|
+
that calls a Tool records no `response` stage: the Tool ran, and the input
|
|
4384
|
+
of the step's `responseMap` stage is the Tool's output.
|
|
4377
4385
|
items:
|
|
4378
4386
|
type: object
|
|
4379
4387
|
description: One stage of the step.
|
|
@@ -4850,7 +4858,8 @@ paths:
|
|
|
4850
4858
|
without sending; `{sendAndPreview: true}` (the import editor's "Send"
|
|
4851
4859
|
button) executes it against the live destination — a real write — and
|
|
4852
4860
|
stops at the parsed response (the target's postSubmit hook does not
|
|
4853
|
-
run). Both composing modes serve HTTP import targets
|
|
4861
|
+
run). Both composing modes serve HTTP import targets and a target that
|
|
4862
|
+
calls a Tool (`ToolImport`, below) only: a NetSuite,
|
|
4854
4863
|
Salesforce, RDBMS or FTP target answers `422 no_data_available` ("You
|
|
4855
4864
|
must add at least one mock input record…") whatever records the chain
|
|
4856
4865
|
delivers — the generic "no record reached the target", not a data
|
|
@@ -4870,9 +4879,22 @@ paths:
|
|
|
4870
4879
|
saved `mockOutput` is present (a saved mock always wins); upstream
|
|
4871
4880
|
imports are NEVER executed — each substitutes its saved `mockResponse`,
|
|
4872
4881
|
or a platform placeholder when none is saved, before its response
|
|
4873
|
-
mapping and postResponseMap hook run.
|
|
4882
|
+
mapping and postResponseMap hook run. An upstream step that calls a
|
|
4883
|
+
Tool (`ToolImport`) is such an import: the Tool is not run, so the
|
|
4884
|
+
steps after it see what the step's `mockResponse` gives its response
|
|
4885
|
+
mapping, where a test run sees the Tool's output. When an upstream
|
|
4886
|
+
step has no `_connectionId` and its flow entry carries
|
|
4887
|
+
`hooks.postResponseMap`, the preview of every later step fails (known
|
|
4888
|
+
issue IO-244591; `hooks.postResponseMap` on a flow's page processor
|
|
4889
|
+
describes it). A target LOOKUP executes its
|
|
4874
4890
|
live query even when it carries a saved `mockOutput` (the mock
|
|
4875
|
-
substitutes only upstream).
|
|
4891
|
+
substitutes only upstream). A target `ToolImport` returns the arriving
|
|
4892
|
+
record with no options flag; `{preview: true}` adds an `input` stage —
|
|
4893
|
+
the record mapped to the Tool's input — and runs nothing;
|
|
4894
|
+
`{sendAndPreview: true}` runs the Tool for real — its lookups read
|
|
4895
|
+
their application even when they carry a saved `mockOutput`, and its
|
|
4896
|
+
imports send — and returns `input` and `output` stages. When a target
|
|
4897
|
+
import's `failPath` rules
|
|
4876
4898
|
judge the destination's answer a failure, the response is `422` whose
|
|
4877
4899
|
`errors[]` carry `source: application` and `stage: apiCall` — the
|
|
4878
4900
|
request did execute. With `includeStages: false` the response is the
|
|
@@ -4908,8 +4930,9 @@ paths:
|
|
|
4908
4930
|
to get the stage-by-stage diagnostic array. No job is created and no
|
|
4909
4931
|
flow state changes; live calls are limited to the source export,
|
|
4910
4932
|
un-mocked upstream lookups, the target lookup, and — only under
|
|
4911
|
-
`sendAndPreview` — the target import
|
|
4912
|
-
|
|
4933
|
+
`sendAndPreview` — the target import (for a target `ToolImport`: the
|
|
4934
|
+
Tool's lookups read their application and the Tool's imports send).
|
|
4935
|
+
Upstream imports never call out.
|
|
4913
4936
|
requestBody:
|
|
4914
4937
|
required: true
|
|
4915
4938
|
content:
|
|
@@ -4996,7 +5019,8 @@ paths:
|
|
|
4996
5019
|
$ref: '#/components/responses/401-unauthorized'
|
|
4997
5020
|
'422':
|
|
4998
5021
|
description: |-
|
|
4999
|
-
The preview failed. Read `errors[].code` to tell the cases apart
|
|
5022
|
+
The preview failed. Read `errors[].code` to tell the cases apart
|
|
5023
|
+
(one case below can carry no `code` — match its `message`) —
|
|
5000
5024
|
`source: application` alone doesn't mean a request was sent:
|
|
5001
5025
|
- `no_data_available` with `source: integrator` — no record reached
|
|
5002
5026
|
the target in a composing mode (the target is a NetSuite,
|
|
@@ -5009,6 +5033,18 @@ paths:
|
|
|
5009
5033
|
(`pre_save_page_hook` for the source export's preSavePage hook,
|
|
5010
5034
|
`post_response_map_hook` for a step's postResponseMap hook) — that
|
|
5011
5035
|
hook threw, and nothing reached the target.
|
|
5036
|
+
- A `message` that begins `Cast to ObjectId failed` and names the
|
|
5037
|
+
`Connection` model — a step before the target has no `_connectionId`
|
|
5038
|
+
and carries a postResponseMap hook (known issue IO-244591;
|
|
5039
|
+
`hooks.postResponseMap` on a flow's page processor describes it);
|
|
5040
|
+
nothing reached the target. A flow without routers answers it as
|
|
5041
|
+
`unexpected_preview_error` with `source: internal`; a flow with
|
|
5042
|
+
routers answers a body of `statusCode: 422` and `errors` whose one
|
|
5043
|
+
entry carries the `message` alone, neither `code` nor `source` —
|
|
5044
|
+
match the message.
|
|
5045
|
+
- `invalid_canonical_form` on `field: mockResponse` — a target
|
|
5046
|
+
`ToolImport` under `{preview: true}` whose `mockResponse` is not in
|
|
5047
|
+
canonical form.
|
|
5012
5048
|
- `handlebars_template_parse_error` — a target template doesn't
|
|
5013
5049
|
compile. It carries `source: application` and `stage: apiCall`
|
|
5014
5050
|
although nothing was sent.
|
|
@@ -5060,6 +5096,19 @@ paths:
|
|
|
5060
5096
|
- code: 200
|
|
5061
5097
|
source: application
|
|
5062
5098
|
message: '{"args":{},"json":{"FirstName":"FAILME"}}'
|
|
5099
|
+
hookedStepWithoutConnection:
|
|
5100
|
+
summary: A step before the target has no connection and carries a postResponseMap hook (known issue IO-244591) — a flow without routers
|
|
5101
|
+
value:
|
|
5102
|
+
errors:
|
|
5103
|
+
- code: unexpected_preview_error
|
|
5104
|
+
source: internal
|
|
5105
|
+
message: 'Cast to ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for model "Connection"'
|
|
5106
|
+
hookedStepWithoutConnectionInAFlowWithRouters:
|
|
5107
|
+
summary: The same known issue (IO-244591) on a flow with routers — the error carries no code and no source
|
|
5108
|
+
description: 'The live body also carries `statusCode: 422` beside `errors`.'
|
|
5109
|
+
value:
|
|
5110
|
+
errors:
|
|
5111
|
+
- message: 'Cast to ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for model "Connection"'
|
|
5063
5112
|
/v1/flows/{_id}/dependencies:
|
|
5064
5113
|
get:
|
|
5065
5114
|
x-internal: false
|
|
@@ -5355,7 +5404,16 @@ components:
|
|
|
5355
5404
|
`{"id": "1234567890", "mockResponse": "replace me"}` (numbered
|
|
5356
5405
|
`1234567890-1`, `1234567890-2`, … when a page holds several records)
|
|
5357
5406
|
— an `extract: "id"` in a test run merges that mock id, never a
|
|
5358
|
-
destination record id.
|
|
5407
|
+
destination record id. A step that calls a Tool (`ToolImport`) is the
|
|
5408
|
+
exception: a test run runs the Tool, and the envelope is the Tool's
|
|
5409
|
+
output — under `_json` and again at the root, with no `id`,
|
|
5410
|
+
`statusCode`, `errors` or `ignored` — not the step's `mockResponse`.
|
|
5411
|
+
Only a page-processor preview (`previewPageProcessor`) of a later
|
|
5412
|
+
step reads that `mockResponse`, as saved and without copying its
|
|
5413
|
+
`_json` fields to the root: over a mock that holds the Tool's output
|
|
5414
|
+
under `_json` alone, `_json.<path>` finds its value and a root
|
|
5415
|
+
`<path>` finds nothing. Write a `ToolImport` step's extracts as
|
|
5416
|
+
`_json.<path>`, which both read (live, 2026-11-27).
|
|
5359
5417
|
|
|
5360
5418
|
An `extract` may also be a Handlebars expression. It evaluates against
|
|
5361
5419
|
the same envelope as a plain path, so every path inside `{{ }}` starts
|
|
@@ -5640,7 +5698,9 @@ components:
|
|
|
5640
5698
|
`recordId`. An error this hook raises is stored at
|
|
5641
5699
|
retry stage `post_response_mapping`: a retry runs the hook again on the saved record
|
|
5642
5700
|
(as response mapping left it) and the step's stored reply, without repeating the
|
|
5643
|
-
lookup or the destination request.
|
|
5701
|
+
lookup or the destination request. On a step that has no connection of its own, this
|
|
5702
|
+
hook makes later steps fail in the page-processor preview (known issue IO-244591,
|
|
5703
|
+
described in the guidance).
|
|
5644
5704
|
x-celigo-ai-guidance:
|
|
5645
5705
|
- |-
|
|
5646
5706
|
Verified live 2026-11-12 in flow runs with this hook on an HTTP lookup step and on
|
|
@@ -5690,6 +5750,19 @@ components:
|
|
|
5690
5750
|
no new request, and after the retry data was edited the retry passed the hook and
|
|
5691
5751
|
reached the next import; the same day a `preSavePage` error and a `successPath`
|
|
5692
5752
|
error on that lookup were each retried with a new lookup request and a fresh reply.
|
|
5753
|
+
- |-
|
|
5754
|
+
Known issue (IO-244591), until the fix is released: on a step that has no
|
|
5755
|
+
`_connectionId` — a step that calls a Tool (`ToolImport`), or an AI agent or
|
|
5756
|
+
guardrail step saved without a connection — this hook makes the page-processor
|
|
5757
|
+
preview (`previewPageProcessor`) of every later step answer 422
|
|
5758
|
+
`unexpected_preview_error` with `source: internal` and the message `Cast to
|
|
5759
|
+
ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for
|
|
5760
|
+
model "Connection"`, whatever the function does; with a hooked Tool step in a
|
|
5761
|
+
branch of a flow with `routers` the same message came back with no `code` and no
|
|
5762
|
+
`source`. The hooked step itself and the steps before it preview, and a flow test
|
|
5763
|
+
run and a real run run the hook and deliver the record, so read what reaches the
|
|
5764
|
+
later steps from a test run. The same hook on an HTTP import, which has a
|
|
5765
|
+
connection, did not cause it (live, 2026-11-27).
|
|
5693
5766
|
properties:
|
|
5694
5767
|
function:
|
|
5695
5768
|
type: string
|
package/dist/import.yml
CHANGED
|
@@ -18595,8 +18595,11 @@ components:
|
|
|
18595
18595
|
integrator.io canonical format — the server rejects any other shape with a 422.
|
|
18596
18596
|
x-celigo-ai-guidance:
|
|
18597
18597
|
- |-
|
|
18598
|
-
Flow
|
|
18599
|
-
|
|
18598
|
+
Flow-builder previews NEVER execute an upstream import, and flow
|
|
18599
|
+
test runs never execute an import other than one that calls a
|
|
18600
|
+
Tool (``ToolImport`` — a test run runs the Tool and does not read
|
|
18601
|
+
this field; last entry). Both substitute this mockResponse, or
|
|
18602
|
+
the platform placeholder
|
|
18600
18603
|
``{id: "1234567890", mockResponse: "replace me"}`` when none is
|
|
18601
18604
|
saved. With the placeholder, downstream response mappings extract
|
|
18602
18605
|
nothing real and downstream steps' sample panels go empty — the
|
|
@@ -18613,6 +18616,21 @@ components:
|
|
|
18613
18616
|
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
18614
18617
|
placeholder, not a response anyone authored — replace it with a
|
|
18615
18618
|
realistic one.
|
|
18619
|
+
- |-
|
|
18620
|
+
An import that calls a Tool (``ToolImport``) is the exception in
|
|
18621
|
+
test runs: a test run of a flow, Tool or API runs the Tool — its
|
|
18622
|
+
lookups answer from a saved ``mockOutput`` or read their
|
|
18623
|
+
application, its imports are not sent — and returns the Tool's
|
|
18624
|
+
output without reading this mockResponse, though it still saves
|
|
18625
|
+
the placeholder on a ``ToolImport`` that has none. Only the
|
|
18626
|
+
flow-builder preview reads a ``ToolImport``'s mockResponse, in
|
|
18627
|
+
place of the Tool's output, for the steps after it: to preview
|
|
18628
|
+
those steps with what the Tool returns, save
|
|
18629
|
+
``[{"statusCode": 200, "errors": [], "_json": <the Tool's
|
|
18630
|
+
output>}]`` here. The preview reads that mock as saved — a
|
|
18631
|
+
response-mapping extract written ``_json.<path>`` finds its
|
|
18632
|
+
value, a root path (``<path>``) finds nothing unless the mock
|
|
18633
|
+
repeats the field at its root (live, 2026-11-27).
|
|
18616
18634
|
items:
|
|
18617
18635
|
type: object
|
|
18618
18636
|
properties:
|
|
@@ -18854,7 +18872,7 @@ components:
|
|
|
18854
18872
|
description: |-
|
|
18855
18873
|
Sample destination response kept with the import for authoring its response mapping.
|
|
18856
18874
|
Flow test runs and previews don't read it; they substitute `mockResponse`, or a
|
|
18857
|
-
placeholder when none is saved.
|
|
18875
|
+
placeholder when none is saved (a test run of a `ToolImport` runs the Tool instead).
|
|
18858
18876
|
responseTransform:
|
|
18859
18877
|
x-celigo-agent:
|
|
18860
18878
|
- transform
|
package/dist/tool.yml
CHANGED
|
@@ -2494,7 +2494,10 @@ paths:
|
|
|
2494
2494
|
to call the source again. `POST /v1/tools/{_id}/invoke` neither reads nor writes it. Imports
|
|
2495
2495
|
never send; each returns its saved `mockResponse`, or a placeholder response when none is
|
|
2496
2496
|
saved (see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
2497
|
-
placeholder on it as its `mockResponse`. A
|
|
2497
|
+
placeholder on it as its `mockResponse`. A step that calls another Tool (`ToolImport`)
|
|
2498
|
+
differs: that Tool runs inside the test run under these same rules and the step returns its
|
|
2499
|
+
output; the step's `mockResponse` is not read, though the placeholder is still saved on one
|
|
2500
|
+
that had none. A test run is keyed by the request's `triggeredAt`:
|
|
2498
2501
|
one sent with a `triggeredAt` that an earlier test run of the tool already used is refused
|
|
2499
2502
|
with 400 `test_run_not_allowed` ("Cannot run the test tool when it is already in the running
|
|
2500
2503
|
state."), even after that run has finished. Runs with different `triggeredAt` values run at
|
|
@@ -28342,8 +28345,11 @@ components:
|
|
|
28342
28345
|
integrator.io canonical format — the server rejects any other shape with a 422.
|
|
28343
28346
|
x-celigo-ai-guidance:
|
|
28344
28347
|
- |-
|
|
28345
|
-
Flow
|
|
28346
|
-
|
|
28348
|
+
Flow-builder previews NEVER execute an upstream import, and flow
|
|
28349
|
+
test runs never execute an import other than one that calls a
|
|
28350
|
+
Tool (``ToolImport`` — a test run runs the Tool and does not read
|
|
28351
|
+
this field; last entry). Both substitute this mockResponse, or
|
|
28352
|
+
the platform placeholder
|
|
28347
28353
|
``{id: "1234567890", mockResponse: "replace me"}`` when none is
|
|
28348
28354
|
saved. With the placeholder, downstream response mappings extract
|
|
28349
28355
|
nothing real and downstream steps' sample panels go empty — the
|
|
@@ -28360,6 +28366,21 @@ components:
|
|
|
28360
28366
|
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
28361
28367
|
placeholder, not a response anyone authored — replace it with a
|
|
28362
28368
|
realistic one.
|
|
28369
|
+
- |-
|
|
28370
|
+
An import that calls a Tool (``ToolImport``) is the exception in
|
|
28371
|
+
test runs: a test run of a flow, Tool or API runs the Tool — its
|
|
28372
|
+
lookups answer from a saved ``mockOutput`` or read their
|
|
28373
|
+
application, its imports are not sent — and returns the Tool's
|
|
28374
|
+
output without reading this mockResponse, though it still saves
|
|
28375
|
+
the placeholder on a ``ToolImport`` that has none. Only the
|
|
28376
|
+
flow-builder preview reads a ``ToolImport``'s mockResponse, in
|
|
28377
|
+
place of the Tool's output, for the steps after it: to preview
|
|
28378
|
+
those steps with what the Tool returns, save
|
|
28379
|
+
``[{"statusCode": 200, "errors": [], "_json": <the Tool's
|
|
28380
|
+
output>}]`` here. The preview reads that mock as saved — a
|
|
28381
|
+
response-mapping extract written ``_json.<path>`` finds its
|
|
28382
|
+
value, a root path (``<path>``) finds nothing unless the mock
|
|
28383
|
+
repeats the field at its root (live, 2026-11-27).
|
|
28363
28384
|
items:
|
|
28364
28385
|
type: object
|
|
28365
28386
|
properties:
|
|
@@ -28601,7 +28622,7 @@ components:
|
|
|
28601
28622
|
description: |-
|
|
28602
28623
|
Sample destination response kept with the import for authoring its response mapping.
|
|
28603
28624
|
Flow test runs and previews don't read it; they substitute `mockResponse`, or a
|
|
28604
|
-
placeholder when none is saved.
|
|
28625
|
+
placeholder when none is saved (a test run of a `ToolImport` runs the Tool instead).
|
|
28605
28626
|
responseTransform:
|
|
28606
28627
|
x-celigo-agent:
|
|
28607
28628
|
- transform
|
|
@@ -37693,7 +37714,8 @@ components:
|
|
|
37693
37714
|
|
|
37694
37715
|
**Delta exports (type: "delta")**
|
|
37695
37716
|
For delta/incremental exports, do NOT populate a `delta` object inside `jdbc`.
|
|
37696
|
-
Instead,
|
|
37717
|
+
Instead, reference `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the query's
|
|
37718
|
+
WHERE clause, written as a comparison the database accepts for a date column (see `query`):
|
|
37697
37719
|
```json
|
|
37698
37720
|
{
|
|
37699
37721
|
"type": "delta",
|
|
@@ -37755,6 +37777,12 @@ components:
|
|
|
37755
37777
|
SQL SELECT statement executed to retrieve data, from simple table selections to joins and
|
|
37756
37778
|
aggregations. For delta exports, include {{lastExportDateTime}}/{{currentExportDateTime}}
|
|
37757
37779
|
in the WHERE clause rather than configuring a separate delta object.
|
|
37780
|
+
|
|
37781
|
+
Double braces render each delta variable as a single-quoted string, so add no quotes of
|
|
37782
|
+
your own; a database that converts that string to a date itself takes the bare comparison
|
|
37783
|
+
(`updatedAt > {{lastExportDateTime}}`). NetSuite JDBC does not, so on a `netsuitejdbc`
|
|
37784
|
+
connection format the variable with `dateFormat` and convert the result in the query:
|
|
37785
|
+
`lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')`.
|
|
37758
37786
|
x-celigo-ai-guidance:
|
|
37759
37787
|
- |-
|
|
37760
37788
|
This field contains the SQL SELECT statement that will be executed to fetch data
|
|
@@ -37768,15 +37796,22 @@ components:
|
|
|
37768
37796
|
- Parameterized: `SELECT * FROM orders WHERE customer_id = {{record.customer_id}}`
|
|
37769
37797
|
- |-
|
|
37770
37798
|
## FOR DELTA EXPORTS (when top-level type is "delta")
|
|
37771
|
-
Include `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the WHERE clause
|
|
37799
|
+
Include `{{lastExportDateTime}}` or `{{currentExportDateTime}}` in the WHERE clause. On a
|
|
37800
|
+
database that converts the quoted string to a date itself:
|
|
37772
37801
|
- `SELECT * FROM customers WHERE updatedAt > {{lastExportDateTime}}`
|
|
37773
37802
|
- `SELECT * FROM orders WHERE modified_date >= {{lastExportDateTime}}`
|
|
37803
|
+
- |-
|
|
37804
|
+
On a NetSuite JDBC connection (`jdbc.type` is `netsuitejdbc`) never compare a date column
|
|
37805
|
+
to the bare variable: the driver fails the query with
|
|
37806
|
+
"Error getting the literal value of right operand" (10169). Convert it, formatted first:
|
|
37807
|
+
`SELECT id, tranid, lastmodifieddate FROM transaction WHERE lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')`.
|
|
37774
37808
|
- |-
|
|
37775
37809
|
This field contains the SQL SELECT statement that will be executed to fetch data
|
|
37776
37810
|
from the database.
|
|
37777
37811
|
The query can range from simple table selections to complex joins and aggregations.
|
|
37778
37812
|
examples:
|
|
37779
37813
|
- SELECT * FROM customers WHERE updatedAt > {{lastExportDateTime}}
|
|
37814
|
+
- SELECT id, tranid, lastmodifieddate FROM transaction WHERE lastmodifieddate > TO_TIMESTAMP({{dateFormat "YYYY-MM-DD HH:mm:ss" lastExportDateTime}}, 'YYYY-MM-DD HH24:MI:SS')
|
|
37780
37815
|
- SELECT * FROM orders WHERE exported = false
|
|
37781
37816
|
- SELECT * FROM customers WHERE region = 'Northeast'
|
|
37782
37817
|
- SELECT o.id, c.name, o.total FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = 'SHIPPED'
|
|
@@ -40856,11 +40891,18 @@ components:
|
|
|
40856
40891
|
`totalResults`. SuiteQL column names are the Records Catalog names (lowercase, e.g.
|
|
40857
40892
|
`entityid`, `lastmodifieddate`), not the REST record field names.
|
|
40858
40893
|
- |-
|
|
40859
|
-
For incremental runs set `type: delta
|
|
40860
|
-
`WHERE` clause (or the record endpoint's `q` parameter)
|
|
40861
|
-
|
|
40862
|
-
|
|
40863
|
-
|
|
40894
|
+
For incremental runs set `type: delta` and embed `{{lastExportDateTime}}` in the SuiteQL
|
|
40895
|
+
`WHERE` clause (or the record endpoint's `q` parameter). SuiteQL returns and compares
|
|
40896
|
+
`lastmodifieddate` as wall-clock time in the session's time zone (`SELECT SESSIONTIMEZONE
|
|
40897
|
+
FROM dual` names it), so give the bound its own UTC offset, the helper's arguments
|
|
40898
|
+
single-quoted because the query sits inside the JSON body:
|
|
40899
|
+
`lastmodifieddate >= TO_TIMESTAMP_TZ('{{dateFormat 'YYYY-MM-DD HH:mm:ss Z' lastExportDateTime}}', 'YYYY-MM-DD HH24:MI:SS TZH:TZM')`.
|
|
40900
|
+
A UTC text compared as it stands — `to_char(lastmodifieddate,'YYYY-MM-DD HH24:MI:SS') >= '{{lastExportDateTime}}'`
|
|
40901
|
+
with `delta.dateFormat: "YYYY-MM-DD HH:mm:ss"` — leaves out a record changed after the
|
|
40902
|
+
bound when the session's zone is behind UTC.
|
|
40903
|
+
- |-
|
|
40904
|
+
A preview renders `{{lastExportDateTime}}` only from the request's `postData`; without it
|
|
40905
|
+
the placeholder is empty, so the preview does not reflect the delta window.
|
|
40864
40906
|
- |-
|
|
40865
40907
|
NetSuite must have the REST Web Services feature enabled (Setup > Company > Enable
|
|
40866
40908
|
Features > SuiteCloud); otherwise every SuiteTalk call fails with NetSuite 403
|
package/package.json
CHANGED