@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/ai-agent.yml
CHANGED
|
@@ -2862,9 +2862,13 @@ components:
|
|
|
2862
2862
|
- Contains '{{' and '}}' pattern
|
|
2863
2863
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
2864
2864
|
- Can include logic, formatting, and computation
|
|
2865
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
2866
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
2867
|
-
-
|
|
2865
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
2866
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
2867
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
2868
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
2869
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
2870
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
2871
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
2868
2872
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
2869
2873
|
parse into an object. On an array row the template goes in a
|
|
2870
2874
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -2874,7 +2878,7 @@ components:
|
|
|
2874
2878
|
error
|
|
2875
2879
|
|
|
2876
2880
|
```json
|
|
2877
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
2881
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
2878
2882
|
```
|
|
2879
2883
|
|
|
2880
2884
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -2930,9 +2934,9 @@ components:
|
|
|
2930
2934
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
2931
2935
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
2932
2936
|
with the children addressing the row relatively (`$.field`,
|
|
2933
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
2937
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
2934
2938
|
array-typed field yields nothing. Handlebars
|
|
2935
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
2939
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
2936
2940
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
2937
2941
|
an object record iterates the object's values, not rows.
|
|
2938
2942
|
- |-
|
|
@@ -2954,9 +2958,22 @@ components:
|
|
|
2954
2958
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
2955
2959
|
for value translation that would otherwise need a long
|
|
2956
2960
|
`{{#if ...}}{{else if ...}}` chain.
|
|
2961
|
+
- |-
|
|
2962
|
+
## TRIPLE BRACES FOR VALUES
|
|
2963
|
+
A substitution that outputs a value is written with triple
|
|
2964
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
2965
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
2966
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
2967
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
2968
|
+
record.tags}}`) and inside a block (`{{#if
|
|
2969
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
2970
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
2971
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
2972
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
2973
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
2957
2974
|
examples:
|
|
2958
2975
|
- $.fullName
|
|
2959
|
-
- '{{record.fullName}}'
|
|
2976
|
+
- '{{{record.fullName}}}'
|
|
2960
2977
|
- primary
|
|
2961
2978
|
- $.lineItems[*].unitPrice
|
|
2962
2979
|
extractDateFormat:
|
|
@@ -3986,9 +4003,13 @@ components:
|
|
|
3986
4003
|
- Contains '{{' and '}}' pattern
|
|
3987
4004
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
3988
4005
|
- Can include logic, formatting, and computation
|
|
3989
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
3990
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
3991
|
-
-
|
|
4006
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
4007
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
4008
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
4009
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
4010
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
4011
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
4012
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
3992
4013
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
3993
4014
|
parse into an object. On an array row the template goes in a
|
|
3994
4015
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -3998,7 +4019,7 @@ components:
|
|
|
3998
4019
|
error
|
|
3999
4020
|
|
|
4000
4021
|
```json
|
|
4001
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
4022
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
4002
4023
|
```
|
|
4003
4024
|
|
|
4004
4025
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -4054,9 +4075,9 @@ components:
|
|
|
4054
4075
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
4055
4076
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
4056
4077
|
with the children addressing the row relatively (`$.field`,
|
|
4057
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
4078
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
4058
4079
|
array-typed field yields nothing. Handlebars
|
|
4059
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
4080
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
4060
4081
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
4061
4082
|
an object record iterates the object's values, not rows.
|
|
4062
4083
|
- |-
|
|
@@ -4078,9 +4099,22 @@ components:
|
|
|
4078
4099
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
4079
4100
|
for value translation that would otherwise need a long
|
|
4080
4101
|
`{{#if ...}}{{else if ...}}` chain.
|
|
4102
|
+
- |-
|
|
4103
|
+
## TRIPLE BRACES FOR VALUES
|
|
4104
|
+
A substitution that outputs a value is written with triple
|
|
4105
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
4106
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
4107
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
4108
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
4109
|
+
record.tags}}`) and inside a block (`{{#if
|
|
4110
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
4111
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
4112
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
4113
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
4114
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
4081
4115
|
examples:
|
|
4082
4116
|
- $.fullName
|
|
4083
|
-
- '{{record.fullName}}'
|
|
4117
|
+
- '{{{record.fullName}}}'
|
|
4084
4118
|
- primary
|
|
4085
4119
|
- $.lineItems[*].unitPrice
|
|
4086
4120
|
extractDateFormat:
|
|
@@ -5993,9 +6027,9 @@ components:
|
|
|
5993
6027
|
the envelope shape on purpose.
|
|
5994
6028
|
- |-
|
|
5995
6029
|
Handlebars expressions inside `extract` reference the
|
|
5996
|
-
`record` root on an object record (`{{record.field}}`,
|
|
5997
|
-
`{{dateFormat ... record.field}}`) and `rows` on a
|
|
5998
|
-
grouped one (`{{rows.0.field}}`), regardless of
|
|
6030
|
+
`record` root on an object record (`{{{record.field}}}`,
|
|
6031
|
+
`{{{dateFormat ... record.field}}}`) and `rows` on a
|
|
6032
|
+
grouped one (`{{{rows.0.field}}}`), regardless of
|
|
5999
6033
|
`inputContext` — only JSONPath anchoring flips.
|
|
6000
6034
|
- |-
|
|
6001
6035
|
## Grouped records
|
|
@@ -6007,7 +6041,7 @@ components:
|
|
|
6007
6041
|
`$.rows[*]` whose children read `$.rows.field` — while
|
|
6008
6042
|
`$.record[0].field` and `$.record[*]` resolve nothing,
|
|
6009
6043
|
with no error (live, 2026-10-30). Handlebars extracts
|
|
6010
|
-
read it as `rows` in both modes (`{{rows.0.field}}`).
|
|
6044
|
+
read it as `rows` in both modes (`{{{rows.0.field}}}`).
|
|
6011
6045
|
- |-
|
|
6012
6046
|
In `envelope` mode the output is still a bare record: a
|
|
6013
6047
|
`modify` transform returns the record with its mapped
|
|
@@ -6056,10 +6090,10 @@ components:
|
|
|
6056
6090
|
## Handlebars expressions are NOT affected
|
|
6057
6091
|
|
|
6058
6092
|
Handlebars expressions inside ``extract``
|
|
6059
|
-
(``{{record.field}}``,
|
|
6060
|
-
``{{dateFormat ... record.field}}``, etc.) reference the
|
|
6093
|
+
(``{{{record.field}}}``,
|
|
6094
|
+
``{{{dateFormat ... record.field}}}``, etc.) reference the
|
|
6061
6095
|
runtime context's ``record`` root on an object record,
|
|
6062
|
-
and ``rows`` (``{{rows.0.field}}``) on a grouped one,
|
|
6096
|
+
and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
|
|
6063
6097
|
regardless of ``inputContext`` — the Handlebars runtime
|
|
6064
6098
|
always sees the wrapped envelope. Only JSONPath
|
|
6065
6099
|
behavior flips with this field.
|
|
@@ -6083,7 +6117,7 @@ components:
|
|
|
6083
6117
|
source file: ``fileName``, ``fileSize``, and
|
|
6084
6118
|
``lastModifiedTime`` (epoch milliseconds). Reach it
|
|
6085
6119
|
as ``$.fileMeta.<field>`` in envelope mode, or as
|
|
6086
|
-
``{{fileMeta.<field>}}`` from a Handlebars extract in
|
|
6120
|
+
``{{{fileMeta.<field>}}}`` from a Handlebars extract in
|
|
6087
6121
|
either mode. The keys are exactly these three —
|
|
6088
6122
|
lowercase variants such as ``filesize`` or
|
|
6089
6123
|
``filename`` resolve empty. The standalone transform
|
package/dist/api.yml
CHANGED
|
@@ -2949,9 +2949,13 @@ components:
|
|
|
2949
2949
|
- Contains '{{' and '}}' pattern
|
|
2950
2950
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
2951
2951
|
- Can include logic, formatting, and computation
|
|
2952
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
2953
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
2954
|
-
-
|
|
2952
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
2953
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
2954
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
2955
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
2956
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
2957
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
2958
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
2955
2959
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
2956
2960
|
parse into an object. On an array row the template goes in a
|
|
2957
2961
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -2961,7 +2965,7 @@ components:
|
|
|
2961
2965
|
error
|
|
2962
2966
|
|
|
2963
2967
|
```json
|
|
2964
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
2968
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
2965
2969
|
```
|
|
2966
2970
|
|
|
2967
2971
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -3017,9 +3021,9 @@ components:
|
|
|
3017
3021
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
3018
3022
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
3019
3023
|
with the children addressing the row relatively (`$.field`,
|
|
3020
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
3024
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
3021
3025
|
array-typed field yields nothing. Handlebars
|
|
3022
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
3026
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
3023
3027
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
3024
3028
|
an object record iterates the object's values, not rows.
|
|
3025
3029
|
- |-
|
|
@@ -3041,9 +3045,22 @@ components:
|
|
|
3041
3045
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
3042
3046
|
for value translation that would otherwise need a long
|
|
3043
3047
|
`{{#if ...}}{{else if ...}}` chain.
|
|
3048
|
+
- |-
|
|
3049
|
+
## TRIPLE BRACES FOR VALUES
|
|
3050
|
+
A substitution that outputs a value is written with triple
|
|
3051
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
3052
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
3053
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
3054
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
3055
|
+
record.tags}}`) and inside a block (`{{#if
|
|
3056
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
3057
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
3058
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
3059
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
3060
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
3044
3061
|
examples:
|
|
3045
3062
|
- $.fullName
|
|
3046
|
-
- '{{record.fullName}}'
|
|
3063
|
+
- '{{{record.fullName}}}'
|
|
3047
3064
|
- primary
|
|
3048
3065
|
- $.lineItems[*].unitPrice
|
|
3049
3066
|
extractDateFormat:
|
|
@@ -4073,9 +4090,13 @@ components:
|
|
|
4073
4090
|
- Contains '{{' and '}}' pattern
|
|
4074
4091
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
4075
4092
|
- Can include logic, formatting, and computation
|
|
4076
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
4077
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
4078
|
-
-
|
|
4093
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
4094
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
4095
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
4096
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
4097
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
4098
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
4099
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
4079
4100
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
4080
4101
|
parse into an object. On an array row the template goes in a
|
|
4081
4102
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -4085,7 +4106,7 @@ components:
|
|
|
4085
4106
|
error
|
|
4086
4107
|
|
|
4087
4108
|
```json
|
|
4088
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
4109
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
4089
4110
|
```
|
|
4090
4111
|
|
|
4091
4112
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -4141,9 +4162,9 @@ components:
|
|
|
4141
4162
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
4142
4163
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
4143
4164
|
with the children addressing the row relatively (`$.field`,
|
|
4144
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
4165
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
4145
4166
|
array-typed field yields nothing. Handlebars
|
|
4146
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
4167
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
4147
4168
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
4148
4169
|
an object record iterates the object's values, not rows.
|
|
4149
4170
|
- |-
|
|
@@ -4165,9 +4186,22 @@ components:
|
|
|
4165
4186
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
4166
4187
|
for value translation that would otherwise need a long
|
|
4167
4188
|
`{{#if ...}}{{else if ...}}` chain.
|
|
4189
|
+
- |-
|
|
4190
|
+
## TRIPLE BRACES FOR VALUES
|
|
4191
|
+
A substitution that outputs a value is written with triple
|
|
4192
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
4193
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
4194
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
4195
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
4196
|
+
record.tags}}`) and inside a block (`{{#if
|
|
4197
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
4198
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
4199
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
4200
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
4201
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
4168
4202
|
examples:
|
|
4169
4203
|
- $.fullName
|
|
4170
|
-
- '{{record.fullName}}'
|
|
4204
|
+
- '{{{record.fullName}}}'
|
|
4171
4205
|
- primary
|
|
4172
4206
|
- $.lineItems[*].unitPrice
|
|
4173
4207
|
extractDateFormat:
|
|
@@ -5570,9 +5604,9 @@ components:
|
|
|
5570
5604
|
the envelope shape on purpose.
|
|
5571
5605
|
- |-
|
|
5572
5606
|
Handlebars expressions inside `extract` reference the
|
|
5573
|
-
`record` root on an object record (`{{record.field}}`,
|
|
5574
|
-
`{{dateFormat ... record.field}}`) and `rows` on a
|
|
5575
|
-
grouped one (`{{rows.0.field}}`), regardless of
|
|
5607
|
+
`record` root on an object record (`{{{record.field}}}`,
|
|
5608
|
+
`{{{dateFormat ... record.field}}}`) and `rows` on a
|
|
5609
|
+
grouped one (`{{{rows.0.field}}}`), regardless of
|
|
5576
5610
|
`inputContext` — only JSONPath anchoring flips.
|
|
5577
5611
|
- |-
|
|
5578
5612
|
## Grouped records
|
|
@@ -5584,7 +5618,7 @@ components:
|
|
|
5584
5618
|
`$.rows[*]` whose children read `$.rows.field` — while
|
|
5585
5619
|
`$.record[0].field` and `$.record[*]` resolve nothing,
|
|
5586
5620
|
with no error (live, 2026-10-30). Handlebars extracts
|
|
5587
|
-
read it as `rows` in both modes (`{{rows.0.field}}`).
|
|
5621
|
+
read it as `rows` in both modes (`{{{rows.0.field}}}`).
|
|
5588
5622
|
- |-
|
|
5589
5623
|
In `envelope` mode the output is still a bare record: a
|
|
5590
5624
|
`modify` transform returns the record with its mapped
|
|
@@ -5633,10 +5667,10 @@ components:
|
|
|
5633
5667
|
## Handlebars expressions are NOT affected
|
|
5634
5668
|
|
|
5635
5669
|
Handlebars expressions inside ``extract``
|
|
5636
|
-
(``{{record.field}}``,
|
|
5637
|
-
``{{dateFormat ... record.field}}``, etc.) reference the
|
|
5670
|
+
(``{{{record.field}}}``,
|
|
5671
|
+
``{{{dateFormat ... record.field}}}``, etc.) reference the
|
|
5638
5672
|
runtime context's ``record`` root on an object record,
|
|
5639
|
-
and ``rows`` (``{{rows.0.field}}``) on a grouped one,
|
|
5673
|
+
and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
|
|
5640
5674
|
regardless of ``inputContext`` — the Handlebars runtime
|
|
5641
5675
|
always sees the wrapped envelope. Only JSONPath
|
|
5642
5676
|
behavior flips with this field.
|
|
@@ -5660,7 +5694,7 @@ components:
|
|
|
5660
5694
|
source file: ``fileName``, ``fileSize``, and
|
|
5661
5695
|
``lastModifiedTime`` (epoch milliseconds). Reach it
|
|
5662
5696
|
as ``$.fileMeta.<field>`` in envelope mode, or as
|
|
5663
|
-
``{{fileMeta.<field>}}`` from a Handlebars extract in
|
|
5697
|
+
``{{{fileMeta.<field>}}}`` from a Handlebars extract in
|
|
5664
5698
|
either mode. The keys are exactly these three —
|
|
5665
5699
|
lowercase variants such as ``filesize`` or
|
|
5666
5700
|
``filename`` resolve empty. The standalone transform
|
package/dist/asynchelper.yml
CHANGED
|
@@ -652,9 +652,13 @@ components:
|
|
|
652
652
|
- Contains '{{' and '}}' pattern
|
|
653
653
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
654
654
|
- Can include logic, formatting, and computation
|
|
655
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
656
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
657
|
-
-
|
|
655
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
656
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
657
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
658
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
659
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
660
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
661
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
658
662
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
659
663
|
parse into an object. On an array row the template goes in a
|
|
660
664
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -664,7 +668,7 @@ components:
|
|
|
664
668
|
error
|
|
665
669
|
|
|
666
670
|
```json
|
|
667
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
671
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
668
672
|
```
|
|
669
673
|
|
|
670
674
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -720,9 +724,9 @@ components:
|
|
|
720
724
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
721
725
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
722
726
|
with the children addressing the row relatively (`$.field`,
|
|
723
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
727
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
724
728
|
array-typed field yields nothing. Handlebars
|
|
725
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
729
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
726
730
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
727
731
|
an object record iterates the object's values, not rows.
|
|
728
732
|
- |-
|
|
@@ -744,9 +748,22 @@ components:
|
|
|
744
748
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
745
749
|
for value translation that would otherwise need a long
|
|
746
750
|
`{{#if ...}}{{else if ...}}` chain.
|
|
751
|
+
- |-
|
|
752
|
+
## TRIPLE BRACES FOR VALUES
|
|
753
|
+
A substitution that outputs a value is written with triple
|
|
754
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
755
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
756
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
757
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
758
|
+
record.tags}}`) and inside a block (`{{#if
|
|
759
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
760
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
761
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
762
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
763
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
747
764
|
examples:
|
|
748
765
|
- $.fullName
|
|
749
|
-
- '{{record.fullName}}'
|
|
766
|
+
- '{{{record.fullName}}}'
|
|
750
767
|
- primary
|
|
751
768
|
- $.lineItems[*].unitPrice
|
|
752
769
|
extractDateFormat:
|
|
@@ -1776,9 +1793,13 @@ components:
|
|
|
1776
1793
|
- Contains '{{' and '}}' pattern
|
|
1777
1794
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
1778
1795
|
- Can include logic, formatting, and computation
|
|
1779
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
1780
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
1781
|
-
-
|
|
1796
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
1797
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
1798
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
1799
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
1800
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
1801
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
1802
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
1782
1803
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
1783
1804
|
parse into an object. On an array row the template goes in a
|
|
1784
1805
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -1788,7 +1809,7 @@ components:
|
|
|
1788
1809
|
error
|
|
1789
1810
|
|
|
1790
1811
|
```json
|
|
1791
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
1812
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
1792
1813
|
```
|
|
1793
1814
|
|
|
1794
1815
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -1844,9 +1865,9 @@ components:
|
|
|
1844
1865
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
1845
1866
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
1846
1867
|
with the children addressing the row relatively (`$.field`,
|
|
1847
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
1868
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
1848
1869
|
array-typed field yields nothing. Handlebars
|
|
1849
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
1870
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
1850
1871
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
1851
1872
|
an object record iterates the object's values, not rows.
|
|
1852
1873
|
- |-
|
|
@@ -1868,9 +1889,22 @@ components:
|
|
|
1868
1889
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
1869
1890
|
for value translation that would otherwise need a long
|
|
1870
1891
|
`{{#if ...}}{{else if ...}}` chain.
|
|
1892
|
+
- |-
|
|
1893
|
+
## TRIPLE BRACES FOR VALUES
|
|
1894
|
+
A substitution that outputs a value is written with triple
|
|
1895
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
1896
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
1897
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
1898
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
1899
|
+
record.tags}}`) and inside a block (`{{#if
|
|
1900
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
1901
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
1902
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
1903
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
1904
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
1871
1905
|
examples:
|
|
1872
1906
|
- $.fullName
|
|
1873
|
-
- '{{record.fullName}}'
|
|
1907
|
+
- '{{{record.fullName}}}'
|
|
1874
1908
|
- primary
|
|
1875
1909
|
- $.lineItems[*].unitPrice
|
|
1876
1910
|
extractDateFormat:
|
|
@@ -3273,9 +3307,9 @@ components:
|
|
|
3273
3307
|
the envelope shape on purpose.
|
|
3274
3308
|
- |-
|
|
3275
3309
|
Handlebars expressions inside `extract` reference the
|
|
3276
|
-
`record` root on an object record (`{{record.field}}`,
|
|
3277
|
-
`{{dateFormat ... record.field}}`) and `rows` on a
|
|
3278
|
-
grouped one (`{{rows.0.field}}`), regardless of
|
|
3310
|
+
`record` root on an object record (`{{{record.field}}}`,
|
|
3311
|
+
`{{{dateFormat ... record.field}}}`) and `rows` on a
|
|
3312
|
+
grouped one (`{{{rows.0.field}}}`), regardless of
|
|
3279
3313
|
`inputContext` — only JSONPath anchoring flips.
|
|
3280
3314
|
- |-
|
|
3281
3315
|
## Grouped records
|
|
@@ -3287,7 +3321,7 @@ components:
|
|
|
3287
3321
|
`$.rows[*]` whose children read `$.rows.field` — while
|
|
3288
3322
|
`$.record[0].field` and `$.record[*]` resolve nothing,
|
|
3289
3323
|
with no error (live, 2026-10-30). Handlebars extracts
|
|
3290
|
-
read it as `rows` in both modes (`{{rows.0.field}}`).
|
|
3324
|
+
read it as `rows` in both modes (`{{{rows.0.field}}}`).
|
|
3291
3325
|
- |-
|
|
3292
3326
|
In `envelope` mode the output is still a bare record: a
|
|
3293
3327
|
`modify` transform returns the record with its mapped
|
|
@@ -3336,10 +3370,10 @@ components:
|
|
|
3336
3370
|
## Handlebars expressions are NOT affected
|
|
3337
3371
|
|
|
3338
3372
|
Handlebars expressions inside ``extract``
|
|
3339
|
-
(``{{record.field}}``,
|
|
3340
|
-
``{{dateFormat ... record.field}}``, etc.) reference the
|
|
3373
|
+
(``{{{record.field}}}``,
|
|
3374
|
+
``{{{dateFormat ... record.field}}}``, etc.) reference the
|
|
3341
3375
|
runtime context's ``record`` root on an object record,
|
|
3342
|
-
and ``rows`` (``{{rows.0.field}}``) on a grouped one,
|
|
3376
|
+
and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
|
|
3343
3377
|
regardless of ``inputContext`` — the Handlebars runtime
|
|
3344
3378
|
always sees the wrapped envelope. Only JSONPath
|
|
3345
3379
|
behavior flips with this field.
|
|
@@ -3363,7 +3397,7 @@ components:
|
|
|
3363
3397
|
source file: ``fileName``, ``fileSize``, and
|
|
3364
3398
|
``lastModifiedTime`` (epoch milliseconds). Reach it
|
|
3365
3399
|
as ``$.fileMeta.<field>`` in envelope mode, or as
|
|
3366
|
-
``{{fileMeta.<field>}}`` from a Handlebars extract in
|
|
3400
|
+
``{{{fileMeta.<field>}}}`` from a Handlebars extract in
|
|
3367
3401
|
either mode. The keys are exactly these three —
|
|
3368
3402
|
lowercase variants such as ``filesize`` or
|
|
3369
3403
|
``filename`` resolve empty. The standalone transform
|