@voiceflow/base-types 2.2.0 → 2.3.0
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/build/{button → common/button}/index.d.ts +0 -0
- package/build/{button → common/button}/index.js +0 -0
- package/build/common/button/index.js.map +1 -0
- package/build/{index.d.ts → common/index.d.ts} +0 -0
- package/build/{index.js → common/index.js} +0 -0
- package/build/common/index.js.map +1 -0
- package/build/{models → common/models}/apiKey.d.ts +0 -0
- package/build/{models → common/models}/apiKey.js +0 -0
- package/build/{models → common/models}/apiKey.js.map +1 -1
- package/build/{models → common/models}/diagram.d.ts +0 -0
- package/build/{models → common/models}/diagram.js +0 -0
- package/build/common/models/diagram.js.map +1 -0
- package/build/{models → common/models}/index.d.ts +0 -0
- package/build/{models → common/models}/index.js +0 -0
- package/build/common/models/index.js.map +1 -0
- package/build/{models → common/models}/member.d.ts +0 -0
- package/build/{models → common/models}/member.js +0 -0
- package/build/{models → common/models}/member.js.map +1 -1
- package/build/{models → common/models}/program.d.ts +0 -0
- package/build/{models → common/models}/program.js +0 -0
- package/build/{models → common/models}/program.js.map +1 -1
- package/build/{models → common/models}/project.d.ts +0 -0
- package/build/{models → common/models}/project.js +0 -0
- package/build/common/models/project.js.map +1 -0
- package/build/{models → common/models}/shared.d.ts +0 -0
- package/build/{models → common/models}/shared.js +0 -0
- package/build/common/models/shared.js.map +1 -0
- package/build/{models → common/models}/version.d.ts +0 -0
- package/build/{models → common/models}/version.js +0 -0
- package/build/common/models/version.js.map +1 -0
- package/build/{node → common/node}/_v1.d.ts +0 -0
- package/build/{node → common/node}/_v1.js +0 -0
- package/build/common/node/_v1.js.map +1 -0
- package/build/{node → common/node}/api.d.ts +0 -0
- package/build/{node → common/node}/api.js +0 -0
- package/build/common/node/api.js.map +1 -0
- package/build/{node → common/node}/buttons.d.ts +2 -1
- package/build/{node → common/node}/buttons.js +0 -0
- package/build/common/node/buttons.js.map +1 -0
- package/build/{node → common/node}/capture.d.ts +3 -1
- package/build/{node → common/node}/capture.js +0 -0
- package/build/{node → common/node}/capture.js.map +1 -1
- package/build/{node → common/node}/card.d.ts +0 -0
- package/build/{node → common/node}/card.js +0 -0
- package/build/common/node/card.js.map +1 -0
- package/build/{node → common/node}/code.d.ts +0 -0
- package/build/{node → common/node}/code.js +0 -0
- package/build/{node → common/node}/code.js.map +1 -1
- package/build/{node → common/node}/component.d.ts +0 -0
- package/build/{node → common/node}/component.js +0 -0
- package/build/{node → common/node}/component.js.map +1 -1
- package/build/{node → common/node}/constants.d.ts +0 -0
- package/build/{node → common/node}/constants.js +0 -0
- package/build/common/node/constants.js.map +1 -0
- package/build/{node → common/node}/directive.d.ts +0 -0
- package/build/{node → common/node}/directive.js +0 -0
- package/build/{node → common/node}/directive.js.map +1 -1
- package/build/{node → common/node}/exit.d.ts +0 -0
- package/build/{node → common/node}/exit.js +0 -0
- package/build/{node → common/node}/exit.js.map +1 -1
- package/build/{node → common/node}/flow.d.ts +0 -0
- package/build/{node → common/node}/flow.js +0 -0
- package/build/{node → common/node}/flow.js.map +1 -1
- package/build/{node → common/node}/general.d.ts +0 -0
- package/build/{node → common/node}/general.js +0 -0
- package/build/{node → common/node}/general.js.map +1 -1
- package/build/{node → common/node}/googleSheets.d.ts +0 -0
- package/build/{node → common/node}/googleSheets.js +0 -0
- package/build/common/node/googleSheets.js.map +1 -0
- package/build/{node → common/node}/if.d.ts +0 -0
- package/build/{node → common/node}/if.js +0 -0
- package/build/common/node/if.js.map +1 -0
- package/build/{node → common/node}/ifV2.d.ts +0 -0
- package/build/{node → common/node}/ifV2.js +0 -0
- package/build/common/node/ifV2.js.map +1 -0
- package/build/{node → common/node}/index.d.ts +0 -0
- package/build/{node → common/node}/index.js +0 -0
- package/build/common/node/index.js.map +1 -0
- package/build/{node → common/node}/integration.d.ts +0 -0
- package/build/{node → common/node}/integration.js +0 -0
- package/build/{node → common/node}/integration.js.map +1 -1
- package/build/{node → common/node}/interaction.d.ts +6 -2
- package/build/{node → common/node}/interaction.js +0 -0
- package/build/common/node/interaction.js.map +1 -0
- package/build/{node → common/node}/jump.d.ts +0 -0
- package/build/{node → common/node}/jump.js +0 -0
- package/build/common/node/jump.js.map +1 -0
- package/build/{node → common/node}/prompt.d.ts +3 -1
- package/build/{node → common/node}/prompt.js +0 -0
- package/build/{node → common/node}/prompt.js.map +1 -1
- package/build/{node → common/node}/push.d.ts +0 -0
- package/build/{node → common/node}/push.js +0 -0
- package/build/{node → common/node}/push.js.map +1 -1
- package/build/{node → common/node}/random.d.ts +0 -0
- package/build/{node → common/node}/random.js +0 -0
- package/build/common/node/random.js.map +1 -0
- package/build/{node → common/node}/set.d.ts +0 -0
- package/build/{node → common/node}/set.js +0 -0
- package/build/common/node/set.js.map +1 -0
- package/build/{node → common/node}/setV2.d.ts +0 -0
- package/build/{node → common/node}/setV2.js +0 -0
- package/build/{node → common/node}/setV2.js.map +1 -1
- package/build/{node → common/node}/speak.d.ts +0 -0
- package/build/{node → common/node}/speak.js +0 -0
- package/build/common/node/speak.js.map +1 -0
- package/build/{node → common/node}/start.d.ts +0 -0
- package/build/{node → common/node}/start.js +0 -0
- package/build/{node → common/node}/start.js.map +1 -1
- package/build/{node → common/node}/stream.d.ts +0 -0
- package/build/{node → common/node}/stream.js +0 -0
- package/build/common/node/stream.js.map +1 -0
- package/build/{node → common/node}/text.d.ts +0 -0
- package/build/{node → common/node}/text.js +0 -0
- package/build/{node → common/node}/text.js.map +1 -1
- package/build/{node → common/node}/utils/base.d.ts +0 -0
- package/build/{node → common/node}/utils/base.js +0 -0
- package/build/{node → common/node}/utils/base.js.map +1 -1
- package/build/{node → common/node}/utils/canvasNodeVisibility.d.ts +0 -0
- package/build/{node → common/node}/utils/canvasNodeVisibility.js +0 -0
- package/build/common/node/utils/canvasNodeVisibility.js.map +1 -0
- package/build/{node → common/node}/utils/command.d.ts +0 -0
- package/build/{node → common/node}/utils/command.js +0 -0
- package/build/common/node/utils/command.js.map +1 -0
- package/build/{node → common/node}/utils/event.d.ts +4 -3
- package/build/{node → common/node}/utils/event.js +0 -0
- package/build/common/node/utils/event.js.map +1 -0
- package/build/{node → common/node}/utils/expression.d.ts +0 -0
- package/build/{node → common/node}/utils/expression.js +0 -0
- package/build/common/node/utils/expression.js.map +1 -0
- package/build/{node → common/node}/utils/index.d.ts +1 -1
- package/build/{node → common/node}/utils/index.js +1 -1
- package/build/common/node/utils/index.js.map +1 -0
- package/build/{node → common/node}/utils/integration.d.ts +0 -0
- package/build/{node → common/node}/utils/integration.js +0 -0
- package/build/common/node/utils/integration.js.map +1 -0
- package/build/{node → common/node}/utils/mappings.d.ts +0 -0
- package/build/{node → common/node}/utils/mappings.js +0 -0
- package/build/{node → common/node}/utils/mappings.js.map +1 -1
- package/build/common/node/utils/noMatch.d.ts +49 -0
- package/build/{node → common/node}/utils/noMatch.js +2 -1
- package/build/common/node/utils/noMatch.js.map +1 -0
- package/build/common/node/utils/noReply.d.ts +41 -0
- package/build/common/node/utils/noReply.js +9 -0
- package/build/common/node/utils/noReply.js.map +1 -0
- package/build/{node → common/node}/utils/trace.d.ts +2 -1
- package/build/{node → common/node}/utils/trace.js +2 -1
- package/build/common/node/utils/trace.js.map +1 -0
- package/build/{node → common/node}/visual.d.ts +0 -0
- package/build/{node → common/node}/visual.js +0 -0
- package/build/common/node/visual.js.map +1 -0
- package/build/{node → common/node}/zapier.d.ts +0 -0
- package/build/{node → common/node}/zapier.js +0 -0
- package/build/common/node/zapier.js.map +1 -0
- package/build/{project → common/project}/index.d.ts +0 -0
- package/build/{project → common/project}/index.js +0 -0
- package/build/common/project/index.js.map +1 -0
- package/build/{request → common/request}/action.d.ts +0 -0
- package/build/{request → common/request}/action.js +0 -0
- package/build/common/request/action.js.map +1 -0
- package/build/{request → common/request}/index.d.ts +0 -0
- package/build/{request → common/request}/index.js +0 -0
- package/build/common/request/index.js.map +1 -0
- package/build/{text → common/text}/index.d.ts +0 -0
- package/build/{text → common/text}/index.js +0 -0
- package/build/common/text/index.js.map +1 -0
- package/build/{trace → common/trace}/index.d.ts +7 -1
- package/build/{trace → common/trace}/index.js +0 -0
- package/build/{trace → common/trace}/index.js.map +1 -1
- package/build/{utils.d.ts → common/utils.d.ts} +0 -0
- package/build/{utils.js → common/utils.js} +0 -0
- package/build/common/utils.js.map +1 -0
- package/build/{version → common/version}/index.d.ts +0 -0
- package/build/{version → common/version}/index.js +0 -0
- package/build/common/version/index.js.map +1 -0
- package/build/{version → common/version}/settings.d.ts +0 -0
- package/build/{version → common/version}/settings.js +0 -0
- package/build/common/version/settings.js.map +1 -0
- package/build/esm/button/index.d.ts +35 -0
- package/build/esm/button/index.js +10 -0
- package/build/esm/button/index.js.map +1 -0
- package/build/esm/index.d.ts +9 -0
- package/build/esm/index.js +10 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/models/apiKey.d.ts +11 -0
- package/build/esm/models/apiKey.js +2 -0
- package/build/esm/models/apiKey.js.map +1 -0
- package/build/esm/models/diagram.d.ts +21 -0
- package/build/esm/models/diagram.js +7 -0
- package/build/esm/models/diagram.js.map +1 -0
- package/build/esm/models/index.d.ts +7 -0
- package/build/esm/models/index.js +8 -0
- package/build/esm/models/index.js.map +1 -0
- package/build/esm/models/member.d.ts +5 -0
- package/build/esm/models/member.js +2 -0
- package/build/esm/models/member.js.map +1 -0
- package/build/esm/models/program.d.ts +10 -0
- package/build/esm/models/program.js +2 -0
- package/build/esm/models/program.js.map +1 -0
- package/build/esm/models/project.d.ts +49 -0
- package/build/esm/models/project.js +15 -0
- package/build/esm/models/project.js.map +1 -0
- package/build/esm/models/shared.d.ts +118 -0
- package/build/esm/models/shared.js +10 -0
- package/build/esm/models/shared.js.map +1 -0
- package/build/esm/models/version.d.ts +78 -0
- package/build/esm/models/version.js +6 -0
- package/build/esm/models/version.js.map +1 -0
- package/build/esm/node/_v1.d.ts +26 -0
- package/build/esm/node/_v1.js +3 -0
- package/build/esm/node/_v1.js.map +1 -0
- package/build/esm/node/api.d.ts +60 -0
- package/build/esm/node/api.js +23 -0
- package/build/esm/node/api.js.map +1 -0
- package/build/esm/node/buttons.d.ts +23 -0
- package/build/esm/node/buttons.js +7 -0
- package/build/esm/node/buttons.js.map +1 -0
- package/build/esm/node/capture.d.ts +17 -0
- package/build/esm/node/capture.js +2 -0
- package/build/esm/node/capture.js.map +1 -0
- package/build/esm/node/card.d.ts +25 -0
- package/build/esm/node/card.js +6 -0
- package/build/esm/node/card.js.map +1 -0
- package/build/esm/node/code.d.ts +12 -0
- package/build/esm/node/code.js +2 -0
- package/build/esm/node/code.js.map +1 -0
- package/build/esm/node/component.d.ts +7 -0
- package/build/esm/node/component.js +2 -0
- package/build/esm/node/component.js.map +1 -0
- package/build/esm/node/constants.d.ts +31 -0
- package/build/esm/node/constants.js +37 -0
- package/build/esm/node/constants.js.map +1 -0
- package/build/esm/node/directive.d.ts +12 -0
- package/build/esm/node/directive.js +2 -0
- package/build/esm/node/directive.js.map +1 -0
- package/build/esm/node/exit.d.ts +17 -0
- package/build/esm/node/exit.js +2 -0
- package/build/esm/node/exit.js.map +1 -0
- package/build/esm/node/flow.d.ts +26 -0
- package/build/esm/node/flow.js +2 -0
- package/build/esm/node/flow.js.map +1 -0
- package/build/esm/node/general.d.ts +14 -0
- package/build/esm/node/general.js +2 -0
- package/build/esm/node/general.js.map +1 -0
- package/build/esm/node/googleSheets.d.ts +58 -0
- package/build/esm/node/googleSheets.js +8 -0
- package/build/esm/node/googleSheets.js.map +1 -0
- package/build/esm/node/if.d.ts +12 -0
- package/build/esm/node/if.js +2 -0
- package/build/esm/node/if.js.map +1 -0
- package/build/esm/node/ifV2.d.ts +26 -0
- package/build/esm/node/ifV2.js +6 -0
- package/build/esm/node/ifV2.js.map +1 -0
- package/build/esm/node/index.d.ts +51 -0
- package/build/esm/node/index.js +31 -0
- package/build/esm/node/index.js.map +1 -0
- package/build/esm/node/integration.d.ts +15 -0
- package/build/esm/node/integration.js +2 -0
- package/build/esm/node/integration.js.map +1 -0
- package/build/esm/node/interaction.d.ts +40 -0
- package/build/esm/node/interaction.js +6 -0
- package/build/esm/node/interaction.js.map +1 -0
- package/build/esm/node/jump.d.ts +24 -0
- package/build/esm/node/jump.js +6 -0
- package/build/esm/node/jump.js.map +1 -0
- package/build/esm/node/prompt.d.ts +10 -0
- package/build/esm/node/prompt.js +2 -0
- package/build/esm/node/prompt.js.map +1 -0
- package/build/esm/node/push.d.ts +22 -0
- package/build/esm/node/push.js +2 -0
- package/build/esm/node/push.js.map +1 -0
- package/build/esm/node/random.d.ts +17 -0
- package/build/esm/node/random.js +6 -0
- package/build/esm/node/random.js.map +1 -0
- package/build/esm/node/set.d.ts +21 -0
- package/build/esm/node/set.js +2 -0
- package/build/esm/node/set.js.map +1 -0
- package/build/esm/node/setV2.d.ts +23 -0
- package/build/esm/node/setV2.js +2 -0
- package/build/esm/node/setV2.js.map +1 -0
- package/build/esm/node/speak.d.ts +34 -0
- package/build/esm/node/speak.js +7 -0
- package/build/esm/node/speak.js.map +1 -0
- package/build/esm/node/start.d.ts +12 -0
- package/build/esm/node/start.js +2 -0
- package/build/esm/node/start.js.map +1 -0
- package/build/esm/node/stream.d.ts +31 -0
- package/build/esm/node/stream.js +7 -0
- package/build/esm/node/stream.js.map +1 -0
- package/build/esm/node/text.d.ts +23 -0
- package/build/esm/node/text.js +2 -0
- package/build/esm/node/text.js.map +1 -0
- package/build/esm/node/utils/base.d.ts +22 -0
- package/build/esm/node/utils/base.js +2 -0
- package/build/esm/node/utils/base.js.map +1 -0
- package/build/esm/node/utils/canvasNodeVisibility.d.ts +7 -0
- package/build/esm/node/utils/canvasNodeVisibility.js +6 -0
- package/build/esm/node/utils/canvasNodeVisibility.js.map +1 -0
- package/build/esm/node/utils/command.d.ts +21 -0
- package/build/esm/node/utils/command.js +7 -0
- package/build/esm/node/utils/command.js.map +1 -0
- package/build/esm/node/utils/event.d.ts +29 -0
- package/build/esm/node/utils/event.js +9 -0
- package/build/esm/node/utils/event.js.map +1 -0
- package/build/esm/node/utils/expression.d.ts +92 -0
- package/build/esm/node/utils/expression.js +47 -0
- package/build/esm/node/utils/expression.js.map +1 -0
- package/build/esm/node/utils/index.d.ts +10 -0
- package/build/esm/node/utils/index.js +11 -0
- package/build/esm/node/utils/index.js.map +1 -0
- package/build/esm/node/utils/integration.d.ts +23 -0
- package/build/esm/node/utils/integration.js +13 -0
- package/build/esm/node/utils/integration.js.map +1 -0
- package/build/esm/node/utils/mappings.d.ts +8 -0
- package/build/esm/node/utils/mappings.js +2 -0
- package/build/esm/node/utils/mappings.js.map +1 -0
- package/build/esm/node/utils/noMatch.d.ts +49 -0
- package/build/esm/node/utils/noMatch.js +8 -0
- package/build/esm/node/utils/noMatch.js.map +1 -0
- package/build/esm/node/utils/noReply.d.ts +41 -0
- package/build/esm/node/utils/noReply.js +6 -0
- package/build/esm/node/utils/noReply.js.map +1 -0
- package/build/esm/node/utils/trace.d.ts +25 -0
- package/build/esm/node/utils/trace.js +16 -0
- package/build/esm/node/utils/trace.js.map +1 -0
- package/build/esm/node/visual.d.ts +76 -0
- package/build/esm/node/visual.js +39 -0
- package/build/esm/node/visual.js.map +1 -0
- package/build/esm/node/zapier.d.ts +23 -0
- package/build/esm/node/zapier.js +6 -0
- package/build/esm/node/zapier.js.map +1 -0
- package/build/esm/project/index.d.ts +4 -0
- package/build/esm/project/index.js +2 -0
- package/build/esm/project/index.js.map +1 -0
- package/build/esm/request/action.d.ts +17 -0
- package/build/esm/request/action.js +6 -0
- package/build/esm/request/action.js.map +1 -0
- package/build/esm/request/index.d.ts +84 -0
- package/build/esm/request/index.js +16 -0
- package/build/esm/request/index.js.map +1 -0
- package/build/esm/text/index.d.ts +50 -0
- package/build/esm/text/index.js +20 -0
- package/build/esm/text/index.js.map +1 -0
- package/build/esm/trace/index.d.ts +48 -0
- package/build/esm/trace/index.js +2 -0
- package/build/esm/trace/index.js.map +1 -0
- package/build/esm/utils.d.ts +3 -0
- package/build/esm/utils.js +2 -0
- package/build/esm/utils.js.map +1 -0
- package/build/esm/version/index.d.ts +8 -0
- package/build/esm/version/index.js +9 -0
- package/build/esm/version/index.js.map +1 -0
- package/build/esm/version/settings.d.ts +26 -0
- package/build/esm/version/settings.js +18 -0
- package/build/esm/version/settings.js.map +1 -0
- package/package.json +7 -4
- package/build/button/index.js.map +0 -1
- package/build/index.js.map +0 -1
- package/build/models/diagram.js.map +0 -1
- package/build/models/index.js.map +0 -1
- package/build/models/project.js.map +0 -1
- package/build/models/shared.js.map +0 -1
- package/build/models/version.js.map +0 -1
- package/build/node/_v1.js.map +0 -1
- package/build/node/api.js.map +0 -1
- package/build/node/buttons.js.map +0 -1
- package/build/node/card.js.map +0 -1
- package/build/node/constants.js.map +0 -1
- package/build/node/googleSheets.js.map +0 -1
- package/build/node/if.js.map +0 -1
- package/build/node/ifV2.js.map +0 -1
- package/build/node/index.js.map +0 -1
- package/build/node/interaction.js.map +0 -1
- package/build/node/jump.js.map +0 -1
- package/build/node/random.js.map +0 -1
- package/build/node/set.js.map +0 -1
- package/build/node/speak.js.map +0 -1
- package/build/node/stream.js.map +0 -1
- package/build/node/utils/canvasNodeVisibility.js.map +0 -1
- package/build/node/utils/command.js.map +0 -1
- package/build/node/utils/event.js.map +0 -1
- package/build/node/utils/expression.js.map +0 -1
- package/build/node/utils/index.js.map +0 -1
- package/build/node/utils/integration.js.map +0 -1
- package/build/node/utils/noMatch.d.ts +0 -22
- package/build/node/utils/noMatch.js.map +0 -1
- package/build/node/utils/reprompt.d.ts +0 -7
- package/build/node/utils/reprompt.js +0 -3
- package/build/node/utils/reprompt.js.map +0 -1
- package/build/node/utils/trace.js.map +0 -1
- package/build/node/visual.js.map +0 -1
- package/build/node/zapier.js.map +0 -1
- package/build/project/index.js.map +0 -1
- package/build/request/action.js.map +0 -1
- package/build/request/index.js.map +0 -1
- package/build/text/index.js.map +0 -1
- package/build/utils.js.map +0 -1
- package/build/version/index.js.map +0 -1
- package/build/version/settings.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { AnyRecord, Nullable } from '../utils';
|
|
2
|
+
import { BaseCommand, CreatorID, DiagramID, Intent, Name, Platform, ProjectID, PrototypeModel, Slot, Variable, VersionID } from './shared';
|
|
3
|
+
export declare type VersionPlatformDataSettings = Record<string, any>;
|
|
4
|
+
export declare type VersionPlatformDataPublishing = Record<string, any>;
|
|
5
|
+
export interface StrictVersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> {
|
|
6
|
+
slots: Slot[];
|
|
7
|
+
intents: Intent[];
|
|
8
|
+
settings: S;
|
|
9
|
+
publishing: P;
|
|
10
|
+
}
|
|
11
|
+
export interface VersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> extends StrictVersionPlatformData<S, P>, AnyRecord {
|
|
12
|
+
}
|
|
13
|
+
export interface VersionPrototypeStackFrame<C extends BaseCommand = BaseCommand> {
|
|
14
|
+
nodeID?: Nullable<string>;
|
|
15
|
+
programID: string;
|
|
16
|
+
storage?: Record<string, any>;
|
|
17
|
+
variables?: Record<string, any>;
|
|
18
|
+
commands?: C[];
|
|
19
|
+
}
|
|
20
|
+
export interface VersionPrototypeContext<C extends BaseCommand = BaseCommand> {
|
|
21
|
+
turn?: Record<string, any>;
|
|
22
|
+
storage?: Record<string, any>;
|
|
23
|
+
variables?: Record<string, any>;
|
|
24
|
+
stack?: VersionPrototypeStackFrame<C>[];
|
|
25
|
+
}
|
|
26
|
+
export interface VersionPrototypeData<L extends string> {
|
|
27
|
+
name: string;
|
|
28
|
+
locales: L[];
|
|
29
|
+
}
|
|
30
|
+
export declare type VersionPrototypeSettings = {
|
|
31
|
+
layout?: string;
|
|
32
|
+
brandColor?: string;
|
|
33
|
+
brandImage?: string;
|
|
34
|
+
avatar?: string;
|
|
35
|
+
password?: string;
|
|
36
|
+
hasPassword?: boolean;
|
|
37
|
+
buttons?: string;
|
|
38
|
+
};
|
|
39
|
+
export interface VersionPrototype<C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
40
|
+
model: PrototypeModel;
|
|
41
|
+
platform: Platform;
|
|
42
|
+
settings: VersionPrototypeSettings;
|
|
43
|
+
data: VersionPrototypeData<L>;
|
|
44
|
+
context: VersionPrototypeContext<C>;
|
|
45
|
+
}
|
|
46
|
+
export declare enum VersionFolderItemType {
|
|
47
|
+
FOLDER = "FOLDER",
|
|
48
|
+
DIAGRAM = "DIAGRAM"
|
|
49
|
+
}
|
|
50
|
+
export interface VersionFolderItem {
|
|
51
|
+
type: VersionFolderItemType;
|
|
52
|
+
sourceID: string;
|
|
53
|
+
}
|
|
54
|
+
export interface VersionFolder {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
items: VersionFolderItem[];
|
|
58
|
+
}
|
|
59
|
+
export interface Version<P extends VersionPlatformData, C extends BaseCommand = BaseCommand, L extends string = string> {
|
|
60
|
+
_id: VersionID;
|
|
61
|
+
creatorID: CreatorID;
|
|
62
|
+
projectID: ProjectID;
|
|
63
|
+
name: Name;
|
|
64
|
+
topics?: VersionFolderItem[];
|
|
65
|
+
folders?: Record<string, VersionFolder>;
|
|
66
|
+
variables: Variable[];
|
|
67
|
+
components?: VersionFolderItem[];
|
|
68
|
+
rootDiagramID: DiagramID;
|
|
69
|
+
prototype?: VersionPrototype<C, L>;
|
|
70
|
+
platformData: P;
|
|
71
|
+
}
|
|
72
|
+
export interface VersionDiagramResponce {
|
|
73
|
+
id: string;
|
|
74
|
+
type: string;
|
|
75
|
+
flow: string;
|
|
76
|
+
step: string;
|
|
77
|
+
content: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":"AAwDA,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { BaseEvent, BaseNode, BasePort, BaseStep, NodeID } from './utils';
|
|
3
|
+
export declare const _V1_STOP_TYPES = "stopTypes";
|
|
4
|
+
export interface StepData<Payload = unknown> {
|
|
5
|
+
_v: 1;
|
|
6
|
+
stop?: boolean;
|
|
7
|
+
payload: Payload;
|
|
8
|
+
defaultPath?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface NodePath<Event = BaseEvent> {
|
|
11
|
+
label?: string;
|
|
12
|
+
event?: Event;
|
|
13
|
+
nextID: Nullable<NodeID>;
|
|
14
|
+
}
|
|
15
|
+
export interface Node<Event = BaseEvent> extends BaseNode {
|
|
16
|
+
_v: 1;
|
|
17
|
+
stop: boolean;
|
|
18
|
+
paths: Array<NodePath<Event>>;
|
|
19
|
+
payload: unknown;
|
|
20
|
+
defaultPath?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface Step<Payload = unknown, Event = BaseEvent> extends BaseStep<StepData<Payload>, BasePort<{
|
|
23
|
+
event?: Event;
|
|
24
|
+
}>[]> {
|
|
25
|
+
type: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_v1.js","sourceRoot":"","sources":["../../../src/node/_v1.ts"],"names":[],"mappings":"AAIA,gDAAgD;AAChD,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseStep, IntegrationType, NodeSuccessFailID } from './utils';
|
|
4
|
+
export interface APIKeyVal {
|
|
5
|
+
key: string;
|
|
6
|
+
val: string;
|
|
7
|
+
}
|
|
8
|
+
export interface APIMapping {
|
|
9
|
+
path: string;
|
|
10
|
+
var: Nullable<string>;
|
|
11
|
+
}
|
|
12
|
+
export declare enum APIBodyType {
|
|
13
|
+
FORM_DATA = "formData",
|
|
14
|
+
RAW_INPUT = "rawInput",
|
|
15
|
+
URL_ENCODED = "urlEncoded"
|
|
16
|
+
}
|
|
17
|
+
export declare enum APIMethod {
|
|
18
|
+
GET = "GET",
|
|
19
|
+
PUT = "PUT",
|
|
20
|
+
POST = "POST",
|
|
21
|
+
PATCH = "PATCH",
|
|
22
|
+
DELETE = "DELETE"
|
|
23
|
+
}
|
|
24
|
+
export declare enum APIActionType {
|
|
25
|
+
GET = "Make a GET Request",
|
|
26
|
+
PUT = "Make a PUT Request",
|
|
27
|
+
POST = "Make a POST Request",
|
|
28
|
+
PATCH = "Make a PATCH Request",
|
|
29
|
+
DELETE = "Make a DELETE Request"
|
|
30
|
+
}
|
|
31
|
+
export interface StepData {
|
|
32
|
+
url: string;
|
|
33
|
+
body: APIKeyVal[];
|
|
34
|
+
method: APIMethod;
|
|
35
|
+
content: string;
|
|
36
|
+
params: APIKeyVal[];
|
|
37
|
+
headers: APIKeyVal[];
|
|
38
|
+
mappings: APIMapping[];
|
|
39
|
+
bodyType: APIBodyType;
|
|
40
|
+
selectedAction: APIActionType;
|
|
41
|
+
selectedIntegration: IntegrationType.CUSTOM_API;
|
|
42
|
+
}
|
|
43
|
+
export interface NodeData extends NodeSuccessFailID {
|
|
44
|
+
action_data: {
|
|
45
|
+
url: string;
|
|
46
|
+
body: APIKeyVal[];
|
|
47
|
+
method: APIMethod;
|
|
48
|
+
params: APIKeyVal[];
|
|
49
|
+
headers: APIKeyVal[];
|
|
50
|
+
mapping: APIMapping[];
|
|
51
|
+
content: string;
|
|
52
|
+
bodyInputType: APIBodyType;
|
|
53
|
+
selected_action: APIActionType;
|
|
54
|
+
};
|
|
55
|
+
selected_action: APIActionType;
|
|
56
|
+
selected_integration: IntegrationType.CUSTOM_API;
|
|
57
|
+
}
|
|
58
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
59
|
+
type: NodeType.API;
|
|
60
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export var APIBodyType;
|
|
2
|
+
(function (APIBodyType) {
|
|
3
|
+
APIBodyType["FORM_DATA"] = "formData";
|
|
4
|
+
APIBodyType["RAW_INPUT"] = "rawInput";
|
|
5
|
+
APIBodyType["URL_ENCODED"] = "urlEncoded";
|
|
6
|
+
})(APIBodyType || (APIBodyType = {}));
|
|
7
|
+
export var APIMethod;
|
|
8
|
+
(function (APIMethod) {
|
|
9
|
+
APIMethod["GET"] = "GET";
|
|
10
|
+
APIMethod["PUT"] = "PUT";
|
|
11
|
+
APIMethod["POST"] = "POST";
|
|
12
|
+
APIMethod["PATCH"] = "PATCH";
|
|
13
|
+
APIMethod["DELETE"] = "DELETE";
|
|
14
|
+
})(APIMethod || (APIMethod = {}));
|
|
15
|
+
export var APIActionType;
|
|
16
|
+
(function (APIActionType) {
|
|
17
|
+
APIActionType["GET"] = "Make a GET Request";
|
|
18
|
+
APIActionType["PUT"] = "Make a PUT Request";
|
|
19
|
+
APIActionType["POST"] = "Make a POST Request";
|
|
20
|
+
APIActionType["PATCH"] = "Make a PATCH Request";
|
|
21
|
+
APIActionType["DELETE"] = "Make a DELETE Request";
|
|
22
|
+
})(APIActionType || (APIActionType = {}));
|
|
23
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/node/api.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,qCAAsB,CAAA;IACtB,qCAAsB,CAAA;IACtB,yCAA0B,CAAA;AAC5B,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,8BAAiB,CAAA;AACnB,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,2CAA0B,CAAA;IAC1B,2CAA0B,CAAA;IAC1B,6CAA4B,CAAA;IAC5B,+CAA8B,CAAA;IAC9B,iDAAgC,CAAA;AAClC,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { StepButtonsLayout } from '../button';
|
|
3
|
+
import { NodeType } from './constants';
|
|
4
|
+
import { BaseStep, BaseStepNoMatch, BaseStepNoReply, DataID } from './utils';
|
|
5
|
+
export declare enum ButtonAction {
|
|
6
|
+
URL = "URL",
|
|
7
|
+
PATH = "PATH",
|
|
8
|
+
INTENT = "INTENT"
|
|
9
|
+
}
|
|
10
|
+
export interface Button extends DataID {
|
|
11
|
+
url?: Nullable<string>;
|
|
12
|
+
name: string;
|
|
13
|
+
intent?: Nullable<string>;
|
|
14
|
+
actions: ButtonAction[];
|
|
15
|
+
}
|
|
16
|
+
export interface StepData extends StepButtonsLayout {
|
|
17
|
+
else: BaseStepNoMatch;
|
|
18
|
+
buttons: Button[];
|
|
19
|
+
noReply?: Nullable<BaseStepNoReply>;
|
|
20
|
+
}
|
|
21
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
22
|
+
type: NodeType.BUTTONS;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/node/buttons.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseNodeNoReply, BaseStep, BaseStepNoReply, NodeNextID } from './utils';
|
|
4
|
+
export interface StepData {
|
|
5
|
+
slot: Nullable<string>;
|
|
6
|
+
noReply?: Nullable<BaseStepNoReply>;
|
|
7
|
+
variable: Nullable<string>;
|
|
8
|
+
slotInputs: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
11
|
+
type: NodeType.CAPTURE;
|
|
12
|
+
}
|
|
13
|
+
export interface Node extends BaseNode, NodeNextID {
|
|
14
|
+
type: NodeType.CAPTURE;
|
|
15
|
+
noReply?: Nullable<BaseNodeNoReply>;
|
|
16
|
+
variable: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../src/node/capture.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NodeType } from './constants';
|
|
2
|
+
import { BaseNode, BaseStep, NodeNextID } from './utils';
|
|
3
|
+
export declare enum CardType {
|
|
4
|
+
SIMPLE = "Simple",
|
|
5
|
+
STANDARD = "Standard"
|
|
6
|
+
}
|
|
7
|
+
export interface CardImage {
|
|
8
|
+
largeImageUrl?: string;
|
|
9
|
+
smallImageUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Card {
|
|
12
|
+
type: CardType;
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
image?: CardImage;
|
|
16
|
+
}
|
|
17
|
+
export interface StepData extends Card {
|
|
18
|
+
}
|
|
19
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
20
|
+
type: NodeType.CARD;
|
|
21
|
+
}
|
|
22
|
+
export interface Node extends BaseNode, NodeNextID {
|
|
23
|
+
type: NodeType.CARD;
|
|
24
|
+
card: Card;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/node/card.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;AACvB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NodeType } from './constants';
|
|
2
|
+
import { BaseNode, BaseStep, NodeSuccessFailID } from './utils';
|
|
3
|
+
export interface StepData {
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
7
|
+
type: NodeType.CODE;
|
|
8
|
+
}
|
|
9
|
+
export interface Node extends BaseNode, NodeSuccessFailID {
|
|
10
|
+
type: NodeType.CODE;
|
|
11
|
+
code: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../src/node/code.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/node/component.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum NodeType {
|
|
2
|
+
TEXT = "text",
|
|
3
|
+
SPEAK = "speak",
|
|
4
|
+
START = "start",
|
|
5
|
+
CARD = "card",
|
|
6
|
+
BUTTONS = "buttons",
|
|
7
|
+
INTERACTION = "interaction",
|
|
8
|
+
SET = "set",
|
|
9
|
+
SET_V2 = "setV2",
|
|
10
|
+
IF = "if",
|
|
11
|
+
IF_V2 = "ifV2",
|
|
12
|
+
RANDOM = "random",
|
|
13
|
+
CAPTURE = "capture",
|
|
14
|
+
API = "api",
|
|
15
|
+
ZAPIER = "zapier",
|
|
16
|
+
INTEGRATIONS = "integrations",
|
|
17
|
+
GOOGLE_SHEETS = "google_sheets",
|
|
18
|
+
INTENT = "intent",
|
|
19
|
+
FLOW = "flow",
|
|
20
|
+
COMPONENT = "component",
|
|
21
|
+
CODE = "code",
|
|
22
|
+
EXIT = "exit",
|
|
23
|
+
PROMPT = "prompt",
|
|
24
|
+
COMMAND = "command",
|
|
25
|
+
TRACE = "trace",
|
|
26
|
+
STREAM = "stream",
|
|
27
|
+
VISUAL = "visual",
|
|
28
|
+
GENERAL = "general",
|
|
29
|
+
DIRECTIVE = "directive",
|
|
30
|
+
DEPRECATED = "deprecated"
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export var NodeType;
|
|
2
|
+
(function (NodeType) {
|
|
3
|
+
NodeType["TEXT"] = "text";
|
|
4
|
+
NodeType["SPEAK"] = "speak";
|
|
5
|
+
NodeType["START"] = "start";
|
|
6
|
+
NodeType["CARD"] = "card";
|
|
7
|
+
NodeType["BUTTONS"] = "buttons";
|
|
8
|
+
NodeType["INTERACTION"] = "interaction";
|
|
9
|
+
// logic
|
|
10
|
+
NodeType["SET"] = "set";
|
|
11
|
+
NodeType["SET_V2"] = "setV2";
|
|
12
|
+
NodeType["IF"] = "if";
|
|
13
|
+
NodeType["IF_V2"] = "ifV2";
|
|
14
|
+
NodeType["RANDOM"] = "random";
|
|
15
|
+
NodeType["CAPTURE"] = "capture";
|
|
16
|
+
// integrations
|
|
17
|
+
NodeType["API"] = "api";
|
|
18
|
+
NodeType["ZAPIER"] = "zapier";
|
|
19
|
+
NodeType["INTEGRATIONS"] = "integrations";
|
|
20
|
+
NodeType["GOOGLE_SHEETS"] = "google_sheets";
|
|
21
|
+
// advanced
|
|
22
|
+
NodeType["INTENT"] = "intent";
|
|
23
|
+
NodeType["FLOW"] = "flow";
|
|
24
|
+
NodeType["COMPONENT"] = "component";
|
|
25
|
+
NodeType["CODE"] = "code";
|
|
26
|
+
NodeType["EXIT"] = "exit";
|
|
27
|
+
NodeType["PROMPT"] = "prompt";
|
|
28
|
+
NodeType["COMMAND"] = "command";
|
|
29
|
+
NodeType["TRACE"] = "trace";
|
|
30
|
+
// other
|
|
31
|
+
NodeType["STREAM"] = "stream";
|
|
32
|
+
NodeType["VISUAL"] = "visual";
|
|
33
|
+
NodeType["GENERAL"] = "general";
|
|
34
|
+
NodeType["DIRECTIVE"] = "directive";
|
|
35
|
+
NodeType["DEPRECATED"] = "deprecated";
|
|
36
|
+
})(NodeType || (NodeType = {}));
|
|
37
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/node/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAsCX;AAtCD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,uCAA2B,CAAA;IAE3B,QAAQ;IACR,uBAAW,CAAA;IACX,4BAAgB,CAAA;IAChB,qBAAS,CAAA;IACT,0BAAc,CAAA;IACd,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IAEnB,eAAe;IACf,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,yCAA6B,CAAA;IAC7B,2CAA+B,CAAA;IAE/B,WAAW;IACX,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IAEf,QAAQ;IACR,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;AAC3B,CAAC,EAtCW,QAAQ,KAAR,QAAQ,QAsCnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NodeType } from './constants';
|
|
2
|
+
import { BaseNode, BaseStep, NodeRequiredNextID } from './utils';
|
|
3
|
+
export interface StepData {
|
|
4
|
+
directive: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
7
|
+
type: NodeType.DIRECTIVE;
|
|
8
|
+
}
|
|
9
|
+
export interface Node extends BaseNode, NodeRequiredNextID {
|
|
10
|
+
type: NodeType.DIRECTIVE;
|
|
11
|
+
directive: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive.js","sourceRoot":"","sources":["../../../src/node/directive.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UnknownRecord } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, BaseTraceFrame, TraceType } from './utils';
|
|
4
|
+
export declare type StepData = UnknownRecord;
|
|
5
|
+
export interface NodeData {
|
|
6
|
+
end: true;
|
|
7
|
+
}
|
|
8
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
+
type: NodeType.EXIT;
|
|
10
|
+
}
|
|
11
|
+
export interface Node extends BaseNode {
|
|
12
|
+
type: NodeType.EXIT;
|
|
13
|
+
end: true;
|
|
14
|
+
}
|
|
15
|
+
export interface TraceFrame extends BaseTraceFrame {
|
|
16
|
+
type: TraceType.END;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../../../src/node/exit.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, NodeVariablesMappings, TraceType } from './utils';
|
|
4
|
+
export declare type VariableMapping = [Nullable<string>, Nullable<string>][];
|
|
5
|
+
export interface StepData {
|
|
6
|
+
diagramID: Nullable<string>;
|
|
7
|
+
variableMap: Nullable<{
|
|
8
|
+
inputs: VariableMapping;
|
|
9
|
+
outputs: VariableMapping;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
13
|
+
type: NodeType.FLOW;
|
|
14
|
+
}
|
|
15
|
+
export interface Node extends BaseNode, NodeNextID {
|
|
16
|
+
type: NodeType.FLOW;
|
|
17
|
+
diagram_id?: string;
|
|
18
|
+
variable_map?: NodeVariablesMappings;
|
|
19
|
+
}
|
|
20
|
+
export interface TraceFramePayload {
|
|
21
|
+
name?: string;
|
|
22
|
+
diagramID: string;
|
|
23
|
+
}
|
|
24
|
+
export interface TraceFrame extends BaseTraceFrame<TraceFramePayload> {
|
|
25
|
+
type: TraceType.FLOW;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../src/node/flow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID } from './utils';
|
|
4
|
+
export declare type AnyTrace = BaseTraceFrame<any>;
|
|
5
|
+
export interface StepData<Trace extends AnyTrace = AnyTrace> {
|
|
6
|
+
traces: Nullable<Trace>[];
|
|
7
|
+
}
|
|
8
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
+
type: NodeType.GENERAL;
|
|
10
|
+
}
|
|
11
|
+
export interface Node<Trace extends AnyTrace = AnyTrace> extends BaseNode, NodeNextID {
|
|
12
|
+
type: NodeType.GENERAL;
|
|
13
|
+
traces: Trace[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../../src/node/general.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Nullable } from "../utils";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseStep, IntegrationType, IntegrationUser, NodeSuccessFailID } from './utils';
|
|
4
|
+
export declare enum GoogleSheetsActionType {
|
|
5
|
+
CREATE_DATA = "Create Data",
|
|
6
|
+
UPDATE_DATA = "Update Data",
|
|
7
|
+
DELETE_DATA = "Delete Data",
|
|
8
|
+
RETRIEVE_DATA = "Retrieve Data"
|
|
9
|
+
}
|
|
10
|
+
export interface GoogleSheetsValueLabel {
|
|
11
|
+
value: number;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GoogleSheetsMapping {
|
|
15
|
+
arg1: GoogleSheetsValueLabel;
|
|
16
|
+
arg2: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GoogleSheetsSpreadsheet {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
export interface StepData {
|
|
23
|
+
user?: IntegrationUser;
|
|
24
|
+
sheet: Nullable<GoogleSheetsValueLabel>;
|
|
25
|
+
endRow: string;
|
|
26
|
+
mapping: GoogleSheetsMapping[];
|
|
27
|
+
startRow: string;
|
|
28
|
+
rowNumber: string;
|
|
29
|
+
rowValues: string[];
|
|
30
|
+
matchValue: string;
|
|
31
|
+
spreadsheet: Nullable<GoogleSheetsSpreadsheet>;
|
|
32
|
+
headerColumn: Nullable<GoogleSheetsValueLabel>;
|
|
33
|
+
selectedAction: Nullable<GoogleSheetsActionType>;
|
|
34
|
+
selectedIntegration: IntegrationType.GOOGLE_SHEETS;
|
|
35
|
+
}
|
|
36
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
37
|
+
type: NodeType.GOOGLE_SHEETS;
|
|
38
|
+
}
|
|
39
|
+
export interface NodeActionData {
|
|
40
|
+
user?: IntegrationUser;
|
|
41
|
+
sheet: Nullable<number>;
|
|
42
|
+
mapping: {
|
|
43
|
+
arg1: number;
|
|
44
|
+
arg2: string;
|
|
45
|
+
}[];
|
|
46
|
+
end_row: string;
|
|
47
|
+
start_row: string;
|
|
48
|
+
row_values: string[];
|
|
49
|
+
row_number: string;
|
|
50
|
+
match_value: string;
|
|
51
|
+
spreadsheet: Nullable<string>;
|
|
52
|
+
header_column: Nullable<number>;
|
|
53
|
+
}
|
|
54
|
+
export interface NodeData extends NodeSuccessFailID {
|
|
55
|
+
action_data: NodeActionData;
|
|
56
|
+
selected_action: Nullable<GoogleSheetsActionType>;
|
|
57
|
+
selected_integration: IntegrationType.GOOGLE_SHEETS;
|
|
58
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var GoogleSheetsActionType;
|
|
2
|
+
(function (GoogleSheetsActionType) {
|
|
3
|
+
GoogleSheetsActionType["CREATE_DATA"] = "Create Data";
|
|
4
|
+
GoogleSheetsActionType["UPDATE_DATA"] = "Update Data";
|
|
5
|
+
GoogleSheetsActionType["DELETE_DATA"] = "Delete Data";
|
|
6
|
+
GoogleSheetsActionType["RETRIEVE_DATA"] = "Retrieve Data";
|
|
7
|
+
})(GoogleSheetsActionType || (GoogleSheetsActionType = {}));
|
|
8
|
+
//# sourceMappingURL=googleSheets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleSheets.js","sourceRoot":"","sources":["../../../src/node/googleSheets.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,qDAA2B,CAAA;IAC3B,qDAA2B,CAAA;IAC3B,qDAA2B,CAAA;IAC3B,yDAA+B,CAAA;AACjC,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NodeType } from './constants';
|
|
2
|
+
import { BaseNode, BaseStep, Expression, NodeElseID, NodeNextIDs } from './utils';
|
|
3
|
+
export interface StepData {
|
|
4
|
+
expressions: Expression[];
|
|
5
|
+
}
|
|
6
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
7
|
+
type: NodeType.IF;
|
|
8
|
+
}
|
|
9
|
+
export interface Node extends BaseNode, NodeElseID, NodeNextIDs {
|
|
10
|
+
type: NodeType.IF;
|
|
11
|
+
expressions: (string | number)[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if.js","sourceRoot":"","sources":["../../../src/node/if.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NodePath } from './_v1';
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, ExpressionData, NodeElseID } from './utils';
|
|
4
|
+
export declare enum IfNoMatchType {
|
|
5
|
+
PATH = "path",
|
|
6
|
+
NONE = "none"
|
|
7
|
+
}
|
|
8
|
+
export interface IfNoMatch {
|
|
9
|
+
type: IfNoMatchType;
|
|
10
|
+
pathName?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface StepData {
|
|
13
|
+
expressions: ExpressionData[];
|
|
14
|
+
noMatch?: IfNoMatch;
|
|
15
|
+
}
|
|
16
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
17
|
+
type: NodeType.IF_V2;
|
|
18
|
+
}
|
|
19
|
+
export interface NodePayload extends NodeElseID {
|
|
20
|
+
expressions: (string | number)[];
|
|
21
|
+
}
|
|
22
|
+
export interface Node extends BaseNode {
|
|
23
|
+
type: NodeType.IF_V2;
|
|
24
|
+
paths: NodePath[];
|
|
25
|
+
payload: NodePayload;
|
|
26
|
+
}
|