@voiceflow/utils-designer 1.11.0 → 1.12.1
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/cjs/flow.util.d.ts +8 -0
- package/build/cjs/flow.util.d.ts.map +1 -0
- package/build/cjs/flow.util.js +6 -0
- package/build/cjs/main.d.ts +1 -0
- package/build/cjs/main.d.ts.map +1 -1
- package/build/cjs/main.js +1 -0
- package/build/esm/flow.util.d.ts +8 -0
- package/build/esm/flow.util.d.ts.map +1 -0
- package/build/esm/flow.util.js +3 -0
- package/build/esm/main.d.ts +1 -0
- package/build/esm/main.d.ts.map +1 -1
- package/build/esm/main.js +1 -0
- package/package.json +3 -3
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { Flow } from '@voiceflow/dtos';
|
2
|
+
export declare const flowNameUniqValidator: import("./main").IValidatorWithContext<string, {
|
3
|
+
flows: Flow[];
|
4
|
+
}>;
|
5
|
+
export declare const flowNameValidator: import("./main").IValidatorWithContext<string, {
|
6
|
+
flows: Flow[];
|
7
|
+
}>;
|
8
|
+
//# sourceMappingURL=flow.util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flow.util.d.ts","sourceRoot":"","sources":["../../src/flow.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,qBAAqB;WACG,IAAI,EAAE;EAG1C,CAAC;AAEF,eAAO,MAAM,iBAAiB;WALO,IAAI,EAAE;EAK8B,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.flowNameValidator = exports.flowNameUniqValidator = void 0;
|
4
|
+
const validator_util_1 = require("./validator/validator.util");
|
5
|
+
exports.flowNameUniqValidator = (0, validator_util_1.validatorFactory)((name, { flows }) => flows.every((flow) => flow.name.toLocaleLowerCase() !== name.toLocaleLowerCase()), () => `flow name already exists.`);
|
6
|
+
exports.flowNameValidator = (0, validator_util_1.composeValidators)(exports.flowNameUniqValidator);
|
package/build/cjs/main.d.ts
CHANGED
package/build/cjs/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
|
package/build/cjs/main.js
CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./entity.util"), exports);
|
18
|
+
__exportStar(require("./flow.util"), exports);
|
18
19
|
__exportStar(require("./intent.util"), exports);
|
19
20
|
__exportStar(require("./markup.util"), exports);
|
20
21
|
__exportStar(require("./request.util"), exports);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { Flow } from '@voiceflow/dtos';
|
2
|
+
export declare const flowNameUniqValidator: import("./main.js").IValidatorWithContext<string, {
|
3
|
+
flows: Flow[];
|
4
|
+
}>;
|
5
|
+
export declare const flowNameValidator: import("./main.js").IValidatorWithContext<string, {
|
6
|
+
flows: Flow[];
|
7
|
+
}>;
|
8
|
+
//# sourceMappingURL=flow.util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flow.util.d.ts","sourceRoot":"","sources":["../../src/flow.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,qBAAqB;WACG,IAAI,EAAE;EAG1C,CAAC;AAEF,eAAO,MAAM,iBAAiB;WALO,IAAI,EAAE;EAK8B,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { composeValidators, validatorFactory } from './validator/validator.util.js';
|
2
|
+
export const flowNameUniqValidator = validatorFactory((name, { flows }) => flows.every((flow) => flow.name.toLocaleLowerCase() !== name.toLocaleLowerCase()), () => `flow name already exists.`);
|
3
|
+
export const flowNameValidator = composeValidators(flowNameUniqValidator);
|
package/build/esm/main.d.ts
CHANGED
package/build/esm/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
|
package/build/esm/main.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@voiceflow/utils-designer",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.12.1",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"types": "./build/cjs/main.d.ts",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@voiceflow/common": "8.2.7",
|
39
|
-
"@voiceflow/dtos": "1.35.
|
39
|
+
"@voiceflow/dtos": "1.35.1",
|
40
40
|
"bidirectional-adapter": "1.2.1",
|
41
41
|
"ts-pattern": "^5.0.5",
|
42
42
|
"zod": "3.22.4"
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"tsd": {
|
56
56
|
"directory": "src"
|
57
57
|
},
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "3610240eda5b081bbd1817f396a97d9d4047e1d0"
|
59
59
|
}
|