@webitel/ui-sdk 26.4.19 → 26.4.21
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/dist/{index-CeADjYK9.js → index-C0NbJ1av.js} +1 -1
- package/dist/{index-DZ_bvNVs.js → index-DYQfqMF5.js} +1 -1
- package/dist/{install-Dofcp90y.js → install-B9JNlrMg.js} +3647 -3640
- package/dist/{isObject-B2zd2O3f.js → isObject-92jJVvEG.js} +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +6 -0
- package/dist/{useVidstackSrc-D9uo15mF.js → useVidstackSrc-d34GTdh0.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Bs73fRdp.js → vidstack-Bq6c3Bam-Cce-OHaD.js} +3 -3
- package/dist/{vidstack-D2pY00kU-BVC5bxHL.js → vidstack-D2pY00kU-DCO77K6b.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-DA-lnlhX.js → vidstack-DDXt6fpN-gSeupQ1q.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-C0QZLaX5.js → vidstack-D_-9AA6_-TwIMGAj5.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-DAs7LwX_.js → vidstack-DqAw8m9J-D0o_3Isu.js} +1 -1
- package/dist/{vidstack-audio-BrbZotHa.js → vidstack-audio-ByQwE2Q9.js} +2 -2
- package/dist/{vidstack-dash-KNjyvq2R.js → vidstack-dash-Cv4-T4Nw.js} +4 -4
- package/dist/{vidstack-google-cast-DMZQ1jRD.js → vidstack-google-cast-C1VlZrQq.js} +4 -4
- package/dist/{vidstack-hls-BfOysul0.js → vidstack-hls-CRPtXLsW.js} +4 -4
- package/dist/{vidstack-video-PWMSQ3Gk.js → vidstack-video-DI2qz9sg.js} +3 -3
- package/dist/{vidstack-vimeo-C5Khtd48.js → vidstack-vimeo-DB-lCkDQ.js} +4 -4
- package/dist/{vidstack-youtube-CPcpsir2.js → vidstack-youtube-BMU6ZF1H.js} +3 -3
- package/dist/{wt-action-bar-By55sdZf.js → wt-action-bar-DNYUVuca.js} +1 -1
- package/dist/{wt-button-select-C34W0lYV.js → wt-button-select-DJCuxJAi.js} +1 -1
- package/dist/{wt-chat-emoji-DjgWXA_2.js → wt-chat-emoji-czmTc-Ae.js} +2 -2
- package/dist/{wt-confirm-dialog-GNka4gxY.js → wt-confirm-dialog-DGNeLc8N.js} +1 -1
- package/dist/{wt-context-menu-Bjl5aGzG.js → wt-context-menu-Bqpo0lK1.js} +1 -1
- package/dist/{wt-copy-action-Xo2DsqJZ.js → wt-copy-action-BQr8jG6q.js} +1 -1
- package/dist/{wt-datepicker-CL3jLy5h.js → wt-datepicker-2GZ9J6ZA.js} +1 -1
- package/dist/{wt-display-chip-items-CCNWd5Nt.js → wt-display-chip-items-BApkRIDS.js} +1 -1
- package/dist/{wt-dual-panel-CMUeBmf-.js → wt-dual-panel-BEB5tztO.js} +1 -1
- package/dist/{wt-dummy-BOgeleXm.js → wt-dummy-B-nRWBPB.js} +1 -1
- package/dist/{wt-error-page-Ctl0-_Yp.js → wt-error-page-DiSy2IGU.js} +1 -1
- package/dist/{wt-expansion-card-BCOBdTuS.js → wt-expansion-card-CoAD-dGU.js} +1 -1
- package/dist/{wt-expansion-panel-C7W_5dxd.js → wt-expansion-panel-BJq9Il8s.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-CkLHeV4o.js → wt-filters-panel-wrapper-DVecym2v.js} +1 -1
- package/dist/{wt-galleria-Bls8Xxh4.js → wt-galleria-DsGBEoWw.js} +1 -1
- package/dist/{wt-navigation-menu-CFPMD9o1.js → wt-navigation-menu-DM_1dlPV.js} +1 -1
- package/dist/{wt-notifications-bar-BTDN7hSn.js → wt-notifications-bar-6AnaDfKU.js} +2 -2
- package/dist/{wt-pagination-DtjeKcpO.js → wt-pagination-Dxi-_YvM.js} +1 -1
- package/dist/{wt-player-Co3Ib7qU.js → wt-player-CSGIgqvD.js} +2 -2
- package/dist/{wt-screen-recordings-action-CmY7R2B-.js → wt-screen-recordings-action-BCif47sE.js} +1 -1
- package/dist/{wt-search-bar-CmN8Nq-n.js → wt-search-bar-EGFqokrd.js} +1 -1
- package/dist/{wt-selection-popup-BNKNa5jy.js → wt-selection-popup-B6duQYbx.js} +1 -1
- package/dist/{wt-start-page-BC4r_EPK.js → wt-start-page-DXHoktPR.js} +1 -1
- package/dist/{wt-status-select-CBq_ihcS.js → wt-status-select-DGiB-aAq.js} +1 -1
- package/dist/{wt-stepper-DvmRISSE.js → wt-stepper-CXF5iwVC.js} +1 -1
- package/dist/{wt-table-actions-52X557c8.js → wt-table-actions-CZrGzdNO.js} +1 -1
- package/dist/{wt-table-BDnXcyai.js → wt-table-cNw54PLt.js} +1 -1
- package/dist/{wt-table-column-select-vKGXHla2.js → wt-table-column-select-DssWWVZv.js} +2 -2
- package/dist/{wt-tabs-zXlsvaeU.js → wt-tabs-D4vgF39Z.js} +1 -1
- package/dist/{wt-tags-input-B8w0KXPv.js → wt-tags-input-DygsMAb3.js} +2 -2
- package/dist/{wt-timepicker-Cm4aLsPK.js → wt-timepicker-BtkfF5-9.js} +1 -1
- package/dist/{wt-tree-IVOTwA3x.js → wt-tree-DCycIVfe.js} +2 -2
- package/dist/{wt-tree-table-zA7HHvru.js → wt-tree-table-C4vV5v9N.js} +1 -1
- package/dist/{wt-type-extension-value-input-DTmneCoP.js → wt-type-extension-value-input-yQFt4Z6A.js} +2 -2
- package/dist/{wt-vidstack-player-DHmGgiDL.js → wt-vidstack-player-Z3y8MwmU.js} +10 -10
- package/package.json +5 -1
- package/src/api/clients/flows/flow.js +2 -4
- package/src/assets/icons/sprite/export-exel.svg +6 -0
- package/src/assets/icons/sprite/index.ts +2 -0
- 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/src/scripts/downloadFile/downloadFile.ts +36 -0
- package/src/scripts/downloadFile/types/downloadFile.types.ts +8 -0
- package/src/scripts/downloadFile/types/fileFormat.types.ts +4 -0
- package/src/scripts/index.js +2 -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/types/scripts/downloadFile/downloadFile.d.ts +3 -0
- package/types/scripts/downloadFile/types/downloadFile.types.d.ts +7 -0
- package/types/scripts/downloadFile/types/fileFormat.types.d.ts +4 -0
- package/types/scripts/index.d.ts +2 -1
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];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DownloadFileOptions } from './types/downloadFile.types';
|
|
2
|
+
|
|
3
|
+
const downloadFile = ({
|
|
4
|
+
response,
|
|
5
|
+
fileFormat,
|
|
6
|
+
filename,
|
|
7
|
+
mimetype = null,
|
|
8
|
+
}: DownloadFileOptions) => {
|
|
9
|
+
const blob = new Blob(
|
|
10
|
+
[
|
|
11
|
+
response.data,
|
|
12
|
+
],
|
|
13
|
+
{
|
|
14
|
+
type:
|
|
15
|
+
mimetype ||
|
|
16
|
+
response.headers?.['content-type'] ||
|
|
17
|
+
'application/octet-stream',
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const url = window.URL.createObjectURL(blob);
|
|
22
|
+
const link = document.createElement('a');
|
|
23
|
+
|
|
24
|
+
link.href = url;
|
|
25
|
+
link.download = filename
|
|
26
|
+
? `${filename}.${fileFormat}`
|
|
27
|
+
: `${response.headers?.['Content-Disposition']}.${fileFormat}`;
|
|
28
|
+
|
|
29
|
+
document.body.appendChild(link);
|
|
30
|
+
link.click();
|
|
31
|
+
link.remove();
|
|
32
|
+
|
|
33
|
+
window.URL.revokeObjectURL(url);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default downloadFile;
|
package/src/scripts/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
} from './compareSize.ts';
|
|
19
19
|
import convertDuration from './convertDuration.js';
|
|
20
20
|
import debounce from './debounce.js';
|
|
21
|
+
import downloadFile from './downloadFile/downloadFile';
|
|
21
22
|
import eventBus from './eventBus.js';
|
|
22
23
|
import { getEndOfDay, getStartOfDay } from './getDefaultFilterDate.js';
|
|
23
24
|
import isEmpty from './isEmpty.js';
|
|
@@ -43,6 +44,7 @@ export {
|
|
|
43
44
|
compareSize,
|
|
44
45
|
convertDuration,
|
|
45
46
|
debounce,
|
|
47
|
+
downloadFile,
|
|
46
48
|
eventBus,
|
|
47
49
|
getEndOfDay,
|
|
48
50
|
getNextSortOrder,
|
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
|
}
|