@celigo/api-specs 0.2.254 → 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 CHANGED
@@ -4547,8 +4547,10 @@ components:
4547
4547
  is evaluated once per line and drives the iteration by
4548
4548
  itself; the mapping preview
4549
4549
  (`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
4550
- every form per line, including the block-helper form it
4551
- cannot evaluate in a lookup `expression`. An empty render
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
4552
4554
  is sent as an empty value unless `discardIfEmpty` omits
4553
4555
  the field; in the preview, a sublist whose only row renders
4554
4556
  empty for a line omits that line from the output, while
@@ -5012,25 +5014,52 @@ components:
5012
5014
  for the field: $.<path>` — and resolves to `default` when
5013
5015
  `allowFailures` is true.
5014
5016
  - |-
5015
- ## The mapping preview cannot evaluate `[*]` inside a block-helper argument of a lookup expression
5016
-
5017
- `PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
5018
- editor's Preview) evaluates lookups for real — resolved
5019
- internal ids appear in `nlobjSublistIds`, misses and
5020
- compile errors in `mappingErrors[]` (beside `jsObjects`
5021
- under `data.returnedObjects`) — and handles
5022
- `[*]` in plain substitutions and inside a branch's output.
5023
- It does NOT apply the per-line evaluation to `[*]` used as a
5024
- block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
5025
- `{{#contains line_items[*].sku "_"}}`): the sublist comes
5026
- back EMPTY with no error, whatever the expression would do
5027
- in a run. An empty preview is therefore no evidence about
5028
- such a lookup expression — never report it as "renders nothing"
5029
- or as invalid on that basis; validate it with a run.
5030
- `<array>.@index.<field>` is likewise not evaluable in the
5031
- preview (the record is dropped with no error).
5032
- A mapping row's `extract` with the same block-helper shape IS
5033
- rendered per line by the preview — see
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
5034
5063
  `netsuite_da.mapping.lists[].fields[].extract`.
5035
5064
  - |-
5036
5065
  ## The engine's helper set is the installed bundle's
@@ -5052,8 +5081,9 @@ components:
5052
5081
  list is proven only by the preview. On that error switch to a
5053
5082
  helper the engine has, never retry the same one; the preview
5054
5083
  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.
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).
5057
5087
  operator:
5058
5088
  type: string
5059
5089
  description: |-
package/dist/tool.yml CHANGED
@@ -16933,8 +16933,10 @@ components:
16933
16933
  is evaluated once per line and drives the iteration by
16934
16934
  itself; the mapping preview
16935
16935
  (`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
16936
- every form per line, including the block-helper form it
16937
- cannot evaluate in a lookup `expression`. An empty render
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
16938
16940
  is sent as an empty value unless `discardIfEmpty` omits
16939
16941
  the field; in the preview, a sublist whose only row renders
16940
16942
  empty for a line omits that line from the output, while
@@ -17398,25 +17400,52 @@ components:
17398
17400
  for the field: $.<path>` — and resolves to `default` when
17399
17401
  `allowFailures` is true.
17400
17402
  - |-
17401
- ## The mapping preview cannot evaluate `[*]` inside a block-helper argument of a lookup expression
17402
-
17403
- `PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
17404
- editor's Preview) evaluates lookups for real — resolved
17405
- internal ids appear in `nlobjSublistIds`, misses and
17406
- compile errors in `mappingErrors[]` (beside `jsObjects`
17407
- under `data.returnedObjects`) — and handles
17408
- `[*]` in plain substitutions and inside a branch's output.
17409
- It does NOT apply the per-line evaluation to `[*]` used as a
17410
- block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
17411
- `{{#contains line_items[*].sku "_"}}`): the sublist comes
17412
- back EMPTY with no error, whatever the expression would do
17413
- in a run. An empty preview is therefore no evidence about
17414
- such a lookup expression — never report it as "renders nothing"
17415
- or as invalid on that basis; validate it with a run.
17416
- `<array>.@index.<field>` is likewise not evaluable in the
17417
- preview (the record is dropped with no error).
17418
- A mapping row's `extract` with the same block-helper shape IS
17419
- rendered per line by the preview — see
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
17420
17449
  `netsuite_da.mapping.lists[].fields[].extract`.
17421
17450
  - |-
17422
17451
  ## The engine's helper set is the installed bundle's
@@ -17438,8 +17467,9 @@ components:
17438
17467
  list is proven only by the preview. On that error switch to a
17439
17468
  helper the engine has, never retry the same one; the preview
17440
17469
  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.
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).
17443
17473
  operator:
17444
17474
  type: string
17445
17475
  description: |-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.254",
3
+ "version": "0.2.255",
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": "fa8b1131",
4
+ "iasCommit": "604e4d4e",
5
5
  "generatedAt": "2026-11-06"
6
6
  },
7
7
  "roots": {