@celigo/api-specs 0.2.334 → 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 +44 -10
- package/dist/api.yml +46 -11
- package/dist/asynchelper.yml +44 -10
- package/dist/export.yml +44 -10
- package/dist/guardrail.yml +10 -3
- package/dist/import.yml +155 -36
- package/dist/tool.yml +150 -37
- package/package.json +1 -1
- package/schemas.json +1 -1
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
|
|
2966
|
-
`"` and `&#
|
|
2967
|
-
|
|
2968
|
-
record.tags}}`) and inside a block
|
|
2969
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
2965
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
2966
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
2986
|
+
& 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
|
|
4107
|
-
`"` and `&#
|
|
4108
|
-
|
|
4109
|
-
record.tags}}`) and inside a block
|
|
4110
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
4123
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
4124
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
4144
|
+
& 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
|
@@ -1799,7 +1799,8 @@ paths:
|
|
|
1799
1799
|
from the new record, and its `response` stage holds the saved records. Remove `mockOutput`
|
|
1800
1800
|
from the export to call the source again. Real calls to the API don't read it. Imports never
|
|
1801
1801
|
send; each returns its saved `mockResponse`, or a placeholder response when none is saved
|
|
1802
|
-
(see `mockResponse` on imports)
|
|
1802
|
+
(see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
1803
|
+
placeholder on it as its `mockResponse`.
|
|
1803
1804
|
|
|
1804
1805
|
Test runs never paginate, whatever `pagination.enabled` says: the captured success
|
|
1805
1806
|
response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
|
|
@@ -3060,15 +3061,32 @@ components:
|
|
|
3060
3061
|
## TRIPLE BRACES FOR VALUES
|
|
3061
3062
|
A substitution that outputs a value is written with triple
|
|
3062
3063
|
braces. With double braces the mapper HTML-escapes the output —
|
|
3063
|
-
`&`, `<`, `>`, `"` and
|
|
3064
|
-
`"` and `&#
|
|
3065
|
-
|
|
3066
|
-
record.tags}}`) and inside a block
|
|
3067
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
3064
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
3065
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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
|
|
3068
3069
|
destination receives `O'Brien` for `O'Brien`. The same
|
|
3069
3070
|
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
3070
3071
|
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
3071
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'Brien
|
|
3085
|
+
& 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`.
|
|
3072
3090
|
examples:
|
|
3073
3091
|
- $.fullName
|
|
3074
3092
|
- '{{{record.fullName}}}'
|
|
@@ -4201,15 +4219,32 @@ components:
|
|
|
4201
4219
|
## TRIPLE BRACES FOR VALUES
|
|
4202
4220
|
A substitution that outputs a value is written with triple
|
|
4203
4221
|
braces. With double braces the mapper HTML-escapes the output —
|
|
4204
|
-
`&`, `<`, `>`, `"` and
|
|
4205
|
-
`"` and `&#
|
|
4206
|
-
|
|
4207
|
-
record.tags}}`) and inside a block
|
|
4208
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
4222
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
4223
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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
|
|
4209
4227
|
destination receives `O'Brien` for `O'Brien`. The same
|
|
4210
4228
|
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
4211
4229
|
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
4212
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'Brien
|
|
4243
|
+
& 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`.
|
|
4213
4248
|
examples:
|
|
4214
4249
|
- $.fullName
|
|
4215
4250
|
- '{{{record.fullName}}}'
|
package/dist/asynchelper.yml
CHANGED
|
@@ -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
|
|
756
|
-
`"` and `&#
|
|
757
|
-
|
|
758
|
-
record.tags}}`) and inside a block
|
|
759
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
755
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
756
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
776
|
+
& 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
|
|
1897
|
-
`"` and `&#
|
|
1898
|
-
|
|
1899
|
-
record.tags}}`) and inside a block
|
|
1900
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
1913
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
1914
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
1934
|
+
& 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
|
|
13685
|
-
`"` and `&#
|
|
13686
|
-
|
|
13687
|
-
record.tags}}`) and inside a block
|
|
13688
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
13684
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
13685
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
13705
|
+
& 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
|
|
14826
|
-
`"` and `&#
|
|
14827
|
-
|
|
14828
|
-
record.tags}}`) and inside a block
|
|
14829
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
14842
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
14843
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
14863
|
+
& 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}}}'
|
package/dist/guardrail.yml
CHANGED
|
@@ -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: `&`, `<`, `>`, `"
|
|
2102
|
-
`<`, `>`, `"` and `&#
|
|
2103
|
-
and a plain path, write the value
|
|
2101
|
+
block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
|
|
2102
|
+
written as `&`, `<`, `>`, `"`, `'`, `=` and ```.
|
|
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'Brien
|
|
4489
|
-
`A&B`
|
|
4490
|
-
|
|
4488
|
+
alike: `O'Brien` rendered as `O'Brien`, `A&B` as
|
|
4489
|
+
`A&B` and `a=b` as `a=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
|
|
4763
|
-
row that takes its value from the lookup
|
|
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`
|
|
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
|
|
5226
|
-
fails the record, and the mapping preview
|
|
5227
|
-
`suiteapp2.0` run reads the lookup's
|
|
5228
|
-
`mapping.fields[].conditional`). On an iterating
|
|
5229
|
-
evaluates it per line: with two lines whose
|
|
5230
|
-
the first only, a `lookup_not_empty` row
|
|
5231
|
-
line and a `lookup_empty` row on the
|
|
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
|
|
5604
|
-
this lookup (`conditional.lookupName` with
|
|
5605
|
-
`lookup_not_empty`), whatever this flag says — do
|
|
5606
|
-
to keep a `lookup_empty` condition
|
|
5607
|
-
`restletVersion: suiteapp2.0` import the
|
|
5608
|
-
`useDefaultOnMultipleMatches` do decide what
|
|
5609
|
-
reads when the search matches several records or
|
|
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
|
|
14376
|
-
`"` and `&#
|
|
14377
|
-
|
|
14378
|
-
record.tags}}`) and inside a block
|
|
14379
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
14439
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
14440
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
14460
|
+
& 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
|
|
15517
|
-
`"` and `&#
|
|
15518
|
-
|
|
15519
|
-
record.tags}}`) and inside a block
|
|
15520
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
15597
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
15598
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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'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'Brien
|
|
15618
|
+
& 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: `&`, `<`, `>`, `"
|
|
16884
|
-
`<`, `>`, `"` and `&#
|
|
16885
|
-
and a plain path, write the value
|
|
16981
|
+
block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
|
|
16982
|
+
written as `&`, `<`, `>`, `"`, `'`, `=` and ```.
|
|
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
|
|
@@ -18466,6 +18571,13 @@ components:
|
|
|
18466
18571
|
``POST /v1/imports/preview`` is the exception: it executes the
|
|
18467
18572
|
composed destination request for real — mockResponse does not
|
|
18468
18573
|
protect that surface.
|
|
18574
|
+
- |-
|
|
18575
|
+
A test run of a flow, Tool or API in which an import with no
|
|
18576
|
+
saved mockResponse executes saves the placeholder on that import
|
|
18577
|
+
as its mockResponse (the import's ``lastModified`` changes). A
|
|
18578
|
+
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
18579
|
+
placeholder, not a response anyone authored — replace it with a
|
|
18580
|
+
realistic one.
|
|
18469
18581
|
items:
|
|
18470
18582
|
type: object
|
|
18471
18583
|
properties:
|
|
@@ -19848,6 +19960,13 @@ components:
|
|
|
19848
19960
|
non-empty `default`, and when the search matches several records that
|
|
19849
19961
|
the lookup does not resolve to one — see `mapping.fields[].conditional`
|
|
19850
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.
|
|
19851
19970
|
- |-
|
|
19852
19971
|
The record is mapped as sent. For a one-to-many import (`oneToMany` with
|
|
19853
19972
|
`pathToMany`, set on the import and not part of this request) send the
|
package/dist/tool.yml
CHANGED
|
@@ -2493,7 +2493,8 @@ paths:
|
|
|
2493
2493
|
input, and its `response` stage holds the saved records. Remove `mockOutput` from the export
|
|
2494
2494
|
to call the source again. `POST /v1/tools/{_id}/invoke` neither reads nor writes it. Imports
|
|
2495
2495
|
never send; each returns its saved `mockResponse`, or a placeholder response when none is
|
|
2496
|
-
saved (see `mockResponse` on imports)
|
|
2496
|
+
saved (see `mockResponse` on imports), and a run in which such an import executes saves that
|
|
2497
|
+
placeholder on it as its `mockResponse`. A test run is keyed by the request's `triggeredAt`:
|
|
2497
2498
|
one sent with a `triggeredAt` that an earlier test run of the tool already used is refused
|
|
2498
2499
|
with 400 `test_run_not_allowed` ("Cannot run the test tool when it is already in the running
|
|
2499
2500
|
state."), even after that run has finished. Runs with different `triggeredAt` values run at
|
|
@@ -3936,15 +3937,32 @@ components:
|
|
|
3936
3937
|
## TRIPLE BRACES FOR VALUES
|
|
3937
3938
|
A substitution that outputs a value is written with triple
|
|
3938
3939
|
braces. With double braces the mapper HTML-escapes the output —
|
|
3939
|
-
`&`, `<`, `>`, `"` and
|
|
3940
|
-
`"` and `&#
|
|
3941
|
-
|
|
3942
|
-
record.tags}}`) and inside a block
|
|
3943
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
3940
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
3941
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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
|
|
3944
3945
|
destination receives `O'Brien` for `O'Brien`. The same
|
|
3945
3946
|
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
3946
3947
|
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
3947
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'Brien
|
|
3961
|
+
& 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`.
|
|
3948
3966
|
examples:
|
|
3949
3967
|
- $.fullName
|
|
3950
3968
|
- '{{{record.fullName}}}'
|
|
@@ -5077,15 +5095,32 @@ components:
|
|
|
5077
5095
|
## TRIPLE BRACES FOR VALUES
|
|
5078
5096
|
A substitution that outputs a value is written with triple
|
|
5079
5097
|
braces. With double braces the mapper HTML-escapes the output —
|
|
5080
|
-
`&`, `<`, `>`, `"` and
|
|
5081
|
-
`"` and `&#
|
|
5082
|
-
|
|
5083
|
-
record.tags}}`) and inside a block
|
|
5084
|
-
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
5098
|
+
`&`, `<`, `>`, `"`, `'`, `=` and the backtick become `&`,
|
|
5099
|
+
`<`, `>`, `"`, `'`, `=` and ``` — 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
|
|
5085
5103
|
destination receives `O'Brien` for `O'Brien`. The same
|
|
5086
5104
|
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
5087
5105
|
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
5088
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'Brien
|
|
5119
|
+
& 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`.
|
|
5089
5124
|
examples:
|
|
5090
5125
|
- $.fullName
|
|
5091
5126
|
- '{{{record.fullName}}}'
|
|
@@ -17205,9 +17240,11 @@ components:
|
|
|
17205
17240
|
In the mapping preview double braces HTML-escaped the
|
|
17206
17241
|
output — a field (`{{name}}`), a helper's result
|
|
17207
17242
|
(`{{uppercase name}}`) and a substitution inside a block
|
|
17208
|
-
alike: `O'Brien` rendered as `O'Brien
|
|
17209
|
-
`A&B`
|
|
17210
|
-
|
|
17243
|
+
alike: `O'Brien` rendered as `O'Brien`, `A&B` as
|
|
17244
|
+
`A&B` and `a=b` as `a=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.
|
|
17211
17248
|
generate:
|
|
17212
17249
|
type: string
|
|
17213
17250
|
description: |
|
|
@@ -17479,8 +17516,26 @@ components:
|
|
|
17479
17516
|
`lookup_empty` row was applied and a `lookup_not_empty` row left
|
|
17480
17517
|
out, and the lookup raised no error, on import runs with
|
|
17481
17518
|
`restletVersion` `suiteapp2.0`, `suiteapp1.0` and `suitebundle` and
|
|
17482
|
-
in the mapping preview. `allowFailures` fails a
|
|
17483
|
-
row that takes its value from the lookup
|
|
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.
|
|
17484
17539
|
- |-
|
|
17485
17540
|
On `restletVersion: suiteapp2.0` an import run reads the condition
|
|
17486
17541
|
from the value the lookup resolves to under its own settings.
|
|
@@ -17500,6 +17555,14 @@ components:
|
|
|
17500
17555
|
`default` and `allowFailures: false` is refused in both: `Lookups
|
|
17501
17556
|
with default set can not have allowFailures explicitly set to
|
|
17502
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`.
|
|
17503
17566
|
- |-
|
|
17504
17567
|
The mapping preview (`PUT /v1/netsuiteDA/previewImportMappingFields`)
|
|
17505
17568
|
reads the condition from the search alone: no match is empty, one
|
|
@@ -17516,8 +17579,8 @@ components:
|
|
|
17516
17579
|
out), and several matches that the lookup does not resolve to a
|
|
17517
17580
|
record, with `allowFailures` false or routed to an empty `default`
|
|
17518
17581
|
(the preview left the `lookup_empty` row out, the run applied
|
|
17519
|
-
it). Give a lookup that only a condition reads no `default`
|
|
17520
|
-
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.
|
|
17521
17584
|
- |-
|
|
17522
17585
|
`when: record_updated` requires an operation that can update an
|
|
17523
17586
|
existing record: on an `add`-only operation every record fails with
|
|
@@ -17942,14 +18005,31 @@ components:
|
|
|
17942
18005
|
report it either: there the row is left out of the sublist with no
|
|
17943
18006
|
error.
|
|
17944
18007
|
- |-
|
|
17945
|
-
A lookup
|
|
17946
|
-
fails the record, and the mapping preview
|
|
17947
|
-
`suiteapp2.0` run reads the lookup's
|
|
17948
|
-
`mapping.fields[].conditional`). On an iterating
|
|
17949
|
-
evaluates it per line: with two lines whose
|
|
17950
|
-
the first only, a `lookup_not_empty` row
|
|
17951
|
-
line and a `lookup_empty` row on the
|
|
17952
|
-
`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.
|
|
17953
18033
|
- |-
|
|
17954
18034
|
The operation contract differs from body-field conditions:
|
|
17955
18035
|
`when: record_updated` on an `add`-only operation is rejected
|
|
@@ -18320,14 +18400,22 @@ components:
|
|
|
18320
18400
|
as unset).
|
|
18321
18401
|
x-celigo-ai-guidance:
|
|
18322
18402
|
- |-
|
|
18323
|
-
A
|
|
18324
|
-
this lookup (`conditional.lookupName` with
|
|
18325
|
-
`lookup_not_empty`), whatever this flag says — do
|
|
18326
|
-
to keep a `lookup_empty` condition
|
|
18327
|
-
`restletVersion: suiteapp2.0` import the
|
|
18328
|
-
`useDefaultOnMultipleMatches` do decide what
|
|
18329
|
-
reads when the search matches several records or
|
|
18330
|
-
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`.
|
|
18331
18419
|
map:
|
|
18332
18420
|
type:
|
|
18333
18421
|
- object
|
|
@@ -18337,6 +18425,17 @@ components:
|
|
|
18337
18425
|
NetSuite search. When the incoming value matches a key, the
|
|
18338
18426
|
mapped value is returned without hitting NetSuite. Null on
|
|
18339
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`.
|
|
18340
18439
|
default:
|
|
18341
18440
|
type:
|
|
18342
18441
|
- string
|
|
@@ -26613,9 +26712,10 @@ components:
|
|
|
26613
26712
|
- |-
|
|
26614
26713
|
Double braces HTML-escape whatever they output — a field, a helper's result
|
|
26615
26714
|
(`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
|
|
26616
|
-
block — with no error: `&`, `<`, `>`, `"
|
|
26617
|
-
`<`, `>`, `"` and `&#
|
|
26618
|
-
and a plain path, write the value
|
|
26715
|
+
block — with no error: `&`, `<`, `>`, `"`, `'`, `=` and the backtick are
|
|
26716
|
+
written as `&`, `<`, `>`, `"`, `'`, `=` and ```.
|
|
26717
|
+
The same expressions in triple braces, and a plain path, write the value
|
|
26718
|
+
unchanged.
|
|
26619
26719
|
- |-
|
|
26620
26720
|
In a `dataType: json` row the rendered text is parsed, so a string value needs
|
|
26621
26721
|
JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
|
|
@@ -26624,6 +26724,12 @@ components:
|
|
|
26624
26724
|
the HTML-escaped text. Keep a space between the helper's closing braces and
|
|
26625
26725
|
an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
|
|
26626
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`.
|
|
26627
26733
|
hardCodedValue:
|
|
26628
26734
|
type:
|
|
26629
26735
|
- string
|
|
@@ -28199,6 +28305,13 @@ components:
|
|
|
28199
28305
|
``POST /v1/imports/preview`` is the exception: it executes the
|
|
28200
28306
|
composed destination request for real — mockResponse does not
|
|
28201
28307
|
protect that surface.
|
|
28308
|
+
- |-
|
|
28309
|
+
A test run of a flow, Tool or API in which an import with no
|
|
28310
|
+
saved mockResponse executes saves the placeholder on that import
|
|
28311
|
+
as its mockResponse (the import's ``lastModified`` changes). A
|
|
28312
|
+
saved mockResponse holding ``mockResponse: "replace me"`` is that
|
|
28313
|
+
placeholder, not a response anyone authored — replace it with a
|
|
28314
|
+
realistic one.
|
|
28202
28315
|
items:
|
|
28203
28316
|
type: object
|
|
28204
28317
|
properties:
|
package/package.json
CHANGED