@burdenoff/microfe-comradecircle 2026.723.1 → 2026.730.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 (37) hide show
  1. package/dist/comradecircle/ComradeCircleRoutes.d.ts.map +1 -1
  2. package/dist/comradecircle/ComradeCircleRoutes.js +11 -7
  3. package/dist/comradecircle/ComradeCircleRoutes.js.map +1 -1
  4. package/dist/comradecircle/hooks/useComSubscription.d.ts +18 -0
  5. package/dist/comradecircle/hooks/useComSubscription.d.ts.map +1 -0
  6. package/dist/comradecircle/hooks/useComSubscription.js +110 -0
  7. package/dist/comradecircle/hooks/useComSubscription.js.map +1 -0
  8. package/dist/comradecircle/hooks/useComradeCircleApi.d.ts +51 -1
  9. package/dist/comradecircle/hooks/useComradeCircleApi.d.ts.map +1 -1
  10. package/dist/comradecircle/hooks/useComradeCircleApi.js +435 -223
  11. package/dist/comradecircle/hooks/useComradeCircleApi.js.map +1 -1
  12. package/dist/comradecircle/pages/circles/CircleDetailPage.d.ts.map +1 -1
  13. package/dist/comradecircle/pages/circles/CircleDetailPage.js +268 -266
  14. package/dist/comradecircle/pages/circles/CircleDetailPage.js.map +1 -1
  15. package/dist/comradecircle/pages/events/EventDetailPage.d.ts.map +1 -1
  16. package/dist/comradecircle/pages/events/EventDetailPage.js +84 -82
  17. package/dist/comradecircle/pages/events/EventDetailPage.js.map +1 -1
  18. package/dist/comradecircle/pages/members/MemberProfilePage.d.ts.map +1 -1
  19. package/dist/comradecircle/pages/members/MemberProfilePage.js +251 -129
  20. package/dist/comradecircle/pages/members/MemberProfilePage.js.map +1 -1
  21. package/dist/comradecircle/pages/monetization/MonetizationPage.d.ts +13 -0
  22. package/dist/comradecircle/pages/monetization/MonetizationPage.d.ts.map +1 -0
  23. package/dist/comradecircle/pages/monetization/MonetizationPage.js +596 -0
  24. package/dist/comradecircle/pages/monetization/MonetizationPage.js.map +1 -0
  25. package/dist/comradecircle/pages/posts/PostThreadPage.d.ts.map +1 -1
  26. package/dist/comradecircle/pages/posts/PostThreadPage.js +26 -24
  27. package/dist/comradecircle/pages/posts/PostThreadPage.js.map +1 -1
  28. package/dist/comradecircle/pages/profile/MyProfilePage.d.ts.map +1 -1
  29. package/dist/comradecircle/pages/profile/MyProfilePage.js +101 -96
  30. package/dist/comradecircle/pages/profile/MyProfilePage.js.map +1 -1
  31. package/dist/comradecircle/types/index.d.ts +126 -0
  32. package/dist/comradecircle/types/index.d.ts.map +1 -1
  33. package/dist/comradecircle/utils/shellBridge.d.ts +45 -0
  34. package/dist/comradecircle/utils/shellBridge.d.ts.map +1 -0
  35. package/dist/comradecircle/utils/shellBridge.js +19 -0
  36. package/dist/comradecircle/utils/shellBridge.js.map +1 -0
  37. package/package.json +1 -1
@@ -1,23 +1,24 @@
1
1
  import { useComradeCircle as e } from "../context/ComradeCircleContext.js";
2
2
  import "../context/index.js";
3
3
  import { clearGraphqlResponseCache as t } from "../lib/graphql-cache.js";
4
- import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
5
- import { graphqlFetch as a } from "@burdenoff/fe-libs/shared/graphql";
4
+ import { useComSubscription as n } from "./useComSubscription.js";
5
+ import { useMutation as r, useQuery as i, useQueryClient as a } from "@tanstack/react-query";
6
+ import { graphqlFetch as ee } from "@burdenoff/fe-libs/shared/graphql";
6
7
  //#region src/comradecircle/hooks/useComradeCircleApi.ts
7
- var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
8
- let i = o(e);
8
+ var te = (e) => /^\s*mutation\b/.test(e), o = async (e, n, r) => {
9
+ let i = te(e);
9
10
  i && t();
10
- let s = await a({
11
+ let a = await ee({
11
12
  gateway: "workspace",
12
13
  baseUrl: r,
13
14
  query: e,
14
15
  variables: n,
15
16
  workspaceToken: !0
16
17
  });
17
- if (i && t(), s.errors?.length) throw Error(s.errors[0]?.message ?? "GraphQL request failed");
18
- if (!s.data) throw Error("GraphQL response did not include data");
19
- return s.data;
20
- }, c = {
18
+ if (i && t(), a.errors?.length) throw Error(a.errors[0]?.message ?? "GraphQL request failed");
19
+ if (!a.data) throw Error("GraphQL response did not include data");
20
+ return a.data;
21
+ }, s = {
21
22
  circles: ["comradecircle", "circles"],
22
23
  circle: (e) => [
23
24
  "comradecircle",
@@ -68,386 +69,597 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
68
69
  "profile",
69
70
  e
70
71
  ],
71
- memberships: ["comradecircle", "memberships"]
72
- }, l = { limit: 50 }, u = (e) => {
73
- let t = e ?? l, n = { limit: t.limit ?? l.limit };
72
+ memberships: ["comradecircle", "memberships"],
73
+ membershipTiers: (e) => [
74
+ "comradecircle",
75
+ "membershipTiers",
76
+ e ?? "all"
77
+ ],
78
+ myMembershipTiers: ["comradecircle", "myMembershipTiers"],
79
+ paidEvents: (e) => [
80
+ "comradecircle",
81
+ "paidEvents",
82
+ e ?? "all"
83
+ ],
84
+ myPaidEvents: ["comradecircle", "myPaidEvents"],
85
+ digitalProducts: (e) => [
86
+ "comradecircle",
87
+ "digitalProducts",
88
+ e ?? "all"
89
+ ],
90
+ myDigitalProducts: ["comradecircle", "myDigitalProducts"],
91
+ myReceivedTips: ["comradecircle", "myReceivedTips"],
92
+ mySentTips: ["comradecircle", "mySentTips"],
93
+ creatorHasPaymentsEnabled: (e) => [
94
+ "comradecircle",
95
+ "creatorHasPaymentsEnabled",
96
+ e
97
+ ]
98
+ }, c = { limit: 50 }, l = (e) => {
99
+ let t = e ?? c, n = { limit: t.limit ?? c.limit };
74
100
  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 = (e) => `items { ${e} } pageInfo { cursor hasMore }`, h = "\n id workspaceId postId parentId authorId body isHidden createdAt updatedAt\n", g = `
101
+ }, u = "\n id workspaceId circleId name slug description type visibility position isArchived\n createdAt updatedAt\n", d = "\n id workspaceId name slug description topic tags status visibility memberCount\n avatar { id } createdAt updatedAt\n", ne = "id postId memberId type createdAt", f = (e) => `items { ${e} } pageInfo { cursor hasMore }`, p = "\n id workspaceId postId parentId authorId body isHidden createdAt updatedAt\n", m = `
76
102
  id workspaceId channelId authorId body status tags attachmentFileIds isPinned
77
- reactionCount commentCount reactions { ${m(p)} } createdAt updatedAt
78
- `, _ = "id workspaceId pollId label position voteCount createdAt", v = `
103
+ reactionCount commentCount reactions { ${f(ne)} } createdAt updatedAt
104
+ `, h = "id workspaceId pollId label position voteCount createdAt", g = `
79
105
  id workspaceId circleId question allowMultiple isAnonymous status closesAt
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) => ({
106
+ options { ${f(h)} } createdAt updatedAt
107
+ `, _ = "\n id workspaceId eventId memberId status note createdAt updatedAt\n", v = "\n id workspaceId circleId hostId title description mode status location joinUrl\n capacity startsAt endsAt tags rsvpCount createdAt updatedAt\n", y = "\n id workspaceId memberId displayName headline bio avatar { id } interests skills\n presence discoverable createdAt updatedAt\n", b = "\n id workspaceId circleId memberId role status joinedAt createdAt updatedAt\n", x = "\n id workspaceId followerId targetId targetType muted createdAt updatedAt\n", S = (e) => e?.items ?? [], C = (e) => ({
82
108
  ...e,
83
- channels: w(e.channels),
84
- memberships: w(e.memberships)
85
- }), E = (e) => ({
109
+ channels: S(e.channels),
110
+ memberships: S(e.memberships)
111
+ }), w = (e) => ({
86
112
  ...e,
87
- reactions: w(e.reactions),
88
- comments: w(e.comments)
89
- }), D = (e) => ({
113
+ reactions: S(e.reactions),
114
+ comments: S(e.comments)
115
+ }), T = (e) => ({
90
116
  ...e,
91
- options: w(e.options)
92
- }), O = (e) => ({
117
+ options: S(e.options)
118
+ }), E = (e) => ({
93
119
  ...e,
94
- rsvps: w(e.rsvps)
95
- }), k = (e, t) => ({
120
+ rsvps: S(e.rsvps)
121
+ }), D = (e, t) => ({
96
122
  items: (e.items ?? []).map(t),
97
123
  pageInfo: e.pageInfo ?? { hasMore: !1 }
98
- }), A = (t = {}) => {
124
+ }), re = (t = {}) => {
99
125
  let { apiGatewayUrl: n } = e();
100
- return r({
101
- queryKey: [...c.circles, t],
102
- queryFn: async () => k((await s(`query ComListCircles($status: ComCircleStatus, $visibility: ComCircleVisibility, $pagination: PaginationInput) {
126
+ return i({
127
+ queryKey: [...s.circles, t],
128
+ queryFn: async () => D((await o(`query ComListCircles($status: ComCircleStatus, $visibility: ComCircleVisibility, $pagination: PaginationInput) {
103
129
  comListCircles(status: $status, visibility: $visibility, pagination: $pagination) {
104
- ${m(`${f} channels { ${m("id")} }`)}
130
+ ${f(`${d} channels { ${f("id")} }`)}
105
131
  }
106
132
  }`, {
107
133
  status: t.status,
108
134
  visibility: t.visibility,
109
- pagination: u(t.pagination)
110
- }, n)).comListCircles, T)
135
+ pagination: l(t.pagination)
136
+ }, n)).comListCircles, C)
111
137
  });
112
- }, j = (t) => {
138
+ }, ie = (t) => {
113
139
  let { apiGatewayUrl: n } = e();
114
- return r({
115
- queryKey: c.circle(t ?? ""),
140
+ return i({
141
+ queryKey: s.circle(t ?? ""),
116
142
  enabled: !!t,
117
143
  queryFn: async () => {
118
- let e = await s(`query ComCircle($id: ID!) {
144
+ let e = await o(`query ComCircle($id: ID!) {
119
145
  comCircle(id: $id) {
120
- ${f}
121
- channels { ${m(d)} }
122
- memberships { ${m(S)} }
146
+ ${d}
147
+ channels { ${f(u)} }
148
+ memberships { ${f(b)} }
123
149
  }
124
150
  }`, { id: t }, n);
125
- return e.comCircle ? T(e.comCircle) : null;
151
+ return e.comCircle ? C(e.comCircle) : null;
126
152
  }
127
153
  });
128
- }, M = () => {
129
- let { apiGatewayUrl: t } = e(), r = i();
130
- return n({
131
- mutationFn: async (e) => T((await s(`mutation ComCreateCircle($input: ComCreateCircleInput!) {
132
- comCreateCircle(input: $input) { ${f} }
154
+ }, O = () => {
155
+ let { apiGatewayUrl: t } = e(), n = a();
156
+ return r({
157
+ mutationFn: async (e) => C((await o(`mutation ComCreateCircle($input: ComCreateCircleInput!) {
158
+ comCreateCircle(input: $input) { ${d} }
133
159
  }`, { input: e }, t)).comCreateCircle),
134
- onSuccess: () => r.invalidateQueries({ queryKey: c.circles })
160
+ onSuccess: () => n.invalidateQueries({ queryKey: s.circles })
135
161
  });
136
- }, N = () => {
137
- let { apiGatewayUrl: t } = e(), r = i();
138
- return n({
139
- mutationFn: async (e) => (await s(`mutation ComJoinCircle($circleId: ID!) {
140
- comJoinCircle(circleId: $circleId) { ${S} }
162
+ }, k = () => {
163
+ let { apiGatewayUrl: t } = e(), n = a();
164
+ return r({
165
+ mutationFn: async (e) => (await o(`mutation ComJoinCircle($circleId: ID!) {
166
+ comJoinCircle(circleId: $circleId) { ${b} }
141
167
  }`, { circleId: e }, t)).comJoinCircle,
142
168
  onSuccess: (e) => {
143
- r.invalidateQueries({ queryKey: c.circles }), r.invalidateQueries({ queryKey: c.circle(e.circleId) }), r.invalidateQueries({ queryKey: c.memberships });
169
+ n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
144
170
  }
145
171
  });
146
- }, P = () => {
147
- let { apiGatewayUrl: t } = e(), r = i();
148
- return n({
149
- mutationFn: async (e) => (await s("mutation ComLeaveCircle($circleId: ID!) { comLeaveCircle(circleId: $circleId) }", { circleId: e }, t)).comLeaveCircle,
172
+ }, A = () => {
173
+ let { apiGatewayUrl: t } = e(), n = a();
174
+ return r({
175
+ mutationFn: async (e) => (await o("mutation ComLeaveCircle($circleId: ID!) { comLeaveCircle(circleId: $circleId) }", { circleId: e }, t)).comLeaveCircle,
150
176
  onSuccess: (e, t) => {
151
- r.invalidateQueries({ queryKey: c.circles }), r.invalidateQueries({ queryKey: c.circle(t) }), r.invalidateQueries({ queryKey: c.memberships });
177
+ n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(t) }), n.invalidateQueries({ queryKey: s.memberships });
152
178
  }
153
179
  });
154
- }, F = () => {
155
- let { apiGatewayUrl: t } = e(), r = i();
156
- return n({
157
- mutationFn: async (e) => (await s(`mutation ComSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
158
- comSetMemberRole(membershipId: $membershipId, role: $role) { ${S} }
180
+ }, j = () => {
181
+ let { apiGatewayUrl: t } = e(), n = a();
182
+ return r({
183
+ mutationFn: async (e) => (await o(`mutation ComSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
184
+ comSetMemberRole(membershipId: $membershipId, role: $role) { ${b} }
159
185
  }`, {
160
186
  membershipId: e.membershipId,
161
187
  role: e.role
162
188
  }, t)).comSetMemberRole,
163
189
  onSuccess: (e) => {
164
- r.invalidateQueries({ queryKey: c.circle(e.circleId) }), r.invalidateQueries({ queryKey: c.memberships });
190
+ n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
165
191
  }
166
192
  });
167
- }, I = (t = {}) => {
193
+ }, M = (t = {}) => {
168
194
  let { apiGatewayUrl: n } = e();
169
- return r({
170
- queryKey: [...c.memberships, t],
171
- queryFn: async () => (await s(`query ComListMemberships($circleId: ID, $status: ComMembershipStatus, $pagination: PaginationInput) {
195
+ return i({
196
+ queryKey: [...s.memberships, t],
197
+ queryFn: async () => (await o(`query ComListMemberships($circleId: ID, $status: ComMembershipStatus, $pagination: PaginationInput) {
172
198
  comListMemberships(circleId: $circleId, status: $status, pagination: $pagination) {
173
- items { ${S} }
199
+ items { ${b} }
174
200
  pageInfo { cursor hasMore }
175
201
  }
176
202
  }`, {
177
203
  circleId: t.circleId,
178
204
  status: t.status,
179
- pagination: u(t.pagination)
205
+ pagination: l(t.pagination)
180
206
  }, n)).comListMemberships
181
207
  });
182
- }, L = () => {
183
- let { apiGatewayUrl: t } = e(), r = i();
184
- return n({
185
- mutationFn: async (e) => (await s(`mutation ComCreateChannel($input: ComCreateChannelInput!) {
186
- comCreateChannel(input: $input) { ${d} }
208
+ }, N = () => {
209
+ let { apiGatewayUrl: t } = e(), n = a();
210
+ return r({
211
+ mutationFn: async (e) => (await o(`mutation ComCreateChannel($input: ComCreateChannelInput!) {
212
+ comCreateChannel(input: $input) { ${u} }
187
213
  }`, { input: e }, t)).comCreateChannel,
188
214
  onSuccess: (e) => {
189
- r.invalidateQueries({ queryKey: c.channels(e.circleId) }), r.invalidateQueries({ queryKey: c.circle(e.circleId) });
215
+ n.invalidateQueries({ queryKey: s.channels(e.circleId) }), n.invalidateQueries({ queryKey: s.circle(e.circleId) });
190
216
  }
191
217
  });
192
- }, R = (t = {}) => {
218
+ }, P = (t = {}) => {
193
219
  let { apiGatewayUrl: n } = e();
194
- return r({
220
+ return i({
195
221
  queryKey: [
196
- ...c.posts(t.channelId ?? "all"),
222
+ ...s.posts(t.channelId ?? "all"),
197
223
  t.status,
198
224
  t.pagination
199
225
  ],
200
226
  enabled: !!t.channelId,
201
- queryFn: async () => k((await s(`query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
227
+ queryFn: async () => D((await o(`query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
202
228
  comListPosts(channelId: $channelId, status: $status, pagination: $pagination) {
203
- ${m(g)}
229
+ ${f(m)}
204
230
  }
205
231
  }`, {
206
232
  channelId: t.channelId,
207
233
  status: t.status,
208
- pagination: u(t.pagination)
209
- }, n)).comListPosts, E)
234
+ pagination: l(t.pagination)
235
+ }, n)).comListPosts, w)
210
236
  });
211
- }, z = (t) => {
237
+ }, F = (t) => {
212
238
  let { apiGatewayUrl: n } = e();
213
- return r({
214
- queryKey: c.post(t ?? ""),
239
+ return i({
240
+ queryKey: s.post(t ?? ""),
215
241
  enabled: !!t,
216
242
  queryFn: async () => {
217
- let e = await s(`query ComPost($id: ID!) {
243
+ let e = await o(`query ComPost($id: ID!) {
218
244
  comPost(id: $id) {
219
- ${g}
220
- comments { ${m(h)} }
245
+ ${m}
246
+ comments { ${f(p)} }
221
247
  }
222
248
  }`, { id: t }, n);
223
- return e.comPost ? E(e.comPost) : null;
249
+ return e.comPost ? w(e.comPost) : null;
224
250
  }
225
251
  });
226
- }, B = (t) => {
252
+ }, I = (t) => {
227
253
  let { apiGatewayUrl: n } = e();
228
- return r({
229
- queryKey: [...c.feed, t],
230
- queryFn: async () => k((await s(`query ComMyFeed($pagination: PaginationInput) {
254
+ return i({
255
+ queryKey: [...s.feed, t],
256
+ queryFn: async () => D((await o(`query ComMyFeed($pagination: PaginationInput) {
231
257
  comMyFeed(pagination: $pagination) {
232
- ${m(g)}
258
+ ${f(m)}
233
259
  }
234
- }`, { pagination: u(t) }, n)).comMyFeed, E)
260
+ }`, { pagination: l(t) }, n)).comMyFeed, w)
235
261
  });
236
- }, V = () => {
237
- let { apiGatewayUrl: t } = e(), r = i();
238
- return n({
239
- mutationFn: async (e) => E((await s(`mutation ComCreatePost($input: ComCreatePostInput!) {
240
- comCreatePost(input: $input) { ${g} }
262
+ }, L = () => {
263
+ let { apiGatewayUrl: t } = e(), n = a();
264
+ return r({
265
+ mutationFn: async (e) => w((await o(`mutation ComCreatePost($input: ComCreatePostInput!) {
266
+ comCreatePost(input: $input) { ${m} }
241
267
  }`, { input: e }, t)).comCreatePost),
242
268
  onSuccess: (e) => {
243
- r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.feed });
269
+ n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.feed });
244
270
  }
245
271
  });
246
- }, H = () => {
247
- let { apiGatewayUrl: t } = e(), r = i();
248
- return n({
249
- mutationFn: async (e) => E((await s(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
250
- comUpdatePost(id: $id, input: $input) { ${g} }
272
+ }, R = () => {
273
+ let { apiGatewayUrl: t } = e(), n = a();
274
+ return r({
275
+ mutationFn: async (e) => w((await o(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
276
+ comUpdatePost(id: $id, input: $input) { ${m} }
251
277
  }`, e, t)).comUpdatePost),
252
278
  onSuccess: (e) => {
253
- r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
279
+ n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.post(e.id) }), n.invalidateQueries({ queryKey: s.feed });
254
280
  }
255
281
  });
256
- }, U = () => {
257
- let { apiGatewayUrl: t } = e(), r = i();
258
- return n({
259
- mutationFn: async (e) => (await s("mutation ComRemovePost($id: ID!) { comRemovePost(id: $id) }", { id: e.id }, t)).comRemovePost,
282
+ }, z = () => {
283
+ let { apiGatewayUrl: t } = e(), n = a();
284
+ return r({
285
+ mutationFn: async (e) => (await o("mutation ComRemovePost($id: ID!) { comRemovePost(id: $id) }", { id: e.id }, t)).comRemovePost,
260
286
  onSuccess: (e, t) => {
261
- t.channelId && r.invalidateQueries({ queryKey: c.posts(t.channelId) }), r.invalidateQueries({ queryKey: c.feed });
287
+ t.channelId && n.invalidateQueries({ queryKey: s.posts(t.channelId) }), n.invalidateQueries({ queryKey: s.feed });
262
288
  }
263
289
  });
264
- }, ee = () => {
265
- let { apiGatewayUrl: t } = e(), r = i();
266
- return n({
267
- mutationFn: async (e) => E((await s(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
268
- comReactToPost(postId: $postId, type: $type) { ${g} }
290
+ }, B = () => {
291
+ let { apiGatewayUrl: t } = e(), n = a();
292
+ return r({
293
+ mutationFn: async (e) => w((await o(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
294
+ comReactToPost(postId: $postId, type: $type) { ${m} }
269
295
  }`, e, t)).comReactToPost),
270
296
  onSuccess: (e) => {
271
- r.invalidateQueries({ queryKey: c.posts(e.channelId) }), r.invalidateQueries({ queryKey: c.post(e.id) }), r.invalidateQueries({ queryKey: c.feed });
297
+ n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.post(e.id) }), n.invalidateQueries({ queryKey: s.feed });
298
+ }
299
+ });
300
+ }, V = (e) => {
301
+ let t = a();
302
+ n({
303
+ query: "subscription ComPostAdded($channelId: ID!) { comPostAdded(channelId: $channelId) { id } }",
304
+ variables: { channelId: e ?? "" },
305
+ operationName: "ComPostAdded",
306
+ enabled: !!e,
307
+ onData: () => {
308
+ e && t.invalidateQueries({ queryKey: s.posts(e) });
309
+ },
310
+ pollFn: () => {
311
+ if (e) return t.invalidateQueries({ queryKey: s.posts(e) });
312
+ }
313
+ });
314
+ }, H = (e) => {
315
+ let t = a();
316
+ n({
317
+ query: "subscription ComCommentAdded($postId: ID!) { comCommentAdded(postId: $postId) { id } }",
318
+ variables: { postId: e ?? "" },
319
+ operationName: "ComCommentAdded",
320
+ enabled: !!e,
321
+ onData: () => {
322
+ e && t.invalidateQueries({ queryKey: s.post(e) });
323
+ },
324
+ pollFn: () => {
325
+ if (e) return t.invalidateQueries({ queryKey: s.post(e) });
272
326
  }
273
327
  });
274
- }, W = (t) => {
328
+ }, U = (t) => {
275
329
  let { apiGatewayUrl: n } = e();
276
- return r({
277
- queryKey: c.comments(t ?? ""),
330
+ return i({
331
+ queryKey: s.comments(t ?? ""),
278
332
  enabled: !!t,
279
- queryFn: async () => w((await s(`query ComListComments($postId: ID!) {
280
- comListComments(postId: $postId) { ${m(h)} }
333
+ queryFn: async () => S((await o(`query ComListComments($postId: ID!) {
334
+ comListComments(postId: $postId) { ${f(p)} }
281
335
  }`, { postId: t }, n)).comListComments)
282
336
  });
283
- }, G = () => {
284
- let { apiGatewayUrl: t } = e(), r = i();
285
- return n({
286
- mutationFn: async (e) => (await s(`mutation ComAddComment($input: ComCreateCommentInput!) {
287
- comAddComment(input: $input) { ${h} }
337
+ }, W = () => {
338
+ let { apiGatewayUrl: t } = e(), n = a();
339
+ return r({
340
+ mutationFn: async (e) => (await o(`mutation ComAddComment($input: ComCreateCommentInput!) {
341
+ comAddComment(input: $input) { ${p} }
288
342
  }`, { input: e }, t)).comAddComment,
289
343
  onSuccess: (e) => {
290
- r.invalidateQueries({ queryKey: c.comments(e.postId) }), r.invalidateQueries({ queryKey: c.post(e.postId) }), r.invalidateQueries({ queryKey: c.feed });
344
+ n.invalidateQueries({ queryKey: s.comments(e.postId) }), n.invalidateQueries({ queryKey: s.post(e.postId) }), n.invalidateQueries({ queryKey: s.feed });
291
345
  }
292
346
  });
293
- }, K = (t) => {
347
+ }, G = (t) => {
294
348
  let { apiGatewayUrl: n } = e();
295
- return r({
296
- queryKey: [...c.follows, t ?? "all"],
297
- queryFn: async () => w((await s(`query ComMyFollows($targetType: ComFollowTargetType) {
298
- comMyFollows(targetType: $targetType) { ${m(C)} }
349
+ return i({
350
+ queryKey: [...s.follows, t ?? "all"],
351
+ queryFn: async () => S((await o(`query ComMyFollows($targetType: ComFollowTargetType) {
352
+ comMyFollows(targetType: $targetType) { ${f(x)} }
299
353
  }`, { targetType: t }, n)).comMyFollows)
300
354
  });
301
- }, q = () => {
302
- let { apiGatewayUrl: t } = e(), r = i();
303
- return n({
304
- mutationFn: async (e) => (await s(`mutation ComFollow($input: ComFollowInput!) {
305
- comFollow(input: $input) { ${C} }
355
+ }, K = () => {
356
+ let { apiGatewayUrl: t } = e(), n = a();
357
+ return r({
358
+ mutationFn: async (e) => (await o(`mutation ComFollow($input: ComFollowInput!) {
359
+ comFollow(input: $input) { ${x} }
306
360
  }`, { input: e }, t)).comFollow,
307
361
  onSuccess: () => {
308
- r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
362
+ n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
309
363
  }
310
364
  });
311
- }, J = () => {
312
- let { apiGatewayUrl: t } = e(), r = i();
313
- return n({
314
- mutationFn: async (e) => (await s("mutation ComUnfollow($input: ComFollowInput!) { comUnfollow(input: $input) }", { input: e }, t)).comUnfollow,
365
+ }, q = () => {
366
+ let { apiGatewayUrl: t } = e(), n = a();
367
+ return r({
368
+ mutationFn: async (e) => (await o("mutation ComUnfollow($input: ComFollowInput!) { comUnfollow(input: $input) }", { input: e }, t)).comUnfollow,
315
369
  onSuccess: () => {
316
- r.invalidateQueries({ queryKey: c.follows }), r.invalidateQueries({ queryKey: c.feed });
370
+ n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
317
371
  }
318
372
  });
319
- }, Y = (t = {}) => {
373
+ }, J = (t = {}) => {
320
374
  let { apiGatewayUrl: n } = e();
321
- return r({
322
- queryKey: [...c.events, t],
323
- queryFn: async () => k((await s(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
375
+ return i({
376
+ queryKey: [...s.events, t],
377
+ queryFn: async () => D((await o(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
324
378
  comListEvents(circleId: $circleId, status: $status, pagination: $pagination) {
325
- ${m(b)}
379
+ ${f(v)}
326
380
  }
327
381
  }`, {
328
382
  circleId: t.circleId,
329
383
  status: t.status,
330
- pagination: u(t.pagination)
331
- }, n)).comListEvents, O)
384
+ pagination: l(t.pagination)
385
+ }, n)).comListEvents, E)
332
386
  });
333
- }, X = (t) => {
387
+ }, Y = (t) => {
334
388
  let { apiGatewayUrl: n } = e();
335
- return r({
336
- queryKey: c.event(t ?? ""),
389
+ return i({
390
+ queryKey: s.event(t ?? ""),
337
391
  enabled: !!t,
338
392
  queryFn: async () => {
339
- let e = await s(`query ComEvent($id: ID!) {
393
+ let e = await o(`query ComEvent($id: ID!) {
340
394
  comEvent(id: $id) {
341
- ${b}
342
- rsvps { ${m(y)} }
395
+ ${v}
396
+ rsvps { ${f(_)} }
343
397
  }
344
398
  }`, { id: t }, n);
345
- return e.comEvent ? O(e.comEvent) : null;
399
+ return e.comEvent ? E(e.comEvent) : null;
346
400
  }
347
401
  });
348
- }, Z = () => {
349
- let { apiGatewayUrl: t } = e(), r = i();
350
- return n({
351
- mutationFn: async (e) => O((await s(`mutation ComCreateEvent($input: ComCreateEventInput!) {
352
- comCreateEvent(input: $input) { ${b} }
402
+ }, ae = (e) => {
403
+ let t = a(), r = () => {
404
+ if (e) return t.invalidateQueries({ queryKey: s.event(e) });
405
+ };
406
+ n({
407
+ query: "subscription ComEventUpdated($eventId: ID!) { comEventUpdated(eventId: $eventId) { id } }",
408
+ variables: { eventId: e ?? "" },
409
+ operationName: "ComEventUpdated",
410
+ enabled: !!e,
411
+ onData: r,
412
+ pollFn: r
413
+ }), n({
414
+ query: "subscription ComEventRsvpAdded($eventId: ID!) { comEventRsvpAdded(eventId: $eventId) { id } }",
415
+ variables: { eventId: e ?? "" },
416
+ operationName: "ComEventRsvpAdded",
417
+ enabled: !!e,
418
+ onData: r,
419
+ pollFn: () => {},
420
+ pollIntervalMs: 3e4
421
+ });
422
+ }, oe = () => {
423
+ let { apiGatewayUrl: t } = e(), n = a();
424
+ return r({
425
+ mutationFn: async (e) => E((await o(`mutation ComCreateEvent($input: ComCreateEventInput!) {
426
+ comCreateEvent(input: $input) { ${v} }
353
427
  }`, { input: e }, t)).comCreateEvent),
354
- onSuccess: () => r.invalidateQueries({ queryKey: c.events })
428
+ onSuccess: () => n.invalidateQueries({ queryKey: s.events })
355
429
  });
356
- }, Q = () => {
357
- let { apiGatewayUrl: t } = e(), r = i();
358
- return n({
359
- mutationFn: async (e) => O((await s(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
360
- comTransitionEvent(id: $id, status: $status) { ${b} }
430
+ }, se = () => {
431
+ let { apiGatewayUrl: t } = e(), n = a();
432
+ return r({
433
+ mutationFn: async (e) => E((await o(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
434
+ comTransitionEvent(id: $id, status: $status) { ${v} }
361
435
  }`, e, t)).comTransitionEvent),
362
436
  onSuccess: (e) => {
363
- r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.id) });
437
+ n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.id) });
364
438
  }
365
439
  });
366
- }, $ = () => {
367
- let { apiGatewayUrl: t } = e(), r = i();
368
- return n({
369
- mutationFn: async (e) => (await s(`mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
370
- comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${y} }
440
+ }, ce = () => {
441
+ let { apiGatewayUrl: t } = e(), n = a();
442
+ return r({
443
+ mutationFn: async (e) => (await o(`mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
444
+ comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${_} }
371
445
  }`, e, t)).comRsvpEvent,
372
446
  onSuccess: (e) => {
373
- r.invalidateQueries({ queryKey: c.events }), r.invalidateQueries({ queryKey: c.event(e.eventId) });
447
+ n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.eventId) });
374
448
  }
375
449
  });
376
- }, te = (t, n) => {
377
- let { apiGatewayUrl: i } = e();
378
- return r({
379
- queryKey: [...c.polls(t ?? ""), n ?? "all"],
450
+ }, le = (t, n) => {
451
+ let { apiGatewayUrl: r } = e();
452
+ return i({
453
+ queryKey: [...s.polls(t ?? ""), n ?? "all"],
380
454
  enabled: !!t,
381
- queryFn: async () => w((await s(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
382
- comListPolls(circleId: $circleId, status: $status) { ${m(v)} }
455
+ queryFn: async () => S((await o(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
456
+ comListPolls(circleId: $circleId, status: $status) { ${f(g)} }
383
457
  }`, {
384
458
  circleId: t,
385
459
  status: n
386
- }, i)).comListPolls).map(D)
460
+ }, r)).comListPolls).map(T)
387
461
  });
388
- }, ne = () => {
389
- let { apiGatewayUrl: t } = e(), r = i();
390
- return n({
391
- mutationFn: async (e) => D((await s(`mutation ComCreatePoll($input: ComCreatePollInput!) {
392
- comCreatePoll(input: $input) { ${v} }
462
+ }, ue = () => {
463
+ let { apiGatewayUrl: t } = e(), n = a();
464
+ return r({
465
+ mutationFn: async (e) => T((await o(`mutation ComCreatePoll($input: ComCreatePollInput!) {
466
+ comCreatePoll(input: $input) { ${g} }
393
467
  }`, { input: e }, t)).comCreatePoll),
394
- onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
395
- });
396
- }, re = () => {
397
- let { apiGatewayUrl: t } = e(), r = i();
398
- return n({
399
- mutationFn: async (e) => D((await s(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${v} } }`, { id: e }, t)).comClosePoll),
400
- onSuccess: (e) => r.invalidateQueries({ queryKey: c.polls(e.circleId) })
401
- });
402
- }, ie = () => {
403
- let { apiGatewayUrl: t } = e(), r = i();
404
- return n({
405
- mutationFn: async (e) => (await s(`mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
406
- comVotePoll(pollId: $pollId, optionId: $optionId) { ${_} }
468
+ onSuccess: (e) => n.invalidateQueries({ queryKey: s.polls(e.circleId) })
469
+ });
470
+ }, de = () => {
471
+ let { apiGatewayUrl: t } = e(), n = a();
472
+ return r({
473
+ mutationFn: async (e) => T((await o(`mutation ComClosePoll($id: ID!) { comClosePoll(id: $id) { ${g} } }`, { id: e }, t)).comClosePoll),
474
+ onSuccess: (e) => n.invalidateQueries({ queryKey: s.polls(e.circleId) })
475
+ });
476
+ }, fe = () => {
477
+ let { apiGatewayUrl: t } = e(), n = a();
478
+ return r({
479
+ mutationFn: async (e) => (await o(`mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
480
+ comVotePoll(pollId: $pollId, optionId: $optionId) { ${h} }
407
481
  }`, {
408
482
  pollId: e.pollId,
409
483
  optionId: e.optionId
410
484
  }, t)).comVotePoll,
411
485
  onSuccess: (e, t) => {
412
- t.circleId && r.invalidateQueries({ queryKey: c.polls(t.circleId) }), r.invalidateQueries({ queryKey: c.poll(t.pollId) });
486
+ t.circleId && n.invalidateQueries({ queryKey: s.polls(t.circleId) }), n.invalidateQueries({ queryKey: s.poll(t.pollId) });
413
487
  }
414
488
  });
415
- }, ae = (t = {}) => {
489
+ }, pe = (t = {}) => {
416
490
  let { apiGatewayUrl: n } = e();
417
- return r({
418
- queryKey: [...c.profiles, t],
419
- queryFn: async () => (await s(`query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
491
+ return i({
492
+ queryKey: [...s.profiles, t],
493
+ queryFn: async () => (await o(`query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
420
494
  comListProfiles(discoverable: $discoverable, pagination: $pagination) {
421
- items { ${x} }
495
+ items { ${y} }
422
496
  pageInfo { cursor hasMore }
423
497
  }
424
498
  }`, {
425
499
  discoverable: t.discoverable,
426
- pagination: u(t.pagination)
500
+ pagination: l(t.pagination)
427
501
  }, n)).comListProfiles
428
502
  });
429
- }, oe = (t) => {
503
+ }, me = (t) => {
430
504
  let { apiGatewayUrl: n } = e();
431
- return r({
432
- queryKey: c.profile(t ?? ""),
505
+ return i({
506
+ queryKey: s.profile(t ?? ""),
433
507
  enabled: !!t,
434
508
  staleTime: 600 * 1e3,
435
- queryFn: async () => (await s(`query ComProfile($memberId: ID!) {
436
- comProfile(memberId: $memberId) { ${x} }
509
+ queryFn: async () => (await o(`query ComProfile($memberId: ID!) {
510
+ comProfile(memberId: $memberId) { ${y} }
437
511
  }`, { memberId: t }, n)).comProfile
438
512
  });
439
- }, se = () => {
440
- let { apiGatewayUrl: t } = e(), r = i();
441
- return n({
442
- mutationFn: async (e) => (await s(`mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
443
- comUpsertProfile(input: $input) { ${x} }
513
+ }, he = () => {
514
+ let { apiGatewayUrl: t } = e(), n = a();
515
+ return r({
516
+ mutationFn: async (e) => (await o(`mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
517
+ comUpsertProfile(input: $input) { ${y} }
444
518
  }`, { input: e }, t)).comUpsertProfile,
445
519
  onSuccess: (e) => {
446
- r.invalidateQueries({ queryKey: c.profiles }), r.invalidateQueries({ queryKey: c.profile(e.memberId) });
520
+ n.invalidateQueries({ queryKey: s.profiles }), n.invalidateQueries({ queryKey: s.profile(e.memberId) });
521
+ }
522
+ });
523
+ }, X = "\n id workspaceId creatorId circleId name description perks priceAmount currency\n billingInterval status createdAt updatedAt\n", Z = "\n id workspaceId creatorId circleId title description priceAmount currency\n capacity startsAt status createdAt updatedAt\n", Q = "\n id workspaceId creatorId title description priceAmount currency productType\n file { id } status createdAt updatedAt\n", ge = "\n id workspaceId creatorId tipperId amount currency message status createdAt\n", _e = (t) => {
524
+ let { apiGatewayUrl: n } = e();
525
+ return i({
526
+ queryKey: s.membershipTiers(t),
527
+ queryFn: async () => (await o(`query ComListMembershipTiers($creatorId: ID, $pagination: PaginationInput) {
528
+ comListMembershipTiers(creatorId: $creatorId, pagination: $pagination) {
529
+ ${f(X)}
530
+ }
531
+ }`, {
532
+ creatorId: t,
533
+ pagination: l()
534
+ }, n)).comListMembershipTiers
535
+ });
536
+ }, ve = () => {
537
+ let { apiGatewayUrl: t } = e();
538
+ return i({
539
+ queryKey: s.myMembershipTiers,
540
+ queryFn: async () => (await o(`query ComMyMembershipTiers($pagination: PaginationInput) {
541
+ comMyMembershipTiers(pagination: $pagination) { ${f(X)} }
542
+ }`, { pagination: l() }, t)).comMyMembershipTiers
543
+ });
544
+ }, ye = () => {
545
+ let { apiGatewayUrl: t } = e(), n = a();
546
+ return r({
547
+ mutationFn: async (e) => (await o(`mutation ComCreateMembershipTier($input: ComCreateMembershipTierInput!) {
548
+ comCreateMembershipTier(input: $input) { ${X} }
549
+ }`, { input: e }, t)).comCreateMembershipTier,
550
+ onSuccess: () => {
551
+ n.invalidateQueries({ queryKey: s.myMembershipTiers });
552
+ }
553
+ });
554
+ }, be = () => {
555
+ let { apiGatewayUrl: t } = e(), n = a();
556
+ return r({
557
+ mutationFn: async (e) => (await o("mutation ComArchiveMembershipTier($id: ID!) { comArchiveMembershipTier(id: $id) }", { id: e }, t)).comArchiveMembershipTier,
558
+ onSuccess: () => {
559
+ n.invalidateQueries({ queryKey: s.myMembershipTiers });
447
560
  }
448
561
  });
562
+ }, $ = (t) => {
563
+ let { apiGatewayUrl: n } = e();
564
+ return i({
565
+ queryKey: s.paidEvents(t),
566
+ queryFn: async () => (await o(`query ComListPaidEvents($creatorId: ID, $pagination: PaginationInput) {
567
+ comListPaidEvents(creatorId: $creatorId, pagination: $pagination) {
568
+ ${f(Z)}
569
+ }
570
+ }`, {
571
+ creatorId: t,
572
+ pagination: l()
573
+ }, n)).comListPaidEvents
574
+ });
575
+ }, xe = () => {
576
+ let { apiGatewayUrl: t } = e();
577
+ return i({
578
+ queryKey: s.myPaidEvents,
579
+ queryFn: async () => (await o(`query ComMyPaidEvents($pagination: PaginationInput) {
580
+ comMyPaidEvents(pagination: $pagination) { ${f(Z)} }
581
+ }`, { pagination: l() }, t)).comMyPaidEvents
582
+ });
583
+ }, Se = () => {
584
+ let { apiGatewayUrl: t } = e(), n = a();
585
+ return r({
586
+ mutationFn: async (e) => (await o(`mutation ComCreatePaidEvent($input: ComCreatePaidEventInput!) {
587
+ comCreatePaidEvent(input: $input) { ${Z} }
588
+ }`, { input: e }, t)).comCreatePaidEvent,
589
+ onSuccess: () => {
590
+ n.invalidateQueries({ queryKey: s.myPaidEvents });
591
+ }
592
+ });
593
+ }, Ce = () => {
594
+ let { apiGatewayUrl: t } = e(), n = a();
595
+ return r({
596
+ mutationFn: async ({ id: e, input: n }) => (await o(`mutation ComUpdatePaidEvent($id: ID!, $input: ComUpdatePaidEventInput!) {
597
+ comUpdatePaidEvent(id: $id, input: $input) { ${Z} }
598
+ }`, {
599
+ id: e,
600
+ input: n
601
+ }, t)).comUpdatePaidEvent,
602
+ onSuccess: () => {
603
+ n.invalidateQueries({ queryKey: s.myPaidEvents });
604
+ }
605
+ });
606
+ }, we = () => {
607
+ let { apiGatewayUrl: t } = e(), n = a();
608
+ return r({
609
+ mutationFn: async (e) => (await o("mutation ComArchivePaidEvent($id: ID!) { comArchivePaidEvent(id: $id) }", { id: e }, t)).comArchivePaidEvent,
610
+ onSuccess: () => {
611
+ n.invalidateQueries({ queryKey: s.myPaidEvents });
612
+ }
613
+ });
614
+ }, Te = (t) => {
615
+ let { apiGatewayUrl: n } = e();
616
+ return i({
617
+ queryKey: s.digitalProducts(t),
618
+ queryFn: async () => (await o(`query ComListDigitalProducts($creatorId: ID, $pagination: PaginationInput) {
619
+ comListDigitalProducts(creatorId: $creatorId, pagination: $pagination) {
620
+ ${f(Q)}
621
+ }
622
+ }`, {
623
+ creatorId: t,
624
+ pagination: l()
625
+ }, n)).comListDigitalProducts
626
+ });
627
+ }, Ee = () => {
628
+ let { apiGatewayUrl: t } = e();
629
+ return i({
630
+ queryKey: s.myDigitalProducts,
631
+ queryFn: async () => (await o(`query ComMyDigitalProducts($pagination: PaginationInput) {
632
+ comMyDigitalProducts(pagination: $pagination) { ${f(Q)} }
633
+ }`, { pagination: l() }, t)).comMyDigitalProducts
634
+ });
635
+ }, De = () => {
636
+ let { apiGatewayUrl: t } = e(), n = a();
637
+ return r({
638
+ mutationFn: async (e) => (await o(`mutation ComCreateDigitalProduct($input: ComCreateDigitalProductInput!) {
639
+ comCreateDigitalProduct(input: $input) { ${Q} }
640
+ }`, { input: e }, t)).comCreateDigitalProduct,
641
+ onSuccess: () => {
642
+ n.invalidateQueries({ queryKey: s.myDigitalProducts });
643
+ }
644
+ });
645
+ }, Oe = () => {
646
+ let { apiGatewayUrl: t } = e(), n = a();
647
+ return r({
648
+ mutationFn: async (e) => (await o("mutation ComArchiveDigitalProduct($id: ID!) { comArchiveDigitalProduct(id: $id) }", { id: e }, t)).comArchiveDigitalProduct,
649
+ onSuccess: () => {
650
+ n.invalidateQueries({ queryKey: s.myDigitalProducts });
651
+ }
652
+ });
653
+ }, ke = () => {
654
+ let { apiGatewayUrl: t } = e();
655
+ return i({
656
+ queryKey: s.myReceivedTips,
657
+ queryFn: async () => (await o(`query ComMyReceivedTips($pagination: PaginationInput) {
658
+ comMyReceivedTips(pagination: $pagination) { ${f(ge)} }
659
+ }`, { pagination: l() }, t)).comMyReceivedTips
660
+ });
449
661
  };
450
662
  //#endregion
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 };
663
+ export { W as useComAddComment, Oe as useComArchiveDigitalProduct, be as useComArchiveMembershipTier, we as useComArchivePaidEvent, ie as useComCircle, re as useComCircles, de as useComClosePoll, H as useComCommentAddedLive, U as useComComments, N as useComCreateChannel, O as useComCreateCircle, De as useComCreateDigitalProduct, oe as useComCreateEvent, ye as useComCreateMembershipTier, Se as useComCreatePaidEvent, ue as useComCreatePoll, L as useComCreatePost, Y as useComEvent, ae as useComEventLive, J as useComEvents, K as useComFollow, k as useComJoinCircle, A as useComLeaveCircle, Te as useComListDigitalProducts, _e as useComListMembershipTiers, $ as useComListPaidEvents, M as useComMemberships, Ee as useComMyDigitalProducts, I as useComMyFeed, G as useComMyFollows, ve as useComMyMembershipTiers, xe as useComMyPaidEvents, ke as useComMyReceivedTips, le as useComPolls, F as useComPost, V as useComPostAddedLive, P as useComPosts, me as useComProfile, pe as useComProfiles, B as useComReactToPost, z as useComRemovePost, ce as useComRsvpEvent, j as useComSetMemberRole, se as useComTransitionEvent, q as useComUnfollow, Ce as useComUpdatePaidEvent, R as useComUpdatePost, he as useComUpsertProfile, fe as useComVotePoll };
452
664
 
453
665
  //# sourceMappingURL=useComradeCircleApi.js.map