@burdenoff/microfe-conversations 2026.510.117
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/README.md +12 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/conversations/ConversationsAdminRoot.d.ts +19 -0
- package/dist/conversations/ConversationsAdminRoot.d.ts.map +1 -0
- package/dist/conversations/ConversationsAdminRoot.js +104 -0
- package/dist/conversations/ConversationsAdminRoot.js.map +1 -0
- package/dist/conversations/ConversationsAdminRoutes.d.ts +18 -0
- package/dist/conversations/ConversationsAdminRoutes.d.ts.map +1 -0
- package/dist/conversations/ConversationsAdminRoutes.js +42 -0
- package/dist/conversations/ConversationsAdminRoutes.js.map +1 -0
- package/dist/conversations/ConversationsRoot.d.ts +33 -0
- package/dist/conversations/ConversationsRoot.d.ts.map +1 -0
- package/dist/conversations/ConversationsRoot.js +100 -0
- package/dist/conversations/ConversationsRoot.js.map +1 -0
- package/dist/conversations/ConversationsUserRoot.d.ts +17 -0
- package/dist/conversations/ConversationsUserRoot.d.ts.map +1 -0
- package/dist/conversations/ConversationsUserRoot.js +101 -0
- package/dist/conversations/ConversationsUserRoot.js.map +1 -0
- package/dist/conversations/ConversationsUserRoutes.d.ts +12 -0
- package/dist/conversations/ConversationsUserRoutes.d.ts.map +1 -0
- package/dist/conversations/ConversationsUserRoutes.js +45 -0
- package/dist/conversations/ConversationsUserRoutes.js.map +1 -0
- package/dist/conversations/components/ConversationCard.d.ts +14 -0
- package/dist/conversations/components/ConversationCard.d.ts.map +1 -0
- package/dist/conversations/components/ConversationCard.js +118 -0
- package/dist/conversations/components/ConversationCard.js.map +1 -0
- package/dist/conversations/components/LazyPageBoundary.d.ts +25 -0
- package/dist/conversations/components/LazyPageBoundary.d.ts.map +1 -0
- package/dist/conversations/components/LazyPageBoundary.js +144 -0
- package/dist/conversations/components/LazyPageBoundary.js.map +1 -0
- package/dist/conversations/components/MessageBubble.d.ts +21 -0
- package/dist/conversations/components/MessageBubble.d.ts.map +1 -0
- package/dist/conversations/components/MessageBubble.js +242 -0
- package/dist/conversations/components/MessageBubble.js.map +1 -0
- package/dist/conversations/components/PageLayout.d.ts +55 -0
- package/dist/conversations/components/PageLayout.d.ts.map +1 -0
- package/dist/conversations/components/PageLayout.js +93 -0
- package/dist/conversations/components/PageLayout.js.map +1 -0
- package/dist/conversations/components/PermissionGuard.d.ts +21 -0
- package/dist/conversations/components/PermissionGuard.d.ts.map +1 -0
- package/dist/conversations/components/PermissionGuard.js +25 -0
- package/dist/conversations/components/PermissionGuard.js.map +1 -0
- package/dist/conversations/constants/featureFlags.d.ts +8 -0
- package/dist/conversations/constants/featureFlags.d.ts.map +1 -0
- package/dist/conversations/constants/featureFlags.js +12 -0
- package/dist/conversations/constants/featureFlags.js.map +1 -0
- package/dist/conversations/constants/permissions.d.ts +174 -0
- package/dist/conversations/constants/permissions.d.ts.map +1 -0
- package/dist/conversations/constants/permissions.js +68 -0
- package/dist/conversations/constants/permissions.js.map +1 -0
- package/dist/conversations/hooks/useAdminFeatureFlags.d.ts +8 -0
- package/dist/conversations/hooks/useAdminFeatureFlags.d.ts.map +1 -0
- package/dist/conversations/hooks/useAdminFeatureFlags.js +16 -0
- package/dist/conversations/hooks/useAdminFeatureFlags.js.map +1 -0
- package/dist/conversations/hooks/useConversationQueries.d.ts +83 -0
- package/dist/conversations/hooks/useConversationQueries.d.ts.map +1 -0
- package/dist/conversations/hooks/useConversationQueries.js +136 -0
- package/dist/conversations/hooks/useConversationQueries.js.map +1 -0
- package/dist/conversations/hooks/useExportConversation.d.ts +10 -0
- package/dist/conversations/hooks/useExportConversation.d.ts.map +1 -0
- package/dist/conversations/hooks/useExportConversation.js +41 -0
- package/dist/conversations/hooks/useExportConversation.js.map +1 -0
- package/dist/conversations/hooks/useMessageQueries.d.ts +84 -0
- package/dist/conversations/hooks/useMessageQueries.d.ts.map +1 -0
- package/dist/conversations/hooks/useMessageQueries.js +123 -0
- package/dist/conversations/hooks/useMessageQueries.js.map +1 -0
- package/dist/conversations/hooks/useMessageSubscriptions.d.ts +24 -0
- package/dist/conversations/hooks/useMessageSubscriptions.d.ts.map +1 -0
- package/dist/conversations/hooks/useMessageSubscriptions.js +90 -0
- package/dist/conversations/hooks/useMessageSubscriptions.js.map +1 -0
- package/dist/conversations/hooks/useUserFeatureFlags.d.ts +5 -0
- package/dist/conversations/hooks/useUserFeatureFlags.d.ts.map +1 -0
- package/dist/conversations/hooks/useUserFeatureFlags.js +10 -0
- package/dist/conversations/hooks/useUserFeatureFlags.js.map +1 -0
- package/dist/conversations/index.d.ts +31 -0
- package/dist/conversations/index.d.ts.map +1 -0
- package/dist/conversations/index.js +5 -0
- package/dist/conversations/pages/AdminConversationsLandingPage.d.ts +9 -0
- package/dist/conversations/pages/AdminConversationsLandingPage.d.ts.map +1 -0
- package/dist/conversations/pages/AdminConversationsLandingPage.js +117 -0
- package/dist/conversations/pages/AdminConversationsLandingPage.js.map +1 -0
- package/dist/conversations/pages/ConversationAdminPages.d.ts +5 -0
- package/dist/conversations/pages/ConversationAdminPages.d.ts.map +1 -0
- package/dist/conversations/pages/ConversationAdminPages.js +573 -0
- package/dist/conversations/pages/ConversationAdminPages.js.map +1 -0
- package/dist/conversations/pages/ConversationDetailPage.d.ts +2 -0
- package/dist/conversations/pages/ConversationDetailPage.d.ts.map +1 -0
- package/dist/conversations/pages/ConversationDetailPage.js +439 -0
- package/dist/conversations/pages/ConversationDetailPage.js.map +1 -0
- package/dist/conversations/pages/ConversationListPage.d.ts +6 -0
- package/dist/conversations/pages/ConversationListPage.d.ts.map +1 -0
- package/dist/conversations/pages/ConversationListPage.js +269 -0
- package/dist/conversations/pages/ConversationListPage.js.map +1 -0
- package/dist/conversations/pages/ConversationsLandingPage.d.ts +9 -0
- package/dist/conversations/pages/ConversationsLandingPage.d.ts.map +1 -0
- package/dist/conversations/pages/ConversationsLandingPage.js +124 -0
- package/dist/conversations/pages/ConversationsLandingPage.js.map +1 -0
- package/dist/conversations/pages/ConversationsSettingsPage.d.ts +2 -0
- package/dist/conversations/pages/ConversationsSettingsPage.d.ts.map +1 -0
- package/dist/conversations/pages/ConversationsSettingsPage.js +215 -0
- package/dist/conversations/pages/ConversationsSettingsPage.js.map +1 -0
- package/dist/conversations/pages/NewConversationPage.d.ts +2 -0
- package/dist/conversations/pages/NewConversationPage.d.ts.map +1 -0
- package/dist/conversations/pages/NewConversationPage.js +287 -0
- package/dist/conversations/pages/NewConversationPage.js.map +1 -0
- package/dist/conversations/providers/ConversationsProvider.d.ts +13 -0
- package/dist/conversations/providers/ConversationsProvider.d.ts.map +1 -0
- package/dist/conversations/providers/ConversationsProvider.js +109 -0
- package/dist/conversations/providers/ConversationsProvider.js.map +1 -0
- package/dist/conversations/store/conversationsStore.d.ts +29 -0
- package/dist/conversations/store/conversationsStore.d.ts.map +1 -0
- package/dist/conversations/store/conversationsStore.js +56 -0
- package/dist/conversations/store/conversationsStore.js.map +1 -0
- package/dist/conversations/types/index.d.ts +352 -0
- package/dist/conversations/types/index.d.ts.map +1 -0
- package/dist/conversations/utils/cn.d.ts +8 -0
- package/dist/conversations/utils/cn.d.ts.map +1 -0
- package/dist/conversations/utils/cn.js +10 -0
- package/dist/conversations/utils/cn.js.map +1 -0
- package/dist/conversations/utils/i18n.d.ts +15 -0
- package/dist/conversations/utils/i18n.d.ts.map +1 -0
- package/dist/conversations/utils/i18n.js +14 -0
- package/dist/conversations/utils/i18n.js.map +1 -0
- package/dist/conversations/utils/mappers.d.ts +32 -0
- package/dist/conversations/utils/mappers.d.ts.map +1 -0
- package/dist/conversations/utils/mappers.js +164 -0
- package/dist/conversations/utils/mappers.js.map +1 -0
- package/dist/conversations/utils/navigation.d.ts +18 -0
- package/dist/conversations/utils/navigation.d.ts.map +1 -0
- package/dist/conversations/utils/navigation.js +8 -0
- package/dist/conversations/utils/navigation.js.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +20716 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2008 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +997 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53363 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +115 -0
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
import { gql as e } from "@apollo/client";
|
|
2
|
+
import * as t from "@apollo/client/react";
|
|
3
|
+
//#region src/generated/wspace-operations.ts
|
|
4
|
+
var n = {}, r = e`
|
|
5
|
+
mutation CreateConversation($input: CreateConversationInput!) {
|
|
6
|
+
createConversation(input: $input) {
|
|
7
|
+
conversation {
|
|
8
|
+
id
|
|
9
|
+
workspaceId
|
|
10
|
+
type
|
|
11
|
+
title
|
|
12
|
+
description
|
|
13
|
+
avatar
|
|
14
|
+
state
|
|
15
|
+
visibility
|
|
16
|
+
isGroup
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedAt
|
|
20
|
+
currentUserMembership {
|
|
21
|
+
id
|
|
22
|
+
role
|
|
23
|
+
status
|
|
24
|
+
joinedAt
|
|
25
|
+
}
|
|
26
|
+
memberCount
|
|
27
|
+
features {
|
|
28
|
+
threads
|
|
29
|
+
reactions
|
|
30
|
+
mentions
|
|
31
|
+
calls
|
|
32
|
+
apps
|
|
33
|
+
polls
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
success
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
function i(e) {
|
|
41
|
+
let i = {
|
|
42
|
+
...n,
|
|
43
|
+
...e
|
|
44
|
+
};
|
|
45
|
+
return t.useMutation(r, i);
|
|
46
|
+
}
|
|
47
|
+
e`
|
|
48
|
+
mutation UpdateConversation($input: UpdateConversationInput!) {
|
|
49
|
+
updateConversation(input: $input) {
|
|
50
|
+
conversation {
|
|
51
|
+
id
|
|
52
|
+
title
|
|
53
|
+
description
|
|
54
|
+
avatar
|
|
55
|
+
settings
|
|
56
|
+
updatedAt
|
|
57
|
+
}
|
|
58
|
+
success
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
var a = e`
|
|
63
|
+
mutation ArchiveConversation($id: ID!) {
|
|
64
|
+
archiveConversation(id: $id) {
|
|
65
|
+
id
|
|
66
|
+
state
|
|
67
|
+
updatedAt
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
function o(e) {
|
|
72
|
+
let r = {
|
|
73
|
+
...n,
|
|
74
|
+
...e
|
|
75
|
+
};
|
|
76
|
+
return t.useMutation(a, r);
|
|
77
|
+
}
|
|
78
|
+
e`
|
|
79
|
+
mutation DeleteConversation($id: ID!) {
|
|
80
|
+
deleteConversation(id: $id) {
|
|
81
|
+
conversationId
|
|
82
|
+
success
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`, e`
|
|
86
|
+
mutation AddParticipant($input: AddParticipantInput!) {
|
|
87
|
+
addParticipant(input: $input) {
|
|
88
|
+
id
|
|
89
|
+
conversationId
|
|
90
|
+
userId
|
|
91
|
+
workspaceId
|
|
92
|
+
role
|
|
93
|
+
status
|
|
94
|
+
notificationLevel
|
|
95
|
+
isMuted
|
|
96
|
+
canSendMessages
|
|
97
|
+
canAddMembers
|
|
98
|
+
canRemoveMembers
|
|
99
|
+
joinedAt
|
|
100
|
+
invitedBy
|
|
101
|
+
createdAt
|
|
102
|
+
updatedAt
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
`, e`
|
|
106
|
+
mutation RemoveParticipant($input: RemoveParticipantInput!) {
|
|
107
|
+
removeParticipant(input: $input) {
|
|
108
|
+
conversationId
|
|
109
|
+
userId
|
|
110
|
+
success
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`, e`
|
|
114
|
+
mutation LeaveConversation($conversationId: ID!) {
|
|
115
|
+
leaveConversation(conversationId: $conversationId) {
|
|
116
|
+
conversationId
|
|
117
|
+
success
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
`, e`
|
|
121
|
+
mutation UpdateParticipantRole($input: UpdateParticipantRoleInput!) {
|
|
122
|
+
updateParticipantRole(input: $input) {
|
|
123
|
+
id
|
|
124
|
+
conversationId
|
|
125
|
+
userId
|
|
126
|
+
role
|
|
127
|
+
status
|
|
128
|
+
canSendMessages
|
|
129
|
+
canAddMembers
|
|
130
|
+
canRemoveMembers
|
|
131
|
+
updatedAt
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
var s = e`
|
|
136
|
+
mutation SendMessage($input: SendMessageInput!) {
|
|
137
|
+
sendMessage(input: $input) {
|
|
138
|
+
message {
|
|
139
|
+
id
|
|
140
|
+
conversationId
|
|
141
|
+
workspaceId
|
|
142
|
+
type
|
|
143
|
+
status
|
|
144
|
+
content
|
|
145
|
+
authorId
|
|
146
|
+
authorType
|
|
147
|
+
isAnonymous
|
|
148
|
+
parentMessageId
|
|
149
|
+
threadRootId
|
|
150
|
+
threadLevel
|
|
151
|
+
isPinned
|
|
152
|
+
createdAt
|
|
153
|
+
updatedAt
|
|
154
|
+
reactions {
|
|
155
|
+
id
|
|
156
|
+
emoji
|
|
157
|
+
userId
|
|
158
|
+
createdAt
|
|
159
|
+
}
|
|
160
|
+
mentions {
|
|
161
|
+
id
|
|
162
|
+
mentionedUser
|
|
163
|
+
mentionType
|
|
164
|
+
offset
|
|
165
|
+
length
|
|
166
|
+
}
|
|
167
|
+
attachments {
|
|
168
|
+
id
|
|
169
|
+
fileId
|
|
170
|
+
fileName
|
|
171
|
+
fileSize
|
|
172
|
+
mimeType
|
|
173
|
+
thumbnail
|
|
174
|
+
}
|
|
175
|
+
replyCount
|
|
176
|
+
permissions {
|
|
177
|
+
canEdit
|
|
178
|
+
canDelete
|
|
179
|
+
canReact
|
|
180
|
+
canReply
|
|
181
|
+
canPin
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
success
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
`;
|
|
188
|
+
function c(e) {
|
|
189
|
+
let r = {
|
|
190
|
+
...n,
|
|
191
|
+
...e
|
|
192
|
+
};
|
|
193
|
+
return t.useMutation(s, r);
|
|
194
|
+
}
|
|
195
|
+
var l = e`
|
|
196
|
+
mutation EditMessage($input: EditMessageInput!) {
|
|
197
|
+
editMessage(input: $input) {
|
|
198
|
+
id
|
|
199
|
+
content
|
|
200
|
+
isEdited
|
|
201
|
+
editedAt
|
|
202
|
+
updatedAt
|
|
203
|
+
editHistory {
|
|
204
|
+
id
|
|
205
|
+
previousContent
|
|
206
|
+
editedBy
|
|
207
|
+
editedAt
|
|
208
|
+
reason
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`;
|
|
213
|
+
function u(e) {
|
|
214
|
+
let r = {
|
|
215
|
+
...n,
|
|
216
|
+
...e
|
|
217
|
+
};
|
|
218
|
+
return t.useMutation(l, r);
|
|
219
|
+
}
|
|
220
|
+
var d = e`
|
|
221
|
+
mutation DeleteMessage($id: ID!, $hard: Boolean) {
|
|
222
|
+
deleteMessage(id: $id, hard: $hard) {
|
|
223
|
+
messageId
|
|
224
|
+
success
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
`;
|
|
228
|
+
function f(e) {
|
|
229
|
+
let r = {
|
|
230
|
+
...n,
|
|
231
|
+
...e
|
|
232
|
+
};
|
|
233
|
+
return t.useMutation(d, r);
|
|
234
|
+
}
|
|
235
|
+
var p = e`
|
|
236
|
+
mutation AddReaction($messageId: ID!, $emoji: String!) {
|
|
237
|
+
addReaction(messageId: $messageId, emoji: $emoji) {
|
|
238
|
+
id
|
|
239
|
+
messageId
|
|
240
|
+
userId
|
|
241
|
+
emoji
|
|
242
|
+
createdAt
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`;
|
|
246
|
+
function m(e) {
|
|
247
|
+
let r = {
|
|
248
|
+
...n,
|
|
249
|
+
...e
|
|
250
|
+
};
|
|
251
|
+
return t.useMutation(p, r);
|
|
252
|
+
}
|
|
253
|
+
var h = e`
|
|
254
|
+
mutation RemoveReaction($messageId: ID!, $emoji: String!) {
|
|
255
|
+
removeReaction(messageId: $messageId, emoji: $emoji) {
|
|
256
|
+
messageId
|
|
257
|
+
emoji
|
|
258
|
+
success
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`;
|
|
262
|
+
function g(e) {
|
|
263
|
+
let r = {
|
|
264
|
+
...n,
|
|
265
|
+
...e
|
|
266
|
+
};
|
|
267
|
+
return t.useMutation(h, r);
|
|
268
|
+
}
|
|
269
|
+
var _ = e`
|
|
270
|
+
mutation MuteConversation($conversationId: ID!) {
|
|
271
|
+
muteConversation(conversationId: $conversationId) {
|
|
272
|
+
id
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
`;
|
|
276
|
+
function v(e) {
|
|
277
|
+
let r = {
|
|
278
|
+
...n,
|
|
279
|
+
...e
|
|
280
|
+
};
|
|
281
|
+
return t.useMutation(_, r);
|
|
282
|
+
}
|
|
283
|
+
var y = e`
|
|
284
|
+
mutation PinConversation($conversationId: ID!) {
|
|
285
|
+
pinConversation(conversationId: $conversationId) {
|
|
286
|
+
id
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
`;
|
|
290
|
+
function b(e) {
|
|
291
|
+
let r = {
|
|
292
|
+
...n,
|
|
293
|
+
...e
|
|
294
|
+
};
|
|
295
|
+
return t.useMutation(y, r);
|
|
296
|
+
}
|
|
297
|
+
var x = e`
|
|
298
|
+
mutation PinMessageByHook($messageId: ID!) {
|
|
299
|
+
pinMessage(messageId: $messageId) {
|
|
300
|
+
id
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
`;
|
|
304
|
+
function S(e) {
|
|
305
|
+
let r = {
|
|
306
|
+
...n,
|
|
307
|
+
...e
|
|
308
|
+
};
|
|
309
|
+
return t.useMutation(x, r);
|
|
310
|
+
}
|
|
311
|
+
var C = e`
|
|
312
|
+
mutation UnmuteConversation($conversationId: ID!) {
|
|
313
|
+
unmuteConversation(conversationId: $conversationId) {
|
|
314
|
+
id
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
`;
|
|
318
|
+
function w(e) {
|
|
319
|
+
let r = {
|
|
320
|
+
...n,
|
|
321
|
+
...e
|
|
322
|
+
};
|
|
323
|
+
return t.useMutation(C, r);
|
|
324
|
+
}
|
|
325
|
+
var T = e`
|
|
326
|
+
mutation UnpinConversation($conversationId: ID!) {
|
|
327
|
+
unpinConversation(conversationId: $conversationId) {
|
|
328
|
+
id
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
`;
|
|
332
|
+
function E(e) {
|
|
333
|
+
let r = {
|
|
334
|
+
...n,
|
|
335
|
+
...e
|
|
336
|
+
};
|
|
337
|
+
return t.useMutation(T, r);
|
|
338
|
+
}
|
|
339
|
+
var D = e`
|
|
340
|
+
mutation UnpinMessageByHook($messageId: ID!) {
|
|
341
|
+
unpinMessage(messageId: $messageId) {
|
|
342
|
+
id
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
`;
|
|
346
|
+
function O(e) {
|
|
347
|
+
let r = {
|
|
348
|
+
...n,
|
|
349
|
+
...e
|
|
350
|
+
};
|
|
351
|
+
return t.useMutation(D, r);
|
|
352
|
+
}
|
|
353
|
+
var k = e`
|
|
354
|
+
mutation UpdateConversationByHook($input: UpdateConversationInput!) {
|
|
355
|
+
updateConversation(input: $input) {
|
|
356
|
+
success
|
|
357
|
+
conversation {
|
|
358
|
+
id
|
|
359
|
+
title
|
|
360
|
+
description
|
|
361
|
+
avatar
|
|
362
|
+
state
|
|
363
|
+
visibility
|
|
364
|
+
isGroup
|
|
365
|
+
createdBy
|
|
366
|
+
createdAt
|
|
367
|
+
updatedAt
|
|
368
|
+
memberCount
|
|
369
|
+
unreadCount
|
|
370
|
+
mentionCount
|
|
371
|
+
features {
|
|
372
|
+
threads
|
|
373
|
+
reactions
|
|
374
|
+
mentions
|
|
375
|
+
calls
|
|
376
|
+
apps
|
|
377
|
+
polls
|
|
378
|
+
anonymousMode
|
|
379
|
+
screenShare
|
|
380
|
+
recording
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
function A(e) {
|
|
387
|
+
let r = {
|
|
388
|
+
...n,
|
|
389
|
+
...e
|
|
390
|
+
};
|
|
391
|
+
return t.useMutation(k, r);
|
|
392
|
+
}
|
|
393
|
+
var j = e`
|
|
394
|
+
query GetConversation($id: ID!) {
|
|
395
|
+
conversation(id: $id) {
|
|
396
|
+
id
|
|
397
|
+
workspaceId
|
|
398
|
+
type
|
|
399
|
+
title
|
|
400
|
+
description
|
|
401
|
+
avatar
|
|
402
|
+
state
|
|
403
|
+
visibility
|
|
404
|
+
isGroup
|
|
405
|
+
settings
|
|
406
|
+
createdBy
|
|
407
|
+
createdAt
|
|
408
|
+
updatedAt
|
|
409
|
+
currentUserMembership {
|
|
410
|
+
id
|
|
411
|
+
role
|
|
412
|
+
status
|
|
413
|
+
lastReadMessageId
|
|
414
|
+
lastReadAt
|
|
415
|
+
unreadCount
|
|
416
|
+
mentionCount
|
|
417
|
+
notificationLevel
|
|
418
|
+
isMuted
|
|
419
|
+
isPinned
|
|
420
|
+
pinnedOrder
|
|
421
|
+
canSendMessages
|
|
422
|
+
canAddMembers
|
|
423
|
+
canRemoveMembers
|
|
424
|
+
joinedAt
|
|
425
|
+
customTitle
|
|
426
|
+
customAvatar
|
|
427
|
+
}
|
|
428
|
+
memberCount
|
|
429
|
+
unreadCount
|
|
430
|
+
mentionCount
|
|
431
|
+
features {
|
|
432
|
+
threads
|
|
433
|
+
reactions
|
|
434
|
+
mentions
|
|
435
|
+
calls
|
|
436
|
+
apps
|
|
437
|
+
polls
|
|
438
|
+
anonymousMode
|
|
439
|
+
screenShare
|
|
440
|
+
recording
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
`;
|
|
445
|
+
function M(e) {
|
|
446
|
+
let r = {
|
|
447
|
+
...n,
|
|
448
|
+
...e
|
|
449
|
+
};
|
|
450
|
+
return t.useQuery(j, r);
|
|
451
|
+
}
|
|
452
|
+
var N = e`
|
|
453
|
+
query GetConversations($first: Int, $after: String, $filter: ConversationFilter, $sort: ConversationSort) {
|
|
454
|
+
conversations(first: $first, after: $after, filter: $filter, sort: $sort) {
|
|
455
|
+
edges {
|
|
456
|
+
cursor
|
|
457
|
+
node {
|
|
458
|
+
id
|
|
459
|
+
workspaceId
|
|
460
|
+
type
|
|
461
|
+
title
|
|
462
|
+
description
|
|
463
|
+
avatar
|
|
464
|
+
settings
|
|
465
|
+
state
|
|
466
|
+
visibility
|
|
467
|
+
isGroup
|
|
468
|
+
createdBy
|
|
469
|
+
createdAt
|
|
470
|
+
updatedAt
|
|
471
|
+
lastMessage {
|
|
472
|
+
id
|
|
473
|
+
type
|
|
474
|
+
content
|
|
475
|
+
authorId
|
|
476
|
+
authorType
|
|
477
|
+
createdAt
|
|
478
|
+
}
|
|
479
|
+
currentUserMembership {
|
|
480
|
+
id
|
|
481
|
+
role
|
|
482
|
+
status
|
|
483
|
+
unreadCount
|
|
484
|
+
mentionCount
|
|
485
|
+
notificationLevel
|
|
486
|
+
isMuted
|
|
487
|
+
isPinned
|
|
488
|
+
}
|
|
489
|
+
memberCount
|
|
490
|
+
unreadCount
|
|
491
|
+
mentionCount
|
|
492
|
+
features {
|
|
493
|
+
threads
|
|
494
|
+
reactions
|
|
495
|
+
mentions
|
|
496
|
+
calls
|
|
497
|
+
apps
|
|
498
|
+
polls
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
pageInfo {
|
|
503
|
+
hasNextPage
|
|
504
|
+
hasPreviousPage
|
|
505
|
+
startCursor
|
|
506
|
+
endCursor
|
|
507
|
+
}
|
|
508
|
+
totalCount
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
`;
|
|
512
|
+
function P(e) {
|
|
513
|
+
let r = {
|
|
514
|
+
...n,
|
|
515
|
+
...e
|
|
516
|
+
};
|
|
517
|
+
return t.useQuery(N, r);
|
|
518
|
+
}
|
|
519
|
+
var F = e`
|
|
520
|
+
query GetMessages($conversationId: ID!, $first: Int, $after: String, $before: String, $filter: MessageFilter) {
|
|
521
|
+
messages(
|
|
522
|
+
conversationId: $conversationId
|
|
523
|
+
first: $first
|
|
524
|
+
after: $after
|
|
525
|
+
before: $before
|
|
526
|
+
filter: $filter
|
|
527
|
+
) {
|
|
528
|
+
edges {
|
|
529
|
+
cursor
|
|
530
|
+
node {
|
|
531
|
+
id
|
|
532
|
+
conversationId
|
|
533
|
+
workspaceId
|
|
534
|
+
type
|
|
535
|
+
status
|
|
536
|
+
content
|
|
537
|
+
authorId
|
|
538
|
+
authorType
|
|
539
|
+
isAnonymous
|
|
540
|
+
parentMessageId
|
|
541
|
+
threadRootId
|
|
542
|
+
threadLevel
|
|
543
|
+
isHidden
|
|
544
|
+
isEdited
|
|
545
|
+
editedAt
|
|
546
|
+
isPinned
|
|
547
|
+
pinnedBy
|
|
548
|
+
pinnedAt
|
|
549
|
+
expiresAt
|
|
550
|
+
deletedAt
|
|
551
|
+
createdAt
|
|
552
|
+
updatedAt
|
|
553
|
+
reactions {
|
|
554
|
+
id
|
|
555
|
+
emoji
|
|
556
|
+
userId
|
|
557
|
+
createdAt
|
|
558
|
+
}
|
|
559
|
+
mentions {
|
|
560
|
+
id
|
|
561
|
+
mentionedUser
|
|
562
|
+
mentionType
|
|
563
|
+
offset
|
|
564
|
+
length
|
|
565
|
+
}
|
|
566
|
+
attachments {
|
|
567
|
+
id
|
|
568
|
+
fileId
|
|
569
|
+
fileName
|
|
570
|
+
fileSize
|
|
571
|
+
mimeType
|
|
572
|
+
downloadUrl
|
|
573
|
+
width
|
|
574
|
+
height
|
|
575
|
+
duration
|
|
576
|
+
thumbnail
|
|
577
|
+
}
|
|
578
|
+
replyCount
|
|
579
|
+
readCount
|
|
580
|
+
permissions {
|
|
581
|
+
canEdit
|
|
582
|
+
canDelete
|
|
583
|
+
canReact
|
|
584
|
+
canReply
|
|
585
|
+
canPin
|
|
586
|
+
canHide
|
|
587
|
+
canReport
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
pageInfo {
|
|
592
|
+
hasNextPage
|
|
593
|
+
hasPreviousPage
|
|
594
|
+
startCursor
|
|
595
|
+
endCursor
|
|
596
|
+
}
|
|
597
|
+
totalCount
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
`;
|
|
601
|
+
function I(e) {
|
|
602
|
+
let r = {
|
|
603
|
+
...n,
|
|
604
|
+
...e
|
|
605
|
+
};
|
|
606
|
+
return t.useQuery(F, r);
|
|
607
|
+
}
|
|
608
|
+
e`
|
|
609
|
+
query GetPresence($userIds: [ID!]!) {
|
|
610
|
+
presence(userIds: $userIds) {
|
|
611
|
+
userId
|
|
612
|
+
status
|
|
613
|
+
customStatus
|
|
614
|
+
lastSeenAt
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
`, e`
|
|
618
|
+
query GetThreadMessages($messageId: ID!, $first: Int, $after: String) {
|
|
619
|
+
thread(messageId: $messageId, first: $first, after: $after) {
|
|
620
|
+
edges {
|
|
621
|
+
cursor
|
|
622
|
+
node {
|
|
623
|
+
id
|
|
624
|
+
conversationId
|
|
625
|
+
type
|
|
626
|
+
status
|
|
627
|
+
content
|
|
628
|
+
authorId
|
|
629
|
+
authorType
|
|
630
|
+
isAnonymous
|
|
631
|
+
parentMessageId
|
|
632
|
+
threadRootId
|
|
633
|
+
threadLevel
|
|
634
|
+
isEdited
|
|
635
|
+
editedAt
|
|
636
|
+
isPinned
|
|
637
|
+
createdAt
|
|
638
|
+
updatedAt
|
|
639
|
+
reactions {
|
|
640
|
+
id
|
|
641
|
+
emoji
|
|
642
|
+
userId
|
|
643
|
+
createdAt
|
|
644
|
+
}
|
|
645
|
+
mentions {
|
|
646
|
+
id
|
|
647
|
+
mentionedUser
|
|
648
|
+
mentionType
|
|
649
|
+
offset
|
|
650
|
+
length
|
|
651
|
+
}
|
|
652
|
+
attachments {
|
|
653
|
+
id
|
|
654
|
+
fileId
|
|
655
|
+
fileName
|
|
656
|
+
fileSize
|
|
657
|
+
mimeType
|
|
658
|
+
width
|
|
659
|
+
height
|
|
660
|
+
duration
|
|
661
|
+
thumbnail
|
|
662
|
+
}
|
|
663
|
+
replyCount
|
|
664
|
+
permissions {
|
|
665
|
+
canEdit
|
|
666
|
+
canDelete
|
|
667
|
+
canReact
|
|
668
|
+
canReply
|
|
669
|
+
canPin
|
|
670
|
+
canHide
|
|
671
|
+
canReport
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
pageInfo {
|
|
676
|
+
hasNextPage
|
|
677
|
+
endCursor
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
`;
|
|
682
|
+
var L = e`
|
|
683
|
+
query SearchConversations($query: String!, $first: Int, $after: String, $filter: ConversationFilter) {
|
|
684
|
+
searchConversations(
|
|
685
|
+
query: $query
|
|
686
|
+
first: $first
|
|
687
|
+
after: $after
|
|
688
|
+
filter: $filter
|
|
689
|
+
) {
|
|
690
|
+
edges {
|
|
691
|
+
cursor
|
|
692
|
+
node {
|
|
693
|
+
id
|
|
694
|
+
workspaceId
|
|
695
|
+
type
|
|
696
|
+
title
|
|
697
|
+
description
|
|
698
|
+
avatar
|
|
699
|
+
settings
|
|
700
|
+
state
|
|
701
|
+
visibility
|
|
702
|
+
isGroup
|
|
703
|
+
createdBy
|
|
704
|
+
createdAt
|
|
705
|
+
updatedAt
|
|
706
|
+
lastMessage {
|
|
707
|
+
id
|
|
708
|
+
type
|
|
709
|
+
content
|
|
710
|
+
authorId
|
|
711
|
+
authorType
|
|
712
|
+
createdAt
|
|
713
|
+
}
|
|
714
|
+
currentUserMembership {
|
|
715
|
+
id
|
|
716
|
+
role
|
|
717
|
+
status
|
|
718
|
+
unreadCount
|
|
719
|
+
mentionCount
|
|
720
|
+
isMuted
|
|
721
|
+
isPinned
|
|
722
|
+
}
|
|
723
|
+
memberCount
|
|
724
|
+
unreadCount
|
|
725
|
+
mentionCount
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
pageInfo {
|
|
729
|
+
hasNextPage
|
|
730
|
+
hasPreviousPage
|
|
731
|
+
startCursor
|
|
732
|
+
endCursor
|
|
733
|
+
}
|
|
734
|
+
totalCount
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
`;
|
|
738
|
+
function R(e) {
|
|
739
|
+
let r = {
|
|
740
|
+
...n,
|
|
741
|
+
...e
|
|
742
|
+
};
|
|
743
|
+
return t.useQuery(L, r);
|
|
744
|
+
}
|
|
745
|
+
e`
|
|
746
|
+
query SearchMessagesByHook($query: String!, $conversationId: ID, $first: Int) {
|
|
747
|
+
searchMessages(query: $query, conversationId: $conversationId, first: $first) {
|
|
748
|
+
edges {
|
|
749
|
+
node {
|
|
750
|
+
id
|
|
751
|
+
conversationId
|
|
752
|
+
type
|
|
753
|
+
status
|
|
754
|
+
content
|
|
755
|
+
authorId
|
|
756
|
+
authorType
|
|
757
|
+
isAnonymous
|
|
758
|
+
parentMessageId
|
|
759
|
+
threadRootId
|
|
760
|
+
threadLevel
|
|
761
|
+
isEdited
|
|
762
|
+
editedAt
|
|
763
|
+
isPinned
|
|
764
|
+
createdAt
|
|
765
|
+
updatedAt
|
|
766
|
+
reactions {
|
|
767
|
+
id
|
|
768
|
+
emoji
|
|
769
|
+
userId
|
|
770
|
+
createdAt
|
|
771
|
+
}
|
|
772
|
+
mentions {
|
|
773
|
+
id
|
|
774
|
+
mentionedUser
|
|
775
|
+
mentionType
|
|
776
|
+
offset
|
|
777
|
+
length
|
|
778
|
+
}
|
|
779
|
+
attachments {
|
|
780
|
+
id
|
|
781
|
+
fileId
|
|
782
|
+
fileName
|
|
783
|
+
fileSize
|
|
784
|
+
mimeType
|
|
785
|
+
width
|
|
786
|
+
height
|
|
787
|
+
duration
|
|
788
|
+
thumbnail
|
|
789
|
+
}
|
|
790
|
+
replyCount
|
|
791
|
+
permissions {
|
|
792
|
+
canEdit
|
|
793
|
+
canDelete
|
|
794
|
+
canReact
|
|
795
|
+
canReply
|
|
796
|
+
canPin
|
|
797
|
+
canHide
|
|
798
|
+
canReport
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
`;
|
|
805
|
+
var z = e`
|
|
806
|
+
subscription ConversationAdded {
|
|
807
|
+
conversationAdded {
|
|
808
|
+
id
|
|
809
|
+
workspaceId
|
|
810
|
+
type
|
|
811
|
+
title
|
|
812
|
+
description
|
|
813
|
+
createdBy
|
|
814
|
+
state
|
|
815
|
+
visibility
|
|
816
|
+
createdAt
|
|
817
|
+
updatedAt
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
`, B = e`
|
|
821
|
+
subscription ConversationUpdated($conversationId: ID!) {
|
|
822
|
+
conversationUpdated(conversationId: $conversationId) {
|
|
823
|
+
changes
|
|
824
|
+
conversation {
|
|
825
|
+
id
|
|
826
|
+
title
|
|
827
|
+
description
|
|
828
|
+
state
|
|
829
|
+
visibility
|
|
830
|
+
avatar
|
|
831
|
+
settings
|
|
832
|
+
updatedAt
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
`, V = e`
|
|
837
|
+
subscription ConversationDeleted($conversationId: ID!) {
|
|
838
|
+
conversationDeleted(conversationId: $conversationId) {
|
|
839
|
+
conversationId
|
|
840
|
+
deletedBy
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
`, H = e`
|
|
844
|
+
subscription ParticipantChanged($conversationId: ID!) {
|
|
845
|
+
participantChanged(conversationId: $conversationId) {
|
|
846
|
+
changeType
|
|
847
|
+
conversation {
|
|
848
|
+
id
|
|
849
|
+
}
|
|
850
|
+
membership {
|
|
851
|
+
id
|
|
852
|
+
conversationId
|
|
853
|
+
userId
|
|
854
|
+
workspaceId
|
|
855
|
+
role
|
|
856
|
+
status
|
|
857
|
+
notificationLevel
|
|
858
|
+
joinedAt
|
|
859
|
+
leftAt
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
`, U = e`
|
|
864
|
+
subscription MessageAdded($conversationId: ID!) {
|
|
865
|
+
messageAdded(conversationId: $conversationId) {
|
|
866
|
+
id
|
|
867
|
+
conversationId
|
|
868
|
+
workspaceId
|
|
869
|
+
type
|
|
870
|
+
status
|
|
871
|
+
content
|
|
872
|
+
authorId
|
|
873
|
+
authorType
|
|
874
|
+
isAnonymous
|
|
875
|
+
parentMessageId
|
|
876
|
+
threadRootId
|
|
877
|
+
threadLevel
|
|
878
|
+
isHidden
|
|
879
|
+
isPinned
|
|
880
|
+
isEdited
|
|
881
|
+
editedAt
|
|
882
|
+
expiresAt
|
|
883
|
+
deletedAt
|
|
884
|
+
createdAt
|
|
885
|
+
updatedAt
|
|
886
|
+
reactions {
|
|
887
|
+
id
|
|
888
|
+
emoji
|
|
889
|
+
userId
|
|
890
|
+
createdAt
|
|
891
|
+
}
|
|
892
|
+
attachments {
|
|
893
|
+
id
|
|
894
|
+
fileId
|
|
895
|
+
fileName
|
|
896
|
+
fileSize
|
|
897
|
+
mimeType
|
|
898
|
+
downloadUrl
|
|
899
|
+
width
|
|
900
|
+
height
|
|
901
|
+
duration
|
|
902
|
+
thumbnail
|
|
903
|
+
}
|
|
904
|
+
mentions {
|
|
905
|
+
id
|
|
906
|
+
mentionedUser
|
|
907
|
+
mentionType
|
|
908
|
+
offset
|
|
909
|
+
length
|
|
910
|
+
}
|
|
911
|
+
replyCount
|
|
912
|
+
readCount
|
|
913
|
+
permissions {
|
|
914
|
+
canEdit
|
|
915
|
+
canDelete
|
|
916
|
+
canReact
|
|
917
|
+
canReply
|
|
918
|
+
canPin
|
|
919
|
+
canHide
|
|
920
|
+
canReport
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
`, W = e`
|
|
925
|
+
subscription MessageUpdated($conversationId: ID!) {
|
|
926
|
+
messageUpdated(conversationId: $conversationId) {
|
|
927
|
+
id
|
|
928
|
+
conversationId
|
|
929
|
+
content
|
|
930
|
+
isEdited
|
|
931
|
+
editedAt
|
|
932
|
+
isPinned
|
|
933
|
+
pinnedBy
|
|
934
|
+
pinnedAt
|
|
935
|
+
status
|
|
936
|
+
updatedAt
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
`, G = e`
|
|
940
|
+
subscription MessageDeleted($conversationId: ID!) {
|
|
941
|
+
messageDeleted(conversationId: $conversationId) {
|
|
942
|
+
conversationId
|
|
943
|
+
messageId
|
|
944
|
+
deletedBy
|
|
945
|
+
hard
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
`;
|
|
949
|
+
e`
|
|
950
|
+
subscription MessageReactionChanged($messageId: ID!) {
|
|
951
|
+
messageReactionChanged(messageId: $messageId) {
|
|
952
|
+
changeType
|
|
953
|
+
message {
|
|
954
|
+
id
|
|
955
|
+
conversationId
|
|
956
|
+
}
|
|
957
|
+
reaction {
|
|
958
|
+
id
|
|
959
|
+
messageId
|
|
960
|
+
emoji
|
|
961
|
+
userId
|
|
962
|
+
createdAt
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
`, e`
|
|
967
|
+
subscription MessageReadReceiptAdded($messageId: ID!) {
|
|
968
|
+
messageReadReceiptAdded(messageId: $messageId) {
|
|
969
|
+
id
|
|
970
|
+
messageId
|
|
971
|
+
userId
|
|
972
|
+
readAt
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
`, e`
|
|
976
|
+
subscription TypingIndicator($conversationId: ID!) {
|
|
977
|
+
typingIndicator(conversationId: $conversationId) {
|
|
978
|
+
conversation {
|
|
979
|
+
id
|
|
980
|
+
}
|
|
981
|
+
userId
|
|
982
|
+
isTyping
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
`, e`
|
|
986
|
+
subscription PresenceChanged($userIds: [ID!]!) {
|
|
987
|
+
presenceChanged(userIds: $userIds) {
|
|
988
|
+
userId
|
|
989
|
+
status
|
|
990
|
+
lastSeenAt
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
`;
|
|
994
|
+
//#endregion
|
|
995
|
+
export { z as ConversationAddedDocument, V as ConversationDeletedDocument, B as ConversationUpdatedDocument, F as GetMessagesDocument, U as MessageAddedDocument, G as MessageDeletedDocument, W as MessageUpdatedDocument, H as ParticipantChangedDocument, m as useAddReactionMutation, o as useArchiveConversationMutation, i as useCreateConversationMutation, f as useDeleteMessageMutation, u as useEditMessageMutation, M as useGetConversationQuery, P as useGetConversationsQuery, I as useGetMessagesQuery, v as useMuteConversationMutation, b as usePinConversationMutation, S as usePinMessageByHookMutation, g as useRemoveReactionMutation, R as useSearchConversationsQuery, c as useSendMessageMutation, w as useUnmuteConversationMutation, E as useUnpinConversationMutation, O as useUnpinMessageByHookMutation, A as useUpdateConversationByHookMutation };
|
|
996
|
+
|
|
997
|
+
//# sourceMappingURL=wspace-operations.js.map
|