@celigo/api-specs 0.2.332 → 0.2.333
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/ai-agent.yml +56 -22
- package/dist/api.yml +56 -22
- package/dist/asynchelper.yml +56 -22
- package/dist/export.yml +56 -22
- package/dist/guardrail.yml +19 -2
- package/dist/import.yml +295 -60
- package/dist/tool.yml +186 -38
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/tool.yml
CHANGED
|
@@ -3825,9 +3825,13 @@ components:
|
|
|
3825
3825
|
- Contains '{{' and '}}' pattern
|
|
3826
3826
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
3827
3827
|
- Can include logic, formatting, and computation
|
|
3828
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
3829
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
3830
|
-
-
|
|
3828
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
3829
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
3830
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
3831
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
3832
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
3833
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
3834
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
3831
3835
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
3832
3836
|
parse into an object. On an array row the template goes in a
|
|
3833
3837
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -3837,7 +3841,7 @@ components:
|
|
|
3837
3841
|
error
|
|
3838
3842
|
|
|
3839
3843
|
```json
|
|
3840
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
3844
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
3841
3845
|
```
|
|
3842
3846
|
|
|
3843
3847
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -3893,9 +3897,9 @@ components:
|
|
|
3893
3897
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
3894
3898
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
3895
3899
|
with the children addressing the row relatively (`$.field`,
|
|
3896
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
3900
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
3897
3901
|
array-typed field yields nothing. Handlebars
|
|
3898
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
3902
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
3899
3903
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
3900
3904
|
an object record iterates the object's values, not rows.
|
|
3901
3905
|
- |-
|
|
@@ -3917,9 +3921,22 @@ components:
|
|
|
3917
3921
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
3918
3922
|
for value translation that would otherwise need a long
|
|
3919
3923
|
`{{#if ...}}{{else if ...}}` chain.
|
|
3924
|
+
- |-
|
|
3925
|
+
## TRIPLE BRACES FOR VALUES
|
|
3926
|
+
A substitution that outputs a value is written with triple
|
|
3927
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
3928
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
3929
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
3930
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
3931
|
+
record.tags}}`) and inside a block (`{{#if
|
|
3932
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
3933
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
3934
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
3935
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
3936
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
3920
3937
|
examples:
|
|
3921
3938
|
- $.fullName
|
|
3922
|
-
- '{{record.fullName}}'
|
|
3939
|
+
- '{{{record.fullName}}}'
|
|
3923
3940
|
- primary
|
|
3924
3941
|
- $.lineItems[*].unitPrice
|
|
3925
3942
|
extractDateFormat:
|
|
@@ -4949,9 +4966,13 @@ components:
|
|
|
4949
4966
|
- Contains '{{' and '}}' pattern
|
|
4950
4967
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
4951
4968
|
- Can include logic, formatting, and computation
|
|
4952
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
4953
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
4954
|
-
-
|
|
4969
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
4970
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
4971
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
4972
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
4973
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
4974
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
4975
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
4955
4976
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
4956
4977
|
parse into an object. On an array row the template goes in a
|
|
4957
4978
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -4961,7 +4982,7 @@ components:
|
|
|
4961
4982
|
error
|
|
4962
4983
|
|
|
4963
4984
|
```json
|
|
4964
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
4985
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
4965
4986
|
```
|
|
4966
4987
|
|
|
4967
4988
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -5017,9 +5038,9 @@ components:
|
|
|
5017
5038
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
5018
5039
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
5019
5040
|
with the children addressing the row relatively (`$.field`,
|
|
5020
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
5041
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
5021
5042
|
array-typed field yields nothing. Handlebars
|
|
5022
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
5043
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
5023
5044
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
5024
5045
|
an object record iterates the object's values, not rows.
|
|
5025
5046
|
- |-
|
|
@@ -5041,9 +5062,22 @@ components:
|
|
|
5041
5062
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
5042
5063
|
for value translation that would otherwise need a long
|
|
5043
5064
|
`{{#if ...}}{{else if ...}}` chain.
|
|
5065
|
+
- |-
|
|
5066
|
+
## TRIPLE BRACES FOR VALUES
|
|
5067
|
+
A substitution that outputs a value is written with triple
|
|
5068
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
5069
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
5070
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
5071
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
5072
|
+
record.tags}}`) and inside a block (`{{#if
|
|
5073
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
5074
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
5075
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
5076
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
5077
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
5044
5078
|
examples:
|
|
5045
5079
|
- $.fullName
|
|
5046
|
-
- '{{record.fullName}}'
|
|
5080
|
+
- '{{{record.fullName}}}'
|
|
5047
5081
|
- primary
|
|
5048
5082
|
- $.lineItems[*].unitPrice
|
|
5049
5083
|
extractDateFormat:
|
|
@@ -6446,9 +6480,9 @@ components:
|
|
|
6446
6480
|
the envelope shape on purpose.
|
|
6447
6481
|
- |-
|
|
6448
6482
|
Handlebars expressions inside `extract` reference the
|
|
6449
|
-
`record` root on an object record (`{{record.field}}`,
|
|
6450
|
-
`{{dateFormat ... record.field}}`) and `rows` on a
|
|
6451
|
-
grouped one (`{{rows.0.field}}`), regardless of
|
|
6483
|
+
`record` root on an object record (`{{{record.field}}}`,
|
|
6484
|
+
`{{{dateFormat ... record.field}}}`) and `rows` on a
|
|
6485
|
+
grouped one (`{{{rows.0.field}}}`), regardless of
|
|
6452
6486
|
`inputContext` — only JSONPath anchoring flips.
|
|
6453
6487
|
- |-
|
|
6454
6488
|
## Grouped records
|
|
@@ -6460,7 +6494,7 @@ components:
|
|
|
6460
6494
|
`$.rows[*]` whose children read `$.rows.field` — while
|
|
6461
6495
|
`$.record[0].field` and `$.record[*]` resolve nothing,
|
|
6462
6496
|
with no error (live, 2026-10-30). Handlebars extracts
|
|
6463
|
-
read it as `rows` in both modes (`{{rows.0.field}}`).
|
|
6497
|
+
read it as `rows` in both modes (`{{{rows.0.field}}}`).
|
|
6464
6498
|
- |-
|
|
6465
6499
|
In `envelope` mode the output is still a bare record: a
|
|
6466
6500
|
`modify` transform returns the record with its mapped
|
|
@@ -6509,10 +6543,10 @@ components:
|
|
|
6509
6543
|
## Handlebars expressions are NOT affected
|
|
6510
6544
|
|
|
6511
6545
|
Handlebars expressions inside ``extract``
|
|
6512
|
-
(``{{record.field}}``,
|
|
6513
|
-
``{{dateFormat ... record.field}}``, etc.) reference the
|
|
6546
|
+
(``{{{record.field}}}``,
|
|
6547
|
+
``{{{dateFormat ... record.field}}}``, etc.) reference the
|
|
6514
6548
|
runtime context's ``record`` root on an object record,
|
|
6515
|
-
and ``rows`` (``{{rows.0.field}}``) on a grouped one,
|
|
6549
|
+
and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
|
|
6516
6550
|
regardless of ``inputContext`` — the Handlebars runtime
|
|
6517
6551
|
always sees the wrapped envelope. Only JSONPath
|
|
6518
6552
|
behavior flips with this field.
|
|
@@ -6536,7 +6570,7 @@ components:
|
|
|
6536
6570
|
source file: ``fileName``, ``fileSize``, and
|
|
6537
6571
|
``lastModifiedTime`` (epoch milliseconds). Reach it
|
|
6538
6572
|
as ``$.fileMeta.<field>`` in envelope mode, or as
|
|
6539
|
-
``{{fileMeta.<field>}}`` from a Handlebars extract in
|
|
6573
|
+
``{{{fileMeta.<field>}}}`` from a Handlebars extract in
|
|
6540
6574
|
either mode. The keys are exactly these three —
|
|
6541
6575
|
lowercase variants such as ``filesize`` or
|
|
6542
6576
|
``filename`` resolve empty. The standalone transform
|
|
@@ -16760,6 +16794,21 @@ components:
|
|
|
16760
16794
|
## IMPORTANT
|
|
16761
16795
|
This field is a string, NOT an object. Set it directly: "operation": "addupdate"
|
|
16762
16796
|
Do NOT send {"type": "addupdate"} — that causes a Cast error.
|
|
16797
|
+
- |-
|
|
16798
|
+
On `attach` and `detach` the mapping's body rows are the operation's own
|
|
16799
|
+
properties — the mapping page's locked rows — not fields of the record
|
|
16800
|
+
type: the `customer` record metadata lists none of them, so do not check
|
|
16801
|
+
these rows against the record type's field list.
|
|
16802
|
+
Attach: `recordType` (Attach To Record Type), `celigo_nlobjAttachToId`
|
|
16803
|
+
(Attach To Internal ID), `celigo_nlobjAttachedType` (Attached Record Type)
|
|
16804
|
+
and `celigo_nlobjAttachedId` (Attached Internal ID). Detach: `recordType`
|
|
16805
|
+
(Detach From Record Type), `celigo_nlobjDetachFromId`,
|
|
16806
|
+
`celigo_nlobjDetachedType` and `celigo_nlobjDetachedId`. Both take the
|
|
16807
|
+
optional `celigo_nlobjAttachDetachAttributesRole` (Attribute Role) and
|
|
16808
|
+
`celigo_nlobjAttachDetachAttributesField` (Attribute Field). The mapping
|
|
16809
|
+
preview (`PUT /v1/netsuiteDA/previewImportMappingFields`) returns each of
|
|
16810
|
+
them under `nlobjFieldIds` with the value its row produced; it does not
|
|
16811
|
+
attach or detach anything.
|
|
16763
16812
|
recordType:
|
|
16764
16813
|
type: string
|
|
16765
16814
|
x-celigo-ui-override: Required by the NetSuite import form (recordType is required:true). Encoded to mirror the form so builders produce connectable configurations.
|
|
@@ -17097,6 +17146,10 @@ components:
|
|
|
17097
17146
|
The preview resolves the mapping without writing to NetSuite: the multiselect row
|
|
17098
17147
|
NetSuite rejected at save time (see `fields[].dataType`) rendered exactly like the
|
|
17099
17148
|
row it accepted, so a passed preview does not prove the save.
|
|
17149
|
+
- |-
|
|
17150
|
+
The preview maps one record per request, evaluates row conditions and lookups,
|
|
17151
|
+
and does not run `internalIdLookup` — the operation's request schema lists what it
|
|
17152
|
+
leaves out and what it does not report.
|
|
17100
17153
|
properties:
|
|
17101
17154
|
fields:
|
|
17102
17155
|
type: array
|
|
@@ -17136,6 +17189,14 @@ components:
|
|
|
17136
17189
|
helper rather than retry — see
|
|
17137
17190
|
`mapping.lists[].fields[].extract` for examples of
|
|
17138
17191
|
helpers observed present and missing.
|
|
17192
|
+
- |-
|
|
17193
|
+
A substitution that outputs a value takes triple braces.
|
|
17194
|
+
In the mapping preview double braces HTML-escaped the
|
|
17195
|
+
output — a field (`{{name}}`), a helper's result
|
|
17196
|
+
(`{{uppercase name}}`) and a substitution inside a block
|
|
17197
|
+
alike: `O'Brien` rendered as `O'Brien` and `A&B` as
|
|
17198
|
+
`A&B` — while the same expressions in triple braces
|
|
17199
|
+
and a plain path rendered the value unchanged.
|
|
17139
17200
|
generate:
|
|
17140
17201
|
type: string
|
|
17141
17202
|
description: |
|
|
@@ -17399,7 +17460,53 @@ components:
|
|
|
17399
17460
|
a lookup renamed or removed while a condition still references the
|
|
17400
17461
|
old name is the typical cause. Fix the reference or restore the
|
|
17401
17462
|
lookup — changing the RESTlet / SuiteScript version does not resolve
|
|
17402
|
-
this error.
|
|
17463
|
+
this error. The mapping preview does not report it: there the row is
|
|
17464
|
+
left out of the mapped record with no error.
|
|
17465
|
+
- |-
|
|
17466
|
+
A search that finds nothing never fails the record through a
|
|
17467
|
+
lookup-based condition: with `allowFailures` false and no match, a
|
|
17468
|
+
`lookup_empty` row was applied and a `lookup_not_empty` row left
|
|
17469
|
+
out, and the lookup raised no error, on import runs with
|
|
17470
|
+
`restletVersion` `suiteapp2.0`, `suiteapp1.0` and `suitebundle` and
|
|
17471
|
+
in the mapping preview. `allowFailures` fails a record only on a
|
|
17472
|
+
row that takes its value from the lookup (`lookupName`).
|
|
17473
|
+
- |-
|
|
17474
|
+
On `restletVersion: suiteapp2.0` an import run reads the condition
|
|
17475
|
+
from the value the lookup resolves to under its own settings.
|
|
17476
|
+
`lookup_not_empty` held, and `lookup_empty` did not, when the
|
|
17477
|
+
search matched one record; when it matched several with
|
|
17478
|
+
`allowFailures` true (the lookup resolves to one of them); and
|
|
17479
|
+
when a lookup with `allowFailures` true fell back to a non-empty
|
|
17480
|
+
`default` — on no match, or on several matches with
|
|
17481
|
+
`useDefaultOnMultipleMatches` true. `lookup_empty` held when the
|
|
17482
|
+
search matched nothing and the lookup had no `default`, an empty
|
|
17483
|
+
one or a null one; when it matched several with `allowFailures`
|
|
17484
|
+
false; and when `useDefaultOnMultipleMatches` sent several
|
|
17485
|
+
matches to an empty `default`. Observed on a sublist row in a
|
|
17486
|
+
script's `imports.runMapping` for every case named here, and on
|
|
17487
|
+
a body row of import runs for all of them but the null `default`
|
|
17488
|
+
and one match with `allowFailures` true. A lookup with a
|
|
17489
|
+
`default` and `allowFailures: false` is refused in both: `Lookups
|
|
17490
|
+
with default set can not have allowFailures explicitly set to
|
|
17491
|
+
false.`
|
|
17492
|
+
- |-
|
|
17493
|
+
The mapping preview (`PUT /v1/netsuiteDA/previewImportMappingFields`)
|
|
17494
|
+
reads the condition from the search alone: no match is empty, one
|
|
17495
|
+
match or several is not, and `default` plays no part. Observed
|
|
17496
|
+
with `restletVersion: suiteapp2.0` in the request for the cases
|
|
17497
|
+
above other than a null `default` and a `default` with
|
|
17498
|
+
`allowFailures: false`, and for no match and one match with the
|
|
17499
|
+
other two values. Import runs on `suiteapp1.0` and `suitebundle`
|
|
17500
|
+
read it the same way (no match, one match, no match with a
|
|
17501
|
+
non-empty `default`, several matches with `allowFailures`
|
|
17502
|
+
false). The preview therefore maps the opposite of a `suiteapp2.0`
|
|
17503
|
+
run in two cases — no match on a lookup with a non-empty `default`
|
|
17504
|
+
(the preview applied the `lookup_empty` row, the run left it
|
|
17505
|
+
out), and several matches that the lookup does not resolve to a
|
|
17506
|
+
record, with `allowFailures` false or routed to an empty `default`
|
|
17507
|
+
(the preview left the `lookup_empty` row out, the run applied
|
|
17508
|
+
it). Give a lookup that only a condition reads no `default` and
|
|
17509
|
+
criteria that match at most one record, and the two agree.
|
|
17403
17510
|
- |-
|
|
17404
17511
|
`when: record_updated` requires an operation that can update an
|
|
17405
17512
|
existing record: on an `add`-only operation every record fails with
|
|
@@ -17448,8 +17555,8 @@ components:
|
|
|
17448
17555
|
record_created: Apply this mapping only when a new record is being created.
|
|
17449
17556
|
record_updated: Apply this mapping only when an existing record is being updated.
|
|
17450
17557
|
extract_not_empty: Apply this mapping only when the extracted source value is non-empty.
|
|
17451
|
-
lookup_not_empty: Apply this mapping only when the lookup returns a value.
|
|
17452
|
-
lookup_empty: Apply this mapping only when the lookup returns no value.
|
|
17558
|
+
lookup_not_empty: Apply this mapping only when the lookup named by `lookupName` returns a value.
|
|
17559
|
+
lookup_empty: Apply this mapping only when the lookup named by `lookupName` returns no value.
|
|
17453
17560
|
ignore_if_set: Skip this mapping if the target field already has a value.
|
|
17454
17561
|
description: Condition that controls when this field mapping is applied.
|
|
17455
17562
|
description: |
|
|
@@ -17525,8 +17632,10 @@ components:
|
|
|
17525
17632
|
- |-
|
|
17526
17633
|
The mapper drives iteration from the `[*]` segments among the child extracts;
|
|
17527
17634
|
scalar extracts tag along.
|
|
17528
|
-
If no child uses `[*]
|
|
17529
|
-
|
|
17635
|
+
If no child uses `[*]`, the sublist renders a single line: a sublist whose
|
|
17636
|
+
only row extracts a root-level field (`contactExternalId`, resolved through a
|
|
17637
|
+
lookup) rendered one line in the mapping preview, as does one whose every
|
|
17638
|
+
child is a `hardCodedValue`.
|
|
17530
17639
|
- |-
|
|
17531
17640
|
A row that resolves its value through `lookupName`
|
|
17532
17641
|
(typically `extract: ""`) is driven by the sibling
|
|
@@ -17818,7 +17927,18 @@ components:
|
|
|
17818
17927
|
flow job (it never completes) instead of producing the
|
|
17819
17928
|
`Cannot set properties of undefined (setting '_hasStarNotation')`
|
|
17820
17929
|
error record. Cross-reference every row's `conditional.lookupName`
|
|
17821
|
-
against the import's defined lookups.
|
|
17930
|
+
against the import's defined lookups. The mapping preview does not
|
|
17931
|
+
report it either: there the row is left out of the sublist with no
|
|
17932
|
+
error.
|
|
17933
|
+
- |-
|
|
17934
|
+
A lookup-based condition is read as on a body row — a miss never
|
|
17935
|
+
fails the record, and the mapping preview reads the search where a
|
|
17936
|
+
`suiteapp2.0` run reads the lookup's resolved value (see
|
|
17937
|
+
`mapping.fields[].conditional`). On an iterating sublist the preview
|
|
17938
|
+
evaluates it per line: with two lines whose lookup found an item for
|
|
17939
|
+
the first only, a `lookup_not_empty` row was written on the first
|
|
17940
|
+
line and a `lookup_empty` row on the second, with the lookup's
|
|
17941
|
+
`allowFailures` true and false alike.
|
|
17822
17942
|
- |-
|
|
17823
17943
|
The operation contract differs from body-field conditions:
|
|
17824
17944
|
`when: record_updated` on an `add`-only operation is rejected
|
|
@@ -17874,8 +17994,8 @@ components:
|
|
|
17874
17994
|
record_created: Apply this mapping only when a new record is being created.
|
|
17875
17995
|
record_updated: Apply this mapping only when an existing record is being updated.
|
|
17876
17996
|
extract_not_empty: Apply this mapping only when the extracted source value is non-empty.
|
|
17877
|
-
lookup_not_empty: Apply this mapping only when the lookup returns a value.
|
|
17878
|
-
lookup_empty: Apply this mapping only when the lookup returns no value.
|
|
17997
|
+
lookup_not_empty: Apply this mapping only when the lookup named by `lookupName` returns a value.
|
|
17998
|
+
lookup_empty: Apply this mapping only when the lookup named by `lookupName` returns no value.
|
|
17879
17999
|
ignore_if_set: Skip this mapping if the target field already has a value.
|
|
17880
18000
|
description: Field mappings for each column in the sublist.
|
|
17881
18001
|
description: |
|
|
@@ -18179,13 +18299,24 @@ components:
|
|
|
18179
18299
|
- boolean
|
|
18180
18300
|
- 'null'
|
|
18181
18301
|
description: |-
|
|
18182
|
-
|
|
18183
|
-
`
|
|
18184
|
-
|
|
18302
|
+
Governs a mapping row that takes its value from this lookup
|
|
18303
|
+
(`lookupName`). When true, a lookup miss (no matching record
|
|
18304
|
+
and no `default`) resolves to `null` and the import continues,
|
|
18305
|
+
and a search matching more than one record resolves to one of
|
|
18185
18306
|
them unless `useDefaultOnMultipleMatches` routes it to
|
|
18186
18307
|
`default`. When false (default), a miss and an ambiguous
|
|
18187
18308
|
match both halt the record. May be stored as null (treated
|
|
18188
18309
|
as unset).
|
|
18310
|
+
x-celigo-ai-guidance:
|
|
18311
|
+
- |-
|
|
18312
|
+
A miss never halts the record through a row condition that reads
|
|
18313
|
+
this lookup (`conditional.lookupName` with `lookup_empty` /
|
|
18314
|
+
`lookup_not_empty`), whatever this flag says — do not turn it on
|
|
18315
|
+
to keep a `lookup_empty` condition from failing. On a
|
|
18316
|
+
`restletVersion: suiteapp2.0` import the flag, `default` and
|
|
18317
|
+
`useDefaultOnMultipleMatches` do decide what such a condition
|
|
18318
|
+
reads when the search matches several records or falls back to a
|
|
18319
|
+
default — see `mapping.fields[].conditional`.
|
|
18189
18320
|
map:
|
|
18190
18321
|
type:
|
|
18191
18322
|
- object
|
|
@@ -26455,16 +26586,33 @@ components:
|
|
|
26455
26586
|
- A dot path from the record root (e.g. `email`, `address.city`), read from the
|
|
26456
26587
|
incoming record. A path that matches no field writes nothing.
|
|
26457
26588
|
- Handlebars template (contains `{{`) for concatenation /
|
|
26458
|
-
formatting / conditional logic (e.g. `{{firstName}} {{lastName}}`,
|
|
26459
|
-
`{{#if mobile}}{{mobile}}{{else}}{{phone}}{{/if}}`). The template reads the
|
|
26589
|
+
formatting / conditional logic (e.g. `{{{firstName}}} {{{lastName}}}`,
|
|
26590
|
+
`{{#if mobile}}{{{mobile}}}{{else}}{{{phone}}}{{/if}}`). The template reads the
|
|
26460
26591
|
record's fields by bare name: `{{record.firstName}}` and `{{data.firstName}}`
|
|
26461
26592
|
render nothing, so the field is left out even when the record has the value.
|
|
26593
|
+
A substitution that outputs a value takes triple braces: double braces
|
|
26594
|
+
HTML-escape it (`O'Brien` is written as `O'Brien`).
|
|
26462
26595
|
|
|
26463
26596
|
A `$.` JSONPath (the Mapper 2.0 `mappings` syntax) reads nothing here, and a bare
|
|
26464
26597
|
string is read as a field path, not a constant: set constants in `hardCodedValue`.
|
|
26465
26598
|
Omit when using `hardCodedValue`.
|
|
26466
26599
|
examples:
|
|
26467
26600
|
- address.city
|
|
26601
|
+
x-celigo-ai-guidance:
|
|
26602
|
+
- |-
|
|
26603
|
+
Double braces HTML-escape whatever they output — a field, a helper's result
|
|
26604
|
+
(`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
|
|
26605
|
+
block — with no error: `&`, `<`, `>`, `"` and `'` are written as `&`,
|
|
26606
|
+
`<`, `>`, `"` and `'`. The same expressions in triple braces,
|
|
26607
|
+
and a plain path, write the value unchanged.
|
|
26608
|
+
- |-
|
|
26609
|
+
In a `dataType: json` row the rendered text is parsed, so a string value needs
|
|
26610
|
+
JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
|
|
26611
|
+
double quote and an apostrophe intact, `["{{{name}}}"]` failed the row on it
|
|
26612
|
+
(`Expected ',' or ']' after array element in JSON`) and `["{{name}}"]` wrote
|
|
26613
|
+
the HTML-escaped text. Keep a space between the helper's closing braces and
|
|
26614
|
+
an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
|
|
26615
|
+
`malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
|
|
26468
26616
|
hardCodedValue:
|
|
26469
26617
|
type:
|
|
26470
26618
|
- string
|
|
@@ -28476,7 +28624,7 @@ components:
|
|
|
28476
28624
|
mode evaluates against the wrapped runtime envelope
|
|
28477
28625
|
(``"$.record.field"``). See ``inputContext`` for the full
|
|
28478
28626
|
per-mode contract. Handlebars expressions in ``extract`` always
|
|
28479
|
-
reference ``{{record.field}}`` regardless — only JSONPath
|
|
28627
|
+
reference ``{{{record.field}}}`` regardless — only JSONPath
|
|
28480
28628
|
behavior flips with ``inputContext``.
|
|
28481
28629
|
- |-
|
|
28482
28630
|
## JSON structure — record { } or rows [ ]
|
|
@@ -28598,8 +28746,8 @@ components:
|
|
|
28598
28746
|
- |-
|
|
28599
28747
|
## Handlebars expressions are NOT affected
|
|
28600
28748
|
|
|
28601
|
-
Handlebars expressions inside ``extract`` (``{{record.field}}``,
|
|
28602
|
-
``{{dateFormat ... record.field}}``, etc.) ALWAYS reference the
|
|
28749
|
+
Handlebars expressions inside ``extract`` (``{{{record.field}}}``,
|
|
28750
|
+
``{{{dateFormat ... record.field}}}``, etc.) ALWAYS reference the
|
|
28603
28751
|
runtime context's ``record`` root regardless of
|
|
28604
28752
|
``inputContext`` — the Handlebars runtime always sees the
|
|
28605
28753
|
wrapped envelope. Only JSONPath behavior flips with this field.
|
package/package.json
CHANGED