@burdenoff/microfe-comradecircle 2026.730.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.
- package/dist/comradecircle/ComradeCircleRoutes.d.ts.map +1 -1
- package/dist/comradecircle/ComradeCircleRoutes.js +11 -7
- package/dist/comradecircle/ComradeCircleRoutes.js.map +1 -1
- package/dist/comradecircle/hooks/useComradeCircleApi.d.ts +28 -1
- package/dist/comradecircle/hooks/useComradeCircleApi.d.ts.map +1 -1
- package/dist/comradecircle/hooks/useComradeCircleApi.js +336 -173
- package/dist/comradecircle/hooks/useComradeCircleApi.js.map +1 -1
- package/dist/comradecircle/pages/members/MemberProfilePage.d.ts.map +1 -1
- package/dist/comradecircle/pages/members/MemberProfilePage.js +251 -129
- package/dist/comradecircle/pages/members/MemberProfilePage.js.map +1 -1
- package/dist/comradecircle/pages/monetization/MonetizationPage.d.ts +13 -0
- package/dist/comradecircle/pages/monetization/MonetizationPage.d.ts.map +1 -0
- package/dist/comradecircle/pages/monetization/MonetizationPage.js +596 -0
- package/dist/comradecircle/pages/monetization/MonetizationPage.js.map +1 -0
- package/dist/comradecircle/pages/profile/MyProfilePage.d.ts.map +1 -1
- package/dist/comradecircle/pages/profile/MyProfilePage.js +101 -96
- package/dist/comradecircle/pages/profile/MyProfilePage.js.map +1 -1
- package/dist/comradecircle/types/index.d.ts +126 -0
- package/dist/comradecircle/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,12 +3,12 @@ import "../context/index.js";
|
|
|
3
3
|
import { clearGraphqlResponseCache as t } from "../lib/graphql-cache.js";
|
|
4
4
|
import { useComSubscription as n } from "./useComSubscription.js";
|
|
5
5
|
import { useMutation as r, useQuery as i, useQueryClient as a } from "@tanstack/react-query";
|
|
6
|
-
import { graphqlFetch as
|
|
6
|
+
import { graphqlFetch as ee } from "@burdenoff/fe-libs/shared/graphql";
|
|
7
7
|
//#region src/comradecircle/hooks/useComradeCircleApi.ts
|
|
8
|
-
var
|
|
9
|
-
let i =
|
|
8
|
+
var te = (e) => /^\s*mutation\b/.test(e), o = async (e, n, r) => {
|
|
9
|
+
let i = te(e);
|
|
10
10
|
i && t();
|
|
11
|
-
let a = await
|
|
11
|
+
let a = await ee({
|
|
12
12
|
gateway: "workspace",
|
|
13
13
|
baseUrl: r,
|
|
14
14
|
query: e,
|
|
@@ -18,7 +18,7 @@ var ee = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
18
18
|
if (i && t(), a.errors?.length) throw Error(a.errors[0]?.message ?? "GraphQL request failed");
|
|
19
19
|
if (!a.data) throw Error("GraphQL response did not include data");
|
|
20
20
|
return a.data;
|
|
21
|
-
},
|
|
21
|
+
}, s = {
|
|
22
22
|
circles: ["comradecircle", "circles"],
|
|
23
23
|
circle: (e) => [
|
|
24
24
|
"comradecircle",
|
|
@@ -69,210 +69,235 @@ var ee = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
69
69
|
"profile",
|
|
70
70
|
e
|
|
71
71
|
],
|
|
72
|
-
memberships: ["comradecircle", "memberships"]
|
|
73
|
-
|
|
74
|
-
|
|
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 };
|
|
75
100
|
return t.offset != null && (n.offset = t.offset), t.cursor != null && (n.cursor = t.cursor), n;
|
|
76
|
-
},
|
|
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 = `
|
|
77
102
|
id workspaceId channelId authorId body status tags attachmentFileIds isPinned
|
|
78
|
-
reactionCount commentCount reactions { ${
|
|
79
|
-
`,
|
|
103
|
+
reactionCount commentCount reactions { ${f(ne)} } createdAt updatedAt
|
|
104
|
+
`, h = "id workspaceId pollId label position voteCount createdAt", g = `
|
|
80
105
|
id workspaceId circleId question allowMultiple isAnonymous status closesAt
|
|
81
|
-
options { ${
|
|
82
|
-
`,
|
|
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) => ({
|
|
83
108
|
...e,
|
|
84
|
-
channels:
|
|
85
|
-
memberships:
|
|
86
|
-
}),
|
|
109
|
+
channels: S(e.channels),
|
|
110
|
+
memberships: S(e.memberships)
|
|
111
|
+
}), w = (e) => ({
|
|
87
112
|
...e,
|
|
88
|
-
reactions:
|
|
89
|
-
comments:
|
|
90
|
-
}),
|
|
113
|
+
reactions: S(e.reactions),
|
|
114
|
+
comments: S(e.comments)
|
|
115
|
+
}), T = (e) => ({
|
|
91
116
|
...e,
|
|
92
|
-
options:
|
|
93
|
-
}),
|
|
117
|
+
options: S(e.options)
|
|
118
|
+
}), E = (e) => ({
|
|
94
119
|
...e,
|
|
95
|
-
rsvps:
|
|
96
|
-
}),
|
|
120
|
+
rsvps: S(e.rsvps)
|
|
121
|
+
}), D = (e, t) => ({
|
|
97
122
|
items: (e.items ?? []).map(t),
|
|
98
123
|
pageInfo: e.pageInfo ?? { hasMore: !1 }
|
|
99
|
-
}),
|
|
124
|
+
}), re = (t = {}) => {
|
|
100
125
|
let { apiGatewayUrl: n } = e();
|
|
101
126
|
return i({
|
|
102
|
-
queryKey: [...
|
|
103
|
-
queryFn: async () =>
|
|
127
|
+
queryKey: [...s.circles, t],
|
|
128
|
+
queryFn: async () => D((await o(`query ComListCircles($status: ComCircleStatus, $visibility: ComCircleVisibility, $pagination: PaginationInput) {
|
|
104
129
|
comListCircles(status: $status, visibility: $visibility, pagination: $pagination) {
|
|
105
|
-
${
|
|
130
|
+
${f(`${d} channels { ${f("id")} }`)}
|
|
106
131
|
}
|
|
107
132
|
}`, {
|
|
108
133
|
status: t.status,
|
|
109
134
|
visibility: t.visibility,
|
|
110
|
-
pagination:
|
|
111
|
-
}, n)).comListCircles,
|
|
135
|
+
pagination: l(t.pagination)
|
|
136
|
+
}, n)).comListCircles, C)
|
|
112
137
|
});
|
|
113
|
-
},
|
|
138
|
+
}, ie = (t) => {
|
|
114
139
|
let { apiGatewayUrl: n } = e();
|
|
115
140
|
return i({
|
|
116
|
-
queryKey:
|
|
141
|
+
queryKey: s.circle(t ?? ""),
|
|
117
142
|
enabled: !!t,
|
|
118
143
|
queryFn: async () => {
|
|
119
|
-
let e = await
|
|
144
|
+
let e = await o(`query ComCircle($id: ID!) {
|
|
120
145
|
comCircle(id: $id) {
|
|
121
|
-
${
|
|
122
|
-
channels { ${
|
|
123
|
-
memberships { ${
|
|
146
|
+
${d}
|
|
147
|
+
channels { ${f(u)} }
|
|
148
|
+
memberships { ${f(b)} }
|
|
124
149
|
}
|
|
125
150
|
}`, { id: t }, n);
|
|
126
|
-
return e.comCircle ?
|
|
151
|
+
return e.comCircle ? C(e.comCircle) : null;
|
|
127
152
|
}
|
|
128
153
|
});
|
|
129
|
-
},
|
|
154
|
+
}, O = () => {
|
|
130
155
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
131
156
|
return r({
|
|
132
|
-
mutationFn: async (e) =>
|
|
133
|
-
comCreateCircle(input: $input) { ${
|
|
157
|
+
mutationFn: async (e) => C((await o(`mutation ComCreateCircle($input: ComCreateCircleInput!) {
|
|
158
|
+
comCreateCircle(input: $input) { ${d} }
|
|
134
159
|
}`, { input: e }, t)).comCreateCircle),
|
|
135
|
-
onSuccess: () => n.invalidateQueries({ queryKey:
|
|
160
|
+
onSuccess: () => n.invalidateQueries({ queryKey: s.circles })
|
|
136
161
|
});
|
|
137
|
-
},
|
|
162
|
+
}, k = () => {
|
|
138
163
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
139
164
|
return r({
|
|
140
|
-
mutationFn: async (e) => (await
|
|
141
|
-
comJoinCircle(circleId: $circleId) { ${
|
|
165
|
+
mutationFn: async (e) => (await o(`mutation ComJoinCircle($circleId: ID!) {
|
|
166
|
+
comJoinCircle(circleId: $circleId) { ${b} }
|
|
142
167
|
}`, { circleId: e }, t)).comJoinCircle,
|
|
143
168
|
onSuccess: (e) => {
|
|
144
|
-
n.invalidateQueries({ queryKey:
|
|
169
|
+
n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
145
170
|
}
|
|
146
171
|
});
|
|
147
|
-
},
|
|
172
|
+
}, A = () => {
|
|
148
173
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
149
174
|
return r({
|
|
150
|
-
mutationFn: async (e) => (await
|
|
175
|
+
mutationFn: async (e) => (await o("mutation ComLeaveCircle($circleId: ID!) { comLeaveCircle(circleId: $circleId) }", { circleId: e }, t)).comLeaveCircle,
|
|
151
176
|
onSuccess: (e, t) => {
|
|
152
|
-
n.invalidateQueries({ queryKey:
|
|
177
|
+
n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(t) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
153
178
|
}
|
|
154
179
|
});
|
|
155
|
-
},
|
|
180
|
+
}, j = () => {
|
|
156
181
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
157
182
|
return r({
|
|
158
|
-
mutationFn: async (e) => (await
|
|
159
|
-
comSetMemberRole(membershipId: $membershipId, role: $role) { ${
|
|
183
|
+
mutationFn: async (e) => (await o(`mutation ComSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
|
|
184
|
+
comSetMemberRole(membershipId: $membershipId, role: $role) { ${b} }
|
|
160
185
|
}`, {
|
|
161
186
|
membershipId: e.membershipId,
|
|
162
187
|
role: e.role
|
|
163
188
|
}, t)).comSetMemberRole,
|
|
164
189
|
onSuccess: (e) => {
|
|
165
|
-
n.invalidateQueries({ queryKey:
|
|
190
|
+
n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
166
191
|
}
|
|
167
192
|
});
|
|
168
|
-
},
|
|
193
|
+
}, M = (t = {}) => {
|
|
169
194
|
let { apiGatewayUrl: n } = e();
|
|
170
195
|
return i({
|
|
171
|
-
queryKey: [...
|
|
172
|
-
queryFn: async () => (await
|
|
196
|
+
queryKey: [...s.memberships, t],
|
|
197
|
+
queryFn: async () => (await o(`query ComListMemberships($circleId: ID, $status: ComMembershipStatus, $pagination: PaginationInput) {
|
|
173
198
|
comListMemberships(circleId: $circleId, status: $status, pagination: $pagination) {
|
|
174
|
-
items { ${
|
|
199
|
+
items { ${b} }
|
|
175
200
|
pageInfo { cursor hasMore }
|
|
176
201
|
}
|
|
177
202
|
}`, {
|
|
178
203
|
circleId: t.circleId,
|
|
179
204
|
status: t.status,
|
|
180
|
-
pagination:
|
|
205
|
+
pagination: l(t.pagination)
|
|
181
206
|
}, n)).comListMemberships
|
|
182
207
|
});
|
|
183
|
-
},
|
|
208
|
+
}, N = () => {
|
|
184
209
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
185
210
|
return r({
|
|
186
|
-
mutationFn: async (e) => (await
|
|
187
|
-
comCreateChannel(input: $input) { ${
|
|
211
|
+
mutationFn: async (e) => (await o(`mutation ComCreateChannel($input: ComCreateChannelInput!) {
|
|
212
|
+
comCreateChannel(input: $input) { ${u} }
|
|
188
213
|
}`, { input: e }, t)).comCreateChannel,
|
|
189
214
|
onSuccess: (e) => {
|
|
190
|
-
n.invalidateQueries({ queryKey:
|
|
215
|
+
n.invalidateQueries({ queryKey: s.channels(e.circleId) }), n.invalidateQueries({ queryKey: s.circle(e.circleId) });
|
|
191
216
|
}
|
|
192
217
|
});
|
|
193
|
-
},
|
|
218
|
+
}, P = (t = {}) => {
|
|
194
219
|
let { apiGatewayUrl: n } = e();
|
|
195
220
|
return i({
|
|
196
221
|
queryKey: [
|
|
197
|
-
...
|
|
222
|
+
...s.posts(t.channelId ?? "all"),
|
|
198
223
|
t.status,
|
|
199
224
|
t.pagination
|
|
200
225
|
],
|
|
201
226
|
enabled: !!t.channelId,
|
|
202
|
-
queryFn: async () =>
|
|
227
|
+
queryFn: async () => D((await o(`query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
|
|
203
228
|
comListPosts(channelId: $channelId, status: $status, pagination: $pagination) {
|
|
204
|
-
${m
|
|
229
|
+
${f(m)}
|
|
205
230
|
}
|
|
206
231
|
}`, {
|
|
207
232
|
channelId: t.channelId,
|
|
208
233
|
status: t.status,
|
|
209
|
-
pagination:
|
|
210
|
-
}, n)).comListPosts,
|
|
234
|
+
pagination: l(t.pagination)
|
|
235
|
+
}, n)).comListPosts, w)
|
|
211
236
|
});
|
|
212
|
-
},
|
|
237
|
+
}, F = (t) => {
|
|
213
238
|
let { apiGatewayUrl: n } = e();
|
|
214
239
|
return i({
|
|
215
|
-
queryKey:
|
|
240
|
+
queryKey: s.post(t ?? ""),
|
|
216
241
|
enabled: !!t,
|
|
217
242
|
queryFn: async () => {
|
|
218
|
-
let e = await
|
|
243
|
+
let e = await o(`query ComPost($id: ID!) {
|
|
219
244
|
comPost(id: $id) {
|
|
220
|
-
${
|
|
221
|
-
comments { ${
|
|
245
|
+
${m}
|
|
246
|
+
comments { ${f(p)} }
|
|
222
247
|
}
|
|
223
248
|
}`, { id: t }, n);
|
|
224
|
-
return e.comPost ?
|
|
249
|
+
return e.comPost ? w(e.comPost) : null;
|
|
225
250
|
}
|
|
226
251
|
});
|
|
227
|
-
},
|
|
252
|
+
}, I = (t) => {
|
|
228
253
|
let { apiGatewayUrl: n } = e();
|
|
229
254
|
return i({
|
|
230
|
-
queryKey: [...
|
|
231
|
-
queryFn: async () =>
|
|
255
|
+
queryKey: [...s.feed, t],
|
|
256
|
+
queryFn: async () => D((await o(`query ComMyFeed($pagination: PaginationInput) {
|
|
232
257
|
comMyFeed(pagination: $pagination) {
|
|
233
|
-
${m
|
|
258
|
+
${f(m)}
|
|
234
259
|
}
|
|
235
|
-
}`, { pagination:
|
|
260
|
+
}`, { pagination: l(t) }, n)).comMyFeed, w)
|
|
236
261
|
});
|
|
237
|
-
},
|
|
262
|
+
}, L = () => {
|
|
238
263
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
239
264
|
return r({
|
|
240
|
-
mutationFn: async (e) =>
|
|
241
|
-
comCreatePost(input: $input) { ${
|
|
265
|
+
mutationFn: async (e) => w((await o(`mutation ComCreatePost($input: ComCreatePostInput!) {
|
|
266
|
+
comCreatePost(input: $input) { ${m} }
|
|
242
267
|
}`, { input: e }, t)).comCreatePost),
|
|
243
268
|
onSuccess: (e) => {
|
|
244
|
-
n.invalidateQueries({ queryKey:
|
|
269
|
+
n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.feed });
|
|
245
270
|
}
|
|
246
271
|
});
|
|
247
|
-
},
|
|
272
|
+
}, R = () => {
|
|
248
273
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
249
274
|
return r({
|
|
250
|
-
mutationFn: async (e) =>
|
|
251
|
-
comUpdatePost(id: $id, input: $input) { ${
|
|
275
|
+
mutationFn: async (e) => w((await o(`mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
|
|
276
|
+
comUpdatePost(id: $id, input: $input) { ${m} }
|
|
252
277
|
}`, e, t)).comUpdatePost),
|
|
253
278
|
onSuccess: (e) => {
|
|
254
|
-
n.invalidateQueries({ queryKey:
|
|
279
|
+
n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.post(e.id) }), n.invalidateQueries({ queryKey: s.feed });
|
|
255
280
|
}
|
|
256
281
|
});
|
|
257
|
-
},
|
|
282
|
+
}, z = () => {
|
|
258
283
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
259
284
|
return r({
|
|
260
|
-
mutationFn: async (e) => (await
|
|
285
|
+
mutationFn: async (e) => (await o("mutation ComRemovePost($id: ID!) { comRemovePost(id: $id) }", { id: e.id }, t)).comRemovePost,
|
|
261
286
|
onSuccess: (e, t) => {
|
|
262
|
-
t.channelId && n.invalidateQueries({ queryKey:
|
|
287
|
+
t.channelId && n.invalidateQueries({ queryKey: s.posts(t.channelId) }), n.invalidateQueries({ queryKey: s.feed });
|
|
263
288
|
}
|
|
264
289
|
});
|
|
265
|
-
},
|
|
290
|
+
}, B = () => {
|
|
266
291
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
267
292
|
return r({
|
|
268
|
-
mutationFn: async (e) =>
|
|
269
|
-
comReactToPost(postId: $postId, type: $type) { ${
|
|
293
|
+
mutationFn: async (e) => w((await o(`mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
|
|
294
|
+
comReactToPost(postId: $postId, type: $type) { ${m} }
|
|
270
295
|
}`, e, t)).comReactToPost),
|
|
271
296
|
onSuccess: (e) => {
|
|
272
|
-
n.invalidateQueries({ queryKey:
|
|
297
|
+
n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.post(e.id) }), n.invalidateQueries({ queryKey: s.feed });
|
|
273
298
|
}
|
|
274
299
|
});
|
|
275
|
-
},
|
|
300
|
+
}, V = (e) => {
|
|
276
301
|
let t = a();
|
|
277
302
|
n({
|
|
278
303
|
query: "subscription ComPostAdded($channelId: ID!) { comPostAdded(channelId: $channelId) { id } }",
|
|
@@ -280,13 +305,13 @@ var ee = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
280
305
|
operationName: "ComPostAdded",
|
|
281
306
|
enabled: !!e,
|
|
282
307
|
onData: () => {
|
|
283
|
-
e && t.invalidateQueries({ queryKey:
|
|
308
|
+
e && t.invalidateQueries({ queryKey: s.posts(e) });
|
|
284
309
|
},
|
|
285
310
|
pollFn: () => {
|
|
286
|
-
if (e) return t.invalidateQueries({ queryKey:
|
|
311
|
+
if (e) return t.invalidateQueries({ queryKey: s.posts(e) });
|
|
287
312
|
}
|
|
288
313
|
});
|
|
289
|
-
},
|
|
314
|
+
}, H = (e) => {
|
|
290
315
|
let t = a();
|
|
291
316
|
n({
|
|
292
317
|
query: "subscription ComCommentAdded($postId: ID!) { comCommentAdded(postId: $postId) { id } }",
|
|
@@ -294,89 +319,89 @@ var ee = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
294
319
|
operationName: "ComCommentAdded",
|
|
295
320
|
enabled: !!e,
|
|
296
321
|
onData: () => {
|
|
297
|
-
e && t.invalidateQueries({ queryKey:
|
|
322
|
+
e && t.invalidateQueries({ queryKey: s.post(e) });
|
|
298
323
|
},
|
|
299
324
|
pollFn: () => {
|
|
300
|
-
if (e) return t.invalidateQueries({ queryKey:
|
|
325
|
+
if (e) return t.invalidateQueries({ queryKey: s.post(e) });
|
|
301
326
|
}
|
|
302
327
|
});
|
|
303
|
-
},
|
|
328
|
+
}, U = (t) => {
|
|
304
329
|
let { apiGatewayUrl: n } = e();
|
|
305
330
|
return i({
|
|
306
|
-
queryKey:
|
|
331
|
+
queryKey: s.comments(t ?? ""),
|
|
307
332
|
enabled: !!t,
|
|
308
|
-
queryFn: async () =>
|
|
309
|
-
comListComments(postId: $postId) { ${
|
|
333
|
+
queryFn: async () => S((await o(`query ComListComments($postId: ID!) {
|
|
334
|
+
comListComments(postId: $postId) { ${f(p)} }
|
|
310
335
|
}`, { postId: t }, n)).comListComments)
|
|
311
336
|
});
|
|
312
|
-
},
|
|
337
|
+
}, W = () => {
|
|
313
338
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
314
339
|
return r({
|
|
315
|
-
mutationFn: async (e) => (await
|
|
316
|
-
comAddComment(input: $input) { ${
|
|
340
|
+
mutationFn: async (e) => (await o(`mutation ComAddComment($input: ComCreateCommentInput!) {
|
|
341
|
+
comAddComment(input: $input) { ${p} }
|
|
317
342
|
}`, { input: e }, t)).comAddComment,
|
|
318
343
|
onSuccess: (e) => {
|
|
319
|
-
n.invalidateQueries({ queryKey:
|
|
344
|
+
n.invalidateQueries({ queryKey: s.comments(e.postId) }), n.invalidateQueries({ queryKey: s.post(e.postId) }), n.invalidateQueries({ queryKey: s.feed });
|
|
320
345
|
}
|
|
321
346
|
});
|
|
322
|
-
},
|
|
347
|
+
}, G = (t) => {
|
|
323
348
|
let { apiGatewayUrl: n } = e();
|
|
324
349
|
return i({
|
|
325
|
-
queryKey: [...
|
|
326
|
-
queryFn: async () =>
|
|
327
|
-
comMyFollows(targetType: $targetType) { ${
|
|
350
|
+
queryKey: [...s.follows, t ?? "all"],
|
|
351
|
+
queryFn: async () => S((await o(`query ComMyFollows($targetType: ComFollowTargetType) {
|
|
352
|
+
comMyFollows(targetType: $targetType) { ${f(x)} }
|
|
328
353
|
}`, { targetType: t }, n)).comMyFollows)
|
|
329
354
|
});
|
|
330
|
-
},
|
|
355
|
+
}, K = () => {
|
|
331
356
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
332
357
|
return r({
|
|
333
|
-
mutationFn: async (e) => (await
|
|
334
|
-
comFollow(input: $input) { ${
|
|
358
|
+
mutationFn: async (e) => (await o(`mutation ComFollow($input: ComFollowInput!) {
|
|
359
|
+
comFollow(input: $input) { ${x} }
|
|
335
360
|
}`, { input: e }, t)).comFollow,
|
|
336
361
|
onSuccess: () => {
|
|
337
|
-
n.invalidateQueries({ queryKey:
|
|
362
|
+
n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
|
|
338
363
|
}
|
|
339
364
|
});
|
|
340
|
-
},
|
|
365
|
+
}, q = () => {
|
|
341
366
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
342
367
|
return r({
|
|
343
|
-
mutationFn: async (e) => (await
|
|
368
|
+
mutationFn: async (e) => (await o("mutation ComUnfollow($input: ComFollowInput!) { comUnfollow(input: $input) }", { input: e }, t)).comUnfollow,
|
|
344
369
|
onSuccess: () => {
|
|
345
|
-
n.invalidateQueries({ queryKey:
|
|
370
|
+
n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
|
|
346
371
|
}
|
|
347
372
|
});
|
|
348
|
-
},
|
|
373
|
+
}, J = (t = {}) => {
|
|
349
374
|
let { apiGatewayUrl: n } = e();
|
|
350
375
|
return i({
|
|
351
|
-
queryKey: [...
|
|
352
|
-
queryFn: async () =>
|
|
376
|
+
queryKey: [...s.events, t],
|
|
377
|
+
queryFn: async () => D((await o(`query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
|
|
353
378
|
comListEvents(circleId: $circleId, status: $status, pagination: $pagination) {
|
|
354
|
-
${
|
|
379
|
+
${f(v)}
|
|
355
380
|
}
|
|
356
381
|
}`, {
|
|
357
382
|
circleId: t.circleId,
|
|
358
383
|
status: t.status,
|
|
359
|
-
pagination:
|
|
360
|
-
}, n)).comListEvents,
|
|
384
|
+
pagination: l(t.pagination)
|
|
385
|
+
}, n)).comListEvents, E)
|
|
361
386
|
});
|
|
362
|
-
},
|
|
387
|
+
}, Y = (t) => {
|
|
363
388
|
let { apiGatewayUrl: n } = e();
|
|
364
389
|
return i({
|
|
365
|
-
queryKey:
|
|
390
|
+
queryKey: s.event(t ?? ""),
|
|
366
391
|
enabled: !!t,
|
|
367
392
|
queryFn: async () => {
|
|
368
|
-
let e = await
|
|
393
|
+
let e = await o(`query ComEvent($id: ID!) {
|
|
369
394
|
comEvent(id: $id) {
|
|
370
|
-
${
|
|
371
|
-
rsvps { ${
|
|
395
|
+
${v}
|
|
396
|
+
rsvps { ${f(_)} }
|
|
372
397
|
}
|
|
373
398
|
}`, { id: t }, n);
|
|
374
|
-
return e.comEvent ?
|
|
399
|
+
return e.comEvent ? E(e.comEvent) : null;
|
|
375
400
|
}
|
|
376
401
|
});
|
|
377
|
-
},
|
|
402
|
+
}, ae = (e) => {
|
|
378
403
|
let t = a(), r = () => {
|
|
379
|
-
if (e) return t.invalidateQueries({ queryKey:
|
|
404
|
+
if (e) return t.invalidateQueries({ queryKey: s.event(e) });
|
|
380
405
|
};
|
|
381
406
|
n({
|
|
382
407
|
query: "subscription ComEventUpdated($eventId: ID!) { comEventUpdated(eventId: $eventId) { id } }",
|
|
@@ -394,109 +419,247 @@ var ee = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
394
419
|
pollFn: () => {},
|
|
395
420
|
pollIntervalMs: 3e4
|
|
396
421
|
});
|
|
397
|
-
},
|
|
422
|
+
}, oe = () => {
|
|
398
423
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
399
424
|
return r({
|
|
400
|
-
mutationFn: async (e) =>
|
|
401
|
-
comCreateEvent(input: $input) { ${
|
|
425
|
+
mutationFn: async (e) => E((await o(`mutation ComCreateEvent($input: ComCreateEventInput!) {
|
|
426
|
+
comCreateEvent(input: $input) { ${v} }
|
|
402
427
|
}`, { input: e }, t)).comCreateEvent),
|
|
403
|
-
onSuccess: () => n.invalidateQueries({ queryKey:
|
|
428
|
+
onSuccess: () => n.invalidateQueries({ queryKey: s.events })
|
|
404
429
|
});
|
|
405
|
-
},
|
|
430
|
+
}, se = () => {
|
|
406
431
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
407
432
|
return r({
|
|
408
|
-
mutationFn: async (e) =>
|
|
409
|
-
comTransitionEvent(id: $id, status: $status) { ${
|
|
433
|
+
mutationFn: async (e) => E((await o(`mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
|
|
434
|
+
comTransitionEvent(id: $id, status: $status) { ${v} }
|
|
410
435
|
}`, e, t)).comTransitionEvent),
|
|
411
436
|
onSuccess: (e) => {
|
|
412
|
-
n.invalidateQueries({ queryKey:
|
|
437
|
+
n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.id) });
|
|
413
438
|
}
|
|
414
439
|
});
|
|
415
|
-
},
|
|
440
|
+
}, ce = () => {
|
|
416
441
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
417
442
|
return r({
|
|
418
|
-
mutationFn: async (e) => (await
|
|
419
|
-
comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${
|
|
443
|
+
mutationFn: async (e) => (await o(`mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
|
|
444
|
+
comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${_} }
|
|
420
445
|
}`, e, t)).comRsvpEvent,
|
|
421
446
|
onSuccess: (e) => {
|
|
422
|
-
n.invalidateQueries({ queryKey:
|
|
447
|
+
n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.eventId) });
|
|
423
448
|
}
|
|
424
449
|
});
|
|
425
|
-
},
|
|
450
|
+
}, le = (t, n) => {
|
|
426
451
|
let { apiGatewayUrl: r } = e();
|
|
427
452
|
return i({
|
|
428
|
-
queryKey: [...
|
|
453
|
+
queryKey: [...s.polls(t ?? ""), n ?? "all"],
|
|
429
454
|
enabled: !!t,
|
|
430
|
-
queryFn: async () =>
|
|
431
|
-
comListPolls(circleId: $circleId, status: $status) { ${
|
|
455
|
+
queryFn: async () => S((await o(`query ComListPolls($circleId: ID!, $status: ComPollStatus) {
|
|
456
|
+
comListPolls(circleId: $circleId, status: $status) { ${f(g)} }
|
|
432
457
|
}`, {
|
|
433
458
|
circleId: t,
|
|
434
459
|
status: n
|
|
435
|
-
}, r)).comListPolls).map(
|
|
460
|
+
}, r)).comListPolls).map(T)
|
|
436
461
|
});
|
|
437
|
-
},
|
|
462
|
+
}, ue = () => {
|
|
438
463
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
439
464
|
return r({
|
|
440
|
-
mutationFn: async (e) =>
|
|
441
|
-
comCreatePoll(input: $input) { ${
|
|
465
|
+
mutationFn: async (e) => T((await o(`mutation ComCreatePoll($input: ComCreatePollInput!) {
|
|
466
|
+
comCreatePoll(input: $input) { ${g} }
|
|
442
467
|
}`, { input: e }, t)).comCreatePoll),
|
|
443
|
-
onSuccess: (e) => n.invalidateQueries({ queryKey:
|
|
468
|
+
onSuccess: (e) => n.invalidateQueries({ queryKey: s.polls(e.circleId) })
|
|
444
469
|
});
|
|
445
|
-
},
|
|
470
|
+
}, de = () => {
|
|
446
471
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
447
472
|
return r({
|
|
448
|
-
mutationFn: async (e) =>
|
|
449
|
-
onSuccess: (e) => n.invalidateQueries({ queryKey:
|
|
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) })
|
|
450
475
|
});
|
|
451
|
-
},
|
|
476
|
+
}, fe = () => {
|
|
452
477
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
453
478
|
return r({
|
|
454
|
-
mutationFn: async (e) => (await
|
|
455
|
-
comVotePoll(pollId: $pollId, optionId: $optionId) { ${
|
|
479
|
+
mutationFn: async (e) => (await o(`mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
|
|
480
|
+
comVotePoll(pollId: $pollId, optionId: $optionId) { ${h} }
|
|
456
481
|
}`, {
|
|
457
482
|
pollId: e.pollId,
|
|
458
483
|
optionId: e.optionId
|
|
459
484
|
}, t)).comVotePoll,
|
|
460
485
|
onSuccess: (e, t) => {
|
|
461
|
-
t.circleId && n.invalidateQueries({ queryKey:
|
|
486
|
+
t.circleId && n.invalidateQueries({ queryKey: s.polls(t.circleId) }), n.invalidateQueries({ queryKey: s.poll(t.pollId) });
|
|
462
487
|
}
|
|
463
488
|
});
|
|
464
|
-
},
|
|
489
|
+
}, pe = (t = {}) => {
|
|
465
490
|
let { apiGatewayUrl: n } = e();
|
|
466
491
|
return i({
|
|
467
|
-
queryKey: [...
|
|
468
|
-
queryFn: async () => (await
|
|
492
|
+
queryKey: [...s.profiles, t],
|
|
493
|
+
queryFn: async () => (await o(`query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
|
|
469
494
|
comListProfiles(discoverable: $discoverable, pagination: $pagination) {
|
|
470
|
-
items { ${
|
|
495
|
+
items { ${y} }
|
|
471
496
|
pageInfo { cursor hasMore }
|
|
472
497
|
}
|
|
473
498
|
}`, {
|
|
474
499
|
discoverable: t.discoverable,
|
|
475
|
-
pagination:
|
|
500
|
+
pagination: l(t.pagination)
|
|
476
501
|
}, n)).comListProfiles
|
|
477
502
|
});
|
|
478
|
-
},
|
|
503
|
+
}, me = (t) => {
|
|
479
504
|
let { apiGatewayUrl: n } = e();
|
|
480
505
|
return i({
|
|
481
|
-
queryKey:
|
|
506
|
+
queryKey: s.profile(t ?? ""),
|
|
482
507
|
enabled: !!t,
|
|
483
508
|
staleTime: 600 * 1e3,
|
|
484
|
-
queryFn: async () => (await
|
|
485
|
-
comProfile(memberId: $memberId) { ${
|
|
509
|
+
queryFn: async () => (await o(`query ComProfile($memberId: ID!) {
|
|
510
|
+
comProfile(memberId: $memberId) { ${y} }
|
|
486
511
|
}`, { memberId: t }, n)).comProfile
|
|
487
512
|
});
|
|
488
|
-
},
|
|
513
|
+
}, he = () => {
|
|
489
514
|
let { apiGatewayUrl: t } = e(), n = a();
|
|
490
515
|
return r({
|
|
491
|
-
mutationFn: async (e) => (await
|
|
492
|
-
comUpsertProfile(input: $input) { ${
|
|
516
|
+
mutationFn: async (e) => (await o(`mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
|
|
517
|
+
comUpsertProfile(input: $input) { ${y} }
|
|
493
518
|
}`, { input: e }, t)).comUpsertProfile,
|
|
494
519
|
onSuccess: (e) => {
|
|
495
|
-
n.invalidateQueries({ queryKey:
|
|
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 });
|
|
496
560
|
}
|
|
497
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
|
+
});
|
|
498
661
|
};
|
|
499
662
|
//#endregion
|
|
500
|
-
export {
|
|
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 };
|
|
501
664
|
|
|
502
665
|
//# sourceMappingURL=useComradeCircleApi.js.map
|