@rawfli/types 0.0.1
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1573 -0
- package/dist/index.js +624 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { useMutation as y, useQuery as l, useInfiniteQuery as a } from "@tanstack/react-query";
|
|
2
|
+
import f from "axios";
|
|
3
|
+
const _t = {
|
|
4
|
+
title: "title",
|
|
5
|
+
content: "content",
|
|
6
|
+
both: "both"
|
|
7
|
+
}, zt = {
|
|
8
|
+
title: "title",
|
|
9
|
+
content: "content",
|
|
10
|
+
both: "both"
|
|
11
|
+
};
|
|
12
|
+
let q = "", m;
|
|
13
|
+
function Ht(t) {
|
|
14
|
+
q = t.baseURL, m = t.getToken;
|
|
15
|
+
}
|
|
16
|
+
const i = (t) => {
|
|
17
|
+
const e = m?.();
|
|
18
|
+
return f({
|
|
19
|
+
...t,
|
|
20
|
+
baseURL: q,
|
|
21
|
+
headers: {
|
|
22
|
+
...t.headers,
|
|
23
|
+
...e ? { Authorization: `Bearer ${e}` } : {}
|
|
24
|
+
}
|
|
25
|
+
}).then((r) => r.data);
|
|
26
|
+
}, K = (t, e, r) => i(
|
|
27
|
+
{
|
|
28
|
+
url: `/api/v1/boards/${t}/articles`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
params: e,
|
|
31
|
+
signal: r
|
|
32
|
+
}
|
|
33
|
+
), B = (t, e) => [
|
|
34
|
+
"infinite",
|
|
35
|
+
`/api/v1/boards/${t}/articles`,
|
|
36
|
+
...e ? [e] : []
|
|
37
|
+
], $ = (t, e) => [
|
|
38
|
+
`/api/v1/boards/${t}/articles`,
|
|
39
|
+
...e ? [e] : []
|
|
40
|
+
], v = (t, e, r) => {
|
|
41
|
+
const { query: n } = r ?? {};
|
|
42
|
+
return { queryKey: n?.queryKey ?? B(t, e), queryFn: ({ signal: s }) => K(t, e, s), enabled: !!t, ...n };
|
|
43
|
+
};
|
|
44
|
+
function Jt(t, e, r, n) {
|
|
45
|
+
const o = v(t, e, r);
|
|
46
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
47
|
+
}
|
|
48
|
+
const Q = (t, e, r) => {
|
|
49
|
+
const { query: n } = r ?? {};
|
|
50
|
+
return { queryKey: n?.queryKey ?? $(t, e), queryFn: ({ signal: s }) => K(t, e, s), enabled: !!t, ...n };
|
|
51
|
+
};
|
|
52
|
+
function Nt(t, e, r, n) {
|
|
53
|
+
const o = Q(t, e, r);
|
|
54
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
55
|
+
}
|
|
56
|
+
const b = (t, e, r) => i(
|
|
57
|
+
{
|
|
58
|
+
url: `/api/v1/boards/${t}/articles`,
|
|
59
|
+
method: "POST",
|
|
60
|
+
headers: { "Content-Type": "application/json" },
|
|
61
|
+
data: e,
|
|
62
|
+
signal: r
|
|
63
|
+
}
|
|
64
|
+
), I = (t) => {
|
|
65
|
+
const e = ["articleControllerCreateArticle"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
66
|
+
return { mutationFn: (o) => {
|
|
67
|
+
const { boardId: u, data: s } = o ?? {};
|
|
68
|
+
return b(u, s);
|
|
69
|
+
}, ...r };
|
|
70
|
+
}, Vt = (t, e) => y(I(t), e), C = (t, e, r) => i(
|
|
71
|
+
{
|
|
72
|
+
url: `/api/v1/boards/${t}/articles/popular`,
|
|
73
|
+
method: "GET",
|
|
74
|
+
params: e,
|
|
75
|
+
signal: r
|
|
76
|
+
}
|
|
77
|
+
), T = (t, e) => [
|
|
78
|
+
"infinite",
|
|
79
|
+
`/api/v1/boards/${t}/articles/popular`,
|
|
80
|
+
...e ? [e] : []
|
|
81
|
+
], S = (t, e) => [
|
|
82
|
+
`/api/v1/boards/${t}/articles/popular`,
|
|
83
|
+
...e ? [e] : []
|
|
84
|
+
], D = (t, e, r) => {
|
|
85
|
+
const { query: n } = r ?? {};
|
|
86
|
+
return { queryKey: n?.queryKey ?? T(t, e), queryFn: ({ signal: s }) => C(t, e, s), enabled: !!t, ...n };
|
|
87
|
+
};
|
|
88
|
+
function Wt(t, e, r, n) {
|
|
89
|
+
const o = D(t, e, r);
|
|
90
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
91
|
+
}
|
|
92
|
+
const E = (t, e, r) => {
|
|
93
|
+
const { query: n } = r ?? {};
|
|
94
|
+
return { queryKey: n?.queryKey ?? S(t, e), queryFn: ({ signal: s }) => C(t, e, s), enabled: !!t, ...n };
|
|
95
|
+
};
|
|
96
|
+
function Xt(t, e, r, n) {
|
|
97
|
+
const o = E(t, e, r);
|
|
98
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
99
|
+
}
|
|
100
|
+
const d = (t, e, r) => i(
|
|
101
|
+
{
|
|
102
|
+
url: `/api/v1/boards/${t}/articles/${e}`,
|
|
103
|
+
method: "GET",
|
|
104
|
+
signal: r
|
|
105
|
+
}
|
|
106
|
+
), L = (t, e) => [
|
|
107
|
+
"infinite",
|
|
108
|
+
`/api/v1/boards/${t}/articles/${e}`
|
|
109
|
+
], w = (t, e) => [
|
|
110
|
+
`/api/v1/boards/${t}/articles/${e}`
|
|
111
|
+
], M = (t, e, r) => {
|
|
112
|
+
const { query: n } = r ?? {};
|
|
113
|
+
return { queryKey: n?.queryKey ?? L(t, e), queryFn: ({ signal: s }) => d(t, e, s), enabled: !!(t && e), ...n };
|
|
114
|
+
};
|
|
115
|
+
function Yt(t, e, r, n) {
|
|
116
|
+
const o = M(t, e, r);
|
|
117
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
118
|
+
}
|
|
119
|
+
const k = (t, e, r) => {
|
|
120
|
+
const { query: n } = r ?? {};
|
|
121
|
+
return { queryKey: n?.queryKey ?? w(t, e), queryFn: ({ signal: s }) => d(t, e, s), enabled: !!(t && e), ...n };
|
|
122
|
+
};
|
|
123
|
+
function Zt(t, e, r, n) {
|
|
124
|
+
const o = k(t, e, r);
|
|
125
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
126
|
+
}
|
|
127
|
+
const U = (t, e, r) => i(
|
|
128
|
+
{
|
|
129
|
+
url: `/api/v1/boards/${t}/articles/${e}`,
|
|
130
|
+
method: "DELETE",
|
|
131
|
+
signal: r
|
|
132
|
+
}
|
|
133
|
+
), j = (t) => {
|
|
134
|
+
const e = ["articleControllerDeleteArticle"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
135
|
+
return { mutationFn: (o) => {
|
|
136
|
+
const { boardId: u, articleId: s } = o ?? {};
|
|
137
|
+
return U(u, s);
|
|
138
|
+
}, ...r };
|
|
139
|
+
}, te = (t, e) => y(j(t), e), x = (t, e, r) => i(
|
|
140
|
+
{
|
|
141
|
+
url: `/api/v1/boards/${t}/articles/${e}/like`,
|
|
142
|
+
method: "POST",
|
|
143
|
+
signal: r
|
|
144
|
+
}
|
|
145
|
+
), R = (t) => {
|
|
146
|
+
const e = ["articleControllerToggleLike"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
147
|
+
return { mutationFn: (o) => {
|
|
148
|
+
const { boardId: u, articleId: s } = o ?? {};
|
|
149
|
+
return x(u, s);
|
|
150
|
+
}, ...r };
|
|
151
|
+
}, ee = (t, e) => y(R(t), e), _ = (t, e, r, n) => i(
|
|
152
|
+
{
|
|
153
|
+
url: `/api/v1/boards/${t}/articles/${e}/comments`,
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers: { "Content-Type": "application/json" },
|
|
156
|
+
data: r,
|
|
157
|
+
signal: n
|
|
158
|
+
}
|
|
159
|
+
), z = (t) => {
|
|
160
|
+
const e = ["articleControllerCreateComment"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
161
|
+
return { mutationFn: (o) => {
|
|
162
|
+
const { boardId: u, articleId: s, data: c } = o ?? {};
|
|
163
|
+
return _(u, s, c);
|
|
164
|
+
}, ...r };
|
|
165
|
+
}, re = (t, e) => y(z(t), e), H = (t, e, r, n) => i(
|
|
166
|
+
{
|
|
167
|
+
url: `/api/v1/boards/${t}/articles/${e}/comments/${r}`,
|
|
168
|
+
method: "DELETE",
|
|
169
|
+
signal: n
|
|
170
|
+
}
|
|
171
|
+
), J = (t) => {
|
|
172
|
+
const e = ["articleControllerDeleteComment"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
173
|
+
return { mutationFn: (o) => {
|
|
174
|
+
const { boardId: u, articleId: s, commentId: c } = o ?? {};
|
|
175
|
+
return H(u, s, c);
|
|
176
|
+
}, ...r };
|
|
177
|
+
}, ne = (t, e) => y(J(t), e), N = (t, e) => i(
|
|
178
|
+
{
|
|
179
|
+
url: "/api/v1/auth/signup",
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers: { "Content-Type": "application/json" },
|
|
182
|
+
data: t,
|
|
183
|
+
signal: e
|
|
184
|
+
}
|
|
185
|
+
), V = (t) => {
|
|
186
|
+
const e = ["authControllerSignUp"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
187
|
+
return { mutationFn: (o) => {
|
|
188
|
+
const { data: u } = o ?? {};
|
|
189
|
+
return N(u);
|
|
190
|
+
}, ...r };
|
|
191
|
+
}, oe = (t, e) => y(V(t), e), W = (t, e) => i(
|
|
192
|
+
{
|
|
193
|
+
url: "/api/v1/auth/login",
|
|
194
|
+
method: "POST",
|
|
195
|
+
headers: { "Content-Type": "application/json" },
|
|
196
|
+
data: t,
|
|
197
|
+
signal: e
|
|
198
|
+
}
|
|
199
|
+
), X = (t) => {
|
|
200
|
+
const e = ["authControllerLogin"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
201
|
+
return { mutationFn: (o) => {
|
|
202
|
+
const { data: u } = o ?? {};
|
|
203
|
+
return W(u);
|
|
204
|
+
}, ...r };
|
|
205
|
+
}, ue = (t, e) => y(X(t), e), p = (t) => i(
|
|
206
|
+
{
|
|
207
|
+
url: "/api/v1/aws/images",
|
|
208
|
+
method: "GET",
|
|
209
|
+
signal: t
|
|
210
|
+
}
|
|
211
|
+
), Y = () => [
|
|
212
|
+
"infinite",
|
|
213
|
+
"/api/v1/aws/images"
|
|
214
|
+
], Z = () => [
|
|
215
|
+
"/api/v1/aws/images"
|
|
216
|
+
], tt = (t) => {
|
|
217
|
+
const { query: e } = t ?? {};
|
|
218
|
+
return { queryKey: e?.queryKey ?? Y(), queryFn: ({ signal: o }) => p(o), ...e };
|
|
219
|
+
};
|
|
220
|
+
function se(t, e) {
|
|
221
|
+
const r = tt(t);
|
|
222
|
+
return { ...a(r, e), queryKey: r.queryKey };
|
|
223
|
+
}
|
|
224
|
+
const et = (t) => {
|
|
225
|
+
const { query: e } = t ?? {};
|
|
226
|
+
return { queryKey: e?.queryKey ?? Z(), queryFn: ({ signal: o }) => p(o), ...e };
|
|
227
|
+
};
|
|
228
|
+
function ie(t, e) {
|
|
229
|
+
const r = et(t);
|
|
230
|
+
return { ...l(r, e), queryKey: r.queryKey };
|
|
231
|
+
}
|
|
232
|
+
const rt = (t) => i(
|
|
233
|
+
{
|
|
234
|
+
url: "/api/v1/aws/upload",
|
|
235
|
+
method: "POST",
|
|
236
|
+
signal: t
|
|
237
|
+
}
|
|
238
|
+
), nt = (t) => {
|
|
239
|
+
const e = ["awsControllerUploadFile"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
240
|
+
return { mutationFn: () => rt(), ...r };
|
|
241
|
+
}, ye = (t, e) => y(nt(t), e), O = (t) => i(
|
|
242
|
+
{
|
|
243
|
+
url: "/api/v1/boards",
|
|
244
|
+
method: "GET",
|
|
245
|
+
signal: t
|
|
246
|
+
}
|
|
247
|
+
), ot = () => [
|
|
248
|
+
"infinite",
|
|
249
|
+
"/api/v1/boards"
|
|
250
|
+
], ut = () => [
|
|
251
|
+
"/api/v1/boards"
|
|
252
|
+
], st = (t) => {
|
|
253
|
+
const { query: e } = t ?? {};
|
|
254
|
+
return { queryKey: e?.queryKey ?? ot(), queryFn: ({ signal: o }) => O(o), ...e };
|
|
255
|
+
};
|
|
256
|
+
function le(t, e) {
|
|
257
|
+
const r = st(t);
|
|
258
|
+
return { ...a(r, e), queryKey: r.queryKey };
|
|
259
|
+
}
|
|
260
|
+
const it = (t) => {
|
|
261
|
+
const { query: e } = t ?? {};
|
|
262
|
+
return { queryKey: e?.queryKey ?? ut(), queryFn: ({ signal: o }) => O(o), ...e };
|
|
263
|
+
};
|
|
264
|
+
function ae(t, e) {
|
|
265
|
+
const r = it(t);
|
|
266
|
+
return { ...l(r, e), queryKey: r.queryKey };
|
|
267
|
+
}
|
|
268
|
+
const g = (t, e) => i(
|
|
269
|
+
{
|
|
270
|
+
url: "/api/v1/boards/search",
|
|
271
|
+
method: "GET",
|
|
272
|
+
params: t,
|
|
273
|
+
signal: e
|
|
274
|
+
}
|
|
275
|
+
), yt = (t) => [
|
|
276
|
+
"infinite",
|
|
277
|
+
"/api/v1/boards/search",
|
|
278
|
+
...t ? [t] : []
|
|
279
|
+
], lt = (t) => [
|
|
280
|
+
"/api/v1/boards/search",
|
|
281
|
+
...t ? [t] : []
|
|
282
|
+
], at = (t, e) => {
|
|
283
|
+
const { query: r } = e ?? {};
|
|
284
|
+
return { queryKey: r?.queryKey ?? yt(t), queryFn: ({ signal: u }) => g(t, u), ...r };
|
|
285
|
+
};
|
|
286
|
+
function ce(t, e, r) {
|
|
287
|
+
const n = at(t, e);
|
|
288
|
+
return { ...a(n, r), queryKey: n.queryKey };
|
|
289
|
+
}
|
|
290
|
+
const ct = (t, e) => {
|
|
291
|
+
const { query: r } = e ?? {};
|
|
292
|
+
return { queryKey: r?.queryKey ?? lt(t), queryFn: ({ signal: u }) => g(t, u), ...r };
|
|
293
|
+
};
|
|
294
|
+
function qe(t, e, r) {
|
|
295
|
+
const n = ct(t, e);
|
|
296
|
+
return { ...l(n, r), queryKey: n.queryKey };
|
|
297
|
+
}
|
|
298
|
+
const A = (t, e) => i(
|
|
299
|
+
{
|
|
300
|
+
url: `/api/v1/boards/${t}`,
|
|
301
|
+
method: "GET",
|
|
302
|
+
signal: e
|
|
303
|
+
}
|
|
304
|
+
), qt = (t) => [
|
|
305
|
+
"infinite",
|
|
306
|
+
`/api/v1/boards/${t}`
|
|
307
|
+
], mt = (t) => [
|
|
308
|
+
`/api/v1/boards/${t}`
|
|
309
|
+
], Kt = (t, e) => {
|
|
310
|
+
const { query: r } = e ?? {};
|
|
311
|
+
return { queryKey: r?.queryKey ?? qt(t), queryFn: ({ signal: u }) => A(t, u), enabled: !!t, ...r };
|
|
312
|
+
};
|
|
313
|
+
function me(t, e, r) {
|
|
314
|
+
const n = Kt(t, e);
|
|
315
|
+
return { ...a(n, r), queryKey: n.queryKey };
|
|
316
|
+
}
|
|
317
|
+
const Ct = (t, e) => {
|
|
318
|
+
const { query: r } = e ?? {};
|
|
319
|
+
return { queryKey: r?.queryKey ?? mt(t), queryFn: ({ signal: u }) => A(t, u), enabled: !!t, ...r };
|
|
320
|
+
};
|
|
321
|
+
function Ke(t, e, r) {
|
|
322
|
+
const n = Ct(t, e);
|
|
323
|
+
return { ...l(n, r), queryKey: n.queryKey };
|
|
324
|
+
}
|
|
325
|
+
const F = (t, e, r) => i(
|
|
326
|
+
{
|
|
327
|
+
url: `/api/v1/boards/${t}/search`,
|
|
328
|
+
method: "GET",
|
|
329
|
+
params: e,
|
|
330
|
+
signal: r
|
|
331
|
+
}
|
|
332
|
+
), dt = (t, e) => [
|
|
333
|
+
"infinite",
|
|
334
|
+
`/api/v1/boards/${t}/search`,
|
|
335
|
+
...e ? [e] : []
|
|
336
|
+
], pt = (t, e) => [
|
|
337
|
+
`/api/v1/boards/${t}/search`,
|
|
338
|
+
...e ? [e] : []
|
|
339
|
+
], Ot = (t, e, r) => {
|
|
340
|
+
const { query: n } = r ?? {};
|
|
341
|
+
return { queryKey: n?.queryKey ?? dt(t, e), queryFn: ({ signal: s }) => F(t, e, s), enabled: !!t, ...n };
|
|
342
|
+
};
|
|
343
|
+
function Ce(t, e, r, n) {
|
|
344
|
+
const o = Ot(t, e, r);
|
|
345
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
346
|
+
}
|
|
347
|
+
const gt = (t, e, r) => {
|
|
348
|
+
const { query: n } = r ?? {};
|
|
349
|
+
return { queryKey: n?.queryKey ?? pt(t, e), queryFn: ({ signal: s }) => F(t, e, s), enabled: !!t, ...n };
|
|
350
|
+
};
|
|
351
|
+
function de(t, e, r, n) {
|
|
352
|
+
const o = gt(t, e, r);
|
|
353
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
354
|
+
}
|
|
355
|
+
const G = (t, e, r) => i(
|
|
356
|
+
{
|
|
357
|
+
url: `/api/v1/boards/${t}/posts`,
|
|
358
|
+
method: "GET",
|
|
359
|
+
params: e,
|
|
360
|
+
signal: r
|
|
361
|
+
}
|
|
362
|
+
), At = (t, e) => [
|
|
363
|
+
"infinite",
|
|
364
|
+
`/api/v1/boards/${t}/posts`,
|
|
365
|
+
...e ? [e] : []
|
|
366
|
+
], Ft = (t, e) => [
|
|
367
|
+
`/api/v1/boards/${t}/posts`,
|
|
368
|
+
...e ? [e] : []
|
|
369
|
+
], Gt = (t, e, r) => {
|
|
370
|
+
const { query: n } = r ?? {};
|
|
371
|
+
return { queryKey: n?.queryKey ?? At(t, e), queryFn: ({ signal: s }) => G(t, e, s), enabled: !!t, ...n };
|
|
372
|
+
};
|
|
373
|
+
function pe(t, e, r, n) {
|
|
374
|
+
const o = Gt(t, e, r);
|
|
375
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
376
|
+
}
|
|
377
|
+
const Pt = (t, e, r) => {
|
|
378
|
+
const { query: n } = r ?? {};
|
|
379
|
+
return { queryKey: n?.queryKey ?? Ft(t, e), queryFn: ({ signal: s }) => G(t, e, s), enabled: !!t, ...n };
|
|
380
|
+
};
|
|
381
|
+
function Oe(t, e, r, n) {
|
|
382
|
+
const o = Pt(t, e, r);
|
|
383
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
384
|
+
}
|
|
385
|
+
const ht = (t, e, r) => i(
|
|
386
|
+
{
|
|
387
|
+
url: `/api/v1/boards/${t}/posts`,
|
|
388
|
+
method: "POST",
|
|
389
|
+
headers: { "Content-Type": "application/json" },
|
|
390
|
+
data: e,
|
|
391
|
+
signal: r
|
|
392
|
+
}
|
|
393
|
+
), ft = (t) => {
|
|
394
|
+
const e = ["postsControllerCreatePost"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
395
|
+
return { mutationFn: (o) => {
|
|
396
|
+
const { boardId: u, data: s } = o ?? {};
|
|
397
|
+
return ht(u, s);
|
|
398
|
+
}, ...r };
|
|
399
|
+
}, ge = (t, e) => y(ft(t), e), P = (t, e, r) => i(
|
|
400
|
+
{
|
|
401
|
+
url: `/api/v1/boards/${t}/posts/${e}`,
|
|
402
|
+
method: "GET",
|
|
403
|
+
signal: r
|
|
404
|
+
}
|
|
405
|
+
), Bt = (t, e) => [
|
|
406
|
+
"infinite",
|
|
407
|
+
`/api/v1/boards/${t}/posts/${e}`
|
|
408
|
+
], $t = (t, e) => [
|
|
409
|
+
`/api/v1/boards/${t}/posts/${e}`
|
|
410
|
+
], vt = (t, e, r) => {
|
|
411
|
+
const { query: n } = r ?? {};
|
|
412
|
+
return { queryKey: n?.queryKey ?? Bt(t, e), queryFn: ({ signal: s }) => P(t, e, s), enabled: !!(t && e), ...n };
|
|
413
|
+
};
|
|
414
|
+
function Ae(t, e, r, n) {
|
|
415
|
+
const o = vt(t, e, r);
|
|
416
|
+
return { ...a(o, n), queryKey: o.queryKey };
|
|
417
|
+
}
|
|
418
|
+
const Qt = (t, e, r) => {
|
|
419
|
+
const { query: n } = r ?? {};
|
|
420
|
+
return { queryKey: n?.queryKey ?? $t(t, e), queryFn: ({ signal: s }) => P(t, e, s), enabled: !!(t && e), ...n };
|
|
421
|
+
};
|
|
422
|
+
function Fe(t, e, r, n) {
|
|
423
|
+
const o = Qt(t, e, r);
|
|
424
|
+
return { ...l(o, n), queryKey: o.queryKey };
|
|
425
|
+
}
|
|
426
|
+
const bt = (t, e, r) => i(
|
|
427
|
+
{
|
|
428
|
+
url: `/api/v1/boards/${t}/posts/${e}`,
|
|
429
|
+
method: "DELETE",
|
|
430
|
+
signal: r
|
|
431
|
+
}
|
|
432
|
+
), It = (t) => {
|
|
433
|
+
const e = ["postsControllerDeletePost"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
434
|
+
return { mutationFn: (o) => {
|
|
435
|
+
const { boardId: u, postId: s } = o ?? {};
|
|
436
|
+
return bt(u, s);
|
|
437
|
+
}, ...r };
|
|
438
|
+
}, Ge = (t, e) => y(It(t), e), Tt = (t, e, r) => i(
|
|
439
|
+
{
|
|
440
|
+
url: `/api/v1/boards/${t}/posts/${e}/like`,
|
|
441
|
+
method: "POST",
|
|
442
|
+
signal: r
|
|
443
|
+
}
|
|
444
|
+
), St = (t) => {
|
|
445
|
+
const e = ["postsControllerToggleLike"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
446
|
+
return { mutationFn: (o) => {
|
|
447
|
+
const { boardId: u, postId: s } = o ?? {};
|
|
448
|
+
return Tt(u, s);
|
|
449
|
+
}, ...r };
|
|
450
|
+
}, Pe = (t, e) => y(St(t), e), Dt = (t, e, r, n) => i(
|
|
451
|
+
{
|
|
452
|
+
url: `/api/v1/boards/${t}/posts/${e}/comments`,
|
|
453
|
+
method: "POST",
|
|
454
|
+
headers: { "Content-Type": "application/json" },
|
|
455
|
+
data: r,
|
|
456
|
+
signal: n
|
|
457
|
+
}
|
|
458
|
+
), Et = (t) => {
|
|
459
|
+
const e = ["postsControllerCreateComment"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
460
|
+
return { mutationFn: (o) => {
|
|
461
|
+
const { boardId: u, postId: s, data: c } = o ?? {};
|
|
462
|
+
return Dt(u, s, c);
|
|
463
|
+
}, ...r };
|
|
464
|
+
}, he = (t, e) => y(Et(t), e), Lt = (t, e, r, n) => i(
|
|
465
|
+
{
|
|
466
|
+
url: `/api/v1/boards/${t}/posts/${e}/comments/${r}`,
|
|
467
|
+
method: "DELETE",
|
|
468
|
+
signal: n
|
|
469
|
+
}
|
|
470
|
+
), wt = (t) => {
|
|
471
|
+
const e = ["postsControllerDeleteComment"], { mutation: r } = t ? t.mutation && "mutationKey" in t.mutation && t.mutation.mutationKey ? t : { ...t, mutation: { ...t.mutation, mutationKey: e } } : { mutation: { mutationKey: e } };
|
|
472
|
+
return { mutationFn: (o) => {
|
|
473
|
+
const { boardId: u, postId: s, commentId: c } = o ?? {};
|
|
474
|
+
return Lt(u, s, c);
|
|
475
|
+
}, ...r };
|
|
476
|
+
}, fe = (t, e) => y(wt(t), e), h = (t, e) => i(
|
|
477
|
+
{
|
|
478
|
+
url: `/api/v1/boards/${t}/posts/deleted/all`,
|
|
479
|
+
method: "GET",
|
|
480
|
+
signal: e
|
|
481
|
+
}
|
|
482
|
+
), Mt = (t) => [
|
|
483
|
+
"infinite",
|
|
484
|
+
`/api/v1/boards/${t}/posts/deleted/all`
|
|
485
|
+
], kt = (t) => [
|
|
486
|
+
`/api/v1/boards/${t}/posts/deleted/all`
|
|
487
|
+
], Ut = (t, e) => {
|
|
488
|
+
const { query: r } = e ?? {};
|
|
489
|
+
return { queryKey: r?.queryKey ?? Mt(t), queryFn: ({ signal: u }) => h(t, u), enabled: !!t, ...r };
|
|
490
|
+
};
|
|
491
|
+
function Be(t, e, r) {
|
|
492
|
+
const n = Ut(t, e);
|
|
493
|
+
return { ...a(n, r), queryKey: n.queryKey };
|
|
494
|
+
}
|
|
495
|
+
const jt = (t, e) => {
|
|
496
|
+
const { query: r } = e ?? {};
|
|
497
|
+
return { queryKey: r?.queryKey ?? kt(t), queryFn: ({ signal: u }) => h(t, u), enabled: !!t, ...r };
|
|
498
|
+
};
|
|
499
|
+
function $e(t, e, r) {
|
|
500
|
+
const n = jt(t, e);
|
|
501
|
+
return { ...l(n, r), queryKey: n.queryKey };
|
|
502
|
+
}
|
|
503
|
+
export {
|
|
504
|
+
_t as BoardsControllerSearchInAllBoardsSearchIn,
|
|
505
|
+
zt as BoardsControllerSearchInBoardSearchIn,
|
|
506
|
+
b as articleControllerCreateArticle,
|
|
507
|
+
_ as articleControllerCreateComment,
|
|
508
|
+
U as articleControllerDeleteArticle,
|
|
509
|
+
H as articleControllerDeleteComment,
|
|
510
|
+
d as articleControllerGetArticle,
|
|
511
|
+
K as articleControllerGetArticles,
|
|
512
|
+
C as articleControllerGetPopularArticles,
|
|
513
|
+
x as articleControllerToggleLike,
|
|
514
|
+
W as authControllerLogin,
|
|
515
|
+
N as authControllerSignUp,
|
|
516
|
+
p as awsControllerGetImages,
|
|
517
|
+
rt as awsControllerUploadFile,
|
|
518
|
+
A as boardsControllerGetBoard,
|
|
519
|
+
O as boardsControllerGetBoards,
|
|
520
|
+
g as boardsControllerSearchInAllBoards,
|
|
521
|
+
F as boardsControllerSearchInBoard,
|
|
522
|
+
Ht as configureApiClient,
|
|
523
|
+
I as getArticleControllerCreateArticleMutationOptions,
|
|
524
|
+
z as getArticleControllerCreateCommentMutationOptions,
|
|
525
|
+
j as getArticleControllerDeleteArticleMutationOptions,
|
|
526
|
+
J as getArticleControllerDeleteCommentMutationOptions,
|
|
527
|
+
L as getArticleControllerGetArticleInfiniteQueryKey,
|
|
528
|
+
M as getArticleControllerGetArticleInfiniteQueryOptions,
|
|
529
|
+
w as getArticleControllerGetArticleQueryKey,
|
|
530
|
+
k as getArticleControllerGetArticleQueryOptions,
|
|
531
|
+
B as getArticleControllerGetArticlesInfiniteQueryKey,
|
|
532
|
+
v as getArticleControllerGetArticlesInfiniteQueryOptions,
|
|
533
|
+
$ as getArticleControllerGetArticlesQueryKey,
|
|
534
|
+
Q as getArticleControllerGetArticlesQueryOptions,
|
|
535
|
+
T as getArticleControllerGetPopularArticlesInfiniteQueryKey,
|
|
536
|
+
D as getArticleControllerGetPopularArticlesInfiniteQueryOptions,
|
|
537
|
+
S as getArticleControllerGetPopularArticlesQueryKey,
|
|
538
|
+
E as getArticleControllerGetPopularArticlesQueryOptions,
|
|
539
|
+
R as getArticleControllerToggleLikeMutationOptions,
|
|
540
|
+
X as getAuthControllerLoginMutationOptions,
|
|
541
|
+
V as getAuthControllerSignUpMutationOptions,
|
|
542
|
+
Y as getAwsControllerGetImagesInfiniteQueryKey,
|
|
543
|
+
tt as getAwsControllerGetImagesInfiniteQueryOptions,
|
|
544
|
+
Z as getAwsControllerGetImagesQueryKey,
|
|
545
|
+
et as getAwsControllerGetImagesQueryOptions,
|
|
546
|
+
nt as getAwsControllerUploadFileMutationOptions,
|
|
547
|
+
qt as getBoardsControllerGetBoardInfiniteQueryKey,
|
|
548
|
+
Kt as getBoardsControllerGetBoardInfiniteQueryOptions,
|
|
549
|
+
mt as getBoardsControllerGetBoardQueryKey,
|
|
550
|
+
Ct as getBoardsControllerGetBoardQueryOptions,
|
|
551
|
+
ot as getBoardsControllerGetBoardsInfiniteQueryKey,
|
|
552
|
+
st as getBoardsControllerGetBoardsInfiniteQueryOptions,
|
|
553
|
+
ut as getBoardsControllerGetBoardsQueryKey,
|
|
554
|
+
it as getBoardsControllerGetBoardsQueryOptions,
|
|
555
|
+
yt as getBoardsControllerSearchInAllBoardsInfiniteQueryKey,
|
|
556
|
+
at as getBoardsControllerSearchInAllBoardsInfiniteQueryOptions,
|
|
557
|
+
lt as getBoardsControllerSearchInAllBoardsQueryKey,
|
|
558
|
+
ct as getBoardsControllerSearchInAllBoardsQueryOptions,
|
|
559
|
+
dt as getBoardsControllerSearchInBoardInfiniteQueryKey,
|
|
560
|
+
Ot as getBoardsControllerSearchInBoardInfiniteQueryOptions,
|
|
561
|
+
pt as getBoardsControllerSearchInBoardQueryKey,
|
|
562
|
+
gt as getBoardsControllerSearchInBoardQueryOptions,
|
|
563
|
+
Et as getPostsControllerCreateCommentMutationOptions,
|
|
564
|
+
ft as getPostsControllerCreatePostMutationOptions,
|
|
565
|
+
wt as getPostsControllerDeleteCommentMutationOptions,
|
|
566
|
+
It as getPostsControllerDeletePostMutationOptions,
|
|
567
|
+
Mt as getPostsControllerGetDeletedPostsInfiniteQueryKey,
|
|
568
|
+
Ut as getPostsControllerGetDeletedPostsInfiniteQueryOptions,
|
|
569
|
+
kt as getPostsControllerGetDeletedPostsQueryKey,
|
|
570
|
+
jt as getPostsControllerGetDeletedPostsQueryOptions,
|
|
571
|
+
Bt as getPostsControllerGetPostInfiniteQueryKey,
|
|
572
|
+
vt as getPostsControllerGetPostInfiniteQueryOptions,
|
|
573
|
+
$t as getPostsControllerGetPostQueryKey,
|
|
574
|
+
Qt as getPostsControllerGetPostQueryOptions,
|
|
575
|
+
At as getPostsControllerGetPostsInfiniteQueryKey,
|
|
576
|
+
Gt as getPostsControllerGetPostsInfiniteQueryOptions,
|
|
577
|
+
Ft as getPostsControllerGetPostsQueryKey,
|
|
578
|
+
Pt as getPostsControllerGetPostsQueryOptions,
|
|
579
|
+
St as getPostsControllerToggleLikeMutationOptions,
|
|
580
|
+
Dt as postsControllerCreateComment,
|
|
581
|
+
ht as postsControllerCreatePost,
|
|
582
|
+
Lt as postsControllerDeleteComment,
|
|
583
|
+
bt as postsControllerDeletePost,
|
|
584
|
+
h as postsControllerGetDeletedPosts,
|
|
585
|
+
P as postsControllerGetPost,
|
|
586
|
+
G as postsControllerGetPosts,
|
|
587
|
+
Tt as postsControllerToggleLike,
|
|
588
|
+
Vt as useArticleControllerCreateArticle,
|
|
589
|
+
re as useArticleControllerCreateComment,
|
|
590
|
+
te as useArticleControllerDeleteArticle,
|
|
591
|
+
ne as useArticleControllerDeleteComment,
|
|
592
|
+
Zt as useArticleControllerGetArticle,
|
|
593
|
+
Yt as useArticleControllerGetArticleInfinite,
|
|
594
|
+
Nt as useArticleControllerGetArticles,
|
|
595
|
+
Jt as useArticleControllerGetArticlesInfinite,
|
|
596
|
+
Xt as useArticleControllerGetPopularArticles,
|
|
597
|
+
Wt as useArticleControllerGetPopularArticlesInfinite,
|
|
598
|
+
ee as useArticleControllerToggleLike,
|
|
599
|
+
ue as useAuthControllerLogin,
|
|
600
|
+
oe as useAuthControllerSignUp,
|
|
601
|
+
ie as useAwsControllerGetImages,
|
|
602
|
+
se as useAwsControllerGetImagesInfinite,
|
|
603
|
+
ye as useAwsControllerUploadFile,
|
|
604
|
+
Ke as useBoardsControllerGetBoard,
|
|
605
|
+
me as useBoardsControllerGetBoardInfinite,
|
|
606
|
+
ae as useBoardsControllerGetBoards,
|
|
607
|
+
le as useBoardsControllerGetBoardsInfinite,
|
|
608
|
+
qe as useBoardsControllerSearchInAllBoards,
|
|
609
|
+
ce as useBoardsControllerSearchInAllBoardsInfinite,
|
|
610
|
+
de as useBoardsControllerSearchInBoard,
|
|
611
|
+
Ce as useBoardsControllerSearchInBoardInfinite,
|
|
612
|
+
he as usePostsControllerCreateComment,
|
|
613
|
+
ge as usePostsControllerCreatePost,
|
|
614
|
+
fe as usePostsControllerDeleteComment,
|
|
615
|
+
Ge as usePostsControllerDeletePost,
|
|
616
|
+
$e as usePostsControllerGetDeletedPosts,
|
|
617
|
+
Be as usePostsControllerGetDeletedPostsInfinite,
|
|
618
|
+
Fe as usePostsControllerGetPost,
|
|
619
|
+
Ae as usePostsControllerGetPostInfinite,
|
|
620
|
+
Oe as usePostsControllerGetPosts,
|
|
621
|
+
pe as usePostsControllerGetPostsInfinite,
|
|
622
|
+
Pe as usePostsControllerToggleLike
|
|
623
|
+
};
|
|
624
|
+
//# sourceMappingURL=index.js.map
|