@webitel/ui-sdk 26.8.35 → 26.8.36

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/locale/en/en.js +4 -0
  3. package/src/locale/es/es.js +4 -0
  4. package/src/locale/kz/kz.js +4 -0
  5. package/src/locale/pl/pl.js +4 -0
  6. package/src/locale/ro/ro.js +4 -0
  7. package/src/locale/ru/ru.js +4 -0
  8. package/src/locale/uk/uk.js +4 -0
  9. package/src/locale/uz/uz.js +4 -0
  10. package/src/locale/vi/vi.js +4 -0
  11. package/src/modules/AgentStatusSelect/api/agent-status.js +2 -0
  12. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue +104 -0
  13. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +148 -37
  14. package/src/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.ts +43 -0
  15. package/src/modules/AgentStatusSelect/types/StatusChangePayload.types.ts +9 -0
  16. package/src/modules/AgentStatusSelect/types/UseCCenterModeSwitcherParams.types.ts +9 -0
  17. package/src/types/LookupOption.types.ts +4 -0
  18. package/src/types/index.ts +1 -0
  19. package/types/.tsbuildinfo +1 -1
  20. package/types/locale/en/en.d.ts +4 -0
  21. package/types/locale/es/es.d.ts +7 -2
  22. package/types/locale/i18n.d.ts +36 -0
  23. package/types/locale/index.d.ts +36 -0
  24. package/types/locale/kz/kz.d.ts +7 -2
  25. package/types/locale/pl/pl.d.ts +7 -2
  26. package/types/locale/ro/ro.d.ts +7 -2
  27. package/types/locale/ru/ru.d.ts +7 -2
  28. package/types/locale/uk/uk.d.ts +7 -2
  29. package/types/locale/uz/uz.d.ts +7 -2
  30. package/types/locale/vi/vi.d.ts +7 -2
  31. package/types/modules/AgentStatusSelect/api/agent-status.d.ts +2 -1
  32. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue.d.ts +15 -0
  33. package/types/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue.d.ts +21 -32
  34. package/types/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.d.ts +5 -0
  35. package/types/modules/AgentStatusSelect/types/StatusChangePayload.types.d.ts +8 -0
  36. package/types/modules/AgentStatusSelect/types/UseCCenterModeSwitcherParams.types.d.ts +8 -0
  37. package/types/types/LookupOption.types.d.ts +4 -0
  38. package/types/types/index.d.ts +1 -0
@@ -608,6 +608,10 @@ declare const _default: {
608
608
  title: string;
609
609
  message: string;
610
610
  };
611
+ activityTypePopup: {
612
+ title: string;
613
+ defaultOption: string;
614
+ };
611
615
  };
612
616
  pdfGeneration: {
613
617
  generationStarted: string;
@@ -682,13 +682,18 @@ declare namespace _default {
682
682
  export { title_7 as title };
683
683
  export let message: string;
684
684
  }
685
+ namespace activityTypePopup {
686
+ let title_8: string;
687
+ export { title_8 as title };
688
+ export let defaultOption: string;
689
+ }
685
690
  }
686
691
  export namespace pdfGeneration {
687
692
  let generationStarted: string;
688
693
  }
689
694
  export namespace saveFailedPopup {
690
- let title_8: string;
691
- export { title_8 as title };
695
+ let title_9: string;
696
+ export { title_9 as title };
692
697
  export let label: string;
693
698
  export let exportToJson: string;
694
699
  }
@@ -609,6 +609,10 @@ declare const _default: import("vue-i18n").I18n<{
609
609
  title: string;
610
610
  message: string;
611
611
  };
612
+ activityTypePopup: {
613
+ title: string;
614
+ defaultOption: string;
615
+ };
612
616
  };
613
617
  pdfGeneration: {
614
618
  generationStarted: string;
@@ -1469,6 +1473,10 @@ declare const _default: import("vue-i18n").I18n<{
1469
1473
  title: string;
1470
1474
  message: string;
1471
1475
  };
1476
+ activityTypePopup: {
1477
+ title: string;
1478
+ defaultOption: string;
1479
+ };
1472
1480
  };
1473
1481
  pdfGeneration: {
1474
1482
  generationStarted: string;
@@ -2313,6 +2321,10 @@ declare const _default: import("vue-i18n").I18n<{
2313
2321
  title: string;
2314
2322
  message: string;
2315
2323
  };
2324
+ activityTypePopup: {
2325
+ title: string;
2326
+ defaultOption: string;
2327
+ };
2316
2328
  };
2317
2329
  pdfGeneration: {
2318
2330
  generationStarted: string;
@@ -3159,6 +3171,10 @@ declare const _default: import("vue-i18n").I18n<{
3159
3171
  title: string;
3160
3172
  message: string;
3161
3173
  };
3174
+ activityTypePopup: {
3175
+ title: string;
3176
+ defaultOption: string;
3177
+ };
3162
3178
  };
3163
3179
  pdfGeneration: {
3164
3180
  generationStarted: string;
@@ -4003,6 +4019,10 @@ declare const _default: import("vue-i18n").I18n<{
4003
4019
  title: string;
4004
4020
  message: string;
4005
4021
  };
4022
+ activityTypePopup: {
4023
+ title: string;
4024
+ defaultOption: string;
4025
+ };
4006
4026
  };
4007
4027
  pdfGeneration: {
4008
4028
  generationStarted: string;
@@ -4849,6 +4869,10 @@ declare const _default: import("vue-i18n").I18n<{
4849
4869
  title: string;
4850
4870
  message: string;
4851
4871
  };
4872
+ activityTypePopup: {
4873
+ title: string;
4874
+ defaultOption: string;
4875
+ };
4852
4876
  };
4853
4877
  pdfGeneration: {
4854
4878
  generationStarted: string;
@@ -5695,6 +5719,10 @@ declare const _default: import("vue-i18n").I18n<{
5695
5719
  title: string;
5696
5720
  message: string;
5697
5721
  };
5722
+ activityTypePopup: {
5723
+ title: string;
5724
+ defaultOption: string;
5725
+ };
5698
5726
  };
5699
5727
  pdfGeneration: {
5700
5728
  generationStarted: string;
@@ -6542,6 +6570,10 @@ declare const _default: import("vue-i18n").I18n<{
6542
6570
  title: string;
6543
6571
  message: string;
6544
6572
  };
6573
+ activityTypePopup: {
6574
+ title: string;
6575
+ defaultOption: string;
6576
+ };
6545
6577
  };
6546
6578
  pdfGeneration: {
6547
6579
  generationStarted: string;
@@ -7388,6 +7420,10 @@ declare const _default: import("vue-i18n").I18n<{
7388
7420
  title: string;
7389
7421
  message: string;
7390
7422
  };
7423
+ activityTypePopup: {
7424
+ title: string;
7425
+ defaultOption: string;
7426
+ };
7391
7427
  };
7392
7428
  pdfGeneration: {
7393
7429
  generationStarted: string;
@@ -619,6 +619,10 @@ export declare const messages: {
619
619
  title: string;
620
620
  message: string;
621
621
  };
622
+ activityTypePopup: {
623
+ title: string;
624
+ defaultOption: string;
625
+ };
622
626
  };
623
627
  pdfGeneration: {
624
628
  generationStarted: string;
@@ -1479,6 +1483,10 @@ export declare const messages: {
1479
1483
  title: string;
1480
1484
  message: string;
1481
1485
  };
1486
+ activityTypePopup: {
1487
+ title: string;
1488
+ defaultOption: string;
1489
+ };
1482
1490
  };
1483
1491
  pdfGeneration: {
1484
1492
  generationStarted: string;
@@ -2323,6 +2331,10 @@ export declare const messages: {
2323
2331
  title: string;
2324
2332
  message: string;
2325
2333
  };
2334
+ activityTypePopup: {
2335
+ title: string;
2336
+ defaultOption: string;
2337
+ };
2326
2338
  };
2327
2339
  pdfGeneration: {
2328
2340
  generationStarted: string;
@@ -3169,6 +3181,10 @@ export declare const messages: {
3169
3181
  title: string;
3170
3182
  message: string;
3171
3183
  };
3184
+ activityTypePopup: {
3185
+ title: string;
3186
+ defaultOption: string;
3187
+ };
3172
3188
  };
3173
3189
  pdfGeneration: {
3174
3190
  generationStarted: string;
@@ -4013,6 +4029,10 @@ export declare const messages: {
4013
4029
  title: string;
4014
4030
  message: string;
4015
4031
  };
4032
+ activityTypePopup: {
4033
+ title: string;
4034
+ defaultOption: string;
4035
+ };
4016
4036
  };
4017
4037
  pdfGeneration: {
4018
4038
  generationStarted: string;
@@ -4859,6 +4879,10 @@ export declare const messages: {
4859
4879
  title: string;
4860
4880
  message: string;
4861
4881
  };
4882
+ activityTypePopup: {
4883
+ title: string;
4884
+ defaultOption: string;
4885
+ };
4862
4886
  };
4863
4887
  pdfGeneration: {
4864
4888
  generationStarted: string;
@@ -5705,6 +5729,10 @@ export declare const messages: {
5705
5729
  title: string;
5706
5730
  message: string;
5707
5731
  };
5732
+ activityTypePopup: {
5733
+ title: string;
5734
+ defaultOption: string;
5735
+ };
5708
5736
  };
5709
5737
  pdfGeneration: {
5710
5738
  generationStarted: string;
@@ -6552,6 +6580,10 @@ export declare const messages: {
6552
6580
  title: string;
6553
6581
  message: string;
6554
6582
  };
6583
+ activityTypePopup: {
6584
+ title: string;
6585
+ defaultOption: string;
6586
+ };
6555
6587
  };
6556
6588
  pdfGeneration: {
6557
6589
  generationStarted: string;
@@ -7398,6 +7430,10 @@ export declare const messages: {
7398
7430
  title: string;
7399
7431
  message: string;
7400
7432
  };
7433
+ activityTypePopup: {
7434
+ title: string;
7435
+ defaultOption: string;
7436
+ };
7401
7437
  };
7402
7438
  pdfGeneration: {
7403
7439
  generationStarted: string;
@@ -682,13 +682,18 @@ declare namespace _default {
682
682
  export { title_7 as title };
683
683
  export let message: string;
684
684
  }
685
+ namespace activityTypePopup {
686
+ let title_8: string;
687
+ export { title_8 as title };
688
+ export let defaultOption: string;
689
+ }
685
690
  }
686
691
  export namespace pdfGeneration {
687
692
  let generationStarted: string;
688
693
  }
689
694
  export namespace saveFailedPopup {
690
- let title_8: string;
691
- export { title_8 as title };
695
+ let title_9: string;
696
+ export { title_9 as title };
692
697
  export let label: string;
693
698
  export let exportToJson: string;
694
699
  }
@@ -682,13 +682,18 @@ declare namespace _default {
682
682
  export { title_7 as title };
683
683
  export let message: string;
684
684
  }
685
+ namespace activityTypePopup {
686
+ let title_8: string;
687
+ export { title_8 as title };
688
+ export let defaultOption: string;
689
+ }
685
690
  }
686
691
  export namespace pdfGeneration {
687
692
  let generationStarted: string;
688
693
  }
689
694
  export namespace saveFailedPopup {
690
- let title_8: string;
691
- export { title_8 as title };
695
+ let title_9: string;
696
+ export { title_9 as title };
692
697
  export let label: string;
693
698
  export let exportToJson: string;
694
699
  }
@@ -682,13 +682,18 @@ declare namespace _default {
682
682
  export { title_7 as title };
683
683
  export let message: string;
684
684
  }
685
+ namespace activityTypePopup {
686
+ let title_8: string;
687
+ export { title_8 as title };
688
+ export let defaultOption: string;
689
+ }
685
690
  }
686
691
  export namespace pdfGeneration {
687
692
  let generationStarted: string;
688
693
  }
689
694
  export namespace saveFailedPopup {
690
- let title_8: string;
691
- export { title_8 as title };
695
+ let title_9: string;
696
+ export { title_9 as title };
692
697
  export let label: string;
693
698
  export let exportToJson: string;
694
699
  }
@@ -680,13 +680,18 @@ declare namespace _default {
680
680
  export { title_7 as title };
681
681
  export let message: string;
682
682
  }
683
+ namespace activityTypePopup {
684
+ let title_8: string;
685
+ export { title_8 as title };
686
+ export let defaultOption: string;
687
+ }
683
688
  }
684
689
  export namespace pdfGeneration {
685
690
  let generationStarted: string;
686
691
  }
687
692
  export namespace saveFailedPopup {
688
- let title_8: string;
689
- export { title_8 as title };
693
+ let title_9: string;
694
+ export { title_9 as title };
690
695
  export let label: string;
691
696
  export let exportToJson: string;
692
697
  }
@@ -680,13 +680,18 @@ declare namespace _default {
680
680
  export { title_7 as title };
681
681
  export let message: string;
682
682
  }
683
+ namespace activityTypePopup {
684
+ let title_8: string;
685
+ export { title_8 as title };
686
+ export let defaultOption: string;
687
+ }
683
688
  }
684
689
  export namespace pdfGeneration {
685
690
  let generationStarted: string;
686
691
  }
687
692
  export namespace saveFailedPopup {
688
- let title_8: string;
689
- export { title_8 as title };
693
+ let title_9: string;
694
+ export { title_9 as title };
690
695
  export let label: string;
691
696
  export let exportToJson: string;
692
697
  }
@@ -683,13 +683,18 @@ declare namespace _default {
683
683
  export { title_7 as title };
684
684
  export let message: string;
685
685
  }
686
+ namespace activityTypePopup {
687
+ let title_8: string;
688
+ export { title_8 as title };
689
+ export let defaultOption: string;
690
+ }
686
691
  }
687
692
  export namespace pdfGeneration {
688
693
  let generationStarted: string;
689
694
  }
690
695
  export namespace saveFailedPopup {
691
- let title_8: string;
692
- export { title_8 as title };
696
+ let title_9: string;
697
+ export { title_9 as title };
693
698
  export let label: string;
694
699
  export let exportToJson: string;
695
700
  }
@@ -682,13 +682,18 @@ declare namespace _default {
682
682
  export { title_7 as title };
683
683
  export let message: string;
684
684
  }
685
+ namespace activityTypePopup {
686
+ let title_8: string;
687
+ export { title_8 as title };
688
+ export let defaultOption: string;
689
+ }
685
690
  }
686
691
  export namespace pdfGeneration {
687
692
  let generationStarted: string;
688
693
  }
689
694
  export namespace saveFailedPopup {
690
- let title_8: string;
691
- export { title_8 as title };
695
+ let title_9: string;
696
+ export { title_9 as title };
692
697
  export let label: string;
693
698
  export let exportToJson: string;
694
699
  }
@@ -3,11 +3,12 @@ declare function AgentStatusAPIFactory({ instance, OpenAPIConfig }: {
3
3
  instance: any;
4
4
  OpenAPIConfig: any;
5
5
  }): {
6
- patch: ({ agentId, status, pauseCause, statusComment, }: {
6
+ patch: ({ agentId, status, pauseCause, statusComment, onlineSkill, }: {
7
7
  agentId: any;
8
8
  status: any;
9
9
  pauseCause: any;
10
10
  statusComment: any;
11
+ onlineSkill: any;
11
12
  }) => Promise<{
12
13
  success: boolean;
13
14
  }>;
@@ -0,0 +1,15 @@
1
+ import type { LookupOption } from '../../../../types';
2
+ type __VLS_Props = {
3
+ options?: LookupOption[];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ change: (option: LookupOption) => any;
7
+ close: () => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onChange?: ((option: LookupOption) => any) | undefined;
10
+ onClose?: (() => any) | undefined;
11
+ }>, {
12
+ options: LookupOption[];
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -1,34 +1,23 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- agentId: {
5
- type: (StringConstructor | NumberConstructor)[];
6
- required: true;
7
- };
8
- status: {
9
- default: "offline";
10
- };
11
- statusDuration: {
12
- type: (StringConstructor | NumberConstructor)[];
13
- default: number;
14
- };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- changed: (...args: any[]) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- agentId: {
19
- type: (StringConstructor | NumberConstructor)[];
20
- required: true;
21
- };
22
- status: {
23
- default: "offline";
24
- };
25
- statusDuration: {
26
- type: (StringConstructor | NumberConstructor)[];
27
- default: number;
28
- };
29
- }>> & Readonly<{
30
- onChanged?: ((...args: any[]) => any) | undefined;
1
+ import type { LookupOption } from '../../../types';
2
+ import type { StatusChangePayload } from '../types/StatusChangePayload.types';
3
+ type __VLS_Props = {
4
+ agentId: string | number;
5
+ status?: string;
6
+ statusDuration?: string | number;
7
+ showCallCenterSwitcher?: boolean;
8
+ isCallCenterOn?: boolean;
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "changed-call-center-mode": (payload?: LookupOption | undefined) => any;
12
+ changed: (payload: StatusChangePayload) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onChanged-call-center-mode"?: ((payload?: LookupOption | undefined) => any) | undefined;
15
+ onChanged?: ((payload: StatusChangePayload) => any) | undefined;
31
16
  }>, {
32
- status: "offline";
17
+ status: string;
33
18
  statusDuration: string | number;
34
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ showCallCenterSwitcher: boolean;
20
+ isCallCenterOn: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { UseCCenterModeSwitcherParams } from '../types/UseCCenterModeSwitcherParams.types';
2
+ export declare const useCCenterModeSwitcher: ({ activityTypes, loadActivityTypes, openActivityTypePopup, emit, }: UseCCenterModeSwitcherParams) => {
3
+ callCenterModeChanging: import("vue").Ref<boolean, boolean>;
4
+ toggleCallCenterMode: (value: boolean) => Promise<void>;
5
+ };
@@ -0,0 +1,8 @@
1
+ import type { LookupOption } from '../../../types';
2
+ export interface StatusChangePayload {
3
+ agentId: string | number;
4
+ status: string;
5
+ pauseCause?: string;
6
+ statusComment?: string;
7
+ onlineSkill?: LookupOption;
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { Ref } from 'vue';
2
+ import type { LookupOption } from '../../../types';
3
+ export interface UseCCenterModeSwitcherParams {
4
+ activityTypes: Ref<LookupOption[]>;
5
+ loadActivityTypes: () => Promise<void>;
6
+ openActivityTypePopup: () => void;
7
+ emit: (event: 'changed-call-center-mode', payload?: LookupOption) => void;
8
+ }
@@ -0,0 +1,4 @@
1
+ export type LookupOption = {
2
+ id: string | number;
3
+ name: string;
4
+ };
@@ -1 +1,2 @@
1
+ export type { LookupOption } from './LookupOption.types';
1
2
  export type { ResultCallbacks } from './ResultCallbacks.types';