@engyalo/workflow-types 1.0.104 → 1.0.105-agent-component-c393eac
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/lib/models/components.d.ts +11 -1
- package/lib/models/components.js +3 -1
- package/lib/models/components.js.map +1 -1
- package/package.json +101 -101
|
@@ -12,7 +12,9 @@ export declare enum IComponentType {
|
|
|
12
12
|
extension = "extension",
|
|
13
13
|
genieTrainer = "genieTrainer",
|
|
14
14
|
salesDesk = "salesDesk",
|
|
15
|
-
flow = "flow"
|
|
15
|
+
flow = "flow",
|
|
16
|
+
knowledgeGenie = "knowledgeGenie",
|
|
17
|
+
agent = "agent"
|
|
16
18
|
}
|
|
17
19
|
export declare const ComponentTypeEnum: string[];
|
|
18
20
|
export interface IFunnel {
|
|
@@ -39,6 +41,13 @@ export interface IAiTrainer {
|
|
|
39
41
|
stepId: number;
|
|
40
42
|
}[];
|
|
41
43
|
}
|
|
44
|
+
export interface IKnowledgeGenie {
|
|
45
|
+
genieId: string;
|
|
46
|
+
intents: {
|
|
47
|
+
intent: string;
|
|
48
|
+
stepId: number;
|
|
49
|
+
}[];
|
|
50
|
+
}
|
|
42
51
|
export interface IComponent {
|
|
43
52
|
componentId: number;
|
|
44
53
|
activityId: string;
|
|
@@ -56,6 +65,7 @@ export interface IComponent {
|
|
|
56
65
|
funnel?: IFunnel[];
|
|
57
66
|
ai?: IAi;
|
|
58
67
|
AITrainer?: IAiTrainer;
|
|
68
|
+
knowledgeGenie?: IKnowledgeGenie;
|
|
59
69
|
createdAt: Date;
|
|
60
70
|
}
|
|
61
71
|
export interface IComponentLight {
|
package/lib/models/components.js
CHANGED
|
@@ -15,6 +15,8 @@ var IComponentType;
|
|
|
15
15
|
IComponentType["genieTrainer"] = "genieTrainer";
|
|
16
16
|
IComponentType["salesDesk"] = "salesDesk";
|
|
17
17
|
IComponentType["flow"] = "flow";
|
|
18
|
+
IComponentType["knowledgeGenie"] = "knowledgeGenie";
|
|
19
|
+
IComponentType["agent"] = "agent";
|
|
18
20
|
})(IComponentType || (exports.IComponentType = IComponentType = {}));
|
|
19
|
-
exports.ComponentTypeEnum = ['start', 'step', 'scope', 'campaign', 'webhook', 'aistep', 'extension', 'genieTrainer', 'salesDesk', 'flow'];
|
|
21
|
+
exports.ComponentTypeEnum = ['start', 'step', 'scope', 'campaign', 'webhook', 'aistep', 'extension', 'genieTrainer', 'salesDesk', 'flow', 'knowledgeGenie', 'agent'];
|
|
20
22
|
//# sourceMappingURL=components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAIA,oDAAoD;AACpD,IAAY,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAIA,oDAAoD;AACpD,IAAY,cAcX;AAdD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,mDAAiC,CAAA;IACjC,iCAAe,CAAA;AAChB,CAAC,EAdW,cAAc,8BAAd,cAAc,QAczB;AAEY,QAAA,iBAAiB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
2
|
+
"name": "@engyalo/workflow-types",
|
|
3
|
+
"version": "1.0.105-agent-component-c393eac",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"types": "./lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint . --ext ts --fix",
|
|
9
|
+
"tsc": "tsc --build",
|
|
10
|
+
"clearjs": "npx rimraf ./lib",
|
|
11
|
+
"pretest": "npx typescript-json-schema src/models/workflows.ts \"*\" --strictNullChecks --noExtraProps --required --id workflowsSchema -o tests/schemas/workflows.schema.json",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"prebuild": "npm run clearjs",
|
|
14
|
+
"build": "npm run tsc"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git@github.com:yalochat/worfklows-types.git"
|
|
19
|
+
},
|
|
20
|
+
"directories": {
|
|
21
|
+
"lib": "lib"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"lib"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"workflow",
|
|
28
|
+
"types"
|
|
29
|
+
],
|
|
30
|
+
"author": "Engineering @ Yalo",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"eslintConfig": {
|
|
33
|
+
"extends": [
|
|
34
|
+
"plugin:@typescript-eslint/recommended",
|
|
35
|
+
"plugin:prettier/recommended"
|
|
36
|
+
],
|
|
37
|
+
"parser": "@typescript-eslint/parser",
|
|
38
|
+
"rules": {
|
|
39
|
+
"quotes": [
|
|
40
|
+
2,
|
|
41
|
+
"single",
|
|
42
|
+
"avoid-escape"
|
|
43
|
+
],
|
|
44
|
+
"no-debugger": "error",
|
|
45
|
+
"no-process-env": "off",
|
|
46
|
+
"import/prefer-default-export": "off",
|
|
47
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
48
|
+
"@typescript-eslint/no-unused-vars": [
|
|
49
|
+
"error",
|
|
50
|
+
{
|
|
51
|
+
"vars": "all",
|
|
52
|
+
"args": "after-used",
|
|
53
|
+
"ignoreRestSiblings": true
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"new-cap": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
"capIsNewExceptions": [
|
|
60
|
+
"Injectable",
|
|
61
|
+
"Inject"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"prefer-destructuring": [
|
|
66
|
+
"error",
|
|
67
|
+
{
|
|
68
|
+
"VariableDeclarator": {
|
|
69
|
+
"array": false,
|
|
70
|
+
"object": true
|
|
71
|
+
},
|
|
72
|
+
"AssignmentExpression": {
|
|
73
|
+
"array": true,
|
|
74
|
+
"object": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"enforceForRenamedProperties": false
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@types/jest": "29.5.8",
|
|
85
|
+
"@types/jest-json-schema": "6.1.4",
|
|
86
|
+
"@types/node": "^16.18.114",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "6.10.0",
|
|
88
|
+
"@typescript-eslint/parser": "6.10.0",
|
|
89
|
+
"eslint": "8.53.0",
|
|
90
|
+
"eslint-config-prettier": "9.0.0",
|
|
91
|
+
"eslint-plugin-import": "2.29.0",
|
|
92
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
93
|
+
"jest": "29.7.0",
|
|
94
|
+
"jest-json-schema": "6.1.0",
|
|
95
|
+
"prettier": "3.0.3",
|
|
96
|
+
"ts-jest": "29.1.1",
|
|
97
|
+
"typescript": "5.2.2"
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"zod": "3.22.4"
|
|
101
|
+
}
|
|
102
|
+
}
|