stream-chat-react-native-core 5.26.0-beta.6 → 5.26.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/lib/commonjs/i18n/es.json +40 -40
- package/lib/commonjs/i18n/fr.json +40 -40
- package/lib/commonjs/i18n/he.json +40 -40
- package/lib/commonjs/i18n/hi.json +40 -40
- package/lib/commonjs/i18n/it.json +40 -40
- package/lib/commonjs/i18n/ja.json +40 -40
- package/lib/commonjs/i18n/ko.json +40 -40
- package/lib/commonjs/i18n/nl.json +40 -40
- package/lib/commonjs/i18n/pt-BR.json +40 -40
- package/lib/commonjs/i18n/ru.json +40 -40
- package/lib/commonjs/i18n/tr.json +40 -40
- package/lib/commonjs/store/QuickSqliteClient.js +37 -2
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
- package/lib/commonjs/store/apis/addPendingTask.js +16 -4
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +4 -0
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +5 -0
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +4 -0
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +4 -0
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +3 -0
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +5 -0
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js +5 -3
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +2 -0
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -0
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +5 -0
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +5 -0
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +5 -0
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -0
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +4 -0
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +3 -0
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +4 -0
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +6 -1
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -0
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +18 -4
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js +12 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +7 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +6 -1
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +6 -3
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +12 -5
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +15 -3
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +20 -8
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +18 -3
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +4 -0
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/i18n/es.json +40 -40
- package/lib/module/i18n/fr.json +40 -40
- package/lib/module/i18n/he.json +40 -40
- package/lib/module/i18n/hi.json +40 -40
- package/lib/module/i18n/it.json +40 -40
- package/lib/module/i18n/ja.json +40 -40
- package/lib/module/i18n/ko.json +40 -40
- package/lib/module/i18n/nl.json +40 -40
- package/lib/module/i18n/pt-BR.json +40 -40
- package/lib/module/i18n/ru.json +40 -40
- package/lib/module/i18n/tr.json +40 -40
- package/lib/module/store/QuickSqliteClient.js +37 -2
- package/lib/module/store/QuickSqliteClient.js.map +1 -1
- package/lib/module/store/apis/addPendingTask.js +16 -4
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +4 -0
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +5 -0
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +4 -0
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +4 -0
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +3 -0
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +5 -0
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js +5 -3
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +2 -0
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -0
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +5 -0
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +5 -0
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +5 -0
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -0
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +4 -0
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +3 -0
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReads.js +4 -0
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +6 -1
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +3 -0
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -0
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +18 -4
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updateReaction.js +12 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +7 -1
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +6 -1
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +6 -3
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +12 -5
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +15 -3
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +20 -8
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +18 -3
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +4 -0
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
- package/lib/typescript/i18n/es.json +40 -40
- package/lib/typescript/i18n/fr.json +40 -40
- package/lib/typescript/i18n/he.json +40 -40
- package/lib/typescript/i18n/hi.json +40 -40
- package/lib/typescript/i18n/it.json +40 -40
- package/lib/typescript/i18n/ja.json +40 -40
- package/lib/typescript/i18n/ko.json +40 -40
- package/lib/typescript/i18n/nl.json +40 -40
- package/lib/typescript/i18n/pt-BR.json +40 -40
- package/lib/typescript/i18n/ru.json +40 -40
- package/lib/typescript/i18n/tr.json +40 -40
- package/lib/typescript/store/QuickSqliteClient.d.ts +2 -0
- package/lib/typescript/store/apis/upsertMessages.d.ts +1 -2
- package/package.json +1 -1
- package/src/i18n/es.json +40 -40
- package/src/i18n/fr.json +40 -40
- package/src/i18n/he.json +40 -40
- package/src/i18n/hi.json +40 -40
- package/src/i18n/it.json +40 -40
- package/src/i18n/ja.json +40 -40
- package/src/i18n/ko.json +40 -40
- package/src/i18n/nl.json +40 -40
- package/src/i18n/pt-BR.json +40 -40
- package/src/i18n/ru.json +40 -40
- package/src/i18n/tr.json +40 -40
- package/src/store/QuickSqliteClient.ts +40 -3
- package/src/store/apis/addPendingTask.ts +20 -1
- package/src/store/apis/deleteChannel.ts +5 -0
- package/src/store/apis/deleteMember.ts +6 -0
- package/src/store/apis/deleteMessage.ts +6 -0
- package/src/store/apis/deleteMessagesForChannel.ts +6 -0
- package/src/store/apis/deletePendingTask.ts +4 -0
- package/src/store/apis/deleteReaction.ts +6 -0
- package/src/store/apis/deleteReactions.ts +5 -6
- package/src/store/apis/getAllChannelIds.ts +3 -0
- package/src/store/apis/getAppSettings.ts +3 -0
- package/src/store/apis/getChannelMessages.ts +5 -0
- package/src/store/apis/getChannels.ts +2 -0
- package/src/store/apis/getChannelsForFilterSort.ts +4 -0
- package/src/store/apis/getLastSyncedAt.ts +1 -0
- package/src/store/apis/getMembers.ts +2 -0
- package/src/store/apis/getPendingTasks.ts +1 -0
- package/src/store/apis/getReads.ts +2 -0
- package/src/store/apis/insertReaction.ts +8 -1
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +5 -0
- package/src/store/apis/queries/selectChannels.ts +4 -0
- package/src/store/apis/queries/selectMembersForChannels.ts +4 -0
- package/src/store/apis/queries/selectMessagesForChannels.ts +4 -0
- package/src/store/apis/queries/selectReactionsForMessages.ts +4 -0
- package/src/store/apis/queries/selectReadsForChannels.ts +5 -0
- package/src/store/apis/updateMessage.ts +22 -4
- package/src/store/apis/updateReaction.ts +15 -1
- package/src/store/apis/upsertAppSettings.ts +8 -1
- package/src/store/apis/upsertChannelData.ts +6 -1
- package/src/store/apis/upsertChannels.ts +6 -1
- package/src/store/apis/upsertCidsForQuery.ts +10 -2
- package/src/store/apis/upsertMembers.ts +16 -10
- package/src/store/apis/upsertMessages.ts +21 -11
- package/src/store/apis/upsertReads.ts +13 -10
- package/src/store/apis/upsertUserSyncStatus.ts +5 -0
- package/src/version.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
3
|
-
"1 Thread Reply": "",
|
|
4
|
-
"Allow access to your Gallery": "",
|
|
5
|
-
"Allow camera access in device settings": "",
|
|
2
|
+
"1 Reply": "1 Cevap",
|
|
3
|
+
"1 Thread Reply": "1 Konu Yanıtı",
|
|
4
|
+
"Allow access to your Gallery": "Galerinize erişime izin verin",
|
|
5
|
+
"Allow camera access in device settings": "Cihaz ayarlarında kamera erişimine izin ver",
|
|
6
6
|
"Also send to channel": "Kanala da gönder",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
|
|
8
8
|
"Are you sure?": "Emin misiniz?",
|
|
@@ -13,67 +13,67 @@
|
|
|
13
13
|
"Copy Message": "Mesajı Kopyala",
|
|
14
14
|
"Delete": "Sil",
|
|
15
15
|
"Delete Message": "Mesajı Sil",
|
|
16
|
-
"Device camera is used to take photos or videos.": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
|
|
18
18
|
"Edit Message": "Mesajı Düzenle",
|
|
19
19
|
"Editing Message": "Mesaj Düzenleniyor",
|
|
20
|
-
"Emoji matching": "",
|
|
21
|
-
"Empty message...": "",
|
|
22
|
-
"Error loading": "",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
25
|
-
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "",
|
|
20
|
+
"Emoji matching": "Emoji eşleştirme",
|
|
21
|
+
"Empty message...": "Boş mesaj...",
|
|
22
|
+
"Error loading": "Yükleme hatası",
|
|
23
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
24
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
25
|
+
"Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
|
|
26
|
+
"File type not supported": "Dosya türü desteklenmiyor",
|
|
27
27
|
"Flag": "Raporla",
|
|
28
28
|
"Flag Message": "Mesajı Raporla",
|
|
29
29
|
"Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
|
|
30
|
-
"How about sending your first message to a friend?": "",
|
|
31
|
-
"Instant Commands": "",
|
|
32
|
-
"Let's start chatting!": "",
|
|
33
|
-
"Links are disabled": "",
|
|
34
|
-
"Loading channels...": "",
|
|
35
|
-
"Loading messages...": "",
|
|
36
|
-
"Loading...": "",
|
|
37
|
-
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
30
|
+
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
31
|
+
"Instant Commands": "Anlık Komutlar",
|
|
32
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
33
|
+
"Links are disabled": "Bağlantılar devre dışı",
|
|
34
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
35
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
36
|
+
"Loading...": "Yükleniyor...",
|
|
37
|
+
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
|
|
38
38
|
"Message Reactions": "Mesaj Tepkileri",
|
|
39
|
-
"Message deleted": "",
|
|
39
|
+
"Message deleted": "Mesaj silindi",
|
|
40
40
|
"Message flagged": "Mesaj işaretlendi",
|
|
41
41
|
"Mute User": "Kullanıcıyı sessize al",
|
|
42
|
-
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "",
|
|
42
|
+
"Not supported": "Desteklenmiyor",
|
|
43
|
+
"Nothing yet...": "Henüz değil...",
|
|
44
44
|
"Ok": "Tamam",
|
|
45
|
-
"Only visible to you": "",
|
|
46
|
-
"Open Settings": "",
|
|
45
|
+
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
46
|
+
"Open Settings": "Ayarları aç",
|
|
47
47
|
"Photo": "Fotoğraf",
|
|
48
|
-
"Photos and Videos": "",
|
|
48
|
+
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
49
49
|
"Pin to Conversation": "Konuşmaya sabitle",
|
|
50
|
-
"Pinned by": "",
|
|
51
|
-
"Please enable access to your photos and videos so you can share them.": "",
|
|
52
|
-
"Please select a channel first": "",
|
|
53
|
-
"Reconnecting...": "",
|
|
50
|
+
"Pinned by": "Tarafından sabitlendi",
|
|
51
|
+
"Please enable access to your photos and videos so you can share them.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
|
|
52
|
+
"Please select a channel first": "Lütfen önce bir kanal seçiniz",
|
|
53
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
54
54
|
"Reply": "Yanıtla",
|
|
55
55
|
"Reply to Message": "Mesajı Yanıtla",
|
|
56
56
|
"Resend": "Yeniden gönder",
|
|
57
57
|
"Search GIFs": "GIF Ara",
|
|
58
|
-
"Select More Photos": "",
|
|
58
|
+
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
59
59
|
"Send Anyway": "Yine de Gönder",
|
|
60
60
|
"Send a message": "Mesaj gönder",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
62
62
|
"Slow mode ON": "Yavaş Mod Açık",
|
|
63
63
|
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
64
64
|
"Thread Reply": "Konu Yanıtı",
|
|
65
65
|
"Unblock User": "Kullanıcının engelini kaldır",
|
|
66
|
-
"Unknown User": "",
|
|
66
|
+
"Unknown User": "Bilinmeyen kullanıcı",
|
|
67
67
|
"Unmute User": "Kullanıcının sesini aç",
|
|
68
68
|
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
69
|
-
"Unread Messages": "",
|
|
69
|
+
"Unread Messages": "Okunmamış Mesajlar",
|
|
70
70
|
"Video": "Video",
|
|
71
|
-
"You": "",
|
|
72
|
-
"You can't send messages in this channel": "",
|
|
71
|
+
"You": "Sen",
|
|
72
|
+
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
76
|
-
"{{ replyCount }} Thread Replies": "",
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
78
|
-
"🏙 Attachment...": ""
|
|
78
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
79
79
|
}
|
|
@@ -36,6 +36,9 @@ QuickSqliteClient.openDB = function () {
|
|
|
36
36
|
sqlite.open(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);
|
|
37
37
|
sqlite.execute(QuickSqliteClient.dbName, "PRAGMA foreign_keys = ON", []);
|
|
38
38
|
} catch (e) {
|
|
39
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('error', "Error opening database " + QuickSqliteClient.dbName, {
|
|
40
|
+
error: e
|
|
41
|
+
});
|
|
39
42
|
console.error("Error opening database " + QuickSqliteClient.dbName + ": " + e);
|
|
40
43
|
}
|
|
41
44
|
};
|
|
@@ -43,6 +46,9 @@ QuickSqliteClient.closeDB = function () {
|
|
|
43
46
|
try {
|
|
44
47
|
sqlite.close(QuickSqliteClient.dbName);
|
|
45
48
|
} catch (e) {
|
|
49
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('error', "Error closing database " + QuickSqliteClient.dbName, {
|
|
50
|
+
error: e
|
|
51
|
+
});
|
|
46
52
|
console.error("Error closing database " + QuickSqliteClient.dbName + ": " + e);
|
|
47
53
|
}
|
|
48
54
|
};
|
|
@@ -54,7 +60,11 @@ QuickSqliteClient.executeSqlBatch = function (queries) {
|
|
|
54
60
|
QuickSqliteClient.closeDB();
|
|
55
61
|
} catch (e) {
|
|
56
62
|
QuickSqliteClient.closeDB();
|
|
57
|
-
|
|
63
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('error', "SqlBatch queries failed", {
|
|
64
|
+
error: e,
|
|
65
|
+
queries: queries
|
|
66
|
+
});
|
|
67
|
+
throw new Error("Queries failed: " + e);
|
|
58
68
|
}
|
|
59
69
|
};
|
|
60
70
|
QuickSqliteClient.executeSql = function (query, params) {
|
|
@@ -66,19 +76,35 @@ QuickSqliteClient.executeSql = function (query, params) {
|
|
|
66
76
|
return rows ? rows._array : [];
|
|
67
77
|
} catch (e) {
|
|
68
78
|
QuickSqliteClient.closeDB();
|
|
69
|
-
|
|
79
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('error', "Sql single query failed", {
|
|
80
|
+
error: e,
|
|
81
|
+
query: query
|
|
82
|
+
});
|
|
83
|
+
throw new Error("Query failed: " + e + ": ");
|
|
70
84
|
}
|
|
71
85
|
};
|
|
72
86
|
QuickSqliteClient.dropTables = function () {
|
|
73
87
|
var queries = Object.keys(_schema.tables).map(function (table) {
|
|
74
88
|
return ["DROP TABLE IF EXISTS " + table, []];
|
|
75
89
|
});
|
|
90
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "Dropping tables", {
|
|
91
|
+
tables: Object.keys(_schema.tables)
|
|
92
|
+
});
|
|
76
93
|
QuickSqliteClient.executeSqlBatch(queries);
|
|
77
94
|
};
|
|
78
95
|
QuickSqliteClient.deleteDatabase = function () {
|
|
96
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "deleteDatabase", {
|
|
97
|
+
dbLocation: QuickSqliteClient.dbLocation,
|
|
98
|
+
dbname: QuickSqliteClient.dbName
|
|
99
|
+
});
|
|
79
100
|
try {
|
|
80
101
|
sqlite["delete"](QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);
|
|
81
102
|
} catch (e) {
|
|
103
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('error', "Error deleting DB", {
|
|
104
|
+
dbLocation: QuickSqliteClient.dbLocation,
|
|
105
|
+
dbname: QuickSqliteClient.dbName,
|
|
106
|
+
error: e
|
|
107
|
+
});
|
|
82
108
|
throw new Error("Error deleting DB: " + e);
|
|
83
109
|
}
|
|
84
110
|
return true;
|
|
@@ -89,9 +115,13 @@ QuickSqliteClient.initializeDatabase = function () {
|
|
|
89
115
|
}
|
|
90
116
|
var version = QuickSqliteClient.getUserPragmaVersion();
|
|
91
117
|
if (version !== QuickSqliteClient.dbVersion) {
|
|
118
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "DB version mismatch");
|
|
92
119
|
QuickSqliteClient.dropTables();
|
|
93
120
|
QuickSqliteClient.updateUserPragmaVersion(QuickSqliteClient.dbVersion);
|
|
94
121
|
}
|
|
122
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "create tables if not exists", {
|
|
123
|
+
tables: Object.keys(_schema.tables)
|
|
124
|
+
});
|
|
95
125
|
var q = Object.keys(_schema.tables).reduce(function (queriesSoFar, tableName) {
|
|
96
126
|
queriesSoFar.push.apply(queriesSoFar, (0, _toConsumableArray2["default"])((0, _createCreateTableQuery.createCreateTableQuery)(tableName)));
|
|
97
127
|
return queriesSoFar;
|
|
@@ -99,6 +129,7 @@ QuickSqliteClient.initializeDatabase = function () {
|
|
|
99
129
|
QuickSqliteClient.executeSqlBatch(q);
|
|
100
130
|
};
|
|
101
131
|
QuickSqliteClient.updateUserPragmaVersion = function (version) {
|
|
132
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "updateUserPragmaVersion to " + version);
|
|
102
133
|
QuickSqliteClient.openDB();
|
|
103
134
|
sqlite.execute(_constants.DB_NAME, "PRAGMA user_version = " + version, []);
|
|
104
135
|
QuickSqliteClient.closeDB();
|
|
@@ -109,6 +140,9 @@ QuickSqliteClient.getUserPragmaVersion = function () {
|
|
|
109
140
|
var _sqlite$execute2 = sqlite.execute(_constants.DB_NAME, "PRAGMA user_version", []),
|
|
110
141
|
rows = _sqlite$execute2.rows;
|
|
111
142
|
var result = rows ? rows._array : [];
|
|
143
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "getUserPragmaVersion", {
|
|
144
|
+
result: result
|
|
145
|
+
});
|
|
112
146
|
QuickSqliteClient.closeDB();
|
|
113
147
|
return result[0].user_version;
|
|
114
148
|
} catch (e) {
|
|
@@ -117,6 +151,7 @@ QuickSqliteClient.getUserPragmaVersion = function () {
|
|
|
117
151
|
}
|
|
118
152
|
};
|
|
119
153
|
QuickSqliteClient.resetDB = function () {
|
|
154
|
+
QuickSqliteClient.logger == null ? void 0 : QuickSqliteClient.logger('info', "resetDB");
|
|
120
155
|
QuickSqliteClient.dropTables();
|
|
121
156
|
QuickSqliteClient.initializeDatabase();
|
|
122
157
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_schema","_createCreateTableQuery","sqlite","QuickSQLite","e","isRemoteDebuggerError","Error","message","includes","QuickSqliteClient","_createClass2","_classCallCheck2","exports","dbVersion","dbName","DB_NAME","dbLocation","DB_LOCATION","getDbVersion","setDbVersion","version","openDB","open","execute","console","error","closeDB","close","executeSqlBatch","queries","length","executeBatch","executeSql","query","params","_sqlite$execute","rows","_array","dropTables","Object","keys","tables","map","table","deleteDatabase","initializeDatabase","undefined","getUserPragmaVersion","updateUserPragmaVersion","q","reduce","queriesSoFar","tableName","push","apply","_toConsumableArray2","createCreateTableQuery","_sqlite$execute2","result","user_version","resetDB"],"sources":["QuickSqliteClient.ts"],"sourcesContent":["/* eslint-disable no-underscore-dangle */\nimport type { QuickSQLite } from 'react-native-quick-sqlite';\nlet sqlite: typeof QuickSQLite;\n\ntry {\n sqlite = require('react-native-quick-sqlite').QuickSQLite;\n} catch (e) {\n // We want to throw the original error when remote debugger (e.g. Chrome) is enabled.\n // QuickSQLite can only be used when synchronous method invocations (JSI) are possible.\n // e.g on-device debugger (e.g. Flipper).\n const isRemoteDebuggerError = e instanceof Error && e.message.includes('Failed to install');\n if (isRemoteDebuggerError) {\n throw e;\n }\n // Reaching here will mean that QuickSQLite is not installed for one of the reasons\n // 1. Running on regular expo, where we don't support offline storage yet.\n // 2. Offline support is disabled, in which case this library is not installed.\n}\n\nimport { DB_LOCATION, DB_NAME } from './constants';\nimport { tables } from './schema';\nimport { createCreateTableQuery } from './sqlite-utils/createCreateTableQuery';\nimport type { PreparedQueries, Table } from './types';\n\n/**\n * QuickSqliteClient takes care of any direct interaction with sqlite.\n * This way usage react-native-quick-sqlite package is scoped to a single class/file.\n *\n */\nexport class QuickSqliteClient {\n static dbVersion = 3;\n\n static dbName = DB_NAME;\n static dbLocation = DB_LOCATION;\n\n static getDbVersion = () => QuickSqliteClient.dbVersion;\n // Force a specific db version. This is mainly useful for testsuit.\n static setDbVersion = (version: number) => (QuickSqliteClient.dbVersion = version);\n\n static openDB = () => {\n try {\n sqlite.open(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);\n sqlite.execute(QuickSqliteClient.dbName, `PRAGMA foreign_keys = ON`, []);\n } catch (e) {\n console.error(`Error opening database ${QuickSqliteClient.dbName}: ${e}`);\n }\n };\n\n static closeDB = () => {\n try {\n sqlite.close(QuickSqliteClient.dbName);\n } catch (e) {\n console.error(`Error closing database ${QuickSqliteClient.dbName}: ${e}`);\n }\n };\n\n static executeSqlBatch = (queries: PreparedQueries[]) => {\n if (!queries || !queries.length) return;\n\n QuickSqliteClient.openDB();\n try {\n sqlite.executeBatch(DB_NAME, queries);\n\n QuickSqliteClient.closeDB();\n } catch (e) {\n QuickSqliteClient.closeDB();\n throw new Error(`Query/queries failed: ${e}`);\n }\n };\n\n static executeSql = (query: string, params?: string[]) => {\n try {\n QuickSqliteClient.openDB();\n const { rows } = sqlite.execute(DB_NAME, query, params);\n QuickSqliteClient.closeDB();\n\n return rows ? rows._array : [];\n } catch (e) {\n QuickSqliteClient.closeDB();\n throw new Error(`Query/queries failed: ${e}: `);\n }\n };\n\n static dropTables = () => {\n const queries: PreparedQueries[] = Object.keys(tables).map((table) => [\n `DROP TABLE IF EXISTS ${table}`,\n [],\n ]);\n\n QuickSqliteClient.executeSqlBatch(queries);\n };\n\n static deleteDatabase = () => {\n try {\n sqlite.delete(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);\n } catch (e) {\n throw new Error(`Error deleting DB: ${e}`);\n }\n\n return true;\n };\n\n static initializeDatabase = () => {\n if (sqlite === undefined) {\n throw new Error(\n 'Please install \"react-native-quick-sqlite\" package to enable offline support',\n );\n }\n\n const version = QuickSqliteClient.getUserPragmaVersion();\n\n if (version !== QuickSqliteClient.dbVersion) {\n QuickSqliteClient.dropTables();\n QuickSqliteClient.updateUserPragmaVersion(QuickSqliteClient.dbVersion);\n }\n const q = (Object.keys(tables) as Table[]).reduce<PreparedQueries[]>(\n (queriesSoFar, tableName) => {\n queriesSoFar.push(...createCreateTableQuery(tableName));\n return queriesSoFar;\n },\n [],\n );\n\n QuickSqliteClient.executeSqlBatch(q);\n };\n\n static updateUserPragmaVersion = (version: number) => {\n QuickSqliteClient.openDB();\n sqlite.execute(DB_NAME, `PRAGMA user_version = ${version}`, []);\n QuickSqliteClient.closeDB();\n };\n\n static getUserPragmaVersion = () => {\n QuickSqliteClient.openDB();\n try {\n const { rows } = sqlite.execute(DB_NAME, `PRAGMA user_version`, []);\n const result = rows ? rows._array : [];\n QuickSqliteClient.closeDB();\n return result[0].user_version as number;\n } catch (e) {\n QuickSqliteClient.closeDB();\n throw new Error(`Querying for user_version failed: ${e}`);\n }\n };\n\n static resetDB = () => {\n QuickSqliteClient.dropTables();\n QuickSqliteClient.initializeDatabase();\n };\n}\n"],"mappings":";;;;;;;;AAmBA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAnBA,IAAIG,MAA0B;AAE9B,IAAI;EACFA,MAAM,GAAGH,OAAO,CAAC,2BAA2B,CAAC,CAACI,WAAW;AAC3D,CAAC,CAAC,OAAOC,CAAC,EAAE;EAIV,IAAMC,qBAAqB,GAAGD,CAAC,YAAYE,KAAK,IAAIF,CAAC,CAACG,OAAO,CAACC,QAAQ,CAAC,mBAAmB,CAAC;EAC3F,IAAIH,qBAAqB,EAAE;IACzB,MAAMD,CAAC;EACT;AAIF;AA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GtB,IAAI,GAAGA,IAAI,CAACC,MAAM,GAAG,EAAE;IACtC5B,iBAAiB,CAACiB,OAAO,CAAC,CAAC;IAC3B,OAAOgC,MAAM,CAAC,CAAC,CAAC,CAACC,YAAY;EAC/B,CAAC,CAAC,OAAOvD,CAAC,EAAE;IACVK,iBAAiB,CAACiB,OAAO,CAAC,CAAC;IAC3B,MAAM,IAAIpB,KAAK,wCAAsCF,CAAG,CAAC;EAC3D;AACF,CAAC;AAlHUK,iBAAiB,CAoHrBmD,OAAO,GAAG,YAAM;EACrBnD,iBAAiB,CAAC6B,UAAU,CAAC,CAAC;EAC9B7B,iBAAiB,CAACoC,kBAAkB,CAAC,CAAC;AACxC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_constants","require","_schema","_createCreateTableQuery","sqlite","QuickSQLite","e","isRemoteDebuggerError","Error","message","includes","QuickSqliteClient","_createClass2","_classCallCheck2","exports","dbVersion","dbName","DB_NAME","dbLocation","DB_LOCATION","getDbVersion","setDbVersion","version","openDB","open","execute","logger","error","console","closeDB","close","executeSqlBatch","queries","length","executeBatch","executeSql","query","params","_sqlite$execute","rows","_array","dropTables","Object","keys","tables","map","table","deleteDatabase","dbname","initializeDatabase","undefined","getUserPragmaVersion","updateUserPragmaVersion","q","reduce","queriesSoFar","tableName","push","apply","_toConsumableArray2","createCreateTableQuery","_sqlite$execute2","result","user_version","resetDB"],"sources":["QuickSqliteClient.ts"],"sourcesContent":["/* eslint-disable no-underscore-dangle */\nimport type { QuickSQLite } from 'react-native-quick-sqlite';\nlet sqlite: typeof QuickSQLite;\n\ntry {\n sqlite = require('react-native-quick-sqlite').QuickSQLite;\n} catch (e) {\n // We want to throw the original error when remote debugger (e.g. Chrome) is enabled.\n // QuickSQLite can only be used when synchronous method invocations (JSI) are possible.\n // e.g on-device debugger (e.g. Flipper).\n const isRemoteDebuggerError = e instanceof Error && e.message.includes('Failed to install');\n if (isRemoteDebuggerError) {\n throw e;\n }\n // Reaching here will mean that QuickSQLite is not installed for one of the reasons\n // 1. Running on regular expo, where we don't support offline storage yet.\n // 2. Offline support is disabled, in which case this library is not installed.\n}\n\nimport { Logger } from 'stream-chat';\n\nimport { DB_LOCATION, DB_NAME } from './constants';\nimport { tables } from './schema';\nimport { createCreateTableQuery } from './sqlite-utils/createCreateTableQuery';\nimport type { PreparedQueries, Table } from './types';\n\n/**\n * QuickSqliteClient takes care of any direct interaction with sqlite.\n * This way usage react-native-quick-sqlite package is scoped to a single class/file.\n *\n */\nexport class QuickSqliteClient {\n static dbVersion = 3;\n\n static dbName = DB_NAME;\n static dbLocation = DB_LOCATION;\n static logger: Logger | undefined;\n\n static getDbVersion = () => QuickSqliteClient.dbVersion;\n // Force a specific db version. This is mainly useful for testsuit.\n static setDbVersion = (version: number) => (QuickSqliteClient.dbVersion = version);\n\n static openDB = () => {\n try {\n sqlite.open(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);\n sqlite.execute(QuickSqliteClient.dbName, `PRAGMA foreign_keys = ON`, []);\n } catch (e) {\n this.logger?.('error', `Error opening database ${QuickSqliteClient.dbName}`, {\n error: e,\n });\n console.error(`Error opening database ${QuickSqliteClient.dbName}: ${e}`);\n }\n };\n\n static closeDB = () => {\n try {\n sqlite.close(QuickSqliteClient.dbName);\n } catch (e) {\n this.logger?.('error', `Error closing database ${QuickSqliteClient.dbName}`, {\n error: e,\n });\n console.error(`Error closing database ${QuickSqliteClient.dbName}: ${e}`);\n }\n };\n\n static executeSqlBatch = (queries: PreparedQueries[]) => {\n if (!queries || !queries.length) return;\n\n QuickSqliteClient.openDB();\n try {\n sqlite.executeBatch(DB_NAME, queries);\n\n QuickSqliteClient.closeDB();\n } catch (e) {\n QuickSqliteClient.closeDB();\n this.logger?.('error', `SqlBatch queries failed`, {\n error: e,\n queries,\n });\n throw new Error(`Queries failed: ${e}`);\n }\n };\n\n static executeSql = (query: string, params?: string[]) => {\n try {\n QuickSqliteClient.openDB();\n const { rows } = sqlite.execute(DB_NAME, query, params);\n QuickSqliteClient.closeDB();\n\n return rows ? rows._array : [];\n } catch (e) {\n QuickSqliteClient.closeDB();\n this.logger?.('error', `Sql single query failed`, {\n error: e,\n query,\n });\n throw new Error(`Query failed: ${e}: `);\n }\n };\n\n static dropTables = () => {\n const queries: PreparedQueries[] = Object.keys(tables).map((table) => [\n `DROP TABLE IF EXISTS ${table}`,\n [],\n ]);\n this.logger?.('info', `Dropping tables`, {\n tables: Object.keys(tables),\n });\n QuickSqliteClient.executeSqlBatch(queries);\n };\n\n static deleteDatabase = () => {\n this.logger?.('info', `deleteDatabase`, {\n dbLocation: QuickSqliteClient.dbLocation,\n dbname: QuickSqliteClient.dbName,\n });\n try {\n sqlite.delete(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);\n } catch (e) {\n this.logger?.('error', `Error deleting DB`, {\n dbLocation: QuickSqliteClient.dbLocation,\n dbname: QuickSqliteClient.dbName,\n error: e,\n });\n throw new Error(`Error deleting DB: ${e}`);\n }\n\n return true;\n };\n\n static initializeDatabase = () => {\n if (sqlite === undefined) {\n throw new Error(\n 'Please install \"react-native-quick-sqlite\" package to enable offline support',\n );\n }\n\n const version = QuickSqliteClient.getUserPragmaVersion();\n\n if (version !== QuickSqliteClient.dbVersion) {\n QuickSqliteClient.logger?.('info', `DB version mismatch`);\n QuickSqliteClient.dropTables();\n QuickSqliteClient.updateUserPragmaVersion(QuickSqliteClient.dbVersion);\n }\n QuickSqliteClient.logger?.('info', `create tables if not exists`, {\n tables: Object.keys(tables),\n });\n const q = (Object.keys(tables) as Table[]).reduce<PreparedQueries[]>(\n (queriesSoFar, tableName) => {\n queriesSoFar.push(...createCreateTableQuery(tableName));\n return queriesSoFar;\n },\n [],\n );\n\n QuickSqliteClient.executeSqlBatch(q);\n };\n\n static updateUserPragmaVersion = (version: number) => {\n QuickSqliteClient.logger?.('info', `updateUserPragmaVersion to ${version}`);\n QuickSqliteClient.openDB();\n sqlite.execute(DB_NAME, `PRAGMA user_version = ${version}`, []);\n QuickSqliteClient.closeDB();\n };\n\n static getUserPragmaVersion = () => {\n QuickSqliteClient.openDB();\n try {\n const { rows } = sqlite.execute(DB_NAME, `PRAGMA user_version`, []);\n const result = rows ? rows._array : [];\n this.logger?.('info', `getUserPragmaVersion`, {\n result,\n });\n QuickSqliteClient.closeDB();\n return result[0].user_version as number;\n } catch (e) {\n QuickSqliteClient.closeDB();\n throw new Error(`Querying for user_version failed: ${e}`);\n }\n };\n\n static resetDB = () => {\n this.logger?.('info', `resetDB`);\n QuickSqliteClient.dropTables();\n QuickSqliteClient.initializeDatabase();\n };\n}\n"],"mappings":";;;;;;;;AAqBA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AArBA,IAAIG,MAA0B;AAE9B,IAAI;EACFA,MAAM,GAAGH,OAAO,CAAC,2BAA2B,CAAC,CAACI,WAAW;AAC3D,CAAC,CAAC,OAAOC,CAAC,EAAE;EAIV,IAAMC,qBAAqB,GAAGD,CAAC,YAAYE,KAAK,IAAIF,CAAC,CAACG,OAAO,CAACC,QAAQ,CAAC,mBAAmB,CAAC;EAC3F,IAAIH,qBAAqB,EAAE;IACzB,MAAMD,CAAC;EACT;AAIF;AAAC,IAcYK,iBAAiB,OAAAC,aAAA,sBAAAD,kBAAA;EAAA,IAAAE,gBAAA,mBAAAF,iBAAA;AAAA;AAAAG,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAAjBA,iBAAiB,CACrBI,SAAS,GAAG,CAAC;AADTJ,iBAAiB,CAGrBK,MAAM,GAAGC,kBAAO;AAHZN,iBAAiB,CAIrBO,UAAU,GAAGC,sBAAW;AAJpBR,iBAAiB,CAOrBS,YAAY,GAAG;EAAA,OAAMT,iBAAiB,CAACI,SAAS;AAAA;AAP5CJ,iBAAiB,CASrBU,YAAY,GAAG,UAACC,OAAe;EAAA,OAAMX,iBAAiB,CAACI,SAAS,GAAGO,OAAO;AAAA,CAAC;AATvEX,iBAAiB,CAW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OAAOiC,MAAM,CAAC,CAAC,CAAC,CAACC,YAAY;EAC/B,CAAC,CAAC,OAAOzD,CAAC,EAAE;IACVK,iBAAiB,CAACkB,OAAO,CAAC,CAAC;IAC3B,MAAM,IAAIrB,KAAK,wCAAsCF,CAAG,CAAC;EAC3D;AACF,CAAC;AApJUK,iBAAiB,CAsJrBqD,OAAO,GAAG,YAAM;EAtJZrD,iBAAiB,CAuJrBe,MAAM,oBAvJFf,iBAAiB,CAuJrBe,MAAM,CAAG,MAAM,WAAW,CAAC;EAChCf,iBAAiB,CAAC8B,UAAU,CAAC,CAAC;EAC9B9B,iBAAiB,CAACsC,kBAAkB,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -8,13 +8,25 @@ var _createDeleteQuery = require("../sqlite-utils/createDeleteQuery");
|
|
|
8
8
|
var _createUpsertQuery = require("../sqlite-utils/createUpsertQuery");
|
|
9
9
|
var addPendingTask = function addPendingTask(task) {
|
|
10
10
|
var storable = (0, _mapTaskToStorable.mapTaskToStorable)(task);
|
|
11
|
+
var channelId = storable.channelId,
|
|
12
|
+
channelType = storable.channelType,
|
|
13
|
+
payload = storable.payload,
|
|
14
|
+
type = storable.type;
|
|
11
15
|
var query = (0, _createUpsertQuery.createUpsertQuery)('pendingTasks', storable);
|
|
16
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'addPendingTask', {
|
|
17
|
+
channelId: channelId,
|
|
18
|
+
channelType: channelType,
|
|
19
|
+
id: task.id,
|
|
20
|
+
type: type
|
|
21
|
+
});
|
|
12
22
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
13
23
|
return function () {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deletePendingTaskAfterAddition', {
|
|
25
|
+
channelId: channelId,
|
|
26
|
+
channelType: channelType,
|
|
27
|
+
id: task.id,
|
|
28
|
+
type: type
|
|
29
|
+
});
|
|
18
30
|
var query = (0, _createDeleteQuery.createDeleteQuery)('pendingTasks', {
|
|
19
31
|
channelId: channelId,
|
|
20
32
|
channelType: channelType,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mapTaskToStorable","require","_QuickSqliteClient","_createDeleteQuery","_createUpsertQuery","addPendingTask","task","storable","mapTaskToStorable","
|
|
1
|
+
{"version":3,"names":["_mapTaskToStorable","require","_QuickSqliteClient","_createDeleteQuery","_createUpsertQuery","addPendingTask","task","storable","mapTaskToStorable","channelId","channelType","payload","type","query","createUpsertQuery","QuickSqliteClient","logger","id","executeSql","apply","createDeleteQuery","exports"],"sources":["addPendingTask.ts"],"sourcesContent":["import { mapTaskToStorable } from '../mappers/mapTaskToStorable';\nimport { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\nimport { createUpsertQuery } from '../sqlite-utils/createUpsertQuery';\nimport type { PendingTask } from '../types';\n\n/*\n * addPendingTask - Adds a pending task to the database\n *\n * @param {PendingTask} task - The task to add\n *\n * @return {() => void} - A function that can be called to remove the task from the database\n */\nexport const addPendingTask = (task: PendingTask) => {\n const storable = mapTaskToStorable(task);\n const { channelId, channelType, payload, type } = storable;\n const query = createUpsertQuery('pendingTasks', storable);\n QuickSqliteClient.logger?.('info', 'addPendingTask', {\n channelId,\n channelType,\n id: task.id,\n type,\n });\n\n QuickSqliteClient.executeSql.apply(null, query);\n\n return () => {\n QuickSqliteClient.logger?.('info', 'deletePendingTaskAfterAddition', {\n channelId,\n channelType,\n id: task.id,\n type,\n });\n const query = createDeleteQuery('pendingTasks', {\n channelId,\n channelType,\n payload,\n type,\n });\n\n QuickSqliteClient.executeSql.apply(null, query);\n };\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;A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A,CAAAhB,cAAA,GAAAA,cAAA"}
|
|
@@ -11,6 +11,10 @@ var deleteChannel = function deleteChannel(_ref) {
|
|
|
11
11
|
var query = (0, _createDeleteQuery.createDeleteQuery)('channels', {
|
|
12
12
|
cid: cid
|
|
13
13
|
});
|
|
14
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deleteChannel', {
|
|
15
|
+
cid: cid,
|
|
16
|
+
flush: flush
|
|
17
|
+
});
|
|
14
18
|
if (flush) {
|
|
15
19
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteChannel","_ref","cid","_ref$flush","flush","query","createDeleteQuery","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteChannel.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteChannel = ({ cid, flush = true }: { cid: string; flush?: boolean }) => {\n const query = createDeleteQuery('channels', {\n cid,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAgE;EAAA,IAA1DC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;EAC/C,IAAME,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CJ,GAAG,EAAHA;EACF,CAAC,CAAC;EAEF,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteChannel","_ref","cid","_ref$flush","flush","query","createDeleteQuery","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deleteChannel.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteChannel = ({ cid, flush = true }: { cid: string; flush?: boolean }) => {\n const query = createDeleteQuery('channels', {\n cid,\n });\n\n QuickSqliteClient.logger?.('info', 'deleteChannel', {\n cid,\n flush,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAgE;EAAA,IAA1DC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;EAC/C,IAAME,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CJ,GAAG,EAAHA;EACF,CAAC,CAAC;EAEFK,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,eAAe,EAAE;IAClDN,GAAG,EAAHA,GAAG;IACHE,KAAK,EAALA;EACF,CAAC,CAAC;EAEF,IAAIA,KAAK,EAAE;IACTG,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEL,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACM,OAAA,CAAAX,aAAA,GAAAA,aAAA"}
|
|
@@ -13,6 +13,11 @@ var deleteMember = function deleteMember(_ref) {
|
|
|
13
13
|
cid: cid,
|
|
14
14
|
userId: member.user_id
|
|
15
15
|
});
|
|
16
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deleteMember', {
|
|
17
|
+
cid: cid,
|
|
18
|
+
flush: flush,
|
|
19
|
+
userId: member.user_id
|
|
20
|
+
});
|
|
16
21
|
if (flush) {
|
|
17
22
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
18
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMember","_ref","cid","_ref$flush","flush","member","query","createDeleteQuery","userId","user_id","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteMember.ts"],"sourcesContent":["import type { ChannelMemberResponse } from 'stream-chat';\n\nimport { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMember = ({\n cid,\n flush = true,\n member,\n}: {\n cid: string;\n member: ChannelMemberResponse;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('members', {\n cid,\n userId: member.user_id,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAQnB;EAAA,IAPJC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CACHG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IACZE,MAAM,GAAAJ,IAAA,CAANI,MAAM;EAMN,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,SAAS,EAAE;IACzCL,GAAG,EAAHA,GAAG;IACHM,MAAM,EAAEH,MAAM,CAACI;EACjB,CAAC,CAAC;EAEF,IAAIL,KAAK,EAAE;IACTM,oCAAiB,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMember","_ref","cid","_ref$flush","flush","member","query","createDeleteQuery","userId","user_id","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deleteMember.ts"],"sourcesContent":["import type { ChannelMemberResponse } from 'stream-chat';\n\nimport { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMember = ({\n cid,\n flush = true,\n member,\n}: {\n cid: string;\n member: ChannelMemberResponse;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('members', {\n cid,\n userId: member.user_id,\n });\n\n QuickSqliteClient.logger?.('info', 'deleteMember', {\n cid,\n flush,\n userId: member.user_id,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAQnB;EAAA,IAPJC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CACHG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IACZE,MAAM,GAAAJ,IAAA,CAANI,MAAM;EAMN,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,SAAS,EAAE;IACzCL,GAAG,EAAHA,GAAG;IACHM,MAAM,EAAEH,MAAM,CAACI;EACjB,CAAC,CAAC;EAEFC,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,cAAc,EAAE;IACjDT,GAAG,EAAHA,GAAG;IACHE,KAAK,EAALA,KAAK;IACLI,MAAM,EAAEH,MAAM,CAACI;EACjB,CAAC,CAAC;EAEF,IAAIL,KAAK,EAAE;IACTM,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEP,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACQ,OAAA,CAAAd,YAAA,GAAAA,YAAA"}
|
|
@@ -11,6 +11,10 @@ var deleteMessage = function deleteMessage(_ref) {
|
|
|
11
11
|
var query = (0, _createDeleteQuery.createDeleteQuery)('messages', {
|
|
12
12
|
id: id
|
|
13
13
|
});
|
|
14
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deleteMessage', {
|
|
15
|
+
flush: flush,
|
|
16
|
+
id: id
|
|
17
|
+
});
|
|
14
18
|
if (flush) {
|
|
15
19
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMessage","_ref","_ref$flush","flush","id","query","createDeleteQuery","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteMessage.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMessage = ({ flush = true, id }: { id: string; flush?: boolean }) => {\n const query = createDeleteQuery('messages', {\n id,\n });\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAA8D;EAAA,IAAAC,UAAA,GAAAD,IAAA,CAAxDE,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IAAEE,EAAE,GAAAH,IAAA,CAAFG,EAAE;EAC9C,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CF,EAAE,EAAFA;EACF,CAAC,CAAC;EACF,IAAID,KAAK,EAAE;IACTI,oCAAiB,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMessage","_ref","_ref$flush","flush","id","query","createDeleteQuery","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deleteMessage.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMessage = ({ flush = true, id }: { id: string; flush?: boolean }) => {\n const query = createDeleteQuery('messages', {\n id,\n });\n\n QuickSqliteClient.logger?.('info', 'deleteMessage', {\n flush,\n id,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAA8D;EAAA,IAAAC,UAAA,GAAAD,IAAA,CAAxDE,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IAAEE,EAAE,GAAAH,IAAA,CAAFG,EAAE;EAC9C,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CF,EAAE,EAAFA;EACF,CAAC,CAAC;EAEFG,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,eAAe,EAAE;IAClDL,KAAK,EAALA,KAAK;IACLC,EAAE,EAAFA;EACF,CAAC,CAAC;EAEF,IAAID,KAAK,EAAE;IACTI,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEL,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACM,OAAA,CAAAX,aAAA,GAAAA,aAAA"}
|
|
@@ -11,6 +11,10 @@ var deleteMessagesForChannel = function deleteMessagesForChannel(_ref) {
|
|
|
11
11
|
var query = (0, _createDeleteQuery.createDeleteQuery)('messages', {
|
|
12
12
|
cid: cid
|
|
13
13
|
});
|
|
14
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deleteMessagesForChannel', {
|
|
15
|
+
cid: cid,
|
|
16
|
+
flush: flush
|
|
17
|
+
});
|
|
14
18
|
if (flush) {
|
|
15
19
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMessagesForChannel","_ref","cid","_ref$flush","flush","query","createDeleteQuery","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteMessagesForChannel.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMessagesForChannel = ({\n cid,\n flush = true,\n}: {\n cid: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('messages', {\n cid,\n });\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAM/B;EAAA,IALJC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CACHG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;EAKZ,IAAME,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CJ,GAAG,EAAHA;EACF,CAAC,CAAC;EACF,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteMessagesForChannel","_ref","cid","_ref$flush","flush","query","createDeleteQuery","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deleteMessagesForChannel.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteMessagesForChannel = ({\n cid,\n flush = true,\n}: {\n cid: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('messages', {\n cid,\n });\n\n QuickSqliteClient.logger?.('info', 'deleteMessagesForChannel', {\n cid,\n flush,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAM/B;EAAA,IALJC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,UAAA,GAAAF,IAAA,CACHG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;EAKZ,IAAME,KAAK,GAAG,IAAAC,oCAAiB,EAAC,UAAU,EAAE;IAC1CJ,GAAG,EAAHA;EACF,CAAC,CAAC;EAEFK,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,0BAA0B,EAAE;IAC7DN,GAAG,EAAHA,GAAG;IACHE,KAAK,EAALA;EACF,CAAC,CAAC;EAEF,IAAIA,KAAK,EAAE;IACTG,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEL,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACM,OAAA,CAAAX,wBAAA,GAAAA,wBAAA"}
|
|
@@ -9,6 +9,9 @@ var deletePendingTask = function deletePendingTask(_ref) {
|
|
|
9
9
|
var query = (0, _createDeleteQuery.createDeleteQuery)('pendingTasks', {
|
|
10
10
|
id: id
|
|
11
11
|
});
|
|
12
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deletePendingTask', {
|
|
13
|
+
id: id
|
|
14
|
+
});
|
|
12
15
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
13
16
|
return [query];
|
|
14
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deletePendingTask","_ref","id","query","createDeleteQuery","QuickSqliteClient","executeSql","apply","exports"],"sources":["deletePendingTask.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deletePendingTask = ({ id }: { id: number }) => {\n const query = createDeleteQuery('pendingTasks', {\n id,\n });\n\n QuickSqliteClient.executeSql.apply(null, query);\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA+B;EAAA,IAAzBC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EACpC,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,cAAc,EAAE;IAC9CF,EAAE,EAAFA;EACF,CAAC,CAAC;EAEFG,oCAAiB,CAACC,UAAU,CAACC,KAAK,CAAC,IAAI,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deletePendingTask","_ref","id","query","createDeleteQuery","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deletePendingTask.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deletePendingTask = ({ id }: { id: number }) => {\n const query = createDeleteQuery('pendingTasks', {\n id,\n });\n\n QuickSqliteClient.logger?.('info', 'deletePendingTask', {\n id,\n });\n\n QuickSqliteClient.executeSql.apply(null, query);\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA+B;EAAA,IAAzBC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EACpC,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,cAAc,EAAE;IAC9CF,EAAE,EAAFA;EACF,CAAC,CAAC;EAEFG,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,mBAAmB,EAAE;IACtDJ,EAAE,EAAFA;EACF,CAAC,CAAC;EAEFG,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEL,KAAK,CAAC;EAE/C,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACM,OAAA,CAAAT,iBAAA,GAAAA,iBAAA"}
|
|
@@ -15,6 +15,11 @@ var deleteReaction = function deleteReaction(_ref) {
|
|
|
15
15
|
type: reactionType,
|
|
16
16
|
userId: userId
|
|
17
17
|
});
|
|
18
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'deleteReaction', {
|
|
19
|
+
messageId: messageId,
|
|
20
|
+
type: reactionType,
|
|
21
|
+
userId: userId
|
|
22
|
+
});
|
|
18
23
|
if (flush) {
|
|
19
24
|
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
20
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteReaction","_ref","_ref$flush","flush","messageId","reactionType","userId","query","createDeleteQuery","type","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteReaction.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteReaction = ({\n flush = true,\n messageId,\n reactionType,\n userId,\n}: {\n messageId: string;\n reactionType: string;\n userId: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('reactions', {\n messageId,\n type: reactionType,\n userId,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAUrB;EAAA,IAAAC,UAAA,GAAAD,IAAA,CATJE,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IACZE,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,MAAM,GAAAL,IAAA,CAANK,MAAM;EAON,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,WAAW,EAAE;IAC3CJ,SAAS,EAATA,SAAS;IACTK,IAAI,EAAEJ,YAAY;IAClBC,MAAM,EAANA;EACF,CAAC,CAAC;EAEF,IAAIH,KAAK,EAAE;IACTO,oCAAiB,
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteReaction","_ref","_ref$flush","flush","messageId","reactionType","userId","query","createDeleteQuery","type","QuickSqliteClient","logger","executeSql","apply","exports"],"sources":["deleteReaction.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteReaction = ({\n flush = true,\n messageId,\n reactionType,\n userId,\n}: {\n messageId: string;\n reactionType: string;\n userId: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('reactions', {\n messageId,\n type: reactionType,\n userId,\n });\n\n QuickSqliteClient.logger?.('info', 'deleteReaction', {\n messageId,\n type: reactionType,\n userId,\n });\n\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAUrB;EAAA,IAAAC,UAAA,GAAAD,IAAA,CATJE,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IACZE,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,MAAM,GAAAL,IAAA,CAANK,MAAM;EAON,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,WAAW,EAAE;IAC3CJ,SAAS,EAATA,SAAS;IACTK,IAAI,EAAEJ,YAAY;IAClBC,MAAM,EAANA;EACF,CAAC,CAAC;EAEFI,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,gBAAgB,EAAE;IACnDP,SAAS,EAATA,SAAS;IACTK,IAAI,EAAEJ,YAAY;IAClBC,MAAM,EAANA;EACF,CAAC,CAAC;EAEF,IAAIH,KAAK,EAAE;IACTO,oCAAiB,CAACE,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEN,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACO,OAAA,CAAAd,cAAA,GAAAA,cAAA"}
|
|
@@ -11,10 +11,12 @@ var deleteReactionsForMessage = function deleteReactionsForMessage(_ref) {
|
|
|
11
11
|
var query = (0, _createDeleteQuery.createDeleteQuery)('reactions', {
|
|
12
12
|
messageId: messageId
|
|
13
13
|
});
|
|
14
|
+
console.log('deleteReactionsForMessage', {
|
|
15
|
+
flush: flush,
|
|
16
|
+
messageId: messageId
|
|
17
|
+
});
|
|
14
18
|
if (flush) {
|
|
15
|
-
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null,
|
|
16
|
-
messageId: messageId
|
|
17
|
-
}));
|
|
19
|
+
_QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, query);
|
|
18
20
|
}
|
|
19
21
|
return [query];
|
|
20
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteReactionsForMessage","_ref","_ref$flush","flush","messageId","query","createDeleteQuery","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteReactions.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteReactionsForMessage = ({\n flush = true,\n messageId,\n}: {\n messageId: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('reactions', {\n messageId,\n });\n if (flush) {\n QuickSqliteClient.executeSql.apply(
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createDeleteQuery","deleteReactionsForMessage","_ref","_ref$flush","flush","messageId","query","createDeleteQuery","console","log","QuickSqliteClient","executeSql","apply","exports"],"sources":["deleteReactions.ts"],"sourcesContent":["import { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';\n\nexport const deleteReactionsForMessage = ({\n flush = true,\n messageId,\n}: {\n messageId: string;\n flush?: boolean;\n}) => {\n const query = createDeleteQuery('reactions', {\n messageId,\n });\n console.log('deleteReactionsForMessage', {\n flush,\n messageId,\n });\n if (flush) {\n QuickSqliteClient.executeSql.apply(null, query);\n }\n\n return [query];\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,IAAA,EAMhC;EAAA,IAAAC,UAAA,GAAAD,IAAA,CALJE,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,IAAI,GAAAA,UAAA;IACZE,SAAS,GAAAH,IAAA,CAATG,SAAS;EAKT,IAAMC,KAAK,GAAG,IAAAC,oCAAiB,EAAC,WAAW,EAAE;IAC3CF,SAAS,EAATA;EACF,CAAC,CAAC;EACFG,OAAO,CAACC,GAAG,CAAC,2BAA2B,EAAE;IACvCL,KAAK,EAALA,KAAK;IACLC,SAAS,EAATA;EACF,CAAC,CAAC;EACF,IAAID,KAAK,EAAE;IACTM,oCAAiB,CAACC,UAAU,CAACC,KAAK,CAAC,IAAI,EAAEN,KAAK,CAAC;EACjD;EAEA,OAAO,CAACA,KAAK,CAAC;AAChB,CAAC;AAACO,OAAA,CAAAZ,yBAAA,GAAAA,yBAAA"}
|
|
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
});
|
|
4
4
|
exports.getAllChannelIds = void 0;
|
|
5
5
|
var _selectChannels = require("./queries/selectChannels");
|
|
6
|
+
var _QuickSqliteClient = require("../QuickSqliteClient");
|
|
6
7
|
var getAllChannelIds = function getAllChannelIds() {
|
|
7
8
|
var channels = (0, _selectChannels.selectChannels)();
|
|
9
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'getAllChannelIds');
|
|
8
10
|
return channels.map(function (c) {
|
|
9
11
|
return c.cid;
|
|
10
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_selectChannels","require","getAllChannelIds","channels","selectChannels","map","c","cid","exports"],"sources":["getAllChannelIds.ts"],"sourcesContent":["import { selectChannels } from './queries/selectChannels';\n\nexport const getAllChannelIds = () => {\n const channels = selectChannels();\n\n return channels.map((c) => c.cid);\n};\n"],"mappings":";;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEO,
|
|
1
|
+
{"version":3,"names":["_selectChannels","require","_QuickSqliteClient","getAllChannelIds","channels","selectChannels","QuickSqliteClient","logger","map","c","cid","exports"],"sources":["getAllChannelIds.ts"],"sourcesContent":["import { selectChannels } from './queries/selectChannels';\n\nimport { QuickSqliteClient } from '../QuickSqliteClient';\n\nexport const getAllChannelIds = () => {\n const channels = selectChannels();\n\n QuickSqliteClient.logger?.('info', 'getAllChannelIds');\n return channels.map((c) => c.cid);\n};\n"],"mappings":";;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAS;EACpC,IAAMC,QAAQ,GAAG,IAAAC,8BAAc,EAAC,CAAC;EAEjCC,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,kBAAkB,CAAC;EACtD,OAAOH,QAAQ,CAACI,GAAG,CAAC,UAACC,CAAC;IAAA,OAAKA,CAAC,CAACC,GAAG;EAAA,EAAC;AACnC,CAAC;AAACC,OAAA,CAAAR,gBAAA,GAAAA,gBAAA"}
|
|
@@ -7,6 +7,9 @@ var _createSelectQuery = require("../sqlite-utils/createSelectQuery");
|
|
|
7
7
|
var getAppSettings = function getAppSettings(_ref) {
|
|
8
8
|
var _result$;
|
|
9
9
|
var currentUserId = _ref.currentUserId;
|
|
10
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'getAppSettings', {
|
|
11
|
+
currentUserId: currentUserId
|
|
12
|
+
});
|
|
10
13
|
var result = _QuickSqliteClient.QuickSqliteClient.executeSql.apply(null, (0, _createSelectQuery.createSelectQuery)('userSyncStatus', ['*'], {
|
|
11
14
|
userId: currentUserId
|
|
12
15
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_QuickSqliteClient","require","_createSelectQuery","getAppSettings","_ref","_result$","currentUserId","
|
|
1
|
+
{"version":3,"names":["_QuickSqliteClient","require","_createSelectQuery","getAppSettings","_ref","_result$","currentUserId","QuickSqliteClient","logger","result","executeSql","apply","createSelectQuery","userId","appSettings","JSON","parse","exports"],"sources":["getAppSettings.ts"],"sourcesContent":["import type { AppSettingsAPIResponse } from 'stream-chat';\n\nimport { QuickSqliteClient } from '../QuickSqliteClient';\nimport { createSelectQuery } from '../sqlite-utils/createSelectQuery';\n\nexport const getAppSettings = ({\n currentUserId,\n}: {\n currentUserId: string;\n}): AppSettingsAPIResponse => {\n QuickSqliteClient.logger?.('info', 'getAppSettings', {\n currentUserId,\n });\n const result = QuickSqliteClient.executeSql.apply(\n null,\n createSelectQuery('userSyncStatus', ['*'], {\n userId: currentUserId,\n }),\n );\n\n return result[0]?.appSettings ? JSON.parse(result[0].appSettings) : null;\n};\n"],"mappings":";;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEO,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAIG;EAAA,IAAAC,QAAA;EAAA,IAH5BC,aAAa,GAAAF,IAAA,CAAbE,aAAa;EAIbC,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,gBAAgB,EAAE;IACnDF,aAAa,EAAbA;EACF,CAAC,CAAC;EACF,IAAMG,MAAM,GAAGF,oCAAiB,CAACG,UAAU,CAACC,KAAK,CAC/C,IAAI,EACJ,IAAAC,oCAAiB,EAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,EAAE;IACzCC,MAAM,EAAEP;EACV,CAAC,CACH,CAAC;EAED,OAAO,CAAAD,QAAA,GAAAI,MAAM,CAAC,CAAC,CAAC,aAATJ,QAAA,CAAWS,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACP,MAAM,CAAC,CAAC,CAAC,CAACK,WAAW,CAAC,GAAG,IAAI;AAC1E,CAAC;AAACG,OAAA,CAAAd,cAAA,GAAAA,cAAA"}
|
|
@@ -6,9 +6,14 @@ var _selectMessagesForChannels = require("./queries/selectMessagesForChannels");
|
|
|
6
6
|
var _selectReactionsForMessages = require("./queries/selectReactionsForMessages");
|
|
7
7
|
var _utils = require("../../utils/utils");
|
|
8
8
|
var _mapStorableToMessage = require("../mappers/mapStorableToMessage");
|
|
9
|
+
var _QuickSqliteClient = require("../QuickSqliteClient");
|
|
9
10
|
var getChannelMessages = function getChannelMessages(_ref) {
|
|
10
11
|
var channelIds = _ref.channelIds,
|
|
11
12
|
currentUserId = _ref.currentUserId;
|
|
13
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'getChannelMessages', {
|
|
14
|
+
channelIds: channelIds,
|
|
15
|
+
currentUserId: currentUserId
|
|
16
|
+
});
|
|
12
17
|
var messageRows = (0, _selectMessagesForChannels.selectMessagesForChannels)(channelIds);
|
|
13
18
|
var messageIds = messageRows.map(function (_ref2) {
|
|
14
19
|
var id = _ref2.id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_selectMessagesForChannels","require","_selectReactionsForMessages","_utils","_mapStorableToMessage","getChannelMessages","_ref","channelIds","currentUserId","messageRows","selectMessagesForChannels","messageIds","map","_ref2","id","reactionRows","selectReactionsForMessages","messageIdVsReactions","forEach","reaction","messageId","push","cidVsMessages","m","cid","isBlockedMessage","mapStorableToMessage","messageRow","exports"],"sources":["getChannelMessages.ts"],"sourcesContent":["import type { MessageResponse } from 'stream-chat';\n\nimport { selectMessagesForChannels } from './queries/selectMessagesForChannels';\n\nimport { selectReactionsForMessages } from './queries/selectReactionsForMessages';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { isBlockedMessage } from '../../utils/utils';\nimport { mapStorableToMessage } from '../mappers/mapStorableToMessage';\nimport type { TableRowJoinedUser } from '../types';\n\nexport const getChannelMessages = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n channelIds,\n currentUserId,\n}: {\n channelIds: string[];\n currentUserId: string;\n}) => {\n const messageRows = selectMessagesForChannels(channelIds);\n const messageIds = messageRows.map(({ id }) => id);\n\n // Populate the message reactions.\n const reactionRows = selectReactionsForMessages(messageIds);\n const messageIdVsReactions: Record<string, TableRowJoinedUser<'reactions'>[]> = {};\n reactionRows.forEach((reaction) => {\n if (!messageIdVsReactions[reaction.messageId]) {\n messageIdVsReactions[reaction.messageId] = [];\n }\n messageIdVsReactions[reaction.messageId].push(reaction);\n });\n\n // Populate the messages.\n const cidVsMessages: Record<string, MessageResponse<StreamChatGenerics>[]> = {};\n messageRows.forEach((m) => {\n if (!cidVsMessages[m.cid]) {\n cidVsMessages[m.cid] = [];\n }\n\n if (!isBlockedMessage(m)) {\n cidVsMessages[m.cid].push(\n mapStorableToMessage<StreamChatGenerics>({\n currentUserId,\n messageRow: m,\n reactionRows: messageIdVsReactions[m.id],\n }),\n );\n }\n });\n\n return cidVsMessages;\n};\n"],"mappings":";;;;AAEA,IAAAA,0BAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AAGO,
|
|
1
|
+
{"version":3,"names":["_selectMessagesForChannels","require","_selectReactionsForMessages","_utils","_mapStorableToMessage","_QuickSqliteClient","getChannelMessages","_ref","channelIds","currentUserId","QuickSqliteClient","logger","messageRows","selectMessagesForChannels","messageIds","map","_ref2","id","reactionRows","selectReactionsForMessages","messageIdVsReactions","forEach","reaction","messageId","push","cidVsMessages","m","cid","isBlockedMessage","mapStorableToMessage","messageRow","exports"],"sources":["getChannelMessages.ts"],"sourcesContent":["import type { MessageResponse } from 'stream-chat';\n\nimport { selectMessagesForChannels } from './queries/selectMessagesForChannels';\n\nimport { selectReactionsForMessages } from './queries/selectReactionsForMessages';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { isBlockedMessage } from '../../utils/utils';\nimport { mapStorableToMessage } from '../mappers/mapStorableToMessage';\nimport { QuickSqliteClient } from '../QuickSqliteClient';\nimport type { TableRowJoinedUser } from '../types';\n\nexport const getChannelMessages = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n channelIds,\n currentUserId,\n}: {\n channelIds: string[];\n currentUserId: string;\n}) => {\n QuickSqliteClient.logger?.('info', 'getChannelMessages', {\n channelIds,\n currentUserId,\n });\n const messageRows = selectMessagesForChannels(channelIds);\n const messageIds = messageRows.map(({ id }) => id);\n\n // Populate the message reactions.\n const reactionRows = selectReactionsForMessages(messageIds);\n const messageIdVsReactions: Record<string, TableRowJoinedUser<'reactions'>[]> = {};\n reactionRows.forEach((reaction) => {\n if (!messageIdVsReactions[reaction.messageId]) {\n messageIdVsReactions[reaction.messageId] = [];\n }\n messageIdVsReactions[reaction.messageId].push(reaction);\n });\n\n // Populate the messages.\n const cidVsMessages: Record<string, MessageResponse<StreamChatGenerics>[]> = {};\n messageRows.forEach((m) => {\n if (!cidVsMessages[m.cid]) {\n cidVsMessages[m.cid] = [];\n }\n\n if (!isBlockedMessage(m)) {\n cidVsMessages[m.cid].push(\n mapStorableToMessage<StreamChatGenerics>({\n currentUserId,\n messageRow: m,\n reactionRows: messageIdVsReactions[m.id],\n }),\n );\n }\n });\n\n return cidVsMessages;\n};\n"],"mappings":";;;;AAEA,IAAAA,0BAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAGO,IAAMK,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAQzB;EAAA,IALJC,UAAU,GAAAD,IAAA,CAAVC,UAAU;IACVC,aAAa,GAAAF,IAAA,CAAbE,aAAa;EAKbC,oCAAiB,CAACC,MAAM,oBAAxBD,oCAAiB,CAACC,MAAM,CAAG,MAAM,EAAE,oBAAoB,EAAE;IACvDH,UAAU,EAAVA,UAAU;IACVC,aAAa,EAAbA;EACF,CAAC,CAAC;EACF,IAAMG,WAAW,GAAG,IAAAC,oDAAyB,EAACL,UAAU,CAAC;EACzD,IAAMM,UAAU,GAAGF,WAAW,CAACG,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGC,EAAE,GAAAD,KAAA,CAAFC,EAAE;IAAA,OAAOA,EAAE;EAAA,EAAC;EAGlD,IAAMC,YAAY,GAAG,IAAAC,sDAA0B,EAACL,UAAU,CAAC;EAC3D,IAAMM,oBAAuE,GAAG,CAAC,CAAC;EAClFF,YAAY,CAACG,OAAO,CAAC,UAACC,QAAQ,EAAK;IACjC,IAAI,CAACF,oBAAoB,CAACE,QAAQ,CAACC,SAAS,CAAC,EAAE;MAC7CH,oBAAoB,CAACE,QAAQ,CAACC,SAAS,CAAC,GAAG,EAAE;IAC/C;IACAH,oBAAoB,CAACE,QAAQ,CAACC,SAAS,CAAC,CAACC,IAAI,CAACF,QAAQ,CAAC;EACzD,CAAC,CAAC;EAGF,IAAMG,aAAoE,GAAG,CAAC,CAAC;EAC/Eb,WAAW,CAACS,OAAO,CAAC,UAACK,CAAC,EAAK;IACzB,IAAI,CAACD,aAAa,CAACC,CAAC,CAACC,GAAG,CAAC,EAAE;MACzBF,aAAa,CAACC,CAAC,CAACC,GAAG,CAAC,GAAG,EAAE;IAC3B;IAEA,IAAI,CAAC,IAAAC,uBAAgB,EAACF,CAAC,CAAC,EAAE;MACxBD,aAAa,CAACC,CAAC,CAACC,GAAG,CAAC,CAACH,IAAI,CACvB,IAAAK,0CAAoB,EAAqB;QACvCpB,aAAa,EAAbA,aAAa;QACbqB,UAAU,EAAEJ,CAAC;QACbR,YAAY,EAAEE,oBAAoB,CAACM,CAAC,CAACT,EAAE;MACzC,CAAC,CACH,CAAC;IACH;EACF,CAAC,CAAC;EAEF,OAAOQ,aAAa;AACtB,CAAC;AAACM,OAAA,CAAAzB,kBAAA,GAAAA,kBAAA"}
|
|
@@ -9,9 +9,14 @@ var _getMembers = require("./getMembers");
|
|
|
9
9
|
var _getReads = require("./getReads");
|
|
10
10
|
var _selectChannels = require("./queries/selectChannels");
|
|
11
11
|
var _mapStorableToChannel = require("../mappers/mapStorableToChannel");
|
|
12
|
+
var _QuickSqliteClient = require("../QuickSqliteClient");
|
|
12
13
|
var getChannels = function getChannels(_ref) {
|
|
13
14
|
var channelIds = _ref.channelIds,
|
|
14
15
|
currentUserId = _ref.currentUserId;
|
|
16
|
+
_QuickSqliteClient.QuickSqliteClient.logger == null ? void 0 : _QuickSqliteClient.QuickSqliteClient.logger('info', 'getChannels', {
|
|
17
|
+
channelIds: channelIds,
|
|
18
|
+
currentUserId: currentUserId
|
|
19
|
+
});
|
|
15
20
|
var channels = (0, _selectChannels.selectChannels)({
|
|
16
21
|
channelIds: channelIds
|
|
17
22
|
});
|