@voiceflow/utils-designer 1.42.2 → 1.42.4

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,14 @@ 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
+ settings: {
112
+ local: boolean;
113
+ };
114
+ })[] | undefined;
108
115
  };
109
116
  type: "start";
110
117
  nodeID: string;
@@ -187,8 +194,8 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
187
194
  };
188
195
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
196
  data: {
190
- items: {
191
- type: "intent" | "event";
197
+ items: ({
198
+ type: "intent";
192
199
  id: string;
193
200
  resourceID: string | null;
194
201
  settings: {
@@ -209,7 +216,14 @@ export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOption
209
216
  } | null | undefined;
210
217
  } | null | undefined;
211
218
  mappings?: any;
212
- }[];
219
+ } | {
220
+ type: "event";
221
+ id: string;
222
+ resourceID: string | null;
223
+ settings: {
224
+ local: boolean;
225
+ };
226
+ })[];
213
227
  portsV2: {
214
228
  byKey: Record<string, {
215
229
  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,EAA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B,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,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,14 @@ 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
+ settings: {
112
+ local: boolean;
113
+ };
114
+ })[] | undefined;
108
115
  };
109
116
  type: "start";
110
117
  nodeID: string;
@@ -187,8 +194,8 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
187
194
  };
188
195
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
196
  data: {
190
- items: {
191
- type: "intent" | "event";
197
+ items: ({
198
+ type: "intent";
192
199
  id: string;
193
200
  resourceID: string | null;
194
201
  settings: {
@@ -209,7 +216,14 @@ export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOption
209
216
  } | null | undefined;
210
217
  } | null | undefined;
211
218
  mappings?: any;
212
- }[];
219
+ } | {
220
+ type: "event";
221
+ id: string;
222
+ resourceID: string | null;
223
+ settings: {
224
+ local: boolean;
225
+ };
226
+ })[];
213
227
  portsV2: {
214
228
  byKey: Record<string, {
215
229
  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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.42.2",
3
+ "version": "1.42.4",
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.177.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": "4ec74a2253ecfbe7522a16080dc32fa870cef50f"
46
46
  }