@celigo/api-specs 0.2.280 → 0.2.282

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/flow.yml CHANGED
@@ -5148,9 +5148,22 @@ components:
5148
5148
  flow-error notification email was not sent, and do not suggest turning it off to test
5149
5149
  email delivery.
5150
5150
  - |-
5151
- A record that continues past its failure arrives at later steps without the fields
5152
- this step's response mapping would have added; `hooks.postResponseMap` documents the
5153
- shape it has there.
5151
+ A record that continues past its failure arrives at later steps WITH the fields its
5152
+ response mapping extracts from the failure envelope: `statusCode` (422 — the platform's
5153
+ verdict on the record, not the HTTP status the destination answered, which is in
5154
+ `errors[].code`) and `errors` (an array) are present; `id` is present only when the
5155
+ import's id path resolves on the reply the destination sent. Verified live 2026-11-10 in
5156
+ flow runs of an HTTP import with `proceedOnFailure: true` and `id` / `statusCode` /
5157
+ `errors` mapped: a record failed by `failPath` on a 200 echo body reached the next
5158
+ router carrying `statusCode` 422, `errors` and the `id` read from that body; records
5159
+ answered a real 404 carried `statusCode` 422 and `errors` and no `id`; written records
5160
+ carried the destination's status (200 in these runs) and no `errors`. So a router after
5161
+ the step picks out the failed records with a rule on the mapped `statusCode` equal to
5162
+ 422 (or `errors` not empty) and lets every other record take the other branch —
5163
+ written records, and records the import's input filter skipped, which continue without
5164
+ any of this step's response-mapped fields and are not failures; a rule on the mapped
5165
+ `id` being empty holds only where the destination assigns an id solely to a record it
5166
+ wrote. `hooks.postResponseMap` documents the shape in that hook.
5154
5167
  responseMapping:
5155
5168
  $ref: '#/components/schemas/ResponseMapping'
5156
5169
  hooks:
@@ -5164,10 +5177,11 @@ components:
5164
5177
  `options.postResponseMapData` (the records, with response mapping applied) and
5165
5178
  `options.responseData` (the step's per-record results, in the same order) and returns
5166
5179
  `postResponseMapData`, same length. A record an import step failed is in neither array
5167
- unless `proceedOnFailure` is true. Then it is included, without the fields response
5168
- mapping would have added, and its `responseData` entry has `statusCode` 422 and
5169
- `errors` as an object keyed by index (`"0"`, `"1"`, ...) rather than an array. A
5170
- successful entry has no `errors`. An error this hook raises is stored at retry
5180
+ unless `proceedOnFailure` is true. Then it is included — carrying the fields its
5181
+ response mapping extracted from the failure envelope (`statusCode` 422 and `errors`;
5182
+ `id` only when the id path resolves on the destination's reply) — and its
5183
+ `responseData` entry has `statusCode` 422 and `errors` as an object keyed by index
5184
+ (`"0"`, `"1"`, ...) rather than an array. A successful entry has no `errors`. An error this hook raises is stored at retry
5171
5185
  stage `post_response_mapping`: a retry runs the hook again on the saved record (as
5172
5186
  response mapping left it) and the step's stored reply, without repeating the lookup
5173
5187
  or the destination request.
package/dist/import.yml CHANGED
@@ -4487,7 +4487,33 @@ components:
4487
4487
  description: When true, this field is only set on record creation, not on updates.
4488
4488
  discardIfEmpty:
4489
4489
  type: boolean
4490
- description: When true, skip this field mapping if the extracted value is empty.
4490
+ description: |-
4491
+ When true, the row is skipped when the value it hands its lookup is empty — the
4492
+ extracted value, or for an `expression` lookup the rendered expression value — so
4493
+ the destination field is left out of the request instead of being written blank.
4494
+ The lookup never runs for a skipped row, so its `default` is never applied; a
4495
+ lookup row's own `extract: ""` does not skip it.
4496
+ x-celigo-ai-guidance:
4497
+ - |-
4498
+ Live-verified on a `salesorder` add through one-record virtual imports: a body
4499
+ row whose extract rendered empty — an absent source field, and a Handlebars
4500
+ `{{#if …}}{{else}}{{gateway}}{{/if}}` taking its empty branch alike — through a
4501
+ static-map lookup and through a `searchField` / `operator` lookup, each with
4502
+ `allowFailures: true` and a `default`, was left out of the request with this
4503
+ flag on (the record saved with the field empty); with the flag off the same rows
4504
+ went through the lookup and the `default` was written.
4505
+ - |-
4506
+ On an `expression` lookup the row's `extract` is `""` by design and does not
4507
+ skip it: with this flag on, a rendered expression value that matched resolved
4508
+ the record's id, and an expression whose Handlebars rendered empty left the
4509
+ field out of the request — the `default` was not applied.
4510
+ - |-
4511
+ This flag is what makes a conditional row's empty branch mean "omit the field"
4512
+ rather than "the lookup's default" — the way to keep a Payment Method row out of a
4513
+ request that also carries Terms (NetSuite refuses both on one sales order with
4514
+ `Please specify either a terms parameter or a payment method parameter in the
4515
+ request but not both`): the row's expression renders empty on the orders that
4516
+ carry terms, this flag is on, and the lookup's default stays unused there.
4491
4517
  extractDateFormat:
4492
4518
  type: string
4493
4519
  description: |
@@ -4858,7 +4884,26 @@ components:
4858
4884
  description: When true, this field is only set on record creation, not on updates.
4859
4885
  discardIfEmpty:
4860
4886
  type: boolean
4861
- description: When true, skips this field mapping if the extracted value is empty.
4887
+ description: |-
4888
+ When true, the row is skipped on a line where the value it hands its lookup
4889
+ is empty — the extracted value, or for an `expression` lookup the rendered
4890
+ expression value — so that line's field is left out of the request instead
4891
+ of being written blank. The lookup never runs for a skipped line, so its
4892
+ `default` is never applied there; a lookup row's own `extract: ""` does not
4893
+ skip it.
4894
+ x-celigo-ai-guidance:
4895
+ - |-
4896
+ Live-verified on a `salesorder` add through one-record virtual imports: an
4897
+ `item` line's location row whose extract was absent, with a static-map
4898
+ lookup carrying `allowFailures: true` and a `default`, left the line's
4899
+ location empty with this flag on; with the flag off the same row went
4900
+ through the lookup and the `default` location was written on the line.
4901
+ - |-
4902
+ On an `expression` lookup (`extract: ""`, the key rendered from
4903
+ `lines[*].<field>`, `allowFailures: true` with a `default`) with this flag
4904
+ on, a line whose rendered key matched received the matched location, and a
4905
+ line whose key rendered empty was left without one — the `default` not
4906
+ applied; with the flag off that line received the `default`.
4862
4907
  extractDateFormat:
4863
4908
  type: string
4864
4909
  description: Date format of the extracted value.
@@ -5212,12 +5257,19 @@ components:
5212
5257
  "<fallback internal id>"]]{{/if}}` routes records without a
5213
5258
  key to a fallback record while records with a key keep
5214
5259
  fail-on-miss; or render a value that can never match in the
5215
- else branch and set `allowFailures: true` with `default`.
5260
+ else branch and set `allowFailures: true` with `default`; or,
5261
+ when the field may simply be left out for such records, set
5262
+ `discardIfEmpty: true` on the mapping row — an empty rendered
5263
+ key then skips the row before the search, the `isempty`
5264
+ criterion is never sent and the field stays out of the
5265
+ request (see `mapping.fields[].discardIfEmpty`).
5216
5266
  A `searchField` / `operator` lookup (no `expression`) never
5217
5267
  reaches this state: an empty extract fails the record with
5218
5268
  `STATIC_MAPPING_ERROR` — `Exported value is empty/undefined
5219
5269
  for the field: $.<path>` — and resolves to `default` when
5220
- `allowFailures` is true.
5270
+ `allowFailures` is true; on a row with `discardIfEmpty: true`
5271
+ neither happens — the empty extract skips the row before the
5272
+ search and the field is left out of the request.
5221
5273
  - |-
5222
5274
  ## A block-helper `[*]` lookup expression on the FIRST sublist row drops the whole sublist
5223
5275
 
@@ -5354,7 +5406,11 @@ components:
5354
5406
  and read back as written, in both `lookups` and
5355
5407
  `netsuite_da.lookups`; a save with no `default` key stores
5356
5408
  none. When `allowFailures` is false an unmatched lookup halts
5357
- the record whatever is stored here.
5409
+ the record whatever is stored here. A mapping row with
5410
+ `discardIfEmpty` true is skipped before the lookup runs when
5411
+ the value it hands the lookup is empty — its extract, or the
5412
+ rendered `expression` value — so this value is never written
5413
+ for it.
5358
5414
  description: |-
5359
5415
  Lookup definitions that resolve reference values from NetSuite.
5360
5416
  Referenced by name from field mappings via `lookupName` and from
package/dist/tool.yml CHANGED
@@ -17115,7 +17115,33 @@ components:
17115
17115
  description: When true, this field is only set on record creation, not on updates.
17116
17116
  discardIfEmpty:
17117
17117
  type: boolean
17118
- description: When true, skip this field mapping if the extracted value is empty.
17118
+ description: |-
17119
+ When true, the row is skipped when the value it hands its lookup is empty — the
17120
+ extracted value, or for an `expression` lookup the rendered expression value — so
17121
+ the destination field is left out of the request instead of being written blank.
17122
+ The lookup never runs for a skipped row, so its `default` is never applied; a
17123
+ lookup row's own `extract: ""` does not skip it.
17124
+ x-celigo-ai-guidance:
17125
+ - |-
17126
+ Live-verified on a `salesorder` add through one-record virtual imports: a body
17127
+ row whose extract rendered empty — an absent source field, and a Handlebars
17128
+ `{{#if …}}{{else}}{{gateway}}{{/if}}` taking its empty branch alike — through a
17129
+ static-map lookup and through a `searchField` / `operator` lookup, each with
17130
+ `allowFailures: true` and a `default`, was left out of the request with this
17131
+ flag on (the record saved with the field empty); with the flag off the same rows
17132
+ went through the lookup and the `default` was written.
17133
+ - |-
17134
+ On an `expression` lookup the row's `extract` is `""` by design and does not
17135
+ skip it: with this flag on, a rendered expression value that matched resolved
17136
+ the record's id, and an expression whose Handlebars rendered empty left the
17137
+ field out of the request — the `default` was not applied.
17138
+ - |-
17139
+ This flag is what makes a conditional row's empty branch mean "omit the field"
17140
+ rather than "the lookup's default" — the way to keep a Payment Method row out of a
17141
+ request that also carries Terms (NetSuite refuses both on one sales order with
17142
+ `Please specify either a terms parameter or a payment method parameter in the
17143
+ request but not both`): the row's expression renders empty on the orders that
17144
+ carry terms, this flag is on, and the lookup's default stays unused there.
17119
17145
  extractDateFormat:
17120
17146
  type: string
17121
17147
  description: |
@@ -17486,7 +17512,26 @@ components:
17486
17512
  description: When true, this field is only set on record creation, not on updates.
17487
17513
  discardIfEmpty:
17488
17514
  type: boolean
17489
- description: When true, skips this field mapping if the extracted value is empty.
17515
+ description: |-
17516
+ When true, the row is skipped on a line where the value it hands its lookup
17517
+ is empty — the extracted value, or for an `expression` lookup the rendered
17518
+ expression value — so that line's field is left out of the request instead
17519
+ of being written blank. The lookup never runs for a skipped line, so its
17520
+ `default` is never applied there; a lookup row's own `extract: ""` does not
17521
+ skip it.
17522
+ x-celigo-ai-guidance:
17523
+ - |-
17524
+ Live-verified on a `salesorder` add through one-record virtual imports: an
17525
+ `item` line's location row whose extract was absent, with a static-map
17526
+ lookup carrying `allowFailures: true` and a `default`, left the line's
17527
+ location empty with this flag on; with the flag off the same row went
17528
+ through the lookup and the `default` location was written on the line.
17529
+ - |-
17530
+ On an `expression` lookup (`extract: ""`, the key rendered from
17531
+ `lines[*].<field>`, `allowFailures: true` with a `default`) with this flag
17532
+ on, a line whose rendered key matched received the matched location, and a
17533
+ line whose key rendered empty was left without one — the `default` not
17534
+ applied; with the flag off that line received the `default`.
17490
17535
  extractDateFormat:
17491
17536
  type: string
17492
17537
  description: Date format of the extracted value.
@@ -17840,12 +17885,19 @@ components:
17840
17885
  "<fallback internal id>"]]{{/if}}` routes records without a
17841
17886
  key to a fallback record while records with a key keep
17842
17887
  fail-on-miss; or render a value that can never match in the
17843
- else branch and set `allowFailures: true` with `default`.
17888
+ else branch and set `allowFailures: true` with `default`; or,
17889
+ when the field may simply be left out for such records, set
17890
+ `discardIfEmpty: true` on the mapping row — an empty rendered
17891
+ key then skips the row before the search, the `isempty`
17892
+ criterion is never sent and the field stays out of the
17893
+ request (see `mapping.fields[].discardIfEmpty`).
17844
17894
  A `searchField` / `operator` lookup (no `expression`) never
17845
17895
  reaches this state: an empty extract fails the record with
17846
17896
  `STATIC_MAPPING_ERROR` — `Exported value is empty/undefined
17847
17897
  for the field: $.<path>` — and resolves to `default` when
17848
- `allowFailures` is true.
17898
+ `allowFailures` is true; on a row with `discardIfEmpty: true`
17899
+ neither happens — the empty extract skips the row before the
17900
+ search and the field is left out of the request.
17849
17901
  - |-
17850
17902
  ## A block-helper `[*]` lookup expression on the FIRST sublist row drops the whole sublist
17851
17903
 
@@ -17982,7 +18034,11 @@ components:
17982
18034
  and read back as written, in both `lookups` and
17983
18035
  `netsuite_da.lookups`; a save with no `default` key stores
17984
18036
  none. When `allowFailures` is false an unmatched lookup halts
17985
- the record whatever is stored here.
18037
+ the record whatever is stored here. A mapping row with
18038
+ `discardIfEmpty` true is skipped before the lookup runs when
18039
+ the value it hands the lookup is empty — its extract, or the
18040
+ rendered `expression` value — so this value is never written
18041
+ for it.
17986
18042
  description: |-
17987
18043
  Lookup definitions that resolve reference values from NetSuite.
17988
18044
  Referenced by name from field mappings via `lookupName` and from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.280",
3
+ "version": "0.2.282",
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": "a569db90",
4
+ "iasCommit": "2c5c606a",
5
5
  "generatedAt": "2026-11-10"
6
6
  },
7
7
  "roots": {