@celigo/api-specs 0.2.335 → 0.2.336

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 CHANGED
@@ -2962,15 +2962,32 @@ components:
2962
2962
  ## TRIPLE BRACES FOR VALUES
2963
2963
  A substitution that outputs a value is written with triple
2964
2964
  braces. With double braces the mapper HTML-escapes the output —
2965
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
2966
- `&quot;` and `&#x27;` — 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
2965
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
2966
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
2967
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
2968
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
2969
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
2970
2970
  destination receives `O&#x27;Brien` for `O'Brien`. The same
2971
2971
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
2972
2972
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
2973
2973
  unchanged. Transformation 2.0 rules behave the same.
2974
+ - |-
2975
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
2976
+ The rendered text is parsed as JSON, so a string value is written
2977
+ by a JSON-escaping helper in triple braces: `{"label":
2978
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
2979
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
2980
+ value holding a double quote, a backslash and an apostrophe
2981
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
2982
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
2983
+ record.name}}"}` each left the row an empty object with
2984
+ `json_parse_error` (`Failed to parse string as JSON`), and for
2985
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
2986
+ &amp; Sons` with no error. Keep a space before the object's
2987
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
2988
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
2989
+ the same results for every form; there the missing space is
2990
+ refused with 422 `evaluation_failed`.
2974
2991
  examples:
2975
2992
  - $.fullName
2976
2993
  - '{{{record.fullName}}}'
@@ -4103,15 +4120,32 @@ components:
4103
4120
  ## TRIPLE BRACES FOR VALUES
4104
4121
  A substitution that outputs a value is written with triple
4105
4122
  braces. With double braces the mapper HTML-escapes the output —
4106
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
4107
- `&quot;` and `&#x27;` — 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
4123
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
4124
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
4125
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
4126
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
4127
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
4111
4128
  destination receives `O&#x27;Brien` for `O'Brien`. The same
4112
4129
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
4113
4130
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
4114
4131
  unchanged. Transformation 2.0 rules behave the same.
4132
+ - |-
4133
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
4134
+ The rendered text is parsed as JSON, so a string value is written
4135
+ by a JSON-escaping helper in triple braces: `{"label":
4136
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
4137
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
4138
+ value holding a double quote, a backslash and an apostrophe
4139
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
4140
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
4141
+ record.name}}"}` each left the row an empty object with
4142
+ `json_parse_error` (`Failed to parse string as JSON`), and for
4143
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
4144
+ &amp; Sons` with no error. Keep a space before the object's
4145
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
4146
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
4147
+ the same results for every form; there the missing space is
4148
+ refused with 422 `evaluation_failed`.
4115
4149
  examples:
4116
4150
  - $.fullName
4117
4151
  - '{{{record.fullName}}}'
package/dist/api.yml CHANGED
@@ -3061,15 +3061,32 @@ components:
3061
3061
  ## TRIPLE BRACES FOR VALUES
3062
3062
  A substitution that outputs a value is written with triple
3063
3063
  braces. With double braces the mapper HTML-escapes the output —
3064
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
3065
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
3066
- helper's result (`{{uppercase record.name}}`, `{{join ", "
3067
- record.tags}}`) and inside a block (`{{#if
3068
- record.name}}{{record.name}}{{/if}}`), with no error: the
3064
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
3065
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
3066
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
3067
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
3068
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
3069
3069
  destination receives `O&#x27;Brien` for `O'Brien`. The same
3070
3070
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
3071
3071
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
3072
3072
  unchanged. Transformation 2.0 rules behave the same.
3073
+ - |-
3074
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
3075
+ The rendered text is parsed as JSON, so a string value is written
3076
+ by a JSON-escaping helper in triple braces: `{"label":
3077
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
3078
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
3079
+ value holding a double quote, a backslash and an apostrophe
3080
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
3081
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
3082
+ record.name}}"}` each left the row an empty object with
3083
+ `json_parse_error` (`Failed to parse string as JSON`), and for
3084
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
3085
+ &amp; Sons` with no error. Keep a space before the object's
3086
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
3087
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
3088
+ the same results for every form; there the missing space is
3089
+ refused with 422 `evaluation_failed`.
3073
3090
  examples:
3074
3091
  - $.fullName
3075
3092
  - '{{{record.fullName}}}'
@@ -4202,15 +4219,32 @@ components:
4202
4219
  ## TRIPLE BRACES FOR VALUES
4203
4220
  A substitution that outputs a value is written with triple
4204
4221
  braces. With double braces the mapper HTML-escapes the output —
4205
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
4206
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
4207
- helper's result (`{{uppercase record.name}}`, `{{join ", "
4208
- record.tags}}`) and inside a block (`{{#if
4209
- record.name}}{{record.name}}{{/if}}`), with no error: the
4222
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
4223
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
4224
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
4225
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
4226
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
4210
4227
  destination receives `O&#x27;Brien` for `O'Brien`. The same
4211
4228
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
4212
4229
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
4213
4230
  unchanged. Transformation 2.0 rules behave the same.
4231
+ - |-
4232
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
4233
+ The rendered text is parsed as JSON, so a string value is written
4234
+ by a JSON-escaping helper in triple braces: `{"label":
4235
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
4236
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
4237
+ value holding a double quote, a backslash and an apostrophe
4238
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
4239
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
4240
+ record.name}}"}` each left the row an empty object with
4241
+ `json_parse_error` (`Failed to parse string as JSON`), and for
4242
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
4243
+ &amp; Sons` with no error. Keep a space before the object's
4244
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
4245
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
4246
+ the same results for every form; there the missing space is
4247
+ refused with 422 `evaluation_failed`.
4214
4248
  examples:
4215
4249
  - $.fullName
4216
4250
  - '{{{record.fullName}}}'
@@ -752,15 +752,32 @@ components:
752
752
  ## TRIPLE BRACES FOR VALUES
753
753
  A substitution that outputs a value is written with triple
754
754
  braces. With double braces the mapper HTML-escapes the output —
755
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
756
- `&quot;` and `&#x27;` — 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
755
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
756
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
757
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
758
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
759
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
760
760
  destination receives `O&#x27;Brien` for `O'Brien`. The same
761
761
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
762
762
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
763
763
  unchanged. Transformation 2.0 rules behave the same.
764
+ - |-
765
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
766
+ The rendered text is parsed as JSON, so a string value is written
767
+ by a JSON-escaping helper in triple braces: `{"label":
768
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
769
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
770
+ value holding a double quote, a backslash and an apostrophe
771
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
772
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
773
+ record.name}}"}` each left the row an empty object with
774
+ `json_parse_error` (`Failed to parse string as JSON`), and for
775
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
776
+ &amp; Sons` with no error. Keep a space before the object's
777
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
778
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
779
+ the same results for every form; there the missing space is
780
+ refused with 422 `evaluation_failed`.
764
781
  examples:
765
782
  - $.fullName
766
783
  - '{{{record.fullName}}}'
@@ -1893,15 +1910,32 @@ components:
1893
1910
  ## TRIPLE BRACES FOR VALUES
1894
1911
  A substitution that outputs a value is written with triple
1895
1912
  braces. With double braces the mapper HTML-escapes the output —
1896
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
1897
- `&quot;` and `&#x27;` — 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
1913
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
1914
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
1915
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
1916
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
1917
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
1901
1918
  destination receives `O&#x27;Brien` for `O'Brien`. The same
1902
1919
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
1903
1920
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
1904
1921
  unchanged. Transformation 2.0 rules behave the same.
1922
+ - |-
1923
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
1924
+ The rendered text is parsed as JSON, so a string value is written
1925
+ by a JSON-escaping helper in triple braces: `{"label":
1926
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
1927
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
1928
+ value holding a double quote, a backslash and an apostrophe
1929
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
1930
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
1931
+ record.name}}"}` each left the row an empty object with
1932
+ `json_parse_error` (`Failed to parse string as JSON`), and for
1933
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
1934
+ &amp; Sons` with no error. Keep a space before the object's
1935
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
1936
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
1937
+ the same results for every form; there the missing space is
1938
+ refused with 422 `evaluation_failed`.
1905
1939
  examples:
1906
1940
  - $.fullName
1907
1941
  - '{{{record.fullName}}}'
package/dist/export.yml CHANGED
@@ -13681,15 +13681,32 @@ components:
13681
13681
  ## TRIPLE BRACES FOR VALUES
13682
13682
  A substitution that outputs a value is written with triple
13683
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
13684
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
13685
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
13686
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
13687
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
13688
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
13689
13689
  destination receives `O&#x27;Brien` for `O'Brien`. The same
13690
13690
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
13691
13691
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
13692
13692
  unchanged. Transformation 2.0 rules behave the same.
13693
+ - |-
13694
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
13695
+ The rendered text is parsed as JSON, so a string value is written
13696
+ by a JSON-escaping helper in triple braces: `{"label":
13697
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
13698
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
13699
+ value holding a double quote, a backslash and an apostrophe
13700
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
13701
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
13702
+ record.name}}"}` each left the row an empty object with
13703
+ `json_parse_error` (`Failed to parse string as JSON`), and for
13704
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
13705
+ &amp; Sons` with no error. Keep a space before the object's
13706
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
13707
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
13708
+ the same results for every form; there the missing space is
13709
+ refused with 422 `evaluation_failed`.
13693
13710
  examples:
13694
13711
  - $.fullName
13695
13712
  - '{{{record.fullName}}}'
@@ -14822,15 +14839,32 @@ components:
14822
14839
  ## TRIPLE BRACES FOR VALUES
14823
14840
  A substitution that outputs a value is written with triple
14824
14841
  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
14842
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
14843
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
14844
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
14845
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
14846
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
14830
14847
  destination receives `O&#x27;Brien` for `O'Brien`. The same
14831
14848
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
14832
14849
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
14833
14850
  unchanged. Transformation 2.0 rules behave the same.
14851
+ - |-
14852
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
14853
+ The rendered text is parsed as JSON, so a string value is written
14854
+ by a JSON-escaping helper in triple braces: `{"label":
14855
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
14856
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
14857
+ value holding a double quote, a backslash and an apostrophe
14858
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
14859
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
14860
+ record.name}}"}` each left the row an empty object with
14861
+ `json_parse_error` (`Failed to parse string as JSON`), and for
14862
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
14863
+ &amp; Sons` with no error. Keep a space before the object's
14864
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
14865
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
14866
+ the same results for every form; there the missing space is
14867
+ refused with 422 `evaluation_failed`.
14834
14868
  examples:
14835
14869
  - $.fullName
14836
14870
  - '{{{record.fullName}}}'
@@ -2098,9 +2098,10 @@ components:
2098
2098
  - |-
2099
2099
  Double braces HTML-escape whatever they output — a field, a helper's result
2100
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.
2101
+ block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
2102
+ written as `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;`.
2103
+ The same expressions in triple braces, and a plain path, write the value
2104
+ unchanged.
2104
2105
  - |-
2105
2106
  In a `dataType: json` row the rendered text is parsed, so a string value needs
2106
2107
  JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
@@ -2109,6 +2110,12 @@ components:
2109
2110
  the HTML-escaped text. Keep a space between the helper's closing braces and
2110
2111
  an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
2111
2112
  `malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
2113
+ - |-
2114
+ `jsonEncode` inside the quotes, in triple braces, is the other form that
2115
+ holds: `{"label":"{{{jsonEncode name}}}"}` wrote a value holding a double
2116
+ quote, a backslash and an apostrophe intact, as `{"label": {{{jsonSerialize
2117
+ name}}} }` did. In double braces (`"{{jsonEncode name}}"`) the same row
2118
+ failed on that value with `Bad escaped character in JSON`.
2112
2119
  hardCodedValue:
2113
2120
  type:
2114
2121
  - string
package/dist/import.yml CHANGED
@@ -4485,9 +4485,11 @@ components:
4485
4485
  In the mapping preview double braces HTML-escaped the
4486
4486
  output — a field (`{{name}}`), a helper's result
4487
4487
  (`{{uppercase name}}`) and a substitution inside a block
4488
- alike: `O'Brien` rendered as `O&#x27;Brien` and `A&B` as
4489
- `A&amp;B` — while the same expressions in triple braces
4490
- and a plain path rendered the value unchanged.
4488
+ alike: `O'Brien` rendered as `O&#x27;Brien`, `A&B` as
4489
+ `A&amp;B` and `a=b` as `a&#x3D;b` (`<`, `>`, `"` and the
4490
+ backtick are escaped the same way) — while the same
4491
+ expressions in triple braces and a plain path rendered
4492
+ the value unchanged.
4491
4493
  generate:
4492
4494
  type: string
4493
4495
  description: |
@@ -4759,8 +4761,26 @@ components:
4759
4761
  `lookup_empty` row was applied and a `lookup_not_empty` row left
4760
4762
  out, and the lookup raised no error, on import runs with
4761
4763
  `restletVersion` `suiteapp2.0`, `suiteapp1.0` and `suitebundle` and
4762
- in the mapping preview. `allowFailures` fails a record only on a
4763
- row that takes its value from the lookup (`lookupName`).
4764
+ in the mapping preview. On a search lookup `allowFailures` fails a
4765
+ record only on a row that takes its value from the lookup
4766
+ (`lookupName`).
4767
+ - |-
4768
+ A static lookup (`map`) behind a condition is keyed on the
4769
+ conditioned row's own `extract` value, and a key missing from the
4770
+ map can fail the record. On body rows of `restletVersion:
4771
+ suiteapp2.0` import runs it did, under `lookup_empty` and
4772
+ `lookup_not_empty` alike — `lookup_error`, `Could not find value
4773
+ for static lookup: <name> {Lookup Key: <value>}` — when the
4774
+ lookup had no `default`, with `allowFailures` false, unset and
4775
+ true. With a non-empty `default` and `allowFailures` true, unset
4776
+ or null the record went through and the condition read not empty.
4777
+ - |-
4778
+ The mapping preview and import runs on `suiteapp1.0` and
4779
+ `suitebundle` read a static lookup's missing key as empty and
4780
+ raised nothing (`allowFailures` false, true, and true with a
4781
+ `default`), so the preview shows a `lookup_empty` row applied
4782
+ where a `suiteapp2.0` run fails the record. A key in the map
4783
+ read as not empty in all of them.
4764
4784
  - |-
4765
4785
  On `restletVersion: suiteapp2.0` an import run reads the condition
4766
4786
  from the value the lookup resolves to under its own settings.
@@ -4780,6 +4800,14 @@ components:
4780
4800
  `default` and `allowFailures: false` is refused in both: `Lookups
4781
4801
  with default set can not have allowFailures explicitly set to
4782
4802
  false.`
4803
+ - |-
4804
+ With `allowFailures` unset a `suiteapp2.0` import run (body rows)
4805
+ also fell back to a non-empty `default`: `lookup_not_empty` held
4806
+ on no match and on several matches, with and without
4807
+ `useDefaultOnMultipleMatches`, and on no match with
4808
+ `allowFailures: null`. With no `default`, no match and several
4809
+ matches both read as empty, as did several matches that
4810
+ `useDefaultOnMultipleMatches` sent to an empty `default`.
4783
4811
  - |-
4784
4812
  The mapping preview (`PUT /v1/netsuiteDA/previewImportMappingFields`)
4785
4813
  reads the condition from the search alone: no match is empty, one
@@ -4796,8 +4824,8 @@ components:
4796
4824
  out), and several matches that the lookup does not resolve to a
4797
4825
  record, with `allowFailures` false or routed to an empty `default`
4798
4826
  (the preview left the `lookup_empty` row out, the run applied
4799
- it). Give a lookup that only a condition reads no `default` and
4800
- criteria that match at most one record, and the two agree.
4827
+ it). Give a search lookup that only a condition reads no `default`
4828
+ and criteria that match at most one record, and the two agree.
4801
4829
  - |-
4802
4830
  `when: record_updated` requires an operation that can update an
4803
4831
  existing record: on an `add`-only operation every record fails with
@@ -5222,14 +5250,31 @@ components:
5222
5250
  report it either: there the row is left out of the sublist with no
5223
5251
  error.
5224
5252
  - |-
5225
- A lookup-based condition is read as on a body row — a miss never
5226
- fails the record, and the mapping preview reads the search where a
5227
- `suiteapp2.0` run reads the lookup's resolved value (see
5228
- `mapping.fields[].conditional`). On an iterating sublist the preview
5229
- evaluates it per line: with two lines whose lookup found an item for
5230
- the first only, a `lookup_not_empty` row was written on the first
5231
- line and a `lookup_empty` row on the second, with the lookup's
5232
- `allowFailures` true and false alike.
5253
+ A condition on a search lookup is read as on a body row — a search
5254
+ that finds nothing never fails the record, and the mapping preview
5255
+ reads the search where a `suiteapp2.0` run reads the lookup's
5256
+ resolved value (see `mapping.fields[].conditional`). On an iterating
5257
+ sublist the preview evaluates it per line: with two lines whose
5258
+ lookup found an item for the first only, a `lookup_not_empty` row
5259
+ was written on the first line and a `lookup_empty` row on the
5260
+ second, with the lookup's `allowFailures` true and false alike.
5261
+ - |-
5262
+ A static (`map`) lookup behind a sublist row's condition: on a
5263
+ `suiteapp2.0` import run over two lines, one line's key missing
5264
+ from the map failed the record — `lookup_error`, `Could not find
5265
+ value for static lookup: <name> {Lookup Key: <value>}` — with
5266
+ `allowFailures` false and true alike and no `default`. No mapping
5267
+ error was raised with `allowFailures` true and a non-empty
5268
+ `default`, nor — with `allowFailures` false — when both lines'
5269
+ keys were in the map, under either `when`.
5270
+ - |-
5271
+ A script's `imports.runMapping` on a `restletVersion: suiteapp2.0`
5272
+ definition decided each line on its own as well: with three lines
5273
+ whose lookup matched one record, none and several, each line's row
5274
+ was applied or left out as that line's match count decides under
5275
+ the lookup's settings (the cases under
5276
+ `mapping.fields[].conditional`), while the preview applied a
5277
+ `lookup_empty` row on the line with no match only.
5233
5278
  - |-
5234
5279
  The operation contract differs from body-field conditions:
5235
5280
  `when: record_updated` on an `add`-only operation is rejected
@@ -5600,14 +5645,22 @@ components:
5600
5645
  as unset).
5601
5646
  x-celigo-ai-guidance:
5602
5647
  - |-
5603
- A miss never halts the record through a row condition that reads
5604
- this lookup (`conditional.lookupName` with `lookup_empty` /
5605
- `lookup_not_empty`), whatever this flag says — do not turn it on
5606
- to keep a `lookup_empty` condition from failing. On a
5607
- `restletVersion: suiteapp2.0` import the flag, `default` and
5608
- `useDefaultOnMultipleMatches` do decide what such a condition
5609
- reads when the search matches several records or falls back to a
5610
- default — see `mapping.fields[].conditional`.
5648
+ A search that finds nothing never halts the record through a row
5649
+ condition that reads this lookup (`conditional.lookupName` with
5650
+ `lookup_empty` / `lookup_not_empty`), whatever this flag says — do
5651
+ not turn it on to keep a `lookup_empty` condition on a search
5652
+ lookup from failing. On a `restletVersion: suiteapp2.0` import the
5653
+ flag, `default` and `useDefaultOnMultipleMatches` do decide what
5654
+ such a condition reads when the search matches several records or
5655
+ falls back to a default — see `mapping.fields[].conditional`.
5656
+ - |-
5657
+ A static lookup (`map`) is different: on a `suiteapp2.0` import
5658
+ run a key missing from the map failed the record through the
5659
+ condition when the lookup had no `default`, with this flag false,
5660
+ unset and true alike. With a non-empty `default` the record went
5661
+ through with this flag true, unset and null; a `default` beside an
5662
+ explicit `false` is refused (`Lookups with default set can not have
5663
+ allowFailures explicitly set to false.`). See `map`.
5611
5664
  map:
5612
5665
  type:
5613
5666
  - object
@@ -5617,6 +5670,17 @@ components:
5617
5670
  NetSuite search. When the incoming value matches a key, the
5618
5671
  mapped value is returned without hitting NetSuite. Null on
5619
5672
  dynamic (search-based) lookups with no static map.
5673
+ x-celigo-ai-guidance:
5674
+ - |-
5675
+ When a row condition reads this lookup (`conditional.lookupName`),
5676
+ give the lookup `allowFailures: true` and a non-empty `default`, or
5677
+ a map that holds every key the conditioned row's `extract` can
5678
+ carry: on a `restletVersion: suiteapp2.0` import run a key missing
5679
+ from the map of a lookup with no `default` failed the record with
5680
+ `lookup_error` — `Could not find value for static lookup: <name>
5681
+ {Lookup Key: <value>}` — whichever of `lookup_empty` /
5682
+ `lookup_not_empty` the row used. The mapping preview does not show
5683
+ it — see `mapping.fields[].conditional`.
5620
5684
  default:
5621
5685
  type:
5622
5686
  - string
@@ -14372,15 +14436,32 @@ components:
14372
14436
  ## TRIPLE BRACES FOR VALUES
14373
14437
  A substitution that outputs a value is written with triple
14374
14438
  braces. With double braces the mapper HTML-escapes the output —
14375
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
14376
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
14377
- helper's result (`{{uppercase record.name}}`, `{{join ", "
14378
- record.tags}}`) and inside a block (`{{#if
14379
- record.name}}{{record.name}}{{/if}}`), with no error: the
14439
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
14440
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
14441
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
14442
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
14443
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
14380
14444
  destination receives `O&#x27;Brien` for `O'Brien`. The same
14381
14445
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
14382
14446
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
14383
14447
  unchanged. Transformation 2.0 rules behave the same.
14448
+ - |-
14449
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
14450
+ The rendered text is parsed as JSON, so a string value is written
14451
+ by a JSON-escaping helper in triple braces: `{"label":
14452
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
14453
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
14454
+ value holding a double quote, a backslash and an apostrophe
14455
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
14456
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
14457
+ record.name}}"}` each left the row an empty object with
14458
+ `json_parse_error` (`Failed to parse string as JSON`), and for
14459
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
14460
+ &amp; Sons` with no error. Keep a space before the object's
14461
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
14462
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
14463
+ the same results for every form; there the missing space is
14464
+ refused with 422 `evaluation_failed`.
14384
14465
  examples:
14385
14466
  - $.fullName
14386
14467
  - '{{{record.fullName}}}'
@@ -15513,15 +15594,32 @@ components:
15513
15594
  ## TRIPLE BRACES FOR VALUES
15514
15595
  A substitution that outputs a value is written with triple
15515
15596
  braces. With double braces the mapper HTML-escapes the output —
15516
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
15517
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
15518
- helper's result (`{{uppercase record.name}}`, `{{join ", "
15519
- record.tags}}`) and inside a block (`{{#if
15520
- record.name}}{{record.name}}{{/if}}`), with no error: the
15597
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
15598
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
15599
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
15600
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
15601
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
15521
15602
  destination receives `O&#x27;Brien` for `O'Brien`. The same
15522
15603
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
15523
15604
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
15524
15605
  unchanged. Transformation 2.0 rules behave the same.
15606
+ - |-
15607
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
15608
+ The rendered text is parsed as JSON, so a string value is written
15609
+ by a JSON-escaping helper in triple braces: `{"label":
15610
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
15611
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
15612
+ value holding a double quote, a backslash and an apostrophe
15613
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
15614
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
15615
+ record.name}}"}` each left the row an empty object with
15616
+ `json_parse_error` (`Failed to parse string as JSON`), and for
15617
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
15618
+ &amp; Sons` with no error. Keep a space before the object's
15619
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
15620
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
15621
+ the same results for every form; there the missing space is
15622
+ refused with 422 `evaluation_failed`.
15525
15623
  examples:
15526
15624
  - $.fullName
15527
15625
  - '{{{record.fullName}}}'
@@ -16880,9 +16978,10 @@ components:
16880
16978
  - |-
16881
16979
  Double braces HTML-escape whatever they output — a field, a helper's result
16882
16980
  (`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
16883
- block — with no error: `&`, `<`, `>`, `"` and `'` are written as `&amp;`,
16884
- `&lt;`, `&gt;`, `&quot;` and `&#x27;`. The same expressions in triple braces,
16885
- and a plain path, write the value unchanged.
16981
+ block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
16982
+ written as `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;`.
16983
+ The same expressions in triple braces, and a plain path, write the value
16984
+ unchanged.
16886
16985
  - |-
16887
16986
  In a `dataType: json` row the rendered text is parsed, so a string value needs
16888
16987
  JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
@@ -16891,6 +16990,12 @@ components:
16891
16990
  the HTML-escaped text. Keep a space between the helper's closing braces and
16892
16991
  an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
16893
16992
  `malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
16993
+ - |-
16994
+ `jsonEncode` inside the quotes, in triple braces, is the other form that
16995
+ holds: `{"label":"{{{jsonEncode name}}}"}` wrote a value holding a double
16996
+ quote, a backslash and an apostrophe intact, as `{"label": {{{jsonSerialize
16997
+ name}}} }` did. In double braces (`"{{jsonEncode name}}"`) the same row
16998
+ failed on that value with `Bad escaped character in JSON`.
16894
16999
  hardCodedValue:
16895
17000
  type:
16896
17001
  - string
@@ -19855,6 +19960,13 @@ components:
19855
19960
  non-empty `default`, and when the search matches several records that
19856
19961
  the lookup does not resolve to one — see `mapping.fields[].conditional`
19857
19962
  on the import.
19963
+ - |-
19964
+ A static lookup (`map`) behind a row condition reads as empty here when
19965
+ the conditioned row's value is not a key of the map, and no error is
19966
+ returned — while a run of a `restletVersion: suiteapp2.0` import failed
19967
+ such a record with `lookup_error` when the lookup had no `default`. A
19968
+ `lookup_empty` row shown applied here for a static lookup is therefore
19969
+ not proof that the run maps it.
19858
19970
  - |-
19859
19971
  The record is mapped as sent. For a one-to-many import (`oneToMany` with
19860
19972
  `pathToMany`, set on the import and not part of this request) send the
package/dist/tool.yml CHANGED
@@ -3937,15 +3937,32 @@ components:
3937
3937
  ## TRIPLE BRACES FOR VALUES
3938
3938
  A substitution that outputs a value is written with triple
3939
3939
  braces. With double braces the mapper HTML-escapes the output —
3940
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
3941
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
3942
- helper's result (`{{uppercase record.name}}`, `{{join ", "
3943
- record.tags}}`) and inside a block (`{{#if
3944
- record.name}}{{record.name}}{{/if}}`), with no error: the
3940
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
3941
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
3942
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
3943
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
3944
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
3945
3945
  destination receives `O&#x27;Brien` for `O'Brien`. The same
3946
3946
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
3947
3947
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
3948
3948
  unchanged. Transformation 2.0 rules behave the same.
3949
+ - |-
3950
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
3951
+ The rendered text is parsed as JSON, so a string value is written
3952
+ by a JSON-escaping helper in triple braces: `{"label":
3953
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
3954
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
3955
+ value holding a double quote, a backslash and an apostrophe
3956
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
3957
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
3958
+ record.name}}"}` each left the row an empty object with
3959
+ `json_parse_error` (`Failed to parse string as JSON`), and for
3960
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
3961
+ &amp; Sons` with no error. Keep a space before the object's
3962
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
3963
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
3964
+ the same results for every form; there the missing space is
3965
+ refused with 422 `evaluation_failed`.
3949
3966
  examples:
3950
3967
  - $.fullName
3951
3968
  - '{{{record.fullName}}}'
@@ -5078,15 +5095,32 @@ components:
5078
5095
  ## TRIPLE BRACES FOR VALUES
5079
5096
  A substitution that outputs a value is written with triple
5080
5097
  braces. With double braces the mapper HTML-escapes the output —
5081
- `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
5082
- `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
5083
- helper's result (`{{uppercase record.name}}`, `{{join ", "
5084
- record.tags}}`) and inside a block (`{{#if
5085
- record.name}}{{record.name}}{{/if}}`), with no error: the
5098
+ `&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&amp;`,
5099
+ `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;` — for a
5100
+ field (`{{record.name}}`), for a helper's result (`{{uppercase
5101
+ record.name}}`, `{{join ", " record.tags}}`) and inside a block
5102
+ (`{{#if record.name}}{{record.name}}{{/if}}`), with no error: the
5086
5103
  destination receives `O&#x27;Brien` for `O'Brien`. The same
5087
5104
  expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
5088
5105
  record.name}}}`) and a JSONPath extract (`$.name`) write the value
5089
5106
  unchanged. Transformation 2.0 rules behave the same.
5107
+ - |-
5108
+ ## A STRING VALUE IN AN `object` ROW'S JSON TEMPLATE
5109
+ The rendered text is parsed as JSON, so a string value is written
5110
+ by a JSON-escaping helper in triple braces: `{"label":
5111
+ {{{jsonSerialize record.name}}} }` (no quotes — the helper writes
5112
+ them) and `{"label":"{{{jsonEncode record.name}}}"}` both wrote a
5113
+ value holding a double quote, a backslash and an apostrophe
5114
+ unchanged. On that value `{"label":"{{{record.name}}}"}`,
5115
+ `{"label":"{{record.name}}"}` and `{"label":"{{jsonEncode
5116
+ record.name}}"}` each left the row an empty object with
5117
+ `json_parse_error` (`Failed to parse string as JSON`), and for
5118
+ `O'Brien & Sons` the two double-brace forms wrote `O&#x27;Brien
5119
+ &amp; Sons` with no error. Keep a space before the object's
5120
+ closing brace: `{{{jsonSerialize record.name}}}}` is refused with
5121
+ 422 `cannot_evaluate_handlebars`. Transformation 2.0 rules gave
5122
+ the same results for every form; there the missing space is
5123
+ refused with 422 `evaluation_failed`.
5090
5124
  examples:
5091
5125
  - $.fullName
5092
5126
  - '{{{record.fullName}}}'
@@ -17206,9 +17240,11 @@ components:
17206
17240
  In the mapping preview double braces HTML-escaped the
17207
17241
  output — a field (`{{name}}`), a helper's result
17208
17242
  (`{{uppercase name}}`) and a substitution inside a block
17209
- alike: `O'Brien` rendered as `O&#x27;Brien` and `A&B` as
17210
- `A&amp;B` — while the same expressions in triple braces
17211
- and a plain path rendered the value unchanged.
17243
+ alike: `O'Brien` rendered as `O&#x27;Brien`, `A&B` as
17244
+ `A&amp;B` and `a=b` as `a&#x3D;b` (`<`, `>`, `"` and the
17245
+ backtick are escaped the same way) — while the same
17246
+ expressions in triple braces and a plain path rendered
17247
+ the value unchanged.
17212
17248
  generate:
17213
17249
  type: string
17214
17250
  description: |
@@ -17480,8 +17516,26 @@ components:
17480
17516
  `lookup_empty` row was applied and a `lookup_not_empty` row left
17481
17517
  out, and the lookup raised no error, on import runs with
17482
17518
  `restletVersion` `suiteapp2.0`, `suiteapp1.0` and `suitebundle` and
17483
- in the mapping preview. `allowFailures` fails a record only on a
17484
- row that takes its value from the lookup (`lookupName`).
17519
+ in the mapping preview. On a search lookup `allowFailures` fails a
17520
+ record only on a row that takes its value from the lookup
17521
+ (`lookupName`).
17522
+ - |-
17523
+ A static lookup (`map`) behind a condition is keyed on the
17524
+ conditioned row's own `extract` value, and a key missing from the
17525
+ map can fail the record. On body rows of `restletVersion:
17526
+ suiteapp2.0` import runs it did, under `lookup_empty` and
17527
+ `lookup_not_empty` alike — `lookup_error`, `Could not find value
17528
+ for static lookup: <name> {Lookup Key: <value>}` — when the
17529
+ lookup had no `default`, with `allowFailures` false, unset and
17530
+ true. With a non-empty `default` and `allowFailures` true, unset
17531
+ or null the record went through and the condition read not empty.
17532
+ - |-
17533
+ The mapping preview and import runs on `suiteapp1.0` and
17534
+ `suitebundle` read a static lookup's missing key as empty and
17535
+ raised nothing (`allowFailures` false, true, and true with a
17536
+ `default`), so the preview shows a `lookup_empty` row applied
17537
+ where a `suiteapp2.0` run fails the record. A key in the map
17538
+ read as not empty in all of them.
17485
17539
  - |-
17486
17540
  On `restletVersion: suiteapp2.0` an import run reads the condition
17487
17541
  from the value the lookup resolves to under its own settings.
@@ -17501,6 +17555,14 @@ components:
17501
17555
  `default` and `allowFailures: false` is refused in both: `Lookups
17502
17556
  with default set can not have allowFailures explicitly set to
17503
17557
  false.`
17558
+ - |-
17559
+ With `allowFailures` unset a `suiteapp2.0` import run (body rows)
17560
+ also fell back to a non-empty `default`: `lookup_not_empty` held
17561
+ on no match and on several matches, with and without
17562
+ `useDefaultOnMultipleMatches`, and on no match with
17563
+ `allowFailures: null`. With no `default`, no match and several
17564
+ matches both read as empty, as did several matches that
17565
+ `useDefaultOnMultipleMatches` sent to an empty `default`.
17504
17566
  - |-
17505
17567
  The mapping preview (`PUT /v1/netsuiteDA/previewImportMappingFields`)
17506
17568
  reads the condition from the search alone: no match is empty, one
@@ -17517,8 +17579,8 @@ components:
17517
17579
  out), and several matches that the lookup does not resolve to a
17518
17580
  record, with `allowFailures` false or routed to an empty `default`
17519
17581
  (the preview left the `lookup_empty` row out, the run applied
17520
- it). Give a lookup that only a condition reads no `default` and
17521
- criteria that match at most one record, and the two agree.
17582
+ it). Give a search lookup that only a condition reads no `default`
17583
+ and criteria that match at most one record, and the two agree.
17522
17584
  - |-
17523
17585
  `when: record_updated` requires an operation that can update an
17524
17586
  existing record: on an `add`-only operation every record fails with
@@ -17943,14 +18005,31 @@ components:
17943
18005
  report it either: there the row is left out of the sublist with no
17944
18006
  error.
17945
18007
  - |-
17946
- A lookup-based condition is read as on a body row — a miss never
17947
- fails the record, and the mapping preview reads the search where a
17948
- `suiteapp2.0` run reads the lookup's resolved value (see
17949
- `mapping.fields[].conditional`). On an iterating sublist the preview
17950
- evaluates it per line: with two lines whose lookup found an item for
17951
- the first only, a `lookup_not_empty` row was written on the first
17952
- line and a `lookup_empty` row on the second, with the lookup's
17953
- `allowFailures` true and false alike.
18008
+ A condition on a search lookup is read as on a body row — a search
18009
+ that finds nothing never fails the record, and the mapping preview
18010
+ reads the search where a `suiteapp2.0` run reads the lookup's
18011
+ resolved value (see `mapping.fields[].conditional`). On an iterating
18012
+ sublist the preview evaluates it per line: with two lines whose
18013
+ lookup found an item for the first only, a `lookup_not_empty` row
18014
+ was written on the first line and a `lookup_empty` row on the
18015
+ second, with the lookup's `allowFailures` true and false alike.
18016
+ - |-
18017
+ A static (`map`) lookup behind a sublist row's condition: on a
18018
+ `suiteapp2.0` import run over two lines, one line's key missing
18019
+ from the map failed the record — `lookup_error`, `Could not find
18020
+ value for static lookup: <name> {Lookup Key: <value>}` — with
18021
+ `allowFailures` false and true alike and no `default`. No mapping
18022
+ error was raised with `allowFailures` true and a non-empty
18023
+ `default`, nor — with `allowFailures` false — when both lines'
18024
+ keys were in the map, under either `when`.
18025
+ - |-
18026
+ A script's `imports.runMapping` on a `restletVersion: suiteapp2.0`
18027
+ definition decided each line on its own as well: with three lines
18028
+ whose lookup matched one record, none and several, each line's row
18029
+ was applied or left out as that line's match count decides under
18030
+ the lookup's settings (the cases under
18031
+ `mapping.fields[].conditional`), while the preview applied a
18032
+ `lookup_empty` row on the line with no match only.
17954
18033
  - |-
17955
18034
  The operation contract differs from body-field conditions:
17956
18035
  `when: record_updated` on an `add`-only operation is rejected
@@ -18321,14 +18400,22 @@ components:
18321
18400
  as unset).
18322
18401
  x-celigo-ai-guidance:
18323
18402
  - |-
18324
- A miss never halts the record through a row condition that reads
18325
- this lookup (`conditional.lookupName` with `lookup_empty` /
18326
- `lookup_not_empty`), whatever this flag says — do not turn it on
18327
- to keep a `lookup_empty` condition from failing. On a
18328
- `restletVersion: suiteapp2.0` import the flag, `default` and
18329
- `useDefaultOnMultipleMatches` do decide what such a condition
18330
- reads when the search matches several records or falls back to a
18331
- default — see `mapping.fields[].conditional`.
18403
+ A search that finds nothing never halts the record through a row
18404
+ condition that reads this lookup (`conditional.lookupName` with
18405
+ `lookup_empty` / `lookup_not_empty`), whatever this flag says — do
18406
+ not turn it on to keep a `lookup_empty` condition on a search
18407
+ lookup from failing. On a `restletVersion: suiteapp2.0` import the
18408
+ flag, `default` and `useDefaultOnMultipleMatches` do decide what
18409
+ such a condition reads when the search matches several records or
18410
+ falls back to a default — see `mapping.fields[].conditional`.
18411
+ - |-
18412
+ A static lookup (`map`) is different: on a `suiteapp2.0` import
18413
+ run a key missing from the map failed the record through the
18414
+ condition when the lookup had no `default`, with this flag false,
18415
+ unset and true alike. With a non-empty `default` the record went
18416
+ through with this flag true, unset and null; a `default` beside an
18417
+ explicit `false` is refused (`Lookups with default set can not have
18418
+ allowFailures explicitly set to false.`). See `map`.
18332
18419
  map:
18333
18420
  type:
18334
18421
  - object
@@ -18338,6 +18425,17 @@ components:
18338
18425
  NetSuite search. When the incoming value matches a key, the
18339
18426
  mapped value is returned without hitting NetSuite. Null on
18340
18427
  dynamic (search-based) lookups with no static map.
18428
+ x-celigo-ai-guidance:
18429
+ - |-
18430
+ When a row condition reads this lookup (`conditional.lookupName`),
18431
+ give the lookup `allowFailures: true` and a non-empty `default`, or
18432
+ a map that holds every key the conditioned row's `extract` can
18433
+ carry: on a `restletVersion: suiteapp2.0` import run a key missing
18434
+ from the map of a lookup with no `default` failed the record with
18435
+ `lookup_error` — `Could not find value for static lookup: <name>
18436
+ {Lookup Key: <value>}` — whichever of `lookup_empty` /
18437
+ `lookup_not_empty` the row used. The mapping preview does not show
18438
+ it — see `mapping.fields[].conditional`.
18341
18439
  default:
18342
18440
  type:
18343
18441
  - string
@@ -26614,9 +26712,10 @@ components:
26614
26712
  - |-
26615
26713
  Double braces HTML-escape whatever they output — a field, a helper's result
26616
26714
  (`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
26617
- block — with no error: `&`, `<`, `>`, `"` and `'` are written as `&amp;`,
26618
- `&lt;`, `&gt;`, `&quot;` and `&#x27;`. The same expressions in triple braces,
26619
- and a plain path, write the value unchanged.
26715
+ block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
26716
+ written as `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#x27;`, `&#x3D;` and `&#x60;`.
26717
+ The same expressions in triple braces, and a plain path, write the value
26718
+ unchanged.
26620
26719
  - |-
26621
26720
  In a `dataType: json` row the rendered text is parsed, so a string value needs
26622
26721
  JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
@@ -26625,6 +26724,12 @@ components:
26625
26724
  the HTML-escaped text. Keep a space between the helper's closing braces and
26626
26725
  an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
26627
26726
  `malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
26727
+ - |-
26728
+ `jsonEncode` inside the quotes, in triple braces, is the other form that
26729
+ holds: `{"label":"{{{jsonEncode name}}}"}` wrote a value holding a double
26730
+ quote, a backslash and an apostrophe intact, as `{"label": {{{jsonSerialize
26731
+ name}}} }` did. In double braces (`"{{jsonEncode name}}"`) the same row
26732
+ failed on that value with `Bad escaped character in JSON`.
26628
26733
  hardCodedValue:
26629
26734
  type:
26630
26735
  - string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.335",
3
+ "version": "0.2.336",
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,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "c0dd90ee",
4
+ "iasCommit": "9c7f9c1d",
5
5
  "generatedAt": "2026-11-22"
6
6
  },
7
7
  "roots": {