@celigo/api-specs 0.2.251 → 0.2.252
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/guardrail.yml +28 -7
- package/dist/import.yml +42 -11
- package/dist/tool.yml +42 -11
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/guardrail.yml
CHANGED
|
@@ -2072,13 +2072,30 @@ components:
|
|
|
2072
2072
|
- json
|
|
2073
2073
|
x-lowercase: true
|
|
2074
2074
|
x-enumDescriptions:
|
|
2075
|
-
string:
|
|
2076
|
-
number:
|
|
2077
|
-
boolean:
|
|
2078
|
-
numberarray:
|
|
2079
|
-
stringarray:
|
|
2080
|
-
json:
|
|
2081
|
-
description:
|
|
2075
|
+
string: The value as text; an array or object is flattened to text
|
|
2076
|
+
number: The digits and decimal point kept from the text, every other character dropped
|
|
2077
|
+
boolean: '`false`, `no`, `f` (any case) and an empty value become false; any other non-empty value becomes true'
|
|
2078
|
+
numberarray: A one-element array holding the value converted as `number`; delimited text and a real array are joined into that one element
|
|
2079
|
+
stringarray: A one-element array holding the value as text; delimited text and a real array are joined into that one element
|
|
2080
|
+
json: The rendered text parsed as JSON into a real array or object
|
|
2081
|
+
description: |-
|
|
2082
|
+
Conversion applied to the mapped value — the extracted value, or the Handlebars
|
|
2083
|
+
render, which is always text — before it is written. Omit it to write the value as the
|
|
2084
|
+
source delivers it (a source array stays an array). The array types never split text:
|
|
2085
|
+
a delimited string that must become a multi-element array is written by a `json` row
|
|
2086
|
+
whose extract renders JSON text, such as `[{{replace tags " " ""}}]`.
|
|
2087
|
+
x-celigo-ai-guidance:
|
|
2088
|
+
- |-
|
|
2089
|
+
A value outside the enum (`date`, `datetime`, `object`, `objectarray`,
|
|
2090
|
+
`booleanarray`) fails the import save with 422 `enum`; a date destination is
|
|
2091
|
+
`string` with `extractDateFormat` / `generateDateFormat`.
|
|
2092
|
+
- |-
|
|
2093
|
+
`number` drops the minus sign (`-3` is written as `3`) and `boolean` reads `"0"` as
|
|
2094
|
+
true; pass a signed number or a 0/1 flag through with no `dataType` instead.
|
|
2095
|
+
- |-
|
|
2096
|
+
Set `json` through the API: the mapping editor's data-type list does not include
|
|
2097
|
+
it (the Help Center's Mapper 1.0 article "Map source data fields to destination"
|
|
2098
|
+
lists Boolean, Date, Number, Number array, String and String array).
|
|
2082
2099
|
discardIfEmpty:
|
|
2083
2100
|
type: boolean
|
|
2084
2101
|
description: When true, the field is omitted from the output when the extracted value is empty.
|
|
@@ -2113,6 +2130,10 @@ components:
|
|
|
2113
2130
|
Use ``default``, not ``hardCodedValue``, for a fallback on a field that is
|
|
2114
2131
|
sometimes empty: ``hardCodedValue`` is written on every record and replaces
|
|
2115
2132
|
the values that exist.
|
|
2133
|
+
- |-
|
|
2134
|
+
The row's ``dataType`` converts the default too: a null default is written as
|
|
2135
|
+
null on a ``string``, ``json`` or untyped row — ``boolean`` writes false,
|
|
2136
|
+
``number`` writes 0 and the array types write an empty array.
|
|
2116
2137
|
extractDateFormat:
|
|
2117
2138
|
type: string
|
|
2118
2139
|
description: Date format of the source value, used to parse it before conversion.
|
package/dist/import.yml
CHANGED
|
@@ -16022,13 +16022,30 @@ components:
|
|
|
16022
16022
|
- json
|
|
16023
16023
|
x-lowercase: true
|
|
16024
16024
|
x-enumDescriptions:
|
|
16025
|
-
string:
|
|
16026
|
-
number:
|
|
16027
|
-
boolean:
|
|
16028
|
-
numberarray:
|
|
16029
|
-
stringarray:
|
|
16030
|
-
json:
|
|
16031
|
-
description:
|
|
16025
|
+
string: The value as text; an array or object is flattened to text
|
|
16026
|
+
number: The digits and decimal point kept from the text, every other character dropped
|
|
16027
|
+
boolean: '`false`, `no`, `f` (any case) and an empty value become false; any other non-empty value becomes true'
|
|
16028
|
+
numberarray: A one-element array holding the value converted as `number`; delimited text and a real array are joined into that one element
|
|
16029
|
+
stringarray: A one-element array holding the value as text; delimited text and a real array are joined into that one element
|
|
16030
|
+
json: The rendered text parsed as JSON into a real array or object
|
|
16031
|
+
description: |-
|
|
16032
|
+
Conversion applied to the mapped value — the extracted value, or the Handlebars
|
|
16033
|
+
render, which is always text — before it is written. Omit it to write the value as the
|
|
16034
|
+
source delivers it (a source array stays an array). The array types never split text:
|
|
16035
|
+
a delimited string that must become a multi-element array is written by a `json` row
|
|
16036
|
+
whose extract renders JSON text, such as `[{{replace tags " " ""}}]`.
|
|
16037
|
+
x-celigo-ai-guidance:
|
|
16038
|
+
- |-
|
|
16039
|
+
A value outside the enum (`date`, `datetime`, `object`, `objectarray`,
|
|
16040
|
+
`booleanarray`) fails the import save with 422 `enum`; a date destination is
|
|
16041
|
+
`string` with `extractDateFormat` / `generateDateFormat`.
|
|
16042
|
+
- |-
|
|
16043
|
+
`number` drops the minus sign (`-3` is written as `3`) and `boolean` reads `"0"` as
|
|
16044
|
+
true; pass a signed number or a 0/1 flag through with no `dataType` instead.
|
|
16045
|
+
- |-
|
|
16046
|
+
Set `json` through the API: the mapping editor's data-type list does not include
|
|
16047
|
+
it (the Help Center's Mapper 1.0 article "Map source data fields to destination"
|
|
16048
|
+
lists Boolean, Date, Number, Number array, String and String array).
|
|
16032
16049
|
discardIfEmpty:
|
|
16033
16050
|
type: boolean
|
|
16034
16051
|
description: When true, the field is omitted from the output when the extracted value is empty.
|
|
@@ -16063,6 +16080,10 @@ components:
|
|
|
16063
16080
|
Use ``default``, not ``hardCodedValue``, for a fallback on a field that is
|
|
16064
16081
|
sometimes empty: ``hardCodedValue`` is written on every record and replaces
|
|
16065
16082
|
the values that exist.
|
|
16083
|
+
- |-
|
|
16084
|
+
The row's ``dataType`` converts the default too: a null default is written as
|
|
16085
|
+
null on a ``string``, ``json`` or untyped row — ``boolean`` writes false,
|
|
16086
|
+
``number`` writes 0 and the array types write an empty array.
|
|
16066
16087
|
extractDateFormat:
|
|
16067
16088
|
type: string
|
|
16068
16089
|
description: Date format of the source value, used to parse it before conversion.
|
|
@@ -17832,10 +17853,12 @@ components:
|
|
|
17832
17853
|
|
|
17833
17854
|
This identifies the array itself — do NOT add bracket
|
|
17834
17855
|
notation here. Per-element semantics belong on the inner
|
|
17835
|
-
``fields[].extract`` paths
|
|
17836
|
-
record root
|
|
17837
|
-
|
|
17838
|
-
|
|
17856
|
+
``fields[].extract`` paths, which path-walk from the source
|
|
17857
|
+
record root: ``<array>[*].<field>`` iterates a source array
|
|
17858
|
+
on an object record, ``*.<field>`` iterates the rows of a
|
|
17859
|
+
grouped record (an array of rows). Dot notation IS allowed
|
|
17860
|
+
here when the destination places the array inside a parent
|
|
17861
|
+
object (e.g. ``order.lines``).
|
|
17839
17862
|
fields:
|
|
17840
17863
|
type: array
|
|
17841
17864
|
description: Field mappings applied within each generated list item.
|
|
@@ -17846,6 +17869,14 @@ components:
|
|
|
17846
17869
|
Per-element field mappings applied to each item in the extracted
|
|
17847
17870
|
array. Uses the same shape as top-level ``fields`` — same
|
|
17848
17871
|
extract / generate / lookupName / conditional semantics.
|
|
17872
|
+
- |-
|
|
17873
|
+
The iteration notation follows the record's shape (the two forms
|
|
17874
|
+
named on ``generate``): ``<array>[*].<field>`` on an object record;
|
|
17875
|
+
``*.<field>`` (``*.[Item SKU]``) on a grouped record — an array of
|
|
17876
|
+
rows, as a grouped saved search delivers — where a top-level
|
|
17877
|
+
``fields`` row reads the first row. In both shapes a child whose
|
|
17878
|
+
extract is a plain path to a scalar repeats that value on every
|
|
17879
|
+
element.
|
|
17849
17880
|
x-celigo-ai-guidance:
|
|
17850
17881
|
- |-
|
|
17851
17882
|
One source-array → destination-array projection. The destination is
|
package/dist/tool.yml
CHANGED
|
@@ -25470,13 +25470,30 @@ components:
|
|
|
25470
25470
|
- json
|
|
25471
25471
|
x-lowercase: true
|
|
25472
25472
|
x-enumDescriptions:
|
|
25473
|
-
string:
|
|
25474
|
-
number:
|
|
25475
|
-
boolean:
|
|
25476
|
-
numberarray:
|
|
25477
|
-
stringarray:
|
|
25478
|
-
json:
|
|
25479
|
-
description:
|
|
25473
|
+
string: The value as text; an array or object is flattened to text
|
|
25474
|
+
number: The digits and decimal point kept from the text, every other character dropped
|
|
25475
|
+
boolean: '`false`, `no`, `f` (any case) and an empty value become false; any other non-empty value becomes true'
|
|
25476
|
+
numberarray: A one-element array holding the value converted as `number`; delimited text and a real array are joined into that one element
|
|
25477
|
+
stringarray: A one-element array holding the value as text; delimited text and a real array are joined into that one element
|
|
25478
|
+
json: The rendered text parsed as JSON into a real array or object
|
|
25479
|
+
description: |-
|
|
25480
|
+
Conversion applied to the mapped value — the extracted value, or the Handlebars
|
|
25481
|
+
render, which is always text — before it is written. Omit it to write the value as the
|
|
25482
|
+
source delivers it (a source array stays an array). The array types never split text:
|
|
25483
|
+
a delimited string that must become a multi-element array is written by a `json` row
|
|
25484
|
+
whose extract renders JSON text, such as `[{{replace tags " " ""}}]`.
|
|
25485
|
+
x-celigo-ai-guidance:
|
|
25486
|
+
- |-
|
|
25487
|
+
A value outside the enum (`date`, `datetime`, `object`, `objectarray`,
|
|
25488
|
+
`booleanarray`) fails the import save with 422 `enum`; a date destination is
|
|
25489
|
+
`string` with `extractDateFormat` / `generateDateFormat`.
|
|
25490
|
+
- |-
|
|
25491
|
+
`number` drops the minus sign (`-3` is written as `3`) and `boolean` reads `"0"` as
|
|
25492
|
+
true; pass a signed number or a 0/1 flag through with no `dataType` instead.
|
|
25493
|
+
- |-
|
|
25494
|
+
Set `json` through the API: the mapping editor's data-type list does not include
|
|
25495
|
+
it (the Help Center's Mapper 1.0 article "Map source data fields to destination"
|
|
25496
|
+
lists Boolean, Date, Number, Number array, String and String array).
|
|
25480
25497
|
discardIfEmpty:
|
|
25481
25498
|
type: boolean
|
|
25482
25499
|
description: When true, the field is omitted from the output when the extracted value is empty.
|
|
@@ -25511,6 +25528,10 @@ components:
|
|
|
25511
25528
|
Use ``default``, not ``hardCodedValue``, for a fallback on a field that is
|
|
25512
25529
|
sometimes empty: ``hardCodedValue`` is written on every record and replaces
|
|
25513
25530
|
the values that exist.
|
|
25531
|
+
- |-
|
|
25532
|
+
The row's ``dataType`` converts the default too: a null default is written as
|
|
25533
|
+
null on a ``string``, ``json`` or untyped row — ``boolean`` writes false,
|
|
25534
|
+
``number`` writes 0 and the array types write an empty array.
|
|
25514
25535
|
extractDateFormat:
|
|
25515
25536
|
type: string
|
|
25516
25537
|
description: Date format of the source value, used to parse it before conversion.
|
|
@@ -27280,10 +27301,12 @@ components:
|
|
|
27280
27301
|
|
|
27281
27302
|
This identifies the array itself — do NOT add bracket
|
|
27282
27303
|
notation here. Per-element semantics belong on the inner
|
|
27283
|
-
``fields[].extract`` paths
|
|
27284
|
-
record root
|
|
27285
|
-
|
|
27286
|
-
|
|
27304
|
+
``fields[].extract`` paths, which path-walk from the source
|
|
27305
|
+
record root: ``<array>[*].<field>`` iterates a source array
|
|
27306
|
+
on an object record, ``*.<field>`` iterates the rows of a
|
|
27307
|
+
grouped record (an array of rows). Dot notation IS allowed
|
|
27308
|
+
here when the destination places the array inside a parent
|
|
27309
|
+
object (e.g. ``order.lines``).
|
|
27287
27310
|
fields:
|
|
27288
27311
|
type: array
|
|
27289
27312
|
description: Field mappings applied within each generated list item.
|
|
@@ -27294,6 +27317,14 @@ components:
|
|
|
27294
27317
|
Per-element field mappings applied to each item in the extracted
|
|
27295
27318
|
array. Uses the same shape as top-level ``fields`` — same
|
|
27296
27319
|
extract / generate / lookupName / conditional semantics.
|
|
27320
|
+
- |-
|
|
27321
|
+
The iteration notation follows the record's shape (the two forms
|
|
27322
|
+
named on ``generate``): ``<array>[*].<field>`` on an object record;
|
|
27323
|
+
``*.<field>`` (``*.[Item SKU]``) on a grouped record — an array of
|
|
27324
|
+
rows, as a grouped saved search delivers — where a top-level
|
|
27325
|
+
``fields`` row reads the first row. In both shapes a child whose
|
|
27326
|
+
extract is a plain path to a scalar repeats that value on every
|
|
27327
|
+
element.
|
|
27297
27328
|
x-celigo-ai-guidance:
|
|
27298
27329
|
- |-
|
|
27299
27330
|
One source-array → destination-array projection. The destination is
|
package/package.json
CHANGED