@celigo/api-specs 0.2.253 → 0.2.255
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 +128 -20
- package/dist/tool.yml +128 -20
- 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: |
|
|
@@ -4532,8 +4547,10 @@ components:
|
|
|
4532
4547
|
is evaluated once per line and drives the iteration by
|
|
4533
4548
|
itself; the mapping preview
|
|
4534
4549
|
(`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
|
|
4535
|
-
every form per line
|
|
4536
|
-
|
|
4550
|
+
every form per line (a lookup `expression` opening
|
|
4551
|
+
with a block-helper line path on the sublist's FIRST
|
|
4552
|
+
row is the one exception — see
|
|
4553
|
+
`netsuite_da.lookups[].expression`). An empty render
|
|
4537
4554
|
is sent as an empty value unless `discardIfEmpty` omits
|
|
4538
4555
|
the field; in the preview, a sublist whose only row renders
|
|
4539
4556
|
empty for a line omits that line from the output, while
|
|
@@ -4545,6 +4562,46 @@ components:
|
|
|
4545
4562
|
the number: `#if` treats a real `0` rate as empty.
|
|
4546
4563
|
The same expression on a body row (`fields[]`) renders
|
|
4547
4564
|
the first line's value only.
|
|
4565
|
+
- |-
|
|
4566
|
+
The engine evaluating a Handlebars `extract` is the
|
|
4567
|
+
Celigo bundle installed in the NetSuite account,
|
|
4568
|
+
whose helper set is smaller than the platform's
|
|
4569
|
+
Handlebars catalog. A helper the bundle
|
|
4570
|
+
lacks fails the record — in the mapping preview and
|
|
4571
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
4572
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
4573
|
+
"Missing helper: "<name>""`, and the record is
|
|
4574
|
+
dropped. Helpers observed missing on the probed
|
|
4575
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
4576
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
4577
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
4578
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
4579
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
4580
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
4581
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
4582
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
4583
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
4584
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
4585
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
4586
|
+
`#with` — examples, not the set: a helper named in
|
|
4587
|
+
neither list is proven only by the preview. The same
|
|
4588
|
+
expression renders on the platform's Handlebars
|
|
4589
|
+
processor (the Playground), so a render there proves
|
|
4590
|
+
nothing about this engine — the mapping preview is
|
|
4591
|
+
the check, and on a `Missing helper` error switch
|
|
4592
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
4593
|
+
sum of its `tax_lines[].price`) no probed form
|
|
4594
|
+
produced it: `pluck` is missing, `{{sum
|
|
4595
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
4596
|
+
multi-argument `sum` keeps only its first argument
|
|
4597
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
4598
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
4599
|
+
value arriving on the line already computed (the
|
|
4600
|
+
step producing the record, or an Integration App's
|
|
4601
|
+
own hook), or on fixed positions:
|
|
4602
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
4603
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
4604
|
+
two prices added.
|
|
4548
4605
|
generate:
|
|
4549
4606
|
type: string
|
|
4550
4607
|
description: |-
|
|
@@ -4957,25 +5014,76 @@ components:
|
|
|
4957
5014
|
for the field: $.<path>` — and resolves to `default` when
|
|
4958
5015
|
`allowFailures` is true.
|
|
4959
5016
|
- |-
|
|
4960
|
-
##
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
`[*]`
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
5017
|
+
## A block-helper `[*]` lookup expression on the FIRST sublist row drops the whole sublist
|
|
5018
|
+
|
|
5019
|
+
The NetSuite-side mapper derives a sublist's line path
|
|
5020
|
+
from the raw text of the sublist mapping's FIRST row.
|
|
5021
|
+
When that row resolves through a lookup whose expression
|
|
5022
|
+
OPENS with a line path inside a block-helper argument
|
|
5023
|
+
(`{{#if line_items[*].sku}}…`, `{{#contains
|
|
5024
|
+
line_items[*].sku "_"}}…`), the derived path keeps the
|
|
5025
|
+
helper that opened the expression (`$.#if line_items[*]`,
|
|
5026
|
+
`$.#contains line_items[*]`), matches no line, and the
|
|
5027
|
+
whole sublist is skipped with no error: the record posts
|
|
5028
|
+
with an empty sublist and no lookup error. This is
|
|
5029
|
+
platform defect IO-233896 (fix version 2027.1.1), which
|
|
5030
|
+
reaches the mapping preview
|
|
5031
|
+
(`PUT /v1/netsuiteDA/previewImportMappingFields`) in every
|
|
5032
|
+
case and the RUNTIME on the legacy SuiteScript mapper —
|
|
5033
|
+
observed on a `restletVersion: suitebundle` import's
|
|
5034
|
+
runs; the ticket names `suiteapp1.0` as the same mapper
|
|
5035
|
+
(not probed here); whether `suiteapp2.0` is affected was
|
|
5036
|
+
not confirmed with a flow run. The fix is the row order:
|
|
5037
|
+
place a plain
|
|
5038
|
+
`<array>[*].<field>` row (Items : Quantity) above the
|
|
5039
|
+
lookup's row in the sublist mapping — with the lookup no
|
|
5040
|
+
longer first, the same expression is evaluated per line
|
|
5041
|
+
as written (the preview resolves internal ids into
|
|
5042
|
+
`nlobjSublistIds`, misses into `mappingErrors[]`, beside
|
|
5043
|
+
`jsObjects` under `data.returnedObjects`). A rewrite that
|
|
5044
|
+
leads with a plain substitution
|
|
5045
|
+
(`{{{line_items[*].sku}}}{{#unless line_items[*].sku}}…
|
|
5046
|
+
{{/unless}}`) avoids the bad path too, because the first
|
|
5047
|
+
line path is no longer a helper argument — but it is a
|
|
5048
|
+
different expression, and its rendered search string
|
|
5049
|
+
still has to be checked. The shape alone decides nothing:
|
|
5050
|
+
test the saved order through the preview and, when the
|
|
5051
|
+
sublist comes back empty with no error, the same
|
|
5052
|
+
expression with a plain line row moved to the front — a
|
|
5053
|
+
reordered run that resolves or misses per line locates
|
|
5054
|
+
the defect and proves the reorder. Never report an empty
|
|
5055
|
+
preview as "renders nothing" or as the expression being
|
|
5056
|
+
invalid; a sublist empty in BOTH orders leaves the test
|
|
5057
|
+
inconclusive. An expression the resource's change history
|
|
5058
|
+
shows set and then reverted was already tried on that
|
|
5059
|
+
account — name it so, never re-recommend it. `<array>.@index.<field>`
|
|
5060
|
+
dropped the record with no error where observed. A
|
|
5061
|
+
mapping row's `extract` with the same block-helper shape
|
|
5062
|
+
is rendered per line — see
|
|
4978
5063
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
5064
|
+
- |-
|
|
5065
|
+
## The engine's helper set is the installed bundle's
|
|
5066
|
+
|
|
5067
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
5068
|
+
bundle installed in the NetSuite account, whose helper set
|
|
5069
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
5070
|
+
it lacks fails the record with
|
|
5071
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
5072
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
5073
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
5074
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
5075
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
5076
|
+
value of a sublist-row lookup) and at runtime — although
|
|
5077
|
+
the same expression renders on the platform's Handlebars
|
|
5078
|
+
processor (the Playground). Examples of helpers observed
|
|
5079
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
5080
|
+
(the engine is the same for both); a helper named in neither
|
|
5081
|
+
list is proven only by the preview. On that error switch to a
|
|
5082
|
+
helper the engine has, never retry the same one; the preview
|
|
5083
|
+
is the check for an expression it evaluates (the forms
|
|
5084
|
+
above), and a block-first `[*]` lookup expression on the
|
|
5085
|
+
sublist's first row is checked in both row orders (the
|
|
5086
|
+
section above).
|
|
4979
5087
|
operator:
|
|
4980
5088
|
type: string
|
|
4981
5089
|
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: |
|
|
@@ -16918,8 +16933,10 @@ components:
|
|
|
16918
16933
|
is evaluated once per line and drives the iteration by
|
|
16919
16934
|
itself; the mapping preview
|
|
16920
16935
|
(`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
|
|
16921
|
-
every form per line
|
|
16922
|
-
|
|
16936
|
+
every form per line (a lookup `expression` opening
|
|
16937
|
+
with a block-helper line path on the sublist's FIRST
|
|
16938
|
+
row is the one exception — see
|
|
16939
|
+
`netsuite_da.lookups[].expression`). An empty render
|
|
16923
16940
|
is sent as an empty value unless `discardIfEmpty` omits
|
|
16924
16941
|
the field; in the preview, a sublist whose only row renders
|
|
16925
16942
|
empty for a line omits that line from the output, while
|
|
@@ -16931,6 +16948,46 @@ components:
|
|
|
16931
16948
|
the number: `#if` treats a real `0` rate as empty.
|
|
16932
16949
|
The same expression on a body row (`fields[]`) renders
|
|
16933
16950
|
the first line's value only.
|
|
16951
|
+
- |-
|
|
16952
|
+
The engine evaluating a Handlebars `extract` is the
|
|
16953
|
+
Celigo bundle installed in the NetSuite account,
|
|
16954
|
+
whose helper set is smaller than the platform's
|
|
16955
|
+
Handlebars catalog. A helper the bundle
|
|
16956
|
+
lacks fails the record — in the mapping preview and
|
|
16957
|
+
at runtime alike — with `INVALID_HANDLE_BAR_EXPRESSION`
|
|
16958
|
+
/ `Could not compile handle bar "{{…}}" because
|
|
16959
|
+
"Missing helper: "<name>""`, and the record is
|
|
16960
|
+
dropped. Helpers observed missing on the probed
|
|
16961
|
+
account include `pluck`, `eq`, `isEmpty`, `startsWith`, `padLeft`,
|
|
16962
|
+
`padRight`, `jsonParse`, `inArray`, `not`, `some`,
|
|
16963
|
+
`typeOf`, `unique`, `reverse`, `trimLeft`,
|
|
16964
|
+
`trimRight`, `htmlEncode`, `htmlDecode` and the case
|
|
16965
|
+
helpers (`camelcase`, `snakecase`, `dashcase`,
|
|
16966
|
+
`dotcase`, `pascalcase`, `pathcase`, `sentence`);
|
|
16967
|
+
helpers observed present include `add`, `sum`, `multiply`,
|
|
16968
|
+
`subtract`, `divide`, `round`, `toFixed`, `join`,
|
|
16969
|
+
`split`, `replace`, `regexReplace`, `uppercase`,
|
|
16970
|
+
`lowercase`, `trim`, `dateFormat`, `#if`,
|
|
16971
|
+
`#compare`, `#contains`, `#each`, `#filter`,
|
|
16972
|
+
`#with` — examples, not the set: a helper named in
|
|
16973
|
+
neither list is proven only by the preview. The same
|
|
16974
|
+
expression renders on the platform's Handlebars
|
|
16975
|
+
processor (the Playground), so a render there proves
|
|
16976
|
+
nothing about this engine — the mapping preview is
|
|
16977
|
+
the check, and on a `Missing helper` error switch
|
|
16978
|
+
helper rather than retry. For a line's total over a nested array (the
|
|
16979
|
+
sum of its `tax_lines[].price`) no probed form
|
|
16980
|
+
produced it: `pluck` is missing, `{{sum
|
|
16981
|
+
line_items[*].tax_lines.price}}` renders `0`, and a
|
|
16982
|
+
multi-argument `sum` keeps only its first argument
|
|
16983
|
+
(`{{sum 1 2 3}}` renders `1`; `{{sum <array
|
|
16984
|
+
field>}}` adds the array's numbers) — so plan on the
|
|
16985
|
+
value arriving on the line already computed (the
|
|
16986
|
+
step producing the record, or an Integration App's
|
|
16987
|
+
own hook), or on fixed positions:
|
|
16988
|
+
`{{add line_items[*].tax_lines.[0].price
|
|
16989
|
+
line_items[*].tax_lines.[1].price}}` renders the
|
|
16990
|
+
two prices added.
|
|
16934
16991
|
generate:
|
|
16935
16992
|
type: string
|
|
16936
16993
|
description: |-
|
|
@@ -17343,25 +17400,76 @@ components:
|
|
|
17343
17400
|
for the field: $.<path>` — and resolves to `default` when
|
|
17344
17401
|
`allowFailures` is true.
|
|
17345
17402
|
- |-
|
|
17346
|
-
##
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
`[*]`
|
|
17353
|
-
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17403
|
+
## A block-helper `[*]` lookup expression on the FIRST sublist row drops the whole sublist
|
|
17404
|
+
|
|
17405
|
+
The NetSuite-side mapper derives a sublist's line path
|
|
17406
|
+
from the raw text of the sublist mapping's FIRST row.
|
|
17407
|
+
When that row resolves through a lookup whose expression
|
|
17408
|
+
OPENS with a line path inside a block-helper argument
|
|
17409
|
+
(`{{#if line_items[*].sku}}…`, `{{#contains
|
|
17410
|
+
line_items[*].sku "_"}}…`), the derived path keeps the
|
|
17411
|
+
helper that opened the expression (`$.#if line_items[*]`,
|
|
17412
|
+
`$.#contains line_items[*]`), matches no line, and the
|
|
17413
|
+
whole sublist is skipped with no error: the record posts
|
|
17414
|
+
with an empty sublist and no lookup error. This is
|
|
17415
|
+
platform defect IO-233896 (fix version 2027.1.1), which
|
|
17416
|
+
reaches the mapping preview
|
|
17417
|
+
(`PUT /v1/netsuiteDA/previewImportMappingFields`) in every
|
|
17418
|
+
case and the RUNTIME on the legacy SuiteScript mapper —
|
|
17419
|
+
observed on a `restletVersion: suitebundle` import's
|
|
17420
|
+
runs; the ticket names `suiteapp1.0` as the same mapper
|
|
17421
|
+
(not probed here); whether `suiteapp2.0` is affected was
|
|
17422
|
+
not confirmed with a flow run. The fix is the row order:
|
|
17423
|
+
place a plain
|
|
17424
|
+
`<array>[*].<field>` row (Items : Quantity) above the
|
|
17425
|
+
lookup's row in the sublist mapping — with the lookup no
|
|
17426
|
+
longer first, the same expression is evaluated per line
|
|
17427
|
+
as written (the preview resolves internal ids into
|
|
17428
|
+
`nlobjSublistIds`, misses into `mappingErrors[]`, beside
|
|
17429
|
+
`jsObjects` under `data.returnedObjects`). A rewrite that
|
|
17430
|
+
leads with a plain substitution
|
|
17431
|
+
(`{{{line_items[*].sku}}}{{#unless line_items[*].sku}}…
|
|
17432
|
+
{{/unless}}`) avoids the bad path too, because the first
|
|
17433
|
+
line path is no longer a helper argument — but it is a
|
|
17434
|
+
different expression, and its rendered search string
|
|
17435
|
+
still has to be checked. The shape alone decides nothing:
|
|
17436
|
+
test the saved order through the preview and, when the
|
|
17437
|
+
sublist comes back empty with no error, the same
|
|
17438
|
+
expression with a plain line row moved to the front — a
|
|
17439
|
+
reordered run that resolves or misses per line locates
|
|
17440
|
+
the defect and proves the reorder. Never report an empty
|
|
17441
|
+
preview as "renders nothing" or as the expression being
|
|
17442
|
+
invalid; a sublist empty in BOTH orders leaves the test
|
|
17443
|
+
inconclusive. An expression the resource's change history
|
|
17444
|
+
shows set and then reverted was already tried on that
|
|
17445
|
+
account — name it so, never re-recommend it. `<array>.@index.<field>`
|
|
17446
|
+
dropped the record with no error where observed. A
|
|
17447
|
+
mapping row's `extract` with the same block-helper shape
|
|
17448
|
+
is rendered per line — see
|
|
17364
17449
|
`netsuite_da.mapping.lists[].fields[].extract`.
|
|
17450
|
+
- |-
|
|
17451
|
+
## The engine's helper set is the installed bundle's
|
|
17452
|
+
|
|
17453
|
+
The Handlebars in an `expression` is evaluated by the Celigo
|
|
17454
|
+
bundle installed in the NetSuite account, whose helper set
|
|
17455
|
+
is smaller than the platform's Handlebars catalog. A helper
|
|
17456
|
+
it lacks fails the record with
|
|
17457
|
+
`INVALID_HANDLE_BAR_EXPRESSION` / `Could not compile handle
|
|
17458
|
+
bar "<expression>" because "Missing helper: "<name>""` —
|
|
17459
|
+
in the preview (under `data.returnedObjects.mappingErrors`,
|
|
17460
|
+
observed for `{{{pluck line_items[*].tax_lines 'price'}}}`
|
|
17461
|
+
and `{{{eq line_items[*].sku "CA-011"}}}` as the criterion
|
|
17462
|
+
value of a sublist-row lookup) and at runtime — although
|
|
17463
|
+
the same expression renders on the platform's Handlebars
|
|
17464
|
+
processor (the Playground). Examples of helpers observed
|
|
17465
|
+
present and missing are on `mapping.lists[].fields[].extract`
|
|
17466
|
+
(the engine is the same for both); a helper named in neither
|
|
17467
|
+
list is proven only by the preview. On that error switch to a
|
|
17468
|
+
helper the engine has, never retry the same one; the preview
|
|
17469
|
+
is the check for an expression it evaluates (the forms
|
|
17470
|
+
above), and a block-first `[*]` lookup expression on the
|
|
17471
|
+
sublist's first row is checked in both row orders (the
|
|
17472
|
+
section above).
|
|
17365
17473
|
operator:
|
|
17366
17474
|
type: string
|
|
17367
17475
|
description: |-
|
package/package.json
CHANGED