lib/floe/workflow/intrinsic_function/parser.rb in floe-0.12.0 vs lib/floe/workflow/intrinsic_function/parser.rb in floe-0.13.0
- old
+ new
@@ -52,20 +52,24 @@
arg >> (comma_sep >> arg).repeat
).maybe.as(:args)
end
[
+ :states_format, "States.Format",
+ :states_string_to_json, "States.StringToJson",
+ :states_json_to_string, "States.JsonToString",
:states_array, "States.Array",
:states_array_partition, "States.ArrayPartition",
:states_array_contains, "States.ArrayContains",
:states_array_range, "States.ArrayRange",
:states_array_get_item, "States.ArrayGetItem",
:states_array_length, "States.ArrayLength",
:states_array_unique, "States.ArrayUnique",
:states_base64_encode, "States.Base64Encode",
:states_base64_decode, "States.Base64Decode",
:states_hash, "States.Hash",
+ :states_json_merge, "States.JsonMerge",
:states_math_random, "States.MathRandom",
:states_math_add, "States.MathAdd",
:states_string_split, "States.StringSplit",
:states_uuid, "States.UUID",
].each_slice(2) do |function_symbol, function_name|
@@ -75,19 +79,23 @@
).as(function_symbol)
end
end
rule(:expression) do
- states_array |
+ states_format |
+ states_string_to_json |
+ states_json_to_string |
+ states_array |
states_array_partition |
states_array_contains |
states_array_range |
states_array_get_item |
states_array_length |
states_array_unique |
states_base64_encode |
states_base64_decode |
states_hash |
+ states_json_merge |
states_math_random |
states_math_add |
states_string_split |
states_uuid
end