@celigo/api-specs 0.2.331 → 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/sync.yml CHANGED
@@ -1472,7 +1472,7 @@ paths:
1472
1472
  numLoadedRecords: 12450
1473
1473
  numExtractedRecords: 12450
1474
1474
  numTablesSynced: 3
1475
- triggeredBy: user:jane@example.com
1475
+ triggeredBy: 68c821306f5d848c881da205
1476
1476
  runType: normal
1477
1477
  - _id: 6821b00a39db7c2b9cdc0d10
1478
1478
  flowExecutionGroupId: 6821b00a39db7c2b9cdc0d09
@@ -1487,7 +1487,7 @@ paths:
1487
1487
  numLoadedRecords: 11980
1488
1488
  numExtractedRecords: 11982
1489
1489
  numTablesSynced: 3
1490
- triggeredBy: schedule
1490
+ triggeredBy: 68c821306f5d848c881da205
1491
1491
  runType: resync
1492
1492
  datasetIds:
1493
1493
  - 6a559b547885d8f93921c2ba
@@ -1665,7 +1665,7 @@ paths:
1665
1665
  numLoadedRecords: 12450
1666
1666
  numExtractedRecords: 12450
1667
1667
  numTablesSynced: 3
1668
- triggeredBy: user:jane@example.com
1668
+ triggeredBy: 68c821306f5d848c881da205
1669
1669
  runType: normal
1670
1670
  running:
1671
1671
  summary: A currently running sync job
@@ -1682,7 +1682,6 @@ paths:
1682
1682
  numLoadedRecords: 3200
1683
1683
  numExtractedRecords: 5100
1684
1684
  numTablesSynced: 2
1685
- triggeredBy: schedule
1686
1685
  runType: normal
1687
1686
  '401':
1688
1687
  $ref: '#/components/responses/401-unauthorized'
@@ -1740,7 +1739,6 @@ paths:
1740
1739
  numLoadedRecords: 12450
1741
1740
  numExtractedRecords: 12450
1742
1741
  numTablesSynced: 2
1743
- triggeredBy: schedule
1744
1742
  runType: normal
1745
1743
  tables:
1746
1744
  - _id: 6821c01c39db7c2b9cdc0e31
@@ -2041,7 +2039,6 @@ paths:
2041
2039
  numLoadedRecords: 12450
2042
2040
  numExtractedRecords: 12450
2043
2041
  numTablesSynced: 3
2044
- triggeredBy: schedule
2045
2042
  runType: normal
2046
2043
  - _id: 6821d22e39db7c2b9cdc1050
2047
2044
  flowExecutionGroupId: 6821d22e39db7c2b9cdc1049
@@ -2056,7 +2053,6 @@ paths:
2056
2053
  numLoadedRecords: 5600
2057
2054
  numExtractedRecords: 5601
2058
2055
  numTablesSynced: 2
2059
- triggeredBy: schedule
2060
2056
  runType: normal
2061
2057
  '204':
2062
2058
  description: No sync jobs exist for any sync in this integration.
@@ -4294,9 +4290,37 @@ components:
4294
4290
  schedule:
4295
4291
  type: string
4296
4292
  description: |-
4297
- Cron expression that controls automatic runs, e.g. `? 0 */6 * * *` for every
4298
- six hours. Empty or omitted means the sync only runs on demand via
4299
- `POST /v1/syncs/{_syncId}/run`. Evaluated in the sync's `timezone`.
4293
+ Celigo 6-field cron expression that controls automatic runs —
4294
+ `? minute hour day-of-month month day-of-week`, the format of a flow's `schedule` —
4295
+ e.g. `? 0 */6 * * *` for every six hours. Empty or omitted means the sync only runs
4296
+ on demand via `POST /v1/syncs/{_syncId}/run`. Evaluated in the sync's `timezone`.
4297
+ Celigo assigns the start minute, as it does for a flow: today a schedule that
4298
+ names minute 0 starts its runs at minute 5 (`? 0 2 * * *` runs at 02:05) — the
4299
+ platform's current assignment, not a contract — while this field keeps the
4300
+ expression as it was sent. A five-field Unix cron such as `0 * * * *` has been
4301
+ stored as sent and does not run as written (known issue IO-242867, described in
4302
+ the guidance).
4303
+ x-celigo-ai-guidance:
4304
+ - |-
4305
+ Read a saved `schedule` by its fields before saying when the sync runs: after
4306
+ the leading `?` come minute, hour, day-of-month, month and day-of-week, in the
4307
+ sync's `timezone` — `? 0 2 * * *` is once a day, `? 0 */8 * * *` every eight
4308
+ hours, `? 0 4,12,20 * * *` three times a day. Give the start time Celigo
4309
+ assigns, not the minute written: with minute 0 written the runs start at
4310
+ minute 5 today, so `? 0 2 * * *` is 02:05, never 02:00.
4311
+ - |-
4312
+ Known issue (IO-242867), until the fix is released: PUT has stored five-field
4313
+ Unix crons as sent (`0 * * * *` and `0 0 * * *` were), and the scheduler reads
4314
+ such a value from the seconds position, as described on a flow's `schedule`.
4315
+ `0 * * * *`, meant as hourly, ran a sync every minute. When a sync runs far more
4316
+ often than its schedule seems to say, count the fields of the saved `schedule`
4317
+ first; say what it runs as, and offer the six-field expression for the cadence
4318
+ the user meant.
4319
+ - |-
4320
+ When AUTHORING a schedule, write six fields with `?` first, in the shapes syncs
4321
+ run on: `? 0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * *`
4322
+ for hourly, `? 0 2 * * *` for daily, `? 0 4,12,20 * * *` for three times a day.
4323
+ Never send five fields.
4300
4324
  examples:
4301
4325
  - '? 0 */6 * * *'
4302
4326
  timezone:
@@ -4562,9 +4586,19 @@ components:
4562
4586
  schedule:
4563
4587
  type: string
4564
4588
  description: |-
4565
- Cron expression that controls automatic runs, e.g. `? 0 */6 * * *` for every six
4589
+ Celigo 6-field cron expression that controls automatic runs —
4590
+ `? minute hour day-of-month month day-of-week` — e.g. `? 0 */6 * * *` for every six
4566
4591
  hours. Send an empty string (or omit) for a sync that only runs on demand.
4567
- Evaluated in `timezone`.
4592
+ Evaluated in `timezone`. Send six fields: a five-field Unix cron such as
4593
+ `0 * * * *` has been stored as sent and does not run as written (known issue
4594
+ IO-242867, described in the guidance).
4595
+ x-celigo-ai-guidance:
4596
+ - |-
4597
+ Known issue (IO-242867), until the fix is released: PUT has stored five-field
4598
+ Unix crons as sent (`0 * * * *` and `0 0 * * *` were), and the scheduler reads
4599
+ such a value from the seconds position — `0 * * * *`, meant as hourly, ran a
4600
+ sync every minute. Send `?` as the first of six fields: `? 0 2 * * *` for
4601
+ daily, whose runs start at 02:05 today.
4568
4602
  examples:
4569
4603
  - '? 0 */6 * * *'
4570
4604
  timezone:
@@ -5516,16 +5550,25 @@ components:
5516
5550
  - 3
5517
5551
  triggeredBy:
5518
5552
  type: string
5553
+ format: objectId
5554
+ x-celigo-refModel: users
5519
5555
  readOnly: true
5520
- description: Who or what triggered this sync run (e.g. `"user:email"`, `"schedule"`).
5556
+ description: |-
5557
+ Set on a run started on demand (`POST /v1/syncs/{_syncId}/run`): the `_id` of the
5558
+ account the sync belongs to (the sync's `_userId`). A run the schedule started
5559
+ carries none.
5521
5560
  examples:
5522
- - user:jane@example.com
5561
+ - 68c821306f5d848c881da205
5523
5562
  canceledBy:
5524
5563
  type: string
5525
5564
  readOnly: true
5526
- description: Who requested cancellation. Present once cancellation has been requested.
5565
+ description: |-
5566
+ Who requested cancellation: the `_id` of a user for a run a person canceled, or
5567
+ `system` for a cancellation the platform made. Present once cancellation has been
5568
+ requested.
5527
5569
  examples:
5528
- - user:jane@example.com
5570
+ - 68c821306f5d848c881da205
5571
+ - system
5529
5572
  runType:
5530
5573
  type: string
5531
5574
  readOnly: true
@@ -5561,7 +5604,7 @@ components:
5561
5604
  numLoadedRecords: 12450
5562
5605
  numExtractedRecords: 12450
5563
5606
  numTablesSynced: 3
5564
- triggeredBy: user:jane@example.com
5607
+ triggeredBy: 68c821306f5d848c881da205
5565
5608
  runType: normal
5566
5609
  - _id: 6821c01c39db7c2b9cdc0e40
5567
5610
  flowExecutionGroupId: 6821c01c39db7c2b9cdc0e39
@@ -5574,7 +5617,7 @@ components:
5574
5617
  numLoadedRecords: 0
5575
5618
  numExtractedRecords: 0
5576
5619
  numTablesSynced: 1
5577
- triggeredBy: user:jane@example.com
5620
+ triggeredBy: 68c821306f5d848c881da205
5578
5621
  runType: resync
5579
5622
  datasetIds:
5580
5623
  - 6a559b547885d8f93921c2ba
@@ -5609,7 +5652,7 @@ components:
5609
5652
  numLoadedRecords: 12450
5610
5653
  numExtractedRecords: 12450
5611
5654
  numTablesSynced: 3
5612
- triggeredBy: user:jane@example.com
5655
+ triggeredBy: 68c821306f5d848c881da205
5613
5656
  runType: normal
5614
5657
  totalCount: 1
5615
5658
  SyncTableJob:
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
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
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 `&amp;`, `&lt;`, `&gt;`,
3929
+ `&quot;` and `&#x27;` — 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&#x27;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
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
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&#x27;Brien` and `A&B` as `A&amp;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 `&amp;`, `&lt;`, `&gt;`,
5070
+ `&quot;` and `&#x27;` — 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&#x27;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&#x27;Brien` and `A&B` as
17198
+ `A&amp;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 `[*]` and none set `extract` at all (every child is a `hardCodedValue`),
17529
- the sublist renders a single static line.
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
- When true, a lookup miss (no matching record and no
18183
- `default`) resolves to `null` and the import continues, and
18184
- a search matching more than one record resolves to one of
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&#x27;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 `&amp;`,
26606
+ `&lt;`, `&gt;`, `&quot;` and `&#x27;`. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.331",
3
+ "version": "0.2.333",
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,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "6473a0bf",
5
- "generatedAt": "2026-11-21"
4
+ "iasCommit": "40a3e70a",
5
+ "generatedAt": "2026-11-22"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 130,