@celigo/api-specs 0.2.323 → 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/export.yml +34 -19
- package/dist/flow.yml +16 -9
- 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/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