@opens/widget-ui 1.0.14 → 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/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 +16 -0
- package/dist/components/pages/app-service-page.vue.d.ts +5 -2
- package/dist/components/pages/app-voice-service.vue.d.ts +7 -0
- 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 +187 -10
- 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/pages/app-chat-service.vue.d.ts +4 -0
- package/dist/pages/app-chat-service.vue.d.ts.map +1 -0
- package/dist/pages/app-screen-page.vue.d.ts.map +1 -0
- package/dist/pages/app-voice-service.vue.d.ts +4 -0
- package/dist/pages/app-voice-service.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/ui/app-carousel.vue.d.ts +1 -1
- 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 +3927 -2162
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +2 -2
- package/dist/app-screen-page.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/{app-screen-page.vue.d.ts → pages/app-screen-page.vue.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type MediaPreviewItem = {
|
|
2
|
+
src: string;
|
|
3
|
+
type: 'image' | 'video' | 'pdf';
|
|
4
|
+
filename?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
items: MediaPreviewItem[];
|
|
9
|
+
index?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
"update:index": (index: number) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
"onUpdate:index"?: ((index: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceChatMessage } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceChatMessage } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceChatMessage, ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ServiceChatMessage;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onMessage-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
rule: Rule;
|
|
5
|
+
edges?: Rule[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
+
"send-message": () => any;
|
|
10
|
+
"retry-loading-chat-service": () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onMessage-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
13
|
+
"onSend-message"?: (() => any) | undefined;
|
|
14
|
+
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
rule: Rule;
|
|
4
5
|
edges?: Rule[];
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"
|
|
8
|
+
"message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
+
"send-message": () => any;
|
|
8
10
|
"retry-loading-chat-service": () => any;
|
|
9
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
"
|
|
12
|
+
"onMessage-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
13
|
+
"onSend-message"?: (() => any) | undefined;
|
|
11
14
|
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
12
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
16
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rule: Rule;
|
|
4
|
+
edges?: Rule[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src?: string;
|
|
3
|
+
file?: File;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
+
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
workflow: WorkflowData;
|
|
@@ -9,14 +10,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
9
10
|
submit: (values: Record<string, string>) => any;
|
|
10
11
|
back: () => any;
|
|
11
12
|
close: () => any;
|
|
12
|
-
"
|
|
13
|
+
"message-action": (action: ServiceChatMessageAction) => any;
|
|
14
|
+
"send-message": () => any;
|
|
13
15
|
"retry-loading-chat-service": () => any;
|
|
14
16
|
"edge-click": (edge: Rule) => any;
|
|
15
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
18
|
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
17
19
|
onBack?: (() => any) | undefined;
|
|
18
20
|
onClose?: (() => any) | undefined;
|
|
19
|
-
"
|
|
21
|
+
"onMessage-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
22
|
+
"onSend-message"?: (() => any) | undefined;
|
|
20
23
|
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
21
24
|
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
22
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
+
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
workflow: WorkflowData;
|
|
@@ -9,17 +10,19 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
9
10
|
submit: (values: Record<string, string>) => any;
|
|
10
11
|
back: () => any;
|
|
11
12
|
close: () => any;
|
|
12
|
-
"send-message": (text: string) => any;
|
|
13
|
-
"retry-loading-chat-service": () => any;
|
|
14
13
|
open: () => any;
|
|
14
|
+
"message-action": (action: ServiceChatMessageAction) => any;
|
|
15
|
+
"send-message": () => any;
|
|
16
|
+
"retry-loading-chat-service": () => any;
|
|
15
17
|
"edge-click": (edge: Rule) => any;
|
|
16
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
19
|
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
18
20
|
onBack?: (() => any) | undefined;
|
|
19
21
|
onClose?: (() => any) | undefined;
|
|
20
|
-
"onSend-message"?: ((text: string) => any) | undefined;
|
|
21
|
-
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
22
22
|
onOpen?: (() => any) | undefined;
|
|
23
|
+
"onMessage-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
24
|
+
"onSend-message"?: (() => any) | undefined;
|
|
25
|
+
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
23
26
|
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
24
27
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
28
|
export default _default;
|
|
@@ -1,23 +1,198 @@
|
|
|
1
|
-
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
1
|
+
import { Rule, ScreenRuleHeaderComponent, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
2
|
export declare const useAppWidget: () => {
|
|
3
3
|
chat: {
|
|
4
4
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
6
|
+
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
6
7
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
7
8
|
messages: import('vue').Ref<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
id?: number | undefined;
|
|
10
|
+
chatRoomId?: number | undefined;
|
|
11
|
+
chatRoomMemberId?: number | undefined;
|
|
12
|
+
companyId?: string | undefined;
|
|
13
|
+
secretId?: unknown;
|
|
14
|
+
messageHeader?: string | undefined;
|
|
15
|
+
messageBody: string;
|
|
16
|
+
messageFooter?: unknown;
|
|
17
|
+
messageHeaderType?: string | undefined;
|
|
18
|
+
messageType: string;
|
|
19
|
+
messageFooterType?: unknown;
|
|
20
|
+
subject?: unknown;
|
|
21
|
+
origin?: unknown;
|
|
22
|
+
recipientId?: string | undefined;
|
|
23
|
+
provider?: string | undefined;
|
|
24
|
+
providerId?: string | undefined;
|
|
25
|
+
canBeInteractedWith?: boolean | undefined;
|
|
26
|
+
buttons?: unknown;
|
|
27
|
+
replyingToId?: number | undefined;
|
|
28
|
+
createdAt?: string | undefined;
|
|
29
|
+
updatedAt?: string | undefined;
|
|
30
|
+
topic?: unknown;
|
|
31
|
+
isPrivate?: boolean | undefined;
|
|
32
|
+
metadata?: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
isExternalInit?: boolean | undefined;
|
|
35
|
+
privateReason?: string | undefined;
|
|
36
|
+
hiddenByOperatorId?: string | undefined;
|
|
37
|
+
hiddenByOperatorName?: string | undefined;
|
|
38
|
+
hiddenAt?: string | undefined;
|
|
39
|
+
forwarding?: {
|
|
40
|
+
requested: boolean;
|
|
41
|
+
type: string;
|
|
42
|
+
provider: string;
|
|
43
|
+
sourceMessageId: number;
|
|
44
|
+
sourceChatRoomId: number;
|
|
45
|
+
destination: {
|
|
46
|
+
contactId: string;
|
|
47
|
+
contactName: string | null;
|
|
48
|
+
email: string;
|
|
49
|
+
avatar: unknown | null;
|
|
50
|
+
}[];
|
|
51
|
+
} | undefined;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
carousel?: {
|
|
54
|
+
data?: unknown[] | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
status?: {
|
|
57
|
+
id: number;
|
|
58
|
+
status: string;
|
|
59
|
+
message: unknown;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
chatRoomMessageId: number;
|
|
63
|
+
chatRoomId: number;
|
|
64
|
+
chatRoomMemberId: number;
|
|
65
|
+
attachmentIndex: number | null;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
reactions?: {
|
|
68
|
+
id: number;
|
|
69
|
+
emoji: string;
|
|
70
|
+
chatRoomId: number;
|
|
71
|
+
chatRoomMessageId: number;
|
|
72
|
+
chatRoomMemberId: number;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
replyingTo?: {
|
|
77
|
+
id: number;
|
|
78
|
+
messageType: string;
|
|
79
|
+
messageBody: string;
|
|
80
|
+
filename?: string | undefined;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
echo?: string | undefined;
|
|
84
|
+
caption?: string | null | undefined;
|
|
85
|
+
attachments?: {
|
|
86
|
+
data: {
|
|
87
|
+
id: string;
|
|
88
|
+
key: string;
|
|
89
|
+
bucket: string;
|
|
90
|
+
filename: string;
|
|
91
|
+
contentType: string;
|
|
92
|
+
link?: string | undefined;
|
|
93
|
+
type: import('./use-chat-service').ServiceChatMessageAttachmentType;
|
|
94
|
+
}[];
|
|
95
|
+
} | null | undefined;
|
|
96
|
+
messages?: /*elided*/ any[] | undefined;
|
|
97
|
+
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
98
|
+
id?: number | undefined;
|
|
99
|
+
chatRoomId?: number | undefined;
|
|
100
|
+
chatRoomMemberId?: number | undefined;
|
|
101
|
+
companyId?: string | undefined;
|
|
102
|
+
secretId?: unknown;
|
|
103
|
+
messageHeader?: string | undefined;
|
|
104
|
+
messageBody: string;
|
|
105
|
+
messageFooter?: unknown;
|
|
106
|
+
messageHeaderType?: string | undefined;
|
|
107
|
+
messageType: string;
|
|
108
|
+
messageFooterType?: unknown;
|
|
109
|
+
subject?: unknown;
|
|
110
|
+
origin?: unknown;
|
|
111
|
+
recipientId?: string | undefined;
|
|
112
|
+
provider?: string | undefined;
|
|
113
|
+
providerId?: string | undefined;
|
|
114
|
+
canBeInteractedWith?: boolean | undefined;
|
|
115
|
+
buttons?: unknown;
|
|
116
|
+
replyingToId?: number | undefined;
|
|
117
|
+
createdAt?: string | undefined;
|
|
118
|
+
updatedAt?: string | undefined;
|
|
119
|
+
topic?: unknown;
|
|
120
|
+
isPrivate?: boolean | undefined;
|
|
121
|
+
metadata?: {
|
|
122
|
+
[x: string]: unknown;
|
|
123
|
+
isExternalInit?: boolean | undefined;
|
|
124
|
+
privateReason?: string | undefined;
|
|
125
|
+
hiddenByOperatorId?: string | undefined;
|
|
126
|
+
hiddenByOperatorName?: string | undefined;
|
|
127
|
+
hiddenAt?: string | undefined;
|
|
128
|
+
forwarding?: {
|
|
129
|
+
requested: boolean;
|
|
130
|
+
type: string;
|
|
131
|
+
provider: string;
|
|
132
|
+
sourceMessageId: number;
|
|
133
|
+
sourceChatRoomId: number;
|
|
134
|
+
destination: {
|
|
135
|
+
contactId: string;
|
|
136
|
+
contactName: string | null;
|
|
137
|
+
email: string;
|
|
138
|
+
avatar: unknown | null;
|
|
139
|
+
}[];
|
|
140
|
+
} | undefined;
|
|
141
|
+
} | null | undefined;
|
|
142
|
+
carousel?: {
|
|
143
|
+
data?: unknown[] | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
status?: {
|
|
146
|
+
id: number;
|
|
147
|
+
status: string;
|
|
148
|
+
message: unknown;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
chatRoomMessageId: number;
|
|
152
|
+
chatRoomId: number;
|
|
153
|
+
chatRoomMemberId: number;
|
|
154
|
+
attachmentIndex: number | null;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
reactions?: {
|
|
157
|
+
id: number;
|
|
158
|
+
emoji: string;
|
|
159
|
+
chatRoomId: number;
|
|
160
|
+
chatRoomMessageId: number;
|
|
161
|
+
chatRoomMemberId: number;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
replyingTo?: {
|
|
166
|
+
id: number;
|
|
167
|
+
messageType: string;
|
|
168
|
+
messageBody: string;
|
|
169
|
+
filename?: string | undefined;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
echo?: string | undefined;
|
|
173
|
+
caption?: string | null | undefined;
|
|
174
|
+
attachments?: {
|
|
175
|
+
data: {
|
|
176
|
+
id: string;
|
|
177
|
+
key: string;
|
|
178
|
+
bucket: string;
|
|
179
|
+
filename: string;
|
|
180
|
+
contentType: string;
|
|
181
|
+
link?: string | undefined;
|
|
182
|
+
type: import('./use-chat-service').ServiceChatMessageAttachmentType;
|
|
183
|
+
}[];
|
|
184
|
+
} | null | undefined;
|
|
185
|
+
messages?: /*elided*/ any[] | undefined;
|
|
13
186
|
}[]>;
|
|
187
|
+
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
14
188
|
text: import('vue').Ref<string, string>;
|
|
15
|
-
setMessages: (list: import('./use-
|
|
16
|
-
addMessage: (message: import('./use-
|
|
189
|
+
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
190
|
+
addMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
17
191
|
};
|
|
18
192
|
voice: {};
|
|
19
193
|
currentRuleId: import('vue').Ref<string | undefined, string | undefined>;
|
|
20
194
|
currentRule: import('vue').ComputedRef<Rule | undefined>;
|
|
195
|
+
currentHeader: import('vue').ComputedRef<ScreenRuleHeaderComponent | undefined>;
|
|
21
196
|
rootRule: import('vue').ComputedRef<Rule | undefined>;
|
|
22
197
|
workflow: import('vue').Ref<{
|
|
23
198
|
id: string;
|
|
@@ -145,7 +320,8 @@ export declare const useAppWidget: () => {
|
|
|
145
320
|
form?: {
|
|
146
321
|
fields?: {
|
|
147
322
|
name: string;
|
|
148
|
-
|
|
323
|
+
label: string;
|
|
324
|
+
placeholder: string;
|
|
149
325
|
required: boolean;
|
|
150
326
|
}[] | undefined;
|
|
151
327
|
} | undefined;
|
|
@@ -284,7 +460,8 @@ export declare const useAppWidget: () => {
|
|
|
284
460
|
form?: {
|
|
285
461
|
fields?: {
|
|
286
462
|
name: string;
|
|
287
|
-
|
|
463
|
+
label: string;
|
|
464
|
+
placeholder: string;
|
|
288
465
|
required: boolean;
|
|
289
466
|
}[] | undefined;
|
|
290
467
|
} | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useAudioRecorder(): {
|
|
2
|
+
formattedDuration: import('vue').ComputedRef<string>;
|
|
3
|
+
durationSeconds: import('vue').Ref<number, number>;
|
|
4
|
+
isRecording: import('vue').Ref<boolean, boolean>;
|
|
5
|
+
error: import('vue').Ref<string | null, string | null>;
|
|
6
|
+
cancel: () => Promise<void>;
|
|
7
|
+
start: () => Promise<boolean>;
|
|
8
|
+
stop: () => Promise<File | null>;
|
|
9
|
+
};
|