@celigo/api-specs 0.2.332 → 0.2.334

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/export.yml CHANGED
@@ -13581,9 +13581,13 @@ components:
13581
13581
  - Contains '{{' and '}}' pattern
13582
13582
  - Evaluated by the AFE 2.0 handlebars template engine
13583
13583
  - Can include logic, formatting, and computation
13584
- - Access input record fields with {{record.fieldName}} notation; a grouped
13585
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
13586
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
13584
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
13585
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
13586
+ - Write a substitution that outputs a value with triple braces. Double braces
13587
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
13588
+ is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
13589
+ `{{else}}`, `{{/if}}`) keep double braces
13590
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
13587
13591
  - Valid on scalars and on `object` rows, where the rendered output must
13588
13592
  parse into an object. On an array row the template goes in a
13589
13593
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -13593,7 +13597,7 @@ components:
13593
13597
  error
13594
13598
 
13595
13599
  ```json
13596
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
13600
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
13597
13601
  ```
13598
13602
 
13599
13603
  **3. Hard-Coded Value (literal string)**
@@ -13649,9 +13653,9 @@ components:
13649
13653
  [{"extract": "$[*].field"}]`; an `objectarray` uses
13650
13654
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
13651
13655
  with the children addressing the row relatively (`$.field`,
13652
- `{{rows.field}}`). An `extract` placed directly on the
13656
+ `{{{rows.field}}}`). An `extract` placed directly on the
13653
13657
  array-typed field yields nothing. Handlebars
13654
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
13658
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
13655
13659
  an object record as `record`. The reverse holds too: `$[*]` on
13656
13660
  an object record iterates the object's values, not rows.
13657
13661
  - |-
@@ -13673,9 +13677,22 @@ components:
13673
13677
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
13674
13678
  for value translation that would otherwise need a long
13675
13679
  `{{#if ...}}{{else if ...}}` chain.
13680
+ - |-
13681
+ ## TRIPLE BRACES FOR VALUES
13682
+ A substitution that outputs a value is written with triple
13683
+ braces. With double braces the mapper HTML-escapes the output —
13684
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
13685
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
13686
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
13687
+ record.tags}}`) and inside a block (`{{#if
13688
+ record.name}}{{record.name}}{{/if}}`), with no error: the
13689
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
13690
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
13691
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
13692
+ unchanged. Transformation 2.0 rules behave the same.
13676
13693
  examples:
13677
13694
  - $.fullName
13678
- - '{{record.fullName}}'
13695
+ - '{{{record.fullName}}}'
13679
13696
  - primary
13680
13697
  - $.lineItems[*].unitPrice
13681
13698
  extractDateFormat:
@@ -14705,9 +14722,13 @@ components:
14705
14722
  - Contains '{{' and '}}' pattern
14706
14723
  - Evaluated by the AFE 2.0 handlebars template engine
14707
14724
  - Can include logic, formatting, and computation
14708
- - Access input record fields with {{record.fieldName}} notation; a grouped
14709
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
14710
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
14725
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
14726
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
14727
+ - Write a substitution that outputs a value with triple braces. Double braces
14728
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
14729
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
14730
+ `{{else}}`, `{{/if}}`) keep double braces
14731
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
14711
14732
  - Valid on scalars and on `object` rows, where the rendered output must
14712
14733
  parse into an object. On an array row the template goes in a
14713
14734
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -14717,7 +14738,7 @@ components:
14717
14738
  error
14718
14739
 
14719
14740
  ```json
14720
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
14741
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
14721
14742
  ```
14722
14743
 
14723
14744
  **3. Hard-Coded Value (literal string)**
@@ -14773,9 +14794,9 @@ components:
14773
14794
  [{"extract": "$[*].field"}]`; an `objectarray` uses
14774
14795
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
14775
14796
  with the children addressing the row relatively (`$.field`,
14776
- `{{rows.field}}`). An `extract` placed directly on the
14797
+ `{{{rows.field}}}`). An `extract` placed directly on the
14777
14798
  array-typed field yields nothing. Handlebars
14778
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
14799
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
14779
14800
  an object record as `record`. The reverse holds too: `$[*]` on
14780
14801
  an object record iterates the object's values, not rows.
14781
14802
  - |-
@@ -14797,9 +14818,22 @@ components:
14797
14818
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
14798
14819
  for value translation that would otherwise need a long
14799
14820
  `{{#if ...}}{{else if ...}}` chain.
14821
+ - |-
14822
+ ## TRIPLE BRACES FOR VALUES
14823
+ A substitution that outputs a value is written with triple
14824
+ braces. With double braces the mapper HTML-escapes the output —
14825
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
14826
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
14827
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
14828
+ record.tags}}`) and inside a block (`{{#if
14829
+ record.name}}{{record.name}}{{/if}}`), with no error: the
14830
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
14831
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
14832
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
14833
+ unchanged. Transformation 2.0 rules behave the same.
14800
14834
  examples:
14801
14835
  - $.fullName
14802
- - '{{record.fullName}}'
14836
+ - '{{{record.fullName}}}'
14803
14837
  - primary
14804
14838
  - $.lineItems[*].unitPrice
14805
14839
  extractDateFormat:
@@ -16202,9 +16236,9 @@ components:
16202
16236
  the envelope shape on purpose.
16203
16237
  - |-
16204
16238
  Handlebars expressions inside `extract` reference the
16205
- `record` root on an object record (`{{record.field}}`,
16206
- `{{dateFormat ... record.field}}`) and `rows` on a
16207
- grouped one (`{{rows.0.field}}`), regardless of
16239
+ `record` root on an object record (`{{{record.field}}}`,
16240
+ `{{{dateFormat ... record.field}}}`) and `rows` on a
16241
+ grouped one (`{{{rows.0.field}}}`), regardless of
16208
16242
  `inputContext` — only JSONPath anchoring flips.
16209
16243
  - |-
16210
16244
  ## Grouped records
@@ -16216,7 +16250,7 @@ components:
16216
16250
  `$.rows[*]` whose children read `$.rows.field` — while
16217
16251
  `$.record[0].field` and `$.record[*]` resolve nothing,
16218
16252
  with no error (live, 2026-10-30). Handlebars extracts
16219
- read it as `rows` in both modes (`{{rows.0.field}}`).
16253
+ read it as `rows` in both modes (`{{{rows.0.field}}}`).
16220
16254
  - |-
16221
16255
  In `envelope` mode the output is still a bare record: a
16222
16256
  `modify` transform returns the record with its mapped
@@ -16265,10 +16299,10 @@ components:
16265
16299
  ## Handlebars expressions are NOT affected
16266
16300
 
16267
16301
  Handlebars expressions inside ``extract``
16268
- (``{{record.field}}``,
16269
- ``{{dateFormat ... record.field}}``, etc.) reference the
16302
+ (``{{{record.field}}}``,
16303
+ ``{{{dateFormat ... record.field}}}``, etc.) reference the
16270
16304
  runtime context's ``record`` root on an object record,
16271
- and ``rows`` (``{{rows.0.field}}``) on a grouped one,
16305
+ and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
16272
16306
  regardless of ``inputContext`` — the Handlebars runtime
16273
16307
  always sees the wrapped envelope. Only JSONPath
16274
16308
  behavior flips with this field.
@@ -16292,7 +16326,7 @@ components:
16292
16326
  source file: ``fileName``, ``fileSize``, and
16293
16327
  ``lastModifiedTime`` (epoch milliseconds). Reach it
16294
16328
  as ``$.fileMeta.<field>`` in envelope mode, or as
16295
- ``{{fileMeta.<field>}}`` from a Handlebars extract in
16329
+ ``{{{fileMeta.<field>}}}`` from a Handlebars extract in
16296
16330
  either mode. The keys are exactly these three —
16297
16331
  lowercase variants such as ``filesize`` or
16298
16332
  ``filename`` resolve empty. The standalone transform
package/dist/flow.yml CHANGED
@@ -4064,6 +4064,12 @@ paths:
4064
4064
  The body's `_exportId` picks the page generator the run starts from, and
4065
4065
  the flow can be enabled or disabled.
4066
4066
 
4067
+ A test run does not call every application its steps name. An export with a
4068
+ saved `mockOutput` — the page generator or a lookup — answers from it and is
4069
+ not called; one with none is read from its application. Imports never send.
4070
+ For an HTTP export, `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` shows
4071
+ which it did.
4072
+
4067
4073
  Test runs are kept in a **separate history** from production runs — the
4068
4074
  `flowJob` and `childJobs` returned here are test artifacts, not records
4069
4075
  you'll find via `GET /v1/jobs`. The top-level `metadata` map is keyed by
@@ -4072,7 +4078,7 @@ paths:
4072
4078
  `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` to inspect per-stage
4073
4079
  input/output and errors, or with
4074
4080
  `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
4075
- for raw outbound HTTP captures.
4081
+ for the step's request log.
4076
4082
 
4077
4083
  **Endpoint template applies across three resource families.** The same
4078
4084
  test-run shape also exists for Tools (`/v1/tools/{_id}/test/run`) and
@@ -4081,6 +4087,13 @@ paths:
4081
4087
  A test run processes only the first page of records: later pages arrive empty, so downstream
4082
4088
  steps see only the first page's records.
4083
4089
 
4090
+ A run that reads an export from its application saves what it read on the export as its
4091
+ `mockOutput` (the export's `lastModified` changes), so every later test run answers that step
4092
+ from the saved records instead of calling the application; remove `mockOutput` from the
4093
+ export to read the application again. An import returns its saved `mockResponse`, or a
4094
+ placeholder response when none is saved (see `mockResponse` on imports), and a run saves that
4095
+ placeholder on an import that had none.
4096
+
4084
4097
  Test-run state is short-lived and ephemeral — capture the `runId` (the
4085
4098
  `flowJob._id`) and read back any step detail soon after the run returns.
4086
4099
  parameters:
@@ -4244,10 +4257,11 @@ paths:
4244
4257
 
4245
4258
  A stage's `input` and `output` are `null` when the stage has nothing on
4246
4259
  that side, and arrays for most stages: the `request` and `response`
4247
- stages' `output` lists the outbound HTTP request (`url`, `method`,
4248
- `headers`, and `body` when one was sent) and its reply (`statusCode`,
4249
- `headers`, `body`), and record stages such as `parse` hold envelopes
4250
- carrying `record` and `errors`. The response-mapping stages hold objects
4260
+ stages' `output` lists the HTTP request the step rendered (`url`,
4261
+ `method`, `headers`, and `body` when it has one) and the reply — for an
4262
+ HTTP step, recorded whether or not the request left the platform, see
4263
+ `stages` in the response — and record stages such as `parse` hold
4264
+ envelopes carrying `record` and `errors`. The response-mapping stages hold objects
4251
4265
  instead. `responseMap` takes `{contexts}`, one context per record (the
4252
4266
  step's parsed reply plus `statusCode`, `headers`, and `_json`), and
4253
4267
  returns `{data}`, the mapped records as `{record, traceKey}` entries.
@@ -4260,8 +4274,7 @@ paths:
4260
4274
  `errors`: one entry per record, with the `branches` positions the router
4261
4275
  sent it to and any routing `errors`. Use
4262
4276
  `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
4263
- when you need the raw outbound HTTP request/response captures instead of
4264
- the staged record view.
4277
+ for the step's request log instead of the staged record view.
4265
4278
 
4266
4279
  **Endpoint template applies across three resource families.** The same
4267
4280
  path shape also exists for Tools (`/v1/tools/{_id}/test/run/{runId}/{_stepId}`)
@@ -4307,7 +4320,15 @@ paths:
4307
4320
  properties:
4308
4321
  stages:
4309
4322
  type: array
4310
- description: Ordered stages the step executed.
4323
+ description: |-
4324
+ Ordered stages the step executed. An HTTP export that called its application
4325
+ has `statusCode` and the application's response `headers` beside `body` and
4326
+ `url` in its `response` output; one that answered from the `mockOutput` saved
4327
+ on it has only `body` and `url` there, and its stage list starts with
4328
+ `exportMapping` — no request was sent, though both stages are recorded. A
4329
+ NetSuite search or Salesforce SOQL export records `request` and `parse` only,
4330
+ the same in both cases. An import's request is never sent: its `response`
4331
+ output carries its `mockResponse` status, 200 for the placeholder.
4311
4332
  items:
4312
4333
  type: object
4313
4334
  description: One stage of the step.
@@ -4497,11 +4518,16 @@ paths:
4497
4518
  - Flows
4498
4519
  summary: Get request/response logs for a flow test-run step
4499
4520
  description: |-
4500
- Returns the outbound HTTP request/response log pairs captured during a
4501
- specific step of a flow test run. Only steps that issued outbound HTTP
4502
- calls (exports, imports, lookups) produce entries — routers, filters, and
4503
- other in-process stages are rejected with `req_res_logs_not_found` by
4504
- design.
4521
+ Returns the HTTP request/response log pairs captured during a
4522
+ specific step of a flow test run. Only export, import, and lookup steps
4523
+ produce entries — routers, filters, and other in-process stages are
4524
+ rejected with `req_res_logs_not_found` by design.
4525
+
4526
+ An entry is recorded for an HTTP step whether or not its request left the
4527
+ platform: an HTTP export that answered from the `mockOutput` saved on it
4528
+ has one, and so does an import, whose request is never sent in a test run.
4529
+ To tell a call that was made from one that was not, read the step's
4530
+ `response` stage with `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}`.
4505
4531
 
4506
4532
  The `runId` comes from the `POST /v1/flows/{_id}/test/run` response (not
4507
4533
  from a normal flow run Job record — test runs and regular runs are
@@ -2082,16 +2082,33 @@ components:
2082
2082
  - A dot path from the record root (e.g. `email`, `address.city`), read from the
2083
2083
  incoming record. A path that matches no field writes nothing.
2084
2084
  - Handlebars template (contains `{{`) for concatenation /
2085
- formatting / conditional logic (e.g. `{{firstName}} {{lastName}}`,
2086
- `{{#if mobile}}{{mobile}}{{else}}{{phone}}{{/if}}`). The template reads the
2085
+ formatting / conditional logic (e.g. `{{{firstName}}} {{{lastName}}}`,
2086
+ `{{#if mobile}}{{{mobile}}}{{else}}{{{phone}}}{{/if}}`). The template reads the
2087
2087
  record's fields by bare name: `{{record.firstName}}` and `{{data.firstName}}`
2088
2088
  render nothing, so the field is left out even when the record has the value.
2089
+ A substitution that outputs a value takes triple braces: double braces
2090
+ HTML-escape it (`O'Brien` is written as `O&#x27;Brien`).
2089
2091
 
2090
2092
  A `$.` JSONPath (the Mapper 2.0 `mappings` syntax) reads nothing here, and a bare
2091
2093
  string is read as a field path, not a constant: set constants in `hardCodedValue`.
2092
2094
  Omit when using `hardCodedValue`.
2093
2095
  examples:
2094
2096
  - address.city
2097
+ x-celigo-ai-guidance:
2098
+ - |-
2099
+ Double braces HTML-escape whatever they output — a field, a helper's result
2100
+ (`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
2101
+ block — with no error: `&`, `<`, `>`, `"` and `'` are written as `&amp;`,
2102
+ `&lt;`, `&gt;`, `&quot;` and `&#x27;`. The same expressions in triple braces,
2103
+ and a plain path, write the value unchanged.
2104
+ - |-
2105
+ In a `dataType: json` row the rendered text is parsed, so a string value needs
2106
+ JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
2107
+ double quote and an apostrophe intact, `["{{{name}}}"]` failed the row on it
2108
+ (`Expected ',' or ']' after array element in JSON`) and `["{{name}}"]` wrote
2109
+ the HTML-escaped text. Keep a space between the helper's closing braces and
2110
+ an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
2111
+ `malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
2095
2112
  hardCodedValue:
2096
2113
  type:
2097
2114
  - string