@webitel/ui-sdk 26.8.1 → 26.8.3

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 (55) hide show
  1. package/package.json +9 -4
  2. package/src/components/index.d.ts +96 -0
  3. package/src/enums/LoginOptions/LoginOptions.ts +1 -1
  4. package/src/install.ts +12 -3
  5. package/src/scripts/normalizeDatetime.ts +5 -2
  6. package/src/types/ResultCallbacks.types.ts +5 -0
  7. package/src/types/index.ts +1 -0
  8. package/types/.tsbuildinfo +1 -1
  9. package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
  10. package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +1 -1
  11. package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +1 -1
  12. package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +4 -4
  13. package/types/components/transitions/cases/wt-replace-transition.vue.d.ts +1 -1
  14. package/types/components/transitions/wt-transition.vue.d.ts +2 -2
  15. package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
  16. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +23 -23
  17. package/types/components/wt-badge-new/wt-badge.vue.d.ts +1 -1
  18. package/types/components/wt-button/wt-button.vue.d.ts +2 -2
  19. package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +2 -2
  20. package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +2 -2
  21. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +12 -12
  22. package/types/components/wt-empty/wt-empty.vue.d.ts +2 -2
  23. package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -2
  24. package/types/components/wt-icon/wt-icon.vue.d.ts +1 -1
  25. package/types/components/wt-icon-action/wt-icon-action.vue.d.ts +1 -1
  26. package/types/components/wt-indicator/wt-indicator.vue.d.ts +2 -2
  27. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +1 -1
  28. package/types/components/wt-input-number/wt-input-number.vue.d.ts +4 -4
  29. package/types/components/wt-input-text/wt-input-text.vue.d.ts +4 -4
  30. package/types/components/wt-item-link/wt-item-link.vue.d.ts +4 -4
  31. package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +4 -4
  32. package/types/components/wt-password/wt-password.vue.d.ts +2 -2
  33. package/types/components/wt-player/wt-player.vue.d.ts +1 -1
  34. package/types/components/wt-popover/wt-popover.vue.d.ts +2 -2
  35. package/types/components/wt-popup/wt-popup.vue.d.ts +1 -1
  36. package/types/components/wt-radio/wt-radio.vue.d.ts +2 -2
  37. package/types/components/wt-single-select/wt-single-select.vue.d.ts +2 -2
  38. package/types/components/wt-slider/wt-slider.vue.d.ts +3 -3
  39. package/types/components/wt-switcher/wt-switcher.vue.d.ts +1 -1
  40. package/types/components/wt-table/wt-table.vue.d.ts +4 -4
  41. package/types/components/wt-textarea/wt-textarea.vue.d.ts +2 -2
  42. package/types/components/wt-time-input/wt-time-input.vue.d.ts +3 -3
  43. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +3 -3
  44. package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +2 -2
  45. package/types/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue.d.ts +2 -2
  46. package/types/enums/LoginOptions/LoginOptions.d.ts +1 -1
  47. package/types/mixins/validationMixin/useValidation.d.ts +1 -1
  48. package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
  49. package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +2 -2
  50. package/types/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue.d.ts +4 -4
  51. package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +2 -2
  52. package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +2 -2
  53. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  54. package/types/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue.d.ts +1 -1
  55. package/types/scripts/normalizeDatetime.d.ts +1 -1
@@ -58,12 +58,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
58
58
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
59
59
  "onUpdate:modelValue"?: (value: number) => any;
60
60
  }>, {
61
+ disabled: boolean;
62
+ label: string;
61
63
  name: string;
62
64
  required: boolean;
63
- label: string;
64
- disabled: boolean;
65
- maxValue: number;
66
65
  minValue: number;
66
+ maxValue: number;
67
67
  customValidators: unknown[];
68
68
  v: Record<string, unknown>;
69
69
  regleValidation: RegleFieldStatus<number>;
@@ -56,15 +56,15 @@ declare const __VLS_base: import("vue").DefineComponent<WtTimepickerProps, {}, {
56
56
  }, string, import("vue").PublicProps, Readonly<WtTimepickerProps> & Readonly<{
57
57
  "onUpdate:modelValue"?: (value: number) => any;
58
58
  }>, {
59
- required: boolean;
60
- label: string;
61
59
  disabled: boolean;
60
+ label: string;
61
+ required: boolean;
62
+ format: string;
62
63
  modelValue: string | number;
63
64
  customValidators: unknown[];
64
65
  v: Record<string, unknown>;
65
66
  regleValidation: RegleFieldStatus<number>;
66
67
  labelProps: Record<string, unknown>;
67
- format: string;
68
68
  dateMode: boolean;
69
69
  noLabel: boolean;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -10,16 +10,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
10
10
  default: () => any[];
11
11
  };
12
12
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- hide: (...args: any[]) => void;
14
13
  show: (...args: any[]) => void;
14
+ hide: (...args: any[]) => void;
15
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
16
  triggers: {
17
17
  type: ArrayConstructor;
18
18
  default: () => any[];
19
19
  };
20
20
  }>> & Readonly<{
21
- onHide?: (...args: any[]) => any;
22
21
  onShow?: (...args: any[]) => any;
22
+ onHide?: (...args: any[]) => any;
23
23
  }>, {
24
24
  triggers: unknown[];
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -15,16 +15,16 @@ type __VLS_Props = {
15
15
  'actions:chat:pressed': boolean;
16
16
  };
17
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
- video: (payload?: unknown, options?: ResultCallbacks) => any;
19
18
  chat: (payload?: unknown, options?: ResultCallbacks) => any;
19
+ video: (payload?: unknown, options?: ResultCallbacks) => any;
20
20
  settings: (payload?: unknown, options?: ResultCallbacks) => any;
21
21
  screenshot: (payload?: unknown, options?: ResultCallbacks) => any;
22
22
  recordings: (payload?: unknown, options?: ResultCallbacks) => any;
23
23
  mic: (payload?: unknown, options?: ResultCallbacks) => any;
24
24
  hangup: (payload?: unknown, options?: ResultCallbacks) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onVideo?: (payload?: unknown, options?: ResultCallbacks) => any;
27
26
  onChat?: (payload?: unknown, options?: ResultCallbacks) => any;
27
+ onVideo?: (payload?: unknown, options?: ResultCallbacks) => any;
28
28
  onSettings?: (payload?: unknown, options?: ResultCallbacks) => any;
29
29
  onScreenshot?: (payload?: unknown, options?: ResultCallbacks) => any;
30
30
  onRecordings?: (payload?: unknown, options?: ResultCallbacks) => any;
@@ -3,4 +3,4 @@ export declare const LoginOptions: {
3
3
  readonly SSO_AND_LOCAL: "sso_and_local";
4
4
  readonly SSO_ONLY: "sso_only";
5
5
  };
6
- export type LoginOptions = keyof typeof LoginOptions;
6
+ export type LoginOptions = (typeof LoginOptions)[keyof typeof LoginOptions];
@@ -12,6 +12,6 @@ export declare const useValidation: ({ v: vuelidateValidation, customValidators:
12
12
  isValidation: import("vue").ComputedRef<boolean>;
13
13
  invalid: import("vue").ComputedRef<boolean>;
14
14
  validationText: import("vue").ComputedRef<string>;
15
- validationTextColor: import("vue").ComputedRef<"error" | "secondary">;
15
+ validationTextColor: import("vue").ComputedRef<"secondary" | "error">;
16
16
  };
17
17
  export {};
@@ -14,7 +14,7 @@ declare namespace _default {
14
14
  function isValidation(): boolean;
15
15
  function invalid(): any;
16
16
  function validationText(): string;
17
- function validationTextColor(): "error" | "success";
17
+ function validationTextColor(): "success" | "error";
18
18
  }
19
19
  }
20
20
  export default _default;
@@ -6,16 +6,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
6
6
  default: () => any[];
7
7
  };
8
8
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- change: (...args: any[]) => void;
10
9
  close: (...args: any[]) => void;
10
+ change: (...args: any[]) => void;
11
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
12
  options: {
13
13
  type: ArrayConstructor;
14
14
  default: () => any[];
15
15
  };
16
16
  }>> & Readonly<{
17
- onChange?: (...args: any[]) => any;
18
17
  onClose?: (...args: any[]) => any;
18
+ onChange?: (...args: any[]) => any;
19
19
  }>, {
20
20
  options: unknown[];
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2,28 +2,28 @@ declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  agentId: {
5
- type: (StringConstructor | NumberConstructor)[];
5
+ type: (NumberConstructor | StringConstructor)[];
6
6
  required: true;
7
7
  };
8
8
  status: {
9
9
  default: "offline";
10
10
  };
11
11
  statusDuration: {
12
- type: (StringConstructor | NumberConstructor)[];
12
+ type: (NumberConstructor | StringConstructor)[];
13
13
  default: number;
14
14
  };
15
15
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  changed: (...args: any[]) => void;
17
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  agentId: {
19
- type: (StringConstructor | NumberConstructor)[];
19
+ type: (NumberConstructor | StringConstructor)[];
20
20
  required: true;
21
21
  };
22
22
  status: {
23
23
  default: "offline";
24
24
  };
25
25
  statusDuration: {
26
- type: (StringConstructor | NumberConstructor)[];
26
+ type: (NumberConstructor | StringConstructor)[];
27
27
  default: number;
28
28
  };
29
29
  }>> & Readonly<{
@@ -11,13 +11,13 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
12
12
  activateQuestion: typeof activateQuestion;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- copy: () => any;
15
14
  delete: () => any;
15
+ copy: () => any;
16
16
  "update:question": (value: EngineQuestion) => any;
17
17
  "update:answer": (value: EngineQuestionAnswer) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- onCopy?: () => any;
20
19
  onDelete?: () => any;
20
+ onCopy?: () => any;
21
21
  "onUpdate:question"?: (value: EngineQuestion) => any;
22
22
  "onUpdate:answer"?: (value: EngineQuestionAnswer) => any;
23
23
  }>, {
@@ -32,9 +32,9 @@ type __VLS_Props = {
32
32
  'actions:chat:pressed'?: boolean;
33
33
  };
34
34
  declare var __VLS_26: {
35
- size: ComponentSize;
35
+ size: any;
36
36
  }, __VLS_33: {
37
- size: ComponentSize;
37
+ size: any;
38
38
  };
39
39
  type __VLS_Slots = {} & {
40
40
  content?: (props: typeof __VLS_26) => any;
@@ -1,8 +1,8 @@
1
1
  export declare const FlowTypeApplications: {
2
- readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "log" | "math" | "notification" | "sendMessage" | "schema" | "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" | "sendMessage" | "schema" | "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" | "sendMessage" | "schema" | "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" | "sendMessage" | "schema" | "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" | "menu" | "set" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "log" | "start" | "math" | "notification" | "hangup" | "sendMessage" | "tts" | "schema" | "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" | "export" | "calendar" | "list" | "set" | "log" | "sendMessage" | "notification" | "switch" | "schema" | "userInfo" | "execute" | "math" | "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" | "export" | "calendar" | "list" | "set" | "log" | "sendMessage" | "notification" | "switch" | "schema" | "userInfo" | "execute" | "math" | "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" | "export" | "calendar" | "list" | "set" | "log" | "sendMessage" | "notification" | "switch" | "schema" | "userInfo" | "execute" | "math" | "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" | "export" | "calendar" | "list" | "set" | "log" | "sendMessage" | "notification" | "switch" | "schema" | "userInfo" | "execute" | "math" | "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" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "start" | "set" | "menu" | "log" | "sendMessage" | "tts" | "notification" | "stop" | "switch" | "schema" | "userInfo" | "execute" | "math" | "hangup" | "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];
@@ -88,8 +88,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
88
88
  };
89
89
  }>> & Readonly<{}>, {
90
90
  error: Record<string, any>;
91
- isLoading: boolean;
92
91
  access: Record<string, any>;
92
+ isLoading: boolean;
93
93
  existingGranteeIds: unknown[];
94
94
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
95
95
  type __VLS_Slots = {
@@ -4,5 +4,5 @@ export type NormalizeDatetimeValueParam = RelativeDatetimeValue | number | strin
4
4
  export type NormalizeDatetimeOptions = {
5
5
  round?: RelativeDatetimeRoundOption;
6
6
  };
7
- export declare const isRelativeDatetimeValue: (value: string) => value is RelativeDatetimeValue;
7
+ export declare const isRelativeDatetimeValue: (value: unknown) => value is RelativeDatetimeValue;
8
8
  export declare const normalizeToTimestamp: (value?: NormalizeDatetimeValueParam, options?: NormalizeDatetimeOptions) => number;