@voiceflow/utils-designer 1.32.0 → 1.33.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.
@@ -8,6 +8,7 @@ export * from './intent.util';
8
8
  export * from './markup.util';
9
9
  export * from './node.util';
10
10
  export * from './node-port.util';
11
+ export * from './prompt.util';
11
12
  export * from './request.util';
12
13
  export * from './slate.util';
13
14
  export * from './validator/validator.interface';
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
package/build/cjs/main.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./intent.util"), exports);
24
24
  __exportStar(require("./markup.util"), exports);
25
25
  __exportStar(require("./node.util"), exports);
26
26
  __exportStar(require("./node-port.util"), exports);
27
+ __exportStar(require("./prompt.util"), exports);
27
28
  __exportStar(require("./request.util"), exports);
28
29
  __exportStar(require("./slate.util"), exports);
29
30
  __exportStar(require("./validator/validator.interface"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,+CAA6B;AAC7B,kEAAgD;AAChD,6DAA2C;AAC3C,kDAAgC;AAChC,kDAAgC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,8CAA4B;AAC5B,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,kEAAgD;AAChD,6DAA2C;AAC3C,kDAAgC;AAChC,kDAAgC"}
@@ -0,0 +1,2 @@
1
+ export declare const promptNameValidator: import("./main").IValidator<string>;
2
+ //# sourceMappingURL=prompt.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.util.d.ts","sourceRoot":"","sources":["../../src/prompt.util.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,qCAA4C,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.promptNameValidator = void 0;
4
+ const dtos_1 = require("@voiceflow/dtos");
5
+ const validator_util_1 = require("./validator/validator.util");
6
+ exports.promptNameValidator = (0, validator_util_1.validatorZodFactory)(dtos_1.PromptDTO.shape.name);
7
+ //# sourceMappingURL=prompt.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.util.js","sourceRoot":"","sources":["../../src/prompt.util.ts"],"names":[],"mappings":";;;AAAA,0CAA4C;AAE5C,+DAAiE;AAEpD,QAAA,mBAAmB,GAAG,IAAA,oCAAmB,EAAC,gBAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"}
@@ -8,6 +8,7 @@ export * from './intent.util.js';
8
8
  export * from './markup.util.js';
9
9
  export * from './node.util.js';
10
10
  export * from './node-port.util.js';
11
+ export * from './prompt.util.js';
11
12
  export * from './request.util.js';
12
13
  export * from './slate.util.js';
13
14
  export * from './validator/validator.interface.js';
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
package/build/esm/main.js CHANGED
@@ -8,6 +8,7 @@ export * from './intent.util.js';
8
8
  export * from './markup.util.js';
9
9
  export * from './node.util.js';
10
10
  export * from './node-port.util.js';
11
+ export * from './prompt.util.js';
11
12
  export * from './request.util.js';
12
13
  export * from './slate.util.js';
13
14
  export * from './validator/validator.interface.js';
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const promptNameValidator: import("./main.js").IValidator<string>;
2
+ //# sourceMappingURL=prompt.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.util.d.ts","sourceRoot":"","sources":["../../src/prompt.util.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,qCAA4C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { PromptDTO } from '@voiceflow/dtos';
2
+ import { validatorZodFactory } from './validator/validator.util.js';
3
+ export const promptNameValidator = validatorZodFactory(PromptDTO.shape.name);
4
+ //# sourceMappingURL=prompt.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.util.js","sourceRoot":"","sources":["../../src/prompt.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -43,5 +43,5 @@
43
43
  "volta": {
44
44
  "extends": "../../package.json"
45
45
  },
46
- "gitHead": "960df56da34ba701798f1fd6fcd2471863849e0e"
46
+ "gitHead": "b5d7920b65900fb10b8f4d524769710c9298fbaf"
47
47
  }