@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.
Files changed (155) hide show
  1. package/README.md +12 -0
  2. package/dist/__tests__/setup.d.ts +2 -0
  3. package/dist/__tests__/setup.d.ts.map +1 -0
  4. package/dist/conversations/ConversationsAdminRoot.d.ts +19 -0
  5. package/dist/conversations/ConversationsAdminRoot.d.ts.map +1 -0
  6. package/dist/conversations/ConversationsAdminRoot.js +104 -0
  7. package/dist/conversations/ConversationsAdminRoot.js.map +1 -0
  8. package/dist/conversations/ConversationsAdminRoutes.d.ts +18 -0
  9. package/dist/conversations/ConversationsAdminRoutes.d.ts.map +1 -0
  10. package/dist/conversations/ConversationsAdminRoutes.js +42 -0
  11. package/dist/conversations/ConversationsAdminRoutes.js.map +1 -0
  12. package/dist/conversations/ConversationsRoot.d.ts +33 -0
  13. package/dist/conversations/ConversationsRoot.d.ts.map +1 -0
  14. package/dist/conversations/ConversationsRoot.js +100 -0
  15. package/dist/conversations/ConversationsRoot.js.map +1 -0
  16. package/dist/conversations/ConversationsUserRoot.d.ts +17 -0
  17. package/dist/conversations/ConversationsUserRoot.d.ts.map +1 -0
  18. package/dist/conversations/ConversationsUserRoot.js +101 -0
  19. package/dist/conversations/ConversationsUserRoot.js.map +1 -0
  20. package/dist/conversations/ConversationsUserRoutes.d.ts +12 -0
  21. package/dist/conversations/ConversationsUserRoutes.d.ts.map +1 -0
  22. package/dist/conversations/ConversationsUserRoutes.js +45 -0
  23. package/dist/conversations/ConversationsUserRoutes.js.map +1 -0
  24. package/dist/conversations/components/ConversationCard.d.ts +14 -0
  25. package/dist/conversations/components/ConversationCard.d.ts.map +1 -0
  26. package/dist/conversations/components/ConversationCard.js +118 -0
  27. package/dist/conversations/components/ConversationCard.js.map +1 -0
  28. package/dist/conversations/components/LazyPageBoundary.d.ts +25 -0
  29. package/dist/conversations/components/LazyPageBoundary.d.ts.map +1 -0
  30. package/dist/conversations/components/LazyPageBoundary.js +144 -0
  31. package/dist/conversations/components/LazyPageBoundary.js.map +1 -0
  32. package/dist/conversations/components/MessageBubble.d.ts +21 -0
  33. package/dist/conversations/components/MessageBubble.d.ts.map +1 -0
  34. package/dist/conversations/components/MessageBubble.js +242 -0
  35. package/dist/conversations/components/MessageBubble.js.map +1 -0
  36. package/dist/conversations/components/PageLayout.d.ts +55 -0
  37. package/dist/conversations/components/PageLayout.d.ts.map +1 -0
  38. package/dist/conversations/components/PageLayout.js +93 -0
  39. package/dist/conversations/components/PageLayout.js.map +1 -0
  40. package/dist/conversations/components/PermissionGuard.d.ts +21 -0
  41. package/dist/conversations/components/PermissionGuard.d.ts.map +1 -0
  42. package/dist/conversations/components/PermissionGuard.js +25 -0
  43. package/dist/conversations/components/PermissionGuard.js.map +1 -0
  44. package/dist/conversations/constants/featureFlags.d.ts +8 -0
  45. package/dist/conversations/constants/featureFlags.d.ts.map +1 -0
  46. package/dist/conversations/constants/featureFlags.js +12 -0
  47. package/dist/conversations/constants/featureFlags.js.map +1 -0
  48. package/dist/conversations/constants/permissions.d.ts +174 -0
  49. package/dist/conversations/constants/permissions.d.ts.map +1 -0
  50. package/dist/conversations/constants/permissions.js +68 -0
  51. package/dist/conversations/constants/permissions.js.map +1 -0
  52. package/dist/conversations/hooks/useAdminFeatureFlags.d.ts +8 -0
  53. package/dist/conversations/hooks/useAdminFeatureFlags.d.ts.map +1 -0
  54. package/dist/conversations/hooks/useAdminFeatureFlags.js +16 -0
  55. package/dist/conversations/hooks/useAdminFeatureFlags.js.map +1 -0
  56. package/dist/conversations/hooks/useConversationQueries.d.ts +83 -0
  57. package/dist/conversations/hooks/useConversationQueries.d.ts.map +1 -0
  58. package/dist/conversations/hooks/useConversationQueries.js +136 -0
  59. package/dist/conversations/hooks/useConversationQueries.js.map +1 -0
  60. package/dist/conversations/hooks/useExportConversation.d.ts +10 -0
  61. package/dist/conversations/hooks/useExportConversation.d.ts.map +1 -0
  62. package/dist/conversations/hooks/useExportConversation.js +41 -0
  63. package/dist/conversations/hooks/useExportConversation.js.map +1 -0
  64. package/dist/conversations/hooks/useMessageQueries.d.ts +84 -0
  65. package/dist/conversations/hooks/useMessageQueries.d.ts.map +1 -0
  66. package/dist/conversations/hooks/useMessageQueries.js +123 -0
  67. package/dist/conversations/hooks/useMessageQueries.js.map +1 -0
  68. package/dist/conversations/hooks/useMessageSubscriptions.d.ts +24 -0
  69. package/dist/conversations/hooks/useMessageSubscriptions.d.ts.map +1 -0
  70. package/dist/conversations/hooks/useMessageSubscriptions.js +90 -0
  71. package/dist/conversations/hooks/useMessageSubscriptions.js.map +1 -0
  72. package/dist/conversations/hooks/useUserFeatureFlags.d.ts +5 -0
  73. package/dist/conversations/hooks/useUserFeatureFlags.d.ts.map +1 -0
  74. package/dist/conversations/hooks/useUserFeatureFlags.js +10 -0
  75. package/dist/conversations/hooks/useUserFeatureFlags.js.map +1 -0
  76. package/dist/conversations/index.d.ts +31 -0
  77. package/dist/conversations/index.d.ts.map +1 -0
  78. package/dist/conversations/index.js +5 -0
  79. package/dist/conversations/pages/AdminConversationsLandingPage.d.ts +9 -0
  80. package/dist/conversations/pages/AdminConversationsLandingPage.d.ts.map +1 -0
  81. package/dist/conversations/pages/AdminConversationsLandingPage.js +117 -0
  82. package/dist/conversations/pages/AdminConversationsLandingPage.js.map +1 -0
  83. package/dist/conversations/pages/ConversationAdminPages.d.ts +5 -0
  84. package/dist/conversations/pages/ConversationAdminPages.d.ts.map +1 -0
  85. package/dist/conversations/pages/ConversationAdminPages.js +573 -0
  86. package/dist/conversations/pages/ConversationAdminPages.js.map +1 -0
  87. package/dist/conversations/pages/ConversationDetailPage.d.ts +2 -0
  88. package/dist/conversations/pages/ConversationDetailPage.d.ts.map +1 -0
  89. package/dist/conversations/pages/ConversationDetailPage.js +439 -0
  90. package/dist/conversations/pages/ConversationDetailPage.js.map +1 -0
  91. package/dist/conversations/pages/ConversationListPage.d.ts +6 -0
  92. package/dist/conversations/pages/ConversationListPage.d.ts.map +1 -0
  93. package/dist/conversations/pages/ConversationListPage.js +269 -0
  94. package/dist/conversations/pages/ConversationListPage.js.map +1 -0
  95. package/dist/conversations/pages/ConversationsLandingPage.d.ts +9 -0
  96. package/dist/conversations/pages/ConversationsLandingPage.d.ts.map +1 -0
  97. package/dist/conversations/pages/ConversationsLandingPage.js +124 -0
  98. package/dist/conversations/pages/ConversationsLandingPage.js.map +1 -0
  99. package/dist/conversations/pages/ConversationsSettingsPage.d.ts +2 -0
  100. package/dist/conversations/pages/ConversationsSettingsPage.d.ts.map +1 -0
  101. package/dist/conversations/pages/ConversationsSettingsPage.js +215 -0
  102. package/dist/conversations/pages/ConversationsSettingsPage.js.map +1 -0
  103. package/dist/conversations/pages/NewConversationPage.d.ts +2 -0
  104. package/dist/conversations/pages/NewConversationPage.d.ts.map +1 -0
  105. package/dist/conversations/pages/NewConversationPage.js +287 -0
  106. package/dist/conversations/pages/NewConversationPage.js.map +1 -0
  107. package/dist/conversations/providers/ConversationsProvider.d.ts +13 -0
  108. package/dist/conversations/providers/ConversationsProvider.d.ts.map +1 -0
  109. package/dist/conversations/providers/ConversationsProvider.js +109 -0
  110. package/dist/conversations/providers/ConversationsProvider.js.map +1 -0
  111. package/dist/conversations/store/conversationsStore.d.ts +29 -0
  112. package/dist/conversations/store/conversationsStore.d.ts.map +1 -0
  113. package/dist/conversations/store/conversationsStore.js +56 -0
  114. package/dist/conversations/store/conversationsStore.js.map +1 -0
  115. package/dist/conversations/types/index.d.ts +352 -0
  116. package/dist/conversations/types/index.d.ts.map +1 -0
  117. package/dist/conversations/utils/cn.d.ts +8 -0
  118. package/dist/conversations/utils/cn.d.ts.map +1 -0
  119. package/dist/conversations/utils/cn.js +10 -0
  120. package/dist/conversations/utils/cn.js.map +1 -0
  121. package/dist/conversations/utils/i18n.d.ts +15 -0
  122. package/dist/conversations/utils/i18n.d.ts.map +1 -0
  123. package/dist/conversations/utils/i18n.js +14 -0
  124. package/dist/conversations/utils/i18n.js.map +1 -0
  125. package/dist/conversations/utils/mappers.d.ts +32 -0
  126. package/dist/conversations/utils/mappers.d.ts.map +1 -0
  127. package/dist/conversations/utils/mappers.js +164 -0
  128. package/dist/conversations/utils/mappers.js.map +1 -0
  129. package/dist/conversations/utils/navigation.d.ts +18 -0
  130. package/dist/conversations/utils/navigation.d.ts.map +1 -0
  131. package/dist/conversations/utils/navigation.js +8 -0
  132. package/dist/conversations/utils/navigation.js.map +1 -0
  133. package/dist/dev/main.d.ts +2 -0
  134. package/dist/dev/main.d.ts.map +1 -0
  135. package/dist/generated/global-operations.d.ts +2 -0
  136. package/dist/generated/global-operations.d.ts.map +1 -0
  137. package/dist/generated/global-types.d.ts +20716 -0
  138. package/dist/generated/global-types.d.ts.map +1 -0
  139. package/dist/generated/wspace-operations.d.ts +2008 -0
  140. package/dist/generated/wspace-operations.d.ts.map +1 -0
  141. package/dist/generated/wspace-operations.js +997 -0
  142. package/dist/generated/wspace-operations.js.map +1 -0
  143. package/dist/generated/wspace-types.d.ts +53363 -0
  144. package/dist/generated/wspace-types.d.ts.map +1 -0
  145. package/dist/index.d.ts +6 -0
  146. package/dist/index.d.ts.map +1 -0
  147. package/dist/index.js +7 -0
  148. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  149. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  150. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  151. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  152. package/dist/utils/nativeBridge.d.ts +3 -0
  153. package/dist/utils/nativeBridge.d.ts.map +1 -0
  154. package/dist/utils/nativeBridge.js +2 -0
  155. 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