@webitel/ui-sdk 26.4.19 → 26.4.20
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/package.json +5 -1
- package/src/api/clients/flows/flow.js +2 -4
- package/src/locale/en/en.js +5 -2
- package/src/locale/es/es.js +5 -2
- package/src/locale/kz/kz.js +5 -2
- package/src/locale/pl/pl.js +5 -2
- package/src/locale/ro/ro.js +5 -2
- package/src/locale/ru/ru.js +5 -2
- package/src/locale/uk/uk.js +5 -2
- package/src/locale/uz/uz.js +5 -2
- package/src/locale/vi/vi.js +5 -2
- package/src/modules/Flow/enums/FlowApp.enum.ts +88 -0
- package/src/modules/Flow/index.ts +2 -0
- package/src/modules/Flow/lookups/FlowTypeApplications.lookup.ts +120 -0
- package/types/locale/en/en.d.ts +1 -0
- package/types/locale/es/es.d.ts +2 -0
- package/types/locale/i18n.d.ts +9 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/kz/kz.d.ts +2 -0
- package/types/locale/pl/pl.d.ts +2 -0
- package/types/locale/ro/ro.d.ts +2 -0
- package/types/locale/ru/ru.d.ts +2 -0
- package/types/locale/uk/uk.d.ts +2 -0
- package/types/locale/uz/uz.d.ts +2 -0
- package/types/locale/vi/vi.d.ts +2 -0
- package/types/modules/Flow/enums/FlowApp.enum.d.ts +83 -0
- package/types/modules/Flow/index.d.ts +2 -0
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
|
|
@@ -310,6 +310,10 @@
|
|
|
310
310
|
"types": "./types/modules*",
|
|
311
311
|
"import": "./src/modules*"
|
|
312
312
|
},
|
|
313
|
+
"./modules/Flow": {
|
|
314
|
+
"types": "./types/modules/Flow/index.d.ts",
|
|
315
|
+
"import": "./src/modules/Flow/index.ts"
|
|
316
|
+
},
|
|
313
317
|
"./modules/FilesExport": {
|
|
314
318
|
"types": "./types/modules/FilesExport/index.d.ts",
|
|
315
319
|
"import": "./src/modules/FilesExport/index.ts"
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
RoutingSchemaServiceApiFactory,
|
|
4
|
-
} from 'webitel-sdk';
|
|
1
|
+
import { EngineRoutingSchemaType } from '@webitel/api-services/gen/models';
|
|
2
|
+
import { RoutingSchemaServiceApiFactory } from 'webitel-sdk';
|
|
5
3
|
|
|
6
4
|
import {
|
|
7
5
|
getDefaultGetListResponse,
|
package/src/locale/en/en.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import deepmerge from 'deepmerge';
|
|
3
6
|
import {
|
|
4
7
|
AgentStatus,
|
|
5
8
|
CallDirection,
|
|
6
9
|
ChannelState,
|
|
7
10
|
ChannelType,
|
|
8
|
-
EngineRoutingSchemaType,
|
|
9
11
|
} from 'webitel-sdk';
|
|
10
12
|
|
|
11
13
|
import {
|
|
@@ -231,6 +233,7 @@ export default deepmerge(
|
|
|
231
233
|
[EngineRoutingSchemaType.Voice]: 'Voice',
|
|
232
234
|
[EngineRoutingSchemaType.Service]: 'Service',
|
|
233
235
|
[EngineRoutingSchemaType.Processing]: 'Forms',
|
|
236
|
+
[EngineRoutingSchemaType.Default]: 'No type',
|
|
234
237
|
},
|
|
235
238
|
},
|
|
236
239
|
messengers: {
|
package/src/locale/es/es.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -223,6 +225,7 @@ export default {
|
|
|
223
225
|
[EngineRoutingSchemaType.Voice]: 'Voz',
|
|
224
226
|
[EngineRoutingSchemaType.Service]: 'Servicio',
|
|
225
227
|
[EngineRoutingSchemaType.Processing]: 'Formularios',
|
|
228
|
+
[EngineRoutingSchemaType.Default]: 'Sin tipo',
|
|
226
229
|
},
|
|
227
230
|
},
|
|
228
231
|
messengers: {
|
package/src/locale/kz/kz.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -228,6 +230,7 @@ export default {
|
|
|
228
230
|
[EngineRoutingSchemaType.Voice]: 'Дауыс',
|
|
229
231
|
[EngineRoutingSchemaType.Service]: 'Қызмет',
|
|
230
232
|
[EngineRoutingSchemaType.Processing]: 'Пішіндер',
|
|
233
|
+
[EngineRoutingSchemaType.Default]: 'Түрі жоқ',
|
|
231
234
|
},
|
|
232
235
|
},
|
|
233
236
|
messengers: {
|
package/src/locale/pl/pl.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -228,6 +230,7 @@ export default {
|
|
|
228
230
|
[EngineRoutingSchemaType.Voice]: 'Głos',
|
|
229
231
|
[EngineRoutingSchemaType.Service]: 'Usługa',
|
|
230
232
|
[EngineRoutingSchemaType.Processing]: 'Formularze',
|
|
233
|
+
[EngineRoutingSchemaType.Default]: 'Brak typu',
|
|
231
234
|
},
|
|
232
235
|
},
|
|
233
236
|
messengers: {
|
package/src/locale/ro/ro.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -228,6 +230,7 @@ export default {
|
|
|
228
230
|
[EngineRoutingSchemaType.Voice]: 'Voce',
|
|
229
231
|
[EngineRoutingSchemaType.Service]: 'Serviciu',
|
|
230
232
|
[EngineRoutingSchemaType.Processing]: 'Formulare',
|
|
233
|
+
[EngineRoutingSchemaType.Default]: 'Fără tip',
|
|
231
234
|
},
|
|
232
235
|
},
|
|
233
236
|
messengers: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -224,6 +226,7 @@ export default {
|
|
|
224
226
|
[EngineRoutingSchemaType.Voice]: 'Голосовая',
|
|
225
227
|
[EngineRoutingSchemaType.Service]: 'Служебная',
|
|
226
228
|
[EngineRoutingSchemaType.Processing]: 'Формы',
|
|
229
|
+
[EngineRoutingSchemaType.Default]: 'Нет типа',
|
|
227
230
|
},
|
|
228
231
|
},
|
|
229
232
|
messengers: {
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -223,6 +225,7 @@ export default {
|
|
|
223
225
|
[EngineRoutingSchemaType.Voice]: 'Голосова',
|
|
224
226
|
[EngineRoutingSchemaType.Service]: 'Службова',
|
|
225
227
|
[EngineRoutingSchemaType.Processing]: 'Форми',
|
|
228
|
+
[EngineRoutingSchemaType.Default]: 'Без типу',
|
|
226
229
|
},
|
|
227
230
|
},
|
|
228
231
|
messengers: {
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -228,6 +230,7 @@ export default {
|
|
|
228
230
|
[EngineRoutingSchemaType.Voice]: 'Ovozli',
|
|
229
231
|
[EngineRoutingSchemaType.Service]: 'Xizmat',
|
|
230
232
|
[EngineRoutingSchemaType.Processing]: 'Shakllar',
|
|
233
|
+
[EngineRoutingSchemaType.Default]: 'Turi yo‘q',
|
|
231
234
|
},
|
|
232
235
|
},
|
|
233
236
|
messengers: {
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EngineRoutingSchemaType,
|
|
3
|
+
WebitelMediaExporterExportStatus,
|
|
4
|
+
} from '@webitel/api-services/gen/models';
|
|
2
5
|
import {
|
|
3
6
|
AgentStatus,
|
|
4
7
|
CallDirection,
|
|
5
8
|
ChannelState,
|
|
6
9
|
ChannelType,
|
|
7
|
-
EngineRoutingSchemaType,
|
|
8
10
|
} from 'webitel-sdk';
|
|
9
11
|
|
|
10
12
|
import {
|
|
@@ -228,6 +230,7 @@ export default {
|
|
|
228
230
|
[EngineRoutingSchemaType.Voice]: 'Thoại',
|
|
229
231
|
[EngineRoutingSchemaType.Service]: 'Dịch vụ',
|
|
230
232
|
[EngineRoutingSchemaType.Processing]: 'Biểu mẫu',
|
|
233
|
+
[EngineRoutingSchemaType.Default]: 'Không có loại',
|
|
231
234
|
},
|
|
232
235
|
},
|
|
233
236
|
messengers: {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export const FlowApp = {
|
|
2
|
+
CALENDAR: 'calendar',
|
|
3
|
+
EXECUTE: 'execute',
|
|
4
|
+
FUNCTION: 'function',
|
|
5
|
+
GOTO: 'goto',
|
|
6
|
+
IF: 'if',
|
|
7
|
+
JS: 'js',
|
|
8
|
+
MATH: 'math',
|
|
9
|
+
PLATA_BY_MONO: 'plataByMono',
|
|
10
|
+
I_FRAME: 'iFrame',
|
|
11
|
+
START: 'start',
|
|
12
|
+
STOP: 'stop',
|
|
13
|
+
SWITCH: 'switch',
|
|
14
|
+
STRING: 'string',
|
|
15
|
+
MARK_IVR: 'markIVR',
|
|
16
|
+
SOFT_SLEEP: 'softSleep',
|
|
17
|
+
SET_GRANTEE: 'setGrantee',
|
|
18
|
+
SCHEMA: 'schema',
|
|
19
|
+
LOG: 'log',
|
|
20
|
+
TRIGGER: 'trigger',
|
|
21
|
+
HTTP_REQUEST: 'httpRequest',
|
|
22
|
+
CUSTOM_CODE: 'customCode',
|
|
23
|
+
EXPORT_VARIABLES: 'export',
|
|
24
|
+
SET_VARIABLES: 'set',
|
|
25
|
+
UN_SET_VARIABLES: 'unSet',
|
|
26
|
+
USER_INFO: 'userInfo',
|
|
27
|
+
LIST: 'list',
|
|
28
|
+
LIST_ADD: 'listAdd',
|
|
29
|
+
WHILE: 'while',
|
|
30
|
+
NOTIFICATION: 'notification',
|
|
31
|
+
OPEN_LINK: 'openLink',
|
|
32
|
+
|
|
33
|
+
PLAYBACK: 'playback',
|
|
34
|
+
RING_READY: 'ringReady',
|
|
35
|
+
PRE_ANSWER: 'preAnswer',
|
|
36
|
+
ANSWER: 'answer',
|
|
37
|
+
HANGUP: 'hangup',
|
|
38
|
+
SIP_REDIRECT: 'sipRedirect',
|
|
39
|
+
RINGBACK: 'ringback',
|
|
40
|
+
BRIDGE: 'bridge',
|
|
41
|
+
CONFERENCE: 'conference',
|
|
42
|
+
GENERATE_LINK: 'generateLink',
|
|
43
|
+
IN_BAND_DTMF: 'inBandDTMF',
|
|
44
|
+
FLUSH_DTMF: 'flushDTMF',
|
|
45
|
+
UPDATE_CID: 'updateCid',
|
|
46
|
+
PARK: 'park',
|
|
47
|
+
JOIN_QUEUE: 'joinQueue',
|
|
48
|
+
RECORD_FILE: 'recordFile',
|
|
49
|
+
RECORD_SESSION: 'recordSession',
|
|
50
|
+
TTS: 'tts',
|
|
51
|
+
MEMBER_INFO: 'memberInfo',
|
|
52
|
+
GET_QUEUE_AGENTS: 'getQueueAgents',
|
|
53
|
+
JOIN_AGENT: 'joinAgent',
|
|
54
|
+
CALLBACK_QUEUE: 'callbackQueue',
|
|
55
|
+
PATCH_MEMBERS: 'patchMembers',
|
|
56
|
+
|
|
57
|
+
RECV_MESSAGE: 'recvMessage',
|
|
58
|
+
SEND_TEXT: 'sendText',
|
|
59
|
+
SEND_FILE: 'sendFile',
|
|
60
|
+
SEND_EMAIL: 'sendEmail',
|
|
61
|
+
SEND_TTS: 'sendTts',
|
|
62
|
+
STT: 'stt',
|
|
63
|
+
SEND_MESSAGE: 'sendMessage',
|
|
64
|
+
CLASSIFIER: 'classifier',
|
|
65
|
+
MENU: 'menu',
|
|
66
|
+
BROADCAST_CHAT_MESSAGE: 'broadcastChatMessage',
|
|
67
|
+
CHAT_HISTORY: 'chatHistory',
|
|
68
|
+
CHAT_AI: 'chatAi',
|
|
69
|
+
|
|
70
|
+
MAKE_CALL: 'makeCall',
|
|
71
|
+
FORM_TEXTFIELD: 'formTextfield',
|
|
72
|
+
FORM_SELECT: 'formSelect',
|
|
73
|
+
FORM_SELECT_SERVICE: 'formSelectService',
|
|
74
|
+
FORM_TABLE: 'formTable',
|
|
75
|
+
FORM_TEXT: 'formText',
|
|
76
|
+
FORM_DATETIME_PICKER: 'formDatetimePicker',
|
|
77
|
+
FORM_RICH_TEXT_EDITOR: 'formRichTextEditor',
|
|
78
|
+
FORM_SELECT_FROM_OBJECT: 'formSelectFromObject',
|
|
79
|
+
FORM_SELECT_CASE_STATUS: 'formSelectCaseStatus',
|
|
80
|
+
GENERATE_FORM: 'generateForm',
|
|
81
|
+
ATTEMPT_RESULT: 'attemptResult',
|
|
82
|
+
GET_EMAIL: 'getEmail',
|
|
83
|
+
FORM_FILE: 'formFile',
|
|
84
|
+
|
|
85
|
+
CUSTOM_MODULE: 'customModule',
|
|
86
|
+
} as const;
|
|
87
|
+
|
|
88
|
+
export type FlowApp = (typeof FlowApp)[keyof typeof FlowApp];
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { EngineRoutingSchemaType } from '@webitel/api-services/gen/models';
|
|
2
|
+
|
|
3
|
+
import { FlowApp } from '../enums/FlowApp.enum';
|
|
4
|
+
|
|
5
|
+
const general = [
|
|
6
|
+
FlowApp.IF,
|
|
7
|
+
FlowApp.SWITCH,
|
|
8
|
+
FlowApp.FUNCTION,
|
|
9
|
+
FlowApp.EXECUTE,
|
|
10
|
+
FlowApp.CALENDAR,
|
|
11
|
+
FlowApp.SET_VARIABLES,
|
|
12
|
+
FlowApp.EXPORT_VARIABLES,
|
|
13
|
+
FlowApp.UN_SET_VARIABLES,
|
|
14
|
+
FlowApp.HTTP_REQUEST,
|
|
15
|
+
FlowApp.JS,
|
|
16
|
+
FlowApp.MATH,
|
|
17
|
+
FlowApp.PLATA_BY_MONO,
|
|
18
|
+
FlowApp.STRING,
|
|
19
|
+
FlowApp.USER_INFO,
|
|
20
|
+
FlowApp.SCHEMA,
|
|
21
|
+
FlowApp.SOFT_SLEEP,
|
|
22
|
+
// FlowApp.SQL,
|
|
23
|
+
FlowApp.LIST,
|
|
24
|
+
FlowApp.LIST_ADD,
|
|
25
|
+
FlowApp.LOG,
|
|
26
|
+
FlowApp.SEND_EMAIL,
|
|
27
|
+
FlowApp.SEND_MESSAGE,
|
|
28
|
+
FlowApp.GOTO,
|
|
29
|
+
FlowApp.BROADCAST_CHAT_MESSAGE,
|
|
30
|
+
FlowApp.GET_EMAIL,
|
|
31
|
+
FlowApp.GET_QUEUE_AGENTS,
|
|
32
|
+
// FlowApp.GET_QUEUE_METRICS,
|
|
33
|
+
FlowApp.MEMBER_INFO,
|
|
34
|
+
FlowApp.PATCH_MEMBERS,
|
|
35
|
+
FlowApp.CALLBACK_QUEUE,
|
|
36
|
+
FlowApp.WHILE,
|
|
37
|
+
FlowApp.OPEN_LINK,
|
|
38
|
+
FlowApp.NOTIFICATION,
|
|
39
|
+
FlowApp.CUSTOM_CODE,
|
|
40
|
+
FlowApp.CUSTOM_MODULE,
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
export const FlowTypeApplications = {
|
|
44
|
+
[EngineRoutingSchemaType.Voice]: [
|
|
45
|
+
...general,
|
|
46
|
+
FlowApp.TRIGGER,
|
|
47
|
+
FlowApp.MARK_IVR,
|
|
48
|
+
FlowApp.SET_GRANTEE,
|
|
49
|
+
FlowApp.CLASSIFIER,
|
|
50
|
+
FlowApp.RING_READY,
|
|
51
|
+
FlowApp.PRE_ANSWER,
|
|
52
|
+
FlowApp.ANSWER,
|
|
53
|
+
FlowApp.SIP_REDIRECT,
|
|
54
|
+
FlowApp.RINGBACK,
|
|
55
|
+
FlowApp.UPDATE_CID,
|
|
56
|
+
FlowApp.PARK,
|
|
57
|
+
FlowApp.CONFERENCE,
|
|
58
|
+
FlowApp.BRIDGE,
|
|
59
|
+
FlowApp.HANGUP,
|
|
60
|
+
FlowApp.IN_BAND_DTMF,
|
|
61
|
+
FlowApp.FLUSH_DTMF,
|
|
62
|
+
FlowApp.PLAYBACK,
|
|
63
|
+
FlowApp.RECORD_FILE,
|
|
64
|
+
FlowApp.RECORD_SESSION,
|
|
65
|
+
FlowApp.GENERATE_LINK,
|
|
66
|
+
FlowApp.TTS,
|
|
67
|
+
FlowApp.JOIN_QUEUE,
|
|
68
|
+
FlowApp.JOIN_AGENT,
|
|
69
|
+
// FlowApp.CC_POSITION,
|
|
70
|
+
// FlowApp.AWT,
|
|
71
|
+
// FlowApp.LAST_BRIDGED,
|
|
72
|
+
],
|
|
73
|
+
[EngineRoutingSchemaType.Chat]: [
|
|
74
|
+
...general,
|
|
75
|
+
FlowApp.TRIGGER,
|
|
76
|
+
FlowApp.MENU,
|
|
77
|
+
FlowApp.RECV_MESSAGE,
|
|
78
|
+
FlowApp.SEND_TEXT,
|
|
79
|
+
FlowApp.SEND_TTS,
|
|
80
|
+
FlowApp.SEND_FILE,
|
|
81
|
+
FlowApp.STT,
|
|
82
|
+
FlowApp.GENERATE_LINK,
|
|
83
|
+
FlowApp.CLASSIFIER,
|
|
84
|
+
FlowApp.JOIN_QUEUE,
|
|
85
|
+
FlowApp.CHAT_HISTORY,
|
|
86
|
+
FlowApp.CHAT_AI,
|
|
87
|
+
// FlowApp.CC_POSITION,
|
|
88
|
+
// FlowApp.AWT,
|
|
89
|
+
],
|
|
90
|
+
[EngineRoutingSchemaType.Processing]: [
|
|
91
|
+
...general,
|
|
92
|
+
FlowApp.MAKE_CALL,
|
|
93
|
+
FlowApp.FORM_TEXTFIELD,
|
|
94
|
+
FlowApp.FORM_SELECT,
|
|
95
|
+
FlowApp.FORM_SELECT_SERVICE,
|
|
96
|
+
FlowApp.FORM_TEXT,
|
|
97
|
+
FlowApp.FORM_DATETIME_PICKER,
|
|
98
|
+
FlowApp.FORM_RICH_TEXT_EDITOR,
|
|
99
|
+
FlowApp.FORM_SELECT_FROM_OBJECT,
|
|
100
|
+
FlowApp.FORM_SELECT_CASE_STATUS,
|
|
101
|
+
FlowApp.FORM_TABLE,
|
|
102
|
+
FlowApp.FORM_FILE,
|
|
103
|
+
FlowApp.GENERATE_FORM,
|
|
104
|
+
FlowApp.ATTEMPT_RESULT,
|
|
105
|
+
FlowApp.I_FRAME,
|
|
106
|
+
],
|
|
107
|
+
[EngineRoutingSchemaType.Service]: [
|
|
108
|
+
...general,
|
|
109
|
+
// FlowApp.AWT,
|
|
110
|
+
// FlowApp.CONFIRM,
|
|
111
|
+
// FlowApp.CANCEL,
|
|
112
|
+
// FlowApp.ABANDONED,
|
|
113
|
+
FlowApp.ATTEMPT_RESULT,
|
|
114
|
+
FlowApp.STT,
|
|
115
|
+
],
|
|
116
|
+
[EngineRoutingSchemaType.Default]: Object.values(FlowApp),
|
|
117
|
+
} as const;
|
|
118
|
+
|
|
119
|
+
export type FlowTypeApplications =
|
|
120
|
+
(typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
package/types/locale/i18n.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
195
195
|
voice: string;
|
|
196
196
|
service: string;
|
|
197
197
|
processing: string;
|
|
198
|
+
default: string;
|
|
198
199
|
};
|
|
199
200
|
};
|
|
200
201
|
messengers: {
|
|
@@ -1018,6 +1019,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
1018
1019
|
voice: string;
|
|
1019
1020
|
service: string;
|
|
1020
1021
|
processing: string;
|
|
1022
|
+
default: string;
|
|
1021
1023
|
};
|
|
1022
1024
|
};
|
|
1023
1025
|
messengers: {
|
|
@@ -1825,6 +1827,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
1825
1827
|
voice: string;
|
|
1826
1828
|
service: string;
|
|
1827
1829
|
processing: string;
|
|
1830
|
+
default: string;
|
|
1828
1831
|
};
|
|
1829
1832
|
};
|
|
1830
1833
|
messengers: {
|
|
@@ -2634,6 +2637,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
2634
2637
|
voice: string;
|
|
2635
2638
|
service: string;
|
|
2636
2639
|
processing: string;
|
|
2640
|
+
default: string;
|
|
2637
2641
|
};
|
|
2638
2642
|
};
|
|
2639
2643
|
messengers: {
|
|
@@ -3441,6 +3445,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
3441
3445
|
voice: string;
|
|
3442
3446
|
service: string;
|
|
3443
3447
|
processing: string;
|
|
3448
|
+
default: string;
|
|
3444
3449
|
};
|
|
3445
3450
|
};
|
|
3446
3451
|
messengers: {
|
|
@@ -4250,6 +4255,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
4250
4255
|
voice: string;
|
|
4251
4256
|
service: string;
|
|
4252
4257
|
processing: string;
|
|
4258
|
+
default: string;
|
|
4253
4259
|
};
|
|
4254
4260
|
};
|
|
4255
4261
|
messengers: {
|
|
@@ -5059,6 +5065,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
5059
5065
|
voice: string;
|
|
5060
5066
|
service: string;
|
|
5061
5067
|
processing: string;
|
|
5068
|
+
default: string;
|
|
5062
5069
|
};
|
|
5063
5070
|
};
|
|
5064
5071
|
messengers: {
|
|
@@ -5868,6 +5875,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
5868
5875
|
voice: string;
|
|
5869
5876
|
service: string;
|
|
5870
5877
|
processing: string;
|
|
5878
|
+
default: string;
|
|
5871
5879
|
};
|
|
5872
5880
|
};
|
|
5873
5881
|
messengers: {
|
|
@@ -6678,6 +6686,7 @@ declare const _default: import("vue-i18n").I18n<{
|
|
|
6678
6686
|
voice: string;
|
|
6679
6687
|
service: string;
|
|
6680
6688
|
processing: string;
|
|
6689
|
+
default: string;
|
|
6681
6690
|
};
|
|
6682
6691
|
};
|
|
6683
6692
|
messengers: {
|
package/types/locale/index.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export declare const messages: {
|
|
|
205
205
|
voice: string;
|
|
206
206
|
service: string;
|
|
207
207
|
processing: string;
|
|
208
|
+
default: string;
|
|
208
209
|
};
|
|
209
210
|
};
|
|
210
211
|
messengers: {
|
|
@@ -1028,6 +1029,7 @@ export declare const messages: {
|
|
|
1028
1029
|
voice: string;
|
|
1029
1030
|
service: string;
|
|
1030
1031
|
processing: string;
|
|
1032
|
+
default: string;
|
|
1031
1033
|
};
|
|
1032
1034
|
};
|
|
1033
1035
|
messengers: {
|
|
@@ -1835,6 +1837,7 @@ export declare const messages: {
|
|
|
1835
1837
|
voice: string;
|
|
1836
1838
|
service: string;
|
|
1837
1839
|
processing: string;
|
|
1840
|
+
default: string;
|
|
1838
1841
|
};
|
|
1839
1842
|
};
|
|
1840
1843
|
messengers: {
|
|
@@ -2644,6 +2647,7 @@ export declare const messages: {
|
|
|
2644
2647
|
voice: string;
|
|
2645
2648
|
service: string;
|
|
2646
2649
|
processing: string;
|
|
2650
|
+
default: string;
|
|
2647
2651
|
};
|
|
2648
2652
|
};
|
|
2649
2653
|
messengers: {
|
|
@@ -3451,6 +3455,7 @@ export declare const messages: {
|
|
|
3451
3455
|
voice: string;
|
|
3452
3456
|
service: string;
|
|
3453
3457
|
processing: string;
|
|
3458
|
+
default: string;
|
|
3454
3459
|
};
|
|
3455
3460
|
};
|
|
3456
3461
|
messengers: {
|
|
@@ -4260,6 +4265,7 @@ export declare const messages: {
|
|
|
4260
4265
|
voice: string;
|
|
4261
4266
|
service: string;
|
|
4262
4267
|
processing: string;
|
|
4268
|
+
default: string;
|
|
4263
4269
|
};
|
|
4264
4270
|
};
|
|
4265
4271
|
messengers: {
|
|
@@ -5069,6 +5075,7 @@ export declare const messages: {
|
|
|
5069
5075
|
voice: string;
|
|
5070
5076
|
service: string;
|
|
5071
5077
|
processing: string;
|
|
5078
|
+
default: string;
|
|
5072
5079
|
};
|
|
5073
5080
|
};
|
|
5074
5081
|
messengers: {
|
|
@@ -5878,6 +5885,7 @@ export declare const messages: {
|
|
|
5878
5885
|
voice: string;
|
|
5879
5886
|
service: string;
|
|
5880
5887
|
processing: string;
|
|
5888
|
+
default: string;
|
|
5881
5889
|
};
|
|
5882
5890
|
};
|
|
5883
5891
|
messengers: {
|
|
@@ -6688,6 +6696,7 @@ export declare const messages: {
|
|
|
6688
6696
|
voice: string;
|
|
6689
6697
|
service: string;
|
|
6690
6698
|
processing: string;
|
|
6699
|
+
default: string;
|
|
6691
6700
|
};
|
|
6692
6701
|
};
|
|
6693
6702
|
messengers: {
|
package/types/locale/kz/kz.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
package/types/locale/pl/pl.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
package/types/locale/ro/ro.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
package/types/locale/ru/ru.d.ts
CHANGED
|
@@ -209,6 +209,8 @@ declare namespace _default {
|
|
|
209
209
|
export { voice_1 as voice };
|
|
210
210
|
export let service: string;
|
|
211
211
|
export let processing: string;
|
|
212
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
213
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
212
214
|
}
|
|
213
215
|
export { type_2 as type };
|
|
214
216
|
}
|
package/types/locale/uk/uk.d.ts
CHANGED
|
@@ -209,6 +209,8 @@ declare namespace _default {
|
|
|
209
209
|
export { voice_1 as voice };
|
|
210
210
|
export let service: string;
|
|
211
211
|
export let processing: string;
|
|
212
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
213
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
212
214
|
}
|
|
213
215
|
export { type_2 as type };
|
|
214
216
|
}
|
package/types/locale/uz/uz.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare namespace _default {
|
|
|
211
211
|
export { voice_1 as voice };
|
|
212
212
|
export let service: string;
|
|
213
213
|
export let processing: string;
|
|
214
|
+
let __EngineRoutingSchemaType_Default_: string;
|
|
215
|
+
export { __EngineRoutingSchemaType_Default_ as default };
|
|
214
216
|
}
|
|
215
217
|
export { type_2 as type };
|
|
216
218
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const FlowApp: {
|
|
2
|
+
readonly CALENDAR: "calendar";
|
|
3
|
+
readonly EXECUTE: "execute";
|
|
4
|
+
readonly FUNCTION: "function";
|
|
5
|
+
readonly GOTO: "goto";
|
|
6
|
+
readonly IF: "if";
|
|
7
|
+
readonly JS: "js";
|
|
8
|
+
readonly MATH: "math";
|
|
9
|
+
readonly PLATA_BY_MONO: "plataByMono";
|
|
10
|
+
readonly I_FRAME: "iFrame";
|
|
11
|
+
readonly START: "start";
|
|
12
|
+
readonly STOP: "stop";
|
|
13
|
+
readonly SWITCH: "switch";
|
|
14
|
+
readonly STRING: "string";
|
|
15
|
+
readonly MARK_IVR: "markIVR";
|
|
16
|
+
readonly SOFT_SLEEP: "softSleep";
|
|
17
|
+
readonly SET_GRANTEE: "setGrantee";
|
|
18
|
+
readonly SCHEMA: "schema";
|
|
19
|
+
readonly LOG: "log";
|
|
20
|
+
readonly TRIGGER: "trigger";
|
|
21
|
+
readonly HTTP_REQUEST: "httpRequest";
|
|
22
|
+
readonly CUSTOM_CODE: "customCode";
|
|
23
|
+
readonly EXPORT_VARIABLES: "export";
|
|
24
|
+
readonly SET_VARIABLES: "set";
|
|
25
|
+
readonly UN_SET_VARIABLES: "unSet";
|
|
26
|
+
readonly USER_INFO: "userInfo";
|
|
27
|
+
readonly LIST: "list";
|
|
28
|
+
readonly LIST_ADD: "listAdd";
|
|
29
|
+
readonly WHILE: "while";
|
|
30
|
+
readonly NOTIFICATION: "notification";
|
|
31
|
+
readonly OPEN_LINK: "openLink";
|
|
32
|
+
readonly PLAYBACK: "playback";
|
|
33
|
+
readonly RING_READY: "ringReady";
|
|
34
|
+
readonly PRE_ANSWER: "preAnswer";
|
|
35
|
+
readonly ANSWER: "answer";
|
|
36
|
+
readonly HANGUP: "hangup";
|
|
37
|
+
readonly SIP_REDIRECT: "sipRedirect";
|
|
38
|
+
readonly RINGBACK: "ringback";
|
|
39
|
+
readonly BRIDGE: "bridge";
|
|
40
|
+
readonly CONFERENCE: "conference";
|
|
41
|
+
readonly GENERATE_LINK: "generateLink";
|
|
42
|
+
readonly IN_BAND_DTMF: "inBandDTMF";
|
|
43
|
+
readonly FLUSH_DTMF: "flushDTMF";
|
|
44
|
+
readonly UPDATE_CID: "updateCid";
|
|
45
|
+
readonly PARK: "park";
|
|
46
|
+
readonly JOIN_QUEUE: "joinQueue";
|
|
47
|
+
readonly RECORD_FILE: "recordFile";
|
|
48
|
+
readonly RECORD_SESSION: "recordSession";
|
|
49
|
+
readonly TTS: "tts";
|
|
50
|
+
readonly MEMBER_INFO: "memberInfo";
|
|
51
|
+
readonly GET_QUEUE_AGENTS: "getQueueAgents";
|
|
52
|
+
readonly JOIN_AGENT: "joinAgent";
|
|
53
|
+
readonly CALLBACK_QUEUE: "callbackQueue";
|
|
54
|
+
readonly PATCH_MEMBERS: "patchMembers";
|
|
55
|
+
readonly RECV_MESSAGE: "recvMessage";
|
|
56
|
+
readonly SEND_TEXT: "sendText";
|
|
57
|
+
readonly SEND_FILE: "sendFile";
|
|
58
|
+
readonly SEND_EMAIL: "sendEmail";
|
|
59
|
+
readonly SEND_TTS: "sendTts";
|
|
60
|
+
readonly STT: "stt";
|
|
61
|
+
readonly SEND_MESSAGE: "sendMessage";
|
|
62
|
+
readonly CLASSIFIER: "classifier";
|
|
63
|
+
readonly MENU: "menu";
|
|
64
|
+
readonly BROADCAST_CHAT_MESSAGE: "broadcastChatMessage";
|
|
65
|
+
readonly CHAT_HISTORY: "chatHistory";
|
|
66
|
+
readonly CHAT_AI: "chatAi";
|
|
67
|
+
readonly MAKE_CALL: "makeCall";
|
|
68
|
+
readonly FORM_TEXTFIELD: "formTextfield";
|
|
69
|
+
readonly FORM_SELECT: "formSelect";
|
|
70
|
+
readonly FORM_SELECT_SERVICE: "formSelectService";
|
|
71
|
+
readonly FORM_TABLE: "formTable";
|
|
72
|
+
readonly FORM_TEXT: "formText";
|
|
73
|
+
readonly FORM_DATETIME_PICKER: "formDatetimePicker";
|
|
74
|
+
readonly FORM_RICH_TEXT_EDITOR: "formRichTextEditor";
|
|
75
|
+
readonly FORM_SELECT_FROM_OBJECT: "formSelectFromObject";
|
|
76
|
+
readonly FORM_SELECT_CASE_STATUS: "formSelectCaseStatus";
|
|
77
|
+
readonly GENERATE_FORM: "generateForm";
|
|
78
|
+
readonly ATTEMPT_RESULT: "attemptResult";
|
|
79
|
+
readonly GET_EMAIL: "getEmail";
|
|
80
|
+
readonly FORM_FILE: "formFile";
|
|
81
|
+
readonly CUSTOM_MODULE: "customModule";
|
|
82
|
+
};
|
|
83
|
+
export type FlowApp = (typeof FlowApp)[keyof typeof FlowApp];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const FlowTypeApplications: {
|
|
2
|
+
readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "sendMessage" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "markIVR", "setGrantee", "classifier", "ringReady", "preAnswer", "answer", "sipRedirect", "ringback", "updateCid", "park", "conference", "bridge", "hangup", "inBandDTMF", "flushDTMF", "playback", "recordFile", "recordSession", "generateLink", "tts", "joinQueue", "joinAgent"];
|
|
3
|
+
readonly chat: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "sendMessage" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "menu", "recvMessage", "sendText", "sendTts", "sendFile", "stt", "generateLink", "classifier", "joinQueue", "chatHistory", "chatAi"];
|
|
4
|
+
readonly processing: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "sendMessage" | "broadcastChatMessage" | "getEmail" | "customModule")[], "makeCall", "formTextfield", "formSelect", "formSelectService", "formText", "formDatetimePicker", "formRichTextEditor", "formSelectFromObject", "formSelectCaseStatus", "formTable", "formFile", "generateForm", "attemptResult", "iFrame"];
|
|
5
|
+
readonly service: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "log" | "notification" | "schema" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "sendMessage" | "broadcastChatMessage" | "getEmail" | "customModule")[], "attemptResult", "stt"];
|
|
6
|
+
readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "log" | "notification" | "hangup" | "schema" | "tts" | "userInfo" | "answer" | "goto" | "if" | "js" | "plataByMono" | "iFrame" | "markIVR" | "softSleep" | "setGrantee" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "playback" | "ringReady" | "preAnswer" | "sipRedirect" | "ringback" | "bridge" | "conference" | "generateLink" | "inBandDTMF" | "flushDTMF" | "updateCid" | "park" | "joinQueue" | "recordSession" | "memberInfo" | "getQueueAgents" | "joinAgent" | "callbackQueue" | "patchMembers" | "recvMessage" | "sendText" | "sendFile" | "sendEmail" | "sendTts" | "stt" | "sendMessage" | "classifier" | "broadcastChatMessage" | "chatHistory" | "chatAi" | "makeCall" | "formTextfield" | "formSelect" | "formSelectService" | "formTable" | "formText" | "formDatetimePicker" | "formRichTextEditor" | "formSelectFromObject" | "formSelectCaseStatus" | "generateForm" | "attemptResult" | "getEmail" | "formFile" | "customModule")[];
|
|
7
|
+
};
|
|
8
|
+
export type FlowTypeApplications = (typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
|