@better-auth-ui/react 1.6.28 → 1.6.30
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/hooks/auth/use-last-login-method.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +262 -249
- package/dist/lib/auth-client.d.ts +4 -1
- package/package.json +1 -1
- package/src/hooks/auth/use-last-login-method.ts +51 -0
- package/src/index.ts +1 -0
- package/src/lib/auth-client.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { a as e, i as t, n, r, t as i } from "./use-auth-plugin-ClcP84Uz.js";
|
|
3
3
|
import { authMutationKeys as a, authQueryKeys as o } from "@better-auth-ui/core";
|
|
4
4
|
import { mutationOptions as s, queryOptions as c, skipToken as l, useMutation as u, useQuery as d, useQueryClient as f } from "@tanstack/react-query";
|
|
5
|
-
import {
|
|
5
|
+
import { useCallback as p, useEffect as ee, useId as te, useSyncExternalStore as ne } from "react";
|
|
6
6
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
|
-
import { apiKeyMutationKeys as
|
|
7
|
+
import { apiKeyMutationKeys as re, apiKeyQueryKeys as g, deleteUserMutationKeys as ie, lastLoginMethodLocalization as ae, lastLoginMethodPlugin as oe, magicLinkMutationKeys as se, multiSessionMutationKeys as ce, multiSessionQueryKeys as _, organizationMutationKeys as v, organizationPlugin as le, organizationQueryKeys as y, passkeyMutationKeys as b, passkeyQueryKeys as x, usernameMutationKeys as ue } from "@better-auth-ui/core/plugins";
|
|
8
8
|
//#region src/components/icons/apple.tsx
|
|
9
|
-
function
|
|
9
|
+
function de(e) {
|
|
10
10
|
return /* @__PURE__ */ m("svg", {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
viewBox: "0 0 24 24",
|
|
@@ -21,8 +21,8 @@ function se(e) {
|
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/icons/atlassian.tsx
|
|
24
|
-
function
|
|
25
|
-
let t =
|
|
24
|
+
function fe(e) {
|
|
25
|
+
let t = te();
|
|
26
26
|
return /* @__PURE__ */ h("svg", {
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
28
|
viewBox: "0 0 256 256",
|
|
@@ -57,7 +57,7 @@ function ce(e) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/icons/cognito.tsx
|
|
60
|
-
function
|
|
60
|
+
function pe(e) {
|
|
61
61
|
return /* @__PURE__ */ h("svg", {
|
|
62
62
|
xmlns: "http://www.w3.org/2000/svg",
|
|
63
63
|
viewBox: "0 0 48 48",
|
|
@@ -75,7 +75,7 @@ function le(e) {
|
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/components/icons/discord.tsx
|
|
78
|
-
function
|
|
78
|
+
function me(e) {
|
|
79
79
|
return /* @__PURE__ */ m("svg", {
|
|
80
80
|
xmlns: "http://www.w3.org/2000/svg",
|
|
81
81
|
viewBox: "0 0 256 199",
|
|
@@ -90,7 +90,7 @@ function ue(e) {
|
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/components/icons/dropbox.tsx
|
|
93
|
-
function
|
|
93
|
+
function he(e) {
|
|
94
94
|
return /* @__PURE__ */ m("svg", {
|
|
95
95
|
xmlns: "http://www.w3.org/2000/svg",
|
|
96
96
|
viewBox: "0 0 256 218",
|
|
@@ -105,7 +105,7 @@ function de(e) {
|
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/components/icons/facebook.tsx
|
|
108
|
-
function
|
|
108
|
+
function ge(e) {
|
|
109
109
|
return /* @__PURE__ */ h("svg", {
|
|
110
110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
111
111
|
viewBox: "0 0 256 256",
|
|
@@ -123,7 +123,7 @@ function fe(e) {
|
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/components/icons/figma.tsx
|
|
126
|
-
function
|
|
126
|
+
function _e(e) {
|
|
127
127
|
return /* @__PURE__ */ h("svg", {
|
|
128
128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
129
129
|
viewBox: "0 0 128 128",
|
|
@@ -156,7 +156,7 @@ function pe(e) {
|
|
|
156
156
|
}
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/components/icons/github.tsx
|
|
159
|
-
function
|
|
159
|
+
function ve(e) {
|
|
160
160
|
return /* @__PURE__ */ m("svg", {
|
|
161
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
162
|
viewBox: "0 0 24 24",
|
|
@@ -171,7 +171,7 @@ function me(e) {
|
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region src/components/icons/gitlab.tsx
|
|
174
|
-
function
|
|
174
|
+
function S(e) {
|
|
175
175
|
return /* @__PURE__ */ h("svg", {
|
|
176
176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
177
177
|
viewBox: "0 0 128 128",
|
|
@@ -200,7 +200,7 @@ function he(e) {
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/components/icons/google.tsx
|
|
203
|
-
function
|
|
203
|
+
function C(e) {
|
|
204
204
|
return /* @__PURE__ */ m("svg", {
|
|
205
205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
206
206
|
viewBox: "0 0 16 16",
|
|
@@ -238,7 +238,7 @@ function ge(e) {
|
|
|
238
238
|
}
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/components/icons/huggingface.tsx
|
|
241
|
-
function
|
|
241
|
+
function w(e) {
|
|
242
242
|
return /* @__PURE__ */ h("svg", {
|
|
243
243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
244
244
|
viewBox: "0 0 256 238",
|
|
@@ -275,7 +275,7 @@ function _e(e) {
|
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/components/icons/kakao.tsx
|
|
278
|
-
function
|
|
278
|
+
function T(e) {
|
|
279
279
|
return /* @__PURE__ */ m("svg", {
|
|
280
280
|
xmlns: "http://www.w3.org/2000/svg",
|
|
281
281
|
viewBox: "0 0 576 512",
|
|
@@ -290,7 +290,7 @@ function ve(e) {
|
|
|
290
290
|
}
|
|
291
291
|
//#endregion
|
|
292
292
|
//#region src/components/icons/kick.tsx
|
|
293
|
-
function
|
|
293
|
+
function E(e) {
|
|
294
294
|
return /* @__PURE__ */ m("svg", {
|
|
295
295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
296
|
viewBox: "0 0 512 512",
|
|
@@ -309,7 +309,7 @@ function ye(e) {
|
|
|
309
309
|
}
|
|
310
310
|
//#endregion
|
|
311
311
|
//#region src/components/icons/line.tsx
|
|
312
|
-
function
|
|
312
|
+
function D(e) {
|
|
313
313
|
return /* @__PURE__ */ m("svg", {
|
|
314
314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
315
315
|
viewBox: "0 0 24 24",
|
|
@@ -324,7 +324,7 @@ function be(e) {
|
|
|
324
324
|
}
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/components/icons/linear.tsx
|
|
327
|
-
function
|
|
327
|
+
function O(e) {
|
|
328
328
|
return /* @__PURE__ */ m("svg", {
|
|
329
329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
330
330
|
viewBox: "0 0 24 24",
|
|
@@ -339,7 +339,7 @@ function xe(e) {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/components/icons/linkedin.tsx
|
|
342
|
-
function
|
|
342
|
+
function k(e) {
|
|
343
343
|
return /* @__PURE__ */ m("svg", {
|
|
344
344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
345
345
|
viewBox: "0 0 256 256",
|
|
@@ -371,7 +371,7 @@ function S(e) {
|
|
|
371
371
|
}
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/components/icons/microsoft.tsx
|
|
374
|
-
function
|
|
374
|
+
function A(e) {
|
|
375
375
|
return /* @__PURE__ */ h("svg", {
|
|
376
376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
377
377
|
viewBox: "0 0 256 256",
|
|
@@ -400,7 +400,7 @@ function C(e) {
|
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region src/components/icons/naver.tsx
|
|
403
|
-
function
|
|
403
|
+
function j(e) {
|
|
404
404
|
return /* @__PURE__ */ m("svg", {
|
|
405
405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
406
406
|
viewBox: "0 0 24 24",
|
|
@@ -415,7 +415,7 @@ function w(e) {
|
|
|
415
415
|
}
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/components/icons/notion.tsx
|
|
418
|
-
function
|
|
418
|
+
function M(e) {
|
|
419
419
|
return /* @__PURE__ */ h("svg", {
|
|
420
420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
421
421
|
viewBox: "0 0 256 268",
|
|
@@ -430,7 +430,7 @@ function T(e) {
|
|
|
430
430
|
}
|
|
431
431
|
//#endregion
|
|
432
432
|
//#region src/components/icons/paybin.tsx
|
|
433
|
-
function
|
|
433
|
+
function N(e) {
|
|
434
434
|
return /* @__PURE__ */ h("svg", {
|
|
435
435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
436
436
|
viewBox: "0 0 34 34",
|
|
@@ -461,7 +461,7 @@ function E(e) {
|
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/components/icons/paypal.tsx
|
|
464
|
-
function
|
|
464
|
+
function P(e) {
|
|
465
465
|
return /* @__PURE__ */ h("svg", {
|
|
466
466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
467
467
|
viewBox: "0 0 256 302",
|
|
@@ -490,7 +490,7 @@ function D(e) {
|
|
|
490
490
|
}
|
|
491
491
|
//#endregion
|
|
492
492
|
//#region src/components/icons/polar.tsx
|
|
493
|
-
function
|
|
493
|
+
function F(e) {
|
|
494
494
|
return /* @__PURE__ */ m("svg", {
|
|
495
495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
496
496
|
viewBox: "0 0 24 24",
|
|
@@ -513,7 +513,7 @@ function O(e) {
|
|
|
513
513
|
}
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/icons/railway.tsx
|
|
516
|
-
function
|
|
516
|
+
function I(e) {
|
|
517
517
|
return /* @__PURE__ */ m("svg", {
|
|
518
518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
519
519
|
viewBox: "0 0 24 24",
|
|
@@ -528,7 +528,7 @@ function k(e) {
|
|
|
528
528
|
}
|
|
529
529
|
//#endregion
|
|
530
530
|
//#region src/components/icons/reddit.tsx
|
|
531
|
-
function
|
|
531
|
+
function ye(e) {
|
|
532
532
|
return /* @__PURE__ */ h("svg", {
|
|
533
533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
534
534
|
viewBox: "0 0 256 256",
|
|
@@ -548,7 +548,7 @@ function A(e) {
|
|
|
548
548
|
}
|
|
549
549
|
//#endregion
|
|
550
550
|
//#region src/components/icons/roblox.tsx
|
|
551
|
-
function
|
|
551
|
+
function be(e) {
|
|
552
552
|
return /* @__PURE__ */ m("svg", {
|
|
553
553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
554
554
|
viewBox: "0 0 500 500",
|
|
@@ -564,7 +564,7 @@ function j(e) {
|
|
|
564
564
|
}
|
|
565
565
|
//#endregion
|
|
566
566
|
//#region src/components/icons/salesforce.tsx
|
|
567
|
-
function
|
|
567
|
+
function xe(e) {
|
|
568
568
|
return /* @__PURE__ */ m("svg", {
|
|
569
569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
570
570
|
viewBox: "0 0 24 24",
|
|
@@ -579,7 +579,7 @@ function M(e) {
|
|
|
579
579
|
}
|
|
580
580
|
//#endregion
|
|
581
581
|
//#region src/components/icons/slack.tsx
|
|
582
|
-
function
|
|
582
|
+
function Se(e) {
|
|
583
583
|
return /* @__PURE__ */ h("svg", {
|
|
584
584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
585
585
|
viewBox: "0 0 256 256",
|
|
@@ -608,7 +608,7 @@ function N(e) {
|
|
|
608
608
|
}
|
|
609
609
|
//#endregion
|
|
610
610
|
//#region src/components/icons/spotify.tsx
|
|
611
|
-
function
|
|
611
|
+
function Ce(e) {
|
|
612
612
|
return /* @__PURE__ */ m("svg", {
|
|
613
613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
614
614
|
viewBox: "0 0 256 256",
|
|
@@ -623,7 +623,7 @@ function P(e) {
|
|
|
623
623
|
}
|
|
624
624
|
//#endregion
|
|
625
625
|
//#region src/components/icons/tiktok.tsx
|
|
626
|
-
function
|
|
626
|
+
function we(e) {
|
|
627
627
|
return /* @__PURE__ */ h("svg", {
|
|
628
628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
629
|
viewBox: "0 0 256 290",
|
|
@@ -645,7 +645,7 @@ function F(e) {
|
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region src/components/icons/twitch.tsx
|
|
648
|
-
function
|
|
648
|
+
function Te(e) {
|
|
649
649
|
return /* @__PURE__ */ h("svg", {
|
|
650
650
|
version: "1.1",
|
|
651
651
|
viewBox: "0 0 2400 2800",
|
|
@@ -687,7 +687,7 @@ function I(e) {
|
|
|
687
687
|
}
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region src/components/icons/vercel.tsx
|
|
690
|
-
function
|
|
690
|
+
function Ee(e) {
|
|
691
691
|
return /* @__PURE__ */ m("svg", {
|
|
692
692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
693
693
|
viewBox: "0 0 24 24",
|
|
@@ -702,7 +702,7 @@ function Se(e) {
|
|
|
702
702
|
}
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region src/components/icons/vk.tsx
|
|
705
|
-
function
|
|
705
|
+
function De(e) {
|
|
706
706
|
return /* @__PURE__ */ m("svg", {
|
|
707
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
708
708
|
viewBox: "0 0 576 512",
|
|
@@ -717,7 +717,7 @@ function Ce(e) {
|
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
719
|
//#region src/components/icons/wechat.tsx
|
|
720
|
-
function
|
|
720
|
+
function Oe(e) {
|
|
721
721
|
return /* @__PURE__ */ m("svg", {
|
|
722
722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
723
723
|
viewBox: "0 0 24 24",
|
|
@@ -732,7 +732,7 @@ function we(e) {
|
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/components/icons/x.tsx
|
|
735
|
-
function
|
|
735
|
+
function ke(e) {
|
|
736
736
|
return /* @__PURE__ */ m("svg", {
|
|
737
737
|
viewBox: "0 0 512 512",
|
|
738
738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -747,8 +747,8 @@ function Te(e) {
|
|
|
747
747
|
}
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/icons/zoom.tsx
|
|
750
|
-
function
|
|
751
|
-
let t =
|
|
750
|
+
function Ae(e) {
|
|
751
|
+
let t = te();
|
|
752
752
|
return /* @__PURE__ */ h("svg", {
|
|
753
753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
754
754
|
viewBox: "0 0 256 256",
|
|
@@ -814,7 +814,7 @@ function Ee(e) {
|
|
|
814
814
|
}
|
|
815
815
|
//#endregion
|
|
816
816
|
//#region src/components/settings/account/theme-preview.tsx
|
|
817
|
-
function
|
|
817
|
+
function je(e) {
|
|
818
818
|
return /* @__PURE__ */ h("svg", {
|
|
819
819
|
fill: "none",
|
|
820
820
|
viewBox: "0 0 240 117",
|
|
@@ -959,7 +959,7 @@ function De(e) {
|
|
|
959
959
|
]
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Me(e) {
|
|
963
963
|
return /* @__PURE__ */ h("svg", {
|
|
964
964
|
fill: "none",
|
|
965
965
|
viewBox: "0 0 240 117",
|
|
@@ -1029,7 +1029,7 @@ function Oe(e) {
|
|
|
1029
1029
|
]
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Ne(e) {
|
|
1033
1033
|
return /* @__PURE__ */ h("svg", {
|
|
1034
1034
|
fill: "none",
|
|
1035
1035
|
viewBox: "0 0 240 117",
|
|
@@ -1115,7 +1115,7 @@ function L(e, t) {
|
|
|
1115
1115
|
})
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var Pe = (e, t, n) => e.ensureQueryData(L(t, n)), Fe = (e, t, n) => e.prefetchQuery(L(t, n)), Ie = (e, t, n) => e.fetchQuery(L(t, n));
|
|
1119
1119
|
function R(e, t = {}, n) {
|
|
1120
1120
|
let { query: r, fetchOptions: i, ...a } = t;
|
|
1121
1121
|
return d({
|
|
@@ -1128,9 +1128,9 @@ function R(e, t = {}, n) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
//#endregion
|
|
1130
1130
|
//#region src/hooks/auth/use-authenticate.ts
|
|
1131
|
-
function
|
|
1131
|
+
function Le(e, t) {
|
|
1132
1132
|
let { basePaths: n, viewPaths: i, navigate: a } = r(), o = R(e, t);
|
|
1133
|
-
return
|
|
1133
|
+
return ee(() => {
|
|
1134
1134
|
if (o.data || o.isPending) return;
|
|
1135
1135
|
let e = window.location.pathname + window.location.search, t = encodeURIComponent(e);
|
|
1136
1136
|
a({
|
|
@@ -1146,8 +1146,21 @@ function Ne(e, t) {
|
|
|
1146
1146
|
]), o;
|
|
1147
1147
|
}
|
|
1148
1148
|
//#endregion
|
|
1149
|
+
//#region src/hooks/auth/use-last-login-method.ts
|
|
1150
|
+
var Re = () => () => {}, ze = () => null;
|
|
1151
|
+
function Be() {
|
|
1152
|
+
let { authClient: e, plugins: t } = r(), n = t.find((e) => e.id === oe.id), i = {
|
|
1153
|
+
...ae,
|
|
1154
|
+
...n?.localization
|
|
1155
|
+
};
|
|
1156
|
+
return {
|
|
1157
|
+
method: ne(Re, p(() => n ? e.getLastUsedLoginMethod?.() ?? null : null, [e, n]), ze),
|
|
1158
|
+
localization: i
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
//#endregion
|
|
1149
1162
|
//#region src/hooks/auth/use-user.ts
|
|
1150
|
-
function
|
|
1163
|
+
function Ve(e, t) {
|
|
1151
1164
|
let { data: n, ...r } = R(e, t);
|
|
1152
1165
|
return {
|
|
1153
1166
|
data: n?.user,
|
|
@@ -1156,7 +1169,7 @@ function Pe(e, t) {
|
|
|
1156
1169
|
}
|
|
1157
1170
|
//#endregion
|
|
1158
1171
|
//#region src/mutations/auth-mutation-options.ts
|
|
1159
|
-
function
|
|
1172
|
+
function He(e, t) {
|
|
1160
1173
|
return s({
|
|
1161
1174
|
mutationKey: t,
|
|
1162
1175
|
mutationFn: (t) => {
|
|
@@ -1173,15 +1186,15 @@ function Fe(e, t) {
|
|
|
1173
1186
|
}
|
|
1174
1187
|
//#endregion
|
|
1175
1188
|
//#region src/hooks/use-auth-mutation.ts
|
|
1176
|
-
function
|
|
1189
|
+
function Ue(e, t, n) {
|
|
1177
1190
|
return u({
|
|
1178
|
-
...
|
|
1191
|
+
...He(e, t),
|
|
1179
1192
|
...n
|
|
1180
1193
|
});
|
|
1181
1194
|
}
|
|
1182
1195
|
//#endregion
|
|
1183
1196
|
//#region src/queries/auth-query-options.ts
|
|
1184
|
-
function
|
|
1197
|
+
function We(e, t, n) {
|
|
1185
1198
|
return c({
|
|
1186
1199
|
queryKey: [...t, n?.query ?? null],
|
|
1187
1200
|
queryFn: ({ signal: t }) => e({
|
|
@@ -1196,10 +1209,10 @@ function Le(e, t, n) {
|
|
|
1196
1209
|
}
|
|
1197
1210
|
//#endregion
|
|
1198
1211
|
//#region src/hooks/use-auth-query.ts
|
|
1199
|
-
function
|
|
1212
|
+
function Ge(e, t, n) {
|
|
1200
1213
|
let { query: r, fetchOptions: i, ...a } = n ?? {};
|
|
1201
1214
|
return d({
|
|
1202
|
-
...
|
|
1215
|
+
...We(e, t, {
|
|
1203
1216
|
query: r,
|
|
1204
1217
|
fetchOptions: i
|
|
1205
1218
|
}),
|
|
@@ -1208,47 +1221,47 @@ function Re(e, t, n) {
|
|
|
1208
1221
|
}
|
|
1209
1222
|
//#endregion
|
|
1210
1223
|
//#region src/lib/provider-icons.ts
|
|
1211
|
-
var
|
|
1212
|
-
apple:
|
|
1213
|
-
atlassian:
|
|
1214
|
-
cognito:
|
|
1215
|
-
discord:
|
|
1216
|
-
dropbox:
|
|
1217
|
-
facebook:
|
|
1218
|
-
figma:
|
|
1219
|
-
github:
|
|
1220
|
-
gitlab:
|
|
1221
|
-
google:
|
|
1222
|
-
huggingface:
|
|
1223
|
-
kakao:
|
|
1224
|
-
kick:
|
|
1225
|
-
line:
|
|
1226
|
-
linear:
|
|
1227
|
-
linkedin:
|
|
1228
|
-
microsoft:
|
|
1229
|
-
naver:
|
|
1230
|
-
notion:
|
|
1231
|
-
paybin:
|
|
1232
|
-
paypal:
|
|
1233
|
-
polar:
|
|
1234
|
-
railway:
|
|
1235
|
-
reddit:
|
|
1236
|
-
roblox:
|
|
1237
|
-
salesforce:
|
|
1238
|
-
slack:
|
|
1239
|
-
spotify:
|
|
1240
|
-
tiktok:
|
|
1241
|
-
twitch:
|
|
1242
|
-
twitter:
|
|
1243
|
-
vercel:
|
|
1244
|
-
vk:
|
|
1245
|
-
wechat:
|
|
1246
|
-
zoom:
|
|
1224
|
+
var Ke = {
|
|
1225
|
+
apple: de,
|
|
1226
|
+
atlassian: fe,
|
|
1227
|
+
cognito: pe,
|
|
1228
|
+
discord: me,
|
|
1229
|
+
dropbox: he,
|
|
1230
|
+
facebook: ge,
|
|
1231
|
+
figma: _e,
|
|
1232
|
+
github: ve,
|
|
1233
|
+
gitlab: S,
|
|
1234
|
+
google: C,
|
|
1235
|
+
huggingface: w,
|
|
1236
|
+
kakao: T,
|
|
1237
|
+
kick: E,
|
|
1238
|
+
line: D,
|
|
1239
|
+
linear: O,
|
|
1240
|
+
linkedin: k,
|
|
1241
|
+
microsoft: A,
|
|
1242
|
+
naver: j,
|
|
1243
|
+
notion: M,
|
|
1244
|
+
paybin: N,
|
|
1245
|
+
paypal: P,
|
|
1246
|
+
polar: F,
|
|
1247
|
+
railway: I,
|
|
1248
|
+
reddit: ye,
|
|
1249
|
+
roblox: be,
|
|
1250
|
+
salesforce: xe,
|
|
1251
|
+
slack: Se,
|
|
1252
|
+
spotify: Ce,
|
|
1253
|
+
tiktok: we,
|
|
1254
|
+
twitch: Te,
|
|
1255
|
+
twitter: ke,
|
|
1256
|
+
vercel: Ee,
|
|
1257
|
+
vk: De,
|
|
1258
|
+
wechat: Oe,
|
|
1259
|
+
zoom: Ae
|
|
1247
1260
|
};
|
|
1248
1261
|
//#endregion
|
|
1249
1262
|
//#region src/mutations/api-key/create-api-key-mutation.ts
|
|
1250
|
-
function
|
|
1251
|
-
let t =
|
|
1263
|
+
function qe(e) {
|
|
1264
|
+
let t = re.create;
|
|
1252
1265
|
return s({
|
|
1253
1266
|
mutationKey: t,
|
|
1254
1267
|
mutationFn: (t) => e.apiKey.create({
|
|
@@ -1260,18 +1273,18 @@ function Be(e) {
|
|
|
1260
1273
|
})
|
|
1261
1274
|
});
|
|
1262
1275
|
}
|
|
1263
|
-
function
|
|
1276
|
+
function Je(e, t, n) {
|
|
1264
1277
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1265
1278
|
return u({
|
|
1266
|
-
...
|
|
1279
|
+
...qe(e),
|
|
1267
1280
|
...t,
|
|
1268
1281
|
meta: { awaits: [g.lists(i)] }
|
|
1269
1282
|
}, n);
|
|
1270
1283
|
}
|
|
1271
1284
|
//#endregion
|
|
1272
1285
|
//#region src/mutations/api-key/delete-api-key-mutation.ts
|
|
1273
|
-
function
|
|
1274
|
-
let t =
|
|
1286
|
+
function Ye(e) {
|
|
1287
|
+
let t = re.delete;
|
|
1275
1288
|
return s({
|
|
1276
1289
|
mutationKey: t,
|
|
1277
1290
|
mutationFn: (t) => e.apiKey.delete({
|
|
@@ -1283,17 +1296,17 @@ function He(e) {
|
|
|
1283
1296
|
})
|
|
1284
1297
|
});
|
|
1285
1298
|
}
|
|
1286
|
-
function
|
|
1299
|
+
function Xe(e, t, n) {
|
|
1287
1300
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1288
1301
|
return u({
|
|
1289
|
-
...
|
|
1302
|
+
...Ye(e),
|
|
1290
1303
|
...t,
|
|
1291
1304
|
meta: { awaits: [g.lists(i)] }
|
|
1292
1305
|
}, n);
|
|
1293
1306
|
}
|
|
1294
1307
|
//#endregion
|
|
1295
1308
|
//#region src/mutations/auth/request-password-reset-mutation.ts
|
|
1296
|
-
function
|
|
1309
|
+
function Ze(e) {
|
|
1297
1310
|
let t = a.requestPasswordReset;
|
|
1298
1311
|
return s({
|
|
1299
1312
|
mutationKey: t,
|
|
@@ -1306,15 +1319,15 @@ function We(e) {
|
|
|
1306
1319
|
})
|
|
1307
1320
|
});
|
|
1308
1321
|
}
|
|
1309
|
-
function
|
|
1322
|
+
function Qe(e, t) {
|
|
1310
1323
|
return u({
|
|
1311
|
-
...
|
|
1324
|
+
...Ze(e),
|
|
1312
1325
|
...t
|
|
1313
1326
|
});
|
|
1314
1327
|
}
|
|
1315
1328
|
//#endregion
|
|
1316
1329
|
//#region src/mutations/auth/reset-password-mutation.ts
|
|
1317
|
-
function
|
|
1330
|
+
function $e(e) {
|
|
1318
1331
|
let t = a.resetPassword;
|
|
1319
1332
|
return s({
|
|
1320
1333
|
mutationKey: t,
|
|
@@ -1327,15 +1340,15 @@ function Ke(e) {
|
|
|
1327
1340
|
})
|
|
1328
1341
|
});
|
|
1329
1342
|
}
|
|
1330
|
-
function
|
|
1343
|
+
function et(e, t) {
|
|
1331
1344
|
return u({
|
|
1332
|
-
|
|
1345
|
+
...$e(e),
|
|
1333
1346
|
...t
|
|
1334
1347
|
});
|
|
1335
1348
|
}
|
|
1336
1349
|
//#endregion
|
|
1337
1350
|
//#region src/mutations/auth/send-verification-email-mutation.ts
|
|
1338
|
-
function
|
|
1351
|
+
function tt(e) {
|
|
1339
1352
|
let t = a.sendVerificationEmail;
|
|
1340
1353
|
return s({
|
|
1341
1354
|
mutationKey: t,
|
|
@@ -1348,15 +1361,15 @@ function Je(e) {
|
|
|
1348
1361
|
})
|
|
1349
1362
|
});
|
|
1350
1363
|
}
|
|
1351
|
-
function
|
|
1364
|
+
function nt(e, t) {
|
|
1352
1365
|
return u({
|
|
1353
|
-
...
|
|
1366
|
+
...tt(e),
|
|
1354
1367
|
...t
|
|
1355
1368
|
});
|
|
1356
1369
|
}
|
|
1357
1370
|
//#endregion
|
|
1358
1371
|
//#region src/mutations/auth/sign-in-email-mutation.ts
|
|
1359
|
-
function
|
|
1372
|
+
function rt(e) {
|
|
1360
1373
|
let t = a.signIn.email;
|
|
1361
1374
|
return s({
|
|
1362
1375
|
mutationKey: t,
|
|
@@ -1369,16 +1382,16 @@ function Xe(e) {
|
|
|
1369
1382
|
})
|
|
1370
1383
|
});
|
|
1371
1384
|
}
|
|
1372
|
-
function
|
|
1385
|
+
function it(e, t, n) {
|
|
1373
1386
|
return u({
|
|
1374
|
-
...
|
|
1387
|
+
...rt(e),
|
|
1375
1388
|
...t,
|
|
1376
1389
|
meta: { awaits: [o.session] }
|
|
1377
1390
|
}, n);
|
|
1378
1391
|
}
|
|
1379
1392
|
//#endregion
|
|
1380
1393
|
//#region src/mutations/auth/sign-in-social-mutation.ts
|
|
1381
|
-
function
|
|
1394
|
+
function at(e) {
|
|
1382
1395
|
let t = a.signIn.social;
|
|
1383
1396
|
return s({
|
|
1384
1397
|
mutationKey: t,
|
|
@@ -1391,15 +1404,15 @@ function Qe(e) {
|
|
|
1391
1404
|
})
|
|
1392
1405
|
});
|
|
1393
1406
|
}
|
|
1394
|
-
function
|
|
1407
|
+
function ot(e, t) {
|
|
1395
1408
|
return u({
|
|
1396
|
-
...
|
|
1409
|
+
...at(e),
|
|
1397
1410
|
...t
|
|
1398
1411
|
});
|
|
1399
1412
|
}
|
|
1400
1413
|
//#endregion
|
|
1401
1414
|
//#region src/mutations/auth/sign-out-mutation.ts
|
|
1402
|
-
function
|
|
1415
|
+
function st(e) {
|
|
1403
1416
|
let t = a.signOut;
|
|
1404
1417
|
return s({
|
|
1405
1418
|
mutationKey: t,
|
|
@@ -1412,10 +1425,10 @@ function et(e) {
|
|
|
1412
1425
|
})
|
|
1413
1426
|
});
|
|
1414
1427
|
}
|
|
1415
|
-
function
|
|
1428
|
+
function ct(e, t, n) {
|
|
1416
1429
|
let r = f(n);
|
|
1417
1430
|
return u({
|
|
1418
|
-
...
|
|
1431
|
+
...st(e),
|
|
1419
1432
|
...t,
|
|
1420
1433
|
onSuccess: async (...e) => {
|
|
1421
1434
|
r.removeQueries({ queryKey: o.all }), await t?.onSuccess?.(...e);
|
|
@@ -1424,7 +1437,7 @@ function tt(e, t, n) {
|
|
|
1424
1437
|
}
|
|
1425
1438
|
//#endregion
|
|
1426
1439
|
//#region src/mutations/auth/sign-up-email-mutation.ts
|
|
1427
|
-
function
|
|
1440
|
+
function lt(e) {
|
|
1428
1441
|
let t = a.signUp.email;
|
|
1429
1442
|
return s({
|
|
1430
1443
|
mutationKey: t,
|
|
@@ -1437,17 +1450,17 @@ function nt(e) {
|
|
|
1437
1450
|
})
|
|
1438
1451
|
});
|
|
1439
1452
|
}
|
|
1440
|
-
function
|
|
1453
|
+
function ut(e, t, n) {
|
|
1441
1454
|
return u({
|
|
1442
|
-
...
|
|
1455
|
+
...lt(e),
|
|
1443
1456
|
...t,
|
|
1444
1457
|
meta: { awaits: [o.session] }
|
|
1445
1458
|
}, n);
|
|
1446
1459
|
}
|
|
1447
1460
|
//#endregion
|
|
1448
1461
|
//#region src/mutations/magic-link/sign-in-magic-link-mutation.ts
|
|
1449
|
-
function
|
|
1450
|
-
let t =
|
|
1462
|
+
function dt(e) {
|
|
1463
|
+
let t = se.signIn;
|
|
1451
1464
|
return s({
|
|
1452
1465
|
mutationKey: t,
|
|
1453
1466
|
mutationFn: (t) => e.signIn.magicLink({
|
|
@@ -1459,16 +1472,16 @@ function it(e) {
|
|
|
1459
1472
|
})
|
|
1460
1473
|
});
|
|
1461
1474
|
}
|
|
1462
|
-
function
|
|
1475
|
+
function ft(e, t) {
|
|
1463
1476
|
return u({
|
|
1464
|
-
...
|
|
1477
|
+
...dt(e),
|
|
1465
1478
|
...t
|
|
1466
1479
|
});
|
|
1467
1480
|
}
|
|
1468
1481
|
//#endregion
|
|
1469
1482
|
//#region src/mutations/multi-session/revoke-multi-session-mutation.ts
|
|
1470
|
-
function
|
|
1471
|
-
let t =
|
|
1483
|
+
function pt(e) {
|
|
1484
|
+
let t = ce.revoke;
|
|
1472
1485
|
return s({
|
|
1473
1486
|
mutationKey: t,
|
|
1474
1487
|
mutationFn: (t) => e.multiSession.revoke({
|
|
@@ -1480,18 +1493,18 @@ function ot(e) {
|
|
|
1480
1493
|
})
|
|
1481
1494
|
});
|
|
1482
1495
|
}
|
|
1483
|
-
function
|
|
1496
|
+
function mt(e, t, n) {
|
|
1484
1497
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1485
1498
|
return u({
|
|
1486
|
-
...
|
|
1499
|
+
...pt(e),
|
|
1487
1500
|
...t,
|
|
1488
1501
|
meta: { awaits: [_.lists(i)] }
|
|
1489
1502
|
}, n);
|
|
1490
1503
|
}
|
|
1491
1504
|
//#endregion
|
|
1492
1505
|
//#region src/mutations/multi-session/set-active-session-mutation.ts
|
|
1493
|
-
function
|
|
1494
|
-
let t =
|
|
1506
|
+
function z(e) {
|
|
1507
|
+
let t = ce.setActive;
|
|
1495
1508
|
return s({
|
|
1496
1509
|
mutationKey: t,
|
|
1497
1510
|
mutationFn: (t) => e.multiSession.setActive({
|
|
@@ -1503,17 +1516,17 @@ function ct(e) {
|
|
|
1503
1516
|
})
|
|
1504
1517
|
});
|
|
1505
1518
|
}
|
|
1506
|
-
function
|
|
1519
|
+
function ht(e, t, n) {
|
|
1507
1520
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1508
1521
|
return u({
|
|
1509
|
-
...
|
|
1522
|
+
...z(e),
|
|
1510
1523
|
...t,
|
|
1511
1524
|
meta: { awaits: [o.session, _.lists(i)] }
|
|
1512
1525
|
}, n);
|
|
1513
1526
|
}
|
|
1514
1527
|
//#endregion
|
|
1515
1528
|
//#region src/mutations/organization/accept-invitation-mutation.ts
|
|
1516
|
-
function
|
|
1529
|
+
function gt(e) {
|
|
1517
1530
|
let t = v.acceptInvitation;
|
|
1518
1531
|
return s({
|
|
1519
1532
|
mutationKey: t,
|
|
@@ -1526,10 +1539,10 @@ function ut(e) {
|
|
|
1526
1539
|
})
|
|
1527
1540
|
});
|
|
1528
1541
|
}
|
|
1529
|
-
function
|
|
1542
|
+
function _t(e, t, n) {
|
|
1530
1543
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1531
1544
|
return u({
|
|
1532
|
-
...
|
|
1545
|
+
...gt(e),
|
|
1533
1546
|
...t,
|
|
1534
1547
|
meta: {
|
|
1535
1548
|
awaits: [y.userInvitations.all(i), y.lists(i)],
|
|
@@ -1539,7 +1552,7 @@ function dt(e, t, n) {
|
|
|
1539
1552
|
}
|
|
1540
1553
|
//#endregion
|
|
1541
1554
|
//#region src/mutations/organization/cancel-invitation-mutation.ts
|
|
1542
|
-
function
|
|
1555
|
+
function vt(e) {
|
|
1543
1556
|
let t = v.cancelInvitation;
|
|
1544
1557
|
return s({
|
|
1545
1558
|
mutationKey: t,
|
|
@@ -1552,17 +1565,17 @@ function ft(e) {
|
|
|
1552
1565
|
})
|
|
1553
1566
|
});
|
|
1554
1567
|
}
|
|
1555
|
-
function
|
|
1568
|
+
function yt(e, t, n) {
|
|
1556
1569
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1557
1570
|
return u({
|
|
1558
|
-
...
|
|
1571
|
+
...vt(e),
|
|
1559
1572
|
...t,
|
|
1560
1573
|
meta: { awaits: [y.invitations.all(i), y.fullDetails(i)] }
|
|
1561
1574
|
}, n);
|
|
1562
1575
|
}
|
|
1563
1576
|
//#endregion
|
|
1564
1577
|
//#region src/mutations/organization/check-slug-mutation.ts
|
|
1565
|
-
function
|
|
1578
|
+
function bt(e) {
|
|
1566
1579
|
let t = v.checkSlug;
|
|
1567
1580
|
return s({
|
|
1568
1581
|
mutationKey: t,
|
|
@@ -1575,15 +1588,15 @@ function mt(e) {
|
|
|
1575
1588
|
})
|
|
1576
1589
|
});
|
|
1577
1590
|
}
|
|
1578
|
-
function
|
|
1591
|
+
function xt(e, t) {
|
|
1579
1592
|
return u({
|
|
1580
|
-
...
|
|
1593
|
+
...bt(e),
|
|
1581
1594
|
...t
|
|
1582
1595
|
});
|
|
1583
1596
|
}
|
|
1584
1597
|
//#endregion
|
|
1585
1598
|
//#region src/mutations/organization/create-organization-mutation.ts
|
|
1586
|
-
function
|
|
1599
|
+
function St(e) {
|
|
1587
1600
|
let t = v.create;
|
|
1588
1601
|
return s({
|
|
1589
1602
|
mutationKey: t,
|
|
@@ -1596,10 +1609,10 @@ function gt(e) {
|
|
|
1596
1609
|
})
|
|
1597
1610
|
});
|
|
1598
1611
|
}
|
|
1599
|
-
function
|
|
1612
|
+
function Ct(e, t, n) {
|
|
1600
1613
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1601
1614
|
return u({
|
|
1602
|
-
...
|
|
1615
|
+
...St(e),
|
|
1603
1616
|
...t,
|
|
1604
1617
|
meta: {
|
|
1605
1618
|
awaits: [y.lists(i)],
|
|
@@ -1609,7 +1622,7 @@ function _t(e, t, n) {
|
|
|
1609
1622
|
}
|
|
1610
1623
|
//#endregion
|
|
1611
1624
|
//#region src/mutations/organization/delete-organization-mutation.ts
|
|
1612
|
-
function
|
|
1625
|
+
function wt(e) {
|
|
1613
1626
|
let t = v.delete;
|
|
1614
1627
|
return s({
|
|
1615
1628
|
mutationKey: t,
|
|
@@ -1622,10 +1635,10 @@ function vt(e) {
|
|
|
1622
1635
|
})
|
|
1623
1636
|
});
|
|
1624
1637
|
}
|
|
1625
|
-
function
|
|
1638
|
+
function Tt(e, t, n) {
|
|
1626
1639
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1627
1640
|
return u({
|
|
1628
|
-
...
|
|
1641
|
+
...wt(e),
|
|
1629
1642
|
...t,
|
|
1630
1643
|
meta: {
|
|
1631
1644
|
awaits: [y.lists(i)],
|
|
@@ -1635,7 +1648,7 @@ function yt(e, t, n) {
|
|
|
1635
1648
|
}
|
|
1636
1649
|
//#endregion
|
|
1637
1650
|
//#region src/queries/organization/active-organization-query.ts
|
|
1638
|
-
function
|
|
1651
|
+
function B(e, t, n) {
|
|
1639
1652
|
return c({
|
|
1640
1653
|
queryKey: y.activeOrganization(t, n?.query),
|
|
1641
1654
|
queryFn: ({ signal: t }) => e.organization.getFullOrganization({
|
|
@@ -1648,9 +1661,9 @@ function z(e, t, n) {
|
|
|
1648
1661
|
})
|
|
1649
1662
|
});
|
|
1650
1663
|
}
|
|
1651
|
-
var
|
|
1652
|
-
function
|
|
1653
|
-
let { data: r } = R(e, void 0, n), a = r?.user.id, { slug: o } = i(
|
|
1664
|
+
var Et = (e, t, n, r) => e.ensureQueryData(B(t, n, r)), Dt = (e, t, n, r) => e.prefetchQuery(B(t, n, r)), Ot = (e, t, n, r) => e.fetchQuery(B(t, n, r));
|
|
1665
|
+
function V(e, t = {}, n) {
|
|
1666
|
+
let { data: r } = R(e, void 0, n), a = r?.user.id, { slug: o } = i(le), { query: s, fetchOptions: c, ...u } = t, f = B(e, a, {
|
|
1654
1667
|
fetchOptions: c,
|
|
1655
1668
|
query: o ? { organizationSlug: o } : s
|
|
1656
1669
|
});
|
|
@@ -1662,7 +1675,7 @@ function B(e, t = {}, n) {
|
|
|
1662
1675
|
}
|
|
1663
1676
|
//#endregion
|
|
1664
1677
|
//#region src/queries/organization/full-organization-query.ts
|
|
1665
|
-
function
|
|
1678
|
+
function H(e, t, n) {
|
|
1666
1679
|
return c({
|
|
1667
1680
|
queryKey: y.fullDetail(t, n?.query),
|
|
1668
1681
|
queryFn: ({ signal: t }) => e.organization.getFullOrganization({
|
|
@@ -1675,9 +1688,9 @@ function V(e, t, n) {
|
|
|
1675
1688
|
})
|
|
1676
1689
|
});
|
|
1677
1690
|
}
|
|
1678
|
-
var
|
|
1679
|
-
function
|
|
1680
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c =
|
|
1691
|
+
var kt = (e, t, n, r) => e.ensureQueryData(H(t, n, r)), At = (e, t, n, r) => e.prefetchQuery(H(t, n, r)), jt = (e, t, n, r) => e.fetchQuery(H(t, n, r));
|
|
1692
|
+
function Mt(e, t = {}, n) {
|
|
1693
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = H(e, i, {
|
|
1681
1694
|
query: a,
|
|
1682
1695
|
fetchOptions: o
|
|
1683
1696
|
});
|
|
@@ -1689,7 +1702,7 @@ function Et(e, t = {}, n) {
|
|
|
1689
1702
|
}
|
|
1690
1703
|
//#endregion
|
|
1691
1704
|
//#region src/queries/organization/has-permission-query.ts
|
|
1692
|
-
function
|
|
1705
|
+
function U(e, t, n) {
|
|
1693
1706
|
let { fetchOptions: r, ...i } = n;
|
|
1694
1707
|
return c({
|
|
1695
1708
|
queryKey: y.permissions.has(t, i),
|
|
@@ -1703,9 +1716,9 @@ function H(e, t, n) {
|
|
|
1703
1716
|
})
|
|
1704
1717
|
});
|
|
1705
1718
|
}
|
|
1706
|
-
var
|
|
1707
|
-
function
|
|
1708
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { fetchOptions: a, permissions: o, organizationId: s, ...c } = t, { data: u } =
|
|
1719
|
+
var Nt = (e, t, n, r) => e.ensureQueryData(U(t, n, r)), Pt = (e, t, n, r) => e.prefetchQuery(U(t, n, r)), Ft = (e, t, n, r) => e.fetchQuery(U(t, n, r));
|
|
1720
|
+
function It(e, t, n) {
|
|
1721
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { fetchOptions: a, permissions: o, organizationId: s, ...c } = t, { data: u } = V(e, { enabled: !s }, n), f = s ?? u?.id, p = U(e, i, {
|
|
1709
1722
|
fetchOptions: a,
|
|
1710
1723
|
organizationId: f,
|
|
1711
1724
|
permissions: o
|
|
@@ -1718,7 +1731,7 @@ function At(e, t, n) {
|
|
|
1718
1731
|
}
|
|
1719
1732
|
//#endregion
|
|
1720
1733
|
//#region src/queries/organization/list-invitations-query.ts
|
|
1721
|
-
function
|
|
1734
|
+
function W(e, t, n) {
|
|
1722
1735
|
return c({
|
|
1723
1736
|
queryKey: y.invitations.list(t, n?.query),
|
|
1724
1737
|
queryFn: ({ signal: t }) => e.organization.listInvitations({
|
|
@@ -1731,9 +1744,9 @@ function U(e, t, n) {
|
|
|
1731
1744
|
})
|
|
1732
1745
|
});
|
|
1733
1746
|
}
|
|
1734
|
-
var
|
|
1735
|
-
function
|
|
1736
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } =
|
|
1747
|
+
var Lt = (e, t, n, r) => e.ensureQueryData(W(t, n, r)), Rt = (e, t, n, r) => e.prefetchQuery(W(t, n, r)), zt = (e, t, n, r) => e.fetchQuery(W(t, n, r));
|
|
1748
|
+
function Bt(e, t = {}, n) {
|
|
1749
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = V(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = W(e, i, {
|
|
1737
1750
|
query: {
|
|
1738
1751
|
...a,
|
|
1739
1752
|
organizationId: u
|
|
@@ -1748,7 +1761,7 @@ function Pt(e, t = {}, n) {
|
|
|
1748
1761
|
}
|
|
1749
1762
|
//#endregion
|
|
1750
1763
|
//#region src/queries/organization/list-members-query.ts
|
|
1751
|
-
function
|
|
1764
|
+
function G(e, t, n) {
|
|
1752
1765
|
return c({
|
|
1753
1766
|
queryKey: y.members.list(t, n?.query),
|
|
1754
1767
|
queryFn: ({ signal: t }) => e.organization.listMembers({
|
|
@@ -1761,9 +1774,9 @@ function W(e, t, n) {
|
|
|
1761
1774
|
})
|
|
1762
1775
|
});
|
|
1763
1776
|
}
|
|
1764
|
-
var
|
|
1765
|
-
function
|
|
1766
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } =
|
|
1777
|
+
var Vt = (e, t, n, r) => e.ensureQueryData(G(t, n, r)), Ht = (e, t, n, r) => e.prefetchQuery(G(t, n, r)), Ut = (e, t, n, r) => e.fetchQuery(G(t, n, r));
|
|
1778
|
+
function Wt(e, t = {}, n) {
|
|
1779
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = V(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = G(e, i, {
|
|
1767
1780
|
query: {
|
|
1768
1781
|
...a,
|
|
1769
1782
|
organizationId: u
|
|
@@ -1778,7 +1791,7 @@ function Rt(e, t = {}, n) {
|
|
|
1778
1791
|
}
|
|
1779
1792
|
//#endregion
|
|
1780
1793
|
//#region src/queries/organization/list-organizations-query.ts
|
|
1781
|
-
function
|
|
1794
|
+
function K(e, t, n) {
|
|
1782
1795
|
return c({
|
|
1783
1796
|
queryKey: y.list(t, n?.query),
|
|
1784
1797
|
queryFn: ({ signal: t }) => e.organization.list({
|
|
@@ -1791,9 +1804,9 @@ function G(e, t, n) {
|
|
|
1791
1804
|
})
|
|
1792
1805
|
});
|
|
1793
1806
|
}
|
|
1794
|
-
var
|
|
1795
|
-
function
|
|
1796
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c =
|
|
1807
|
+
var Gt = (e, t, n, r) => e.ensureQueryData(K(t, n, r)), Kt = (e, t, n, r) => e.prefetchQuery(K(t, n, r)), qt = (e, t, n, r) => e.fetchQuery(K(t, n, r));
|
|
1808
|
+
function Jt(e, t = {}, n) {
|
|
1809
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = K(e, i, {
|
|
1797
1810
|
query: a,
|
|
1798
1811
|
fetchOptions: o
|
|
1799
1812
|
});
|
|
@@ -1805,7 +1818,7 @@ function Ht(e, t = {}, n) {
|
|
|
1805
1818
|
}
|
|
1806
1819
|
//#endregion
|
|
1807
1820
|
//#region src/queries/organization/list-user-invitations-query.ts
|
|
1808
|
-
function
|
|
1821
|
+
function q(e, t, n) {
|
|
1809
1822
|
return c({
|
|
1810
1823
|
queryKey: y.userInvitations.list(t, n?.query),
|
|
1811
1824
|
queryFn: ({ signal: t }) => e.organization.listUserInvitations({
|
|
@@ -1818,9 +1831,9 @@ function K(e, t, n) {
|
|
|
1818
1831
|
})
|
|
1819
1832
|
});
|
|
1820
1833
|
}
|
|
1821
|
-
var
|
|
1822
|
-
function
|
|
1823
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c =
|
|
1834
|
+
var Yt = (e, t, n, r) => e.ensureQueryData(q(t, n, r)), Xt = (e, t, n, r) => e.prefetchQuery(q(t, n, r)), Zt = (e, t, n, r) => e.fetchQuery(q(t, n, r));
|
|
1835
|
+
function Qt(e, t = {}, n) {
|
|
1836
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = q(e, i, {
|
|
1824
1837
|
query: a,
|
|
1825
1838
|
fetchOptions: o
|
|
1826
1839
|
});
|
|
@@ -1832,7 +1845,7 @@ function Kt(e, t = {}, n) {
|
|
|
1832
1845
|
}
|
|
1833
1846
|
//#endregion
|
|
1834
1847
|
//#region src/mutations/organization/invite-member-mutation.ts
|
|
1835
|
-
function
|
|
1848
|
+
function $t(e) {
|
|
1836
1849
|
let t = v.inviteMember;
|
|
1837
1850
|
return s({
|
|
1838
1851
|
mutationKey: t,
|
|
@@ -1845,10 +1858,10 @@ function qt(e) {
|
|
|
1845
1858
|
})
|
|
1846
1859
|
});
|
|
1847
1860
|
}
|
|
1848
|
-
function
|
|
1849
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } =
|
|
1861
|
+
function en(e, t, n) {
|
|
1862
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
|
|
1850
1863
|
return u({
|
|
1851
|
-
|
|
1864
|
+
...$t(e),
|
|
1852
1865
|
...t,
|
|
1853
1866
|
mutationFn: (t) => e.organization.inviteMember({
|
|
1854
1867
|
...t,
|
|
@@ -1863,7 +1876,7 @@ function Jt(e, t, n) {
|
|
|
1863
1876
|
}
|
|
1864
1877
|
//#endregion
|
|
1865
1878
|
//#region src/mutations/organization/leave-organization-mutation.ts
|
|
1866
|
-
function
|
|
1879
|
+
function tn(e) {
|
|
1867
1880
|
let t = v.leave;
|
|
1868
1881
|
return s({
|
|
1869
1882
|
mutationKey: t,
|
|
@@ -1876,10 +1889,10 @@ function Yt(e) {
|
|
|
1876
1889
|
})
|
|
1877
1890
|
});
|
|
1878
1891
|
}
|
|
1879
|
-
function
|
|
1892
|
+
function nn(e, t, n) {
|
|
1880
1893
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1881
1894
|
return u({
|
|
1882
|
-
...
|
|
1895
|
+
...tn(e),
|
|
1883
1896
|
...t,
|
|
1884
1897
|
meta: {
|
|
1885
1898
|
awaits: [y.members.all(i), y.fullDetails(i)],
|
|
@@ -1889,7 +1902,7 @@ function Xt(e, t, n) {
|
|
|
1889
1902
|
}
|
|
1890
1903
|
//#endregion
|
|
1891
1904
|
//#region src/mutations/organization/reject-invitation-mutation.ts
|
|
1892
|
-
function
|
|
1905
|
+
function rn(e) {
|
|
1893
1906
|
let t = v.rejectInvitation;
|
|
1894
1907
|
return s({
|
|
1895
1908
|
mutationKey: t,
|
|
@@ -1902,17 +1915,17 @@ function Zt(e) {
|
|
|
1902
1915
|
})
|
|
1903
1916
|
});
|
|
1904
1917
|
}
|
|
1905
|
-
function
|
|
1918
|
+
function an(e, t, n) {
|
|
1906
1919
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1907
1920
|
return u({
|
|
1908
|
-
...
|
|
1921
|
+
...rn(e),
|
|
1909
1922
|
...t,
|
|
1910
1923
|
meta: { awaits: [y.userInvitations.all(i)] }
|
|
1911
1924
|
}, n);
|
|
1912
1925
|
}
|
|
1913
1926
|
//#endregion
|
|
1914
1927
|
//#region src/mutations/organization/remove-member-mutation.ts
|
|
1915
|
-
function
|
|
1928
|
+
function on(e) {
|
|
1916
1929
|
let t = v.removeMember;
|
|
1917
1930
|
return s({
|
|
1918
1931
|
mutationKey: t,
|
|
@@ -1925,10 +1938,10 @@ function $t(e) {
|
|
|
1925
1938
|
})
|
|
1926
1939
|
});
|
|
1927
1940
|
}
|
|
1928
|
-
function
|
|
1941
|
+
function sn(e, t, n) {
|
|
1929
1942
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
1930
1943
|
return u({
|
|
1931
|
-
|
|
1944
|
+
...on(e),
|
|
1932
1945
|
...t,
|
|
1933
1946
|
meta: {
|
|
1934
1947
|
awaits: [y.members.all(i), y.fullDetails(i)],
|
|
@@ -1938,7 +1951,7 @@ function en(e, t, n) {
|
|
|
1938
1951
|
}
|
|
1939
1952
|
//#endregion
|
|
1940
1953
|
//#region src/mutations/organization/set-active-organization-mutation.ts
|
|
1941
|
-
function
|
|
1954
|
+
function cn(e) {
|
|
1942
1955
|
let t = v.setActive;
|
|
1943
1956
|
return s({
|
|
1944
1957
|
mutationKey: t,
|
|
@@ -1951,10 +1964,10 @@ function tn(e) {
|
|
|
1951
1964
|
})
|
|
1952
1965
|
});
|
|
1953
1966
|
}
|
|
1954
|
-
function
|
|
1955
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } =
|
|
1967
|
+
function ln(e, t, n) {
|
|
1968
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = Jt(e, void 0, n);
|
|
1956
1969
|
return u({
|
|
1957
|
-
...
|
|
1970
|
+
...cn(e),
|
|
1958
1971
|
...t,
|
|
1959
1972
|
onMutate: async (e, t) => {
|
|
1960
1973
|
await t.client.cancelQueries({ queryKey: y.activeOrganizations(i) });
|
|
@@ -1973,7 +1986,7 @@ function nn(e, t, n) {
|
|
|
1973
1986
|
}
|
|
1974
1987
|
//#endregion
|
|
1975
1988
|
//#region src/mutations/organization/update-member-role-mutation.ts
|
|
1976
|
-
function
|
|
1989
|
+
function un(e) {
|
|
1977
1990
|
let t = v.updateMemberRole;
|
|
1978
1991
|
return s({
|
|
1979
1992
|
mutationKey: t,
|
|
@@ -1986,10 +1999,10 @@ function rn(e) {
|
|
|
1986
1999
|
})
|
|
1987
2000
|
});
|
|
1988
2001
|
}
|
|
1989
|
-
function
|
|
1990
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } =
|
|
2002
|
+
function dn(e, t, n) {
|
|
2003
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
|
|
1991
2004
|
return u({
|
|
1992
|
-
...
|
|
2005
|
+
...un(e),
|
|
1993
2006
|
...t,
|
|
1994
2007
|
mutationFn: (t) => e.organization.updateMemberRole({
|
|
1995
2008
|
...t,
|
|
@@ -2007,7 +2020,7 @@ function an(e, t, n) {
|
|
|
2007
2020
|
}
|
|
2008
2021
|
//#endregion
|
|
2009
2022
|
//#region src/mutations/organization/update-organization-mutation.ts
|
|
2010
|
-
function
|
|
2023
|
+
function fn(e) {
|
|
2011
2024
|
let t = v.update;
|
|
2012
2025
|
return s({
|
|
2013
2026
|
mutationKey: t,
|
|
@@ -2020,10 +2033,10 @@ function on(e) {
|
|
|
2020
2033
|
})
|
|
2021
2034
|
});
|
|
2022
2035
|
}
|
|
2023
|
-
function
|
|
2024
|
-
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } =
|
|
2036
|
+
function pn(e, t, n) {
|
|
2037
|
+
let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
|
|
2025
2038
|
return u({
|
|
2026
|
-
...
|
|
2039
|
+
...fn(e),
|
|
2027
2040
|
...t,
|
|
2028
2041
|
mutationFn: (t) => e.organization.update({
|
|
2029
2042
|
...t,
|
|
@@ -2042,7 +2055,7 @@ function sn(e, t, n) {
|
|
|
2042
2055
|
}
|
|
2043
2056
|
//#endregion
|
|
2044
2057
|
//#region src/mutations/passkey/add-passkey-mutation.ts
|
|
2045
|
-
function
|
|
2058
|
+
function mn(e) {
|
|
2046
2059
|
let t = b.addPasskey;
|
|
2047
2060
|
return s({
|
|
2048
2061
|
mutationKey: t,
|
|
@@ -2055,17 +2068,17 @@ function cn(e) {
|
|
|
2055
2068
|
})
|
|
2056
2069
|
});
|
|
2057
2070
|
}
|
|
2058
|
-
function
|
|
2071
|
+
function hn(e, t, n) {
|
|
2059
2072
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
2060
2073
|
return u({
|
|
2061
|
-
...
|
|
2074
|
+
...mn(e),
|
|
2062
2075
|
...t,
|
|
2063
2076
|
meta: { awaits: [x.lists(i)] }
|
|
2064
2077
|
}, n);
|
|
2065
2078
|
}
|
|
2066
2079
|
//#endregion
|
|
2067
2080
|
//#region src/mutations/passkey/delete-passkey-mutation.ts
|
|
2068
|
-
function
|
|
2081
|
+
function gn(e) {
|
|
2069
2082
|
let t = b.deletePasskey;
|
|
2070
2083
|
return s({
|
|
2071
2084
|
mutationKey: t,
|
|
@@ -2078,17 +2091,17 @@ function un(e) {
|
|
|
2078
2091
|
})
|
|
2079
2092
|
});
|
|
2080
2093
|
}
|
|
2081
|
-
function
|
|
2094
|
+
function _n(e, t, n) {
|
|
2082
2095
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
2083
2096
|
return u({
|
|
2084
|
-
...
|
|
2097
|
+
...gn(e),
|
|
2085
2098
|
...t,
|
|
2086
2099
|
meta: { awaits: [x.lists(i)] }
|
|
2087
2100
|
}, n);
|
|
2088
2101
|
}
|
|
2089
2102
|
//#endregion
|
|
2090
2103
|
//#region src/mutations/passkey/sign-in-passkey-mutation.ts
|
|
2091
|
-
function
|
|
2104
|
+
function vn(e) {
|
|
2092
2105
|
let t = b.signIn;
|
|
2093
2106
|
return s({
|
|
2094
2107
|
mutationKey: t,
|
|
@@ -2101,16 +2114,16 @@ function fn(e) {
|
|
|
2101
2114
|
})
|
|
2102
2115
|
});
|
|
2103
2116
|
}
|
|
2104
|
-
function
|
|
2117
|
+
function yn(e, t, n) {
|
|
2105
2118
|
return u({
|
|
2106
|
-
...
|
|
2119
|
+
...vn(e),
|
|
2107
2120
|
...t,
|
|
2108
2121
|
meta: { awaits: [o.session] }
|
|
2109
2122
|
}, n);
|
|
2110
2123
|
}
|
|
2111
2124
|
//#endregion
|
|
2112
2125
|
//#region src/mutations/settings/change-email-mutation.ts
|
|
2113
|
-
function
|
|
2126
|
+
function bn(e) {
|
|
2114
2127
|
let t = a.changeEmail;
|
|
2115
2128
|
return s({
|
|
2116
2129
|
mutationKey: t,
|
|
@@ -2123,16 +2136,16 @@ function mn(e) {
|
|
|
2123
2136
|
})
|
|
2124
2137
|
});
|
|
2125
2138
|
}
|
|
2126
|
-
function
|
|
2139
|
+
function xn(e, t, n) {
|
|
2127
2140
|
return u({
|
|
2128
|
-
...
|
|
2141
|
+
...bn(e),
|
|
2129
2142
|
...t,
|
|
2130
2143
|
meta: { awaits: [o.session] }
|
|
2131
2144
|
}, n);
|
|
2132
2145
|
}
|
|
2133
2146
|
//#endregion
|
|
2134
2147
|
//#region src/mutations/settings/change-password-mutation.ts
|
|
2135
|
-
function
|
|
2148
|
+
function Sn(e) {
|
|
2136
2149
|
let t = a.changePassword;
|
|
2137
2150
|
return s({
|
|
2138
2151
|
mutationKey: t,
|
|
@@ -2145,16 +2158,16 @@ function gn(e) {
|
|
|
2145
2158
|
})
|
|
2146
2159
|
});
|
|
2147
2160
|
}
|
|
2148
|
-
function
|
|
2161
|
+
function Cn(e, t) {
|
|
2149
2162
|
return u({
|
|
2150
|
-
...
|
|
2163
|
+
...Sn(e),
|
|
2151
2164
|
...t
|
|
2152
2165
|
});
|
|
2153
2166
|
}
|
|
2154
2167
|
//#endregion
|
|
2155
2168
|
//#region src/mutations/settings/delete-user-mutation.ts
|
|
2156
|
-
function
|
|
2157
|
-
let t =
|
|
2169
|
+
function wn(e) {
|
|
2170
|
+
let t = ie.deleteUser;
|
|
2158
2171
|
return s({
|
|
2159
2172
|
mutationKey: t,
|
|
2160
2173
|
mutationFn: (t) => e.deleteUser({
|
|
@@ -2166,15 +2179,15 @@ function q(e) {
|
|
|
2166
2179
|
})
|
|
2167
2180
|
});
|
|
2168
2181
|
}
|
|
2169
|
-
function
|
|
2182
|
+
function Tn(e, t) {
|
|
2170
2183
|
return u({
|
|
2171
|
-
...
|
|
2184
|
+
...wn(e),
|
|
2172
2185
|
...t
|
|
2173
2186
|
});
|
|
2174
2187
|
}
|
|
2175
2188
|
//#endregion
|
|
2176
2189
|
//#region src/mutations/settings/link-social-mutation.ts
|
|
2177
|
-
function
|
|
2190
|
+
function En(e) {
|
|
2178
2191
|
let t = a.linkSocial;
|
|
2179
2192
|
return s({
|
|
2180
2193
|
mutationKey: t,
|
|
@@ -2187,15 +2200,15 @@ function yn(e) {
|
|
|
2187
2200
|
})
|
|
2188
2201
|
});
|
|
2189
2202
|
}
|
|
2190
|
-
function
|
|
2203
|
+
function Dn(e, t) {
|
|
2191
2204
|
return u({
|
|
2192
|
-
...
|
|
2205
|
+
...En(e),
|
|
2193
2206
|
...t
|
|
2194
2207
|
});
|
|
2195
2208
|
}
|
|
2196
2209
|
//#endregion
|
|
2197
2210
|
//#region src/mutations/settings/revoke-session-mutation.ts
|
|
2198
|
-
function
|
|
2211
|
+
function On(e) {
|
|
2199
2212
|
let t = a.revokeSession;
|
|
2200
2213
|
return s({
|
|
2201
2214
|
mutationKey: t,
|
|
@@ -2208,17 +2221,17 @@ function xn(e) {
|
|
|
2208
2221
|
})
|
|
2209
2222
|
});
|
|
2210
2223
|
}
|
|
2211
|
-
function
|
|
2224
|
+
function kn(e, t, n) {
|
|
2212
2225
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
2213
2226
|
return u({
|
|
2214
|
-
...
|
|
2227
|
+
...On(e),
|
|
2215
2228
|
...t,
|
|
2216
2229
|
meta: { awaits: [o.listSessions(i)] }
|
|
2217
2230
|
}, n);
|
|
2218
2231
|
}
|
|
2219
2232
|
//#endregion
|
|
2220
2233
|
//#region src/mutations/settings/unlink-account-mutation.ts
|
|
2221
|
-
function
|
|
2234
|
+
function An(e) {
|
|
2222
2235
|
let t = a.unlinkAccount;
|
|
2223
2236
|
return s({
|
|
2224
2237
|
mutationKey: t,
|
|
@@ -2231,17 +2244,17 @@ function Cn(e) {
|
|
|
2231
2244
|
})
|
|
2232
2245
|
});
|
|
2233
2246
|
}
|
|
2234
|
-
function
|
|
2247
|
+
function jn(e, t, n) {
|
|
2235
2248
|
let { data: r } = R(e, void 0, n), i = r?.user.id;
|
|
2236
2249
|
return u({
|
|
2237
|
-
...
|
|
2250
|
+
...An(e),
|
|
2238
2251
|
...t,
|
|
2239
2252
|
meta: { awaits: [o.listAccounts(i)] }
|
|
2240
2253
|
}, n);
|
|
2241
2254
|
}
|
|
2242
2255
|
//#endregion
|
|
2243
2256
|
//#region src/mutations/settings/update-user-mutation.ts
|
|
2244
|
-
function
|
|
2257
|
+
function Mn(e) {
|
|
2245
2258
|
let t = a.updateUser;
|
|
2246
2259
|
return s({
|
|
2247
2260
|
mutationKey: t,
|
|
@@ -2254,17 +2267,17 @@ function Tn(e) {
|
|
|
2254
2267
|
})
|
|
2255
2268
|
});
|
|
2256
2269
|
}
|
|
2257
|
-
function
|
|
2270
|
+
function Nn(e, t, n) {
|
|
2258
2271
|
return u({
|
|
2259
|
-
...
|
|
2272
|
+
...Mn(e),
|
|
2260
2273
|
...t,
|
|
2261
2274
|
meta: { awaits: [o.session] }
|
|
2262
2275
|
}, n);
|
|
2263
2276
|
}
|
|
2264
2277
|
//#endregion
|
|
2265
2278
|
//#region src/mutations/username/is-username-available-mutation.ts
|
|
2266
|
-
function
|
|
2267
|
-
let t =
|
|
2279
|
+
function Pn(e) {
|
|
2280
|
+
let t = ue.isUsernameAvailable;
|
|
2268
2281
|
return s({
|
|
2269
2282
|
mutationKey: t,
|
|
2270
2283
|
mutationFn: (t) => e.isUsernameAvailable({
|
|
@@ -2276,16 +2289,16 @@ function Dn(e) {
|
|
|
2276
2289
|
})
|
|
2277
2290
|
});
|
|
2278
2291
|
}
|
|
2279
|
-
function
|
|
2292
|
+
function Fn(e, t) {
|
|
2280
2293
|
return u({
|
|
2281
|
-
...
|
|
2294
|
+
...Pn(e),
|
|
2282
2295
|
...t
|
|
2283
2296
|
});
|
|
2284
2297
|
}
|
|
2285
2298
|
//#endregion
|
|
2286
2299
|
//#region src/mutations/username/sign-in-username-mutation.ts
|
|
2287
|
-
function
|
|
2288
|
-
let t =
|
|
2300
|
+
function In(e) {
|
|
2301
|
+
let t = ue.signIn;
|
|
2289
2302
|
return s({
|
|
2290
2303
|
mutationKey: t,
|
|
2291
2304
|
mutationFn: (t) => e.signIn.username({
|
|
@@ -2297,9 +2310,9 @@ function kn(e) {
|
|
|
2297
2310
|
})
|
|
2298
2311
|
});
|
|
2299
2312
|
}
|
|
2300
|
-
function
|
|
2313
|
+
function Ln(e, t, n) {
|
|
2301
2314
|
return u({
|
|
2302
|
-
...
|
|
2315
|
+
...In(e),
|
|
2303
2316
|
...t,
|
|
2304
2317
|
meta: { awaits: [o.session] }
|
|
2305
2318
|
}, n);
|
|
@@ -2319,8 +2332,8 @@ function J(e, t, n) {
|
|
|
2319
2332
|
})
|
|
2320
2333
|
});
|
|
2321
2334
|
}
|
|
2322
|
-
var
|
|
2323
|
-
function
|
|
2335
|
+
var Rn = (e, t, n, r) => e.ensureQueryData(J(t, n, r)), zn = (e, t, n, r) => e.prefetchQuery(J(t, n, r)), Bn = (e, t, n, r) => e.fetchQuery(J(t, n, r));
|
|
2336
|
+
function Vn(e, t = {}, n) {
|
|
2324
2337
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = J(e, i, {
|
|
2325
2338
|
query: a,
|
|
2326
2339
|
fetchOptions: o
|
|
@@ -2346,8 +2359,8 @@ function Y(e, t, n) {
|
|
|
2346
2359
|
})
|
|
2347
2360
|
});
|
|
2348
2361
|
}
|
|
2349
|
-
var
|
|
2350
|
-
function
|
|
2362
|
+
var Hn = (e, t, n, r) => e.ensureQueryData(Y(t, n, r)), Un = (e, t, n, r) => e.prefetchQuery(Y(t, n, r)), Wn = (e, t, n, r) => e.fetchQuery(Y(t, n, r));
|
|
2363
|
+
function Gn(e, t = {}, n) {
|
|
2351
2364
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Y(e, i, {
|
|
2352
2365
|
query: a,
|
|
2353
2366
|
fetchOptions: o
|
|
@@ -2373,8 +2386,8 @@ function X(e, t, n) {
|
|
|
2373
2386
|
})
|
|
2374
2387
|
});
|
|
2375
2388
|
}
|
|
2376
|
-
var
|
|
2377
|
-
function
|
|
2389
|
+
var Kn = (e, t, n, r) => e.ensureQueryData(X(t, n, r)), qn = (e, t, n, r) => e.prefetchQuery(X(t, n, r)), Jn = (e, t, n, r) => e.fetchQuery(X(t, n, r));
|
|
2390
|
+
function Yn(e, t = {}, n) {
|
|
2378
2391
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = X(e, i, {
|
|
2379
2392
|
query: a,
|
|
2380
2393
|
fetchOptions: o
|
|
@@ -2400,8 +2413,8 @@ function Z(e, t, n) {
|
|
|
2400
2413
|
})
|
|
2401
2414
|
});
|
|
2402
2415
|
}
|
|
2403
|
-
var
|
|
2404
|
-
function
|
|
2416
|
+
var Xn = (e, t, n, r) => e.ensureQueryData(Z(t, n, r)), Zn = (e, t, n, r) => e.prefetchQuery(Z(t, n, r)), Qn = (e, t, n, r) => e.fetchQuery(Z(t, n, r));
|
|
2417
|
+
function $n(e, t = {}, n) {
|
|
2405
2418
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Z(e, i, {
|
|
2406
2419
|
query: a,
|
|
2407
2420
|
fetchOptions: o
|
|
@@ -2427,8 +2440,8 @@ function Q(e, t, n) {
|
|
|
2427
2440
|
})
|
|
2428
2441
|
});
|
|
2429
2442
|
}
|
|
2430
|
-
var
|
|
2431
|
-
function
|
|
2443
|
+
var er = (e, t, n, r) => e.ensureQueryData(Q(t, n, r)), tr = (e, t, n, r) => e.prefetchQuery(Q(t, n, r)), nr = (e, t, n, r) => e.fetchQuery(Q(t, n, r));
|
|
2444
|
+
function rr(e, t = {}, n) {
|
|
2432
2445
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Q(e, i, {
|
|
2433
2446
|
query: a,
|
|
2434
2447
|
fetchOptions: o
|
|
@@ -2454,8 +2467,8 @@ function $(e, t, n) {
|
|
|
2454
2467
|
})
|
|
2455
2468
|
});
|
|
2456
2469
|
}
|
|
2457
|
-
var
|
|
2458
|
-
function
|
|
2470
|
+
var ir = (e, t, n, r) => e.ensureQueryData($(t, n, r)), ar = (e, t, n, r) => e.prefetchQuery($(t, n, r)), or = (e, t, n, r) => e.fetchQuery($(t, n, r));
|
|
2471
|
+
function sr(e, t = {}, n) {
|
|
2459
2472
|
let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = $(e, i, {
|
|
2460
2473
|
query: a,
|
|
2461
2474
|
fetchOptions: o
|
|
@@ -2467,4 +2480,4 @@ function er(e, t = {}, n) {
|
|
|
2467
2480
|
}, n);
|
|
2468
2481
|
}
|
|
2469
2482
|
//#endregion
|
|
2470
|
-
export {
|
|
2483
|
+
export { de as Apple, fe as Atlassian, n as AuthProvider, pe as Cognito, me as Discord, he as Dropbox, ge as Facebook, t as FetchOptionsProvider, _e as Figma, ve as GitHub, S as GitLab, C as Google, w as HuggingFace, T as Kakao, E as Kick, D as Line, O as Linear, k as LinkedIn, A as Microsoft, j as Naver, M as Notion, P as PayPal, N as Paybin, F as Polar, I as Railway, ye as Reddit, be as Roblox, xe as Salesforce, Se as Slack, Ce as Spotify, Ne as ThemePreviewDark, Me as ThemePreviewLight, je as ThemePreviewSystem, we as TikTok, Te as Twitch, De as VK, Ee as Vercel, Oe as WeChat, ke as X, Ae as Zoom, gt as acceptInvitationOptions, Z as accountInfoOptions, B as activeOrganizationOptions, mn as addPasskeyOptions, He as authMutationOptions, We as authQueryOptions, vt as cancelInvitationOptions, bn as changeEmailOptions, Sn as changePasswordOptions, bt as checkSlugOptions, qe as createApiKeyOptions, St as createOrganizationOptions, Ye as deleteApiKeyOptions, wt as deleteOrganizationOptions, gn as deletePasskeyOptions, wn as deleteUserOptions, Xn as ensureAccountInfo, Et as ensureActiveOrganization, kt as ensureFullOrganization, Nt as ensureHasPermission, er as ensureListAccounts, Rn as ensureListApiKeys, Hn as ensureListDeviceSessions, Lt as ensureListOrganizationInvitations, Vt as ensureListOrganizationMembers, Gt as ensureListOrganizations, Kn as ensureListPasskeys, ir as ensureListSessions, Yt as ensureListUserInvitations, Pe as ensureSession, Qn as fetchAccountInfo, Ot as fetchActiveOrganization, jt as fetchFullOrganization, Ft as fetchHasPermission, nr as fetchListAccounts, Bn as fetchListApiKeys, Wn as fetchListDeviceSessions, zt as fetchListOrganizationInvitations, Ut as fetchListOrganizationMembers, qt as fetchListOrganizations, Jn as fetchListPasskeys, or as fetchListSessions, Zt as fetchListUserInvitations, Ie as fetchSession, H as fullOrganizationOptions, U as hasPermissionOptions, $t as inviteMemberOptions, Pn as isUsernameAvailableOptions, tn as leaveOrganizationOptions, En as linkSocialOptions, Q as listAccountsOptions, J as listApiKeysOptions, Y as listDeviceSessionsOptions, W as listOrganizationInvitationsOptions, G as listOrganizationMembersOptions, K as listOrganizationsOptions, X as listPasskeysOptions, $ as listSessionsOptions, q as listUserInvitationsOptions, Zn as prefetchAccountInfo, Dt as prefetchActiveOrganization, At as prefetchFullOrganization, Pt as prefetchHasPermission, tr as prefetchListAccounts, zn as prefetchListApiKeys, Un as prefetchListDeviceSessions, Rt as prefetchListOrganizationInvitations, Ht as prefetchListOrganizationMembers, Kt as prefetchListOrganizations, qn as prefetchListPasskeys, ar as prefetchListSessions, Xt as prefetchListUserInvitations, Fe as prefetchSession, Ke as providerIcons, rn as rejectInvitationOptions, on as removeMemberOptions, Ze as requestPasswordResetOptions, $e as resetPasswordOptions, pt as revokeMultiSessionOptions, On as revokeSessionOptions, tt as sendVerificationEmailOptions, L as sessionOptions, cn as setActiveOrganizationOptions, z as setActiveSessionOptions, rt as signInEmailOptions, dt as signInMagicLinkOptions, vn as signInPasskeyOptions, at as signInSocialOptions, In as signInUsernameOptions, st as signOutOptions, lt as signUpEmailOptions, An as unlinkAccountOptions, un as updateMemberRoleOptions, fn as updateOrganizationOptions, Mn as updateUserOptions, _t as useAcceptInvitation, $n as useAccountInfo, V as useActiveOrganization, hn as useAddPasskey, r as useAuth, Ue as useAuthMutation, i as useAuthPlugin, Ge as useAuthQuery, Le as useAuthenticate, yt as useCancelInvitation, xn as useChangeEmail, Cn as useChangePassword, xt as useCheckSlug, Je as useCreateApiKey, Ct as useCreateOrganization, Xe as useDeleteApiKey, Tt as useDeleteOrganization, _n as useDeletePasskey, Tn as useDeleteUser, e as useFetchOptions, Mt as useFullOrganization, It as useHasPermission, en as useInviteMember, Fn as useIsUsernameAvailable, Be as useLastLoginMethod, nn as useLeaveOrganization, Dn as useLinkSocial, rr as useListAccounts, Vn as useListApiKeys, Gn as useListDeviceSessions, Bt as useListOrganizationInvitations, Wt as useListOrganizationMembers, Jt as useListOrganizations, Yn as useListPasskeys, sr as useListSessions, Qt as useListUserInvitations, an as useRejectInvitation, sn as useRemoveMember, Qe as useRequestPasswordReset, et as useResetPassword, mt as useRevokeMultiSession, kn as useRevokeSession, nt as useSendVerificationEmail, R as useSession, ln as useSetActiveOrganization, ht as useSetActiveSession, it as useSignInEmail, ft as useSignInMagicLink, yn as useSignInPasskey, ot as useSignInSocial, Ln as useSignInUsername, ct as useSignOut, ut as useSignUpEmail, jn as useUnlinkAccount, dn as useUpdateMemberRole, pn as useUpdateOrganization, Nn as useUpdateUser, Ve as useUser };
|