@burdenoff/microfe-comradecircle 2026.716.1 → 2026.720.2

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 (57) hide show
  1. package/dist/comradecircle/ComradeCircleRoot.js.map +1 -1
  2. package/dist/comradecircle/ComradeCircleRoutes.js.map +1 -1
  3. package/dist/comradecircle/components/Avatar.js.map +1 -1
  4. package/dist/comradecircle/components/AvatarUploadField.js.map +1 -1
  5. package/dist/comradecircle/components/CircleCard.js.map +1 -1
  6. package/dist/comradecircle/components/CommentThread.js.map +1 -1
  7. package/dist/comradecircle/components/CreateCircleDialog.js.map +1 -1
  8. package/dist/comradecircle/components/CreateEventDialog.js.map +1 -1
  9. package/dist/comradecircle/components/EmptyState.js.map +1 -1
  10. package/dist/comradecircle/components/EventCard.js.map +1 -1
  11. package/dist/comradecircle/components/FileImage.js.map +1 -1
  12. package/dist/comradecircle/components/FilterTabs.js.map +1 -1
  13. package/dist/comradecircle/components/ImageAttachments.js.map +1 -1
  14. package/dist/comradecircle/components/MemberIdentity.js.map +1 -1
  15. package/dist/comradecircle/components/MiniBar.js.map +1 -1
  16. package/dist/comradecircle/components/PageLayout.js.map +1 -1
  17. package/dist/comradecircle/components/Pagination.js.map +1 -1
  18. package/dist/comradecircle/components/PollCard.js.map +1 -1
  19. package/dist/comradecircle/components/PostCard.js.map +1 -1
  20. package/dist/comradecircle/components/PostComposer.js.map +1 -1
  21. package/dist/comradecircle/components/ReactionBar.js.map +1 -1
  22. package/dist/comradecircle/components/StateViews.js.map +1 -1
  23. package/dist/comradecircle/components/StatusBadge.js.map +1 -1
  24. package/dist/comradecircle/components/Tabs.js.map +1 -1
  25. package/dist/comradecircle/components/TagInput.js.map +1 -1
  26. package/dist/comradecircle/context/ComradeCircleContext.js.map +1 -1
  27. package/dist/comradecircle/hooks/useComradeCircleApi.d.ts.map +1 -1
  28. package/dist/comradecircle/hooks/useComradeCircleApi.js +119 -100
  29. package/dist/comradecircle/hooks/useComradeCircleApi.js.map +1 -1
  30. package/dist/comradecircle/hooks/useCursorPager.js.map +1 -1
  31. package/dist/comradecircle/hooks/useFiles.js.map +1 -1
  32. package/dist/comradecircle/lib/graphql-cache.js.map +1 -1
  33. package/dist/comradecircle/lib/toast.js.map +1 -1
  34. package/dist/comradecircle/pages/FeedPage.js.map +1 -1
  35. package/dist/comradecircle/pages/circles/CircleDetailPage.js.map +1 -1
  36. package/dist/comradecircle/pages/circles/CirclesPage.js.map +1 -1
  37. package/dist/comradecircle/pages/events/EventDetailPage.js.map +1 -1
  38. package/dist/comradecircle/pages/events/EventsPage.js.map +1 -1
  39. package/dist/comradecircle/pages/members/MemberProfilePage.js.map +1 -1
  40. package/dist/comradecircle/pages/members/MembersPage.js.map +1 -1
  41. package/dist/comradecircle/pages/profile/MyProfilePage.js.map +1 -1
  42. package/dist/comradecircle/utils/cn.js.map +1 -1
  43. package/dist/comradecircle/utils/formatters.js.map +1 -1
  44. package/dist/comradecircle/utils/navigation.js.map +1 -1
  45. package/dist/comradecircle/utils/pageContext.d.ts +29 -0
  46. package/dist/comradecircle/utils/pageContext.d.ts.map +1 -0
  47. package/dist/comradecircle/utils/pageContext.js +48 -0
  48. package/dist/comradecircle/utils/pageContext.js.map +1 -0
  49. package/dist/comradecircle/utils/slug.js.map +1 -1
  50. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  51. package/dist/node_modules/sonner/dist/index.js.map +1 -1
  52. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -1
  53. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  54. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -1
  55. package/dist/services/createSandboxAssistantTransport.js +6 -4
  56. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  57. package/package.json +2 -2
@@ -72,59 +72,78 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
72
72
  }, l = { limit: 50 }, u = (e) => {
73
73
  let t = e ?? l, n = { limit: t.limit ?? l.limit };
74
74
  return t.offset != null && (n.offset = t.offset), t.cursor != null && (n.cursor = t.cursor), n;
75
- }, d = "\n id workspaceId circleId name slug description type visibility position isArchived\n createdAt updatedAt\n", f = "\n id workspaceId name slug description topic tags status visibility memberCount\n avatar { id } createdAt updatedAt\n", p = "id postId memberId type createdAt", m = "\n id workspaceId postId parentId authorId body isHidden createdAt updatedAt\n", h = `
75
+ }, d = "\n id workspaceId circleId name slug description type visibility position isArchived\n createdAt updatedAt\n", f = "\n id workspaceId name slug description topic tags status visibility memberCount\n avatar { id } createdAt updatedAt\n", p = "id postId memberId type createdAt", m = (e) => `items { ${e} } pageInfo { cursor hasMore }`, h = "\n id workspaceId postId parentId authorId body isHidden createdAt updatedAt\n", g = `
76
76
  id workspaceId channelId authorId body status tags attachmentFileIds isPinned
77
- reactionCount commentCount reactions { ${p} } createdAt updatedAt
78
- `, g = "id workspaceId pollId label position voteCount createdAt", _ = `
77
+ reactionCount commentCount reactions { ${m(p)} } createdAt updatedAt
78
+ `, _ = "id workspaceId pollId label position voteCount createdAt", v = `
79
79
  id workspaceId circleId question allowMultiple isAnonymous status closesAt
80
- options { ${g} } createdAt updatedAt
81
- `, v = "\n id workspaceId eventId memberId status note createdAt updatedAt\n", y = "\n id workspaceId circleId hostId title description mode status location joinUrl\n capacity startsAt endsAt tags rsvpCount createdAt updatedAt\n", b = "\n id workspaceId memberId displayName headline bio avatar { id } interests skills\n presence discoverable createdAt updatedAt\n", x = "\n id workspaceId circleId memberId role status joinedAt createdAt updatedAt\n", S = "\n id workspaceId followerId targetId targetType muted createdAt updatedAt\n", C = (t = {}) => {
80
+ options { ${m(_)} } createdAt updatedAt
81
+ `, y = "\n id workspaceId eventId memberId status note createdAt updatedAt\n", b = "\n id workspaceId circleId hostId title description mode status location joinUrl\n capacity startsAt endsAt tags rsvpCount createdAt updatedAt\n", x = "\n id workspaceId memberId displayName headline bio avatar { id } interests skills\n presence discoverable createdAt updatedAt\n", S = "\n id workspaceId circleId memberId role status joinedAt createdAt updatedAt\n", C = "\n id workspaceId followerId targetId targetType muted createdAt updatedAt\n", w = (e) => e?.items ?? [], T = (e) => ({
82
+ ...e,
83
+ channels: w(e.channels),
84
+ memberships: w(e.memberships)
85
+ }), E = (e) => ({
86
+ ...e,
87
+ reactions: w(e.reactions),
88
+ comments: w(e.comments)
89
+ }), D = (e) => ({
90
+ ...e,
91
+ options: w(e.options)
92
+ }), O = (e) => ({
93
+ ...e,
94
+ rsvps: w(e.rsvps)
95
+ }), k = (e, t) => ({
96
+ items: (e.items ?? []).map(t),
97
+ pageInfo: e.pageInfo ?? { hasMore: !1 }
98
+ }), A = (t = {}) => {
82
99
  let { apiGatewayUrl: n } = e();
83
100
  return r({
84
101
  queryKey: [...c.circles, t],
85
- queryFn: async () => (await s(`query ComListCircles($status: ComCircleStatus, $visibility: ComCircleVisibility, $pagination: PaginationInput) {
102
+ queryFn: async () => k((await s(`query ComListCircles($status: ComCircleStatus, $visibility: ComCircleVisibility, $pagination: PaginationInput) {
86
103
  comListCircles(status: $status, visibility: $visibility, pagination: $pagination) {
87
- items { ${f} channels { id } }
88
- pageInfo { cursor hasMore }
104
+ ${m(`${f} channels { ${m("id")} }`)}
89
105
  }
90
106
  }`, {
91
107
  status: t.status,
92
108
  visibility: t.visibility,
93
109
  pagination: u(t.pagination)
94
- }, n)).comListCircles
110
+ }, n)).comListCircles, T)
95
111
  });
96
- }, w = (t) => {
112
+ }, j = (t) => {
97
113
  let { apiGatewayUrl: n } = e();
98
114
  return r({
99
115
  queryKey: c.circle(t ?? ""),
100
116
  enabled: !!t,
101
- queryFn: async () => (await s(`query ComCircle($id: ID!) {
117
+ queryFn: async () => {
118
+ let e = await s(`query ComCircle($id: ID!) {
102
119
  comCircle(id: $id) {
103
120
  ${f}
104
- channels { ${d} }
105
- memberships { ${x} }
121
+ channels { ${m(d)} }
122
+ memberships { ${m(S)} }
106
123
  }
107
- }`, { id: t }, n)).comCircle
124
+ }`, { id: t }, n);
125
+ return e.comCircle ? T(e.comCircle) : null;
126
+ }
108
127
  });
109
- }, T = () => {
128
+ }, M = () => {
110
129
  let { apiGatewayUrl: t } = e(), r = i();
111
130
  return n({
112
- mutationFn: async (e) => (await s(`mutation ComCreateCircle($input: ComCreateCircleInput!) {
131
+ mutationFn: async (e) => T((await s(`mutation ComCreateCircle($input: ComCreateCircleInput!) {
113
132
  comCreateCircle(input: $input) { ${f} }
114
- }`, { input: e }, t)).comCreateCircle,
133
+ }`, { input: e }, t)).comCreateCircle),
115
134
  onSuccess: () => r.invalidateQueries({ queryKey: c.circles })
116
135
  });
117
- }, E = () => {
136
+ }, N = () => {
118
137
  let { apiGatewayUrl: t } = e(), r = i();
119
138
  return n({
120
139
  mutationFn: async (e) => (await s(`mutation ComJoinCircle($circleId: ID!) {
121
- comJoinCircle(circleId: $circleId) { ${x} }
140
+ comJoinCircle(circleId: $circleId) { ${S} }
122
141
  }`, { circleId: e }, t)).comJoinCircle,
123
142
  onSuccess: (e) => {
124
143
  r.invalidateQueries({ queryKey: c.circles }), r.invalidateQueries({ queryKey: c.circle(e.circleId) }), r.invalidateQueries({ queryKey: c.memberships });
125
144
  }
126
145
  });
127
- }, D = () => {
146
+ }, P = () => {
128
147
  let { apiGatewayUrl: t } = e(), r = i();
129
148
  return n({
130
149
  mutationFn: async (e) => (await s("mutation ComLeaveCircle($circleId: ID!) { comLeaveCircle(circleId: $circleId) }", { circleId: e }, t)).comLeaveCircle,
@@ -132,11 +151,11 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
132
151
  r.invalidateQueries({ queryKey: c.circles }), r.invalidateQueries({ queryKey: c.circle(t) }), r.invalidateQueries({ queryKey: c.memberships });
133
152
  }
134
153
  });
135
- }, O = () => {
154
+ }, F = () => {
136
155
  let { apiGatewayUrl: t } = e(), r = i();
137
156
  return n({
138
157
  mutationFn: async (e) => (await s(`mutation ComSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
139
- comSetMemberRole(membershipId: $membershipId, role: $role) { ${x} }
158
+ comSetMemberRole(membershipId: $membershipId, role: $role) { ${S} }
140
159
  }`, {
141
160
  membershipId: e.membershipId,
142
161
  role: e.role
@@ -145,13 +164,13 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
145
164
  r.invalidateQueries({ queryKey: c.circle(e.circleId) }), r.invalidateQueries({ queryKey: c.memberships });
146
165
  }
147
166
  });
148
- }, k = (t = {}) => {
167
+ }, I = (t = {}) => {
149
168
  let { apiGatewayUrl: n } = e();
150
169
  return r({
151
170
  queryKey: [...c.memberships, t],
152
171
  queryFn: async () => (await s(`query ComListMemberships($circleId: ID, $status: ComMembershipStatus, $pagination: PaginationInput) {
153
172
  comListMemberships(circleId: $circleId, status: $status, pagination: $pagination) {
154
- items { ${x} }
173
+ items { ${S} }
155
174
  pageInfo { cursor hasMore }
156
175
  }
157
176
  }`, {
@@ -160,7 +179,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
160
179
  pagination: u(t.pagination)
161
180
  }, n)).comListMemberships
162
181
  });
163
- }, A = () => {
182
+ }, L = () => {
164
183
  let { apiGatewayUrl: t } = e(), r = i();
165
184
  return n({
166
185
  mutationFn: async (e) => (await s(`mutation ComCreateChannel($input: ComCreateChannelInput!) {
@@ -170,7 +189,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
170
189
  r.invalidateQueries({ queryKey: c.channels(e.circleId) }), r.invalidateQueries({ queryKey: c.circle(e.circleId) });
171
190
  }
172
191
  });
173
- }, j = (t = {}) => {
192
+ }, R = (t = {}) => {
174
193
  let { apiGatewayUrl: n } = e();
175
194
  return r({
176
195
  queryKey: [
@@ -179,49 +198,47 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
179
198
  t.pagination
180
199
  ],
181
200
  enabled: !!t.channelId,
182
- queryFn: async () => (await s(`query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
201
+ queryFn: async () => k((await s(`query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
183
202
  comListPosts(channelId: $channelId, status: $status, pagination: $pagination) {
184
- items { ${h} }
185
- pageInfo { cursor hasMore }
203
+ ${m(g)}
186
204
  }
187
205
  }`, {
188
206
  channelId: t.channelId,
189
207
  status: t.status,
190
208
  pagination: u(t.pagination)
191
- }, n)).comListPosts
209
+ }, n)).comListPosts, E)
192
210
  });
193
- }, M = (t) => {
211
+ }, z = (t) => {
194
212
  let { apiGatewayUrl: n } = e();
195
213
  return r({
196
214
  queryKey: [...c.feed, t],
197
- queryFn: async () => (await s(`query ComMyFeed($pagination: PaginationInput) {
215
+ queryFn: async () => k((await s(`query ComMyFeed($pagination: PaginationInput) {
198
216
  comMyFeed(pagination: $pagination) {
199
- items { ${h} }
200
- pageInfo { cursor hasMore }
217
+ ${m(g)}
201
218
  }
202
- }`, { pagination: u(t) }, n)).comMyFeed
219
+ }`, { pagination: u(t) }, n)).comMyFeed, E)
203
220
  });
204
- }, N = () => {
221
+ }, B = () => {
205
222
  let { apiGatewayUrl: t } = e(), r = i();
206
223
  return n({
207
- mutationFn: async (e) => (await s(`mutation ComCreatePost($input: ComCreatePostInput!) {
208
- comCreatePost(input: $input) { ${h} }
209
- }`, { input: e }, t)).comCreatePost,
224
+ mutationFn: async (e) => E((await s(`mutation ComCreatePost($input: ComCreatePostInput!) {
225
+ comCreatePost(input: $input) { ${g} }
226
+ }`, { input: e }, t)).comCreatePost),
210
227
  onSuccess: (e) => {
211
228
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.feed });
212
229
  }
213
230
  });
214
- }, P = () => {
231
+ }, V = () => {
215
232
  let { apiGatewayUrl: t } = e(), r = i();
216
233
  return n({
217
- mutationFn: async (e) => (await s(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
218
- comUpdatePost(id: $id, input: $input) { ${h} }
219
- }`, e, t)).comUpdatePost,
234
+ mutationFn: async (e) => E((await s(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
235
+ comUpdatePost(id: $id, input: $input) { ${g} }
236
+ }`, e, t)).comUpdatePost),
220
237
  onSuccess: (e) => {
221
238
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
222
239
  }
223
240
  });
224
- }, F = () => {
241
+ }, H = () => {
225
242
  let { apiGatewayUrl: t } = e(), r = i();
226
243
  return n({
227
244
  mutationFn: async (e) => (await s("mutation ComRemovePost($id: ID!) { comRemovePost(id: $id) }", { id: e.id }, t)).comRemovePost,
@@ -229,54 +246,54 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
229
246
  t.channelId && r.invalidateQueries({ queryKey: c.posts(t.channelId) }), r.invalidateQueries({ queryKey: c.feed });
230
247
  }
231
248
  });
232
- }, I = () => {
249
+ }, U = () => {
233
250
  let { apiGatewayUrl: t } = e(), r = i();
234
251
  return n({
235
- mutationFn: async (e) => (await s(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
236
- comReactToPost(postId: $postId, type: $type) { ${h} }
237
- }`, e, t)).comReactToPost,
252
+ mutationFn: async (e) => E((await s(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
253
+ comReactToPost(postId: $postId, type: $type) { ${g} }
254
+ }`, e, t)).comReactToPost),
238
255
  onSuccess: (e) => {
239
256
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
240
257
  }
241
258
  });
242
- }, L = (t) => {
259
+ }, ee = (t) => {
243
260
  let { apiGatewayUrl: n } = e();
244
261
  return r({
245
262
  queryKey: c.comments(t ?? ""),
246
263
  enabled: !!t,
247
- queryFn: async () => (await s(`query ComListComments($postId: ID!) {
248
- comListComments(postId: $postId) { ${m} }
249
- }`, { postId: t }, n)).comListComments
264
+ queryFn: async () => w((await s(`query ComListComments($postId: ID!) {
265
+ comListComments(postId: $postId) { ${m(h)} }
266
+ }`, { postId: t }, n)).comListComments)
250
267
  });
251
- }, R = () => {
268
+ }, W = () => {
252
269
  let { apiGatewayUrl: t } = e(), r = i();
253
270
  return n({
254
271
  mutationFn: async (e) => (await s(`mutation ComAddComment($input: ComCreateCommentInput!) {
255
- comAddComment(input: $input) { ${m} }
272
+ comAddComment(input: $input) { ${h} }
256
273
  }`, { input: e }, t)).comAddComment,
257
274
  onSuccess: (e) => {
258
275
  r.invalidateQueries({ queryKey: c.comments(e.postId) }), r.invalidateQueries({ queryKey: c.post(e.postId) }), r.invalidateQueries({ queryKey: c.feed });
259
276
  }
260
277
  });
261
- }, z = (t) => {
278
+ }, G = (t) => {
262
279
  let { apiGatewayUrl: n } = e();
263
280
  return r({
264
281
  queryKey: [...c.follows, t ?? "all"],
265
- queryFn: async () => (await s(`query ComMyFollows($targetType: ComFollowTargetType) {
266
- comMyFollows(targetType: $targetType) { ${S} }
267
- }`, { targetType: t }, n)).comMyFollows
282
+ queryFn: async () => w((await s(`query ComMyFollows($targetType: ComFollowTargetType) {
283
+ comMyFollows(targetType: $targetType) { ${m(C)} }
284
+ }`, { targetType: t }, n)).comMyFollows)
268
285
  });
269
- }, B = () => {
286
+ }, K = () => {
270
287
  let { apiGatewayUrl: t } = e(), r = i();
271
288
  return n({
272
289
  mutationFn: async (e) => (await s(`mutation ComFollow($input: ComFollowInput!) {
273
- comFollow(input: $input) { ${S} }
290
+ comFollow(input: $input) { ${C} }
274
291
  }`, { input: e }, t)).comFollow,
275
292
  onSuccess: () => {
276
293
  r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
277
294
  }
278
295
  });
279
- }, V = () => {
296
+ }, q = () => {
280
297
  let { apiGatewayUrl: t } = e(), r = i();
281
298
  return n({
282
299
  mutationFn: async (e) => (await s("mutation ComUnfollow($input: ComFollowInput!) { comUnfollow(input: $input) }", { input: e }, t)).comUnfollow,
@@ -284,92 +301,94 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
284
301
  r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
285
302
  }
286
303
  });
287
- }, H = (t = {}) => {
304
+ }, J = (t = {}) => {
288
305
  let { apiGatewayUrl: n } = e();
289
306
  return r({
290
307
  queryKey: [...c.events, t],
291
- queryFn: async () => (await s(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
308
+ queryFn: async () => k((await s(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
292
309
  comListEvents(circleId: $circleId, status: $status, pagination: $pagination) {
293
- items { ${y} }
294
- pageInfo { cursor hasMore }
310
+ ${m(b)}
295
311
  }
296
312
  }`, {
297
313
  circleId: t.circleId,
298
314
  status: t.status,
299
315
  pagination: u(t.pagination)
300
- }, n)).comListEvents
316
+ }, n)).comListEvents, O)
301
317
  });
302
- }, U = (t) => {
318
+ }, Y = (t) => {
303
319
  let { apiGatewayUrl: n } = e();
304
320
  return r({
305
321
  queryKey: c.event(t ?? ""),
306
322
  enabled: !!t,
307
- queryFn: async () => (await s(`query ComEvent($id: ID!) {
323
+ queryFn: async () => {
324
+ let e = await s(`query ComEvent($id: ID!) {
308
325
  comEvent(id: $id) {
309
- ${y}
310
- rsvps { ${v} }
326
+ ${b}
327
+ rsvps { ${m(y)} }
311
328
  }
312
- }`, { id: t }, n)).comEvent
329
+ }`, { id: t }, n);
330
+ return e.comEvent ? O(e.comEvent) : null;
331
+ }
313
332
  });
314
- }, W = () => {
333
+ }, X = () => {
315
334
  let { apiGatewayUrl: t } = e(), r = i();
316
335
  return n({
317
- mutationFn: async (e) => (await s(`mutation ComCreateEvent($input: ComCreateEventInput!) {
318
- comCreateEvent(input: $input) { ${y} }
319
- }`, { input: e }, t)).comCreateEvent,
336
+ mutationFn: async (e) => O((await s(`mutation ComCreateEvent($input: ComCreateEventInput!) {
337
+ comCreateEvent(input: $input) { ${b} }
338
+ }`, { input: e }, t)).comCreateEvent),
320
339
  onSuccess: () => r.invalidateQueries({ queryKey: c.events })
321
340
  });
322
- }, G = () => {
341
+ }, Z = () => {
323
342
  let { apiGatewayUrl: t } = e(), r = i();
324
343
  return n({
325
- mutationFn: async (e) => (await s(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
326
- comTransitionEvent(id: $id, status: $status) { ${y} }
327
- }`, e, t)).comTransitionEvent,
344
+ mutationFn: async (e) => O((await s(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
345
+ comTransitionEvent(id: $id, status: $status) { ${b} }
346
+ }`, e, t)).comTransitionEvent),
328
347
  onSuccess: (e) => {
329
348
  r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.id) });
330
349
  }
331
350
  });
332
- }, K = () => {
351
+ }, Q = () => {
333
352
  let { apiGatewayUrl: t } = e(), r = i();
334
353
  return n({
335
354
  mutationFn: async (e) => (await s(`mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
336
- comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${v} }
355
+ comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${y} }
337
356
  }`, e, t)).comRsvpEvent,
338
357
  onSuccess: (e) => {
339
358
  r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.eventId) });
340
359
  }
341
360
  });
342
- }, q = (t, n) => {
361
+ }, $ = (t, n) => {
343
362
  let { apiGatewayUrl: i } = e();
344
363
  return r({
345
364
  queryKey: [...c.polls(t ?? ""), n ?? "all"],
346
365
  enabled: !!t,
347
- queryFn: async () => (await s(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
348
- comListPolls(circleId: $circleId, status: $status) { ${_} }
366
+ queryFn: async () => w((await s(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
367
+ comListPolls(circleId: $circleId, status: $status) { ${m(v)} }
349
368
  }`, {
350
369
  circleId: t,
351
370
  status: n
352
- }, i)).comListPolls
371
+ }, i)).comListPolls).map(D)
353
372
  });
354
- }, J = () => {
373
+ }, te = () => {
355
374
  let { apiGatewayUrl: t } = e(), r = i();
356
375
  return n({
357
- mutationFn: async (e) => (await s(`mutation ComCreatePoll($input: ComCreatePollInput!) {
358
- comCreatePoll(input: $input) { ${_} }
359
- }`, { input: e }, t)).comCreatePoll,
376
+ mutationFn: async (e) => D((await s(`mutation ComCreatePoll($input: ComCreatePollInput!) {
377
+ comCreatePoll(input: $input) { ${v} }
378
+ }`, { input: e }, t)).comCreatePoll),
360
379
  onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
361
380
  });
362
- }, Y = () => {
381
+ }, ne = () => {
363
382
  let { apiGatewayUrl: t } = e(), r = i();
364
383
  return n({
365
- mutationFn: async (e) => (await s(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${_} } }`, { id: e }, t)).comClosePoll,
384
+ mutationFn: async (e) => D((await s(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${v} } }`, { id: e }, t)).comClosePoll),
366
385
  onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
367
386
  });
368
- }, X = () => {
387
+ }, re = () => {
369
388
  let { apiGatewayUrl: t } = e(), r = i();
370
389
  return n({
371
390
  mutationFn: async (e) => (await s(`mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
372
- comVotePoll(pollId: $pollId, optionId: $optionId) { ${g} }
391
+ comVotePoll(pollId: $pollId, optionId: $optionId) { ${_} }
373
392
  }`, {
374
393
  pollId: e.pollId,
375
394
  optionId: e.optionId
@@ -378,13 +397,13 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
378
397
  t.circleId && r.invalidateQueries({ queryKey: c.polls(t.circleId) }), r.invalidateQueries({ queryKey: c.poll(t.pollId) });
379
398
  }
380
399
  });
381
- }, Z = (t = {}) => {
400
+ }, ie = (t = {}) => {
382
401
  let { apiGatewayUrl: n } = e();
383
402
  return r({
384
403
  queryKey: [...c.profiles, t],
385
404
  queryFn: async () => (await s(`query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
386
405
  comListProfiles(discoverable: $discoverable, pagination: $pagination) {
387
- items { ${b} }
406
+ items { ${x} }
388
407
  pageInfo { cursor hasMore }
389
408
  }
390
409
  }`, {
@@ -392,21 +411,21 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
392
411
  pagination: u(t.pagination)
393
412
  }, n)).comListProfiles
394
413
  });
395
- }, Q = (t) => {
414
+ }, ae = (t) => {
396
415
  let { apiGatewayUrl: n } = e();
397
416
  return r({
398
417
  queryKey: c.profile(t ?? ""),
399
418
  enabled: !!t,
400
419
  staleTime: 600 * 1e3,
401
420
  queryFn: async () => (await s(`query ComProfile($memberId: ID!) {
402
- comProfile(memberId: $memberId) { ${b} }
421
+ comProfile(memberId: $memberId) { ${x} }
403
422
  }`, { memberId: t }, n)).comProfile
404
423
  });
405
- }, $ = () => {
424
+ }, oe = () => {
406
425
  let { apiGatewayUrl: t } = e(), r = i();
407
426
  return n({
408
427
  mutationFn: async (e) => (await s(`mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
409
- comUpsertProfile(input: $input) { ${b} }
428
+ comUpsertProfile(input: $input) { ${x} }
410
429
  }`, { input: e }, t)).comUpsertProfile,
411
430
  onSuccess: (e) => {
412
431
  r.invalidateQueries({ queryKey: c.profiles }), r.invalidateQueries({ queryKey: c.profile(e.memberId) });
@@ -414,6 +433,6 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
414
433
  });
415
434
  };
416
435
  //#endregion
417
- export { R as useComAddComment, w as useComCircle, C as useComCircles, Y as useComClosePoll, L as useComComments, A as useComCreateChannel, T as useComCreateCircle, W as useComCreateEvent, J as useComCreatePoll, N as useComCreatePost, U as useComEvent, H as useComEvents, B as useComFollow, E as useComJoinCircle, D as useComLeaveCircle, k as useComMemberships, M as useComMyFeed, z as useComMyFollows, q as useComPolls, j as useComPosts, Q as useComProfile, Z as useComProfiles, I as useComReactToPost, F as useComRemovePost, K as useComRsvpEvent, O as useComSetMemberRole, G as useComTransitionEvent, V as useComUnfollow, P as useComUpdatePost, $ as useComUpsertProfile, X as useComVotePoll };
436
+ export { W as useComAddComment, j as useComCircle, A as useComCircles, ne as useComClosePoll, ee as useComComments, L as useComCreateChannel, M as useComCreateCircle, X as useComCreateEvent, te as useComCreatePoll, B as useComCreatePost, Y as useComEvent, J as useComEvents, K as useComFollow, N as useComJoinCircle, P as useComLeaveCircle, I as useComMemberships, z as useComMyFeed, G as useComMyFollows, $ as useComPolls, R as useComPosts, ae as useComProfile, ie as useComProfiles, U as useComReactToPost, H as useComRemovePost, Q as useComRsvpEvent, F as useComSetMemberRole, Z as useComTransitionEvent, q as useComUnfollow, V as useComUpdatePost, oe as useComUpsertProfile, re as useComVotePoll };
418
437
 
419
438
  //# sourceMappingURL=useComradeCircleApi.js.map