@webitel/ui-sdk 26.6.56 → 26.6.57

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.
Files changed (69) hide show
  1. package/dist/{clients-BylvVtUg.js → clients-Wwy51tyT.js} +1 -1
  2. package/dist/{components-Ceu_o5QZ.js → components-DfHInAL6.js} +2038 -1133
  3. package/dist/{enums-DW1oVune.js → enums-CBWwTuq7.js} +14 -10
  4. package/dist/ui-sdk.js +15 -15
  5. package/dist/ui-sdk.umd.cjs +676 -643
  6. package/dist/{useValidation-NX7UjlXi.js → useValidation-C43ysfVZ.js} +1 -1
  7. package/dist/{wt-action-bar-BHg0dHh-.js → wt-action-bar-B6AJf7QX.js} +2 -2
  8. package/dist/{wt-button-Cv7wRtF5.js → wt-button-BieXVsvP.js} +30 -30
  9. package/dist/wt-chat-emoji-CLfk3JVt.js +1347 -0
  10. package/dist/{wt-datepicker-DmmqWre1.js → wt-datepicker-BhOalZat.js} +2 -2
  11. package/dist/{wt-display-chip-items-CIW2Kmd1.js → wt-display-chip-items-BUWlvHn2.js} +1 -1
  12. package/dist/{wt-dual-panel-Cnzr4m-k.js → wt-dual-panel-C5LZm1Tr.js} +1 -1
  13. package/dist/{wt-expansion-card-B3J3dMdV.js → wt-expansion-card-CJr62Q0Q.js} +2 -2
  14. package/dist/{wt-expansion-panel-CYZR6tYG.js → wt-expansion-panel-Dvzj9PTk.js} +1 -1
  15. package/dist/{wt-galleria-AICD8wZ_.js → wt-galleria-B34y1Swo.js} +1 -1
  16. package/dist/{wt-icon-CqEgBu_3.js → wt-icon-0grToL89.js} +4 -1
  17. package/dist/{wt-icon-action-DlZx4RV6.js → wt-icon-action-D1Vq_ixS.js} +1 -1
  18. package/dist/{wt-icon-btn-B66HR8qM.js → wt-icon-btn-Czg40DXn.js} +1 -1
  19. package/dist/{wt-notifications-bar-Bbzp4mi1.js → wt-notifications-bar-OGD1cukw.js} +5 -6
  20. package/dist/{wt-player-CFL51-s6.js → wt-player-YrvPar8x.js} +3 -3
  21. package/dist/{wt-search-bar--ACLsoNo.js → wt-search-bar-gN_xHkW3.js} +4 -4
  22. package/dist/{wt-send-message-popup-D5_uap5F.js → wt-send-message-popup-pvipgSrX.js} +2 -2
  23. package/dist/{wt-table-2AC3hrK9.js → wt-table-DK0LjVC0.js} +1 -1
  24. package/dist/{wt-timepicker-DpZmWZdv.js → wt-timepicker-FhXfhuFl.js} +2 -2
  25. package/dist/wt-toast-DrD3sFlE.js +71 -0
  26. package/dist/{wt-tree-table-DkK3EyzZ.js → wt-tree-table-D1XoKDVw.js} +40 -40
  27. package/dist/{wt-type-extension-value-input-f5i8mReW.js → wt-type-extension-value-input-B2fSsZQc.js} +3 -3
  28. package/dist/{wt-vidstack-player-Ba6-mEdW.js → wt-vidstack-player-DwCYvtSh.js} +4 -4
  29. package/package.json +1 -1
  30. package/src/assets/icons/sprite/index.ts +7 -0
  31. package/src/assets/icons/sprite/ws-signal-high.svg +11 -0
  32. package/src/assets/icons/sprite/ws-signal-low.svg +11 -0
  33. package/src/assets/icons/sprite/ws-signal-medium.svg +11 -0
  34. package/src/components/index.js +3 -0
  35. package/src/components/wt-call-media-metric/wt-call-media-metric.vue +41 -0
  36. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.ts +8 -0
  37. package/src/enums/index.ts +6 -0
  38. package/src/locale/en/en.js +5 -0
  39. package/src/locale/es/es.js +5 -0
  40. package/src/locale/kz/kz.js +5 -0
  41. package/src/locale/pl/pl.js +5 -0
  42. package/src/locale/ro/ro.js +5 -0
  43. package/src/locale/ru/ru.js +5 -0
  44. package/src/locale/uk/uk.js +5 -0
  45. package/src/locale/uz/uz.js +5 -0
  46. package/src/locale/vi/vi.js +5 -0
  47. package/src/scripts/getConnectionQuality.ts +13 -0
  48. package/src/scripts/index.js +2 -0
  49. package/types/components/wt-call-media-metric/wt-call-media-metric.vue.d.ts +13 -0
  50. package/types/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
  51. package/types/enums/index.d.ts +3 -2
  52. package/types/locale/en/en.d.ts +5 -0
  53. package/types/locale/es/es.d.ts +5 -0
  54. package/types/locale/i18n.d.ts +45 -0
  55. package/types/locale/index.d.ts +45 -0
  56. package/types/locale/kz/kz.d.ts +5 -0
  57. package/types/locale/pl/pl.d.ts +5 -0
  58. package/types/locale/ro/ro.d.ts +5 -0
  59. package/types/locale/ru/ru.d.ts +5 -0
  60. package/types/locale/uk/uk.d.ts +5 -0
  61. package/types/locale/uz/uz.d.ts +5 -0
  62. package/types/locale/vi/vi.d.ts +5 -0
  63. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  64. package/types/scripts/getConnectionQuality.d.ts +2 -0
  65. package/types/scripts/index.d.ts +2 -1
  66. package/dist/eventBus-By3thVlR.js +0 -31
  67. package/dist/wt-chat-emoji-Dnu07Or5.js +0 -2226
  68. package/dist/wt-toast-gaZL33Am.js +0 -44
  69. package/dist/{composables-DJlgUtl5.js → composables-C2o78NEs.js} +1 -1
@@ -0,0 +1,8 @@
1
+ export const ConnectionQualityLevels = {
2
+ High: 'high',
3
+ Medium: 'medium',
4
+ Low: 'low',
5
+ } as const;
6
+
7
+ export type ConnectionQualityLevelsType =
8
+ (typeof ConnectionQualityLevels)[keyof typeof ConnectionQualityLevels];
@@ -12,6 +12,10 @@ import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum.
12
12
  import ProviderIconType from './ChatGatewayProvider/ProviderIconType.enum';
13
13
  import { ChipColor } from './ChipColor/ChipColor';
14
14
  import { ComponentSize } from './ComponentSize/ComponentSize';
15
+ import {
16
+ ConnectionQualityLevels,
17
+ type ConnectionQualityLevelsType,
18
+ } from './ConnectionQualityLevel/ConnectionQualityLevel.enum';
15
19
  import { CrudAction } from './CrudAction/CrudAction';
16
20
  import { DefaultWorkspaceTabSettings } from './DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings';
17
21
  import { EmptyCause } from './EmptyCause/EmptyCause';
@@ -37,6 +41,7 @@ import { WtObject } from './WtObject/WtObject';
37
41
  import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
38
42
 
39
43
  export type {
44
+ ConnectionQualityLevelsType,
40
45
  UserSettingsBroadcastMessage,
41
46
  WebphoneBroadcastMessage,
42
47
  WebphoneBroadcastPayload,
@@ -53,6 +58,7 @@ export {
53
58
  ChatGatewayProvider,
54
59
  ChipColor,
55
60
  ComponentSize,
61
+ ConnectionQualityLevels,
56
62
  CrmSections,
57
63
  CrudAction,
58
64
  DefaultWorkspaceTabSettings,
@@ -873,6 +873,11 @@ export default deepmerge(
873
873
  chatHistoryApi: 'There was an error loading the chat history',
874
874
  markChatProcessed: 'Failed to move the chat to “Closed”',
875
875
  },
876
+ connectionQuality: {
877
+ high: 'Excellent network quality.',
878
+ medium: 'There might be some delay, please check your network.',
879
+ low: 'Network quality is poor, please check your network.',
880
+ },
876
881
  },
877
882
  notTranslatable,
878
883
  );
@@ -858,4 +858,9 @@ export default {
858
858
  chatHistoryApi: 'Hubo un error al cargar el historial del chat',
859
859
  markChatProcessed: 'Error al mover el chat a "Cerrado"',
860
860
  },
861
+ connectionQuality: {
862
+ high: 'Excelente calidad de red.',
863
+ medium: 'Puede haber retrasos, compruebe su red.',
864
+ low: 'La calidad de red es deficiente, compruebe su red.',
865
+ },
861
866
  };
@@ -859,4 +859,9 @@ export default {
859
859
  chatHistoryApi: 'Чат тарихын жүктеу кезінде қате орын алды',
860
860
  markChatProcessed: 'Чатты "Жабылған" күйіне ауыстыру сәтсіз аяқталды',
861
861
  },
862
+ connectionQuality: {
863
+ high: 'Желі сапасы отличная.',
864
+ medium: 'Кідіріс болуы мүмкін, желіні тексеріңіз.',
865
+ low: 'Желі сапасы нашар, желіні тексеріңіз.',
866
+ },
862
867
  };
@@ -859,4 +859,9 @@ export default {
859
859
  chatHistoryApi: 'Wystąpił błąd podczas ładowania historii czatu',
860
860
  markChatProcessed: 'Nie udało się przenieść czatu do "Zamkniętych"',
861
861
  },
862
+ connectionQuality: {
863
+ high: 'Doskonała jakość sieci.',
864
+ medium: 'Możliwe opóźnienia, sprawdź sieć.',
865
+ low: 'Słaba jakość sieci, sprawdź sieć.',
866
+ },
862
867
  };
@@ -864,4 +864,9 @@ export default {
864
864
  chatHistoryApi: 'A apărut o eroare la încărcarea istoricului chat-ului',
865
865
  markChatProcessed: 'Nu s-a putut muta chat-ul în "Închis"',
866
866
  },
867
+ connectionQuality: {
868
+ high: 'Calitate excelentă a rețelei.',
869
+ medium: 'Pot exista întârzieri, verificați rețeaua.',
870
+ low: 'Calitatea rețelei este slabă, verificați rețeaua.',
871
+ },
867
872
  };
@@ -855,4 +855,9 @@ export default {
855
855
  chatHistoryApi: 'Произошла ошибка загрузки истории чата',
856
856
  markChatProcessed: 'Не удалось переместить чат в “Закрытые”',
857
857
  },
858
+ connectionQuality: {
859
+ high: 'Отличное качество сети.',
860
+ medium: 'Возможны задержки, проверьте сеть.',
861
+ low: 'Плохое качество сети, проверьте сеть.',
862
+ },
858
863
  };
@@ -853,4 +853,9 @@ export default {
853
853
  chatHistoryApi: 'Сталася помилка завантаження історії чату',
854
854
  markChatProcessed: 'Не вдалося перемістити чат у "Закриті"',
855
855
  },
856
+ connectionQuality: {
857
+ high: 'Відмінна якість мережі.',
858
+ medium: 'Можливі затримки, перевірте мережу.',
859
+ low: 'Погана якість мережі, перевірте мережу.',
860
+ },
856
861
  };
@@ -863,4 +863,9 @@ export default {
863
863
  chatHistoryApi: 'Chat tarixini yuklashda xatolik yuz berdi',
864
864
  markChatProcessed: 'Chatni "Yopilgan" holatiga o\'tkazib bo\'lmadi',
865
865
  },
866
+ connectionQuality: {
867
+ high: "A'lo tarmoq sifati.",
868
+ medium: "Kechikishlar bo'lishi mumkin, tarmoqni tekshiring.",
869
+ low: 'Tarmoq sifati past, tarmoqni tekshiring.',
870
+ },
866
871
  };
@@ -862,4 +862,9 @@ export default {
862
862
  chatHistoryApi: 'Đã xảy ra lỗi khi tải lịch sử trò chuyện',
863
863
  markChatProcessed: 'Không thể chuyển trò chuyện sang trạng thái "Đã đóng"',
864
864
  },
865
+ connectionQuality: {
866
+ high: 'Chất lượng mạng tuyệt vời.',
867
+ medium: 'Có thể có độ trễ, vui lòng kiểm tra mạng.',
868
+ low: 'Chất lượng mạng kém, vui lòng kiểm tra mạng.',
869
+ },
865
870
  };
@@ -0,0 +1,13 @@
1
+ import {
2
+ ConnectionQualityLevels,
3
+ type ConnectionQualityLevelsType,
4
+ } from '../enums';
5
+
6
+ export const getConnectionQuality = (
7
+ mosAvg?: number,
8
+ ): ConnectionQualityLevelsType | null => {
9
+ if (mosAvg == null) return null;
10
+ if (mosAvg >= 4) return ConnectionQualityLevels.High;
11
+ if (mosAvg >= 3.5) return ConnectionQualityLevels.Medium;
12
+ return ConnectionQualityLevels.Low;
13
+ };
@@ -20,6 +20,7 @@ import convertDuration from './convertDuration.js';
20
20
  import debounce from './debounce.js';
21
21
  import downloadFile from './downloadFile/downloadFile';
22
22
  import eventBus from './eventBus.js';
23
+ import { getConnectionQuality } from './getConnectionQuality.ts';
23
24
  import { getEndOfDay, getStartOfDay } from './getDefaultFilterDate.js';
24
25
  import isEmpty from './isEmpty.js';
25
26
  import { wtlog } from './logger.js';
@@ -46,6 +47,7 @@ export {
46
47
  debounce,
47
48
  downloadFile,
48
49
  eventBus,
50
+ getConnectionQuality,
49
51
  getEndOfDay,
50
52
  getNextSortOrder,
51
53
  getStartOfDay,
@@ -0,0 +1,13 @@
1
+ import { ComponentSize, type ConnectionQualityLevelsType } from '../../enums';
2
+ type __VLS_Props = {
3
+ quality?: ConnectionQualityLevelsType | null;
4
+ mosAvg?: number | null;
5
+ size?: (typeof ComponentSize)[keyof typeof ComponentSize];
6
+ showTooltip?: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ size: (typeof ComponentSize)[keyof typeof ComponentSize];
10
+ showTooltip: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare const ConnectionQualityLevels: {
2
+ readonly High: "high";
3
+ readonly Medium: "medium";
4
+ readonly Low: "low";
5
+ };
6
+ export type ConnectionQualityLevelsType = (typeof ConnectionQualityLevels)[keyof typeof ConnectionQualityLevels];
@@ -8,6 +8,7 @@ import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum.
8
8
  import ProviderIconType from './ChatGatewayProvider/ProviderIconType.enum';
9
9
  import { ChipColor } from './ChipColor/ChipColor';
10
10
  import { ComponentSize } from './ComponentSize/ComponentSize';
11
+ import { ConnectionQualityLevels, type ConnectionQualityLevelsType } from './ConnectionQualityLevel/ConnectionQualityLevel.enum';
11
12
  import { CrudAction } from './CrudAction/CrudAction';
12
13
  import { DefaultWorkspaceTabSettings } from './DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings';
13
14
  import { EmptyCause } from './EmptyCause/EmptyCause';
@@ -31,5 +32,5 @@ import { WfmSections } from './WebitelApplications/WfmSections';
31
32
  import { WtApplication } from './WebitelApplications/WtApplication';
32
33
  import { WtObject } from './WtObject/WtObject';
33
34
  import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
34
- export type { UserSettingsBroadcastMessage, WebphoneBroadcastMessage, WebphoneBroadcastPayload, };
35
- export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, LoginOptions, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind, };
35
+ export type { ConnectionQualityLevelsType, UserSettingsBroadcastMessage, WebphoneBroadcastMessage, WebphoneBroadcastPayload, };
36
+ export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, ConnectionQualityLevels, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, LoginOptions, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind, };
@@ -817,6 +817,11 @@ declare const _default: {
817
817
  chatHistoryApi: string;
818
818
  markChatProcessed: string;
819
819
  };
820
+ connectionQuality: {
821
+ high: string;
822
+ medium: string;
823
+ low: string;
824
+ };
820
825
  } & {
821
826
  reusable: {
822
827
  lang: {
@@ -933,5 +933,10 @@ declare namespace _default {
933
933
  let chatHistoryApi: string;
934
934
  let markChatProcessed: string;
935
935
  }
936
+ export namespace connectionQuality {
937
+ let high: string;
938
+ let medium: string;
939
+ let low: string;
940
+ }
936
941
  }
937
942
  export default _default;
@@ -818,6 +818,11 @@ declare const _default: import("vue-i18n").I18n<{
818
818
  chatHistoryApi: string;
819
819
  markChatProcessed: string;
820
820
  };
821
+ connectionQuality: {
822
+ high: string;
823
+ medium: string;
824
+ low: string;
825
+ };
821
826
  } & {
822
827
  reusable: {
823
828
  lang: {
@@ -1651,6 +1656,11 @@ declare const _default: import("vue-i18n").I18n<{
1651
1656
  chatHistoryApi: string;
1652
1657
  markChatProcessed: string;
1653
1658
  };
1659
+ connectionQuality: {
1660
+ high: string;
1661
+ medium: string;
1662
+ low: string;
1663
+ };
1654
1664
  };
1655
1665
  ru: {
1656
1666
  reusable: {
@@ -2468,6 +2478,11 @@ declare const _default: import("vue-i18n").I18n<{
2468
2478
  chatHistoryApi: string;
2469
2479
  markChatProcessed: string;
2470
2480
  };
2481
+ connectionQuality: {
2482
+ high: string;
2483
+ medium: string;
2484
+ low: string;
2485
+ };
2471
2486
  };
2472
2487
  ro: {
2473
2488
  reusable: {
@@ -3287,6 +3302,11 @@ declare const _default: import("vue-i18n").I18n<{
3287
3302
  chatHistoryApi: string;
3288
3303
  markChatProcessed: string;
3289
3304
  };
3305
+ connectionQuality: {
3306
+ high: string;
3307
+ medium: string;
3308
+ low: string;
3309
+ };
3290
3310
  };
3291
3311
  uk: {
3292
3312
  reusable: {
@@ -4104,6 +4124,11 @@ declare const _default: import("vue-i18n").I18n<{
4104
4124
  chatHistoryApi: string;
4105
4125
  markChatProcessed: string;
4106
4126
  };
4127
+ connectionQuality: {
4128
+ high: string;
4129
+ medium: string;
4130
+ low: string;
4131
+ };
4107
4132
  };
4108
4133
  kz: {
4109
4134
  reusable: {
@@ -4923,6 +4948,11 @@ declare const _default: import("vue-i18n").I18n<{
4923
4948
  chatHistoryApi: string;
4924
4949
  markChatProcessed: string;
4925
4950
  };
4951
+ connectionQuality: {
4952
+ high: string;
4953
+ medium: string;
4954
+ low: string;
4955
+ };
4926
4956
  };
4927
4957
  pl: {
4928
4958
  reusable: {
@@ -5742,6 +5772,11 @@ declare const _default: import("vue-i18n").I18n<{
5742
5772
  chatHistoryApi: string;
5743
5773
  markChatProcessed: string;
5744
5774
  };
5775
+ connectionQuality: {
5776
+ high: string;
5777
+ medium: string;
5778
+ low: string;
5779
+ };
5745
5780
  };
5746
5781
  uz: {
5747
5782
  reusable: {
@@ -6562,6 +6597,11 @@ declare const _default: import("vue-i18n").I18n<{
6562
6597
  chatHistoryApi: string;
6563
6598
  markChatProcessed: string;
6564
6599
  };
6600
+ connectionQuality: {
6601
+ high: string;
6602
+ medium: string;
6603
+ low: string;
6604
+ };
6565
6605
  };
6566
6606
  vi: {
6567
6607
  reusable: {
@@ -7381,6 +7421,11 @@ declare const _default: import("vue-i18n").I18n<{
7381
7421
  chatHistoryApi: string;
7382
7422
  markChatProcessed: string;
7383
7423
  };
7424
+ connectionQuality: {
7425
+ high: string;
7426
+ medium: string;
7427
+ low: string;
7428
+ };
7384
7429
  };
7385
7430
  }, {}, {}, string, false>;
7386
7431
  export default _default;
@@ -828,6 +828,11 @@ export declare const messages: {
828
828
  chatHistoryApi: string;
829
829
  markChatProcessed: string;
830
830
  };
831
+ connectionQuality: {
832
+ high: string;
833
+ medium: string;
834
+ low: string;
835
+ };
831
836
  } & {
832
837
  reusable: {
833
838
  lang: {
@@ -1661,6 +1666,11 @@ export declare const messages: {
1661
1666
  chatHistoryApi: string;
1662
1667
  markChatProcessed: string;
1663
1668
  };
1669
+ connectionQuality: {
1670
+ high: string;
1671
+ medium: string;
1672
+ low: string;
1673
+ };
1664
1674
  };
1665
1675
  ru: {
1666
1676
  reusable: {
@@ -2478,6 +2488,11 @@ export declare const messages: {
2478
2488
  chatHistoryApi: string;
2479
2489
  markChatProcessed: string;
2480
2490
  };
2491
+ connectionQuality: {
2492
+ high: string;
2493
+ medium: string;
2494
+ low: string;
2495
+ };
2481
2496
  };
2482
2497
  ro: {
2483
2498
  reusable: {
@@ -3297,6 +3312,11 @@ export declare const messages: {
3297
3312
  chatHistoryApi: string;
3298
3313
  markChatProcessed: string;
3299
3314
  };
3315
+ connectionQuality: {
3316
+ high: string;
3317
+ medium: string;
3318
+ low: string;
3319
+ };
3300
3320
  };
3301
3321
  uk: {
3302
3322
  reusable: {
@@ -4114,6 +4134,11 @@ export declare const messages: {
4114
4134
  chatHistoryApi: string;
4115
4135
  markChatProcessed: string;
4116
4136
  };
4137
+ connectionQuality: {
4138
+ high: string;
4139
+ medium: string;
4140
+ low: string;
4141
+ };
4117
4142
  };
4118
4143
  kz: {
4119
4144
  reusable: {
@@ -4933,6 +4958,11 @@ export declare const messages: {
4933
4958
  chatHistoryApi: string;
4934
4959
  markChatProcessed: string;
4935
4960
  };
4961
+ connectionQuality: {
4962
+ high: string;
4963
+ medium: string;
4964
+ low: string;
4965
+ };
4936
4966
  };
4937
4967
  pl: {
4938
4968
  reusable: {
@@ -5752,6 +5782,11 @@ export declare const messages: {
5752
5782
  chatHistoryApi: string;
5753
5783
  markChatProcessed: string;
5754
5784
  };
5785
+ connectionQuality: {
5786
+ high: string;
5787
+ medium: string;
5788
+ low: string;
5789
+ };
5755
5790
  };
5756
5791
  uz: {
5757
5792
  reusable: {
@@ -6572,6 +6607,11 @@ export declare const messages: {
6572
6607
  chatHistoryApi: string;
6573
6608
  markChatProcessed: string;
6574
6609
  };
6610
+ connectionQuality: {
6611
+ high: string;
6612
+ medium: string;
6613
+ low: string;
6614
+ };
6575
6615
  };
6576
6616
  vi: {
6577
6617
  reusable: {
@@ -7391,6 +7431,11 @@ export declare const messages: {
7391
7431
  chatHistoryApi: string;
7392
7432
  markChatProcessed: string;
7393
7433
  };
7434
+ connectionQuality: {
7435
+ high: string;
7436
+ medium: string;
7437
+ low: string;
7438
+ };
7394
7439
  };
7395
7440
  };
7396
7441
  export { en, es, kz, pl, ro, ru, uk, uz, vi };
@@ -933,5 +933,10 @@ declare namespace _default {
933
933
  let chatHistoryApi: string;
934
934
  let markChatProcessed: string;
935
935
  }
936
+ export namespace connectionQuality {
937
+ let high: string;
938
+ let medium: string;
939
+ let low: string;
940
+ }
936
941
  }
937
942
  export default _default;
@@ -933,5 +933,10 @@ declare namespace _default {
933
933
  let chatHistoryApi: string;
934
934
  let markChatProcessed: string;
935
935
  }
936
+ export namespace connectionQuality {
937
+ let high: string;
938
+ let medium: string;
939
+ let low: string;
940
+ }
936
941
  }
937
942
  export default _default;
@@ -933,5 +933,10 @@ declare namespace _default {
933
933
  let chatHistoryApi: string;
934
934
  let markChatProcessed: string;
935
935
  }
936
+ export namespace connectionQuality {
937
+ let high: string;
938
+ let medium: string;
939
+ let low: string;
940
+ }
936
941
  }
937
942
  export default _default;
@@ -931,5 +931,10 @@ declare namespace _default {
931
931
  let chatHistoryApi: string;
932
932
  let markChatProcessed: string;
933
933
  }
934
+ export namespace connectionQuality {
935
+ let high: string;
936
+ let medium: string;
937
+ let low: string;
938
+ }
934
939
  }
935
940
  export default _default;
@@ -931,5 +931,10 @@ declare namespace _default {
931
931
  let chatHistoryApi: string;
932
932
  let markChatProcessed: string;
933
933
  }
934
+ export namespace connectionQuality {
935
+ let high: string;
936
+ let medium: string;
937
+ let low: string;
938
+ }
934
939
  }
935
940
  export default _default;
@@ -934,5 +934,10 @@ declare namespace _default {
934
934
  let chatHistoryApi: string;
935
935
  let markChatProcessed: string;
936
936
  }
937
+ export namespace connectionQuality {
938
+ let high: string;
939
+ let medium: string;
940
+ let low: string;
941
+ }
937
942
  }
938
943
  export default _default;
@@ -933,5 +933,10 @@ declare namespace _default {
933
933
  let chatHistoryApi: string;
934
934
  let markChatProcessed: string;
935
935
  }
936
+ export namespace connectionQuality {
937
+ let high: string;
938
+ let medium: string;
939
+ let low: string;
940
+ }
936
941
  }
937
942
  export default _default;
@@ -1,8 +1,8 @@
1
1
  export declare const FlowTypeApplications: {
2
- readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "attemptResult", "stt"];
6
- readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "notification" | "hangup" | "schema" | "log" | "sendMessage" | "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" | "classifier" | "broadcastChatMessage" | "chatHistory" | "chatAi" | "makeCall" | "formTextfield" | "formSelect" | "formSelectService" | "formTable" | "formText" | "formDatetimePicker" | "formRichTextEditor" | "formSelectFromObject" | "formSelectCaseStatus" | "generateForm" | "attemptResult" | "getEmail" | "formFile" | "customModule")[];
2
+ readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "log" | "math" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "log" | "math" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "log" | "math" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "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" | "log" | "math" | "notification" | "schema" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "attemptResult", "stt"];
6
+ readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "log" | "start" | "math" | "notification" | "hangup" | "schema" | "sendMessage" | "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" | "classifier" | "broadcastChatMessage" | "chatHistory" | "chatAi" | "makeCall" | "formTextfield" | "formSelect" | "formSelectService" | "formTable" | "formText" | "formDatetimePicker" | "formRichTextEditor" | "formSelectFromObject" | "formSelectCaseStatus" | "generateForm" | "attemptResult" | "getEmail" | "formFile" | "customModule")[];
7
7
  };
8
8
  export type FlowTypeApplications = (typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
@@ -0,0 +1,2 @@
1
+ import { type ConnectionQualityLevelsType } from '../enums';
2
+ export declare const getConnectionQuality: (mosAvg?: number) => ConnectionQualityLevelsType | null;
@@ -5,6 +5,7 @@ import convertDuration from './convertDuration.js';
5
5
  import debounce from './debounce.js';
6
6
  import downloadFile from './downloadFile/downloadFile';
7
7
  import eventBus from './eventBus.js';
8
+ import { getConnectionQuality } from './getConnectionQuality.ts';
8
9
  import { getEndOfDay } from './getDefaultFilterDate.js';
9
10
  import { getNextSortOrder } from './sortQueryAdapters.js';
10
11
  import { getStartOfDay } from './getDefaultFilterDate.js';
@@ -30,4 +31,4 @@ import { snakeToKebab } from './caseConverters.js';
30
31
  import { sortToQueryAdapter } from './sortQueryAdapters.js';
31
32
  import updateObject from './updateObject.js';
32
33
  import { wtlog } from './logger.js';
33
- export { camelToKebab, camelToSnake, compareSize, convertDuration, debounce, downloadFile, eventBus, getEndOfDay, getNextSortOrder, getStartOfDay, isEmpty, isRelativeDatetimeValue, kebabToCamel, kebabToSnake, normalizeToTimestamp, objCamelToKebab, objCamelToSnake, objSnakeToCamel, prettifyFileSize, prettifyTime, preventHiddenPageCallsDecorator, queryToSortAdapter, saveAsJSON, sizeGreaterOrEqual, sizeGreaterThen, sizeSmallerOrEqual, sizeSmallerThen, snakeToCamel, snakeToKebab, sortToQueryAdapter, updateObject, wtlog };
34
+ export { camelToKebab, camelToSnake, compareSize, convertDuration, debounce, downloadFile, eventBus, getConnectionQuality, getEndOfDay, getNextSortOrder, getStartOfDay, isEmpty, isRelativeDatetimeValue, kebabToCamel, kebabToSnake, normalizeToTimestamp, objCamelToKebab, objCamelToSnake, objSnakeToCamel, prettifyFileSize, prettifyTime, preventHiddenPageCallsDecorator, queryToSortAdapter, saveAsJSON, sizeGreaterOrEqual, sizeGreaterThen, sizeSmallerOrEqual, sizeSmallerThen, snakeToCamel, snakeToKebab, sortToQueryAdapter, updateObject, wtlog };
@@ -1,31 +0,0 @@
1
- //#region node_modules/mitt/dist/mitt.mjs
2
- function e(e) {
3
- return {
4
- all: e ||= /* @__PURE__ */ new Map(),
5
- on: function(t, n) {
6
- var r = e.get(t);
7
- r ? r.push(n) : e.set(t, [n]);
8
- },
9
- off: function(t, n) {
10
- var r = e.get(t);
11
- r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
12
- },
13
- emit: function(t, n) {
14
- var r = e.get(t);
15
- r && r.slice().map(function(e) {
16
- e(n);
17
- }), (r = e.get("*")) && r.slice().map(function(e) {
18
- e(t, n);
19
- });
20
- }
21
- };
22
- }
23
- //#endregion
24
- //#region src/scripts/eventBus.js
25
- var t = e(), n = {
26
- $on: (...e) => t.on(...e),
27
- $off: (...e) => t.off(...e),
28
- $emit: (...e) => t.emit(...e)
29
- };
30
- //#endregion
31
- export { n as t };