@celigo/api-specs 0.2.324 → 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/sync.yml +85 -36
- package/package.json +1 -1
- package/schemas.json +1 -1
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/package.json
CHANGED