diff --git a/cmd/flowrunner/testdata/flows/all_actions_test.json b/cmd/flowrunner/testdata/flows/all_actions_test.json index 0eb3349ca..2b827f73d 100644 --- a/cmd/flowrunner/testdata/flows/all_actions_test.json +++ b/cmd/flowrunner/testdata/flows/all_actions_test.json @@ -72,7 +72,7 @@ "type": "remove_from_group" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty, are you ready to complete today's survey?", @@ -197,7 +197,7 @@ "type": "remove_from_group" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty, are you ready to complete today's survey?", @@ -240,7 +240,7 @@ ], "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "a58be63b-907d-4a1a-856b-0bb5579d7507", - "uuid": "ba6b7f30-d8c6-4649-9496-55471b2ff4ab" + "uuid": "2159853a-e5bd-4498-a030-0e8e35499c07" } ], "results": { @@ -254,7 +254,7 @@ }, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "05c14741-8491-4644-925a-079a22c5fcdd" + "uuid": "4d757be9-7d6d-4a17-9165-fb89bc2223fa" }, { "channel_uuid": "", @@ -269,7 +269,7 @@ "results": {}, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "3f279e76-8c2c-4868-a825-9ea05957e226" + "uuid": "7f93bebb-3448-41a4-aad6-e7b76e370298" } ] } diff --git a/cmd/flowrunner/testdata/flows/brochure_test.json b/cmd/flowrunner/testdata/flows/brochure_test.json index 7d91ab7a2..bb47b25a8 100644 --- a/cmd/flowrunner/testdata/flows/brochure_test.json +++ b/cmd/flowrunner/testdata/flows/brochure_test.json @@ -3,7 +3,7 @@ { "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi! What is your name?", @@ -30,7 +30,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi! What is your name?", @@ -40,7 +40,7 @@ "exit_uuid": "2d481ce6-efcf-4898-a825-f76208e32f2a", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "32bc60ad-5c86-465e-a6b8-049c44ecce49", - "uuid": "83635cfd-6bcd-42aa-b6d5-a8f17313288a" + "uuid": "57a6ad4c-5be8-43af-8109-6f9874370623" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -53,13 +53,13 @@ } ], "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", - "uuid": "059e764e-d93b-4b63-bc06-155b73fef755" + "uuid": "eb3fc259-d250-44cb-9876-2a3870087422" } ], "results": {}, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "abac4eb5-d3d7-419b-93aa-101af08deafe", + "uuid": "4d744147-38a4-46a1-95af-3b5de831e8c5", "wait": { "timeout": 600, "type": "msg" @@ -107,7 +107,7 @@ "type": "add_to_group" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Great, you are Ryan Lewis, thanks for joining!", @@ -138,7 +138,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi! What is your name?", @@ -148,7 +148,7 @@ "exit_uuid": "2d481ce6-efcf-4898-a825-f76208e32f2a", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "32bc60ad-5c86-465e-a6b8-049c44ecce49", - "uuid": "83635cfd-6bcd-42aa-b6d5-a8f17313288a" + "uuid": "57a6ad4c-5be8-43af-8109-6f9874370623" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -182,7 +182,7 @@ "exit_uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", - "uuid": "059e764e-d93b-4b63-bc06-155b73fef755" + "uuid": "eb3fc259-d250-44cb-9876-2a3870087422" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -206,16 +206,17 @@ "type": "add_to_group" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Great, you are Ryan Lewis, thanks for joining!", "type": "send_msg" } ], + "exit_uuid": "388bbce3-8079-4573-922f-8dea469d93f3", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "7acb54fd-0db0-40b9-970b-93f7bfb4277b", - "uuid": "a2fd3db5-50c0-40d1-b071-307619b144f4" + "uuid": "e45184d1-32a7-493a-ac3e-fabc8b7792ca" } ], "results": { @@ -228,7 +229,7 @@ }, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "abac4eb5-d3d7-419b-93aa-101af08deafe" + "uuid": "4d744147-38a4-46a1-95af-3b5de831e8c5" } ] } diff --git a/cmd/flowrunner/testdata/flows/default_result_test.json b/cmd/flowrunner/testdata/flows/default_result_test.json index cbb2dd35c..b98043f3b 100644 --- a/cmd/flowrunner/testdata/flows/default_result_test.json +++ b/cmd/flowrunner/testdata/flows/default_result_test.json @@ -3,7 +3,7 @@ { "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -30,7 +30,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -40,7 +40,7 @@ "exit_uuid": "19f677bf-2b34-48bd-8a05-3839191b51b2", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "4fd923cc-b39f-4722-b1ea-22ce1ef388de", - "uuid": "3dca8f9a-89af-4bef-9cad-51e545265209" + "uuid": "0b243740-70fa-4b3e-b640-5734b9ee096a" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -53,13 +53,13 @@ } ], "node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f", - "uuid": "add4b286-1f60-4c31-aa4f-5c2a37784f4b" + "uuid": "a739117e-12c0-4433-a490-5582fe88aa0c" } ], "results": {}, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "95ce3732-de20-4a1e-9017-8dd2ccc72298", + "uuid": "907dd178-19a5-429d-a61e-7791e1db9e06", "wait": { "type": "msg" } @@ -103,7 +103,7 @@ "value": "Ryan" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Great, pleased to meet you Ryan", @@ -134,7 +134,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -144,7 +144,7 @@ "exit_uuid": "19f677bf-2b34-48bd-8a05-3839191b51b2", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "4fd923cc-b39f-4722-b1ea-22ce1ef388de", - "uuid": "3dca8f9a-89af-4bef-9cad-51e545265209" + "uuid": "0b243740-70fa-4b3e-b640-5734b9ee096a" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -178,7 +178,7 @@ "exit_uuid": "cf9a2465-049a-4ba1-95ed-eb60fb45fd63", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f", - "uuid": "add4b286-1f60-4c31-aa4f-5c2a37784f4b" + "uuid": "a739117e-12c0-4433-a490-5582fe88aa0c" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -199,7 +199,7 @@ "value": "Ryan" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Great, pleased to meet you Ryan", @@ -208,7 +208,7 @@ ], "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "2929d2fc-2778-4d98-a4bc-73a7345710b0", - "uuid": "2cc1163c-9b88-4991-838b-b71e40661862" + "uuid": "a51bb7cd-afae-4e1f-9836-f163715fedc6" } ], "results": { @@ -222,7 +222,7 @@ }, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "95ce3732-de20-4a1e-9017-8dd2ccc72298" + "uuid": "907dd178-19a5-429d-a61e-7791e1db9e06" } ] } diff --git a/cmd/flowrunner/testdata/flows/subflow_test.json b/cmd/flowrunner/testdata/flows/subflow_test.json index 04e1d7b5e..8e275fe55 100644 --- a/cmd/flowrunner/testdata/flows/subflow_test.json +++ b/cmd/flowrunner/testdata/flows/subflow_test.json @@ -3,7 +3,7 @@ { "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "This is the parent flow", @@ -17,7 +17,7 @@ "type": "flow_entered" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -51,7 +51,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "This is the parent flow", @@ -72,13 +72,13 @@ } ], "node_uuid": "e97a43c1-a15b-4566-bb6d-dfd2b18408e1", - "uuid": "b62910f3-dbab-44e1-a53d-ab51e376270a" + "uuid": "427ccdf7-8050-4e46-bbf3-76b881939b21" } ], "results": {}, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "d01cd87f-583a-4d9b-9a2d-804d398196f8", + "uuid": "46ebe353-73dc-4dd5-99d8-7f6d0b9d4bb4", "wait": { "flow_uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195", "type": "flow" @@ -98,7 +98,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -112,13 +112,13 @@ } ], "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", - "uuid": "16c8e802-49ee-4140-90eb-7c684ebbc90a" + "uuid": "27c4ace6-2eba-4a93-9122-d2fd9ae75a1e" } ], "results": {}, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "c07eac40-6f12-47ff-a095-41f5e1019488", + "uuid": "11b55c51-ff9e-4d37-829f-98ba977ce3c4", "wait": { "type": "msg" } @@ -147,7 +147,7 @@ "value": "Ryan Lewis" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Got it!", @@ -163,7 +163,7 @@ "type": "flow_exited" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Flow succeeded, they said Ryan Lewis", @@ -195,7 +195,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "What is your name?", @@ -230,13 +230,13 @@ "exit_uuid": "58743fc9-6b4c-41dd-a844-8568f093e65b", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", - "uuid": "16c8e802-49ee-4140-90eb-7c684ebbc90a" + "uuid": "27c4ace6-2eba-4a93-9122-d2fd9ae75a1e" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Got it!", @@ -245,7 +245,7 @@ ], "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "3689e39d-608e-4e85-8a18-c9aa6375bb43", - "uuid": "1db413bb-3306-4a7e-a2a9-ad7f40dd9cfd" + "uuid": "85fb2a76-8346-4101-bb81-b5ff1cd564a1" } ], "results": { @@ -259,7 +259,7 @@ }, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "c07eac40-6f12-47ff-a095-41f5e1019488" + "uuid": "11b55c51-ff9e-4d37-829f-98ba977ce3c4" }, { "channel_uuid": "", @@ -275,7 +275,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "This is the parent flow", @@ -307,13 +307,13 @@ "exit_uuid": "2ce7eeea-ee70-4e1a-b8f4-84d8102a8aef", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "e97a43c1-a15b-4566-bb6d-dfd2b18408e1", - "uuid": "b62910f3-dbab-44e1-a53d-ab51e376270a" + "uuid": "427ccdf7-8050-4e46-bbf3-76b881939b21" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Flow succeeded, they said Ryan Lewis", @@ -322,13 +322,13 @@ ], "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "c8380f24-7524-4340-9d38-db8a131d2b70", - "uuid": "ed50f24e-2b44-41fa-a504-8d220eeb409a" + "uuid": "f87a02fd-b32c-47e2-a980-0557a1667b81" } ], "results": {}, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "d01cd87f-583a-4d9b-9a2d-804d398196f8" + "uuid": "46ebe353-73dc-4dd5-99d8-7f6d0b9d4bb4" } ] } diff --git a/cmd/flowrunner/testdata/flows/two_questions_test.json b/cmd/flowrunner/testdata/flows/two_questions_test.json index 65a27f059..262409055 100644 --- a/cmd/flowrunner/testdata/flows/two_questions_test.json +++ b/cmd/flowrunner/testdata/flows/two_questions_test.json @@ -3,7 +3,7 @@ { "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty! What is your favorite color? (red/blue) Your number is +12065551212", @@ -30,7 +30,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty! What is your favorite color? (red/blue) Your number is +12065551212", @@ -44,13 +44,13 @@ } ], "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", - "uuid": "35f70ea9-8a15-4d50-ba37-2a38bf8e2fba" + "uuid": "6e3d9b80-6139-4d5f-bab0-27d7e6a95d2e" } ], "results": {}, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "ee88a9fc-fecd-4287-a6bc-a551d0f5f2ce", + "uuid": "ccadfe08-7771-4a30-a8ef-2a239abb42d0", "wait": { "timeout": 600, "type": "msg" @@ -87,7 +87,7 @@ "value": "fra" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Blue! Bien sur! Quelle est votes soda preferee? (pepsi/coke)", @@ -124,7 +124,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty! What is your favorite color? (red/blue) Your number is +12065551212", @@ -159,7 +159,7 @@ "exit_uuid": "c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", - "uuid": "35f70ea9-8a15-4d50-ba37-2a38bf8e2fba" + "uuid": "6e3d9b80-6139-4d5f-bab0-27d7e6a95d2e" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -172,7 +172,7 @@ "value": "fra" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Blue! Bien sur! Quelle est votes soda preferee? (pepsi/coke)", @@ -186,7 +186,7 @@ } ], "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", - "uuid": "1d8b735d-d089-4e68-9f01-f56054c3b046" + "uuid": "27213941-56f7-4995-b584-2ca78f1bc1e2" } ], "results": { @@ -200,7 +200,7 @@ }, "status": "A", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "ee88a9fc-fecd-4287-a6bc-a551d0f5f2ce", + "uuid": "ccadfe08-7771-4a30-a8ef-2a239abb42d0", "wait": { "timeout": 600, "type": "msg" @@ -230,7 +230,7 @@ "value": "Coke" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Parfait, vous avez finis et tu aimes Coke", @@ -261,7 +261,7 @@ "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Hi Ben Haggerty! What is your favorite color? (red/blue) Your number is +12065551212", @@ -296,7 +296,7 @@ "exit_uuid": "c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", - "uuid": "35f70ea9-8a15-4d50-ba37-2a38bf8e2fba" + "uuid": "6e3d9b80-6139-4d5f-bab0-27d7e6a95d2e" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", @@ -309,7 +309,7 @@ "value": "fra" }, { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Blue! Bien sur! Quelle est votes soda preferee? (pepsi/coke)", @@ -344,13 +344,13 @@ "exit_uuid": "c7bca181-0cb3-4ec6-8555-f7e5644238ad", "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", - "uuid": "1d8b735d-d089-4e68-9f01-f56054c3b046" + "uuid": "27213941-56f7-4995-b584-2ca78f1bc1e2" }, { "arrived_on": "2000-01-01T00:00:00.000000000-00:00", "events": [ { - "contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", + "contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3", "created_on": "2000-01-01T00:00:00.000000000-00:00", "step_uuid": "", "text": "Parfait, vous avez finis et tu aimes Coke", @@ -359,7 +359,7 @@ ], "left_on": "2000-01-01T00:00:00.000000000-00:00", "node_uuid": "cefd2817-38a8-4ddb-af97-34fffac7e6db", - "uuid": "47259c9f-0fe1-48a5-b396-c775e1d41439" + "uuid": "a9a4eeec-ff83-413d-bdff-5df0776d30de" } ], "results": { @@ -380,7 +380,7 @@ }, "status": "C", "timesout_on": "2000-01-01T00:00:00.000000000-00:00", - "uuid": "ee88a9fc-fecd-4287-a6bc-a551d0f5f2ce" + "uuid": "ccadfe08-7771-4a30-a8ef-2a239abb42d0" } ] } diff --git a/flows/events/send_msg.go b/flows/events/send_msg.go index 8aced124e..b540f13f5 100644 --- a/flows/events/send_msg.go +++ b/flows/events/send_msg.go @@ -23,7 +23,7 @@ const TypeSendMsg string = "send_msg" type SendMsgEvent struct { BaseEvent URN flows.URN `json:"urn,omitempty"` - ContactUUID flows.ContactUUID `json:"contact,omitempty"` + ContactUUID flows.ContactUUID `json:"contact_uuid,omitempty"` GroupUUID flows.GroupUUID `json:"group,omitempty"` Text string `json:"text" validate:"required"` }