@celigo/api-specs 0.2.253 → 0.2.254
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/import.yml +79 -1
- package/dist/tool.yml +79 -1
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/import.yml
CHANGED
|
@@ -4182,6 +4182,21 @@ components:
|
|
|
4182
4182
|
renders an empty string, not the value.
|
|
4183
4183
|
examples:
|
|
4184
4184
|
- address.city
|
|
4185
|
+
x-celigo-ai-guidance:
|
|
4186
|
+
- |-
|
|
4187
|
+
A Handlebars `extract` is evaluated by the Celigo bundle
|
|
4188
|
+
installed in the NetSuite account, which knows fewer
|
|
4189
|
+
helpers than the platform's Handlebars catalog: a helper
|
|
4190
|
+
it lacks (`pluck`, `eq`, `isEmpty`, `startsWith`,
|
|
4191
|
+
`jsonParse` and others) fails the record in the mapping
|
|
4192
|
+
preview and at runtime with
|
|
4193
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Missing helper:
|
|
4194
|
+
"<name>"`, although the same expression renders on the
|
|
4195
|
+
platform's Handlebars processor (the Playground). Prove
|
|
4196
|
+
a row with the mapping preview, and on that error switch
|
|
4197
|
+
helper rather than retry — see
|
|
4198
|
+
`mapping.lists[].fields[].extract` for examples of
|
|
4199
|
+
helpers observed present and missing.
|
|
4185
4200
|
generate:
|
|
4186
4201
|
type: string
|
|
4187
4202
|
description: |
|
|
@@ -4545,6 +4560,46 @@ components:
|
|
|
4545
4560
|
the number: `#if` treats a real `0` rate as empty.
|
|
4546
4561
|
The same expression on a body row (`fields[]`) renders
|
|
4547
4562
|
the first line's value only.
|
|
4563
|
+
- |-
|
|
4564
|
+
The engine evaluating a Handlebars `extract` is the
|
|
4565
|
+
Celigo bundle installed in the NetSuite account,
|
|
4566
|
+
whose helper set is smaller than the platform's
|
|
4567
|
+
Handlebars catalog. A helper the bundle
|
|
4568
|
+
lacks fails the record — in the mapping preview and
|
|
4569
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
4570
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
4571
|
+
"Missing helper: "<name>""`, and the record is
|
|
4572
|
+
dropped. Helpers observed missing on the probed
|
|
4573
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
4574
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
4575
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
4576
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
4577
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
4578
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
4579
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
4580
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
4581
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
4582
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
4583
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
4584
|
+
`#with` — examples, not the set: a helper named in
|
|
4585
|
+
neither list is proven only by the preview. The same
|
|
4586
|
+
expression renders on the platform's Handlebars
|
|
4587
|
+
processor (the Playground), so a render there proves
|
|
4588
|
+
nothing about this engine — the mapping preview is
|
|
4589
|
+
the check, and on a `Missing helper` error switch
|
|
4590
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
4591
|
+
sum of its `tax_lines[].price`) no probed form
|
|
4592
|
+
produced it: `pluck` is missing, `{{sum
|
|
4593
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
4594
|
+
multi-argument `sum` keeps only its first argument
|
|
4595
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
4596
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
4597
|
+
value arriving on the line already computed (the
|
|
4598
|
+
step producing the record, or an Integration App's
|
|
4599
|
+
own hook), or on fixed positions:
|
|
4600
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
4601
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
4602
|
+
two prices added.
|
|
4548
4603
|
generate:
|
|
4549
4604
|
type: string
|
|
4550
4605
|
description: |-
|
|
@@ -4962,7 +5017,8 @@ components:
|
|
|
4962
5017
|
`PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
|
|
4963
5018
|
editor's Preview) evaluates lookups for real — resolved
|
|
4964
5019
|
internal ids appear in `nlobjSublistIds`, misses and
|
|
4965
|
-
compile errors in `
|
|
5020
|
+
compile errors in `mappingErrors[]` (beside `jsObjects`
|
|
5021
|
+
under `data.returnedObjects`) — and handles
|
|
4966
5022
|
`[*]` in plain substitutions and inside a branch's output.
|
|
4967
5023
|
It does NOT apply the per-line evaluation to `[*]` used as a
|
|
4968
5024
|
block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
|
|
@@ -4976,6 +5032,28 @@ components:
|
|
|
4976
5032
|
A mapping row's `extract` with the same block-helper shape IS
|
|
4977
5033
|
rendered per line by the preview — see
|
|
4978
5034
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
5035
|
+
- |-
|
|
5036
|
+
## The engine's helper set is the installed bundle's
|
|
5037
|
+
|
|
5038
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
5039
|
+
bundle installed in the NetSuite account, whose helper set
|
|
5040
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
5041
|
+
it lacks fails the record with
|
|
5042
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
5043
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
5044
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
5045
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
5046
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
5047
|
+
value of a sublist-row lookup) and at runtime — although
|
|
5048
|
+
the same expression renders on the platform's Handlebars
|
|
5049
|
+
processor (the Playground). Examples of helpers observed
|
|
5050
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
5051
|
+
(the engine is the same for both); a helper named in neither
|
|
5052
|
+
list is proven only by the preview. On that error switch to a
|
|
5053
|
+
helper the engine has, never retry the same one; the preview
|
|
5054
|
+
is the check for an expression it evaluates (the forms
|
|
5055
|
+
above), and a block-helper `[*]` lookup expression stays on
|
|
5056
|
+
the validate-with-a-run rule.
|
|
4979
5057
|
operator:
|
|
4980
5058
|
type: string
|
|
4981
5059
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -16568,6 +16568,21 @@ components:
|
|
|
16568
16568
|
renders an empty string, not the value.
|
|
16569
16569
|
examples:
|
|
16570
16570
|
- address.city
|
|
16571
|
+
x-celigo-ai-guidance:
|
|
16572
|
+
- |-
|
|
16573
|
+
A Handlebars `extract` is evaluated by the Celigo bundle
|
|
16574
|
+
installed in the NetSuite account, which knows fewer
|
|
16575
|
+
helpers than the platform's Handlebars catalog: a helper
|
|
16576
|
+
it lacks (`pluck`, `eq`, `isEmpty`, `startsWith`,
|
|
16577
|
+
`jsonParse` and others) fails the record in the mapping
|
|
16578
|
+
preview and at runtime with
|
|
16579
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Missing helper:
|
|
16580
|
+
"<name>"`, although the same expression renders on the
|
|
16581
|
+
platform's Handlebars processor (the Playground). Prove
|
|
16582
|
+
a row with the mapping preview, and on that error switch
|
|
16583
|
+
helper rather than retry — see
|
|
16584
|
+
`mapping.lists[].fields[].extract` for examples of
|
|
16585
|
+
helpers observed present and missing.
|
|
16571
16586
|
generate:
|
|
16572
16587
|
type: string
|
|
16573
16588
|
description: |
|
|
@@ -16931,6 +16946,46 @@ components:
|
|
|
16931
16946
|
the number: `#if` treats a real `0` rate as empty.
|
|
16932
16947
|
The same expression on a body row (`fields[]`) renders
|
|
16933
16948
|
the first line's value only.
|
|
16949
|
+
- |-
|
|
16950
|
+
The engine evaluating a Handlebars `extract` is the
|
|
16951
|
+
Celigo bundle installed in the NetSuite account,
|
|
16952
|
+
whose helper set is smaller than the platform's
|
|
16953
|
+
Handlebars catalog. A helper the bundle
|
|
16954
|
+
lacks fails the record — in the mapping preview and
|
|
16955
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
16956
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
16957
|
+
"Missing helper: "<name>""`, and the record is
|
|
16958
|
+
dropped. Helpers observed missing on the probed
|
|
16959
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
16960
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
16961
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
16962
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
16963
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
16964
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
16965
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
16966
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
16967
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
16968
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
16969
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
16970
|
+
`#with` — examples, not the set: a helper named in
|
|
16971
|
+
neither list is proven only by the preview. The same
|
|
16972
|
+
expression renders on the platform's Handlebars
|
|
16973
|
+
processor (the Playground), so a render there proves
|
|
16974
|
+
nothing about this engine — the mapping preview is
|
|
16975
|
+
the check, and on a `Missing helper` error switch
|
|
16976
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
16977
|
+
sum of its `tax_lines[].price`) no probed form
|
|
16978
|
+
produced it: `pluck` is missing, `{{sum
|
|
16979
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
16980
|
+
multi-argument `sum` keeps only its first argument
|
|
16981
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
16982
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
16983
|
+
value arriving on the line already computed (the
|
|
16984
|
+
step producing the record, or an Integration App's
|
|
16985
|
+
own hook), or on fixed positions:
|
|
16986
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
16987
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
16988
|
+
two prices added.
|
|
16934
16989
|
generate:
|
|
16935
16990
|
type: string
|
|
16936
16991
|
description: |-
|
|
@@ -17348,7 +17403,8 @@ components:
|
|
|
17348
17403
|
`PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
|
|
17349
17404
|
editor's Preview) evaluates lookups for real — resolved
|
|
17350
17405
|
internal ids appear in `nlobjSublistIds`, misses and
|
|
17351
|
-
compile errors in `
|
|
17406
|
+
compile errors in `mappingErrors[]` (beside `jsObjects`
|
|
17407
|
+
under `data.returnedObjects`) — and handles
|
|
17352
17408
|
`[*]` in plain substitutions and inside a branch's output.
|
|
17353
17409
|
It does NOT apply the per-line evaluation to `[*]` used as a
|
|
17354
17410
|
block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
|
|
@@ -17362,6 +17418,28 @@ components:
|
|
|
17362
17418
|
A mapping row's `extract` with the same block-helper shape IS
|
|
17363
17419
|
rendered per line by the preview — see
|
|
17364
17420
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
17421
|
+
- |-
|
|
17422
|
+
## The engine's helper set is the installed bundle's
|
|
17423
|
+
|
|
17424
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
17425
|
+
bundle installed in the NetSuite account, whose helper set
|
|
17426
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
17427
|
+
it lacks fails the record with
|
|
17428
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
17429
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
17430
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
17431
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
17432
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
17433
|
+
value of a sublist-row lookup) and at runtime — although
|
|
17434
|
+
the same expression renders on the platform's Handlebars
|
|
17435
|
+
processor (the Playground). Examples of helpers observed
|
|
17436
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
17437
|
+
(the engine is the same for both); a helper named in neither
|
|
17438
|
+
list is proven only by the preview. On that error switch to a
|
|
17439
|
+
helper the engine has, never retry the same one; the preview
|
|
17440
|
+
is the check for an expression it evaluates (the forms
|
|
17441
|
+
above), and a block-helper `[*]` lookup expression stays on
|
|
17442
|
+
the validate-with-a-run rule.
|
|
17365
17443
|
operator:
|
|
17366
17444
|
type: string
|
|
17367
17445
|
description: |-
|
package/package.json
CHANGED