@webitel/ui-sdk 26.6.102 → 26.6.104

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 (95) hide show
  1. package/dist/{clients-DhfpT_WX.js → clients-DqzkR0RW.js} +1 -1
  2. package/dist/{components-D09oOmMT.js → components-D8JOGMR0.js} +3 -3
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +37 -37
  6. package/dist/{wt-chat-emoji-BNd-IMKX.js → wt-chat-emoji-Dp6FMc5b.js} +1 -1
  7. package/dist/{wt-display-chip-items-DDtIC1eC.js → wt-display-chip-items-BXBiBRHv.js} +1 -1
  8. package/dist/{wt-send-message-popup-CZw4gY49.js → wt-send-message-popup-Bb1kLJAB.js} +2 -2
  9. package/dist/{wt-table-C39WpJH8.js → wt-table-DK024qBI.js} +1 -1
  10. package/dist/{wt-tree-table-umRsVKWt.js → wt-tree-table-Dr1gwykM.js} +2 -2
  11. package/dist/{wt-type-extension-value-input-Fbnk51qu.js → wt-type-extension-value-input-PBQg_6By.js} +2 -2
  12. package/dist/{wt-vidstack-player-BnwDqffJ.js → wt-vidstack-player-BnjIQSJE.js} +1 -1
  13. package/package.json +3 -3
  14. package/src/components/wt-galleria/wt-galleria.vue +1 -1
  15. package/src/components/wt-tree-table/wt-tree-table.vue +1 -1
  16. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +1 -1
  17. package/src/modules/Userinfo/composables/createUserAccessControl.ts +2 -2
  18. package/src/modules/Userinfo/scripts/utils.ts +1 -1
  19. package/src/modules/Userinfo/stores/accessStore.ts +1 -1
  20. package/src/modules/Userinfo/types/{UserAccess.d.ts → UserAccess.ts} +5 -5
  21. package/types/.tsbuildinfo +1 -0
  22. package/types/api/types/ApiModule.d.ts +42 -0
  23. package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
  24. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +16 -16
  25. package/types/components/wt-badge/wt-badge.vue.d.ts +1 -1
  26. package/types/components/wt-badge-new/types/WtBadge.d.ts +1 -0
  27. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
  28. package/types/components/wt-galleria/types/WtGalleria.d.ts +6 -0
  29. package/types/components/wt-galleria/wt-galleria.vue.d.ts +1 -1
  30. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +1 -1
  31. package/types/components/wt-navigation-bar/types/WtNavigationBar.d.ts +14 -0
  32. package/types/components/wt-navigation-bar/wt-navigation-bar.vue.d.ts +14 -14
  33. package/types/components/wt-search-bar/types/WtSearchBar.d.ts +17 -0
  34. package/types/components/wt-table/types/WtTable.d.ts +10 -0
  35. package/types/components/wt-table/wt-table.vue.d.ts +2 -2
  36. package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +1 -1
  37. package/types/components/wt-tree-table-row/wt-tree-table-row.vue.d.ts +1 -1
  38. package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +2 -2
  39. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  40. package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +1 -1
  41. package/types/modules/Userinfo/scripts/utils.d.ts +1 -1
  42. package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
  43. package/types/modules/Userinfo/stores/userinfoStore.d.ts +30 -31
  44. package/types/modules/Userinfo/types/UserAccess.d.ts +126 -0
  45. package/types/plugins/primevue/theme/components/avatar/avatar.d.ts +32 -32
  46. package/src/components/wt-context-menu/types/WtContextMenu.d.ts +0 -4
  47. package/src/composables/index.d.ts +0 -9
  48. package/src/composables/useEventBus/useEventBus.d.ts +0 -11
  49. package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +0 -5
  50. package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +0 -12
  51. package/src/enums/ButtonColor/ButtonColor.d.ts +0 -11
  52. package/src/enums/ButtonVariant/ButtonVariant.d.ts +0 -6
  53. package/src/enums/ChipColor/ChipColor.d.ts +0 -11
  54. package/src/enums/ComponentSize/ComponentSize.d.ts +0 -17
  55. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +0 -7
  56. package/src/enums/CrudAction/CrudAction.d.ts +0 -7
  57. package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +0 -10
  58. package/src/enums/EmptyCause/EmptyCause.d.ts +0 -6
  59. package/src/enums/FormatDateMode/FormatDateMode.d.ts +0 -9
  60. package/src/enums/IconColor/IconColor.d.ts +0 -17
  61. package/src/enums/LoginOptions/LoginOptions.d.ts +0 -6
  62. package/src/enums/MessageColor/MessageColor.d.ts +0 -9
  63. package/src/enums/MessageVariant/MessageVariant.d.ts +0 -6
  64. package/src/enums/MimeTypes/MimeTypes.enum.d.ts +0 -17
  65. package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +0 -9
  66. package/src/enums/QueueType/QueueType.enum.d.ts +0 -28
  67. package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +0 -8
  68. package/src/enums/RingtoneType/RingtoneType.d.ts +0 -6
  69. package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +0 -8
  70. package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +0 -7
  71. package/src/enums/WebitelApplications/AdminSections.d.ts +0 -46
  72. package/src/enums/WebitelApplications/AuditorSections.d.ts +0 -5
  73. package/src/enums/WebitelApplications/CrmSections.d.ts +0 -16
  74. package/src/enums/WebitelApplications/SupervisorSections.d.ts +0 -7
  75. package/src/enums/WebitelApplications/WfmSections.d.ts +0 -6
  76. package/src/enums/WebitelApplications/WtApplication.d.ts +0 -12
  77. package/src/enums/WtObject/WtObject.d.ts +0 -63
  78. package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +0 -14
  79. package/src/enums/index.d.ts +0 -88
  80. package/src/modules/ObjectPermissions/enums/AccessMode.enum.d.ts +0 -6
  81. package/src/modules/ObjectPermissions/enums/AccessRuleName.enum.d.ts +0 -8
  82. package/src/modules/ObjectPermissions/enums/index.d.ts +0 -2
  83. package/src/modules/ObjectPermissions/headers/headers.d.ts +0 -7
  84. package/src/modules/ObjectPermissions/index.d.ts +0 -7
  85. package/src/modules/ObjectPermissions/types/PermissionsUserAccess.d.ts +0 -3
  86. package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +0 -1
  87. package/src/utils/displayText.d.ts +0 -2
  88. package/src/utils/formatDate.d.ts +0 -10
  89. package/src/utils/index.d.ts +0 -2
  90. /package/src/api/types/{ApiModule.d.ts → ApiModule.ts} +0 -0
  91. /package/src/components/wt-badge-new/types/{WtBadge.d.ts → WtBadge.ts} +0 -0
  92. /package/src/components/wt-galleria/types/{WtGalleria.d.ts → WtGalleria.ts} +0 -0
  93. /package/src/components/wt-navigation-bar/types/{WtNavigationBar.d.ts → WtNavigationBar.ts} +0 -0
  94. /package/src/components/wt-search-bar/types/{WtSearchBar.d.ts → WtSearchBar.ts} +0 -0
  95. /package/src/components/wt-table/types/{WtTable.d.ts → WtTable.ts} +0 -0
@@ -0,0 +1,42 @@
1
+ export type Id = number | string;
2
+ export interface ApiModule<Entity> {
3
+ getList?: (params?: unknown) => Promise<{
4
+ items?: Entity[];
5
+ next?: boolean;
6
+ aggs?: unknown;
7
+ }>;
8
+ getLookup?: (params?: unknown) => Promise<{
9
+ items?: Entity[];
10
+ next?: boolean;
11
+ }>;
12
+ get?: (params: {
13
+ itemId?: Id;
14
+ /** preferred over itemId */
15
+ id?: Id;
16
+ parentId?: Id | null;
17
+ }) => Promise<Entity>;
18
+ add?: (params: {
19
+ itemInstance?: Entity;
20
+ parentId?: Id | null;
21
+ }) => Promise<Entity>;
22
+ update?: (params: {
23
+ itemId?: Id | null;
24
+ id?: Id;
25
+ itemInstance?: Entity;
26
+ parentId?: Id | null;
27
+ etag?: string;
28
+ }) => Promise<Entity>;
29
+ patch?: (params: {
30
+ id?: Id;
31
+ itemId?: Id | null;
32
+ changes?: Partial<Entity>;
33
+ parentId?: Id | null;
34
+ etag?: string;
35
+ }) => Promise<Entity>;
36
+ delete?: (params: {
37
+ itemId?: Id;
38
+ id?: Id;
39
+ parentId?: Id | null;
40
+ etag?: string;
41
+ }) => Promise<void>;
42
+ }
@@ -1,2 +1,2 @@
1
- export const tableActionsOrder: ("delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
2
- export const sectionActionsOrder: ("delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
1
+ export const tableActionsOrder: ("copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
2
+ export const sectionActionsOrder: ("copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout")[];
@@ -96,68 +96,68 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
96
96
  exclude: unknown[];
97
97
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
98
98
  type __VLS_Slots = {
99
- delete?: (props: {
100
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
99
+ copy?: (props: {
100
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
101
101
  size: string;
102
102
  onClick: () => void;
103
103
  }) => any;
104
104
  sort?: (props: {
105
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
105
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
106
106
  size: string;
107
107
  onClick: () => void;
108
108
  }) => any;
109
- copy?: (props: {
110
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
109
+ filters?: (props: {
110
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
111
111
  size: string;
112
112
  onClick: () => void;
113
113
  }) => any;
114
- filters?: (props: {
115
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
114
+ delete?: (props: {
115
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
116
116
  size: string;
117
117
  onClick: () => void;
118
118
  }) => any;
119
119
  refresh?: (props: {
120
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
120
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
121
121
  size: string;
122
122
  onClick: () => void;
123
123
  }) => any;
124
124
  add?: (props: {
125
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
125
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
126
126
  size: string;
127
127
  onClick: () => void;
128
128
  }) => any;
129
129
  upload?: (props: {
130
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
130
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
131
131
  size: string;
132
132
  onClick: () => void;
133
133
  }) => any;
134
134
  download?: (props: {
135
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
135
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
136
136
  size: string;
137
137
  onClick: () => void;
138
138
  }) => any;
139
139
  columns?: (props: {
140
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
140
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
141
141
  size: string;
142
142
  onClick: () => void;
143
143
  }) => any;
144
144
  variables?: (props: {
145
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
145
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
146
146
  size: string;
147
147
  onClick: () => void;
148
148
  }) => any;
149
149
  "add-contact"?: (props: {
150
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
150
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
151
151
  size: string;
152
152
  onClick: () => void;
153
153
  }) => any;
154
154
  "download-pdf"?: (props: {
155
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
155
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
156
156
  size: string;
157
157
  onClick: () => void;
158
158
  }) => any;
159
159
  logout?: (props: {
160
- action: "delete" | "sort" | "copy" | "filters" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
160
+ action: "copy" | "sort" | "filters" | "delete" | "refresh" | "add" | "upload" | "download" | "columns" | "variables" | "add-contact" | "download-pdf" | "logout";
161
161
  size: string;
162
162
  onClick: () => void;
163
163
  }) => any;
@@ -18,7 +18,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
18
18
  default: boolean;
19
19
  };
20
20
  }>, {}, {}, {
21
- iconBadgePic(): any;
21
+ iconBadgePic(): string;
22
22
  hasSlot(): boolean;
23
23
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
24
  colorVariable: {
@@ -0,0 +1 @@
1
+ export type BadgeSeverity = 'secondary' | 'info' | 'success' | 'warn' | 'error' | 'online' | 'dnd' | 'busy' | 'pause' | 'onlineCc' | 'offline';
@@ -25,9 +25,9 @@ type __VLS_Slots = {} & {
25
25
  label?: (props: typeof __VLS_7) => any;
26
26
  };
27
27
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- input: () => any;
29
28
  blur: () => any;
30
29
  focus: () => any;
30
+ input: () => any;
31
31
  keydown: () => any;
32
32
  "update:modelValue": (...args: unknown[]) => any;
33
33
  hide: () => any;
@@ -39,9 +39,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
39
39
  "month-change": () => any;
40
40
  "year-change": () => any;
41
41
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
42
- onInput?: () => any;
43
42
  onBlur?: () => any;
44
43
  onFocus?: () => any;
44
+ onInput?: () => any;
45
45
  onKeydown?: () => any;
46
46
  "onUpdate:modelValue"?: (...args: unknown[]) => any;
47
47
  onHide?: () => any;
@@ -0,0 +1,6 @@
1
+ export type WtGalleriaItem = {
2
+ src: string;
3
+ thumbnailSrc: string;
4
+ title: string;
5
+ description?: string;
6
+ };
@@ -1,5 +1,5 @@
1
1
  import type { GalleriaProps } from 'primevue';
2
- import type { WtGalleriaItem } from './types/WtGalleria.d.ts';
2
+ import type { WtGalleriaItem } from './types/WtGalleria';
3
3
  /**
4
4
  * @emits {number} download - Fires when download button is clicked. Emits index of the image to download
5
5
  * @emits {number} delete - Fires when delete button is clicked. Emits index of the image to delete
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<WtInlineAddPanel, {}, {}
13
13
  onReset?: (...args: any[]) => any;
14
14
  onSubmit?: (...args: any[]) => any;
15
15
  }>, {
16
- direction: "row" | "column";
17
16
  disabledAddAction: boolean;
17
+ direction: "row" | "column";
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,14 @@
1
+ export interface WtNavigationBarExpansionNavItem {
2
+ subNav: WtNavigationBarNavItem[];
3
+ }
4
+ export interface WtNavigationBarRouteNavItem {
5
+ route: string;
6
+ }
7
+ export type WtNavigationBarNavItem = {
8
+ value: string;
9
+ /**
10
+ * Represents nav item text in menu
11
+ * @default WtNavigationBarNavItem.value
12
+ */
13
+ name?: string;
14
+ } & (WtNavigationBarRouteNavItem | WtNavigationBarExpansionNavItem);
@@ -46,32 +46,32 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
46
46
  expandedName: string;
47
47
  appLogo: {
48
48
  supervisor: {
49
- dark: any;
50
- light: any;
49
+ dark: string;
50
+ light: string;
51
51
  };
52
52
  admin: {
53
- dark: any;
54
- light: any;
53
+ dark: string;
54
+ light: string;
55
55
  };
56
56
  agent: {
57
- dark: any;
58
- light: any;
57
+ dark: string;
58
+ light: string;
59
59
  };
60
60
  audit: {
61
- dark: any;
62
- light: any;
61
+ dark: string;
62
+ light: string;
63
63
  };
64
64
  history: {
65
- dark: any;
66
- light: any;
65
+ dark: string;
66
+ light: string;
67
67
  };
68
68
  crm: {
69
- dark: any;
70
- light: any;
69
+ dark: string;
70
+ light: string;
71
71
  };
72
72
  wfm: {
73
- dark: any;
74
- light: any;
73
+ dark: string;
74
+ light: string;
75
75
  };
76
76
  };
77
77
  }, {
@@ -0,0 +1,17 @@
1
+ export type WtSearchBarSearchModeOption<ModeType> = {
2
+ /**
3
+ * @description
4
+ * localized name of the search mode
5
+ */
6
+ text: string;
7
+ /**
8
+ * @description
9
+ * unique identifier of the search mode
10
+ */
11
+ value: ModeType | string;
12
+ /**
13
+ * @description
14
+ * should default search icon should be replaced?
15
+ */
16
+ icon?: string;
17
+ };
@@ -0,0 +1,10 @@
1
+ export type WtTableHeader = {
2
+ value: string;
3
+ locale?: string | [
4
+ string
5
+ ];
6
+ text?: string;
7
+ width?: string;
8
+ sort?: boolean;
9
+ show?: boolean;
10
+ };
@@ -102,10 +102,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
102
102
  "onColumn-resize"?: (...args: any[]) => any;
103
103
  "onColumn-reorder"?: (...args: any[]) => any;
104
104
  }>, {
105
- headers: WtTableHeader[];
106
- data: Array<unknown>;
107
105
  lazy: boolean;
106
+ data: Array<unknown>;
108
107
  dataKey: string;
108
+ headers: WtTableHeader[];
109
109
  sortable: boolean;
110
110
  selectable: boolean;
111
111
  gridActions: boolean;
@@ -1,4 +1,4 @@
1
- import type { WtTableHeader } from '../wt-table/types/WtTable.d.ts';
1
+ import type { WtTableHeader } from '../wt-table/types/WtTable';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * 'Accepts list of header objects. Draws text depending on "text" property, looks for data values through "value", "show" boolean controls visibility of a column (if undefined, all visible by default). ' Column width is calculated by "width" param. By default, sets minmax(150px, 1fr). '
@@ -1,4 +1,4 @@
1
- import type { WtTableHeader } from '../wt-table/types/WtTable.d.ts';
1
+ import type { WtTableHeader } from '../wt-table/types/WtTable';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * 'It's a data what pass to display row.
@@ -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
- delete: () => any;
15
14
  copy: () => any;
15
+ delete: () => 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
- onDelete?: () => any;
20
19
  onCopy?: () => any;
20
+ onDelete?: () => any;
21
21
  "onUpdate:question"?: (value: EngineQuestion) => any;
22
22
  "onUpdate:answer"?: (value: EngineQuestionAnswer) => any;
23
23
  }>, {
@@ -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" | "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")[];
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")[];
7
7
  };
8
8
  export type FlowTypeApplications = (typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
@@ -30,7 +30,7 @@ export default class NotificationsStoreModule extends BaseStoreModule {
30
30
  SEND_NOTIFICATION: (_: any, { locale, text, icon, interval, }: {
31
31
  locale: any;
32
32
  text?: string;
33
- icon?: any;
33
+ icon?: string;
34
34
  interval?: number;
35
35
  }) => void;
36
36
  INCREMENT_UNREAD_COUNT: (context: any) => void;
@@ -1,5 +1,5 @@
1
1
  import type { WtObject } from '../../../enums';
2
- import type { AppVisibilityMap, GlobalAccessApiResponseItem, GlobalActionAccessMap, LicenseAccessMap, ScopeAccessApiResponseItem, ScopeAccessMap, SectionVisibilityMap, UiSection, VisibilityAccess, WebitelLicenseInfo } from '../types/UserAccess.d';
2
+ import type { AppVisibilityMap, GlobalAccessApiResponseItem, GlobalActionAccessMap, LicenseAccessMap, ScopeAccessApiResponseItem, ScopeAccessMap, SectionVisibilityMap, UiSection, VisibilityAccess, WebitelLicenseInfo } from '../types/UserAccess';
3
3
  export declare const makeGlobalAccessMap: (rawGlobalAccess: GlobalAccessApiResponseItem[]) => GlobalActionAccessMap;
4
4
  export declare const makeScopeAccessMap: (rawScope: ScopeAccessApiResponseItem[]) => ScopeAccessMap;
5
5
  export declare const makeAppVisibilityMap: (rawVisibility: VisibilityAccess) => AppVisibilityMap;
@@ -1,2 +1,2 @@
1
- import type { CreateUserAccessStoreConfig, UserAccessStore } from '../types/UserAccess.d';
1
+ import type { CreateUserAccessStoreConfig, UserAccessStore } from '../types/UserAccess';
2
2
  export declare const createUserAccessStore: ({ namespace, }?: CreateUserAccessStoreConfig) => import("pinia").StoreDefinition<`${string}/access`, Pick<UserAccessStore, "globalAccess" | "scopeAccess" | "appVisibilityAccess" | "sectionVisibilityAccess" | "licenseAccess">, Pick<UserAccessStore, never>, Pick<UserAccessStore, "initialize" | "hasReadAccess" | "hasCreateAccess" | "hasUpdateAccess" | "hasDeleteAccess" | "routeAccessGuard" | "hasSpecialGlobalActionAccess" | "hasGlobalCrudActionAccess" | "hasLicense" | "hasApplicationVisibility" | "hasSectionVisibility">>;
@@ -1,23 +1,22 @@
1
- import pick from 'lodash/pick';
2
1
  export declare const createUserinfoStore: () => import("pinia").StoreDefinition<"userinfo", Pick<{
3
2
  userId: import("vue").Ref<any, any>;
4
3
  userInfo: import("vue").Ref<any, any>;
5
4
  timezone: import("vue").Ref<string, string>;
6
5
  initialize: () => Promise<void>;
7
- hasReadAccess: (object?: pick) => boolean;
8
- hasCreateAccess: (object?: pick) => boolean;
9
- hasUpdateAccess: (object?: pick) => boolean;
10
- hasDeleteAccess: (object?: pick) => boolean;
6
+ hasReadAccess: (object?: import("../../../enums").WtObject) => boolean;
7
+ hasCreateAccess: (object?: import("../../../enums").WtObject) => boolean;
8
+ hasUpdateAccess: (object?: import("../../../enums").WtObject) => boolean;
9
+ hasDeleteAccess: (object?: import("../../../enums").WtObject) => boolean;
11
10
  hasLicense: (license: import("..").WebitelLicense) => boolean;
12
- hasSectionVisibility: ({ section: UiSection, object: WtObject, app: WtApplication, }: {
13
- section: any;
14
- object: any;
15
- app: any;
11
+ hasSectionVisibility: (params: {
12
+ section: import("../types/UserAccess").UiSection;
13
+ object: import("../../../enums").WtObject;
14
+ app: import("../../../enums").WtApplication;
16
15
  }) => boolean;
17
16
  routeAccessGuard: import("vue-router").NavigationGuard;
18
- hasGlobalCrudActionAccess: (action: pick) => boolean;
17
+ hasGlobalCrudActionAccess: (action: import("../../../enums").CrudAction) => boolean;
19
18
  hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
20
- hasApplicationVisibility: (app: pick) => boolean;
19
+ hasApplicationVisibility: (app: import("../../../enums").WtApplication) => boolean;
21
20
  logoutUser: () => Promise<void>;
22
21
  showUserNotifications: () => Promise<void>;
23
22
  clearStorageNotifications: (ids?: string | string[]) => void;
@@ -26,20 +25,20 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
26
25
  userInfo: import("vue").Ref<any, any>;
27
26
  timezone: import("vue").Ref<string, string>;
28
27
  initialize: () => Promise<void>;
29
- hasReadAccess: (object?: pick) => boolean;
30
- hasCreateAccess: (object?: pick) => boolean;
31
- hasUpdateAccess: (object?: pick) => boolean;
32
- hasDeleteAccess: (object?: pick) => boolean;
28
+ hasReadAccess: (object?: import("../../../enums").WtObject) => boolean;
29
+ hasCreateAccess: (object?: import("../../../enums").WtObject) => boolean;
30
+ hasUpdateAccess: (object?: import("../../../enums").WtObject) => boolean;
31
+ hasDeleteAccess: (object?: import("../../../enums").WtObject) => boolean;
33
32
  hasLicense: (license: import("..").WebitelLicense) => boolean;
34
- hasSectionVisibility: ({ section: UiSection, object: WtObject, app: WtApplication, }: {
35
- section: any;
36
- object: any;
37
- app: any;
33
+ hasSectionVisibility: (params: {
34
+ section: import("../types/UserAccess").UiSection;
35
+ object: import("../../../enums").WtObject;
36
+ app: import("../../../enums").WtApplication;
38
37
  }) => boolean;
39
38
  routeAccessGuard: import("vue-router").NavigationGuard;
40
- hasGlobalCrudActionAccess: (action: pick) => boolean;
39
+ hasGlobalCrudActionAccess: (action: import("../../../enums").CrudAction) => boolean;
41
40
  hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
42
- hasApplicationVisibility: (app: pick) => boolean;
41
+ hasApplicationVisibility: (app: import("../../../enums").WtApplication) => boolean;
43
42
  logoutUser: () => Promise<void>;
44
43
  showUserNotifications: () => Promise<void>;
45
44
  clearStorageNotifications: (ids?: string | string[]) => void;
@@ -48,20 +47,20 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
48
47
  userInfo: import("vue").Ref<any, any>;
49
48
  timezone: import("vue").Ref<string, string>;
50
49
  initialize: () => Promise<void>;
51
- hasReadAccess: (object?: pick) => boolean;
52
- hasCreateAccess: (object?: pick) => boolean;
53
- hasUpdateAccess: (object?: pick) => boolean;
54
- hasDeleteAccess: (object?: pick) => boolean;
50
+ hasReadAccess: (object?: import("../../../enums").WtObject) => boolean;
51
+ hasCreateAccess: (object?: import("../../../enums").WtObject) => boolean;
52
+ hasUpdateAccess: (object?: import("../../../enums").WtObject) => boolean;
53
+ hasDeleteAccess: (object?: import("../../../enums").WtObject) => boolean;
55
54
  hasLicense: (license: import("..").WebitelLicense) => boolean;
56
- hasSectionVisibility: ({ section: UiSection, object: WtObject, app: WtApplication, }: {
57
- section: any;
58
- object: any;
59
- app: any;
55
+ hasSectionVisibility: (params: {
56
+ section: import("../types/UserAccess").UiSection;
57
+ object: import("../../../enums").WtObject;
58
+ app: import("../../../enums").WtApplication;
60
59
  }) => boolean;
61
60
  routeAccessGuard: import("vue-router").NavigationGuard;
62
- hasGlobalCrudActionAccess: (action: pick) => boolean;
61
+ hasGlobalCrudActionAccess: (action: import("../../../enums").CrudAction) => boolean;
63
62
  hasSpecialGlobalActionAccess: (id: import("..").SpecialGlobalAction) => boolean;
64
- hasApplicationVisibility: (app: pick) => boolean;
63
+ hasApplicationVisibility: (app: import("../../../enums").WtApplication) => boolean;
65
64
  logoutUser: () => Promise<void>;
66
65
  showUserNotifications: () => Promise<void>;
67
66
  clearStorageNotifications: (ids?: string | string[]) => void;
@@ -0,0 +1,126 @@
1
+ import { NavigationGuard } from 'vue-router';
2
+ import type { AdminSections, AuditorSections, CrmSections, CrudAction, SupervisorSections, WtApplication, WtObject } from '../../../enums';
3
+ import type { ApplicationsAccessSchema } from '../classes/ApplicationsAccess';
4
+ import type { CrudGlobalAction, ScopeClass, SpecialGlobalAction, WebitelLicense } from '../enums';
5
+ /**
6
+ * @description
7
+ * Represents union of all Webitel web client applications/sections
8
+ * */
9
+ export type UiSection = AdminSections | AuditorSections | SupervisorSections | CrmSections;
10
+ export type FullUiSectionName = `${WtApplication}/${UiSection}`;
11
+ /**
12
+ * @internal
13
+ * @description Received from backend
14
+ * */
15
+ export type GlobalAction = CrudGlobalAction | SpecialGlobalAction;
16
+ /**
17
+ * @internal
18
+ * */
19
+ export interface GlobalAccessApiResponseItem {
20
+ id: GlobalAction;
21
+ name: string;
22
+ usage: string;
23
+ }
24
+ /**
25
+ * @internal
26
+ * */
27
+ export interface ScopeAccessApiResponseItem {
28
+ class: ScopeClass;
29
+ access: string;
30
+ }
31
+ /**
32
+ * @internal
33
+ * @description
34
+ * Represents admin->permissions->roles->access.
35
+ * */
36
+ export type VisibilityAccess = ApplicationsAccessSchema;
37
+ /**
38
+ * @internal
39
+ * @description
40
+ * Represents raw access data, received from backend.
41
+ * */
42
+ export interface CreateUserAccessStoreRawAccess {
43
+ permissions: GlobalAccessApiResponseItem[];
44
+ scope: ScopeAccessApiResponseItem[];
45
+ access: VisibilityAccess;
46
+ license: WebitelLicenseInfo[];
47
+ }
48
+ /**
49
+ * @internal
50
+ */
51
+ export interface CreateUserAccessStoreConfig {
52
+ /**
53
+ * @default 'userinfo'
54
+ * */
55
+ namespace?: string;
56
+ }
57
+ /**
58
+ * @description
59
+ * Map is used for quick access to user permissions
60
+ * */
61
+ export type GlobalActionAccessMap = Map<CrudAction | SpecialGlobalAction, boolean>;
62
+ /**
63
+ * @description
64
+ * Map is used for quick access to user permissions
65
+ * */
66
+ export type ScopeAccessMap = Map<WtObject, Map<CrudAction, boolean>>;
67
+ /**
68
+ * @description
69
+ * Map is used for quick access to user permissions
70
+ * */
71
+ export type AppVisibilityMap = Map<WtApplication, boolean>;
72
+ /**
73
+ * @description
74
+ * Map is used for quick access to user permissions
75
+ * */
76
+ export type SectionVisibilityMap = Map<FullUiSectionName, boolean>;
77
+ export interface UserAccessStore {
78
+ initialize: (CreateUserAccessStoreRawAccess: any) => void;
79
+ hasReadAccess: (object?: WtObject) => boolean;
80
+ hasCreateAccess: (object?: WtObject) => boolean;
81
+ hasUpdateAccess: (object?: WtObject) => boolean;
82
+ hasDeleteAccess: (object?: WtObject) => boolean;
83
+ routeAccessGuard: NavigationGuard;
84
+ hasSpecialGlobalActionAccess: (id: SpecialGlobalAction) => boolean;
85
+ hasGlobalCrudActionAccess: (action: CrudAction) => boolean;
86
+ hasLicense: (license: WebitelLicense) => boolean;
87
+ hasApplicationVisibility: (app: WtApplication) => boolean;
88
+ hasSectionVisibility: (params: {
89
+ section: UiSection;
90
+ object: WtObject;
91
+ app: WtApplication;
92
+ }) => boolean;
93
+ /**
94
+ * @internal
95
+ * for pinia devtools debug
96
+ */
97
+ globalAccess: GlobalActionAccessMap;
98
+ /**
99
+ * @internal
100
+ * for pinia devtools debug
101
+ */
102
+ scopeAccess: ScopeAccessMap;
103
+ /**
104
+ * @internal
105
+ * for pinia devtools debug
106
+ */
107
+ appVisibilityAccess: AppVisibilityMap;
108
+ /**
109
+ * @internal
110
+ * for pinia devtools debug
111
+ */
112
+ sectionVisibilityAccess: SectionVisibilityMap;
113
+ /**
114
+ * @internal
115
+ * for pinia devtools debug
116
+ */
117
+ licenseAccess: LicenseAccessMap;
118
+ }
119
+ export type WebitelLicenseInfo = {
120
+ prod: WebitelLicense;
121
+ scope: ScopeClass[];
122
+ id: string;
123
+ expiresAt: string;
124
+ issuedAt: string;
125
+ };
126
+ export type LicenseAccessMap = Map<WebitelLicense, WebitelLicenseInfo[]>;