@opens/widget-ui 1.0.16 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-identification-page.vue.d.ts.map +1 -0
- package/dist/app-service-page.vue.d.ts.map +1 -0
- package/dist/components/messages/app-media-preview.vue.d.ts +18 -0
- package/dist/components/messages/app-message-attachments.vue.d.ts +10 -0
- package/dist/components/messages/app-message-audio.vue.d.ts +10 -0
- package/dist/components/messages/app-message-document.vue.d.ts +10 -0
- package/dist/components/messages/app-message-grouped-images.vue.d.ts +6 -0
- package/dist/components/messages/app-message-image.vue.d.ts +10 -0
- package/dist/components/messages/app-message-interactive.vue.d.ts +10 -0
- package/dist/components/messages/app-message-survey.vue.d.ts +10 -0
- package/dist/components/messages/app-message-text.vue.d.ts +6 -0
- package/dist/components/messages/app-message-video.vue.d.ts +10 -0
- package/dist/components/pages/app-chat-service.vue.d.ts +5 -2
- package/dist/components/pages/app-service-page.vue.d.ts +5 -2
- package/dist/components/ui/app-audio-player.vue.d.ts +6 -0
- package/dist/components/widget/app-widget-view.vue.d.ts +5 -2
- package/dist/components/widget/app-widget.vue.d.ts +7 -4
- package/dist/composables/use-app-widget.d.ts +181 -7
- package/dist/composables/use-audio-recorder.d.ts +9 -0
- package/dist/composables/use-chat-service.d.ts +240 -0
- package/dist/composables/use-identification-page.d.ts +1 -1
- package/dist/composables/use-service-page.d.ts +181 -7
- package/dist/composables/use-voice-service.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/main.d.ts +5 -4
- package/dist/messages/app-media-preview.vue.d.ts +4 -0
- package/dist/messages/app-media-preview.vue.d.ts.map +1 -0
- package/dist/messages/app-message-attachments.vue.d.ts +4 -0
- package/dist/messages/app-message-attachments.vue.d.ts.map +1 -0
- package/dist/messages/app-message-audio.vue.d.ts +4 -0
- package/dist/messages/app-message-audio.vue.d.ts.map +1 -0
- package/dist/messages/app-message-document.vue.d.ts +4 -0
- package/dist/messages/app-message-document.vue.d.ts.map +1 -0
- package/dist/messages/app-message-grouped-images.vue.d.ts +4 -0
- package/dist/messages/app-message-grouped-images.vue.d.ts.map +1 -0
- package/dist/messages/app-message-image.vue.d.ts +4 -0
- package/dist/messages/app-message-image.vue.d.ts.map +1 -0
- package/dist/messages/app-message-interactive.vue.d.ts +4 -0
- package/dist/messages/app-message-interactive.vue.d.ts.map +1 -0
- package/dist/messages/app-message-survey.vue.d.ts +4 -0
- package/dist/messages/app-message-survey.vue.d.ts.map +1 -0
- package/dist/messages/app-message-text.vue.d.ts +4 -0
- package/dist/messages/app-message-text.vue.d.ts.map +1 -0
- package/dist/messages/app-message-video.vue.d.ts +4 -0
- package/dist/messages/app-message-video.vue.d.ts.map +1 -0
- package/dist/typography/app-text.vue.d.ts.map +1 -0
- package/dist/ui/app-audio-player.vue.d.ts +4 -0
- package/dist/ui/app-audio-player.vue.d.ts.map +1 -0
- package/dist/utils/message-helpers.d.ts +9 -0
- package/dist/utils/resolve-message-component.d.ts +3 -0
- package/dist/widget/app-widget-view.vue.d.ts +1 -1
- package/dist/widget/app-widget.vue.d.ts +1 -1
- package/dist/yunique_widget_ui.cjs.js +1 -1
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +3348 -1889
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/app-text.vue.d.ts.map +0 -1
- package/dist/composables/use-service-chat-behavior.d.ts +0 -20
- package/dist/composables/use-service-voice-behavior.d.ts +0 -1
- package/dist/pages/app-identification-page.vue.d.ts.map +0 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-identification-page.vue.d.ts → app-identification-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
- /package/dist/{app-text.vue.d.ts → typography/app-text.vue.d.ts} +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { MessageAttachment, MessageResponse } from '@opens/gateways/chat-webservice';
|
|
2
|
+
export type { MessageAttachment, MessageResponse };
|
|
3
|
+
export type ServiceChatMessageFrom = 'system' | 'operator' | 'contact';
|
|
4
|
+
export type ServiceChatMessageType = 'text' | 'automatic' | 'image' | 'document' | 'audio' | 'voice' | 'video' | 'interactive' | 'survey' | '_grouped_images';
|
|
5
|
+
export type ServiceChatMessageAttachmentType = 'image' | 'video' | 'audio' | 'document';
|
|
6
|
+
export type ServiceChatMessageAttachment = Omit<MessageAttachment, 'type'> & {
|
|
7
|
+
type: ServiceChatMessageAttachmentType;
|
|
8
|
+
};
|
|
9
|
+
export type ServiceChatInteractiveOption = {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ServiceChatInteractiveBody = {
|
|
17
|
+
description?: string;
|
|
18
|
+
menu: ServiceChatInteractiveOption[];
|
|
19
|
+
};
|
|
20
|
+
export type ServiceChatMessage = Partial<Omit<MessageResponse, 'attachments' | 'caption'>> & {
|
|
21
|
+
messageType: string;
|
|
22
|
+
messageBody: string;
|
|
23
|
+
caption?: string | null;
|
|
24
|
+
attachments?: {
|
|
25
|
+
data: ServiceChatMessageAttachment[];
|
|
26
|
+
} | null;
|
|
27
|
+
messages?: ServiceChatMessage[];
|
|
28
|
+
};
|
|
29
|
+
export type ServiceChatMessageAction = {
|
|
30
|
+
action: 'download';
|
|
31
|
+
message: ServiceChatMessage;
|
|
32
|
+
attachment?: ServiceChatMessageAttachment;
|
|
33
|
+
} | {
|
|
34
|
+
action: 'select-option';
|
|
35
|
+
message: ServiceChatMessage;
|
|
36
|
+
option: ServiceChatInteractiveOption;
|
|
37
|
+
} | {
|
|
38
|
+
action: 'select-survey';
|
|
39
|
+
message: ServiceChatMessage;
|
|
40
|
+
option: ServiceChatInteractiveOption;
|
|
41
|
+
};
|
|
42
|
+
export type ServiceChatAttachmentType = 'image' | 'document';
|
|
43
|
+
export type ServiceChatAttachment = {
|
|
44
|
+
file: File;
|
|
45
|
+
type: ServiceChatAttachmentType;
|
|
46
|
+
previewUrl?: string;
|
|
47
|
+
};
|
|
48
|
+
export type ServiceChatAudio = {
|
|
49
|
+
file: File;
|
|
50
|
+
previewUrl: string;
|
|
51
|
+
};
|
|
52
|
+
export declare function useChatService(): {
|
|
53
|
+
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
54
|
+
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
55
|
+
attachments: import('vue').ShallowRef<ServiceChatAttachment[], ServiceChatAttachment[]>;
|
|
56
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
57
|
+
messages: import('vue').Ref<{
|
|
58
|
+
id?: number | undefined;
|
|
59
|
+
chatRoomId?: number | undefined;
|
|
60
|
+
chatRoomMemberId?: number | undefined;
|
|
61
|
+
companyId?: string | undefined;
|
|
62
|
+
secretId?: unknown;
|
|
63
|
+
messageHeader?: string | undefined;
|
|
64
|
+
messageBody: string;
|
|
65
|
+
messageFooter?: unknown;
|
|
66
|
+
messageHeaderType?: string | undefined;
|
|
67
|
+
messageType: string;
|
|
68
|
+
messageFooterType?: unknown;
|
|
69
|
+
subject?: unknown;
|
|
70
|
+
origin?: unknown;
|
|
71
|
+
recipientId?: string | undefined;
|
|
72
|
+
provider?: string | undefined;
|
|
73
|
+
providerId?: string | undefined;
|
|
74
|
+
canBeInteractedWith?: boolean | undefined;
|
|
75
|
+
buttons?: unknown;
|
|
76
|
+
replyingToId?: number | undefined;
|
|
77
|
+
createdAt?: string | undefined;
|
|
78
|
+
updatedAt?: string | undefined;
|
|
79
|
+
topic?: unknown;
|
|
80
|
+
isPrivate?: boolean | undefined;
|
|
81
|
+
metadata?: {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
isExternalInit?: boolean | undefined;
|
|
84
|
+
privateReason?: string | undefined;
|
|
85
|
+
hiddenByOperatorId?: string | undefined;
|
|
86
|
+
hiddenByOperatorName?: string | undefined;
|
|
87
|
+
hiddenAt?: string | undefined;
|
|
88
|
+
forwarding?: {
|
|
89
|
+
requested: boolean;
|
|
90
|
+
type: string;
|
|
91
|
+
provider: string;
|
|
92
|
+
sourceMessageId: number;
|
|
93
|
+
sourceChatRoomId: number;
|
|
94
|
+
destination: {
|
|
95
|
+
contactId: string;
|
|
96
|
+
contactName: string | null;
|
|
97
|
+
email: string;
|
|
98
|
+
avatar: unknown | null;
|
|
99
|
+
}[];
|
|
100
|
+
} | undefined;
|
|
101
|
+
} | null | undefined;
|
|
102
|
+
carousel?: {
|
|
103
|
+
data?: unknown[] | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
status?: {
|
|
106
|
+
id: number;
|
|
107
|
+
status: string;
|
|
108
|
+
message: unknown;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
updatedAt: string;
|
|
111
|
+
chatRoomMessageId: number;
|
|
112
|
+
chatRoomId: number;
|
|
113
|
+
chatRoomMemberId: number;
|
|
114
|
+
attachmentIndex: number | null;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
reactions?: {
|
|
117
|
+
id: number;
|
|
118
|
+
emoji: string;
|
|
119
|
+
chatRoomId: number;
|
|
120
|
+
chatRoomMessageId: number;
|
|
121
|
+
chatRoomMemberId: number;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
replyingTo?: {
|
|
126
|
+
id: number;
|
|
127
|
+
messageType: string;
|
|
128
|
+
messageBody: string;
|
|
129
|
+
filename?: string | undefined;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
} | undefined;
|
|
132
|
+
echo?: string | undefined;
|
|
133
|
+
caption?: string | null | undefined;
|
|
134
|
+
attachments?: {
|
|
135
|
+
data: {
|
|
136
|
+
id: string;
|
|
137
|
+
key: string;
|
|
138
|
+
bucket: string;
|
|
139
|
+
filename: string;
|
|
140
|
+
contentType: string;
|
|
141
|
+
link?: string | undefined;
|
|
142
|
+
type: ServiceChatMessageAttachmentType;
|
|
143
|
+
}[];
|
|
144
|
+
} | null | undefined;
|
|
145
|
+
messages?: /*elided*/ any[] | undefined;
|
|
146
|
+
}[], ServiceChatMessage[] | {
|
|
147
|
+
id?: number | undefined;
|
|
148
|
+
chatRoomId?: number | undefined;
|
|
149
|
+
chatRoomMemberId?: number | undefined;
|
|
150
|
+
companyId?: string | undefined;
|
|
151
|
+
secretId?: unknown;
|
|
152
|
+
messageHeader?: string | undefined;
|
|
153
|
+
messageBody: string;
|
|
154
|
+
messageFooter?: unknown;
|
|
155
|
+
messageHeaderType?: string | undefined;
|
|
156
|
+
messageType: string;
|
|
157
|
+
messageFooterType?: unknown;
|
|
158
|
+
subject?: unknown;
|
|
159
|
+
origin?: unknown;
|
|
160
|
+
recipientId?: string | undefined;
|
|
161
|
+
provider?: string | undefined;
|
|
162
|
+
providerId?: string | undefined;
|
|
163
|
+
canBeInteractedWith?: boolean | undefined;
|
|
164
|
+
buttons?: unknown;
|
|
165
|
+
replyingToId?: number | undefined;
|
|
166
|
+
createdAt?: string | undefined;
|
|
167
|
+
updatedAt?: string | undefined;
|
|
168
|
+
topic?: unknown;
|
|
169
|
+
isPrivate?: boolean | undefined;
|
|
170
|
+
metadata?: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
isExternalInit?: boolean | undefined;
|
|
173
|
+
privateReason?: string | undefined;
|
|
174
|
+
hiddenByOperatorId?: string | undefined;
|
|
175
|
+
hiddenByOperatorName?: string | undefined;
|
|
176
|
+
hiddenAt?: string | undefined;
|
|
177
|
+
forwarding?: {
|
|
178
|
+
requested: boolean;
|
|
179
|
+
type: string;
|
|
180
|
+
provider: string;
|
|
181
|
+
sourceMessageId: number;
|
|
182
|
+
sourceChatRoomId: number;
|
|
183
|
+
destination: {
|
|
184
|
+
contactId: string;
|
|
185
|
+
contactName: string | null;
|
|
186
|
+
email: string;
|
|
187
|
+
avatar: unknown | null;
|
|
188
|
+
}[];
|
|
189
|
+
} | undefined;
|
|
190
|
+
} | null | undefined;
|
|
191
|
+
carousel?: {
|
|
192
|
+
data?: unknown[] | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
status?: {
|
|
195
|
+
id: number;
|
|
196
|
+
status: string;
|
|
197
|
+
message: unknown;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
chatRoomMessageId: number;
|
|
201
|
+
chatRoomId: number;
|
|
202
|
+
chatRoomMemberId: number;
|
|
203
|
+
attachmentIndex: number | null;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
reactions?: {
|
|
206
|
+
id: number;
|
|
207
|
+
emoji: string;
|
|
208
|
+
chatRoomId: number;
|
|
209
|
+
chatRoomMessageId: number;
|
|
210
|
+
chatRoomMemberId: number;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
updatedAt: string;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
replyingTo?: {
|
|
215
|
+
id: number;
|
|
216
|
+
messageType: string;
|
|
217
|
+
messageBody: string;
|
|
218
|
+
filename?: string | undefined;
|
|
219
|
+
createdAt: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
echo?: string | undefined;
|
|
222
|
+
caption?: string | null | undefined;
|
|
223
|
+
attachments?: {
|
|
224
|
+
data: {
|
|
225
|
+
id: string;
|
|
226
|
+
key: string;
|
|
227
|
+
bucket: string;
|
|
228
|
+
filename: string;
|
|
229
|
+
contentType: string;
|
|
230
|
+
link?: string | undefined;
|
|
231
|
+
type: ServiceChatMessageAttachmentType;
|
|
232
|
+
}[];
|
|
233
|
+
} | null | undefined;
|
|
234
|
+
messages?: /*elided*/ any[] | undefined;
|
|
235
|
+
}[]>;
|
|
236
|
+
audio: import('vue').ShallowRef<ServiceChatAudio | null, ServiceChatAudio | null>;
|
|
237
|
+
text: import('vue').Ref<string, string>;
|
|
238
|
+
setMessages: (list: ServiceChatMessage[]) => void;
|
|
239
|
+
addMessage: (message: ServiceChatMessage) => void;
|
|
240
|
+
};
|
|
@@ -28,7 +28,7 @@ export declare function useIdentificationPage(rule: MaybeRefOrGetter<Rule>, emit
|
|
|
28
28
|
};
|
|
29
29
|
fieldLabel: (field: IdentificationRuleFieldComponent) => string;
|
|
30
30
|
fieldPlaceholder: (field: IdentificationRuleFieldComponent) => string;
|
|
31
|
-
fieldType: (name: string) => "
|
|
31
|
+
fieldType: (name: string) => "text" | "email" | "tel";
|
|
32
32
|
fieldMask: (name: string) => MaskFunction | undefined;
|
|
33
33
|
fieldIcon: (name: string) => "email" | "call" | "person" | "receipt" | "badge";
|
|
34
34
|
goBack: () => void;
|
|
@@ -2,17 +2,191 @@ export declare function useServicePage(): {
|
|
|
2
2
|
chat: {
|
|
3
3
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
4
4
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
5
|
+
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
5
6
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
messages: import('vue').Ref<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
id?: number | undefined;
|
|
9
|
+
chatRoomId?: number | undefined;
|
|
10
|
+
chatRoomMemberId?: number | undefined;
|
|
11
|
+
companyId?: string | undefined;
|
|
12
|
+
secretId?: unknown;
|
|
13
|
+
messageHeader?: string | undefined;
|
|
14
|
+
messageBody: string;
|
|
15
|
+
messageFooter?: unknown;
|
|
16
|
+
messageHeaderType?: string | undefined;
|
|
17
|
+
messageType: string;
|
|
18
|
+
messageFooterType?: unknown;
|
|
19
|
+
subject?: unknown;
|
|
20
|
+
origin?: unknown;
|
|
21
|
+
recipientId?: string | undefined;
|
|
22
|
+
provider?: string | undefined;
|
|
23
|
+
providerId?: string | undefined;
|
|
24
|
+
canBeInteractedWith?: boolean | undefined;
|
|
25
|
+
buttons?: unknown;
|
|
26
|
+
replyingToId?: number | undefined;
|
|
27
|
+
createdAt?: string | undefined;
|
|
28
|
+
updatedAt?: string | undefined;
|
|
29
|
+
topic?: unknown;
|
|
30
|
+
isPrivate?: boolean | undefined;
|
|
31
|
+
metadata?: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
isExternalInit?: boolean | undefined;
|
|
34
|
+
privateReason?: string | undefined;
|
|
35
|
+
hiddenByOperatorId?: string | undefined;
|
|
36
|
+
hiddenByOperatorName?: string | undefined;
|
|
37
|
+
hiddenAt?: string | undefined;
|
|
38
|
+
forwarding?: {
|
|
39
|
+
requested: boolean;
|
|
40
|
+
type: string;
|
|
41
|
+
provider: string;
|
|
42
|
+
sourceMessageId: number;
|
|
43
|
+
sourceChatRoomId: number;
|
|
44
|
+
destination: {
|
|
45
|
+
contactId: string;
|
|
46
|
+
contactName: string | null;
|
|
47
|
+
email: string;
|
|
48
|
+
avatar: unknown | null;
|
|
49
|
+
}[];
|
|
50
|
+
} | undefined;
|
|
51
|
+
} | null | undefined;
|
|
52
|
+
carousel?: {
|
|
53
|
+
data?: unknown[] | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
status?: {
|
|
56
|
+
id: number;
|
|
57
|
+
status: string;
|
|
58
|
+
message: unknown;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
chatRoomMessageId: number;
|
|
62
|
+
chatRoomId: number;
|
|
63
|
+
chatRoomMemberId: number;
|
|
64
|
+
attachmentIndex: number | null;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
reactions?: {
|
|
67
|
+
id: number;
|
|
68
|
+
emoji: string;
|
|
69
|
+
chatRoomId: number;
|
|
70
|
+
chatRoomMessageId: number;
|
|
71
|
+
chatRoomMemberId: number;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}[] | undefined;
|
|
75
|
+
replyingTo?: {
|
|
76
|
+
id: number;
|
|
77
|
+
messageType: string;
|
|
78
|
+
messageBody: string;
|
|
79
|
+
filename?: string | undefined;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
} | undefined;
|
|
82
|
+
echo?: string | undefined;
|
|
83
|
+
caption?: string | null | undefined;
|
|
84
|
+
attachments?: {
|
|
85
|
+
data: {
|
|
86
|
+
id: string;
|
|
87
|
+
key: string;
|
|
88
|
+
bucket: string;
|
|
89
|
+
filename: string;
|
|
90
|
+
contentType: string;
|
|
91
|
+
link?: string | undefined;
|
|
92
|
+
type: import('./use-chat-service').ServiceChatMessageAttachmentType;
|
|
93
|
+
}[];
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
messages?: /*elided*/ any[] | undefined;
|
|
96
|
+
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
97
|
+
id?: number | undefined;
|
|
98
|
+
chatRoomId?: number | undefined;
|
|
99
|
+
chatRoomMemberId?: number | undefined;
|
|
100
|
+
companyId?: string | undefined;
|
|
101
|
+
secretId?: unknown;
|
|
102
|
+
messageHeader?: string | undefined;
|
|
103
|
+
messageBody: string;
|
|
104
|
+
messageFooter?: unknown;
|
|
105
|
+
messageHeaderType?: string | undefined;
|
|
106
|
+
messageType: string;
|
|
107
|
+
messageFooterType?: unknown;
|
|
108
|
+
subject?: unknown;
|
|
109
|
+
origin?: unknown;
|
|
110
|
+
recipientId?: string | undefined;
|
|
111
|
+
provider?: string | undefined;
|
|
112
|
+
providerId?: string | undefined;
|
|
113
|
+
canBeInteractedWith?: boolean | undefined;
|
|
114
|
+
buttons?: unknown;
|
|
115
|
+
replyingToId?: number | undefined;
|
|
116
|
+
createdAt?: string | undefined;
|
|
117
|
+
updatedAt?: string | undefined;
|
|
118
|
+
topic?: unknown;
|
|
119
|
+
isPrivate?: boolean | undefined;
|
|
120
|
+
metadata?: {
|
|
121
|
+
[x: string]: unknown;
|
|
122
|
+
isExternalInit?: boolean | undefined;
|
|
123
|
+
privateReason?: string | undefined;
|
|
124
|
+
hiddenByOperatorId?: string | undefined;
|
|
125
|
+
hiddenByOperatorName?: string | undefined;
|
|
126
|
+
hiddenAt?: string | undefined;
|
|
127
|
+
forwarding?: {
|
|
128
|
+
requested: boolean;
|
|
129
|
+
type: string;
|
|
130
|
+
provider: string;
|
|
131
|
+
sourceMessageId: number;
|
|
132
|
+
sourceChatRoomId: number;
|
|
133
|
+
destination: {
|
|
134
|
+
contactId: string;
|
|
135
|
+
contactName: string | null;
|
|
136
|
+
email: string;
|
|
137
|
+
avatar: unknown | null;
|
|
138
|
+
}[];
|
|
139
|
+
} | undefined;
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
carousel?: {
|
|
142
|
+
data?: unknown[] | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
status?: {
|
|
145
|
+
id: number;
|
|
146
|
+
status: string;
|
|
147
|
+
message: unknown;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
chatRoomMessageId: number;
|
|
151
|
+
chatRoomId: number;
|
|
152
|
+
chatRoomMemberId: number;
|
|
153
|
+
attachmentIndex: number | null;
|
|
154
|
+
}[] | undefined;
|
|
155
|
+
reactions?: {
|
|
156
|
+
id: number;
|
|
157
|
+
emoji: string;
|
|
158
|
+
chatRoomId: number;
|
|
159
|
+
chatRoomMessageId: number;
|
|
160
|
+
chatRoomMemberId: number;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
replyingTo?: {
|
|
165
|
+
id: number;
|
|
166
|
+
messageType: string;
|
|
167
|
+
messageBody: string;
|
|
168
|
+
filename?: string | undefined;
|
|
169
|
+
createdAt: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
echo?: string | undefined;
|
|
172
|
+
caption?: string | null | undefined;
|
|
173
|
+
attachments?: {
|
|
174
|
+
data: {
|
|
175
|
+
id: string;
|
|
176
|
+
key: string;
|
|
177
|
+
bucket: string;
|
|
178
|
+
filename: string;
|
|
179
|
+
contentType: string;
|
|
180
|
+
link?: string | undefined;
|
|
181
|
+
type: import('./use-chat-service').ServiceChatMessageAttachmentType;
|
|
182
|
+
}[];
|
|
183
|
+
} | null | undefined;
|
|
184
|
+
messages?: /*elided*/ any[] | undefined;
|
|
12
185
|
}[]>;
|
|
186
|
+
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
13
187
|
text: import('vue').Ref<string, string>;
|
|
14
|
-
setMessages: (list: import('./use-
|
|
15
|
-
addMessage: (message: import('./use-
|
|
188
|
+
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
189
|
+
addMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
16
190
|
};
|
|
17
191
|
voice: {};
|
|
18
192
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useVoiceService(): {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppSkeleton, AppMessage, AppButton, AppWidget, AppEmpty, AppGroup, AppIcon, AppText, } from './main';
|
|
2
|
-
export type { ServiceChatMessage, ServiceChatMessageFrom } from './composables/use-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppMessage, AppButton, AppWidget, AppEmpty, AppGroup, AppIcon, AppText, } from './main';
|
|
2
|
+
export type { MessageAttachment, MessageResponse, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
3
|
+
export { useVoiceService } from './composables/use-voice-service';
|
|
4
|
+
export { useChatService } from './composables/use-chat-service';
|
|
5
5
|
export type { MaskFunction } from './composables/use-mask-functions';
|
|
6
6
|
export { useMaskFunctions } from './composables/use-mask-functions';
|
|
7
7
|
export { useServicePage } from './composables/use-service-page';
|
package/dist/main.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { default as AppButton } from './components/buttons/app-button.vue';
|
|
|
11
11
|
import { default as AppText } from './components/typography/app-text.vue';
|
|
12
12
|
import { default as AppWidget } from './components/widget/app-widget.vue';
|
|
13
13
|
import { default as AppCarousel } from './components/ui/app-carousel.vue';
|
|
14
|
+
import { default as AppAudioPlayer } from './components/ui/app-audio-player.vue';
|
|
14
15
|
import { default as AppSkeleton } from './components/ui/app-skeleton.vue';
|
|
15
16
|
import { default as AppIcon } from './components/icons/app-icon.vue';
|
|
16
17
|
import { default as AppEmpty } from './components/ui/app-empty.vue';
|
|
@@ -19,10 +20,10 @@ declare const _default: {
|
|
|
19
20
|
install: (app: App) => void;
|
|
20
21
|
};
|
|
21
22
|
export default _default;
|
|
22
|
-
export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppSkeleton, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppIcon, AppText, };
|
|
23
|
-
export type { ServiceChatMessage, ServiceChatMessageFrom } from './composables/use-
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
23
|
+
export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppIcon, AppText, };
|
|
24
|
+
export type { MessageAttachment, MessageResponse, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
25
|
+
export { useVoiceService } from './composables/use-voice-service';
|
|
26
|
+
export { useChatService } from './composables/use-chat-service';
|
|
26
27
|
export { useServicePage } from './composables/use-service-page';
|
|
27
28
|
export { useAppWidget } from './composables/use-app-widget';
|
|
28
29
|
export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-media-preview.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-media-preview.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-media-preview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-media-preview.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-media-preview.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-attachments.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-attachments.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-attachments.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-attachments.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-attachments.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6HAA6H,CAAC;AACpJ,cAAc,6HAA6H,CAAC;AAC5I,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-audio.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-audio.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-audio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-audio.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-audio.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-document.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-document.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-document.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-document.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-document.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0HAA0H,CAAC;AACjJ,cAAc,0HAA0H,CAAC;AACzI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-grouped-images.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-grouped-images.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-grouped-images.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-grouped-images.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-grouped-images.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gIAAgI,CAAC;AACvJ,cAAc,gIAAgI,CAAC;AAC/I,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-image.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-image.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-image.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-image.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-image.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-interactive.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-interactive.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-interactive.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-interactive.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-interactive.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6HAA6H,CAAC;AACpJ,cAAc,6HAA6H,CAAC;AAC5I,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-survey.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-survey.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-survey.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-survey.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-survey.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wHAAwH,CAAC;AAC/I,cAAc,wHAAwH,CAAC;AACvI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-text.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-text.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-text.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-text.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-text.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,sHAAsH,CAAC;AAC7I,cAAc,sHAAsH,CAAC;AACrI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-video.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message-video.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message-video.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message-video.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message-video.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-text.vue.d.ts","sourceRoot":"","sources":["../../src/components/typography/app-text.vue"],"names":[],"mappings":"AACA,cAAc,gHAAgH,CAAC;AAC/H,OAAO,6HAA6H,CAAC;;AAErI,wBAA0F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-audio-player.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-audio-player.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-audio-player.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-audio-player.vue.d.ts","sourceRoot":"","sources":["../../src/components/ui/app-audio-player.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gHAAgH,CAAC;AACvI,cAAc,gHAAgH,CAAC;AAC/H,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServiceChatMessageAttachment, ServiceChatInteractiveBody, ServiceChatMessageFrom, ServiceChatMessage } from '../composables/use-chat-service';
|
|
2
|
+
export declare const getMessageFrom: (message: ServiceChatMessage) => ServiceChatMessageFrom;
|
|
3
|
+
export declare const getMessageAttachments: (message: ServiceChatMessage) => ServiceChatMessageAttachment[];
|
|
4
|
+
export declare const getPrimaryAttachment: (message: ServiceChatMessage) => ServiceChatMessageAttachment;
|
|
5
|
+
export declare const formatMessageTime: (createdAt?: string | Date) => string;
|
|
6
|
+
export declare const isPdfAttachment: (attachment: ServiceChatMessageAttachment) => boolean;
|
|
7
|
+
export declare const parseInteractiveBody: (message: ServiceChatMessage) => ServiceChatInteractiveBody | null;
|
|
8
|
+
export declare const groupImageMessages: (messages?: ServiceChatMessage[]) => ServiceChatMessage[];
|
|
9
|
+
export declare const isSystemLikeMessage: (message: ServiceChatMessage) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=d2af3e5d&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget-view.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=3cfc0e90&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget.vue.d.ts.map
|