@burdenoff/microfe-comradecircle 2026.720.1 → 2026.720.3

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 (47) hide show
  1. package/dist/comradecircle/ComradeCircleRoutes.d.ts.map +1 -1
  2. package/dist/comradecircle/ComradeCircleRoutes.js +39 -34
  3. package/dist/comradecircle/ComradeCircleRoutes.js.map +1 -1
  4. package/dist/comradecircle/components/CommentThread.js +1 -1
  5. package/dist/comradecircle/components/MemberIdentity.js +1 -1
  6. package/dist/comradecircle/components/MobileBottomNav.d.ts +4 -0
  7. package/dist/comradecircle/components/MobileBottomNav.d.ts.map +1 -0
  8. package/dist/comradecircle/components/MobileBottomNav.js +65 -0
  9. package/dist/comradecircle/components/MobileBottomNav.js.map +1 -0
  10. package/dist/comradecircle/components/PostCard.d.ts +3 -1
  11. package/dist/comradecircle/components/PostCard.d.ts.map +1 -1
  12. package/dist/comradecircle/components/PostCard.js +86 -73
  13. package/dist/comradecircle/components/PostCard.js.map +1 -1
  14. package/dist/comradecircle/components/PostComposer.d.ts +7 -1
  15. package/dist/comradecircle/components/PostComposer.d.ts.map +1 -1
  16. package/dist/comradecircle/components/PostComposer.js +53 -49
  17. package/dist/comradecircle/components/PostComposer.js.map +1 -1
  18. package/dist/comradecircle/components/ReactionBar.js +1 -1
  19. package/dist/comradecircle/components/index.d.ts +1 -0
  20. package/dist/comradecircle/components/index.d.ts.map +1 -1
  21. package/dist/comradecircle/hooks/useComradeCircleApi.d.ts.map +1 -1
  22. package/dist/comradecircle/hooks/useComradeCircleApi.js +134 -100
  23. package/dist/comradecircle/hooks/useComradeCircleApi.js.map +1 -1
  24. package/dist/comradecircle/index.js +1 -1
  25. package/dist/comradecircle/pages/FeedPage.js +1 -1
  26. package/dist/comradecircle/pages/circles/CircleDetailPage.js +242 -219
  27. package/dist/comradecircle/pages/circles/CircleDetailPage.js.map +1 -1
  28. package/dist/comradecircle/pages/circles/CirclesPage.d.ts.map +1 -1
  29. package/dist/comradecircle/pages/circles/CirclesPage.js +72 -39
  30. package/dist/comradecircle/pages/circles/CirclesPage.js.map +1 -1
  31. package/dist/comradecircle/pages/events/EventDetailPage.js +1 -1
  32. package/dist/comradecircle/pages/events/EventsPage.js +1 -1
  33. package/dist/comradecircle/pages/members/MemberProfilePage.js +1 -1
  34. package/dist/comradecircle/pages/members/MembersPage.js +1 -1
  35. package/dist/comradecircle/pages/posts/PostThreadPage.d.ts +14 -0
  36. package/dist/comradecircle/pages/posts/PostThreadPage.d.ts.map +1 -0
  37. package/dist/comradecircle/pages/posts/PostThreadPage.js +48 -0
  38. package/dist/comradecircle/pages/posts/PostThreadPage.js.map +1 -0
  39. package/dist/comradecircle/pages/profile/MyProfilePage.js +1 -1
  40. package/dist/comradecircle/utils/pageContext.d.ts +29 -0
  41. package/dist/comradecircle/utils/pageContext.d.ts.map +1 -0
  42. package/dist/comradecircle/utils/pageContext.js +48 -0
  43. package/dist/comradecircle/utils/pageContext.js.map +1 -0
  44. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -1
  45. package/dist/services/createSandboxAssistantTransport.js +6 -4
  46. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  47. package/package.json +1 -1
@@ -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,62 @@ 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) => {
212
+ let { apiGatewayUrl: n } = e();
213
+ return r({
214
+ queryKey: c.post(t ?? ""),
215
+ enabled: !!t,
216
+ queryFn: async () => {
217
+ let e = await s(`query ComPost($id: ID!) {
218
+ comPost(id: $id) {
219
+ ${g}
220
+ comments { ${m(h)} }
221
+ }
222
+ }`, { id: t }, n);
223
+ return e.comPost ? E(e.comPost) : null;
224
+ }
225
+ });
226
+ }, B = (t) => {
194
227
  let { apiGatewayUrl: n } = e();
195
228
  return r({
196
229
  queryKey: [...c.feed, t],
197
- queryFn: async () => (await s(`query ComMyFeed($pagination: PaginationInput) {
230
+ queryFn: async () => k((await s(`query ComMyFeed($pagination: PaginationInput) {
198
231
  comMyFeed(pagination: $pagination) {
199
- items { ${h} }
200
- pageInfo { cursor hasMore }
232
+ ${m(g)}
201
233
  }
202
- }`, { pagination: u(t) }, n)).comMyFeed
234
+ }`, { pagination: u(t) }, n)).comMyFeed, E)
203
235
  });
204
- }, N = () => {
236
+ }, V = () => {
205
237
  let { apiGatewayUrl: t } = e(), r = i();
206
238
  return n({
207
- mutationFn: async (e) => (await s(`mutation ComCreatePost($input: ComCreatePostInput!) {
208
- comCreatePost(input: $input) { ${h} }
209
- }`, { input: e }, t)).comCreatePost,
239
+ mutationFn: async (e) => E((await s(`mutation ComCreatePost($input: ComCreatePostInput!) {
240
+ comCreatePost(input: $input) { ${g} }
241
+ }`, { input: e }, t)).comCreatePost),
210
242
  onSuccess: (e) => {
211
243
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.feed });
212
244
  }
213
245
  });
214
- }, P = () => {
246
+ }, H = () => {
215
247
  let { apiGatewayUrl: t } = e(), r = i();
216
248
  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,
249
+ mutationFn: async (e) => E((await s(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
250
+ comUpdatePost(id: $id, input: $input) { ${g} }
251
+ }`, e, t)).comUpdatePost),
220
252
  onSuccess: (e) => {
221
253
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
222
254
  }
223
255
  });
224
- }, F = () => {
256
+ }, U = () => {
225
257
  let { apiGatewayUrl: t } = e(), r = i();
226
258
  return n({
227
259
  mutationFn: async (e) => (await s("mutation ComRemovePost($id: ID!) { comRemovePost(id: $id) }", { id: e.id }, t)).comRemovePost,
@@ -229,54 +261,54 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
229
261
  t.channelId && r.invalidateQueries({ queryKey: c.posts(t.channelId) }), r.invalidateQueries({ queryKey: c.feed });
230
262
  }
231
263
  });
232
- }, I = () => {
264
+ }, ee = () => {
233
265
  let { apiGatewayUrl: t } = e(), r = i();
234
266
  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,
267
+ mutationFn: async (e) => E((await s(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
268
+ comReactToPost(postId: $postId, type: $type) { ${g} }
269
+ }`, e, t)).comReactToPost),
238
270
  onSuccess: (e) => {
239
271
  r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
240
272
  }
241
273
  });
242
- }, L = (t) => {
274
+ }, W = (t) => {
243
275
  let { apiGatewayUrl: n } = e();
244
276
  return r({
245
277
  queryKey: c.comments(t ?? ""),
246
278
  enabled: !!t,
247
- queryFn: async () => (await s(`query ComListComments($postId: ID!) {
248
- comListComments(postId: $postId) { ${m} }
249
- }`, { postId: t }, n)).comListComments
279
+ queryFn: async () => w((await s(`query ComListComments($postId: ID!) {
280
+ comListComments(postId: $postId) { ${m(h)} }
281
+ }`, { postId: t }, n)).comListComments)
250
282
  });
251
- }, R = () => {
283
+ }, G = () => {
252
284
  let { apiGatewayUrl: t } = e(), r = i();
253
285
  return n({
254
286
  mutationFn: async (e) => (await s(`mutation ComAddComment($input: ComCreateCommentInput!) {
255
- comAddComment(input: $input) { ${m} }
287
+ comAddComment(input: $input) { ${h} }
256
288
  }`, { input: e }, t)).comAddComment,
257
289
  onSuccess: (e) => {
258
290
  r.invalidateQueries({ queryKey: c.comments(e.postId) }), r.invalidateQueries({ queryKey: c.post(e.postId) }), r.invalidateQueries({ queryKey: c.feed });
259
291
  }
260
292
  });
261
- }, z = (t) => {
293
+ }, K = (t) => {
262
294
  let { apiGatewayUrl: n } = e();
263
295
  return r({
264
296
  queryKey: [...c.follows, t ?? "all"],
265
- queryFn: async () => (await s(`query ComMyFollows($targetType: ComFollowTargetType) {
266
- comMyFollows(targetType: $targetType) { ${S} }
267
- }`, { targetType: t }, n)).comMyFollows
297
+ queryFn: async () => w((await s(`query ComMyFollows($targetType: ComFollowTargetType) {
298
+ comMyFollows(targetType: $targetType) { ${m(C)} }
299
+ }`, { targetType: t }, n)).comMyFollows)
268
300
  });
269
- }, B = () => {
301
+ }, q = () => {
270
302
  let { apiGatewayUrl: t } = e(), r = i();
271
303
  return n({
272
304
  mutationFn: async (e) => (await s(`mutation ComFollow($input: ComFollowInput!) {
273
- comFollow(input: $input) { ${S} }
305
+ comFollow(input: $input) { ${C} }
274
306
  }`, { input: e }, t)).comFollow,
275
307
  onSuccess: () => {
276
308
  r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
277
309
  }
278
310
  });
279
- }, V = () => {
311
+ }, J = () => {
280
312
  let { apiGatewayUrl: t } = e(), r = i();
281
313
  return n({
282
314
  mutationFn: async (e) => (await s("mutation ComUnfollow($input: ComFollowInput!) { comUnfollow(input: $input) }", { input: e }, t)).comUnfollow,
@@ -284,92 +316,94 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
284
316
  r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
285
317
  }
286
318
  });
287
- }, H = (t = {}) => {
319
+ }, Y = (t = {}) => {
288
320
  let { apiGatewayUrl: n } = e();
289
321
  return r({
290
322
  queryKey: [...c.events, t],
291
- queryFn: async () => (await s(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
323
+ queryFn: async () => k((await s(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
292
324
  comListEvents(circleId: $circleId, status: $status, pagination: $pagination) {
293
- items { ${y} }
294
- pageInfo { cursor hasMore }
325
+ ${m(b)}
295
326
  }
296
327
  }`, {
297
328
  circleId: t.circleId,
298
329
  status: t.status,
299
330
  pagination: u(t.pagination)
300
- }, n)).comListEvents
331
+ }, n)).comListEvents, O)
301
332
  });
302
- }, U = (t) => {
333
+ }, X = (t) => {
303
334
  let { apiGatewayUrl: n } = e();
304
335
  return r({
305
336
  queryKey: c.event(t ?? ""),
306
337
  enabled: !!t,
307
- queryFn: async () => (await s(`query ComEvent($id: ID!) {
338
+ queryFn: async () => {
339
+ let e = await s(`query ComEvent($id: ID!) {
308
340
  comEvent(id: $id) {
309
- ${y}
310
- rsvps { ${v} }
341
+ ${b}
342
+ rsvps { ${m(y)} }
311
343
  }
312
- }`, { id: t }, n)).comEvent
344
+ }`, { id: t }, n);
345
+ return e.comEvent ? O(e.comEvent) : null;
346
+ }
313
347
  });
314
- }, W = () => {
348
+ }, Z = () => {
315
349
  let { apiGatewayUrl: t } = e(), r = i();
316
350
  return n({
317
- mutationFn: async (e) => (await s(`mutation ComCreateEvent($input: ComCreateEventInput!) {
318
- comCreateEvent(input: $input) { ${y} }
319
- }`, { input: e }, t)).comCreateEvent,
351
+ mutationFn: async (e) => O((await s(`mutation ComCreateEvent($input: ComCreateEventInput!) {
352
+ comCreateEvent(input: $input) { ${b} }
353
+ }`, { input: e }, t)).comCreateEvent),
320
354
  onSuccess: () => r.invalidateQueries({ queryKey: c.events })
321
355
  });
322
- }, G = () => {
356
+ }, Q = () => {
323
357
  let { apiGatewayUrl: t } = e(), r = i();
324
358
  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,
359
+ mutationFn: async (e) => O((await s(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
360
+ comTransitionEvent(id: $id, status: $status) { ${b} }
361
+ }`, e, t)).comTransitionEvent),
328
362
  onSuccess: (e) => {
329
363
  r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.id) });
330
364
  }
331
365
  });
332
- }, K = () => {
366
+ }, $ = () => {
333
367
  let { apiGatewayUrl: t } = e(), r = i();
334
368
  return n({
335
369
  mutationFn: async (e) => (await s(`mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
336
- comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${v} }
370
+ comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${y} }
337
371
  }`, e, t)).comRsvpEvent,
338
372
  onSuccess: (e) => {
339
373
  r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.eventId) });
340
374
  }
341
375
  });
342
- }, q = (t, n) => {
376
+ }, te = (t, n) => {
343
377
  let { apiGatewayUrl: i } = e();
344
378
  return r({
345
379
  queryKey: [...c.polls(t ?? ""), n ?? "all"],
346
380
  enabled: !!t,
347
- queryFn: async () => (await s(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
348
- comListPolls(circleId: $circleId, status: $status) { ${_} }
381
+ queryFn: async () => w((await s(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
382
+ comListPolls(circleId: $circleId, status: $status) { ${m(v)} }
349
383
  }`, {
350
384
  circleId: t,
351
385
  status: n
352
- }, i)).comListPolls
386
+ }, i)).comListPolls).map(D)
353
387
  });
354
- }, J = () => {
388
+ }, ne = () => {
355
389
  let { apiGatewayUrl: t } = e(), r = i();
356
390
  return n({
357
- mutationFn: async (e) => (await s(`mutation ComCreatePoll($input: ComCreatePollInput!) {
358
- comCreatePoll(input: $input) { ${_} }
359
- }`, { input: e }, t)).comCreatePoll,
391
+ mutationFn: async (e) => D((await s(`mutation ComCreatePoll($input: ComCreatePollInput!) {
392
+ comCreatePoll(input: $input) { ${v} }
393
+ }`, { input: e }, t)).comCreatePoll),
360
394
  onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
361
395
  });
362
- }, Y = () => {
396
+ }, re = () => {
363
397
  let { apiGatewayUrl: t } = e(), r = i();
364
398
  return n({
365
- mutationFn: async (e) => (await s(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${_} } }`, { id: e }, t)).comClosePoll,
399
+ mutationFn: async (e) => D((await s(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${v} } }`, { id: e }, t)).comClosePoll),
366
400
  onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
367
401
  });
368
- }, X = () => {
402
+ }, ie = () => {
369
403
  let { apiGatewayUrl: t } = e(), r = i();
370
404
  return n({
371
405
  mutationFn: async (e) => (await s(`mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
372
- comVotePoll(pollId: $pollId, optionId: $optionId) { ${g} }
406
+ comVotePoll(pollId: $pollId, optionId: $optionId) { ${_} }
373
407
  }`, {
374
408
  pollId: e.pollId,
375
409
  optionId: e.optionId
@@ -378,13 +412,13 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
378
412
  t.circleId && r.invalidateQueries({ queryKey: c.polls(t.circleId) }), r.invalidateQueries({ queryKey: c.poll(t.pollId) });
379
413
  }
380
414
  });
381
- }, Z = (t = {}) => {
415
+ }, ae = (t = {}) => {
382
416
  let { apiGatewayUrl: n } = e();
383
417
  return r({
384
418
  queryKey: [...c.profiles, t],
385
419
  queryFn: async () => (await s(`query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
386
420
  comListProfiles(discoverable: $discoverable, pagination: $pagination) {
387
- items { ${b} }
421
+ items { ${x} }
388
422
  pageInfo { cursor hasMore }
389
423
  }
390
424
  }`, {
@@ -392,21 +426,21 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
392
426
  pagination: u(t.pagination)
393
427
  }, n)).comListProfiles
394
428
  });
395
- }, Q = (t) => {
429
+ }, oe = (t) => {
396
430
  let { apiGatewayUrl: n } = e();
397
431
  return r({
398
432
  queryKey: c.profile(t ?? ""),
399
433
  enabled: !!t,
400
434
  staleTime: 600 * 1e3,
401
435
  queryFn: async () => (await s(`query ComProfile($memberId: ID!) {
402
- comProfile(memberId: $memberId) { ${b} }
436
+ comProfile(memberId: $memberId) { ${x} }
403
437
  }`, { memberId: t }, n)).comProfile
404
438
  });
405
- }, $ = () => {
439
+ }, se = () => {
406
440
  let { apiGatewayUrl: t } = e(), r = i();
407
441
  return n({
408
442
  mutationFn: async (e) => (await s(`mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
409
- comUpsertProfile(input: $input) { ${b} }
443
+ comUpsertProfile(input: $input) { ${x} }
410
444
  }`, { input: e }, t)).comUpsertProfile,
411
445
  onSuccess: (e) => {
412
446
  r.invalidateQueries({ queryKey: c.profiles }), r.invalidateQueries({ queryKey: c.profile(e.memberId) });
@@ -414,6 +448,6 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
414
448
  });
415
449
  };
416
450
  //#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 };
451
+ export { G as useComAddComment, j as useComCircle, A as useComCircles, re as useComClosePoll, W as useComComments, L as useComCreateChannel, M as useComCreateCircle, Z as useComCreateEvent, ne as useComCreatePoll, V as useComCreatePost, X as useComEvent, Y as useComEvents, q as useComFollow, N as useComJoinCircle, P as useComLeaveCircle, I as useComMemberships, B as useComMyFeed, K as useComMyFollows, te as useComPolls, z as useComPost, R as useComPosts, oe as useComProfile, ae as useComProfiles, ee as useComReactToPost, U as useComRemovePost, $ as useComRsvpEvent, F as useComSetMemberRole, Q as useComTransitionEvent, J as useComUnfollow, H as useComUpdatePost, se as useComUpsertProfile, ie as useComVotePoll };
418
452
 
419
453
  //# sourceMappingURL=useComradeCircleApi.js.map