@celigo/api-specs 0.2.248 → 0.2.250
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/export.yml +9 -3
- package/dist/flow.yml +37 -10
- package/dist/import.yml +9 -0
- package/dist/sync.yml +26 -11
- package/dist/tool.yml +18 -3
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/export.yml
CHANGED
|
@@ -8064,8 +8064,12 @@ components:
|
|
|
8064
8064
|
message a `preSavePage` hook on the lookup that returns one `newErrorsAndRetryData`
|
|
8065
8065
|
entry (`{errors: [{code: 404, message: "Product not found"}]}`) when `options.data`
|
|
8066
8066
|
and `options.errors` are both empty failed the record with "Product not found" in
|
|
8067
|
-
the same runs.
|
|
8068
|
-
|
|
8067
|
+
the same runs. Either error is stored at retry stage `page_processor_export`, so a
|
|
8068
|
+
retry runs the lookup again (live, 2026-11-06: the retried error carried a fresh
|
|
8069
|
+
reply and the connection's debug log a new request) — unlike a check in a
|
|
8070
|
+
`postResponseMap` hook, whose retry replays the stored reply. Lookups on
|
|
8071
|
+
adaptors without HTTP response settings (NetSuite, for example) have no
|
|
8072
|
+
`successPath`.
|
|
8069
8073
|
examples:
|
|
8070
8074
|
- status
|
|
8071
8075
|
- success
|
|
@@ -17293,7 +17297,9 @@ components:
|
|
|
17293
17297
|
hook that returns `options.data` itself, or a filtered copy, drops the page without an
|
|
17294
17298
|
error, and the run completes with 0 records, 0 errors and 0 pages. An exception thrown
|
|
17295
17299
|
here fails every record on that page, each with its own retry data, and later pages
|
|
17296
|
-
still run.
|
|
17300
|
+
still run. On a lookup, an error this hook returns through `newErrorsAndRetryData` is
|
|
17301
|
+
stored at retry stage `page_processor_export`: a retry runs the lookup again, as it
|
|
17302
|
+
is configured now, and the hook sees the fresh result.
|
|
17297
17303
|
properties:
|
|
17298
17304
|
function:
|
|
17299
17305
|
type: string
|
package/dist/flow.yml
CHANGED
|
@@ -1913,11 +1913,16 @@ paths:
|
|
|
1913
1913
|
`errorId`.
|
|
1914
1914
|
|
|
1915
1915
|
To modify a record before retrying, call `GET .../{ retryDataKey}/data`, mutate the payload,
|
|
1916
|
-
`PUT` it back, then call this endpoint.
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
`
|
|
1920
|
-
`
|
|
1916
|
+
`PUT` it back, then call this endpoint. Where a retried record re-enters the step is the
|
|
1917
|
+
snapshot's `stage` (the GET on that path describes the stages). The verified re-entry rules:
|
|
1918
|
+
an import's error (`page_processor_import`) is mapped and sent to the destination again, a
|
|
1919
|
+
lookup's error (`page_processor_export`) runs the lookup again, and a postResponseMap hook's
|
|
1920
|
+
error (`post_response_mapping`) re-runs only the hook on the saved record and the step's
|
|
1921
|
+
stored reply — nothing is sent to that step's application again. From there, retried records
|
|
1922
|
+
continue through the following steps as new records would, with no ordering guarantees. To retry the whole open-error queue without listing keys, send
|
|
1923
|
+
`selectAll: true` with a `lastErrorAt` high-water mark instead of `retryDataKeys` — one call
|
|
1924
|
+
retries every matching error, no matter how many (errors without a `retryDataKey` are
|
|
1925
|
+
skipped).
|
|
1921
1926
|
x-celigo-ai-guidance:
|
|
1922
1927
|
- |-
|
|
1923
1928
|
An error leaving the open list after this call does not mean the retry worked: submitting
|
|
@@ -2161,9 +2166,10 @@ paths:
|
|
|
2161
2166
|
where the retry will resume: `page_processor_import` re-runs the import (most common, and where a
|
|
2162
2167
|
postSubmit hook's errors are stored — a retry writes again a record the destination accepted,
|
|
2163
2168
|
and resends one whose refusal the hook reworded), `page_processor_export` re-runs the lookup,
|
|
2164
|
-
`post_response_mapping` (a postResponseMap hook's error
|
|
2165
|
-
reply in `adaptorResponse`, sending nothing to
|
|
2166
|
-
|
|
2169
|
+
`post_response_mapping` (a postResponseMap hook's error, on an import or a lookup) resumes at
|
|
2170
|
+
the hook from the stored reply in `adaptorResponse`, sending nothing to that step's application
|
|
2171
|
+
again — the lookup is not run again either — and carrying the record on to the flow's next
|
|
2172
|
+
steps, and `page_generator` means the error was upstream of the processor.
|
|
2167
2173
|
parameters:
|
|
2168
2174
|
- name: _id
|
|
2169
2175
|
in: path
|
|
@@ -4823,7 +4829,10 @@ components:
|
|
|
4823
4829
|
unless `proceedOnFailure` is true. Then it is included, without the fields response
|
|
4824
4830
|
mapping would have added, and its `responseData` entry has `statusCode` 422 and
|
|
4825
4831
|
`errors` as an object keyed by index (`"0"`, `"1"`, ...) rather than an array. A
|
|
4826
|
-
successful entry has no `errors`.
|
|
4832
|
+
successful entry has no `errors`. An error this hook raises is stored at retry
|
|
4833
|
+
stage `post_response_mapping`: a retry runs the hook again on the saved record (as
|
|
4834
|
+
response mapping left it) and the step's stored reply, without repeating the lookup
|
|
4835
|
+
or the destination request.
|
|
4827
4836
|
x-celigo-ai-guidance:
|
|
4828
4837
|
- |-
|
|
4829
4838
|
Verified live 2026-10-22 in flow runs of an HTTP import, three records with one
|
|
@@ -4831,6 +4840,20 @@ components:
|
|
|
4831
4840
|
records; with `proceedOnFailure: true` they held all three, and a hook that called
|
|
4832
4841
|
`.map` on each entry's `errors` threw on the failed one, failing the page. Read
|
|
4833
4842
|
errors with `Object.values(entry.errors || {})`.
|
|
4843
|
+
- |-
|
|
4844
|
+
A retry of this hook's error never re-queries the looked-up system or re-sends to
|
|
4845
|
+
the destination, so a fix made there (an item created, a search corrected) does not
|
|
4846
|
+
reach the retried record and the same error returns on every retry. The record
|
|
4847
|
+
re-enters the flow from the source (a fresh run performs the lookup), or its retry
|
|
4848
|
+
data is edited to carry the field the hook reads and then retried — the hook passes
|
|
4849
|
+
and the record continues to the next step. To fail a lookup on "no match" so that a
|
|
4850
|
+
retry runs the lookup again, raise the error from the lookup's `preSavePage` hook or
|
|
4851
|
+
an HTTP `successPath` instead (stage `page_processor_export`). Verified live
|
|
4852
|
+
2026-11-06 on a lookup with this hook, one-to-one and one-to-many: the retried
|
|
4853
|
+
error's message carried the original lookup reply, the connection's debug log showed
|
|
4854
|
+
no new request, and after the retry data was edited the retry passed the hook and
|
|
4855
|
+
reached the next import; the same day a `preSavePage` error and a `successPath`
|
|
4856
|
+
error on that lookup were each retried with a new lookup request and a fresh reply.
|
|
4834
4857
|
properties:
|
|
4835
4858
|
function:
|
|
4836
4859
|
type: string
|
|
@@ -7878,7 +7901,11 @@ components:
|
|
|
7878
7901
|
`post_response_mapping` is a postResponseMap hook's error, raised after the destination
|
|
7879
7902
|
answered: a retry runs the hook from the stored reply and carries the record on to the flow's
|
|
7880
7903
|
next steps, sending nothing to that destination again (live, 2026-10-23 and 2026-10-25: the
|
|
7881
|
-
import's request count didn't change, and the next import received the retried records).
|
|
7904
|
+
import's request count didn't change, and the next import received the retried records). The
|
|
7905
|
+
same holds for the hook on a lookup step: the lookup is not run again, so the hook sees the
|
|
7906
|
+
reply saved at run time however the looked-up system has changed since (live, 2026-11-06:
|
|
7907
|
+
the retried error's message carried the original reply and the connection's debug log
|
|
7908
|
+
recorded no new request; a one-to-many child's retry replayed that child alone).
|
|
7882
7909
|
x-celigo-ai-guidance:
|
|
7883
7910
|
- |-
|
|
7884
7911
|
Before retrying `post_submit_hook` errors, find out whether the destination took each
|
package/dist/import.yml
CHANGED
|
@@ -17653,6 +17653,15 @@ components:
|
|
|
17653
17653
|
response, whose envelope carries the mock's id, such as
|
|
17654
17654
|
``1234567890``) → array of the same length, typically mutated
|
|
17655
17655
|
to annotate or augment per-record errors.
|
|
17656
|
+
- |-
|
|
17657
|
+
An error this hook raises is stored at retry stage
|
|
17658
|
+
`page_processor_import`, like the import's own errors: a retry
|
|
17659
|
+
maps the saved record again and sends it to the destination
|
|
17660
|
+
again, so a record the destination had accepted before the hook
|
|
17661
|
+
failed it is written a second time (live, 2026-10-22). Before
|
|
17662
|
+
retrying such errors, find out whether the destination took each
|
|
17663
|
+
record — the hook's message, or a lookup of the record there —
|
|
17664
|
+
and retry only the refusals.
|
|
17656
17665
|
allOf:
|
|
17657
17666
|
- $ref: '#/components/schemas/Hook'
|
|
17658
17667
|
postAggregate:
|
package/dist/sync.yml
CHANGED
|
@@ -1440,9 +1440,12 @@ paths:
|
|
|
1440
1440
|
Each table entry contains its own status, record counts, error counts, and timing.
|
|
1441
1441
|
|
|
1442
1442
|
A sync job family maps to one sync execution: the parent is the overall sync job and the children
|
|
1443
|
-
represent each table
|
|
1444
|
-
authoritative totals; `tables[]` provides the
|
|
1445
|
-
the job was canceled before any table work
|
|
1443
|
+
represent each table the run attempted -- a delta table with no changed records included, with
|
|
1444
|
+
zero counts. Parent-level counters are the authoritative totals; `tables[]` provides the
|
|
1445
|
+
per-table breakdown. `tables` may be empty if the job was canceled before any table work
|
|
1446
|
+
started. An enabled dataset with no entry in `tables` was not attempted by the run; compare the
|
|
1447
|
+
list with the sync's enabled datasets to find such datasets, since neither the parent's status
|
|
1448
|
+
nor its error records name them.
|
|
1446
1449
|
parameters:
|
|
1447
1450
|
- name: _syncJobId
|
|
1448
1451
|
in: path
|
|
@@ -4831,9 +4834,12 @@ components:
|
|
|
4831
4834
|
description: |-
|
|
4832
4835
|
A sync job represents one execution of a sync. Sync jobs are read-only records
|
|
4833
4836
|
created by the platform when a sync run is triggered (manually or on schedule). The job tracks
|
|
4834
|
-
extraction, loading, and error counts across
|
|
4835
|
-
|
|
4836
|
-
the
|
|
4837
|
+
extraction, loading, and error counts across the tables the run attempted. A delta table with
|
|
4838
|
+
no changed records is still attempted and counted, with zero record counts. An enabled dataset
|
|
4839
|
+
the run did not attempt -- a run scoped with `datasetIds` covers only the selected datasets --
|
|
4840
|
+
is absent from the run's counts and from the family's `tables`, and no error record names it.
|
|
4841
|
+
x-celigo-ai-guidance:
|
|
4842
|
+
- A completed parent with zero errors says nothing about datasets the run did not attempt. To find them, compare the family's `tables` (GET /v1/syncJobs/{_syncJobId}/family) with the sync's enabled datasets (GET /v1/syncs/{_syncId}/datasets?enable=true) -- never infer it from `numTablesSynced` alone or from the table jobs that did run.
|
|
4837
4843
|
properties:
|
|
4838
4844
|
_id:
|
|
4839
4845
|
type: string
|
|
@@ -4933,7 +4939,12 @@ components:
|
|
|
4933
4939
|
numTablesSynced:
|
|
4934
4940
|
type: integer
|
|
4935
4941
|
readOnly: true
|
|
4936
|
-
description:
|
|
4942
|
+
description: |-
|
|
4943
|
+
Number of table jobs in this run that have reached a terminal state (completed, failed or
|
|
4944
|
+
canceled) -- a delta table that finished with no changed records counts. Equals the length
|
|
4945
|
+
of the family's `tables` once every table job is terminal and is lower while table jobs are
|
|
4946
|
+
still queued or running; lower than the sync's enabled dataset count when the run did not
|
|
4947
|
+
attempt every enabled dataset (for example a run scoped with `datasetIds`).
|
|
4937
4948
|
examples:
|
|
4938
4949
|
- 3
|
|
4939
4950
|
triggeredBy:
|
|
@@ -5132,9 +5143,9 @@ components:
|
|
|
5132
5143
|
type: object
|
|
5133
5144
|
description: |-
|
|
5134
5145
|
A sync job family consisting of the parent sync job and its per-table child jobs. Each entry in
|
|
5135
|
-
`tables` represents one table
|
|
5136
|
-
|
|
5137
|
-
|
|
5146
|
+
`tables` represents one table the run attempted, with its own status, record counts, and
|
|
5147
|
+
timing. The parent-level counters are the authoritative totals; `tables[]` provides the
|
|
5148
|
+
per-table breakdown. `tables` may be empty if the job was canceled before any table work
|
|
5138
5149
|
started.
|
|
5139
5150
|
allOf:
|
|
5140
5151
|
- $ref: '#/components/schemas/SyncJob'
|
|
@@ -5142,7 +5153,11 @@ components:
|
|
|
5142
5153
|
properties:
|
|
5143
5154
|
tables:
|
|
5144
5155
|
type: array
|
|
5145
|
-
description:
|
|
5156
|
+
description: |-
|
|
5157
|
+
Per-table child job records for this sync run, one per table the run attempted -- a
|
|
5158
|
+
delta table with no changed records is listed with zero counts. An enabled dataset with
|
|
5159
|
+
no entry here was not attempted by this run (for example a run scoped with
|
|
5160
|
+
`datasetIds`); nothing in this response or in the run's error records names it.
|
|
5146
5161
|
items:
|
|
5147
5162
|
$ref: '#/components/schemas/SyncTableJob'
|
|
5148
5163
|
SyncError:
|
package/dist/tool.yml
CHANGED
|
@@ -27101,6 +27101,15 @@ components:
|
|
|
27101
27101
|
response, whose envelope carries the mock's id, such as
|
|
27102
27102
|
``1234567890``) → array of the same length, typically mutated
|
|
27103
27103
|
to annotate or augment per-record errors.
|
|
27104
|
+
- |-
|
|
27105
|
+
An error this hook raises is stored at retry stage
|
|
27106
|
+
`page_processor_import`, like the import's own errors: a retry
|
|
27107
|
+
maps the saved record again and sends it to the destination
|
|
27108
|
+
again, so a record the destination had accepted before the hook
|
|
27109
|
+
failed it is written a second time (live, 2026-10-22). Before
|
|
27110
|
+
retrying such errors, find out whether the destination took each
|
|
27111
|
+
record — the hook's message, or a lookup of the record there —
|
|
27112
|
+
and retry only the refusals.
|
|
27104
27113
|
allOf:
|
|
27105
27114
|
- $ref: '#/components/schemas/Hook'
|
|
27106
27115
|
postAggregate:
|
|
@@ -34185,8 +34194,12 @@ components:
|
|
|
34185
34194
|
message a `preSavePage` hook on the lookup that returns one `newErrorsAndRetryData`
|
|
34186
34195
|
entry (`{errors: [{code: 404, message: "Product not found"}]}`) when `options.data`
|
|
34187
34196
|
and `options.errors` are both empty failed the record with "Product not found" in
|
|
34188
|
-
the same runs.
|
|
34189
|
-
|
|
34197
|
+
the same runs. Either error is stored at retry stage `page_processor_export`, so a
|
|
34198
|
+
retry runs the lookup again (live, 2026-11-06: the retried error carried a fresh
|
|
34199
|
+
reply and the connection's debug log a new request) — unlike a check in a
|
|
34200
|
+
`postResponseMap` hook, whose retry replays the stored reply. Lookups on
|
|
34201
|
+
adaptors without HTTP response settings (NetSuite, for example) have no
|
|
34202
|
+
`successPath`.
|
|
34190
34203
|
examples:
|
|
34191
34204
|
- status
|
|
34192
34205
|
- success
|
|
@@ -39652,7 +39665,9 @@ components:
|
|
|
39652
39665
|
hook that returns `options.data` itself, or a filtered copy, drops the page without an
|
|
39653
39666
|
error, and the run completes with 0 records, 0 errors and 0 pages. An exception thrown
|
|
39654
39667
|
here fails every record on that page, each with its own retry data, and later pages
|
|
39655
|
-
still run.
|
|
39668
|
+
still run. On a lookup, an error this hook returns through `newErrorsAndRetryData` is
|
|
39669
|
+
stored at retry stage `page_processor_export`: a retry runs the lookup again, as it
|
|
39670
|
+
is configured now, and the hook sees the fresh result.
|
|
39656
39671
|
properties:
|
|
39657
39672
|
function:
|
|
39658
39673
|
type: string
|
package/package.json
CHANGED