@celigo/api-specs 0.2.323 → 0.2.325
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 +34 -19
- package/dist/flow.yml +16 -9
- package/dist/sync.yml +85 -36
- package/dist/tool.yml +34 -19
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/export.yml
CHANGED
|
@@ -1427,12 +1427,15 @@ components:
|
|
|
1427
1427
|
name it in `dateField`, while HTTP exports and SQL queries carry {{lastExportDateTime}} in the
|
|
1428
1428
|
request and save without a delta object. Each run reads the window from {{lastExportDateTime}}
|
|
1429
1429
|
to {{currentExportDateTime}}: the flow's checkpoint and the time the run started, both less
|
|
1430
|
-
`lagOffset` when it is set. Until a run has exported records the flow has no
|
|
1431
|
-
{{lastExportDateTime}} is `startDate` itself, unshifted. A first run is not a full export: with
|
|
1430
|
+
`lagOffset` when it is set. Until a run has completed with exported records the flow has no
|
|
1431
|
+
checkpoint, and {{lastExportDateTime}} is `startDate` itself, unshifted. A first run is not a full export: with
|
|
1432
1432
|
no `startDate`, its {{lastExportDateTime}} is the run's own timestamp, so it picks up no
|
|
1433
|
-
earlier changes. The checkpoint moves to a run's start time only when the run
|
|
1434
|
-
|
|
1435
|
-
the next run reuses the last checkpoint.
|
|
1433
|
+
earlier changes. The checkpoint moves to a run's start time only when the run completes
|
|
1434
|
+
having exported records, so a run that exports nothing leaves it where it was, and after a
|
|
1435
|
+
failed run the next run reuses the last checkpoint. That includes an HTTP export that fails
|
|
1436
|
+
on a later page request after earlier pages have exported records: the next run sends the
|
|
1437
|
+
same {{lastExportDateTime}}, with its own start as {{currentExportDateTime}}. On success,
|
|
1438
|
+
when `POST /v1/flows/{_id}/run` sends
|
|
1436
1439
|
`export.endDate`, the flow's checkpoint is left at that value, so an end date in the past
|
|
1437
1440
|
moves the next run's lower bound back.
|
|
1438
1441
|
x-celigo-ai-guidance:
|
|
@@ -1457,7 +1460,7 @@ components:
|
|
|
1457
1460
|
default ``startDate`` to **today at midnight UTC** in ISO-8601 format
|
|
1458
1461
|
(e.g. ``"2026-05-14T00:00:00.000Z"``). This means the first run picks
|
|
1459
1462
|
up records changed today; subsequent runs use the platform-managed
|
|
1460
|
-
``{{lastExportDateTime}}`` (the start of the last run that exported records, less ``lagOffset``).
|
|
1463
|
+
``{{lastExportDateTime}}`` (the start of the last completed run that exported records, less ``lagOffset``).
|
|
1461
1464
|
|
|
1462
1465
|
- First run: filters records changed since ``startDate``.
|
|
1463
1466
|
- Subsequent runs: uses ``{{lastExportDateTime}}`` as the lower bound;
|
|
@@ -1473,7 +1476,7 @@ components:
|
|
|
1473
1476
|
2. The system automatically maintains the checkpoint
|
|
1474
1477
|
- No need to store or manage timestamps in your own code
|
|
1475
1478
|
- A first run without ``startDate`` fetches nothing older than the run itself
|
|
1476
|
-
- A run that
|
|
1479
|
+
- A run that completes having exported records moves the checkpoint to its start time. The next run
|
|
1477
1480
|
reads from the checkpoint less ``lagOffset``, which is this run's
|
|
1478
1481
|
{{currentExportDateTime}} while ``lagOffset`` is unchanged
|
|
1479
1482
|
- Use {{lastExportDateTime}} as the lower bound. {{currentExportDateTime}} as the
|
|
@@ -1483,13 +1486,16 @@ components:
|
|
|
1483
1486
|
|
|
1484
1487
|
3. Error handling and recovery:
|
|
1485
1488
|
- If an export fails, the next run reuses the last checkpoint
|
|
1486
|
-
-
|
|
1489
|
+
- An HTTP export that fails on a later page request, after earlier pages have exported
|
|
1490
|
+
records, leaves the checkpoint too: the next run sends the same {{lastExportDateTime}}
|
|
1491
|
+
with its own start as the upper bound, so no backfill run is needed
|
|
1487
1492
|
- A run that exports nothing leaves the checkpoint where it was, so after a stretch of
|
|
1488
1493
|
empty runs the next run that finds records reaches back to the last run that exported
|
|
1489
1494
|
any: once the cause is fixed, no backfill run is needed
|
|
1490
1495
|
- A run given its own window (export.startDate / export.endDate on
|
|
1491
|
-
POST /v1/flows/{_id}/run) that
|
|
1492
|
-
even a past one, so the next run re-reads everything after it
|
|
1496
|
+
POST /v1/flows/{_id}/run) that completes having exported records leaves the
|
|
1497
|
+
checkpoint at endDate, even a past one, so the next run re-reads everything after it;
|
|
1498
|
+
one whose HTTP export failed on a later page request left the checkpoint where it was
|
|
1493
1499
|
- ``lagOffset`` delays every window by its value, for a source that shows changes late
|
|
1494
1500
|
- |-
|
|
1495
1501
|
Omit this object for export types other than "delta". An HTTP export with type
|
|
@@ -1497,6 +1503,14 @@ components:
|
|
|
1497
1503
|
set ``startDate`` anyway: without it the first run's window is empty.
|
|
1498
1504
|
Delta exports are designed for efficient synchronization by retrieving only
|
|
1499
1505
|
records that have been created or modified since the last execution.
|
|
1506
|
+
- |-
|
|
1507
|
+
Verified live (2026-11-20, an HTTP delta export whose second page request was answered
|
|
1508
|
+
with HTTP 500 after the first page had exported a record): the export job and the flow
|
|
1509
|
+
job ended `failed` and `GET /v1/flows/{_id}/lastExportDateTime` was unchanged; the next
|
|
1510
|
+
run sent the same {{lastExportDateTime}} as the failed run and, completing, moved the
|
|
1511
|
+
checkpoint to its own start. The same failure on a flow's first run left the checkpoint
|
|
1512
|
+
`null`, and the next run sent `startDate` again. On a run given `export.startDate` /
|
|
1513
|
+
`export.endDate` it left the checkpoint where it was, not at `endDate`.
|
|
1500
1514
|
properties:
|
|
1501
1515
|
dateField:
|
|
1502
1516
|
type: string
|
|
@@ -1661,9 +1675,9 @@ components:
|
|
|
1661
1675
|
type: integer
|
|
1662
1676
|
description: |-
|
|
1663
1677
|
Milliseconds taken off a run's start time to give `{{currentExportDateTime}}`, the window's
|
|
1664
|
-
upper bound, and off the flow's checkpoint, the start time of the last run that
|
|
1665
|
-
records, to give `{{lastExportDateTime}}`, its lower bound. Until a run has
|
|
1666
|
-
there is no checkpoint, and the lower bound is `startDate` itself, unshifted, so a
|
|
1678
|
+
upper bound, and off the flow's checkpoint, the start time of the last completed run that
|
|
1679
|
+
exported records, to give `{{lastExportDateTime}}`, its lower bound. Until a run has
|
|
1680
|
+
completed with exported records there is no checkpoint, and the lower bound is `startDate` itself, unshifted, so a
|
|
1667
1681
|
`startDate` within the last `lagOffset` gives the run an empty window. While the value stays the same, windows stay back to back and nothing is read twice:
|
|
1668
1682
|
each record just reaches a run `lagOffset` later, after it has had that long to become
|
|
1669
1683
|
visible. Changing it moves the next window's start by the change: raising it re-reads the
|
|
@@ -1700,10 +1714,10 @@ components:
|
|
|
1700
1714
|
- 'null'
|
|
1701
1715
|
format: date-time
|
|
1702
1716
|
description: |-
|
|
1703
|
-
Lower-bound cutoff for the first run, and for every run until one
|
|
1717
|
+
Lower-bound cutoff for the first run, and for every run until one completes having exported records. Omitting it doesn't export history: the first run
|
|
1704
1718
|
then starts at its own timestamp, an empty window. Set it to the earliest change the first
|
|
1705
|
-
run should pick up. Later runs start from the flow's checkpoint, the start of the last
|
|
1706
|
-
that exported records (less `lagOffset`).
|
|
1719
|
+
run should pick up. Later runs start from the flow's checkpoint, the start of the last
|
|
1720
|
+
completed run that exported records (less `lagOffset`).
|
|
1707
1721
|
x-celigo-ai-guidance:
|
|
1708
1722
|
- |-
|
|
1709
1723
|
Initial cutoff timestamp for the first export run, in ISO-8601 UTC format (e.g.
|
|
@@ -1721,10 +1735,11 @@ components:
|
|
|
1721
1735
|
flow is being authored.
|
|
1722
1736
|
- |-
|
|
1723
1737
|
## SUBSEQUENT RUNS
|
|
1724
|
-
After the first run that
|
|
1725
|
-
flow's checkpoint at the start of the last run that exported records
|
|
1738
|
+
After the first run that completes having exported records, the platform keeps the
|
|
1739
|
+
flow's checkpoint at the start of the last completed run that exported records
|
|
1726
1740
|
and exposes it, less ``lagOffset``, as ``{{lastExportDateTime}}``; runs that export
|
|
1727
|
-
nothing leave it unchanged
|
|
1741
|
+
nothing leave it unchanged, and so did a run whose HTTP export failed on a later page
|
|
1742
|
+
request after an earlier page had exported a record. ``startDate`` becomes the floor used
|
|
1728
1743
|
only when the platform timestamp is absent (e.g. after a reset).
|
|
1729
1744
|
- |-
|
|
1730
1745
|
## EXAMPLES
|
package/dist/flow.yml
CHANGED
|
@@ -967,7 +967,9 @@ paths:
|
|
|
967
967
|
first (`GET /v1/flows/{_id}/lastExportDateTime`): the override doesn't stay with one run, since
|
|
968
968
|
a successful run that sends `endDate` leaves the checkpoint there. Runs that export nothing
|
|
969
969
|
leave the checkpoint alone, so a stretch of empty runs needs no backfill once its cause is
|
|
970
|
-
fixed. A
|
|
970
|
+
fixed. A run whose HTTP export failed on a later page request, after an earlier page had exported
|
|
971
|
+
a record, left it alone too: the next run given no dates sent the same `{{lastExportDateTime}}`.
|
|
972
|
+
A flow runs one instance at a time: a run requested while another
|
|
971
973
|
instance is queued or running is refused with `409 job_already_queued` ("Another instance
|
|
972
974
|
for this flow is already queued or running"), and a run-next-flow trigger that arrives in
|
|
973
975
|
that state is dropped rather than queued.
|
|
@@ -1442,9 +1444,12 @@ paths:
|
|
|
1442
1444
|
generators (exports) in the flow. This value is what gets substituted into the `{{lastExportDateTime}}`
|
|
1443
1445
|
Handlebars variable on the next delta run of any export in the flow.
|
|
1444
1446
|
|
|
1445
|
-
A run moves the checkpoint to its window end (`{{currentExportDateTime}}`) only when it
|
|
1446
|
-
records. A run that exports nothing leaves it where it was, so after a stretch of
|
|
1447
|
-
next run that finds records reaches back to the last run that exported any.
|
|
1447
|
+
A run moves the checkpoint to its window end (`{{currentExportDateTime}}`) only when it completes
|
|
1448
|
+
having exported records. A run that exports nothing leaves it where it was, so after a stretch of
|
|
1449
|
+
empty runs the next run that finds records reaches back to the last run that exported any. A run
|
|
1450
|
+
whose HTTP export fails on a later page request, after earlier pages have exported records, leaves
|
|
1451
|
+
it too: the next run given no dates sends the same `{{lastExportDateTime}}`, with its own start as
|
|
1452
|
+
the upper bound. On success, when
|
|
1448
1453
|
`POST /v1/flows/{_id}/run` sends `export.endDate`, the checkpoint is left at that value, so an end
|
|
1449
1454
|
date in the past moves the next run's lower bound back.
|
|
1450
1455
|
|
|
@@ -6088,7 +6093,7 @@ components:
|
|
|
6088
6093
|
description: Overrides the moment.js format string applied to the delta cutoff timestamp; ISO 8601 is used when unset.
|
|
6089
6094
|
startDate:
|
|
6090
6095
|
type: string
|
|
6091
|
-
description: Overrides the abstract flow's export `delta.startDate` -- the lower bound of the first run, and of every run until one
|
|
6096
|
+
description: Overrides the abstract flow's export `delta.startDate` -- the lower bound of the first run, and of every run until one completes having exported records; later runs start from the flow's checkpoint.
|
|
6092
6097
|
lagOffset:
|
|
6093
6098
|
type: integer
|
|
6094
6099
|
description: Overrides the abstract flow's export `delta.lagOffset` -- milliseconds taken off both ends of a delta window once the flow has a checkpoint, so records reach a run that much later. While the value stays the same, windows don't overlap; raising it re-reads the added span once, and lowering it skips the removed span. Never negative (once the flow has a checkpoint, that moves the window into the future and skips records).
|
|
@@ -7463,7 +7468,9 @@ components:
|
|
|
7463
7468
|
description: |-
|
|
7464
7469
|
Delta-window override. When present, the run uses these dates in place of the flow's own
|
|
7465
7470
|
`lastExportDateTime` / `currentExportDateTime`. Both fields are optional individually. The
|
|
7466
|
-
override outlasts the run: a run that
|
|
7471
|
+
override outlasts the run: a run that completes having exported records leaves the flow's
|
|
7472
|
+
checkpoint at `endDate`. A run whose HTTP export failed on a later page request left the
|
|
7473
|
+
checkpoint where it was, not at `endDate`.
|
|
7467
7474
|
properties:
|
|
7468
7475
|
startDate:
|
|
7469
7476
|
type: string
|
|
@@ -7475,9 +7482,9 @@ components:
|
|
|
7475
7482
|
type: string
|
|
7476
7483
|
format: date-time
|
|
7477
7484
|
description: |-
|
|
7478
|
-
ISO-8601 end of the delta window (maps to `currentExportDateTime`). When the run
|
|
7479
|
-
records, the flow's checkpoint is left here, even when it is in the past,
|
|
7480
|
-
starts from it.
|
|
7485
|
+
ISO-8601 end of the delta window (maps to `currentExportDateTime`). When the run completes
|
|
7486
|
+
having exported records, the flow's checkpoint is left here, even when it is in the past,
|
|
7487
|
+
so the next run starts from it.
|
|
7481
7488
|
examples:
|
|
7482
7489
|
- '2026-01-15T23:59:59.000Z'
|
|
7483
7490
|
_exportIds:
|
package/dist/sync.yml
CHANGED
|
@@ -1363,6 +1363,8 @@ paths:
|
|
|
1363
1363
|
Only `createdAt_gt` and `createdAt_lte` filter by date; `createdAt_gte` and `createdAt_lt`
|
|
1364
1364
|
are ignored. A blank or whitespace-only bound counts as not sent. A bound that is not a
|
|
1365
1365
|
valid date answers 422 `invalid_query_param` before the sync is looked up.
|
|
1366
|
+
x-celigo-ai-guidance:
|
|
1367
|
+
- A job's `status` alone does not say whether the run loaded anything. A run that failed at initialization, before any table work started, has been recorded `completed` as well as `failed` -- either way with `numErrors` above zero and `numTablesSynced`, `numExtractedRecords` and `numLoadedRecords` at zero. Read those counters with the status.
|
|
1366
1368
|
parameters:
|
|
1367
1369
|
- name: _syncId
|
|
1368
1370
|
in: path
|
|
@@ -1691,10 +1693,11 @@ paths:
|
|
|
1691
1693
|
A sync job family maps to one sync execution: the parent is the overall sync job and the children
|
|
1692
1694
|
represent each table the run attempted -- a delta table with no changed records included, with
|
|
1693
1695
|
zero counts. Parent-level counters are the authoritative totals; `tables[]` provides the
|
|
1694
|
-
per-table breakdown. `tables`
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1696
|
+
per-table breakdown. `tables` is empty when the run ended before any table work started -- it
|
|
1697
|
+
was canceled, or it failed at initialization and its error record carries stage `init`
|
|
1698
|
+
(GET /v1/syncJobs/{_parentJobId}/errors). An enabled dataset with no entry in `tables` was not
|
|
1699
|
+
attempted by the run; compare the list with the sync's enabled datasets to find such datasets,
|
|
1700
|
+
since neither the parent's status nor its error records name them.
|
|
1698
1701
|
parameters:
|
|
1699
1702
|
- name: _syncJobId
|
|
1700
1703
|
in: path
|
|
@@ -1761,12 +1764,15 @@ paths:
|
|
|
1761
1764
|
- Sync Jobs
|
|
1762
1765
|
summary: List errors for a sync job
|
|
1763
1766
|
description: |-
|
|
1764
|
-
Returns errors
|
|
1765
|
-
|
|
1767
|
+
Returns the errors the given parent sync job recorded: the errors of its tables and,
|
|
1768
|
+
when the run failed before any table work started, the error of the run itself.
|
|
1766
1769
|
|
|
1767
|
-
Use `_childJobId` to filter to a single table. Without it,
|
|
1768
|
-
|
|
1770
|
+
Use `_childJobId` to filter to a single table. Without it, every error of the run is
|
|
1771
|
+
returned. To find a child job id, call
|
|
1769
1772
|
`GET /v1/syncJobs/{_syncJobId}/family` and read `tables[]._id`.
|
|
1773
|
+
x-celigo-ai-guidance:
|
|
1774
|
+
- Each record's `source` is the platform's classification of where the failure was raised -- `internal` (Celigo's own processing), `application` (the source or destination application), `connection` (a connection the run uses) or `resource` (the configuration of a resource the run uses). It says where a fix belongs; `message` carries the detail.
|
|
1775
|
+
- A record with `scope` `sync` and `stage` `init` is an error of the run itself, raised before any table work started -- it names no table, dataset or child job. The family of such a run (GET /v1/syncJobs/{_syncJobId}/family) has an empty `tables`.
|
|
1770
1776
|
parameters:
|
|
1771
1777
|
- name: _parentJobId
|
|
1772
1778
|
in: path
|
|
@@ -1838,8 +1844,8 @@ paths:
|
|
|
1838
1844
|
with_errors:
|
|
1839
1845
|
summary: Two errors from different tables
|
|
1840
1846
|
value:
|
|
1841
|
-
- scope:
|
|
1842
|
-
source:
|
|
1847
|
+
- scope: table
|
|
1848
|
+
source: application
|
|
1843
1849
|
code: INVALID_FIELD
|
|
1844
1850
|
message: No such column 'Custom_Field__c' on entity 'Account'.
|
|
1845
1851
|
_datasetId: 6821c01c39db7c2b9cdc0e35
|
|
@@ -1847,12 +1853,12 @@ paths:
|
|
|
1847
1853
|
_parentSyncJobId: 6821c01c39db7c2b9cdc0e30
|
|
1848
1854
|
_childSyncJobId: 6821c01c39db7c2b9cdc0e31
|
|
1849
1855
|
flowExecutionGroupId: 6821c01c39db7c2b9cdc0e29
|
|
1850
|
-
stage:
|
|
1856
|
+
stage: extract
|
|
1851
1857
|
datasetName: Salesforce Accounts
|
|
1852
1858
|
tableName: accounts
|
|
1853
1859
|
occurredAt: '2026-04-28T14:31:22.789Z'
|
|
1854
|
-
- scope:
|
|
1855
|
-
source:
|
|
1860
|
+
- scope: table
|
|
1861
|
+
source: application
|
|
1856
1862
|
code: DUPLICATE_KEY
|
|
1857
1863
|
message: Duplicate key value violates unique constraint on 'contacts.email'.
|
|
1858
1864
|
_datasetId: 6821c01c39db7c2b9cdc0e36
|
|
@@ -1860,10 +1866,22 @@ paths:
|
|
|
1860
1866
|
_parentSyncJobId: 6821c01c39db7c2b9cdc0e30
|
|
1861
1867
|
_childSyncJobId: 6821c01c39db7c2b9cdc0e32
|
|
1862
1868
|
flowExecutionGroupId: 6821c01c39db7c2b9cdc0e29
|
|
1863
|
-
stage:
|
|
1869
|
+
stage: load
|
|
1864
1870
|
datasetName: Salesforce Contacts
|
|
1865
1871
|
tableName: contacts
|
|
1866
1872
|
occurredAt: '2026-04-28T14:32:05.123Z'
|
|
1873
|
+
run_failed_at_initialization:
|
|
1874
|
+
summary: One error of the run itself
|
|
1875
|
+
value:
|
|
1876
|
+
- scope: sync
|
|
1877
|
+
source: resource
|
|
1878
|
+
code: di_ping_failure
|
|
1879
|
+
message: 'Unknown host: warehouse.example.invalid. We were unable to verify this host using a DNS lookup. Please check that you entered the correct host name. Error message: "getaddrinfo ENOTFOUND warehouse.example.invalid"'
|
|
1880
|
+
_syncId: 682094fa7eb7fc3e7ab7a4a0
|
|
1881
|
+
_parentSyncJobId: 6821c01c39db7c2b9cdc0e50
|
|
1882
|
+
flowExecutionGroupId: 6821c01c39db7c2b9cdc0e49
|
|
1883
|
+
stage: init
|
|
1884
|
+
occurredAt: '2026-04-28T16:00:33.504Z'
|
|
1867
1885
|
empty:
|
|
1868
1886
|
summary: No errors
|
|
1869
1887
|
value: []
|
|
@@ -5347,8 +5365,11 @@ components:
|
|
|
5347
5365
|
no changed records is still attempted and counted, with zero record counts. An enabled dataset
|
|
5348
5366
|
the run did not attempt -- a run scoped with `datasetIds` covers only the selected datasets --
|
|
5349
5367
|
is absent from the run's counts and from the family's `tables`, and no error record names it.
|
|
5368
|
+
A run that fails at initialization, before any table work starts, attempts no table: its
|
|
5369
|
+
record counts and `numTablesSynced` are zero and `numErrors` counts the run's own error.
|
|
5350
5370
|
x-celigo-ai-guidance:
|
|
5351
5371
|
- 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.
|
|
5372
|
+
- A run that failed at initialization -- an error record with stage `init` and an empty `tables` in the family -- has been recorded with status `completed` as well as with `failed`. Decide whether a run loaded anything from `numErrors`, the record counts and the family's `tables`, never from `status` alone.
|
|
5352
5373
|
properties:
|
|
5353
5374
|
_id:
|
|
5354
5375
|
type: string
|
|
@@ -5424,13 +5445,15 @@ components:
|
|
|
5424
5445
|
queued: Run accepted and waiting for a worker to start execution.
|
|
5425
5446
|
running: Sync is currently executing.
|
|
5426
5447
|
canceling: Cancellation requested; in-flight work has not yet stopped.
|
|
5427
|
-
completed:
|
|
5448
|
+
completed: Run ended on its own; it can still have recorded errors, or loaded nothing -- read `numErrors` and the record counts
|
|
5428
5449
|
failed: Sync finished with a fatal error.
|
|
5429
5450
|
canceled: Sync was canceled by a user or the system.
|
|
5430
5451
|
numErrors:
|
|
5431
5452
|
type: integer
|
|
5432
5453
|
readOnly: true
|
|
5433
|
-
description:
|
|
5454
|
+
description: |-
|
|
5455
|
+
Total number of errors this run recorded -- the errors of its tables plus any error of the
|
|
5456
|
+
run itself (stage `init`).
|
|
5434
5457
|
examples:
|
|
5435
5458
|
- 0
|
|
5436
5459
|
numLoadedRecords:
|
|
@@ -5654,8 +5677,8 @@ components:
|
|
|
5654
5677
|
A sync job family consisting of the parent sync job and its per-table child jobs. Each entry in
|
|
5655
5678
|
`tables` represents one table the run attempted, with its own status, record counts, and
|
|
5656
5679
|
timing. The parent-level counters are the authoritative totals; `tables[]` provides the
|
|
5657
|
-
per-table breakdown. `tables`
|
|
5658
|
-
|
|
5680
|
+
per-table breakdown. `tables` is empty when the run ended before any table work started --
|
|
5681
|
+
it was canceled, or it failed at initialization.
|
|
5659
5682
|
allOf:
|
|
5660
5683
|
- $ref: '#/components/schemas/SyncJob'
|
|
5661
5684
|
- type: object
|
|
@@ -5672,22 +5695,38 @@ components:
|
|
|
5672
5695
|
SyncError:
|
|
5673
5696
|
type: object
|
|
5674
5697
|
description: |-
|
|
5675
|
-
An individual error record from a sync run.
|
|
5676
|
-
`tableName` and `
|
|
5677
|
-
|
|
5698
|
+
An individual error record from a sync run. An error belongs to one table of the run
|
|
5699
|
+
(identified by `tableName`, `_datasetId` and `_childSyncJobId`) or, when the run fails before
|
|
5700
|
+
any table work starts, to the run itself -- that record names no table, dataset or child job.
|
|
5701
|
+
`_parentSyncJobId` links to the parent sync job.
|
|
5678
5702
|
properties:
|
|
5679
5703
|
scope:
|
|
5680
5704
|
type: string
|
|
5681
5705
|
readOnly: true
|
|
5682
|
-
description:
|
|
5706
|
+
description: |-
|
|
5707
|
+
What the error belongs to: `table` for an error of one table of the run, `sync` for an
|
|
5708
|
+
error of the run itself.
|
|
5683
5709
|
examples:
|
|
5684
|
-
-
|
|
5710
|
+
- table
|
|
5711
|
+
- sync
|
|
5685
5712
|
source:
|
|
5686
5713
|
type: string
|
|
5687
5714
|
readOnly: true
|
|
5688
|
-
description:
|
|
5715
|
+
description: |-
|
|
5716
|
+
Where the platform classifies the failure as having been raised. It says where a fix
|
|
5717
|
+
belongs; `message` carries the detail.
|
|
5718
|
+
enum:
|
|
5719
|
+
- internal
|
|
5720
|
+
- application
|
|
5721
|
+
- connection
|
|
5722
|
+
- resource
|
|
5723
|
+
x-enumDescriptions:
|
|
5724
|
+
internal: Celigo's own processing; `message` points to Celigo Support and, at stage `init`, is a generic sentence that names no cause
|
|
5725
|
+
application: The source or destination application; `message` carries the application's own answer
|
|
5726
|
+
connection: A connection the run uses -- for example one that is offline or whose authorization has expired
|
|
5727
|
+
resource: The configuration of a resource the run uses, such as a connection's host name or a dataset's primary key
|
|
5689
5728
|
examples:
|
|
5690
|
-
-
|
|
5729
|
+
- application
|
|
5691
5730
|
code:
|
|
5692
5731
|
type: string
|
|
5693
5732
|
readOnly: true
|
|
@@ -5704,7 +5743,7 @@ components:
|
|
|
5704
5743
|
type: string
|
|
5705
5744
|
format: objectId
|
|
5706
5745
|
readOnly: true
|
|
5707
|
-
description: Dataset id associated with this error.
|
|
5746
|
+
description: Dataset id associated with this error. Absent on an error of the run itself.
|
|
5708
5747
|
examples:
|
|
5709
5748
|
- 6821c01c39db7c2b9cdc0e35
|
|
5710
5749
|
_syncId:
|
|
@@ -5726,7 +5765,7 @@ components:
|
|
|
5726
5765
|
type: string
|
|
5727
5766
|
format: objectId
|
|
5728
5767
|
readOnly: true
|
|
5729
|
-
description: Child (table-level) sync job id.
|
|
5768
|
+
description: Child (table-level) sync job id. Absent on an error of the run itself.
|
|
5730
5769
|
examples:
|
|
5731
5770
|
- 6821c01c39db7c2b9cdc0e31
|
|
5732
5771
|
flowExecutionGroupId:
|
|
@@ -5739,22 +5778,23 @@ components:
|
|
|
5739
5778
|
type: string
|
|
5740
5779
|
readOnly: true
|
|
5741
5780
|
description: |-
|
|
5742
|
-
Pipeline stage
|
|
5743
|
-
|
|
5744
|
-
|
|
5781
|
+
Pipeline stage that failed. `init` is the run's start-up, before any table work: it tests
|
|
5782
|
+
the source and destination connections (`di_ping_failure` when a test fails), then reads
|
|
5783
|
+
the source's objects and starts the datasets. `extract`, `transform` and `load` are the
|
|
5784
|
+
stages of one table.
|
|
5745
5785
|
examples:
|
|
5746
|
-
-
|
|
5786
|
+
- extract
|
|
5747
5787
|
- init
|
|
5748
5788
|
datasetName:
|
|
5749
5789
|
type: string
|
|
5750
5790
|
readOnly: true
|
|
5751
|
-
description: Human-readable dataset name.
|
|
5791
|
+
description: Human-readable dataset name. Absent on an error of the run itself.
|
|
5752
5792
|
examples:
|
|
5753
5793
|
- Salesforce Accounts
|
|
5754
5794
|
tableName:
|
|
5755
5795
|
type: string
|
|
5756
5796
|
readOnly: true
|
|
5757
|
-
description: Table name where the error occurred.
|
|
5797
|
+
description: Table name where the error occurred. Absent on an error of the run itself.
|
|
5758
5798
|
examples:
|
|
5759
5799
|
- accounts
|
|
5760
5800
|
occurredAt:
|
|
@@ -5765,8 +5805,8 @@ components:
|
|
|
5765
5805
|
examples:
|
|
5766
5806
|
- '2026-04-28T14:31:22.789Z'
|
|
5767
5807
|
examples:
|
|
5768
|
-
- scope:
|
|
5769
|
-
source:
|
|
5808
|
+
- scope: table
|
|
5809
|
+
source: application
|
|
5770
5810
|
code: INVALID_FIELD
|
|
5771
5811
|
message: No such column 'Custom_Field__c' on entity 'Account'.
|
|
5772
5812
|
_datasetId: 6821c01c39db7c2b9cdc0e35
|
|
@@ -5774,10 +5814,19 @@ components:
|
|
|
5774
5814
|
_parentSyncJobId: 6821c01c39db7c2b9cdc0e30
|
|
5775
5815
|
_childSyncJobId: 6821c01c39db7c2b9cdc0e31
|
|
5776
5816
|
flowExecutionGroupId: 6821c01c39db7c2b9cdc0e29
|
|
5777
|
-
stage:
|
|
5817
|
+
stage: extract
|
|
5778
5818
|
datasetName: Salesforce Accounts
|
|
5779
5819
|
tableName: accounts
|
|
5780
5820
|
occurredAt: '2026-04-28T14:31:22.789Z'
|
|
5821
|
+
- scope: sync
|
|
5822
|
+
source: resource
|
|
5823
|
+
code: di_ping_failure
|
|
5824
|
+
message: 'Unknown host: warehouse.example.invalid. We were unable to verify this host using a DNS lookup. Please check that you entered the correct host name. Error message: "getaddrinfo ENOTFOUND warehouse.example.invalid"'
|
|
5825
|
+
_syncId: 682094fa7eb7fc3e7ab7a4a0
|
|
5826
|
+
_parentSyncJobId: 6821c01c39db7c2b9cdc0e50
|
|
5827
|
+
flowExecutionGroupId: 6821c01c39db7c2b9cdc0e49
|
|
5828
|
+
stage: init
|
|
5829
|
+
occurredAt: '2026-04-28T16:00:33.504Z'
|
|
5781
5830
|
SyncEvent:
|
|
5782
5831
|
type: object
|
|
5783
5832
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -28781,12 +28781,15 @@ components:
|
|
|
28781
28781
|
name it in `dateField`, while HTTP exports and SQL queries carry {{lastExportDateTime}} in the
|
|
28782
28782
|
request and save without a delta object. Each run reads the window from {{lastExportDateTime}}
|
|
28783
28783
|
to {{currentExportDateTime}}: the flow's checkpoint and the time the run started, both less
|
|
28784
|
-
`lagOffset` when it is set. Until a run has exported records the flow has no
|
|
28785
|
-
{{lastExportDateTime}} is `startDate` itself, unshifted. A first run is not a full export: with
|
|
28784
|
+
`lagOffset` when it is set. Until a run has completed with exported records the flow has no
|
|
28785
|
+
checkpoint, and {{lastExportDateTime}} is `startDate` itself, unshifted. A first run is not a full export: with
|
|
28786
28786
|
no `startDate`, its {{lastExportDateTime}} is the run's own timestamp, so it picks up no
|
|
28787
|
-
earlier changes. The checkpoint moves to a run's start time only when the run
|
|
28788
|
-
|
|
28789
|
-
the next run reuses the last checkpoint.
|
|
28787
|
+
earlier changes. The checkpoint moves to a run's start time only when the run completes
|
|
28788
|
+
having exported records, so a run that exports nothing leaves it where it was, and after a
|
|
28789
|
+
failed run the next run reuses the last checkpoint. That includes an HTTP export that fails
|
|
28790
|
+
on a later page request after earlier pages have exported records: the next run sends the
|
|
28791
|
+
same {{lastExportDateTime}}, with its own start as {{currentExportDateTime}}. On success,
|
|
28792
|
+
when `POST /v1/flows/{_id}/run` sends
|
|
28790
28793
|
`export.endDate`, the flow's checkpoint is left at that value, so an end date in the past
|
|
28791
28794
|
moves the next run's lower bound back.
|
|
28792
28795
|
x-celigo-ai-guidance:
|
|
@@ -28811,7 +28814,7 @@ components:
|
|
|
28811
28814
|
default ``startDate`` to **today at midnight UTC** in ISO-8601 format
|
|
28812
28815
|
(e.g. ``"2026-05-14T00:00:00.000Z"``). This means the first run picks
|
|
28813
28816
|
up records changed today; subsequent runs use the platform-managed
|
|
28814
|
-
``{{lastExportDateTime}}`` (the start of the last run that exported records, less ``lagOffset``).
|
|
28817
|
+
``{{lastExportDateTime}}`` (the start of the last completed run that exported records, less ``lagOffset``).
|
|
28815
28818
|
|
|
28816
28819
|
- First run: filters records changed since ``startDate``.
|
|
28817
28820
|
- Subsequent runs: uses ``{{lastExportDateTime}}`` as the lower bound;
|
|
@@ -28827,7 +28830,7 @@ components:
|
|
|
28827
28830
|
2. The system automatically maintains the checkpoint
|
|
28828
28831
|
- No need to store or manage timestamps in your own code
|
|
28829
28832
|
- A first run without ``startDate`` fetches nothing older than the run itself
|
|
28830
|
-
- A run that
|
|
28833
|
+
- A run that completes having exported records moves the checkpoint to its start time. The next run
|
|
28831
28834
|
reads from the checkpoint less ``lagOffset``, which is this run's
|
|
28832
28835
|
{{currentExportDateTime}} while ``lagOffset`` is unchanged
|
|
28833
28836
|
- Use {{lastExportDateTime}} as the lower bound. {{currentExportDateTime}} as the
|
|
@@ -28837,13 +28840,16 @@ components:
|
|
|
28837
28840
|
|
|
28838
28841
|
3. Error handling and recovery:
|
|
28839
28842
|
- If an export fails, the next run reuses the last checkpoint
|
|
28840
|
-
-
|
|
28843
|
+
- An HTTP export that fails on a later page request, after earlier pages have exported
|
|
28844
|
+
records, leaves the checkpoint too: the next run sends the same {{lastExportDateTime}}
|
|
28845
|
+
with its own start as the upper bound, so no backfill run is needed
|
|
28841
28846
|
- A run that exports nothing leaves the checkpoint where it was, so after a stretch of
|
|
28842
28847
|
empty runs the next run that finds records reaches back to the last run that exported
|
|
28843
28848
|
any: once the cause is fixed, no backfill run is needed
|
|
28844
28849
|
- A run given its own window (export.startDate / export.endDate on
|
|
28845
|
-
POST /v1/flows/{_id}/run) that
|
|
28846
|
-
even a past one, so the next run re-reads everything after it
|
|
28850
|
+
POST /v1/flows/{_id}/run) that completes having exported records leaves the
|
|
28851
|
+
checkpoint at endDate, even a past one, so the next run re-reads everything after it;
|
|
28852
|
+
one whose HTTP export failed on a later page request left the checkpoint where it was
|
|
28847
28853
|
- ``lagOffset`` delays every window by its value, for a source that shows changes late
|
|
28848
28854
|
- |-
|
|
28849
28855
|
Omit this object for export types other than "delta". An HTTP export with type
|
|
@@ -28851,6 +28857,14 @@ components:
|
|
|
28851
28857
|
set ``startDate`` anyway: without it the first run's window is empty.
|
|
28852
28858
|
Delta exports are designed for efficient synchronization by retrieving only
|
|
28853
28859
|
records that have been created or modified since the last execution.
|
|
28860
|
+
- |-
|
|
28861
|
+
Verified live (2026-11-20, an HTTP delta export whose second page request was answered
|
|
28862
|
+
with HTTP 500 after the first page had exported a record): the export job and the flow
|
|
28863
|
+
job ended `failed` and `GET /v1/flows/{_id}/lastExportDateTime` was unchanged; the next
|
|
28864
|
+
run sent the same {{lastExportDateTime}} as the failed run and, completing, moved the
|
|
28865
|
+
checkpoint to its own start. The same failure on a flow's first run left the checkpoint
|
|
28866
|
+
`null`, and the next run sent `startDate` again. On a run given `export.startDate` /
|
|
28867
|
+
`export.endDate` it left the checkpoint where it was, not at `endDate`.
|
|
28854
28868
|
properties:
|
|
28855
28869
|
dateField:
|
|
28856
28870
|
type: string
|
|
@@ -29015,9 +29029,9 @@ components:
|
|
|
29015
29029
|
type: integer
|
|
29016
29030
|
description: |-
|
|
29017
29031
|
Milliseconds taken off a run's start time to give `{{currentExportDateTime}}`, the window's
|
|
29018
|
-
upper bound, and off the flow's checkpoint, the start time of the last run that
|
|
29019
|
-
records, to give `{{lastExportDateTime}}`, its lower bound. Until a run has
|
|
29020
|
-
there is no checkpoint, and the lower bound is `startDate` itself, unshifted, so a
|
|
29032
|
+
upper bound, and off the flow's checkpoint, the start time of the last completed run that
|
|
29033
|
+
exported records, to give `{{lastExportDateTime}}`, its lower bound. Until a run has
|
|
29034
|
+
completed with exported records there is no checkpoint, and the lower bound is `startDate` itself, unshifted, so a
|
|
29021
29035
|
`startDate` within the last `lagOffset` gives the run an empty window. While the value stays the same, windows stay back to back and nothing is read twice:
|
|
29022
29036
|
each record just reaches a run `lagOffset` later, after it has had that long to become
|
|
29023
29037
|
visible. Changing it moves the next window's start by the change: raising it re-reads the
|
|
@@ -29054,10 +29068,10 @@ components:
|
|
|
29054
29068
|
- 'null'
|
|
29055
29069
|
format: date-time
|
|
29056
29070
|
description: |-
|
|
29057
|
-
Lower-bound cutoff for the first run, and for every run until one
|
|
29071
|
+
Lower-bound cutoff for the first run, and for every run until one completes having exported records. Omitting it doesn't export history: the first run
|
|
29058
29072
|
then starts at its own timestamp, an empty window. Set it to the earliest change the first
|
|
29059
|
-
run should pick up. Later runs start from the flow's checkpoint, the start of the last
|
|
29060
|
-
that exported records (less `lagOffset`).
|
|
29073
|
+
run should pick up. Later runs start from the flow's checkpoint, the start of the last
|
|
29074
|
+
completed run that exported records (less `lagOffset`).
|
|
29061
29075
|
x-celigo-ai-guidance:
|
|
29062
29076
|
- |-
|
|
29063
29077
|
Initial cutoff timestamp for the first export run, in ISO-8601 UTC format (e.g.
|
|
@@ -29075,10 +29089,11 @@ components:
|
|
|
29075
29089
|
flow is being authored.
|
|
29076
29090
|
- |-
|
|
29077
29091
|
## SUBSEQUENT RUNS
|
|
29078
|
-
After the first run that
|
|
29079
|
-
flow's checkpoint at the start of the last run that exported records
|
|
29092
|
+
After the first run that completes having exported records, the platform keeps the
|
|
29093
|
+
flow's checkpoint at the start of the last completed run that exported records
|
|
29080
29094
|
and exposes it, less ``lagOffset``, as ``{{lastExportDateTime}}``; runs that export
|
|
29081
|
-
nothing leave it unchanged
|
|
29095
|
+
nothing leave it unchanged, and so did a run whose HTTP export failed on a later page
|
|
29096
|
+
request after an earlier page had exported a record. ``startDate`` becomes the floor used
|
|
29082
29097
|
only when the platform timestamp is absent (e.g. after a reset).
|
|
29083
29098
|
- |-
|
|
29084
29099
|
## EXAMPLES
|
package/package.json
CHANGED