@celigo/api-specs 0.2.347 → 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 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's export uses a
1015
- different connection than the sync (`connection_mismatch`).
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. Elements with nested
4859
- structure (objects or arrays) carry a `transformMode` and a `children` array;
4860
- scalar elements carry neither.
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
- Only set on elements with `children` — it controls how the nested structure is
4902
- loaded. Setting it on a scalar element fails validation, as does omitting it on
4903
- an element that has children. Children nested under a `preserve` parent cannot
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 elements of an object or array field. Present together with
4915
- `transformMode`; empty for scalar columns.
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
- Selections are not checked against the source at save: an externalId the catalog
5145
- doesn't list, and dataElements names a catalog table doesn't have (even an enabled
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.347",
3
+ "version": "0.2.348",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "d1aed1d9",
4
+ "iasCommit": "574d116b",
5
5
  "generatedAt": "2026-11-24"
6
6
  },
7
7
  "roots": {