@celigo/api-specs 0.2.281 → 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/import.yml +61 -5
- package/dist/tool.yml +61 -5
- package/package.json +1 -1
- package/schemas.json +1 -1
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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