@celigo/api-specs 0.2.322 → 0.2.324
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 +55 -9
- package/dist/export.yml +34 -19
- package/dist/flow.yml +16 -9
- package/dist/tool.yml +34 -19
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/connection.yml
CHANGED
|
@@ -10597,7 +10597,10 @@ components:
|
|
|
10597
10597
|
storage connection (`assistant: celigofilestorage`) may reach in the account: the
|
|
10598
10598
|
account's custom APIs, listeners, standard integrator.io APIs and Celigo Storage
|
|
10599
10599
|
folders. Neither connection can be created without it — the rule keys on the body
|
|
10600
|
-
`assistant
|
|
10600
|
+
`assistant`. The caller's role decides which scope a save may carry: the account
|
|
10601
|
+
owner and administrators save any `type`, and their update that omits `accessScope`
|
|
10602
|
+
leaves the stored scope unchanged; a user with Manage access saves `integration`
|
|
10603
|
+
only, for integrations they manage, and re-sends it on every PUT. A File
|
|
10601
10604
|
storage connection's `custom` scope takes Celigo Storage folders only: a non-empty
|
|
10602
10605
|
`_apiIds` or `_exportIds` on it fails with 422 `invalid_access_scope` ("<field> is not
|
|
10603
10606
|
supported on access scopes for this connector."). The connection document never
|
|
@@ -10614,7 +10617,7 @@ components:
|
|
|
10614
10617
|
x-enumDescriptions:
|
|
10615
10618
|
full: Every custom API, listener and standard integrator.io API in the account, and every Celigo Storage folder
|
|
10616
10619
|
custom: Only the APIs, listeners and Celigo Storage folders listed in the sibling arrays
|
|
10617
|
-
integration: The standard integrator.io APIs
|
|
10620
|
+
integration: The standard integrator.io APIs for the resources of the integrations listed in `_integrationIds`, and those integrations' system folders in Celigo Storage
|
|
10618
10621
|
description: |-
|
|
10619
10622
|
How much of the account the connection may reach. Each type takes its own
|
|
10620
10623
|
selections: `full` takes none, `custom` takes APIs, listeners and folder paths,
|
|
@@ -10642,7 +10645,8 @@ components:
|
|
|
10642
10645
|
description: |-
|
|
10643
10646
|
Integrations whose resources — the integration, its flows and their errors, its
|
|
10644
10647
|
exports, imports and connections — the connection may reach through the standard
|
|
10645
|
-
integrator.io APIs
|
|
10648
|
+
integrator.io APIs, and whose system folders it may read and write in Celigo
|
|
10649
|
+
Storage. Present when `type` is `integration`.
|
|
10646
10650
|
_fileStoragePaths:
|
|
10647
10651
|
type: array
|
|
10648
10652
|
items:
|
|
@@ -10698,9 +10702,40 @@ components:
|
|
|
10698
10702
|
x-celigo-ai-guidance:
|
|
10699
10703
|
- |-
|
|
10700
10704
|
A Celigo APIs connection POST without `accessScope` fails with 422 `missing_required_field`
|
|
10701
|
-
("Scope is required for this connection. Please select Full access or Custom.")
|
|
10702
|
-
|
|
10703
|
-
|
|
10705
|
+
("Scope is required for this connection. Please select Full access or Custom."). As the
|
|
10706
|
+
account owner and as an administrator, a PUT without it answered 200 on a connection of
|
|
10707
|
+
each stored scope, on both connectors, and the stored scope read back unchanged. A
|
|
10708
|
+
`type` outside the enum fails with 422 `enum`.
|
|
10709
|
+
- |-
|
|
10710
|
+
The caller's role limits the `type` a save may carry, on both connectors. As the account
|
|
10711
|
+
owner and as an administrator, POST of a Celigo APIs connection and of a Celigo File
|
|
10712
|
+
storage connection with `full`, with `custom` and with `integration` answered 201. As a
|
|
10713
|
+
user with Manage access — account-wide, on one integration, or Monitor account-wide
|
|
10714
|
+
with Manage on one integration — POST with `type: integration` listing an integration
|
|
10715
|
+
the user manages answered 201, and POST with `full` answered 403 `access_restricted`
|
|
10716
|
+
("You don't have the right to perform this action. Please contact your account
|
|
10717
|
+
administrator to receive manage permission for this account."); with account-wide
|
|
10718
|
+
Manage, POST with `custom` or with no `accessScope` answered the same 403. `integration`
|
|
10719
|
+
listing an integration the user does not manage answered 403 `invalid_access`. For
|
|
10720
|
+
such a caller send `integration` with the integrations the connection is for; a `full`
|
|
10721
|
+
or `custom` connection is the account owner's or an administrator's to create.
|
|
10722
|
+
- |-
|
|
10723
|
+
For a user with Manage access, a PUT of a connection whose stored scope is `full` or
|
|
10724
|
+
`custom` answered that 403 whether the body left `accessScope` out or carried
|
|
10725
|
+
`integration`, and a PUT of an `integration` connection answered 200 only when the
|
|
10726
|
+
body carried `accessScope` with `type: integration` — without it, or with `full` or
|
|
10727
|
+
`custom`, the same 403. Read the stored scope and re-send it on every PUT. `PATCH` of
|
|
10728
|
+
`/name` answered 204 on a connection of each scope and `PATCH` of
|
|
10729
|
+
`/http/concurrencyLevel` on a `full` and an `integration` connection; DELETE answered
|
|
10730
|
+
204 on an `integration` connection and the same 403 on a `full` or `custom` one. As an
|
|
10731
|
+
administrator, DELETE of a `full` and of a `custom` connection answered 204.
|
|
10732
|
+
- |-
|
|
10733
|
+
That 403 sentence asks for manage permission whatever the caller holds: a caller who
|
|
10734
|
+
already has Manage access received it on each refused request above. A user with
|
|
10735
|
+
Monitor access and no Manage grant was refused each create — of an ordinary connection
|
|
10736
|
+
and of a Celigo APIs connection — with 403 `access_restricted` and another sentence
|
|
10737
|
+
("The role which you are associated with doesn't have the required permissions to
|
|
10738
|
+
perform the action.").
|
|
10704
10739
|
- |-
|
|
10705
10740
|
Each mismatch between `type` and the selections fails with 422 `invalid_access_scope` and
|
|
10706
10741
|
names the field: `full` with any of `_apiIds`, `_exportIds`, `_integrationIds` or
|
|
@@ -10711,11 +10746,21 @@ components:
|
|
|
10711
10746
|
- |-
|
|
10712
10747
|
Choose the narrowest `type` the connection's use needs: a flow that reads or writes Celigo
|
|
10713
10748
|
Storage files → `custom` with the folder paths it uses (`/Reports/` grants that folder and
|
|
10714
|
-
everything beneath it)
|
|
10749
|
+
everything beneath it), or `integration` when the files live in that integration's
|
|
10750
|
+
system folder; specific custom APIs or listeners → `custom` with their ids; a
|
|
10715
10751
|
flow that reads one integration's resources through the standard integrator.io REST APIs
|
|
10716
10752
|
(its flows, a flow's errors) → `integration` with that integration; the standard APIs
|
|
10717
10753
|
across the account → `full`. A `custom` connection with `_fileStoragePaths` omitted or
|
|
10718
10754
|
empty has no storage access — its storage step fails at run time with 401.
|
|
10755
|
+
- |-
|
|
10756
|
+
Through an `integration` connection of either connector, `GET /v1/storage/items?type=folder`
|
|
10757
|
+
at the account root listed only the listed integration's system folder. Listing inside
|
|
10758
|
+
that folder answered 200, `POST /v1/storage/items` with it as `_parentId` answered 201,
|
|
10759
|
+
and `POST /v1/storage/files/initiateUpload` into it answered 200. The same list and
|
|
10760
|
+
create against another integration's system folder and against a folder at the account
|
|
10761
|
+
root, a create at the account root itself, and an upload into a folder at the root
|
|
10762
|
+
each answered 403 `STORAGE_INTEGRATION_ACCESS_DENIED` ("You do not have access to this
|
|
10763
|
+
folder").
|
|
10719
10764
|
- |-
|
|
10720
10765
|
Through a `custom` connection listing one listener, `POST /v1/exports/{_id}/data` to
|
|
10721
10766
|
that listener answered 204, while `GET /v1/exports/{_id}` for the same listener,
|
|
@@ -10735,8 +10780,9 @@ components:
|
|
|
10735
10780
|
- |-
|
|
10736
10781
|
A Celigo File storage connection (`type: http`, `assistant: celigofilestorage`) POST
|
|
10737
10782
|
without `accessScope` fails with 422 `missing_required_field` ("Scope is required for
|
|
10738
|
-
this connection. Please select Full access or Custom."): send `{type: full}
|
|
10739
|
-
`{type: custom, _fileStoragePaths: [...]}
|
|
10783
|
+
this connection. Please select Full access or Custom."): send `{type: full}`,
|
|
10784
|
+
`{type: custom, _fileStoragePaths: [...]}` or `{type: integration, _integrationIds: [...]}`.
|
|
10785
|
+
A non-empty `_apiIds` or `_exportIds` on
|
|
10740
10786
|
it fails, on POST and PUT, with 422 `invalid_access_scope` ("_apiIds is not supported
|
|
10741
10787
|
on access scopes for this connector."). The save fills `http._httpConnectorId` and
|
|
10742
10788
|
`http._httpConnectorVersionId` from the connector whose `legacyId` is
|
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/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