@celigo/api-specs 0.2.356 → 0.2.358
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 +47 -17
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/sync.yml
CHANGED
|
@@ -935,7 +935,8 @@ paths:
|
|
|
935
935
|
Creates and updates a sync's datasets in one batch. Each array item either creates
|
|
936
936
|
a dataset (identified by `externalId`) or updates one (identified by `_id`); a
|
|
937
937
|
single request can mix both. An update replaces the dataset's `name`, `tableName` and
|
|
938
|
-
`exportProperties` with what the item carries, so send each item whole
|
|
938
|
+
`exportProperties` with what the item carries, so send each item whole; an
|
|
939
|
+
export-backed dataset's item carries no `exportProperties`. One failing
|
|
939
940
|
item rejects the whole batch, valid items included, and datasets the batch doesn't
|
|
940
941
|
name are left unchanged. The response body is empty — read back the saved datasets
|
|
941
942
|
with `GET /v1/syncs/{_syncId}/datasets`.
|
|
@@ -1039,8 +1040,12 @@ paths:
|
|
|
1039
1040
|
or disable the conflicting source columns), an update changes a dataset's
|
|
1040
1041
|
`isExport` (`is_export_update_not_allowed`), a `delta` dataset that carries a
|
|
1041
1042
|
`netsuite.recordType` has no `delta.dateField`
|
|
1042
|
-
(`dataset_export_properties_date_field_missing`),
|
|
1043
|
-
|
|
1043
|
+
(`dataset_export_properties_date_field_missing`), an export-backed dataset carries
|
|
1044
|
+
an `exportProperties.type` or `delta.dateField`
|
|
1045
|
+
(`dataset_export_properties_not_allowed`), has no `tableName`
|
|
1046
|
+
(`dataset_table_name_required`) or is created with no `dataElements`
|
|
1047
|
+
(`dataset_data_elements_required`), or a data-element combination is invalid (e.g.
|
|
1048
|
+
`transformMode` without children, or `isPrimaryKey` with `mask`).
|
|
1044
1049
|
content:
|
|
1045
1050
|
application/json:
|
|
1046
1051
|
schema:
|
|
@@ -1060,6 +1065,13 @@ paths:
|
|
|
1060
1065
|
- field: dataElements[1].collaborator_ids
|
|
1061
1066
|
code: dataset_transform_mode_not_allowed
|
|
1062
1067
|
message: collaborator_ids cannot have transformMode as they don't have thier own children
|
|
1068
|
+
extract_setting_on_export_dataset:
|
|
1069
|
+
summary: Export-backed dataset sent with an extract type
|
|
1070
|
+
value:
|
|
1071
|
+
errors:
|
|
1072
|
+
- field: exportProperties
|
|
1073
|
+
code: dataset_export_properties_not_allowed
|
|
1074
|
+
message: Export properties are not allowed if isExport is true.
|
|
1063
1075
|
missing_delta_date_field:
|
|
1064
1076
|
summary: Delta dataset with a NetSuite record type and no date field
|
|
1065
1077
|
value:
|
|
@@ -5082,18 +5094,18 @@ components:
|
|
|
5082
5094
|
When true, the dataset's records come from an existing export resource instead
|
|
5083
5095
|
of a source table; `externalId` then holds the export ID, and the export must
|
|
5084
5096
|
use the sync's source connection. Export datasets require `tableName` and an
|
|
5085
|
-
explicit `dataElements` selection, and
|
|
5086
|
-
after creation (422 `is_export_update_not_allowed`).
|
|
5097
|
+
explicit `dataElements` selection, and take no extract setting in
|
|
5098
|
+
`exportProperties`. Immutable after creation (422 `is_export_update_not_allowed`).
|
|
5087
5099
|
examples:
|
|
5088
5100
|
- false
|
|
5089
5101
|
exportProperties:
|
|
5090
5102
|
type: object
|
|
5091
5103
|
description: |-
|
|
5092
5104
|
Extraction behavior for the dataset. Only configurable on source-table
|
|
5093
|
-
datasets
|
|
5094
|
-
|
|
5095
|
-
(`{"delta": {}}
|
|
5096
|
-
|
|
5105
|
+
datasets: an export-backed dataset (`isExport: true`) follows its export's own
|
|
5106
|
+
configuration, so a `type` or a `delta.dateField` sent for one fails validation,
|
|
5107
|
+
and what a read returns here for one is platform-generated (`{"delta": {}}` on a
|
|
5108
|
+
dataset saved without it), not a setting of the dataset.
|
|
5097
5109
|
properties:
|
|
5098
5110
|
type:
|
|
5099
5111
|
type: string
|
|
@@ -5185,7 +5197,9 @@ components:
|
|
|
5185
5197
|
update — providing both or neither fails with `400 dataset_externalId_id_required`.
|
|
5186
5198
|
An update replaces `name`, `tableName` and `exportProperties` with what the item
|
|
5187
5199
|
carries, clearing any it omits; an omitted `ingestionMode` or `dataElements` keeps its
|
|
5188
|
-
saved value. Send each update item whole
|
|
5200
|
+
saved value. Send each update item whole — except `exportProperties` on an
|
|
5201
|
+
export-backed dataset (`isExport: true`), which takes no extract setting: its item
|
|
5202
|
+
omits the property, and the dataset reads back the stub `{"delta": {}}`.
|
|
5189
5203
|
x-celigo-ai-guidance:
|
|
5190
5204
|
- |-
|
|
5191
5205
|
Create items with externalId only; update items with _id only. Sending both on one
|
|
@@ -5200,10 +5214,11 @@ components:
|
|
|
5200
5214
|
To scaffold a dataset without replicating it yet, send name, externalId, enable: false
|
|
5201
5215
|
and no dataElements — the platform then replicates all columns once enabled.
|
|
5202
5216
|
- |-
|
|
5203
|
-
A partial update item such as {_id, enable: false} is accepted
|
|
5204
|
-
name and
|
|
5205
|
-
Build each update item from the
|
|
5206
|
-
fields
|
|
5217
|
+
A partial update item such as {_id, enable: false} is accepted on a source-table dataset
|
|
5218
|
+
and clears its name, tableName and exportProperties.type; on an export-backed dataset
|
|
5219
|
+
it fails with 422 dataset_table_name_required. Build each update item from the
|
|
5220
|
+
dataset's read-back, minus externalId and the read-only fields — and, on an
|
|
5221
|
+
export-backed dataset, minus exportProperties.
|
|
5207
5222
|
- |-
|
|
5208
5223
|
A source-table item (no isExport) is not checked against the source at save: an
|
|
5209
5224
|
externalId the catalog doesn't list — an export's ID sent without isExport: true
|
|
@@ -5279,7 +5294,8 @@ components:
|
|
|
5279
5294
|
When true, the dataset's records come from an existing export resource:
|
|
5280
5295
|
`externalId` must be the export's ID, the export must use the sync's source
|
|
5281
5296
|
connection (`400 connection_mismatch`), and the item must include `tableName`
|
|
5282
|
-
and `dataElements`
|
|
5297
|
+
and `dataElements` and takes no extract setting in `exportProperties`. Fixed when
|
|
5298
|
+
the dataset is created:
|
|
5283
5299
|
an update that changes it fails with `422 is_export_update_not_allowed` ("isExport
|
|
5284
5300
|
field cannot be updated after dataset is created."). Omitting it on update, or
|
|
5285
5301
|
sending `false` or `null` for a dataset created without it, is not a change.
|
|
@@ -5288,8 +5304,22 @@ components:
|
|
|
5288
5304
|
exportProperties:
|
|
5289
5305
|
type: object
|
|
5290
5306
|
description: |-
|
|
5291
|
-
Extraction behavior for
|
|
5292
|
-
with `isExport: true`
|
|
5307
|
+
Extraction behavior for a source-table dataset. An export-backed dataset follows
|
|
5308
|
+
its export's own configuration: on an item sent with `isExport: true`, a `type` or
|
|
5309
|
+
a `delta.dateField` fails with `422 dataset_export_properties_not_allowed`, while
|
|
5310
|
+
an empty object is accepted.
|
|
5311
|
+
x-celigo-ai-guidance:
|
|
5312
|
+
- |-
|
|
5313
|
+
Leave exportProperties out of an export-backed item, on a create and on an update,
|
|
5314
|
+
and do not copy it from the dataset's read-back: with isExport: true, a type or a
|
|
5315
|
+
delta.dateField fails the whole request with 422
|
|
5316
|
+
dataset_export_properties_not_allowed ("Export properties are not allowed if
|
|
5317
|
+
isExport is true.").
|
|
5318
|
+
- |-
|
|
5319
|
+
On an export-backed item, exportProperties sent as {}, {"delta": {}} or null is
|
|
5320
|
+
accepted and stores nothing: the dataset reads back {"delta": {}}. An update item
|
|
5321
|
+
that omits isExport stays export-backed, and a type sent with it is accepted and
|
|
5322
|
+
not stored.
|
|
5293
5323
|
properties:
|
|
5294
5324
|
type:
|
|
5295
5325
|
type: string
|
package/package.json
CHANGED