From c1e393e570562db01dde3d52613f67460f1286b8 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Sun, 30 Apr 2023 19:16:47 -0300 Subject: [PATCH] Return value on the workflow finished Signed-off-by: Marcos Candeia --- import_map.json | 2 +- live.gen.ts | 30 ++-- runtime.ts | 1 - schemas.gen.json | 388 +++++++++++++++++++++++++++++++++----------- workflows/simple.ts | 3 +- 5 files changed, 312 insertions(+), 112 deletions(-) diff --git a/import_map.json b/import_map.json index c3b40ea1..12b469b5 100644 --- a/import_map.json +++ b/import_map.json @@ -2,7 +2,7 @@ "imports": { "deco-sites/fashion/": "./", "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.0.1/", - "$live/": "https://denopkg.com/deco-cx/live@a856b6cf6d45f1437dc1fa801c0429c32a3f7db4/", + "$live/": "../live/", "$fresh/": "https://deno.land/x/fresh@1.1.5/", "preact": "https://esm.sh/preact@10.13.2", "preact/": "https://esm.sh/preact@10.13.2/", diff --git a/live.gen.ts b/live.gen.ts index 2fc2e911..5449fa12 100644 --- a/live.gen.ts +++ b/live.gen.ts @@ -41,12 +41,13 @@ import * as $live_inspect from "$live/routes/live/inspect/[...block].ts"; import * as $live_meta from "$live/routes/live/_meta.ts"; import * as $live_previews from "$live/routes/live/previews/[...block].tsx"; import * as $live_catchall from "$live/routes/[...catchall].tsx"; +import * as i1$0 from "$live/loaders/workflows/get.ts"; import * as i2$$$$$0 from "$live/handlers/devPage.ts"; import * as i2$$$$$1 from "$live/handlers/fresh.ts"; -import * as i1$2 from "$live/handlers/redirect.ts"; +import * as i1$$2 from "$live/handlers/redirect.ts"; import * as i2$$$$$2 from "$live/handlers/router.ts"; import * as i2$$$$$3 from "$live/handlers/routesSelection.ts"; -import * as i1$5 from "$live/handlers/workflowRunner.ts"; +import * as i1$$5 from "$live/handlers/workflowRunner.ts"; import * as i2$$$$$$0 from "$live/pages/LivePage.tsx"; import * as i2$$$$0 from "$live/sections/PageInclude.tsx"; import * as i2$$$$1 from "$live/sections/Slot.tsx"; @@ -60,8 +61,10 @@ import * as i2$$$$$$$5 from "$live/matchers/MatchSite.ts"; import * as i2$$$$$$$6 from "$live/matchers/MatchUserAgent.ts"; import * as i2$$$$$$$$0 from "$live/flags/audience.ts"; import * as i2$$$$$$$$1 from "$live/flags/everyone.ts"; -import * as i1$$$$$$0 from "$live/actions/workflows/run.ts"; -import * as i1$$$$$$1 from "$live/actions/workflows/start.ts"; +import * as i1$$$$$$$0 from "$live/actions/workflows/cancel.ts"; +import * as i1$$$$$$$1 from "$live/actions/workflows/run.ts"; +import * as i1$$$$$$$2 from "$live/actions/workflows/signal.ts"; +import * as i1$$$$$$$3 from "$live/actions/workflows/start.ts"; import * as i2$0 from "deco-sites/std/functions/occProductDetailsPage.ts"; import * as i2$1 from "deco-sites/std/functions/segment.ts"; import * as i2$2 from "deco-sites/std/functions/shopifyProductDetailsPage.ts"; @@ -156,20 +159,27 @@ const manifest = { "deco-sites/std/sections/SEOPLP.tsx": i2$$$$11, }, "actions": { - "$live/actions/workflows/run.ts": i1$$$$$$0, - "$live/actions/workflows/start.ts": i1$$$$$$1, + "$live/actions/workflows/cancel.ts": i1$$$$$$$0, + "$live/actions/workflows/run.ts": i1$$$$$$$1, + "$live/actions/workflows/signal.ts": i1$$$$$$$2, + "$live/actions/workflows/start.ts": i1$$$$$$$3, "deco-sites/fashion/actions/charge.ts": $$$$$$$$$$$0, }, "workflows": { "deco-sites/fashion/workflows/simple.ts": $$$$$$$$$$$$0, }, + "loaders": { + "$live/loaders/workflows/get.ts": i1$0, + "deco-sites/std/loaders/vtexLegacyProductDetailsPage.ts": i2$$$0, + "deco-sites/std/loaders/vtexLegacyRelatedProductsLoader.ts": i2$$$1, + }, "handlers": { "$live/handlers/devPage.ts": i2$$$$$0, "$live/handlers/fresh.ts": i2$$$$$1, - "$live/handlers/redirect.ts": i1$2, + "$live/handlers/redirect.ts": i1$$2, "$live/handlers/router.ts": i2$$$$$2, "$live/handlers/routesSelection.ts": i2$$$$$3, - "$live/handlers/workflowRunner.ts": i1$5, + "$live/handlers/workflowRunner.ts": i1$$5, }, "pages": { "$live/pages/LivePage.tsx": i2$$$$$$0, @@ -217,10 +227,6 @@ const manifest = { "deco-sites/std/accounts/vtex.ts": i2$$3, "deco-sites/std/accounts/yourViews.ts": i2$$4, }, - "loaders": { - "deco-sites/std/loaders/vtexLegacyProductDetailsPage.ts": i2$$$0, - "deco-sites/std/loaders/vtexLegacyRelatedProductsLoader.ts": i2$$$1, - }, "config": config, "baseUrl": import.meta.url, }; diff --git a/runtime.ts b/runtime.ts index 8ab46686..87716769 100644 --- a/runtime.ts +++ b/runtime.ts @@ -2,4 +2,3 @@ import { withManifest } from "$live/clients/withManifest.ts"; import type { Manifest } from "./live.gen.ts"; export const Runtime = withManifest(); - diff --git a/schemas.gen.json b/schemas.gen.json index 006545ce..d289f1aa 100644 --- a/schemas.gen.json +++ b/schemas.gen.json @@ -1840,7 +1840,7 @@ } ] }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9hY2NvdW50LnRz@Account": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2FjY291bnQudHM=@Account": { "type": "object", "properties": {}, "required": [], @@ -1850,7 +1850,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9hY2NvdW50LnRz@Account" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2FjY291bnQudHM=@Account" } ], "properties": { @@ -2432,7 +2432,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9hY2NvdW50LnRz@Account" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2FjY291bnQudHM=@Account" } ], "properties": { @@ -2457,7 +2457,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9hY2NvdW50LnRz@Account" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2FjY291bnQudHM=@Account" } ], "properties": { @@ -2529,6 +2529,81 @@ ], "title": "deco-sites/std/commerce/yourViews/client.ts@ConfigYourViews" }, + "ZGVjby1jeC9kdXJhYmxlL2JhY2tlbmRzL2JhY2tlbmQudHM=@WorkflowExecution": { + "anyOf": [ + { + "$ref": "#/definitions/Resolvable" + }, + { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "alias": { + "type": "string", + "title": "Alias" + }, + "completedAt": { + "title": "Completed At" + }, + "status": { + "title": "Status" + }, + "metadata": { + "title": "Metadata" + }, + "input": { + "title": "Input" + }, + "output": { + "title": "Output" + } + }, + "required": [ + "id", + "alias", + "status" + ], + "title": "deco-cx/durable/backends/backend.ts@WorkflowExecution" + }, + { + "title": "$live/loaders/workflows/get.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbG9hZGVycy93b3JrZmxvd3MvZ2V0LnRz@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/workflows/get.ts" + ], + "default": "$live/loaders/workflows/get.ts" + } + } + } + ] + }, + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbG9hZGVycy93b3JrZmxvd3MvZ2V0LnRz@Props": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id" + } + }, + "required": [ + "id" + ], + "title": "/Users/marcoscandeia/workspace/live/loaders/workflows/get.ts@Props" + }, "ZGVjby1zaXRlcy9zdGQvbG9hZGVycy92dGV4TGVnYWN5UHJvZHVjdERldGFpbHNQYWdlLnRz@Props": { "type": "object", "properties": { @@ -2662,37 +2737,37 @@ ], "title": "deco-sites/fashion/components/ui/ShippingSimulation.tsx@Props" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9wYWdlLnRz@Page": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3BhZ2UudHM=@Page": { "$ref": "#/root/pages", "title": "Page" }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL2RldlBhZ2UudHM=@DevConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvZGV2UGFnZS50cw==@DevConfig": { "type": "object", "properties": { "page": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9wYWdlLnRz@Page", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3BhZ2UudHM=@Page", "title": "Page" } }, "required": [ "page" ], - "title": "deco-cx/live/handlers/devPage.ts@DevConfig" + "title": "/Users/marcoscandeia/workspace/live/handlers/devPage.ts@DevConfig" }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL2ZyZXNoLnRz@FreshConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvZnJlc2gudHM=@FreshConfig": { "type": "object", "properties": { "page": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9wYWdlLnRz@Page", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3BhZ2UudHM=@Page", "title": "Page" } }, "required": [ "page" ], - "title": "deco-cx/live/handlers/fresh.ts@FreshConfig" + "title": "/Users/marcoscandeia/workspace/live/handlers/fresh.ts@FreshConfig" }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JlZGlyZWN0LnRz@RedirectConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcmVkaXJlY3QudHM=@RedirectConfig": { "type": "object", "properties": { "to": { @@ -2703,20 +2778,20 @@ "required": [ "to" ], - "title": "deco-cx/live/handlers/redirect.ts@RedirectConfig" + "title": "/Users/marcoscandeia/workspace/live/handlers/redirect.ts@RedirectConfig" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler": { "$ref": "#/root/handlers", "title": "Handler" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler@record": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler@record": { "title": "Unknown record", "type": "object", "additionalProperties": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler" } }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JvdXRlci50cw==@RouterConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcm91dGVyLnRz@RouterConfig": { "type": "object", "properties": { "base": { @@ -2727,16 +2802,16 @@ "title": "Base" }, "routes": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler@record", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler@record", "title": "Routes" } }, "required": [ "routes" ], - "title": "deco-cx/live/handlers/router.ts@RouterConfig" + "title": "/Users/marcoscandeia/workspace/live/handlers/router.ts@RouterConfig" }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JvdXRlc1NlbGVjdGlvbi50cw==@SelectionConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcm91dGVzU2VsZWN0aW9uLnRz@SelectionConfig": { "type": "object", "properties": { "audiences": { @@ -2757,37 +2832,37 @@ "required": [ "audiences" ], - "title": "deco-cx/live/handlers/routesSelection.ts@SelectionConfig" + "title": "/Users/marcoscandeia/workspace/live/handlers/routesSelection.ts@SelectionConfig" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy93b3JrZmxvdy50cw==@Workflow": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3dvcmtmbG93LnRz@Workflow": { "$ref": "#/root/workflows", "title": "Workflow" }, - "ZGVjby1jeC9saXZlL2hhbmRsZXJzL3dvcmtmbG93UnVubmVyLnRz@Config": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvd29ya2Zsb3dSdW5uZXIudHM=@Config": { "type": "object", "properties": { "workflow": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy93b3JrZmxvdy50cw==@Workflow", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3dvcmtmbG93LnRz@Workflow", "title": "Workflow" } }, "required": [ "workflow" ], - "title": "deco-cx/live/handlers/workflowRunner.ts@Config" + "title": "/Users/marcoscandeia/workspace/live/handlers/workflowRunner.ts@Config" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9zZWN0aW9uLnRz@Section": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3NlY3Rpb24udHM=@Section": { "$ref": "#/root/sections", "title": "Section" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9zZWN0aW9uLnRz@Section[]": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3NlY3Rpb24udHM=@Section[]": { "type": "array", "items": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9zZWN0aW9uLnRz@Section" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3NlY3Rpb24udHM=@Section" }, "title": "Section[]" }, - "ZGVjby1jeC9saXZlL3BhZ2VzL0xpdmVQYWdlLnRzeA==@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcGFnZXMvTGl2ZVBhZ2UudHN4@Props": { "type": "object", "properties": { "name": { @@ -2795,11 +2870,11 @@ "title": "Name" }, "layout": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9wYWdlLnRz@Page", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3BhZ2UudHM=@Page", "title": "Layout" }, "sections": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9zZWN0aW9uLnRz@Section[]", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3NlY3Rpb24udHM=@Section[]", "title": "Sections" } }, @@ -2807,22 +2882,22 @@ "name", "sections" ], - "title": "deco-cx/live/pages/LivePage.tsx@Props" + "title": "/Users/marcoscandeia/workspace/live/pages/LivePage.tsx@Props" }, - "ZGVjby1jeC9saXZlL3NlY3Rpb25zL1BhZ2VJbmNsdWRlLnRzeA==@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvUGFnZUluY2x1ZGUudHN4@Props": { "type": "object", "properties": { "page": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9wYWdlLnRz@Page", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3BhZ2UudHM=@Page", "title": "Page" } }, "required": [ "page" ], - "title": "deco-cx/live/sections/PageInclude.tsx@Props" + "title": "/Users/marcoscandeia/workspace/live/sections/PageInclude.tsx@Props" }, - "ZGVjby1jeC9saXZlL3NlY3Rpb25zL1Nsb3QudHN4@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvU2xvdC50c3g=@Props": { "type": "object", "properties": { "required": { @@ -2875,9 +2950,9 @@ } }, "required": [], - "title": "deco-cx/live/sections/Slot.tsx@Props" + "title": "/Users/marcoscandeia/workspace/live/sections/Slot.tsx@Props" }, - "ZGVjby1jeC9saXZlL3NlY3Rpb25zL1VzZVNsb3QudHN4@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvVXNlU2xvdC50c3g=@Props": { "type": "object", "properties": { "name": { @@ -2919,7 +2994,7 @@ "title": "Name" }, "sections": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9zZWN0aW9uLnRz@Section[]", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3NlY3Rpb24udHM=@Section[]", "title": "Sections" } }, @@ -2927,7 +3002,7 @@ "name", "sections" ], - "title": "deco-cx/live/sections/UseSlot.tsx@Props" + "title": "/Users/marcoscandeia/workspace/live/sections/UseSlot.tsx@Props" }, "ZGVjby1zaXRlcy9zdGQvY29tcG9uZW50cy90eXBlcy50cw==@Image": { "type": "string", @@ -4587,7 +4662,7 @@ ], "title": "deco-sites/std/components/seo/SEOPLP.tsx@Props" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoRGF0ZS50cw==@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hEYXRlLnRz@Props": { "type": "object", "properties": { "start": { @@ -4608,9 +4683,9 @@ } }, "required": [], - "title": "deco-cx/live/matchers/MatchDate.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchDate.ts@Props" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoRW52aXJvbm1lbnQudHM=@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hFbnZpcm9ubWVudC50cw==@Props": { "type": "object", "properties": { "environment": { @@ -4631,20 +4706,20 @@ "required": [ "environment" ], - "title": "deco-cx/live/matchers/MatchEnvironment.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchEnvironment.ts@Props" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9tYXRjaGVyLnRz@Matcher": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL21hdGNoZXIudHM=@Matcher": { "$ref": "#/root/matchers", "title": "Matcher" }, - "ZGVjby1jeC9saXZlL2Jsb2Nrcy9tYXRjaGVyLnRz@Matcher[]": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL21hdGNoZXIudHM=@Matcher[]": { "type": "array", "items": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9tYXRjaGVyLnRz@Matcher" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL21hdGNoZXIudHM=@Matcher" }, "title": "Matcher[]" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoTXVsdGkudHM=@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hNdWx0aS50cw==@Props": { "type": "object", "properties": { "op": { @@ -4662,7 +4737,7 @@ "title": "Op" }, "matchers": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9tYXRjaGVyLnRz@Matcher[]", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL21hdGNoZXIudHM=@Matcher[]", "title": "Matchers" } }, @@ -4670,9 +4745,9 @@ "op", "matchers" ], - "title": "deco-cx/live/matchers/MatchMulti.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchMulti.ts@Props" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoUmFuZG9tLnRz@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hSYW5kb20udHM=@Props": { "type": "object", "properties": { "traffic": { @@ -4683,9 +4758,9 @@ "required": [ "traffic" ], - "title": "deco-cx/live/matchers/MatchRandom.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchRandom.ts@Props" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoU2l0ZS50cw==@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hTaXRlLnRz@Props": { "type": "object", "properties": { "siteId": { @@ -4696,9 +4771,9 @@ "required": [ "siteId" ], - "title": "deco-cx/live/matchers/MatchSite.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchSite.ts@Props" }, - "ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoVXNlckFnZW50LnRz@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hVc2VyQWdlbnQudHM=@Props": { "type": "object", "properties": { "includes": { @@ -4717,13 +4792,13 @@ } }, "required": [], - "title": "deco-cx/live/matchers/MatchUserAgent.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/matchers/MatchUserAgent.ts@Props" }, - "ZGVjby1jeC9saXZlL2ZsYWdzL2F1ZGllbmNlLnRz@Audience": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvZmxhZ3MvYXVkaWVuY2UudHM=@Audience": { "type": "object", "properties": { "matcher": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9tYXRjaGVyLnRz@Matcher", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL21hdGNoZXIudHM=@Matcher", "title": "Matcher" }, "name": { @@ -4731,7 +4806,7 @@ "title": "Name" }, "routes": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler@record", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler@record", "title": "Routes" }, "overrides": { @@ -4747,13 +4822,13 @@ "name", "routes" ], - "title": "deco-cx/live/flags/audience.ts@Audience" + "title": "/Users/marcoscandeia/workspace/live/flags/audience.ts@Audience" }, - "ZGVjby1jeC9saXZlL2ZsYWdzL2V2ZXJ5b25lLnRz@EveryoneConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvZmxhZ3MvZXZlcnlvbmUudHM=@EveryoneConfig": { "type": "object", "properties": { "routes": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler@record", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler@record", "title": "Routes" }, "overrides": { @@ -4765,7 +4840,27 @@ } }, "required": [], - "title": "deco-cx/live/flags/everyone.ts@EveryoneConfig" + "title": "/Users/marcoscandeia/workspace/live/flags/everyone.ts@EveryoneConfig" + }, + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3MvY2FuY2VsLnRz@Props": { + "type": "object", + "properties": { + "executionId": { + "type": "string", + "title": "Execution Id" + }, + "reason": { + "type": [ + "string", + "null" + ], + "title": "Reason" + } + }, + "required": [ + "executionId" + ], + "title": "/Users/marcoscandeia/workspace/live/actions/workflows/cancel.ts@Props" }, "ZGVjby1jeC9kdXJhYmxlL2hhbmRsZXIudHM=@RunRequest": { "type": "object", @@ -4784,7 +4879,7 @@ ], "title": "RunRequest" }, - "ZGVjby1jeC9saXZlL2FjdGlvbnMvd29ya2Zsb3dzL3J1bi50cw==@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3MvcnVuLnRz@Props": { "type": "object", "allOf": [ { @@ -4796,7 +4891,7 @@ "type": "object", "properties": { "workflow": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy93b3JrZmxvdy50cw==@Workflow", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL3dvcmtmbG93LnRz@Workflow", "title": "Workflow" } }, @@ -4809,15 +4904,42 @@ "required": [ "metadata" ], - "title": "deco-cx/live/actions/workflows/run.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/actions/workflows/run.ts@Props" }, - "ZGVjby1jeC9saXZlL2FjdGlvbnMvd29ya2Zsb3dzL3N0YXJ0LnRz@Props": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc2lnbmFsLnRz@Props": { "type": "object", "properties": { - "workflow": { + "signal": { + "type": "string", + "title": "Signal" + }, + "executionId": { "type": "string", + "title": "Execution Id" + }, + "payload": { + "title": "Payload" + } + }, + "required": [ + "signal", + "executionId" + ], + "title": "/Users/marcoscandeia/workspace/live/actions/workflows/signal.ts@Props" + }, + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc3RhcnQudHM=@Props": { + "type": "object", + "properties": { + "workflow": { "title": "Workflow" }, + "id": { + "type": [ + "string", + "null" + ], + "title": "Id" + }, "props": { "type": [ "object", @@ -4836,7 +4958,7 @@ "required": [ "workflow" ], - "title": "deco-cx/live/actions/workflows/start.ts@Props" + "title": "/Users/marcoscandeia/workspace/live/actions/workflows/start.ts@Props" }, "ZGVjby1zaXRlcy9mYXNoaW9uL2FjdGlvbnMvY2hhcmdlLnRz@Props": { "type": "object", @@ -5375,6 +5497,27 @@ } } }, + "JGxpdmUvbG9hZGVycy93b3JrZmxvd3MvZ2V0LnRz": { + "title": "$live/loaders/workflows/get.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbG9hZGVycy93b3JrZmxvd3MvZ2V0LnRz@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/workflows/get.ts" + ], + "default": "$live/loaders/workflows/get.ts" + } + } + }, "ZGVjby1zaXRlcy9zdGQvbG9hZGVycy92dGV4TGVnYWN5UHJvZHVjdERldGFpbHNQYWdlLnRz": { "title": "deco-sites/std/loaders/vtexLegacyProductDetailsPage.ts", "type": "object", @@ -5571,7 +5714,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL2RldlBhZ2UudHM=@DevConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvZGV2UGFnZS50cw==@DevConfig" } ], "required": [ @@ -5592,7 +5735,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL2ZyZXNoLnRz@FreshConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvZnJlc2gudHM=@FreshConfig" } ], "required": [ @@ -5613,7 +5756,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JlZGlyZWN0LnRz@RedirectConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcmVkaXJlY3QudHM=@RedirectConfig" } ], "required": [ @@ -5634,7 +5777,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JvdXRlci50cw==@RouterConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcm91dGVyLnRz@RouterConfig" } ], "required": [ @@ -5655,7 +5798,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL3JvdXRlc1NlbGVjdGlvbi50cw==@SelectionConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvcm91dGVzU2VsZWN0aW9uLnRz@SelectionConfig" } ], "required": [ @@ -5676,7 +5819,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2hhbmRsZXJzL3dvcmtmbG93UnVubmVyLnRz@Config" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvaGFuZGxlcnMvd29ya2Zsb3dSdW5uZXIudHM=@Config" } ], "required": [ @@ -5697,7 +5840,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3BhZ2VzL0xpdmVQYWdlLnRzeA==@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcGFnZXMvTGl2ZVBhZ2UudHN4@Props" } ], "required": [ @@ -5718,7 +5861,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3NlY3Rpb25zL1BhZ2VJbmNsdWRlLnRzeA==@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvUGFnZUluY2x1ZGUudHN4@Props" } ], "required": [ @@ -5739,7 +5882,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3NlY3Rpb25zL1Nsb3QudHN4@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvU2xvdC50c3g=@Props" } ], "required": [ @@ -5760,7 +5903,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3NlY3Rpb25zL1VzZVNsb3QudHN4@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvc2VjdGlvbnMvVXNlU2xvdC50c3g=@Props" } ], "required": [ @@ -6296,7 +6439,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoRGF0ZS50cw==@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hEYXRlLnRz@Props" } ], "required": [ @@ -6317,7 +6460,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoRW52aXJvbm1lbnQudHM=@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hFbnZpcm9ubWVudC50cw==@Props" } ], "required": [ @@ -6338,7 +6481,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoTXVsdGkudHM=@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hNdWx0aS50cw==@Props" } ], "required": [ @@ -6359,7 +6502,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoUmFuZG9tLnRz@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hSYW5kb20udHM=@Props" } ], "required": [ @@ -6380,7 +6523,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoU2l0ZS50cw==@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hTaXRlLnRz@Props" } ], "required": [ @@ -6401,7 +6544,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL21hdGNoZXJzL01hdGNoVXNlckFnZW50LnRz@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvbWF0Y2hlcnMvTWF0Y2hVc2VyQWdlbnQudHM=@Props" } ], "required": [ @@ -6422,7 +6565,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2ZsYWdzL2F1ZGllbmNlLnRz@Audience" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvZmxhZ3MvYXVkaWVuY2UudHM=@Audience" } ], "required": [ @@ -6443,7 +6586,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2ZsYWdzL2V2ZXJ5b25lLnRz@EveryoneConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvZmxhZ3MvZXZlcnlvbmUudHM=@EveryoneConfig" } ], "required": [ @@ -6459,12 +6602,33 @@ } } }, + "JGxpdmUvYWN0aW9ucy93b3JrZmxvd3MvY2FuY2VsLnRz": { + "title": "$live/actions/workflows/cancel.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3MvY2FuY2VsLnRz@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/actions/workflows/cancel.ts" + ], + "default": "$live/actions/workflows/cancel.ts" + } + } + }, "JGxpdmUvYWN0aW9ucy93b3JrZmxvd3MvcnVuLnRz": { "title": "$live/actions/workflows/run.ts", "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2FjdGlvbnMvd29ya2Zsb3dzL3J1bi50cw==@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3MvcnVuLnRz@Props" } ], "required": [ @@ -6480,12 +6644,33 @@ } } }, + "JGxpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc2lnbmFsLnRz": { + "title": "$live/actions/workflows/signal.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc2lnbmFsLnRz@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/actions/workflows/signal.ts" + ], + "default": "$live/actions/workflows/signal.ts" + } + } + }, "JGxpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc3RhcnQudHM=": { "title": "$live/actions/workflows/start.ts", "type": "object", "allOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2FjdGlvbnMvd29ya2Zsb3dzL3N0YXJ0LnRz@Props" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc3RhcnQudHM=@Props" } ], "required": [ @@ -6543,7 +6728,7 @@ } } }, - "ZGVjby1jeC9saXZlL3JvdXRlcy9fbWlkZGxld2FyZS50cw==@MiddlewareConfig": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcm91dGVzL19taWRkbGV3YXJlLnRz@MiddlewareConfig": { "type": "object", "properties": { "state": { @@ -6558,14 +6743,14 @@ "required": [ "state" ], - "title": "deco-cx/live/routes/_middleware.ts@MiddlewareConfig", + "title": "/Users/marcoscandeia/workspace/live/routes/_middleware.ts@MiddlewareConfig", "description": "Global configurations for ./routes/_middleware.ts route" }, - "ZGVjby1jeC9saXZlL3JvdXRlcy9bLi4uY2F0Y2hhbGxdLnRzeA==@Entrypoint": { + "L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcm91dGVzL1suLi5jYXRjaGFsbF0udHN4@Entrypoint": { "type": "object", "properties": { "handler": { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL2Jsb2Nrcy9oYW5kbGVyLnRz@Handler", + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvYmxvY2tzL2hhbmRsZXIudHM=@Handler", "description": "configure how to handle requests.", "title": "Handler" } @@ -6573,7 +6758,7 @@ "required": [ "handler" ], - "title": "deco-cx/live/routes/[...catchall].tsx@Entrypoint", + "title": "/Users/marcoscandeia/workspace/live/routes/[...catchall].tsx@Entrypoint", "description": "Site entrypoint, configure your audiences and routes." } }, @@ -6678,6 +6863,9 @@ { "$ref": "#/definitions/Resolvable" }, + { + "$ref": "#/definitions/JGxpdmUvbG9hZGVycy93b3JrZmxvd3MvZ2V0LnRz" + }, { "$ref": "#/definitions/ZGVjby1zaXRlcy9zdGQvbG9hZGVycy92dGV4TGVnYWN5UHJvZHVjdERldGFpbHNQYWdlLnRz" }, @@ -6896,9 +7084,15 @@ { "$ref": "#/definitions/Resolvable" }, + { + "$ref": "#/definitions/JGxpdmUvYWN0aW9ucy93b3JrZmxvd3MvY2FuY2VsLnRz" + }, { "$ref": "#/definitions/JGxpdmUvYWN0aW9ucy93b3JrZmxvd3MvcnVuLnRz" }, + { + "$ref": "#/definitions/JGxpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc2lnbmFsLnRz" + }, { "$ref": "#/definitions/JGxpdmUvYWN0aW9ucy93b3JrZmxvd3Mvc3RhcnQudHM=" }, @@ -6929,21 +7123,21 @@ "./routes/_middleware.ts": { "anyOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3JvdXRlcy9fbWlkZGxld2FyZS50cw==@MiddlewareConfig" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcm91dGVzL19taWRkbGV3YXJlLnRz@MiddlewareConfig" } ] }, "./routes/[...catchall].tsx": { "anyOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3JvdXRlcy9bLi4uY2F0Y2hhbGxdLnRzeA==@Entrypoint" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcm91dGVzL1suLi5jYXRjaGFsbF0udHN4@Entrypoint" } ] }, "./routes/index.tsx": { "anyOf": [ { - "$ref": "#/definitions/ZGVjby1jeC9saXZlL3JvdXRlcy9bLi4uY2F0Y2hhbGxdLnRzeA==@Entrypoint" + "$ref": "#/definitions/L1VzZXJzL21hcmNvc2NhbmRlaWEvd29ya3NwYWNlL2xpdmUvcm91dGVzL1suLi5jYXRjaGFsbF0udHN4@Entrypoint" } ] } diff --git a/workflows/simple.ts b/workflows/simple.ts index 3fe629f9..9fe0828e 100644 --- a/workflows/simple.ts +++ b/workflows/simple.ts @@ -20,7 +20,8 @@ export default function Simple({ sleepTime }: Props): Workflow { value: 20, }, }); + const { newValue } = yield _ctx.waitForSignal("my-signal"); console.log("the charged value", chargedValue2); - console.log("TOTAL", chargedValue1.value + chargedValue2.value); + return chargedValue1.value + chargedValue2.value + newValue; }; }