@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.
- 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/useComSubscription.d.ts +18 -0
- package/dist/comradecircle/hooks/useComSubscription.d.ts.map +1 -0
- package/dist/comradecircle/hooks/useComSubscription.js +110 -0
- package/dist/comradecircle/hooks/useComSubscription.js.map +1 -0
- package/dist/comradecircle/hooks/useComradeCircleApi.d.ts +51 -1
- package/dist/comradecircle/hooks/useComradeCircleApi.d.ts.map +1 -1
- package/dist/comradecircle/hooks/useComradeCircleApi.js +435 -223
- package/dist/comradecircle/hooks/useComradeCircleApi.js.map +1 -1
- package/dist/comradecircle/pages/circles/CircleDetailPage.d.ts.map +1 -1
- package/dist/comradecircle/pages/circles/CircleDetailPage.js +268 -266
- package/dist/comradecircle/pages/circles/CircleDetailPage.js.map +1 -1
- package/dist/comradecircle/pages/events/EventDetailPage.d.ts.map +1 -1
- package/dist/comradecircle/pages/events/EventDetailPage.js +84 -82
- package/dist/comradecircle/pages/events/EventDetailPage.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/posts/PostThreadPage.d.ts.map +1 -1
- package/dist/comradecircle/pages/posts/PostThreadPage.js +26 -24
- package/dist/comradecircle/pages/posts/PostThreadPage.js.map +1 -1
- 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/dist/comradecircle/utils/shellBridge.d.ts +45 -0
- package/dist/comradecircle/utils/shellBridge.d.ts.map +1 -0
- package/dist/comradecircle/utils/shellBridge.js +19 -0
- package/dist/comradecircle/utils/shellBridge.js.map +1 -0
- 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 {
|
|
5
|
-
import {
|
|
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
|
|
8
|
-
let i =
|
|
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
|
|
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(),
|
|
18
|
-
if (!
|
|
19
|
-
return
|
|
20
|
-
},
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
},
|
|
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 { ${
|
|
78
|
-
`,
|
|
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 { ${
|
|
81
|
-
`,
|
|
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:
|
|
84
|
-
memberships:
|
|
85
|
-
}),
|
|
109
|
+
channels: S(e.channels),
|
|
110
|
+
memberships: S(e.memberships)
|
|
111
|
+
}), w = (e) => ({
|
|
86
112
|
...e,
|
|
87
|
-
reactions:
|
|
88
|
-
comments:
|
|
89
|
-
}),
|
|
113
|
+
reactions: S(e.reactions),
|
|
114
|
+
comments: S(e.comments)
|
|
115
|
+
}), T = (e) => ({
|
|
90
116
|
...e,
|
|
91
|
-
options:
|
|
92
|
-
}),
|
|
117
|
+
options: S(e.options)
|
|
118
|
+
}), E = (e) => ({
|
|
93
119
|
...e,
|
|
94
|
-
rsvps:
|
|
95
|
-
}),
|
|
120
|
+
rsvps: S(e.rsvps)
|
|
121
|
+
}), D = (e, t) => ({
|
|
96
122
|
items: (e.items ?? []).map(t),
|
|
97
123
|
pageInfo: e.pageInfo ?? { hasMore: !1 }
|
|
98
|
-
}),
|
|
124
|
+
}), re = (t = {}) => {
|
|
99
125
|
let { apiGatewayUrl: n } = e();
|
|
100
|
-
return
|
|
101
|
-
queryKey: [...
|
|
102
|
-
queryFn: async () =>
|
|
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
|
-
${
|
|
130
|
+
${f(`${d} channels { ${f("id")} }`)}
|
|
105
131
|
}
|
|
106
132
|
}`, {
|
|
107
133
|
status: t.status,
|
|
108
134
|
visibility: t.visibility,
|
|
109
|
-
pagination:
|
|
110
|
-
}, n)).comListCircles,
|
|
135
|
+
pagination: l(t.pagination)
|
|
136
|
+
}, n)).comListCircles, C)
|
|
111
137
|
});
|
|
112
|
-
},
|
|
138
|
+
}, ie = (t) => {
|
|
113
139
|
let { apiGatewayUrl: n } = e();
|
|
114
|
-
return
|
|
115
|
-
queryKey:
|
|
140
|
+
return i({
|
|
141
|
+
queryKey: s.circle(t ?? ""),
|
|
116
142
|
enabled: !!t,
|
|
117
143
|
queryFn: async () => {
|
|
118
|
-
let e = await
|
|
144
|
+
let e = await o(`query ComCircle($id: ID!) {
|
|
119
145
|
comCircle(id: $id) {
|
|
120
|
-
${
|
|
121
|
-
channels { ${
|
|
122
|
-
memberships { ${
|
|
146
|
+
${d}
|
|
147
|
+
channels { ${f(u)} }
|
|
148
|
+
memberships { ${f(b)} }
|
|
123
149
|
}
|
|
124
150
|
}`, { id: t }, n);
|
|
125
|
-
return e.comCircle ?
|
|
151
|
+
return e.comCircle ? C(e.comCircle) : null;
|
|
126
152
|
}
|
|
127
153
|
});
|
|
128
|
-
},
|
|
129
|
-
let { apiGatewayUrl: t } = e(),
|
|
130
|
-
return
|
|
131
|
-
mutationFn: async (e) =>
|
|
132
|
-
comCreateCircle(input: $input) { ${
|
|
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: () =>
|
|
160
|
+
onSuccess: () => n.invalidateQueries({ queryKey: s.circles })
|
|
135
161
|
});
|
|
136
|
-
},
|
|
137
|
-
let { apiGatewayUrl: t } = e(),
|
|
138
|
-
return
|
|
139
|
-
mutationFn: async (e) => (await
|
|
140
|
-
comJoinCircle(circleId: $circleId) { ${
|
|
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
|
-
|
|
169
|
+
n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
144
170
|
}
|
|
145
171
|
});
|
|
146
|
-
},
|
|
147
|
-
let { apiGatewayUrl: t } = e(),
|
|
148
|
-
return
|
|
149
|
-
mutationFn: async (e) => (await
|
|
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
|
-
|
|
177
|
+
n.invalidateQueries({ queryKey: s.circles }), n.invalidateQueries({ queryKey: s.circle(t) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
152
178
|
}
|
|
153
179
|
});
|
|
154
|
-
},
|
|
155
|
-
let { apiGatewayUrl: t } = e(),
|
|
156
|
-
return
|
|
157
|
-
mutationFn: async (e) => (await
|
|
158
|
-
comSetMemberRole(membershipId: $membershipId, role: $role) { ${
|
|
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
|
-
|
|
190
|
+
n.invalidateQueries({ queryKey: s.circle(e.circleId) }), n.invalidateQueries({ queryKey: s.memberships });
|
|
165
191
|
}
|
|
166
192
|
});
|
|
167
|
-
},
|
|
193
|
+
}, M = (t = {}) => {
|
|
168
194
|
let { apiGatewayUrl: n } = e();
|
|
169
|
-
return
|
|
170
|
-
queryKey: [...
|
|
171
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
199
|
+
items { ${b} }
|
|
174
200
|
pageInfo { cursor hasMore }
|
|
175
201
|
}
|
|
176
202
|
}`, {
|
|
177
203
|
circleId: t.circleId,
|
|
178
204
|
status: t.status,
|
|
179
|
-
pagination:
|
|
205
|
+
pagination: l(t.pagination)
|
|
180
206
|
}, n)).comListMemberships
|
|
181
207
|
});
|
|
182
|
-
},
|
|
183
|
-
let { apiGatewayUrl: t } = e(),
|
|
184
|
-
return
|
|
185
|
-
mutationFn: async (e) => (await
|
|
186
|
-
comCreateChannel(input: $input) { ${
|
|
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
|
-
|
|
215
|
+
n.invalidateQueries({ queryKey: s.channels(e.circleId) }), n.invalidateQueries({ queryKey: s.circle(e.circleId) });
|
|
190
216
|
}
|
|
191
217
|
});
|
|
192
|
-
},
|
|
218
|
+
}, P = (t = {}) => {
|
|
193
219
|
let { apiGatewayUrl: n } = e();
|
|
194
|
-
return
|
|
220
|
+
return i({
|
|
195
221
|
queryKey: [
|
|
196
|
-
...
|
|
222
|
+
...s.posts(t.channelId ?? "all"),
|
|
197
223
|
t.status,
|
|
198
224
|
t.pagination
|
|
199
225
|
],
|
|
200
226
|
enabled: !!t.channelId,
|
|
201
|
-
queryFn: async () =>
|
|
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
|
|
229
|
+
${f(m)}
|
|
204
230
|
}
|
|
205
231
|
}`, {
|
|
206
232
|
channelId: t.channelId,
|
|
207
233
|
status: t.status,
|
|
208
|
-
pagination:
|
|
209
|
-
}, n)).comListPosts,
|
|
234
|
+
pagination: l(t.pagination)
|
|
235
|
+
}, n)).comListPosts, w)
|
|
210
236
|
});
|
|
211
|
-
},
|
|
237
|
+
}, F = (t) => {
|
|
212
238
|
let { apiGatewayUrl: n } = e();
|
|
213
|
-
return
|
|
214
|
-
queryKey:
|
|
239
|
+
return i({
|
|
240
|
+
queryKey: s.post(t ?? ""),
|
|
215
241
|
enabled: !!t,
|
|
216
242
|
queryFn: async () => {
|
|
217
|
-
let e = await
|
|
243
|
+
let e = await o(`query ComPost($id: ID!) {
|
|
218
244
|
comPost(id: $id) {
|
|
219
|
-
${
|
|
220
|
-
comments { ${
|
|
245
|
+
${m}
|
|
246
|
+
comments { ${f(p)} }
|
|
221
247
|
}
|
|
222
248
|
}`, { id: t }, n);
|
|
223
|
-
return e.comPost ?
|
|
249
|
+
return e.comPost ? w(e.comPost) : null;
|
|
224
250
|
}
|
|
225
251
|
});
|
|
226
|
-
},
|
|
252
|
+
}, I = (t) => {
|
|
227
253
|
let { apiGatewayUrl: n } = e();
|
|
228
|
-
return
|
|
229
|
-
queryKey: [...
|
|
230
|
-
queryFn: async () =>
|
|
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
|
|
258
|
+
${f(m)}
|
|
233
259
|
}
|
|
234
|
-
}`, { pagination:
|
|
260
|
+
}`, { pagination: l(t) }, n)).comMyFeed, w)
|
|
235
261
|
});
|
|
236
|
-
},
|
|
237
|
-
let { apiGatewayUrl: t } = e(),
|
|
238
|
-
return
|
|
239
|
-
mutationFn: async (e) =>
|
|
240
|
-
comCreatePost(input: $input) { ${
|
|
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
|
-
|
|
269
|
+
n.invalidateQueries({ queryKey: s.posts(e.channelId) }), n.invalidateQueries({ queryKey: s.feed });
|
|
244
270
|
}
|
|
245
271
|
});
|
|
246
|
-
},
|
|
247
|
-
let { apiGatewayUrl: t } = e(),
|
|
248
|
-
return
|
|
249
|
-
mutationFn: async (e) =>
|
|
250
|
-
comUpdatePost(id: $id, input: $input) { ${
|
|
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
|
-
|
|
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
|
-
},
|
|
257
|
-
let { apiGatewayUrl: t } = e(),
|
|
258
|
-
return
|
|
259
|
-
mutationFn: async (e) => (await
|
|
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 &&
|
|
287
|
+
t.channelId && n.invalidateQueries({ queryKey: s.posts(t.channelId) }), n.invalidateQueries({ queryKey: s.feed });
|
|
262
288
|
}
|
|
263
289
|
});
|
|
264
|
-
},
|
|
265
|
-
let { apiGatewayUrl: t } = e(),
|
|
266
|
-
return
|
|
267
|
-
mutationFn: async (e) =>
|
|
268
|
-
comReactToPost(postId: $postId, type: $type) { ${
|
|
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
|
-
|
|
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
|
-
},
|
|
328
|
+
}, U = (t) => {
|
|
275
329
|
let { apiGatewayUrl: n } = e();
|
|
276
|
-
return
|
|
277
|
-
queryKey:
|
|
330
|
+
return i({
|
|
331
|
+
queryKey: s.comments(t ?? ""),
|
|
278
332
|
enabled: !!t,
|
|
279
|
-
queryFn: async () =>
|
|
280
|
-
comListComments(postId: $postId) { ${
|
|
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
|
-
},
|
|
284
|
-
let { apiGatewayUrl: t } = e(),
|
|
285
|
-
return
|
|
286
|
-
mutationFn: async (e) => (await
|
|
287
|
-
comAddComment(input: $input) { ${
|
|
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
|
-
|
|
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
|
-
},
|
|
347
|
+
}, G = (t) => {
|
|
294
348
|
let { apiGatewayUrl: n } = e();
|
|
295
|
-
return
|
|
296
|
-
queryKey: [...
|
|
297
|
-
queryFn: async () =>
|
|
298
|
-
comMyFollows(targetType: $targetType) { ${
|
|
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
|
-
},
|
|
302
|
-
let { apiGatewayUrl: t } = e(),
|
|
303
|
-
return
|
|
304
|
-
mutationFn: async (e) => (await
|
|
305
|
-
comFollow(input: $input) { ${
|
|
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
|
-
|
|
362
|
+
n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
|
|
309
363
|
}
|
|
310
364
|
});
|
|
311
|
-
},
|
|
312
|
-
let { apiGatewayUrl: t } = e(),
|
|
313
|
-
return
|
|
314
|
-
mutationFn: async (e) => (await
|
|
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
|
-
|
|
370
|
+
n.invalidateQueries({ queryKey: s.follows }), n.invalidateQueries({ queryKey: s.feed });
|
|
317
371
|
}
|
|
318
372
|
});
|
|
319
|
-
},
|
|
373
|
+
}, J = (t = {}) => {
|
|
320
374
|
let { apiGatewayUrl: n } = e();
|
|
321
|
-
return
|
|
322
|
-
queryKey: [...
|
|
323
|
-
queryFn: async () =>
|
|
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
|
-
${
|
|
379
|
+
${f(v)}
|
|
326
380
|
}
|
|
327
381
|
}`, {
|
|
328
382
|
circleId: t.circleId,
|
|
329
383
|
status: t.status,
|
|
330
|
-
pagination:
|
|
331
|
-
}, n)).comListEvents,
|
|
384
|
+
pagination: l(t.pagination)
|
|
385
|
+
}, n)).comListEvents, E)
|
|
332
386
|
});
|
|
333
|
-
},
|
|
387
|
+
}, Y = (t) => {
|
|
334
388
|
let { apiGatewayUrl: n } = e();
|
|
335
|
-
return
|
|
336
|
-
queryKey:
|
|
389
|
+
return i({
|
|
390
|
+
queryKey: s.event(t ?? ""),
|
|
337
391
|
enabled: !!t,
|
|
338
392
|
queryFn: async () => {
|
|
339
|
-
let e = await
|
|
393
|
+
let e = await o(`query ComEvent($id: ID!) {
|
|
340
394
|
comEvent(id: $id) {
|
|
341
|
-
${
|
|
342
|
-
rsvps { ${
|
|
395
|
+
${v}
|
|
396
|
+
rsvps { ${f(_)} }
|
|
343
397
|
}
|
|
344
398
|
}`, { id: t }, n);
|
|
345
|
-
return e.comEvent ?
|
|
399
|
+
return e.comEvent ? E(e.comEvent) : null;
|
|
346
400
|
}
|
|
347
401
|
});
|
|
348
|
-
},
|
|
349
|
-
let
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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: () =>
|
|
428
|
+
onSuccess: () => n.invalidateQueries({ queryKey: s.events })
|
|
355
429
|
});
|
|
356
|
-
},
|
|
357
|
-
let { apiGatewayUrl: t } = e(),
|
|
358
|
-
return
|
|
359
|
-
mutationFn: async (e) =>
|
|
360
|
-
comTransitionEvent(id: $id, status: $status) { ${
|
|
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
|
-
|
|
437
|
+
n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.id) });
|
|
364
438
|
}
|
|
365
439
|
});
|
|
366
|
-
},
|
|
367
|
-
let { apiGatewayUrl: t } = e(),
|
|
368
|
-
return
|
|
369
|
-
mutationFn: async (e) => (await
|
|
370
|
-
comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ${
|
|
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
|
-
|
|
447
|
+
n.invalidateQueries({ queryKey: s.events }), n.invalidateQueries({ queryKey: s.event(e.eventId) });
|
|
374
448
|
}
|
|
375
449
|
});
|
|
376
|
-
},
|
|
377
|
-
let { apiGatewayUrl:
|
|
378
|
-
return
|
|
379
|
-
queryKey: [...
|
|
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 () =>
|
|
382
|
-
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)} }
|
|
383
457
|
}`, {
|
|
384
458
|
circleId: t,
|
|
385
459
|
status: n
|
|
386
|
-
},
|
|
460
|
+
}, r)).comListPolls).map(T)
|
|
387
461
|
});
|
|
388
|
-
},
|
|
389
|
-
let { apiGatewayUrl: t } = e(),
|
|
390
|
-
return
|
|
391
|
-
mutationFn: async (e) =>
|
|
392
|
-
comCreatePoll(input: $input) { ${
|
|
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) =>
|
|
395
|
-
});
|
|
396
|
-
},
|
|
397
|
-
let { apiGatewayUrl: t } = e(),
|
|
398
|
-
return
|
|
399
|
-
mutationFn: async (e) =>
|
|
400
|
-
onSuccess: (e) =>
|
|
401
|
-
});
|
|
402
|
-
},
|
|
403
|
-
let { apiGatewayUrl: t } = e(),
|
|
404
|
-
return
|
|
405
|
-
mutationFn: async (e) => (await
|
|
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 &&
|
|
486
|
+
t.circleId && n.invalidateQueries({ queryKey: s.polls(t.circleId) }), n.invalidateQueries({ queryKey: s.poll(t.pollId) });
|
|
413
487
|
}
|
|
414
488
|
});
|
|
415
|
-
},
|
|
489
|
+
}, pe = (t = {}) => {
|
|
416
490
|
let { apiGatewayUrl: n } = e();
|
|
417
|
-
return
|
|
418
|
-
queryKey: [...
|
|
419
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
495
|
+
items { ${y} }
|
|
422
496
|
pageInfo { cursor hasMore }
|
|
423
497
|
}
|
|
424
498
|
}`, {
|
|
425
499
|
discoverable: t.discoverable,
|
|
426
|
-
pagination:
|
|
500
|
+
pagination: l(t.pagination)
|
|
427
501
|
}, n)).comListProfiles
|
|
428
502
|
});
|
|
429
|
-
},
|
|
503
|
+
}, me = (t) => {
|
|
430
504
|
let { apiGatewayUrl: n } = e();
|
|
431
|
-
return
|
|
432
|
-
queryKey:
|
|
505
|
+
return i({
|
|
506
|
+
queryKey: s.profile(t ?? ""),
|
|
433
507
|
enabled: !!t,
|
|
434
508
|
staleTime: 600 * 1e3,
|
|
435
|
-
queryFn: async () => (await
|
|
436
|
-
comProfile(memberId: $memberId) { ${
|
|
509
|
+
queryFn: async () => (await o(`query ComProfile($memberId: ID!) {
|
|
510
|
+
comProfile(memberId: $memberId) { ${y} }
|
|
437
511
|
}`, { memberId: t }, n)).comProfile
|
|
438
512
|
});
|
|
439
|
-
},
|
|
440
|
-
let { apiGatewayUrl: t } = e(),
|
|
441
|
-
return
|
|
442
|
-
mutationFn: async (e) => (await
|
|
443
|
-
comUpsertProfile(input: $input) { ${
|
|
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
|
-
|
|
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 {
|
|
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
|