@celigo/api-specs 0.2.228 → 0.2.229

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
@@ -4504,6 +4504,29 @@ components:
4504
4504
  addresses the current line with the same
4505
4505
  `<array>[*].<field>` path — see
4506
4506
  `netsuite_da.lookups[].expression`.
4507
+ - |-
4508
+ A Handlebars `extract` addresses the current line with
4509
+ the same `<array>[*].<field>` path — in a substitution,
4510
+ as a helper argument
4511
+ (`{{multiply line_items[*].tax_lines.[0].rate 100}}`)
4512
+ and as a block-helper argument
4513
+ (`{{#if line_items[*].taxable}}5973{{/if}}`). The row
4514
+ is evaluated once per line and drives the iteration by
4515
+ itself; the mapping preview
4516
+ (`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
4517
+ every form per line, including the block-helper form it
4518
+ cannot evaluate in a lookup `expression`. An empty render
4519
+ is sent as an empty value unless `discardIfEmpty` omits
4520
+ the field; in the preview, a sublist whose only row renders
4521
+ empty for a line omits that line from the output, while
4522
+ beside another line row the line is returned with the
4523
+ empty value. An
4524
+ arithmetic helper on a line that lacks the field renders
4525
+ `NaN`, so guard it on the object the helper reads
4526
+ (`{{#if line_items[*].tax_lines.[0]}}…{{/if}}`), not on
4527
+ the number: `#if` treats a real `0` rate as empty.
4528
+ The same expression on a body row (`fields[]`) renders
4529
+ the first line's value only.
4507
4530
  generate:
4508
4531
  type: string
4509
4532
  description: |-
@@ -4916,7 +4939,7 @@ components:
4916
4939
  for the field: $.<path>` — and resolves to `default` when
4917
4940
  `allowFailures` is true.
4918
4941
  - |-
4919
- ## The mapping preview cannot evaluate `[*]` inside a block-helper argument
4942
+ ## The mapping preview cannot evaluate `[*]` inside a block-helper argument of a lookup expression
4920
4943
 
4921
4944
  `PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
4922
4945
  editor's Preview) evaluates lookups for real — resolved
@@ -4924,14 +4947,17 @@ components:
4924
4947
  compile errors in `data.mappingErrors[]` — and handles
4925
4948
  `[*]` in plain substitutions and inside a branch's output.
4926
4949
  It does NOT apply the per-line evaluation to `[*]` used as a
4927
- block-helper ARGUMENT (`{{#if line_items[*].x}}`,
4950
+ block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
4928
4951
  `{{#contains line_items[*].sku "_"}}`): the sublist comes
4929
4952
  back EMPTY with no error, whatever the expression would do
4930
4953
  in a run. An empty preview is therefore no evidence about
4931
- such an expression — never report it as "renders nothing"
4954
+ such a lookup expression — never report it as "renders nothing"
4932
4955
  or as invalid on that basis; validate it with a run.
4933
4956
  `<array>.@index.<field>` is likewise not evaluable in the
4934
4957
  preview (the record is dropped with no error).
4958
+ A mapping row's `extract` with the same block-helper shape IS
4959
+ rendered per line by the preview — see
4960
+ `netsuite_da.mapping.lists[].fields[].extract`.
4935
4961
  operator:
4936
4962
  type: string
4937
4963
  description: |-
package/dist/tool.yml CHANGED
@@ -16802,6 +16802,29 @@ components:
16802
16802
  addresses the current line with the same
16803
16803
  `<array>[*].<field>` path — see
16804
16804
  `netsuite_da.lookups[].expression`.
16805
+ - |-
16806
+ A Handlebars `extract` addresses the current line with
16807
+ the same `<array>[*].<field>` path — in a substitution,
16808
+ as a helper argument
16809
+ (`{{multiply line_items[*].tax_lines.[0].rate 100}}`)
16810
+ and as a block-helper argument
16811
+ (`{{#if line_items[*].taxable}}5973{{/if}}`). The row
16812
+ is evaluated once per line and drives the iteration by
16813
+ itself; the mapping preview
16814
+ (`PUT /v1/netsuiteDA/previewImportMappingFields`) renders
16815
+ every form per line, including the block-helper form it
16816
+ cannot evaluate in a lookup `expression`. An empty render
16817
+ is sent as an empty value unless `discardIfEmpty` omits
16818
+ the field; in the preview, a sublist whose only row renders
16819
+ empty for a line omits that line from the output, while
16820
+ beside another line row the line is returned with the
16821
+ empty value. An
16822
+ arithmetic helper on a line that lacks the field renders
16823
+ `NaN`, so guard it on the object the helper reads
16824
+ (`{{#if line_items[*].tax_lines.[0]}}…{{/if}}`), not on
16825
+ the number: `#if` treats a real `0` rate as empty.
16826
+ The same expression on a body row (`fields[]`) renders
16827
+ the first line's value only.
16805
16828
  generate:
16806
16829
  type: string
16807
16830
  description: |-
@@ -17214,7 +17237,7 @@ components:
17214
17237
  for the field: $.<path>` — and resolves to `default` when
17215
17238
  `allowFailures` is true.
17216
17239
  - |-
17217
- ## The mapping preview cannot evaluate `[*]` inside a block-helper argument
17240
+ ## The mapping preview cannot evaluate `[*]` inside a block-helper argument of a lookup expression
17218
17241
 
17219
17242
  `PUT /v1/netsuiteDA/previewImportMappingFields` (the mapping
17220
17243
  editor's Preview) evaluates lookups for real — resolved
@@ -17222,14 +17245,17 @@ components:
17222
17245
  compile errors in `data.mappingErrors[]` — and handles
17223
17246
  `[*]` in plain substitutions and inside a branch's output.
17224
17247
  It does NOT apply the per-line evaluation to `[*]` used as a
17225
- block-helper ARGUMENT (`{{#if line_items[*].x}}`,
17248
+ block-helper ARGUMENT of a lookup expression (`{{#if line_items[*].x}}`,
17226
17249
  `{{#contains line_items[*].sku "_"}}`): the sublist comes
17227
17250
  back EMPTY with no error, whatever the expression would do
17228
17251
  in a run. An empty preview is therefore no evidence about
17229
- such an expression — never report it as "renders nothing"
17252
+ such a lookup expression — never report it as "renders nothing"
17230
17253
  or as invalid on that basis; validate it with a run.
17231
17254
  `<array>.@index.<field>` is likewise not evaluable in the
17232
17255
  preview (the record is dropped with no error).
17256
+ A mapping row's `extract` with the same block-helper shape IS
17257
+ rendered per line by the preview — see
17258
+ `netsuite_da.mapping.lists[].fields[].extract`.
17233
17259
  operator:
17234
17260
  type: string
17235
17261
  description: |-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.228",
3
+ "version": "0.2.229",
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": "55c3cdcf",
4
+ "iasCommit": "f20d44ef",
5
5
  "generatedAt": "2026-11-04"
6
6
  },
7
7
  "roots": {