@yonus_amire01/chat 2.0.0 → 2.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/chat.css +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +6853 -77707
- package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallBoard.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts +1 -1
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts +1 -1
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts +1 -1
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts +1 -1
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts +2 -2
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts +1 -1
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts +1 -1
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts +1 -1
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BInput.vue.d.ts +8 -8
- package/dist/types/app/components/global/BInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BLabel.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BMenu.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BModal.vue.d.ts +2 -2
- package/dist/types/app/components/global/BModal.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BPopup.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BTab.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BToast.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts.map +1 -1
- package/dist/types/app/composables/useDate.d.ts +1 -18
- package/dist/types/app/composables/useDate.d.ts.map +1 -1
- package/dist/types/app/composables/useLocalI18n.d.ts +3 -0
- package/dist/types/app/composables/useLocalI18n.d.ts.map +1 -1
- package/dist/types/app/index.d.ts +6 -2
- package/dist/types/app/index.d.ts.map +1 -1
- package/dist/types/app/stores/callStore.d.ts +13 -49
- package/dist/types/app/stores/callStore.d.ts.map +1 -1
- package/dist/types/app/stores/chatStore.d.ts +25 -39
- package/dist/types/app/stores/chatStore.d.ts.map +1 -1
- package/dist/types/app/stores/mediaStore.d.ts +18 -0
- package/dist/types/app/stores/mediaStore.d.ts.map +1 -0
- package/dist/types/app/stores/messageStores.d.ts +127 -146
- package/dist/types/app/stores/messageStores.d.ts.map +1 -1
- package/dist/types/app/stores/profileStore.d.ts +45 -0
- package/dist/types/app/stores/profileStore.d.ts.map +1 -0
- package/dist/types/app/types/index.d.ts +149 -0
- package/dist/types/app/types/index.d.ts.map +1 -0
- package/dist/types/app/utils/format.d.ts +0 -48
- package/dist/types/app/utils/format.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/app/composables/useLocale.d.ts +0 -12
- package/dist/types/app/composables/useLocale.d.ts.map +0 -1
- package/dist/types/app/composables/useTheme.d.ts +0 -4
- package/dist/types/app/composables/useTheme.d.ts.map +0 -1
- package/dist/types/app/composables/useValidation.d.ts +0 -20
- package/dist/types/app/composables/useValidation.d.ts.map +0 -1
- package/dist/types/app/composables/useWindowSize.d.ts +0 -5
- package/dist/types/app/composables/useWindowSize.d.ts.map +0 -1
- package/dist/types/app/types/address.d.ts +0 -26
- package/dist/types/app/types/address.d.ts.map +0 -1
- package/dist/types/app/types/calendar.d.ts +0 -87
- package/dist/types/app/types/calendar.d.ts.map +0 -1
- package/dist/types/app/types/call.d.ts +0 -10
- package/dist/types/app/types/call.d.ts.map +0 -1
- package/dist/types/app/types/chat.d.ts +0 -52
- package/dist/types/app/types/chat.d.ts.map +0 -1
- package/dist/types/app/types/theme.d.ts +0 -11
- package/dist/types/app/types/theme.d.ts.map +0 -1
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
import { CallMember } from '../types
|
|
2
|
-
import { Contact } from '../types/chat';
|
|
3
|
-
export type CallKind = "voice-call" | "video-call";
|
|
4
|
-
export type CallSignalEvent = {
|
|
5
|
-
type: "offer";
|
|
6
|
-
callId: string;
|
|
7
|
-
sdp: RTCSessionDescriptionInit;
|
|
8
|
-
} | {
|
|
9
|
-
type: "answer";
|
|
10
|
-
callId: string;
|
|
11
|
-
sdp: RTCSessionDescriptionInit;
|
|
12
|
-
} | {
|
|
13
|
-
type: "ice";
|
|
14
|
-
callId: string;
|
|
15
|
-
candidate: RTCIceCandidateInit;
|
|
16
|
-
} | {
|
|
17
|
-
type: "end";
|
|
18
|
-
callId: string;
|
|
19
|
-
} | {
|
|
20
|
-
type: "join";
|
|
21
|
-
callId: string;
|
|
22
|
-
memberId: string;
|
|
23
|
-
} | {
|
|
24
|
-
type: "leave";
|
|
25
|
-
callId: string;
|
|
26
|
-
memberId: string;
|
|
27
|
-
};
|
|
28
|
-
export interface CallHandlers {
|
|
29
|
-
initiate(conversationId: string, kind: CallKind): Promise<{
|
|
30
|
-
callId: string;
|
|
31
|
-
}>;
|
|
32
|
-
sendOffer(callId: string, sdp: RTCSessionDescriptionInit): Promise<void>;
|
|
33
|
-
sendAnswer(callId: string, sdp: RTCSessionDescriptionInit): Promise<void>;
|
|
34
|
-
sendIce(callId: string, candidate: RTCIceCandidateInit): Promise<void>;
|
|
35
|
-
end(callId: string): Promise<void>;
|
|
36
|
-
onSignal(handler: (e: CallSignalEvent) => void): () => void;
|
|
37
|
-
}
|
|
1
|
+
import { CallHandlers, CallKind, CallMember, Contact } from '../types';
|
|
38
2
|
export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<{
|
|
39
3
|
chatContact: globalThis.Ref<Contact, Contact>;
|
|
40
4
|
isActive: globalThis.Ref<boolean, boolean>;
|
|
@@ -167,7 +131,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
167
131
|
id: string;
|
|
168
132
|
conversationId: string;
|
|
169
133
|
date: Date;
|
|
170
|
-
type: import('../types
|
|
134
|
+
type: import('../types').MessageType;
|
|
171
135
|
text?: string;
|
|
172
136
|
imageUrl?: string[];
|
|
173
137
|
fileUrl?: string;
|
|
@@ -182,7 +146,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
182
146
|
};
|
|
183
147
|
unreadCount?: number;
|
|
184
148
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
185
|
-
userType: import('../types
|
|
149
|
+
userType: import('../types').UserRoleKey[];
|
|
186
150
|
}[], CallMember[] | {
|
|
187
151
|
stream: {
|
|
188
152
|
readonly active: boolean;
|
|
@@ -224,7 +188,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
224
188
|
id: string;
|
|
225
189
|
conversationId: string;
|
|
226
190
|
date: Date;
|
|
227
|
-
type: import('../types
|
|
191
|
+
type: import('../types').MessageType;
|
|
228
192
|
text?: string;
|
|
229
193
|
imageUrl?: string[];
|
|
230
194
|
fileUrl?: string;
|
|
@@ -239,7 +203,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
239
203
|
};
|
|
240
204
|
unreadCount?: number;
|
|
241
205
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
242
|
-
userType: import('../types
|
|
206
|
+
userType: import('../types').UserRoleKey[];
|
|
243
207
|
}[]>;
|
|
244
208
|
isMicMuted: globalThis.Ref<boolean, boolean>;
|
|
245
209
|
isCamDisabled: globalThis.Ref<boolean, boolean>;
|
|
@@ -455,7 +419,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
455
419
|
id: string;
|
|
456
420
|
conversationId: string;
|
|
457
421
|
date: Date;
|
|
458
|
-
type: import('../types
|
|
422
|
+
type: import('../types').MessageType;
|
|
459
423
|
text?: string;
|
|
460
424
|
imageUrl?: string[];
|
|
461
425
|
fileUrl?: string;
|
|
@@ -470,7 +434,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
470
434
|
};
|
|
471
435
|
unreadCount?: number;
|
|
472
436
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
473
|
-
userType: import('../types
|
|
437
|
+
userType: import('../types').UserRoleKey[];
|
|
474
438
|
}[], CallMember[] | {
|
|
475
439
|
stream: {
|
|
476
440
|
readonly active: boolean;
|
|
@@ -512,7 +476,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
512
476
|
id: string;
|
|
513
477
|
conversationId: string;
|
|
514
478
|
date: Date;
|
|
515
|
-
type: import('../types
|
|
479
|
+
type: import('../types').MessageType;
|
|
516
480
|
text?: string;
|
|
517
481
|
imageUrl?: string[];
|
|
518
482
|
fileUrl?: string;
|
|
@@ -527,7 +491,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
527
491
|
};
|
|
528
492
|
unreadCount?: number;
|
|
529
493
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
530
|
-
userType: import('../types
|
|
494
|
+
userType: import('../types').UserRoleKey[];
|
|
531
495
|
}[]>;
|
|
532
496
|
isMicMuted: globalThis.Ref<boolean, boolean>;
|
|
533
497
|
isCamDisabled: globalThis.Ref<boolean, boolean>;
|
|
@@ -743,7 +707,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
743
707
|
id: string;
|
|
744
708
|
conversationId: string;
|
|
745
709
|
date: Date;
|
|
746
|
-
type: import('../types
|
|
710
|
+
type: import('../types').MessageType;
|
|
747
711
|
text?: string;
|
|
748
712
|
imageUrl?: string[];
|
|
749
713
|
fileUrl?: string;
|
|
@@ -758,7 +722,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
758
722
|
};
|
|
759
723
|
unreadCount?: number;
|
|
760
724
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
761
|
-
userType: import('../types
|
|
725
|
+
userType: import('../types').UserRoleKey[];
|
|
762
726
|
}[], CallMember[] | {
|
|
763
727
|
stream: {
|
|
764
728
|
readonly active: boolean;
|
|
@@ -800,7 +764,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
800
764
|
id: string;
|
|
801
765
|
conversationId: string;
|
|
802
766
|
date: Date;
|
|
803
|
-
type: import('../types
|
|
767
|
+
type: import('../types').MessageType;
|
|
804
768
|
text?: string;
|
|
805
769
|
imageUrl?: string[];
|
|
806
770
|
fileUrl?: string;
|
|
@@ -815,7 +779,7 @@ export declare const useCallStore: import('pinia').StoreDefinition<"call", Pick<
|
|
|
815
779
|
};
|
|
816
780
|
unreadCount?: number;
|
|
817
781
|
serviceType?: "video-call" | "voice-call" | "chat";
|
|
818
|
-
userType: import('../types
|
|
782
|
+
userType: import('../types').UserRoleKey[];
|
|
819
783
|
}[]>;
|
|
820
784
|
isMicMuted: globalThis.Ref<boolean, boolean>;
|
|
821
785
|
isCamDisabled: globalThis.Ref<boolean, boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/callStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"callStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/callStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAxErB,GAAG,EAAE;iBAAW,GAAG,EAAE;cAAQ,GAAG,EAAE;;cAAlC,GAAG,EAAE;iBAAW,GAAG,EAAE;cAAQ,GAAG,EAAE;;cAAlC,GAAG,EAAE;iBAAW,GAAG,EAAE;cAAQ,GAAG,EAAE;;;;;;;uBAJvC,YAAY;yBA8M3B,OAAO,kBACA,MAAM,eACT,QAAQ;0BA1EY,OAAO;;8BAkLT,WAAW;qCA5OE,MAAM;;;;;;;;;+NAyRpD,CAAC"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import { Contact, StateKeys, UserRoleKey } from '../types
|
|
2
|
-
export interface FetchContactsParams {
|
|
3
|
-
page: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
state: StateKeys;
|
|
6
|
-
search?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ContactsPage {
|
|
9
|
-
data: Contact[];
|
|
10
|
-
hasNextPage: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ChatHandlers {
|
|
13
|
-
fetchConversations(params: FetchContactsParams): Promise<ContactsPage>;
|
|
14
|
-
deleteConversation(id: string): Promise<void>;
|
|
15
|
-
}
|
|
1
|
+
import { ChatHandlers, Contact, StateKeys, UserRoleKey } from '../types';
|
|
16
2
|
export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<{
|
|
17
3
|
currentUserId: globalThis.Ref<string, string>;
|
|
18
4
|
chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
|
|
@@ -34,7 +20,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
34
20
|
id: string;
|
|
35
21
|
conversationId: string;
|
|
36
22
|
date: Date;
|
|
37
|
-
type: import('../types
|
|
23
|
+
type: import('../types').MessageType;
|
|
38
24
|
text?: string;
|
|
39
25
|
imageUrl?: string[];
|
|
40
26
|
fileUrl?: string;
|
|
@@ -71,7 +57,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
71
57
|
id: string;
|
|
72
58
|
conversationId: string;
|
|
73
59
|
date: Date;
|
|
74
|
-
type: import('../types
|
|
60
|
+
type: import('../types').MessageType;
|
|
75
61
|
text?: string;
|
|
76
62
|
imageUrl?: string[];
|
|
77
63
|
fileUrl?: string;
|
|
@@ -108,7 +94,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
108
94
|
id: string;
|
|
109
95
|
conversationId: string;
|
|
110
96
|
date: Date;
|
|
111
|
-
type: import('../types
|
|
97
|
+
type: import('../types').MessageType;
|
|
112
98
|
text?: string;
|
|
113
99
|
imageUrl?: string[];
|
|
114
100
|
fileUrl?: string;
|
|
@@ -145,7 +131,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
145
131
|
id: string;
|
|
146
132
|
conversationId: string;
|
|
147
133
|
date: Date;
|
|
148
|
-
type: import('../types
|
|
134
|
+
type: import('../types').MessageType;
|
|
149
135
|
text?: string;
|
|
150
136
|
imageUrl?: string[];
|
|
151
137
|
fileUrl?: string;
|
|
@@ -188,7 +174,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
188
174
|
id: string;
|
|
189
175
|
conversationId: string;
|
|
190
176
|
date: Date;
|
|
191
|
-
type: import('../types
|
|
177
|
+
type: import('../types').MessageType;
|
|
192
178
|
text?: string;
|
|
193
179
|
imageUrl?: string[];
|
|
194
180
|
fileUrl?: string;
|
|
@@ -225,7 +211,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
225
211
|
id: string;
|
|
226
212
|
conversationId: string;
|
|
227
213
|
date: Date;
|
|
228
|
-
type: import('../types
|
|
214
|
+
type: import('../types').MessageType;
|
|
229
215
|
text?: string;
|
|
230
216
|
imageUrl?: string[];
|
|
231
217
|
fileUrl?: string;
|
|
@@ -262,7 +248,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
262
248
|
id: string;
|
|
263
249
|
conversationId: string;
|
|
264
250
|
date: Date;
|
|
265
|
-
type: import('../types
|
|
251
|
+
type: import('../types').MessageType;
|
|
266
252
|
text?: string;
|
|
267
253
|
imageUrl?: string[];
|
|
268
254
|
fileUrl?: string;
|
|
@@ -299,7 +285,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
299
285
|
id: string;
|
|
300
286
|
conversationId: string;
|
|
301
287
|
date: Date;
|
|
302
|
-
type: import('../types
|
|
288
|
+
type: import('../types').MessageType;
|
|
303
289
|
text?: string;
|
|
304
290
|
imageUrl?: string[];
|
|
305
291
|
fileUrl?: string;
|
|
@@ -356,7 +342,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
356
342
|
id: string;
|
|
357
343
|
conversationId: string;
|
|
358
344
|
date: Date;
|
|
359
|
-
type: import('../types
|
|
345
|
+
type: import('../types').MessageType;
|
|
360
346
|
text?: string;
|
|
361
347
|
imageUrl?: string[];
|
|
362
348
|
fileUrl?: string;
|
|
@@ -393,7 +379,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
393
379
|
id: string;
|
|
394
380
|
conversationId: string;
|
|
395
381
|
date: Date;
|
|
396
|
-
type: import('../types
|
|
382
|
+
type: import('../types').MessageType;
|
|
397
383
|
text?: string;
|
|
398
384
|
imageUrl?: string[];
|
|
399
385
|
fileUrl?: string;
|
|
@@ -430,7 +416,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
430
416
|
id: string;
|
|
431
417
|
conversationId: string;
|
|
432
418
|
date: Date;
|
|
433
|
-
type: import('../types
|
|
419
|
+
type: import('../types').MessageType;
|
|
434
420
|
text?: string;
|
|
435
421
|
imageUrl?: string[];
|
|
436
422
|
fileUrl?: string;
|
|
@@ -467,7 +453,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
467
453
|
id: string;
|
|
468
454
|
conversationId: string;
|
|
469
455
|
date: Date;
|
|
470
|
-
type: import('../types
|
|
456
|
+
type: import('../types').MessageType;
|
|
471
457
|
text?: string;
|
|
472
458
|
imageUrl?: string[];
|
|
473
459
|
fileUrl?: string;
|
|
@@ -510,7 +496,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
510
496
|
id: string;
|
|
511
497
|
conversationId: string;
|
|
512
498
|
date: Date;
|
|
513
|
-
type: import('../types
|
|
499
|
+
type: import('../types').MessageType;
|
|
514
500
|
text?: string;
|
|
515
501
|
imageUrl?: string[];
|
|
516
502
|
fileUrl?: string;
|
|
@@ -547,7 +533,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
547
533
|
id: string;
|
|
548
534
|
conversationId: string;
|
|
549
535
|
date: Date;
|
|
550
|
-
type: import('../types
|
|
536
|
+
type: import('../types').MessageType;
|
|
551
537
|
text?: string;
|
|
552
538
|
imageUrl?: string[];
|
|
553
539
|
fileUrl?: string;
|
|
@@ -584,7 +570,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
584
570
|
id: string;
|
|
585
571
|
conversationId: string;
|
|
586
572
|
date: Date;
|
|
587
|
-
type: import('../types
|
|
573
|
+
type: import('../types').MessageType;
|
|
588
574
|
text?: string;
|
|
589
575
|
imageUrl?: string[];
|
|
590
576
|
fileUrl?: string;
|
|
@@ -621,7 +607,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
621
607
|
id: string;
|
|
622
608
|
conversationId: string;
|
|
623
609
|
date: Date;
|
|
624
|
-
type: import('../types
|
|
610
|
+
type: import('../types').MessageType;
|
|
625
611
|
text?: string;
|
|
626
612
|
imageUrl?: string[];
|
|
627
613
|
fileUrl?: string;
|
|
@@ -678,7 +664,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
678
664
|
id: string;
|
|
679
665
|
conversationId: string;
|
|
680
666
|
date: Date;
|
|
681
|
-
type: import('../types
|
|
667
|
+
type: import('../types').MessageType;
|
|
682
668
|
text?: string;
|
|
683
669
|
imageUrl?: string[];
|
|
684
670
|
fileUrl?: string;
|
|
@@ -715,7 +701,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
715
701
|
id: string;
|
|
716
702
|
conversationId: string;
|
|
717
703
|
date: Date;
|
|
718
|
-
type: import('../types
|
|
704
|
+
type: import('../types').MessageType;
|
|
719
705
|
text?: string;
|
|
720
706
|
imageUrl?: string[];
|
|
721
707
|
fileUrl?: string;
|
|
@@ -752,7 +738,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
752
738
|
id: string;
|
|
753
739
|
conversationId: string;
|
|
754
740
|
date: Date;
|
|
755
|
-
type: import('../types
|
|
741
|
+
type: import('../types').MessageType;
|
|
756
742
|
text?: string;
|
|
757
743
|
imageUrl?: string[];
|
|
758
744
|
fileUrl?: string;
|
|
@@ -789,7 +775,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
789
775
|
id: string;
|
|
790
776
|
conversationId: string;
|
|
791
777
|
date: Date;
|
|
792
|
-
type: import('../types
|
|
778
|
+
type: import('../types').MessageType;
|
|
793
779
|
text?: string;
|
|
794
780
|
imageUrl?: string[];
|
|
795
781
|
fileUrl?: string;
|
|
@@ -832,7 +818,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
832
818
|
id: string;
|
|
833
819
|
conversationId: string;
|
|
834
820
|
date: Date;
|
|
835
|
-
type: import('../types
|
|
821
|
+
type: import('../types').MessageType;
|
|
836
822
|
text?: string;
|
|
837
823
|
imageUrl?: string[];
|
|
838
824
|
fileUrl?: string;
|
|
@@ -869,7 +855,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
869
855
|
id: string;
|
|
870
856
|
conversationId: string;
|
|
871
857
|
date: Date;
|
|
872
|
-
type: import('../types
|
|
858
|
+
type: import('../types').MessageType;
|
|
873
859
|
text?: string;
|
|
874
860
|
imageUrl?: string[];
|
|
875
861
|
fileUrl?: string;
|
|
@@ -906,7 +892,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
906
892
|
id: string;
|
|
907
893
|
conversationId: string;
|
|
908
894
|
date: Date;
|
|
909
|
-
type: import('../types
|
|
895
|
+
type: import('../types').MessageType;
|
|
910
896
|
text?: string;
|
|
911
897
|
imageUrl?: string[];
|
|
912
898
|
fileUrl?: string;
|
|
@@ -943,7 +929,7 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
943
929
|
id: string;
|
|
944
930
|
conversationId: string;
|
|
945
931
|
date: Date;
|
|
946
|
-
type: import('../types
|
|
932
|
+
type: import('../types').MessageType;
|
|
947
933
|
text?: string;
|
|
948
934
|
imageUrl?: string[];
|
|
949
935
|
fileUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/chatStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/chatStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGxE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2BR,OAAO;kBACV,MAAM;yBACC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAFX,OAAO;kBACV,MAAM;yBACC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAFX,OAAO;kBACV,MAAM;yBACC,OA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media", Pick<{
|
|
3
|
+
setHandlers: (val: MediaHandlers) => void;
|
|
4
|
+
fetchFileSize: (url: string) => Promise<number | null>;
|
|
5
|
+
getCachedBlob: (url: string) => Promise<Blob | null>;
|
|
6
|
+
download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
|
|
7
|
+
}, never>, Pick<{
|
|
8
|
+
setHandlers: (val: MediaHandlers) => void;
|
|
9
|
+
fetchFileSize: (url: string) => Promise<number | null>;
|
|
10
|
+
getCachedBlob: (url: string) => Promise<Blob | null>;
|
|
11
|
+
download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
|
|
12
|
+
}, never>, Pick<{
|
|
13
|
+
setHandlers: (val: MediaHandlers) => void;
|
|
14
|
+
fetchFileSize: (url: string) => Promise<number | null>;
|
|
15
|
+
getCachedBlob: (url: string) => Promise<Blob | null>;
|
|
16
|
+
download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
|
|
17
|
+
}, "setHandlers" | "fetchFileSize" | "getCachedBlob" | "download">>;
|
|
18
|
+
//# sourceMappingURL=mediaStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/mediaStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAe9D,eAAO,MAAM,aAAa;uBAGE,aAAa;yBA4BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBAxBzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA4BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;;uBAlCU,aAAa;yBA4BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBAxBzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA4BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;;uBAlCU,aAAa;yBA4BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBAxBzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA4BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;mEAiBhB,CAAC"}
|