@nyaruka/temba-components 0.129.3 → 0.129.5
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/.eslintrc.js +1 -0
- package/.github/workflows/build.yml +135 -3
- package/CHANGELOG.md +19 -0
- package/demo/data/flows/sample-flow.json +110 -87
- package/demo/field-config-demo.html +135 -0
- package/dist/temba-components.js +1257 -675
- package/dist/temba-components.js.map +1 -1
- package/docs/ActionEditor-Migration.md +118 -0
- package/out-tsc/src/events.js.map +1 -1
- package/out-tsc/src/flow/{EditorNode.js → CanvasNode.js} +345 -42
- package/out-tsc/src/flow/CanvasNode.js.map +1 -0
- package/out-tsc/src/flow/Editor.js +107 -3
- package/out-tsc/src/flow/Editor.js.map +1 -1
- package/out-tsc/src/flow/NodeEditor.js +1211 -0
- package/out-tsc/src/flow/NodeEditor.js.map +1 -0
- package/out-tsc/src/flow/Plumber.js +0 -6
- package/out-tsc/src/flow/Plumber.js.map +1 -1
- package/out-tsc/src/flow/actions/add_contact_groups.js +40 -0
- package/out-tsc/src/flow/actions/add_contact_groups.js.map +1 -0
- package/out-tsc/src/flow/actions/add_contact_urn.js +16 -0
- package/out-tsc/src/flow/actions/add_contact_urn.js.map +1 -0
- package/out-tsc/src/flow/actions/add_input_labels.js +11 -0
- package/out-tsc/src/flow/actions/add_input_labels.js.map +1 -0
- package/out-tsc/src/flow/actions/call_classifier.js +11 -0
- package/out-tsc/src/flow/actions/call_classifier.js.map +1 -0
- package/out-tsc/src/flow/actions/call_llm.js +11 -0
- package/out-tsc/src/flow/actions/call_llm.js.map +1 -0
- package/out-tsc/src/flow/actions/call_resthook.js +11 -0
- package/out-tsc/src/flow/actions/call_resthook.js.map +1 -0
- package/out-tsc/src/flow/actions/call_webhook.js +122 -0
- package/out-tsc/src/flow/actions/call_webhook.js.map +1 -0
- package/out-tsc/src/flow/actions/enter_flow.js +14 -0
- package/out-tsc/src/flow/actions/enter_flow.js.map +1 -0
- package/out-tsc/src/flow/actions/open_ticket.js +11 -0
- package/out-tsc/src/flow/actions/open_ticket.js.map +1 -0
- package/out-tsc/src/flow/actions/play_audio.js +11 -0
- package/out-tsc/src/flow/actions/play_audio.js.map +1 -0
- package/out-tsc/src/flow/actions/remove_contact_groups.js +62 -0
- package/out-tsc/src/flow/actions/remove_contact_groups.js.map +1 -0
- package/out-tsc/src/flow/actions/request_optin.js +11 -0
- package/out-tsc/src/flow/actions/request_optin.js.map +1 -0
- package/out-tsc/src/flow/actions/say_msg.js +11 -0
- package/out-tsc/src/flow/actions/say_msg.js.map +1 -0
- package/out-tsc/src/flow/actions/send_broadcast.js +33 -0
- package/out-tsc/src/flow/actions/send_broadcast.js.map +1 -0
- package/out-tsc/src/flow/actions/send_email.js +56 -0
- package/out-tsc/src/flow/actions/send_email.js.map +1 -0
- package/out-tsc/src/flow/actions/send_msg.js +55 -0
- package/out-tsc/src/flow/actions/send_msg.js.map +1 -0
- package/out-tsc/src/flow/actions/set_contact_channel.js +12 -0
- package/out-tsc/src/flow/actions/set_contact_channel.js.map +1 -0
- package/out-tsc/src/flow/actions/set_contact_field.js +12 -0
- package/out-tsc/src/flow/actions/set_contact_field.js.map +1 -0
- package/out-tsc/src/flow/actions/set_contact_language.js +10 -0
- package/out-tsc/src/flow/actions/set_contact_language.js.map +1 -0
- package/out-tsc/src/flow/actions/set_contact_name.js +10 -0
- package/out-tsc/src/flow/actions/set_contact_name.js.map +1 -0
- package/out-tsc/src/flow/actions/set_contact_status.js +10 -0
- package/out-tsc/src/flow/actions/set_contact_status.js.map +1 -0
- package/out-tsc/src/flow/actions/set_run_result.js +10 -0
- package/out-tsc/src/flow/actions/set_run_result.js.map +1 -0
- package/out-tsc/src/flow/actions/split_by_expression_example.js +77 -0
- package/out-tsc/src/flow/actions/split_by_expression_example.js.map +1 -0
- package/out-tsc/src/flow/actions/start_session.js +11 -0
- package/out-tsc/src/flow/actions/start_session.js.map +1 -0
- package/out-tsc/src/flow/actions/transfer_airtime.js +11 -0
- package/out-tsc/src/flow/actions/transfer_airtime.js.map +1 -0
- package/out-tsc/src/flow/config.js +88 -193
- package/out-tsc/src/flow/config.js.map +1 -1
- package/out-tsc/src/flow/nodes/execute_actions.js +4 -0
- package/out-tsc/src/flow/nodes/execute_actions.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_airtime.js +9 -0
- package/out-tsc/src/flow/nodes/split_by_airtime.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_contact_field.js +7 -0
- package/out-tsc/src/flow/nodes/split_by_contact_field.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_expression.js +7 -0
- package/out-tsc/src/flow/nodes/split_by_expression.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_groups.js +7 -0
- package/out-tsc/src/flow/nodes/split_by_groups.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_random.js +10 -0
- package/out-tsc/src/flow/nodes/split_by_random.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_run_result.js +7 -0
- package/out-tsc/src/flow/nodes/split_by_run_result.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_scheme.js +7 -0
- package/out-tsc/src/flow/nodes/split_by_scheme.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_subflow.js +9 -0
- package/out-tsc/src/flow/nodes/split_by_subflow.js.map +1 -0
- package/out-tsc/src/flow/nodes/split_by_webhook.js +18 -0
- package/out-tsc/src/flow/nodes/split_by_webhook.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_audio.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_audio.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_digits.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_digits.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_image.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_image.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_location.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_location.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_menu.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_menu.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_response.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_response.js.map +1 -0
- package/out-tsc/src/flow/nodes/wait_for_video.js +7 -0
- package/out-tsc/src/flow/nodes/wait_for_video.js.map +1 -0
- package/out-tsc/src/flow/types.js +79 -0
- package/out-tsc/src/flow/types.js.map +1 -0
- package/out-tsc/src/flow/utils.js +65 -0
- package/out-tsc/src/flow/utils.js.map +1 -0
- package/out-tsc/src/form/ArrayEditor.js +199 -0
- package/out-tsc/src/form/ArrayEditor.js.map +1 -0
- package/out-tsc/src/form/BaseListEditor.js +128 -0
- package/out-tsc/src/form/BaseListEditor.js.map +1 -0
- package/out-tsc/src/form/Checkbox.js +17 -2
- package/out-tsc/src/form/Checkbox.js.map +1 -1
- package/out-tsc/src/form/Completion.js +6 -0
- package/out-tsc/src/form/Completion.js.map +1 -1
- package/out-tsc/src/form/FormField.js +110 -11
- package/out-tsc/src/form/FormField.js.map +1 -1
- package/out-tsc/src/form/KeyValueEditor.js +223 -0
- package/out-tsc/src/form/KeyValueEditor.js.map +1 -0
- package/out-tsc/src/form/select/Select.js +92 -32
- package/out-tsc/src/form/select/Select.js.map +1 -1
- package/out-tsc/src/interfaces.js +6 -0
- package/out-tsc/src/interfaces.js.map +1 -1
- package/out-tsc/src/live/ContactChat.js +2 -76
- package/out-tsc/src/live/ContactChat.js.map +1 -1
- package/out-tsc/temba-modules.js +9 -2
- package/out-tsc/temba-modules.js.map +1 -1
- package/out-tsc/test/ActionHelper.js +116 -0
- package/out-tsc/test/ActionHelper.js.map +1 -0
- package/out-tsc/test/actions/add_contact_groups.test.js +66 -0
- package/out-tsc/test/actions/add_contact_groups.test.js.map +1 -0
- package/out-tsc/test/actions/remove_contact_groups.test.js +226 -0
- package/out-tsc/test/actions/remove_contact_groups.test.js.map +1 -0
- package/out-tsc/test/actions/send_email.test.js +160 -0
- package/out-tsc/test/actions/send_email.test.js.map +1 -0
- package/out-tsc/test/actions/send_msg.test.js +95 -0
- package/out-tsc/test/actions/send_msg.test.js.map +1 -0
- package/out-tsc/test/temba-action-editing-integration.test.js +183 -0
- package/out-tsc/test/temba-action-editing-integration.test.js.map +1 -0
- package/out-tsc/test/temba-checkbox.test.js +1 -1
- package/out-tsc/test/temba-checkbox.test.js.map +1 -1
- package/out-tsc/test/temba-field-config.test.js +133 -0
- package/out-tsc/test/temba-field-config.test.js.map +1 -0
- package/out-tsc/test/temba-flow-editor-node.test.js +14 -14
- package/out-tsc/test/temba-flow-editor-node.test.js.map +1 -1
- package/out-tsc/test/temba-node-editor.test.js +283 -0
- package/out-tsc/test/temba-node-editor.test.js.map +1 -0
- package/out-tsc/test/temba-select.test.js +158 -0
- package/out-tsc/test/temba-select.test.js.map +1 -1
- package/package.json +1 -1
- package/screenshots/truth/actions/add_contact_groups/editor/descriptive-group-names.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/editor/long-group-names.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/editor/many-groups.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/editor/multiple-groups.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/editor/single-group.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/render/descriptive-group-names.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/render/long-group-names.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/render/many-groups.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/render/multiple-groups.png +0 -0
- package/screenshots/truth/actions/add_contact_groups/render/single-group.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/cleanup-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/long-descriptive-group-names.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/many-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/multiple-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/remove-from-all-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/editor/single-group.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/cleanup-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/long-descriptive-group-names.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/many-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/multiple-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/remove-from-all-groups.png +0 -0
- package/screenshots/truth/actions/remove_contact_groups/render/single-group.png +0 -0
- package/screenshots/truth/actions/send_email/editor/complex-business-email.png +0 -0
- package/screenshots/truth/actions/send_email/editor/empty-body.png +0 -0
- package/screenshots/truth/actions/send_email/editor/empty-subject.png +0 -0
- package/screenshots/truth/actions/send_email/editor/long-subject.png +0 -0
- package/screenshots/truth/actions/send_email/editor/multiline-body.png +0 -0
- package/screenshots/truth/actions/send_email/editor/multiple-recipients.png +0 -0
- package/screenshots/truth/actions/send_email/editor/simple-email.png +0 -0
- package/screenshots/truth/actions/send_email/editor/with-expressions.png +0 -0
- package/screenshots/truth/actions/send_email/render/complex-business-email.png +0 -0
- package/screenshots/truth/actions/send_email/render/empty-body.png +0 -0
- package/screenshots/truth/actions/send_email/render/empty-subject.png +0 -0
- package/screenshots/truth/actions/send_email/render/long-subject.png +0 -0
- package/screenshots/truth/actions/send_email/render/multiline-body.png +0 -0
- package/screenshots/truth/actions/send_email/render/multiple-recipients.png +0 -0
- package/screenshots/truth/actions/send_email/render/simple-email.png +0 -0
- package/screenshots/truth/actions/send_email/render/with-expressions.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/long-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/multiline-text-with-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/simple-text.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/text-with-linebreaks.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/text-with-many-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/text-with-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/editor/text-without-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/render/long-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/render/multiline-text-with-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/render/simple-text.png +0 -0
- package/screenshots/truth/actions/send_msg/render/text-with-linebreaks.png +0 -0
- package/screenshots/truth/actions/send_msg/render/text-with-many-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/render/text-with-quick-replies.png +0 -0
- package/screenshots/truth/actions/send_msg/render/text-without-quick-replies.png +0 -0
- package/screenshots/truth/editor/router.png +0 -0
- package/screenshots/truth/editor/send_msg.png +0 -0
- package/screenshots/truth/editor/set_contact_language.png +0 -0
- package/screenshots/truth/editor/set_contact_name.png +0 -0
- package/screenshots/truth/editor/set_run_result.png +0 -0
- package/screenshots/truth/editor/wait.png +0 -0
- package/screenshots/truth/formfield/markdown-errors.png +0 -0
- package/screenshots/truth/formfield/plain-text-errors.png +0 -0
- package/screenshots/truth/formfield/widget-only-markdown-errors.png +0 -0
- package/screenshots/truth/integration/checkbox-markdown-errors.png +0 -0
- package/src/events.ts +1 -40
- package/src/flow/{EditorNode.ts → CanvasNode.ts} +424 -48
- package/src/flow/Editor.ts +140 -4
- package/src/flow/NodeEditor.ts +1454 -0
- package/src/flow/Plumber.ts +0 -9
- package/src/flow/actions/add_contact_groups.ts +42 -0
- package/src/flow/actions/add_contact_urn.ts +17 -0
- package/src/flow/actions/add_input_labels.ts +12 -0
- package/src/flow/actions/call_classifier.ts +12 -0
- package/src/flow/actions/call_llm.ts +12 -0
- package/src/flow/actions/call_resthook.ts +12 -0
- package/src/flow/actions/call_webhook.ts +133 -0
- package/src/flow/actions/enter_flow.ts +15 -0
- package/src/flow/actions/open_ticket.ts +12 -0
- package/src/flow/actions/play_audio.ts +12 -0
- package/src/flow/actions/remove_contact_groups.ts +66 -0
- package/src/flow/actions/request_optin.ts +12 -0
- package/src/flow/actions/say_msg.ts +12 -0
- package/src/flow/actions/send_broadcast.ts +35 -0
- package/src/flow/actions/send_email.ts +60 -0
- package/src/flow/actions/send_msg.ts +58 -0
- package/src/flow/actions/set_contact_channel.ts +13 -0
- package/src/flow/actions/set_contact_field.ts +13 -0
- package/src/flow/actions/set_contact_language.ts +11 -0
- package/src/flow/actions/set_contact_name.ts +11 -0
- package/src/flow/actions/set_contact_status.ts +11 -0
- package/src/flow/actions/set_run_result.ts +11 -0
- package/src/flow/actions/split_by_expression_example.ts +88 -0
- package/src/flow/actions/start_session.ts +12 -0
- package/src/flow/actions/transfer_airtime.ts +12 -0
- package/src/flow/config.ts +93 -232
- package/src/flow/nodes/execute_actions.ts +5 -0
- package/src/flow/nodes/split_by_airtime.ts +9 -0
- package/src/flow/nodes/split_by_contact_field.ts +7 -0
- package/src/flow/nodes/split_by_expression.ts +7 -0
- package/src/flow/nodes/split_by_groups.ts +7 -0
- package/src/flow/nodes/split_by_random.ts +10 -0
- package/src/flow/nodes/split_by_run_result.ts +7 -0
- package/src/flow/nodes/split_by_scheme.ts +7 -0
- package/src/flow/nodes/split_by_subflow.ts +9 -0
- package/src/flow/nodes/split_by_webhook.ts +19 -0
- package/src/flow/nodes/wait_for_audio.ts +7 -0
- package/src/flow/nodes/wait_for_digits.ts +7 -0
- package/src/flow/nodes/wait_for_image.ts +7 -0
- package/src/flow/nodes/wait_for_location.ts +7 -0
- package/src/flow/nodes/wait_for_menu.ts +7 -0
- package/src/flow/nodes/wait_for_response.ts +7 -0
- package/src/flow/nodes/wait_for_video.ts +7 -0
- package/src/flow/types.ts +352 -0
- package/src/flow/utils.ts +76 -0
- package/src/form/ArrayEditor.ts +240 -0
- package/src/form/BaseListEditor.ts +177 -0
- package/src/form/Checkbox.ts +22 -3
- package/src/form/Completion.ts +6 -0
- package/src/form/FormField.ts +115 -11
- package/src/form/KeyValueEditor.ts +251 -0
- package/src/form/select/Select.ts +105 -32
- package/src/interfaces.ts +7 -2
- package/src/live/ContactChat.ts +3 -97
- package/src/store/flow-definition.d.ts +6 -1
- package/static/api/contacts.json +30 -0
- package/static/api/groups.json +4 -426
- package/static/api/locations.json +24 -0
- package/static/api/media.json +5 -0
- package/static/api/optins.json +16 -0
- package/static/api/orgs.json +13 -0
- package/static/api/topics.json +21 -0
- package/static/api/users.json +26 -0
- package/static/css/temba-components.css +3 -6
- package/temba-modules.ts +9 -2
- package/test/ActionHelper.ts +142 -0
- package/test/actions/add_contact_groups.test.ts +89 -0
- package/test/actions/remove_contact_groups.test.ts +265 -0
- package/test/actions/send_email.test.ts +214 -0
- package/test/actions/send_msg.test.ts +130 -0
- package/test/temba-action-editing-integration.test.ts +240 -0
- package/test/temba-checkbox.test.ts +1 -1
- package/test/temba-field-config.test.ts +152 -0
- package/test/temba-flow-editor-node.test.ts +18 -18
- package/test/temba-node-editor.test.ts +353 -0
- package/test/temba-select.test.ts +234 -0
- package/test-assets/contacts/history.json +11 -33
- package/web-dev-server.config.mjs +34 -0
- package/.github/workflows/coverage.yml +0 -80
- package/demo/sticky-note-demo.html +0 -155
- package/out-tsc/src/flow/EditorNode.js.map +0 -1
- package/out-tsc/src/flow/render.js +0 -358
- package/out-tsc/src/flow/render.js.map +0 -1
- package/out-tsc/test/temba-flow-render.test.js +0 -794
- package/out-tsc/test/temba-flow-render.test.js.map +0 -1
- package/src/flow/render.ts +0 -443
- package/test/temba-flow-render.test.ts +0 -1003
|
@@ -1,196 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
// Re-export all types and utilities
|
|
2
|
+
export * from './types';
|
|
3
|
+
// Import all action configurations
|
|
4
|
+
import { add_input_labels } from './actions/add_input_labels';
|
|
5
|
+
import { add_contact_urn } from './actions/add_contact_urn';
|
|
6
|
+
import { set_contact_field } from './actions/set_contact_field';
|
|
7
|
+
import { set_contact_channel } from './actions/set_contact_channel';
|
|
8
|
+
import { set_contact_language } from './actions/set_contact_language';
|
|
9
|
+
import { set_contact_status } from './actions/set_contact_status';
|
|
10
|
+
import { send_broadcast } from './actions/send_broadcast';
|
|
11
|
+
import { set_run_result } from './actions/set_run_result';
|
|
12
|
+
import { send_msg } from './actions/send_msg';
|
|
13
|
+
import { send_email } from './actions/send_email';
|
|
14
|
+
import { start_session } from './actions/start_session';
|
|
15
|
+
import { open_ticket } from './actions/open_ticket';
|
|
16
|
+
import { call_webhook } from './actions/call_webhook';
|
|
17
|
+
import { call_classifier } from './actions/call_classifier';
|
|
18
|
+
import { call_resthook } from './actions/call_resthook';
|
|
19
|
+
import { call_llm } from './actions/call_llm';
|
|
20
|
+
import { transfer_airtime } from './actions/transfer_airtime';
|
|
21
|
+
import { set_contact_name } from './actions/set_contact_name';
|
|
22
|
+
import { add_contact_groups } from './actions/add_contact_groups';
|
|
23
|
+
import { remove_contact_groups } from './actions/remove_contact_groups';
|
|
24
|
+
import { request_optin } from './actions/request_optin';
|
|
25
|
+
import { say_msg } from './actions/say_msg';
|
|
26
|
+
import { play_audio } from './actions/play_audio';
|
|
27
|
+
import { enter_flow } from './actions/enter_flow';
|
|
28
|
+
// Import all node configurations
|
|
29
|
+
import { execute_actions } from './nodes/execute_actions';
|
|
30
|
+
import { split_by_airtime } from './nodes/split_by_airtime';
|
|
31
|
+
import { split_by_contact_field } from './nodes/split_by_contact_field';
|
|
32
|
+
import { split_by_expression } from './nodes/split_by_expression';
|
|
33
|
+
import { split_by_groups } from './nodes/split_by_groups';
|
|
34
|
+
import { split_by_random } from './nodes/split_by_random';
|
|
35
|
+
import { split_by_run_result } from './nodes/split_by_run_result';
|
|
36
|
+
import { split_by_scheme } from './nodes/split_by_scheme';
|
|
37
|
+
import { split_by_subflow } from './nodes/split_by_subflow';
|
|
38
|
+
import { split_by_webhook } from './nodes/split_by_webhook';
|
|
39
|
+
import { wait_for_audio } from './nodes/wait_for_audio';
|
|
40
|
+
import { wait_for_digits } from './nodes/wait_for_digits';
|
|
41
|
+
import { wait_for_image } from './nodes/wait_for_image';
|
|
42
|
+
import { wait_for_location } from './nodes/wait_for_location';
|
|
43
|
+
import { wait_for_menu } from './nodes/wait_for_menu';
|
|
44
|
+
import { wait_for_response } from './nodes/wait_for_response';
|
|
45
|
+
import { wait_for_video } from './nodes/wait_for_video';
|
|
46
|
+
export const ACTION_CONFIG = {
|
|
47
|
+
add_input_labels,
|
|
48
|
+
add_contact_urn,
|
|
49
|
+
set_contact_field,
|
|
50
|
+
set_contact_channel,
|
|
51
|
+
set_contact_language,
|
|
52
|
+
set_contact_status,
|
|
53
|
+
send_broadcast,
|
|
54
|
+
set_run_result,
|
|
55
|
+
send_msg,
|
|
56
|
+
send_email,
|
|
57
|
+
start_session,
|
|
58
|
+
open_ticket,
|
|
59
|
+
call_webhook,
|
|
60
|
+
call_classifier,
|
|
61
|
+
call_resthook,
|
|
62
|
+
call_llm,
|
|
63
|
+
enter_flow,
|
|
64
|
+
transfer_airtime,
|
|
65
|
+
set_contact_name,
|
|
66
|
+
add_contact_groups,
|
|
67
|
+
remove_contact_groups,
|
|
68
|
+
request_optin,
|
|
69
|
+
say_msg,
|
|
70
|
+
play_audio
|
|
14
71
|
};
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color: COLORS.update,
|
|
34
|
-
render: renderSetContactChannel
|
|
35
|
-
},
|
|
36
|
-
set_contact_language: {
|
|
37
|
-
name: 'Update Contact Language',
|
|
38
|
-
color: COLORS.update,
|
|
39
|
-
render: renderSetContactLanguage
|
|
40
|
-
},
|
|
41
|
-
set_contact_status: {
|
|
42
|
-
name: 'Update Contact Status',
|
|
43
|
-
color: COLORS.update,
|
|
44
|
-
render: renderSetContactStatus
|
|
45
|
-
},
|
|
46
|
-
send_broadcast: {
|
|
47
|
-
name: 'Send Broadcast',
|
|
48
|
-
color: COLORS.broadcast,
|
|
49
|
-
render: renderSendBroadcast
|
|
50
|
-
},
|
|
51
|
-
set_run_result: {
|
|
52
|
-
name: 'Save Flow Result',
|
|
53
|
-
color: COLORS.save,
|
|
54
|
-
render: renderSetRunResult
|
|
55
|
-
},
|
|
56
|
-
send_msg: {
|
|
57
|
-
name: 'Send Message',
|
|
58
|
-
color: COLORS.send,
|
|
59
|
-
render: renderSendMsg
|
|
60
|
-
},
|
|
61
|
-
send_email: {
|
|
62
|
-
name: 'Send Email',
|
|
63
|
-
color: COLORS.broadcast,
|
|
64
|
-
render: renderSendEmail
|
|
65
|
-
},
|
|
66
|
-
start_session: {
|
|
67
|
-
name: 'Start Somebody Else',
|
|
68
|
-
color: COLORS.broadcast,
|
|
69
|
-
render: renderStartSession
|
|
70
|
-
},
|
|
71
|
-
open_ticket: {
|
|
72
|
-
name: 'Open Ticket',
|
|
73
|
-
color: COLORS.execute,
|
|
74
|
-
render: renderOpenTicket
|
|
75
|
-
},
|
|
76
|
-
call_webhook: {
|
|
77
|
-
name: 'Call Webhook',
|
|
78
|
-
color: COLORS.call,
|
|
79
|
-
render: renderCallWebhook
|
|
80
|
-
},
|
|
81
|
-
call_classifier: {
|
|
82
|
-
name: 'Call Classifier',
|
|
83
|
-
color: COLORS.call,
|
|
84
|
-
render: renderCallClassifier
|
|
85
|
-
},
|
|
86
|
-
call_resthook: {
|
|
87
|
-
name: 'Call Resthook',
|
|
88
|
-
color: COLORS.call,
|
|
89
|
-
render: renderCallResthook
|
|
90
|
-
},
|
|
91
|
-
call_llm: {
|
|
92
|
-
name: 'Call AI',
|
|
93
|
-
color: COLORS.call,
|
|
94
|
-
render: renderCallLLM
|
|
95
|
-
},
|
|
96
|
-
enter_flow: {
|
|
97
|
-
name: 'Enter Subflow',
|
|
98
|
-
color: COLORS.execute,
|
|
99
|
-
render: renderEnterFlow
|
|
100
|
-
},
|
|
101
|
-
transfer_airtime: {
|
|
102
|
-
name: 'Send Airtime',
|
|
103
|
-
color: COLORS.call,
|
|
104
|
-
render: renderTransferAirtime
|
|
105
|
-
},
|
|
106
|
-
wait_for_response: {
|
|
107
|
-
name: 'Wait for Response',
|
|
108
|
-
color: COLORS.wait,
|
|
109
|
-
render: renderWaitForResponse
|
|
110
|
-
},
|
|
111
|
-
wait_for_menu: {
|
|
112
|
-
name: 'Wait for Menu Selection',
|
|
113
|
-
color: COLORS.wait,
|
|
114
|
-
render: renderWaitForMenu
|
|
115
|
-
},
|
|
116
|
-
wait_for_digits: {
|
|
117
|
-
name: 'Wait for Digits',
|
|
118
|
-
color: COLORS.wait,
|
|
119
|
-
render: renderWaitForDigits
|
|
120
|
-
},
|
|
121
|
-
wait_for_audio: {
|
|
122
|
-
name: 'Wait for Audio',
|
|
123
|
-
color: COLORS.wait,
|
|
124
|
-
render: renderWaitForAudio
|
|
125
|
-
},
|
|
126
|
-
wait_for_video: {
|
|
127
|
-
name: 'Wait for Video',
|
|
128
|
-
color: COLORS.wait,
|
|
129
|
-
render: renderWaitForVideo
|
|
130
|
-
},
|
|
131
|
-
wait_for_image: {
|
|
132
|
-
name: 'Wait for Image',
|
|
133
|
-
color: COLORS.wait,
|
|
134
|
-
render: renderWaitForImage
|
|
135
|
-
},
|
|
136
|
-
wait_for_location: {
|
|
137
|
-
name: 'Wait for Location',
|
|
138
|
-
color: COLORS.wait,
|
|
139
|
-
render: renderWaitForLocation
|
|
140
|
-
},
|
|
141
|
-
set_contact_name: {
|
|
142
|
-
name: 'Update Contact',
|
|
143
|
-
color: '#01c1af',
|
|
144
|
-
render: renderSetContactName
|
|
145
|
-
},
|
|
146
|
-
add_contact_groups: {
|
|
147
|
-
name: 'Add to Group',
|
|
148
|
-
color: COLORS.add,
|
|
149
|
-
render: renderAddToGroups
|
|
150
|
-
},
|
|
151
|
-
remove_contact_groups: {
|
|
152
|
-
name: 'Remove from Group',
|
|
153
|
-
color: COLORS.remove,
|
|
154
|
-
render: renderRemoveFromGroups
|
|
155
|
-
},
|
|
156
|
-
request_optin: {
|
|
157
|
-
name: 'Request Opt-in',
|
|
158
|
-
color: COLORS.send,
|
|
159
|
-
render: renderRequestOptin
|
|
160
|
-
},
|
|
161
|
-
say_msg: {
|
|
162
|
-
name: 'Say Message',
|
|
163
|
-
color: COLORS.send,
|
|
164
|
-
render: renderSayMsg
|
|
165
|
-
},
|
|
166
|
-
play_audio: {
|
|
167
|
-
name: 'Play Audio',
|
|
168
|
-
color: COLORS.send,
|
|
169
|
-
render: renderPlayAudio
|
|
170
|
-
},
|
|
171
|
-
split_by_run_result: {
|
|
172
|
-
name: 'Split by Flow Result',
|
|
173
|
-
color: COLORS.split
|
|
174
|
-
},
|
|
175
|
-
split_by_expression: {
|
|
176
|
-
name: 'Split by Expression',
|
|
177
|
-
color: COLORS.split
|
|
178
|
-
},
|
|
179
|
-
split_by_contact_field: {
|
|
180
|
-
name: 'Split by <Contact Field Name>',
|
|
181
|
-
color: COLORS.split
|
|
182
|
-
},
|
|
183
|
-
split_by_groups: {
|
|
184
|
-
name: 'Split by Group',
|
|
185
|
-
color: COLORS.split
|
|
186
|
-
},
|
|
187
|
-
split_by_scheme: {
|
|
188
|
-
name: 'Split by URN Type',
|
|
189
|
-
color: COLORS.split
|
|
190
|
-
},
|
|
191
|
-
split_by_random: {
|
|
192
|
-
name: 'Split by Random',
|
|
193
|
-
color: COLORS.split
|
|
194
|
-
}
|
|
72
|
+
export const NODE_CONFIG = {
|
|
73
|
+
execute_actions,
|
|
74
|
+
split_by_airtime,
|
|
75
|
+
split_by_contact_field,
|
|
76
|
+
split_by_expression,
|
|
77
|
+
split_by_groups,
|
|
78
|
+
split_by_random,
|
|
79
|
+
split_by_run_result,
|
|
80
|
+
split_by_scheme,
|
|
81
|
+
split_by_subflow,
|
|
82
|
+
split_by_webhook,
|
|
83
|
+
wait_for_audio,
|
|
84
|
+
wait_for_digits,
|
|
85
|
+
wait_for_image,
|
|
86
|
+
wait_for_location,
|
|
87
|
+
wait_for_menu,
|
|
88
|
+
wait_for_response,
|
|
89
|
+
wait_for_video
|
|
195
90
|
};
|
|
196
91
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/flow/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/flow/config.ts"],"names":[],"mappings":"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","sourcesContent":["// Re-export all types and utilities\nexport * from './types';\nimport type { ActionConfig, NodeConfig } from './types';\n\n// Import all action configurations\nimport { add_input_labels } from './actions/add_input_labels';\nimport { add_contact_urn } from './actions/add_contact_urn';\nimport { set_contact_field } from './actions/set_contact_field';\nimport { set_contact_channel } from './actions/set_contact_channel';\nimport { set_contact_language } from './actions/set_contact_language';\nimport { set_contact_status } from './actions/set_contact_status';\nimport { send_broadcast } from './actions/send_broadcast';\nimport { set_run_result } from './actions/set_run_result';\nimport { send_msg } from './actions/send_msg';\nimport { send_email } from './actions/send_email';\nimport { start_session } from './actions/start_session';\nimport { open_ticket } from './actions/open_ticket';\nimport { call_webhook } from './actions/call_webhook';\nimport { call_classifier } from './actions/call_classifier';\nimport { call_resthook } from './actions/call_resthook';\nimport { call_llm } from './actions/call_llm';\nimport { transfer_airtime } from './actions/transfer_airtime';\nimport { set_contact_name } from './actions/set_contact_name';\nimport { add_contact_groups } from './actions/add_contact_groups';\nimport { remove_contact_groups } from './actions/remove_contact_groups';\nimport { request_optin } from './actions/request_optin';\nimport { say_msg } from './actions/say_msg';\nimport { play_audio } from './actions/play_audio';\nimport { enter_flow } from './actions/enter_flow';\n\n// Import all node configurations\nimport { execute_actions } from './nodes/execute_actions';\nimport { split_by_airtime } from './nodes/split_by_airtime';\nimport { split_by_contact_field } from './nodes/split_by_contact_field';\nimport { split_by_expression } from './nodes/split_by_expression';\nimport { split_by_groups } from './nodes/split_by_groups';\nimport { split_by_random } from './nodes/split_by_random';\nimport { split_by_run_result } from './nodes/split_by_run_result';\nimport { split_by_scheme } from './nodes/split_by_scheme';\nimport { split_by_subflow } from './nodes/split_by_subflow';\nimport { split_by_webhook } from './nodes/split_by_webhook';\nimport { wait_for_audio } from './nodes/wait_for_audio';\nimport { wait_for_digits } from './nodes/wait_for_digits';\nimport { wait_for_image } from './nodes/wait_for_image';\nimport { wait_for_location } from './nodes/wait_for_location';\nimport { wait_for_menu } from './nodes/wait_for_menu';\nimport { wait_for_response } from './nodes/wait_for_response';\nimport { wait_for_video } from './nodes/wait_for_video';\n\nexport const ACTION_CONFIG: {\n [key: string]: ActionConfig;\n} = {\n add_input_labels,\n add_contact_urn,\n set_contact_field,\n set_contact_channel,\n set_contact_language,\n set_contact_status,\n send_broadcast,\n set_run_result,\n send_msg,\n send_email,\n start_session,\n open_ticket,\n call_webhook,\n call_classifier,\n call_resthook,\n call_llm,\n enter_flow,\n transfer_airtime,\n set_contact_name,\n add_contact_groups,\n remove_contact_groups,\n request_optin,\n say_msg,\n play_audio\n};\n\nexport const NODE_CONFIG: {\n [key: string]: NodeConfig;\n} = {\n execute_actions,\n split_by_airtime,\n split_by_contact_field,\n split_by_expression,\n split_by_groups,\n split_by_random,\n split_by_run_result,\n split_by_scheme,\n split_by_subflow,\n split_by_webhook,\n wait_for_audio,\n wait_for_digits,\n wait_for_image,\n wait_for_location,\n wait_for_menu,\n wait_for_response,\n wait_for_video\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute_actions.js","sourceRoot":"","sources":["../../../../src/flow/nodes/execute_actions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAe;IACzC,IAAI,EAAE,iBAAiB;CACxB,CAAC","sourcesContent":["import { NodeConfig } from '../types';\n\nexport const execute_actions: NodeConfig = {\n type: 'execute_actions'\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { transfer_airtime } from '../actions/transfer_airtime';
|
|
2
|
+
import { COLORS } from '../types';
|
|
3
|
+
export const split_by_airtime = {
|
|
4
|
+
type: 'split_by_airtime',
|
|
5
|
+
name: 'Split by Airtime Transfer',
|
|
6
|
+
color: COLORS.send,
|
|
7
|
+
action: transfer_airtime
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=split_by_airtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_airtime.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_airtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,MAAM,CAAC,IAAI;IAClB,MAAM,EAAE,gBAAgB;CACzB,CAAC","sourcesContent":["import { transfer_airtime } from '../actions/transfer_airtime';\nimport { COLORS, NodeConfig } from '../types';\n\nexport const split_by_airtime: NodeConfig = {\n type: 'split_by_airtime',\n name: 'Split by Airtime Transfer',\n color: COLORS.send,\n action: transfer_airtime\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_contact_field.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_contact_field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAe;IAChD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,+BAA+B;IACrC,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_contact_field: NodeConfig = {\n type: 'split_by_contact_field',\n name: 'Split by <Contact Field Name>',\n color: COLORS.split\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_expression.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_expression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_expression: NodeConfig = {\n type: 'split_by_expression',\n name: 'Split by Expression',\n color: COLORS.split\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_groups.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAe;IACzC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_groups: NodeConfig = {\n type: 'split_by_groups',\n name: 'Split by Group',\n color: COLORS.split\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_random.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_random.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAe;IACzC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC,KAAK;IACnB,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;KACf;CACF,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_random: NodeConfig = {\n type: 'split_by_random',\n name: 'Split by Random',\n color: COLORS.split,\n router: {\n type: 'random'\n }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_run_result.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_run_result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_run_result: NodeConfig = {\n type: 'split_by_run_result',\n name: 'Split by Flow Result',\n color: COLORS.split\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_scheme.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAe;IACzC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const split_by_scheme: NodeConfig = {\n type: 'split_by_scheme',\n name: 'Split by URN Type',\n color: COLORS.split\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { enter_flow } from '../actions/enter_flow';
|
|
2
|
+
import { COLORS } from '../types';
|
|
3
|
+
export const split_by_subflow = {
|
|
4
|
+
type: 'split_by_subflow',
|
|
5
|
+
name: 'Split by Subflow',
|
|
6
|
+
color: COLORS.execute,
|
|
7
|
+
action: enter_flow
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=split_by_subflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_subflow.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_subflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,MAAM,CAAC,OAAO;IACrB,MAAM,EAAE,UAAU;CACnB,CAAC","sourcesContent":["import { enter_flow } from '../actions/enter_flow';\nimport { COLORS, NodeConfig } from '../types';\n\nexport const split_by_subflow: NodeConfig = {\n type: 'split_by_subflow',\n name: 'Split by Subflow',\n color: COLORS.execute,\n action: enter_flow\n};\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { call_webhook } from '../actions/call_webhook';
|
|
2
|
+
export const split_by_webhook = {
|
|
3
|
+
type: 'split_by_webhook',
|
|
4
|
+
action: call_webhook,
|
|
5
|
+
router: {
|
|
6
|
+
type: 'switch',
|
|
7
|
+
defaultCategory: 'Failure',
|
|
8
|
+
operand: '@webhook.status',
|
|
9
|
+
rules: [
|
|
10
|
+
{
|
|
11
|
+
type: 'has_number_between',
|
|
12
|
+
arguments: ['200', '299'],
|
|
13
|
+
categoryName: 'Success'
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=split_by_webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split_by_webhook.js","sourceRoot":"","sources":["../../../../src/flow/nodes/split_by_webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,MAAM,CAAC,MAAM,gBAAgB,GAAe;IAC1C,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,SAAS;QAC1B,OAAO,EAAE,iBAAiB;QAC1B,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;gBACzB,YAAY,EAAE,SAAS;aACxB;SACF;KACF;CACF,CAAC","sourcesContent":["import { call_webhook } from '../actions/call_webhook';\nimport { NodeConfig } from '../types';\n\nexport const split_by_webhook: NodeConfig = {\n type: 'split_by_webhook',\n action: call_webhook,\n router: {\n type: 'switch',\n defaultCategory: 'Failure',\n operand: '@webhook.status',\n rules: [\n {\n type: 'has_number_between',\n arguments: ['200', '299'],\n categoryName: 'Success'\n }\n ]\n }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_audio.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_audio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_audio: NodeConfig = {\n type: 'wait_for_audio',\n name: 'Wait for Audio',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_digits.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_digits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAe;IACzC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_digits: NodeConfig = {\n type: 'wait_for_digits',\n name: 'Wait for Digits',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_image.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_image: NodeConfig = {\n type: 'wait_for_image',\n name: 'Wait for Image',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_location.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAAe;IAC3C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_location: NodeConfig = {\n type: 'wait_for_location',\n name: 'Wait for Location',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_menu.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_menu: NodeConfig = {\n type: 'wait_for_menu',\n name: 'Wait for Menu Selection',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_response.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAAe;IAC3C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_response: NodeConfig = {\n type: 'wait_for_response',\n name: 'Wait for Response',\n color: COLORS.wait\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_video.js","sourceRoot":"","sources":["../../../../src/flow/nodes/wait_for_video.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC,IAAI;CACnB,CAAC","sourcesContent":["import { COLORS, NodeConfig } from '../types';\n\nexport const wait_for_video: NodeConfig = {\n type: 'wait_for_video',\n name: 'Wait for Video',\n color: COLORS.wait\n};\n"]}
|