@engyalo/workflow-types 1.1.2 → 1.1.3-release-1-1-3-e38238a
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 +27 -1
- package/lib/models/components.js +2 -0
- package/lib/models/components.js.map +1 -1
- package/lib/models/index.d.ts +1 -1
- package/lib/models/index.js.map +1 -1
- package/package.json +104 -104
|
@@ -22,7 +22,8 @@ export declare enum IComponentType {
|
|
|
22
22
|
customAgent = "customAgent",
|
|
23
23
|
voiceUpsellAgent = "voiceUpsellAgent",
|
|
24
24
|
orisVoice = "orisVoice",
|
|
25
|
-
customVoiceAgent = "customVoiceAgent"
|
|
25
|
+
customVoiceAgent = "customVoiceAgent",
|
|
26
|
+
orisB2C = "orisB2C"
|
|
26
27
|
}
|
|
27
28
|
export declare const ComponentTypeEnum: string[];
|
|
28
29
|
export interface IFunnel {
|
|
@@ -146,6 +147,30 @@ export interface OrisVoice {
|
|
|
146
147
|
slangExpressions?: string;
|
|
147
148
|
from?: IVoiceFrom;
|
|
148
149
|
}
|
|
150
|
+
export interface OrisB2C {
|
|
151
|
+
id?: string;
|
|
152
|
+
agentName: string;
|
|
153
|
+
companyName: string;
|
|
154
|
+
customerName: string;
|
|
155
|
+
firstMessage: string;
|
|
156
|
+
brandGuidelines?: string;
|
|
157
|
+
guardrails?: {
|
|
158
|
+
prohibitedTopics?: string;
|
|
159
|
+
};
|
|
160
|
+
commerceSettings: {
|
|
161
|
+
customerCode: string;
|
|
162
|
+
storefrontName: string;
|
|
163
|
+
};
|
|
164
|
+
flow: {
|
|
165
|
+
flowId: string;
|
|
166
|
+
step: string;
|
|
167
|
+
stepName?: string;
|
|
168
|
+
stepType: string;
|
|
169
|
+
activityId: string;
|
|
170
|
+
};
|
|
171
|
+
localeCode: string | 'en-US' | 'es-MX' | 'pt-BR';
|
|
172
|
+
additionalInformation?: string;
|
|
173
|
+
}
|
|
149
174
|
interface JSONSchema {
|
|
150
175
|
type?: string | string[];
|
|
151
176
|
properties?: Record<string, JSONSchema>;
|
|
@@ -209,6 +234,7 @@ export interface IComponent {
|
|
|
209
234
|
notification?: INotification;
|
|
210
235
|
orisVoice?: OrisVoice;
|
|
211
236
|
customVoiceAgent?: CustomVoiceAgent;
|
|
237
|
+
orisB2C?: OrisB2C;
|
|
212
238
|
}
|
|
213
239
|
export interface IComponentLight {
|
|
214
240
|
_id?: string;
|
package/lib/models/components.js
CHANGED
|
@@ -24,6 +24,7 @@ var IComponentType;
|
|
|
24
24
|
IComponentType["voiceUpsellAgent"] = "voiceUpsellAgent";
|
|
25
25
|
IComponentType["orisVoice"] = "orisVoice";
|
|
26
26
|
IComponentType["customVoiceAgent"] = "customVoiceAgent";
|
|
27
|
+
IComponentType["orisB2C"] = "orisB2C";
|
|
27
28
|
})(IComponentType || (exports.IComponentType = IComponentType = {}));
|
|
28
29
|
exports.ComponentTypeEnum = [
|
|
29
30
|
'start',
|
|
@@ -45,6 +46,7 @@ exports.ComponentTypeEnum = [
|
|
|
45
46
|
'voiceUpsellAgent',
|
|
46
47
|
'orisVoice',
|
|
47
48
|
'customVoiceAgent',
|
|
49
|
+
'orisB2C',
|
|
48
50
|
];
|
|
49
51
|
var DaysOfWeek;
|
|
50
52
|
(function (DaysOfWeek) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAKA,oDAAoD;AACpD,IAAY,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAKA,oDAAoD;AACpD,IAAY,cAsBX;AAtBD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IACzC,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;AACpB,CAAC,EAtBW,cAAc,8BAAd,cAAc,QAsBzB;AAEY,QAAA,iBAAiB,GAAG;IAChC,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,QAAQ;IACR,WAAW;IACX,cAAc;IACd,WAAW;IACX,MAAM;IACN,gBAAgB;IAChB,OAAO;IACP,oBAAoB;IACpB,UAAU;IACV,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,SAAS;CACT,CAAC;AA4aF,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,+CAAU,CAAA;IACV,+CAAU,CAAA;IACV,iDAAW,CAAA;IACX,qDAAa,CAAA;IACb,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,mDAAY,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,6CAA6B,CAAA;IAC7B,2CAA2B,CAAA;AAC5B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { IGeneralStatus } from './status';
|
|
|
3
3
|
export { TriggerTypes, ITriggers } from './triggers';
|
|
4
4
|
export { IWorkflow, IWorkflowCreatePayload, IWorkflowCreateRespose, IWorkflowUpdatePayload, IWorkflowUpdateResponse, IWorkflowDeletePayload, IWorkflowDeleteResponse } from './workflows';
|
|
5
5
|
export { IActivity, IActivityRelease, IActivityEvent } from './activities';
|
|
6
|
-
export { IComponent, IComponentLight, IComponentConfig, IActionUI, IReactionUI, IReminderUI, ITriggersUI, ISourceUI, IContentUI, IContentThenUI, ComponentTypeEnum, IComponentType, LinkComponent, LinkItem, IEventUI, CustomVoiceAgent, OrisVoice, CustomAgent, VoiceUpsellAgent, } from './components';
|
|
6
|
+
export { IComponent, IComponentLight, IComponentConfig, IActionUI, IReactionUI, IReminderUI, ITriggersUI, ISourceUI, IContentUI, IContentThenUI, ComponentTypeEnum, IComponentType, LinkComponent, LinkItem, IEventUI, CustomVoiceAgent, OrisVoice, OrisB2C, CustomAgent, VoiceUpsellAgent, } from './components';
|
|
7
7
|
export { IChannel, IFacebookChannel, IWhatsAppChannel } from './channel';
|
|
8
8
|
export { IReaction, ITrigger, IAction } from './step';
|
|
9
9
|
export { IUser, IAccessUserLog } from './users';
|
package/lib/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmG;AAAjF,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AACpE,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmG;AAAjF,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AACpE,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,2CAqBsB;AAVrB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AAgBf,uCAeoB;AAXnB,2GAAA,eAAe,OAAA;AACf,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,yHAAA,6BAA6B,OAAA;AAC7B,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,O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
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
2
|
+
"name": "@engyalo/workflow-types",
|
|
3
|
+
"version": "1.1.3-release-1-1-3-e38238a",
|
|
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
|
+
"overrides": {
|
|
103
|
+
"cross-spawn": "7.0.6"
|
|
104
|
+
}
|
|
105
|
+
}
|