@celigo/api-specs 0.2.346 → 0.2.348
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 +84 -13
- package/dist/topic.yml +80 -1
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/sync.yml
CHANGED
|
@@ -1011,8 +1011,9 @@ paths:
|
|
|
1011
1011
|
(`dataset_externalId_id_required`), an `externalId` already exists on the sync
|
|
1012
1012
|
(`create_dataset_present`) or an `_id` does not belong to it
|
|
1013
1013
|
(`update_dataset_not_present`), `tableName` values collide
|
|
1014
|
-
(`duplicate_dataset_table_names`), or an export dataset
|
|
1015
|
-
different connection than the sync
|
|
1014
|
+
(`duplicate_dataset_table_names`), or an export dataset names an export that
|
|
1015
|
+
does not exist (`invalid_ref`) or that uses a different connection than the sync
|
|
1016
|
+
(`connection_mismatch`).
|
|
1016
1017
|
content:
|
|
1017
1018
|
application/json:
|
|
1018
1019
|
schema:
|
|
@@ -1052,6 +1053,13 @@ paths:
|
|
|
1052
1053
|
- field: ingestionMode
|
|
1053
1054
|
code: ingestion_mode_required_for_enabled_datasets
|
|
1054
1055
|
message: ingestionMode field is required for enabled datasets.
|
|
1056
|
+
transform_mode_without_children:
|
|
1057
|
+
summary: transformMode on an array of scalar values
|
|
1058
|
+
value:
|
|
1059
|
+
errors:
|
|
1060
|
+
- field: dataElements[1].collaborator_ids
|
|
1061
|
+
code: dataset_transform_mode_not_allowed
|
|
1062
|
+
message: collaborator_ids cannot have transformMode as they don't have thier own children
|
|
1055
1063
|
missing_delta_date_field:
|
|
1056
1064
|
summary: Delta dataset with a NetSuite record type and no date field
|
|
1057
1065
|
value:
|
|
@@ -4678,6 +4686,13 @@ components:
|
|
|
4678
4686
|
connection on a listed HTTP connector whose API or version is not the one
|
|
4679
4687
|
`GET /v1/di/metadata/sources` names. Omitting it fails with
|
|
4680
4688
|
`422 missing_source_connection`.
|
|
4689
|
+
x-celigo-ai-guidance:
|
|
4690
|
+
- |-
|
|
4691
|
+
A disabled sync that holds export-backed datasets accepts a change of this
|
|
4692
|
+
connection. The dataset list then flags those datasets with
|
|
4693
|
+
mismatchSyncConnection: true, and a new isExport dataset saves only for an
|
|
4694
|
+
export on the new connection — an export on the previous one fails with 400
|
|
4695
|
+
connection_mismatch.
|
|
4681
4696
|
examples:
|
|
4682
4697
|
- 6a2a95909e994395f3c2a4e6
|
|
4683
4698
|
destination:
|
|
@@ -4855,9 +4870,11 @@ components:
|
|
|
4855
4870
|
DataElement:
|
|
4856
4871
|
type: object
|
|
4857
4872
|
description: |-
|
|
4858
|
-
Per-column/field replication settings inside a dataset.
|
|
4859
|
-
|
|
4860
|
-
|
|
4873
|
+
Per-column/field replication settings inside a dataset. An element carries a
|
|
4874
|
+
`transformMode` exactly when it lists nested fields under `children`. An object
|
|
4875
|
+
or an array of objects lists them there, or is sent without them and then
|
|
4876
|
+
carries no `transformMode` either; a scalar column and an array of scalar values
|
|
4877
|
+
have none to list.
|
|
4861
4878
|
properties:
|
|
4862
4879
|
name:
|
|
4863
4880
|
type: string
|
|
@@ -4889,6 +4906,28 @@ components:
|
|
|
4889
4906
|
used as the parent key for arrays normalized into child tables under `append`
|
|
4890
4907
|
and `replace`. The element must also be enabled, and cannot carry `mask` or a
|
|
4891
4908
|
`transformMode`.
|
|
4909
|
+
x-celigo-ai-guidance:
|
|
4910
|
+
- |-
|
|
4911
|
+
isPrimaryKey: true on an element whose enable is false or omitted fails with
|
|
4912
|
+
422 dataset_invalid_primary_key_configuration; together with mask: true it
|
|
4913
|
+
fails with 422 dataset_primary_key_and_mask_not_allowed; and isPrimaryKey or
|
|
4914
|
+
mask on an element that carries a transformMode fails with 422
|
|
4915
|
+
dataset_primary_key_or_mask_not_allowed.
|
|
4916
|
+
- |-
|
|
4917
|
+
Under append or replace, a level that holds an enabled normalize array is
|
|
4918
|
+
checked for a key when it also has a candidate: an enabled scalar element of
|
|
4919
|
+
the level, or an enabled scalar child of a flatten object on it. One of the
|
|
4920
|
+
candidates must be isPrimaryKey, or the save fails with 422
|
|
4921
|
+
dataset_foreign_key_required_for_append_replace. A key that sits only under a
|
|
4922
|
+
preserve object does not count, and a level with no candidate saves.
|
|
4923
|
+
- |-
|
|
4924
|
+
Each level is judged on its own: the top of the dataset, the children of a
|
|
4925
|
+
flatten object, the children of a normalize array. A key on the top level
|
|
4926
|
+
does not serve an array nested below it.
|
|
4927
|
+
- |-
|
|
4928
|
+
Under merge a level below the top is not checked this way: a normalize array
|
|
4929
|
+
nested in a flatten object or in another normalize array saves without a key
|
|
4930
|
+
among that level's elements.
|
|
4892
4931
|
examples:
|
|
4893
4932
|
- true
|
|
4894
4933
|
transformMode:
|
|
@@ -4898,21 +4937,46 @@ components:
|
|
|
4898
4937
|
- flatten
|
|
4899
4938
|
- normalize
|
|
4900
4939
|
description: |-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
override it with another mode.
|
|
4940
|
+
How the nested fields of an element that lists `children` are loaded. Set it on
|
|
4941
|
+
every element that lists `children` and on no other — a scalar column and an
|
|
4942
|
+
array of scalar values take none. Children nested under a `preserve` parent
|
|
4943
|
+
cannot override it with another mode.
|
|
4905
4944
|
x-enumDescriptions:
|
|
4906
4945
|
preserve: Load the nested structure as a single semi-structured column.
|
|
4907
4946
|
flatten: Expand object keys into individual columns on the same table.
|
|
4908
4947
|
normalize: Split array items into a child table keyed back to the parent record.
|
|
4948
|
+
x-celigo-ai-guidance:
|
|
4949
|
+
- |-
|
|
4950
|
+
transformMode on an element that lists no children — a scalar column, an array
|
|
4951
|
+
of scalar values, or an element sent with an empty children array — fails the
|
|
4952
|
+
whole batch with 422 dataset_transform_mode_not_allowed, on a nested element as
|
|
4953
|
+
on a top-level one.
|
|
4954
|
+
- |-
|
|
4955
|
+
An element that lists children and carries no transformMode fails with 422
|
|
4956
|
+
dataset_transform_mode_required, on a nested element as on a top-level one.
|
|
4957
|
+
- |-
|
|
4958
|
+
A flatten or normalize child under a preserve parent fails with 422
|
|
4959
|
+
dataset_invalid_transform_mode_configuration; a preserve child saves.
|
|
4960
|
+
- |-
|
|
4961
|
+
An HTTP-connector object's details read can return transformMode: preserve on
|
|
4962
|
+
an array of scalar values, which lists no children, and no transformMode on an
|
|
4963
|
+
object or array that does list children. Decide from children, not from the
|
|
4964
|
+
read's mode: send a mode where the element lists children, none where it does
|
|
4965
|
+
not.
|
|
4909
4966
|
examples:
|
|
4910
4967
|
- flatten
|
|
4911
4968
|
children:
|
|
4912
4969
|
type: array
|
|
4913
4970
|
description: |-
|
|
4914
|
-
Nested
|
|
4915
|
-
`transformMode`;
|
|
4971
|
+
Nested fields of an object or an array of objects, each one a data element of
|
|
4972
|
+
its own. Sent together with `transformMode`; a scalar column and an array of
|
|
4973
|
+
scalar values have none, and a dataset read returns them with an empty array.
|
|
4974
|
+
x-celigo-ai-guidance:
|
|
4975
|
+
- |-
|
|
4976
|
+
An object or an array of objects sent as a scalar element — no children, no
|
|
4977
|
+
transformMode — saves (201) with an empty children array. The sync's details
|
|
4978
|
+
read then returns that column with transformMode preserve and its nested
|
|
4979
|
+
fields enabled.
|
|
4916
4980
|
items:
|
|
4917
4981
|
$ref: '#/components/schemas/DataElement'
|
|
4918
4982
|
Dataset:
|
|
@@ -5141,10 +5205,17 @@ components:
|
|
|
5141
5205
|
Build each update item from the dataset's read-back, minus externalId and the read-only
|
|
5142
5206
|
fields.
|
|
5143
5207
|
- |-
|
|
5144
|
-
|
|
5145
|
-
doesn't list
|
|
5208
|
+
A source-table item (no isExport) is not checked against the source at save: an
|
|
5209
|
+
externalId the catalog doesn't list — an export's ID sent without isExport: true
|
|
5210
|
+
included — and dataElements names a catalog table doesn't have (even an enabled
|
|
5146
5211
|
merge key), save without an error. Take externalId values from the connection's
|
|
5147
5212
|
dataset catalog and column names from its details read.
|
|
5213
|
+
- |-
|
|
5214
|
+
An isExport: true item's externalId is checked: an ID no export has fails with 400
|
|
5215
|
+
invalid_ref ("Export not found."), and an export on another connection than the
|
|
5216
|
+
sync's source fails with 400 connection_mismatch. Its dataElements names are not: a
|
|
5217
|
+
name the export's records don't have (even an enabled merge key) saves without an
|
|
5218
|
+
error.
|
|
5148
5219
|
properties:
|
|
5149
5220
|
_id:
|
|
5150
5221
|
type: string
|
package/dist/topic.yml
CHANGED
|
@@ -1155,7 +1155,11 @@ paths:
|
|
|
1155
1155
|
Returns the resources that reference the topic: `exports` and `imports` bound to it through
|
|
1156
1156
|
`topic._topicId`, `flows` that contain those steps, and `integrations` that list it in
|
|
1157
1157
|
`_registeredTopicIds`. Exports and imports listed here block `DELETE /v1/topics/{_id}` until they
|
|
1158
|
-
are removed or repointed.
|
|
1158
|
+
are removed or repointed. A flow entry says how the flow uses the step: its `paths` is
|
|
1159
|
+
`pageGenerators[*]._exportId` for a listener that is one of the flow's sources and
|
|
1160
|
+
`pageProcessors[*]._importId` for a publish step, and its `dependencyIds` names that export or
|
|
1161
|
+
import. An integration entry lists the flows of the answer that belong to it in
|
|
1162
|
+
`dependencyIds.flow`.
|
|
1159
1163
|
parameters:
|
|
1160
1164
|
- name: _id
|
|
1161
1165
|
in: path
|
|
@@ -1198,11 +1202,86 @@ paths:
|
|
|
1198
1202
|
dependencyIds:
|
|
1199
1203
|
topic:
|
|
1200
1204
|
- 6aab2870265e1cf39fcbee4d
|
|
1205
|
+
listening_and_publishing_flows:
|
|
1206
|
+
summary: Topic with a flow that listens to it and a flow that publishes to it
|
|
1207
|
+
value:
|
|
1208
|
+
exports:
|
|
1209
|
+
- id: 6ab1f5b671fc8127d374d4ed
|
|
1210
|
+
name: Orders created listener
|
|
1211
|
+
type: stream
|
|
1212
|
+
paths:
|
|
1213
|
+
- topic._topicId
|
|
1214
|
+
accessLevel: manage
|
|
1215
|
+
dependencyIds:
|
|
1216
|
+
topic:
|
|
1217
|
+
- 6aab2870265e1cf39fcbee4d
|
|
1218
|
+
imports:
|
|
1219
|
+
- id: 6ab1f6c271fc8127d374d51a
|
|
1220
|
+
name: Publish order created
|
|
1221
|
+
paths:
|
|
1222
|
+
- topic._topicId
|
|
1223
|
+
accessLevel: manage
|
|
1224
|
+
dependencyIds:
|
|
1225
|
+
topic:
|
|
1226
|
+
- 6aab2870265e1cf39fcbee4d
|
|
1227
|
+
flows:
|
|
1228
|
+
- id: 6ab1f5b771fc8127d374d4f6
|
|
1229
|
+
name: Orders created to fulfillment
|
|
1230
|
+
paths:
|
|
1231
|
+
- pageGenerators[*]._exportId
|
|
1232
|
+
accessLevel: manage
|
|
1233
|
+
dependencyIds:
|
|
1234
|
+
export:
|
|
1235
|
+
- 6ab1f5b671fc8127d374d4ed
|
|
1236
|
+
- id: 6ab1f6c371fc8127d374d523
|
|
1237
|
+
name: Storefront orders to topic
|
|
1238
|
+
paths:
|
|
1239
|
+
- pageProcessors[*]._importId
|
|
1240
|
+
accessLevel: manage
|
|
1241
|
+
dependencyIds:
|
|
1242
|
+
import:
|
|
1243
|
+
- 6ab1f6c271fc8127d374d51a
|
|
1244
|
+
integrations:
|
|
1245
|
+
- id: 6ab1f4a138d7733b45998d99
|
|
1246
|
+
name: Order fulfillment
|
|
1247
|
+
paths:
|
|
1248
|
+
- _registeredTopicIds[*]
|
|
1249
|
+
accessLevel: manage
|
|
1250
|
+
dependencyIds:
|
|
1251
|
+
topic:
|
|
1252
|
+
- 6aab2870265e1cf39fcbee4d
|
|
1253
|
+
flow:
|
|
1254
|
+
- 6ab1f5b771fc8127d374d4f6
|
|
1255
|
+
- 6ab1f6c371fc8127d374d523
|
|
1201
1256
|
empty:
|
|
1202
1257
|
summary: Nothing references the topic
|
|
1203
1258
|
value: {}
|
|
1259
|
+
'400':
|
|
1260
|
+
description: '`_id` is not a 24-character hexadecimal ObjectId. Error code: `invalid_ref`.'
|
|
1261
|
+
content:
|
|
1262
|
+
application/json:
|
|
1263
|
+
schema:
|
|
1264
|
+
$ref: '#/components/schemas/Error'
|
|
1265
|
+
examples:
|
|
1266
|
+
malformed_id:
|
|
1267
|
+
value:
|
|
1268
|
+
errors:
|
|
1269
|
+
- code: invalid_ref
|
|
1270
|
+
message: Please provide a valid _id.
|
|
1204
1271
|
'401':
|
|
1205
1272
|
$ref: '#/components/responses/401-unauthorized'
|
|
1273
|
+
'404':
|
|
1274
|
+
description: 'No topic has this id. Error code: `invalid_ref`.'
|
|
1275
|
+
content:
|
|
1276
|
+
application/json:
|
|
1277
|
+
schema:
|
|
1278
|
+
$ref: '#/components/schemas/Error'
|
|
1279
|
+
examples:
|
|
1280
|
+
not_found:
|
|
1281
|
+
value:
|
|
1282
|
+
errors:
|
|
1283
|
+
- code: invalid_ref
|
|
1284
|
+
message: Topic not found.
|
|
1206
1285
|
components:
|
|
1207
1286
|
securitySchemes:
|
|
1208
1287
|
bearerAuth:
|
package/package.json
CHANGED