@voiceflow/utils-designer 1.42.2 → 1.42.3

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.
@@ -82,8 +82,8 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
82
82
  label?: string | undefined;
83
83
  color?: string | undefined;
84
84
  steps?: string[] | undefined;
85
- triggers?: {
86
- type: "intent" | "event";
85
+ triggers?: ({
86
+ type: "intent";
87
87
  id: string;
88
88
  resourceID: string | null;
89
89
  settings: {
@@ -104,7 +104,11 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
104
104
  } | null | undefined;
105
105
  } | null | undefined;
106
106
  mappings?: any;
107
- }[] | undefined;
107
+ } | {
108
+ type: "event";
109
+ id: string;
110
+ resourceID: string | null;
111
+ })[] | undefined;
108
112
  };
109
113
  type: "start";
110
114
  nodeID: string;
@@ -187,8 +191,8 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
187
191
  };
188
192
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
193
  data: {
190
- items: {
191
- type: "intent" | "event";
194
+ items: ({
195
+ type: "intent";
192
196
  id: string;
193
197
  resourceID: string | null;
194
198
  settings: {
@@ -209,7 +213,11 @@ export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOption
209
213
  } | null | undefined;
210
214
  } | null | undefined;
211
215
  mappings?: any;
212
- }[];
216
+ } | {
217
+ type: "event";
218
+ id: string;
219
+ resourceID: string | null;
220
+ })[];
213
221
  portsV2: {
214
222
  byKey: Record<string, {
215
223
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"node.util.d.ts","sourceRoot":"","sources":["../../src/node.util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKtF,eAAO,MAAM,kBAAkB;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,CAAC,GAAG;IACzE,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAqD,mBAAmB,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3G,CAAC;AAEL,eAAO,MAAM,gBAAgB,sBAAuB,mBAAmB,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7E,CAAC;AAEL,eAAO,MAAM,kBAAkB,wBAAwB,mBAAmB,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalF,CAAC"}
@@ -82,8 +82,8 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
82
82
  label?: string | undefined;
83
83
  color?: string | undefined;
84
84
  steps?: string[] | undefined;
85
- triggers?: {
86
- type: "intent" | "event";
85
+ triggers?: ({
86
+ type: "intent";
87
87
  id: string;
88
88
  resourceID: string | null;
89
89
  settings: {
@@ -104,7 +104,11 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
104
104
  } | null | undefined;
105
105
  } | null | undefined;
106
106
  mappings?: any;
107
- }[] | undefined;
107
+ } | {
108
+ type: "event";
109
+ id: string;
110
+ resourceID: string | null;
111
+ })[] | undefined;
108
112
  };
109
113
  type: "start";
110
114
  nodeID: string;
@@ -187,8 +191,8 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
187
191
  };
188
192
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
193
  data: {
190
- items: {
191
- type: "intent" | "event";
194
+ items: ({
195
+ type: "intent";
192
196
  id: string;
193
197
  resourceID: string | null;
194
198
  settings: {
@@ -209,7 +213,11 @@ export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOption
209
213
  } | null | undefined;
210
214
  } | null | undefined;
211
215
  mappings?: any;
212
- }[];
216
+ } | {
217
+ type: "event";
218
+ id: string;
219
+ resourceID: string | null;
220
+ })[];
213
221
  portsV2: {
214
222
  byKey: Record<string, {
215
223
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"node.util.d.ts","sourceRoot":"","sources":["../../src/node.util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKtF,eAAO,MAAM,kBAAkB;;;;;SAAoC,KAAK,IAAI,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,IAIpG,CAAC;AAEb,KAAK,kBAAkB,CAAC,IAAI,SAAS,WAAW,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG;IACzE,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAqD,mBAAmB,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3G,CAAC;AAEL,eAAO,MAAM,gBAAgB,sBAAuB,mBAAmB,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7E,CAAC;AAEL,eAAO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GED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.42.2",
3
+ "version": "1.42.3",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@voiceflow/common": "8.3.1",
34
- "@voiceflow/dtos": "1.175.2",
34
+ "@voiceflow/dtos": "1.176.0",
35
35
  "bidirectional-adapter": "1.2.1",
36
36
  "slate": "^0.103.0",
37
37
  "zod": "3.22.4"
@@ -42,5 +42,5 @@
42
42
  "volta": {
43
43
  "extends": "../../package.json"
44
44
  },
45
- "gitHead": "2ce66443e3483b9750d69ef75dd668700f242925"
45
+ "gitHead": "38ed6bb6808ccc3dbb55c084a84b437ee3ed887c"
46
46
  }