@authhero/kysely-adapter 0.12.1 → 0.13.0
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/kysely-adapter.mjs
CHANGED
|
@@ -566,7 +566,7 @@ class S {
|
|
|
566
566
|
return this._refinement((s, r) => e(s) ? !0 : (r.addIssue(typeof t == "function" ? t(s, r) : t), !1));
|
|
567
567
|
}
|
|
568
568
|
_refinement(e) {
|
|
569
|
-
return new
|
|
569
|
+
return new W({
|
|
570
570
|
schema: this,
|
|
571
571
|
typeName: w.ZodEffects,
|
|
572
572
|
effect: { type: "refinement", refinement: e }
|
|
@@ -588,7 +588,7 @@ class S {
|
|
|
588
588
|
return B.create(this, this._def);
|
|
589
589
|
}
|
|
590
590
|
promise() {
|
|
591
|
-
return
|
|
591
|
+
return Je.create(this, this._def);
|
|
592
592
|
}
|
|
593
593
|
or(e) {
|
|
594
594
|
return it.create([this, e], this._def);
|
|
@@ -597,7 +597,7 @@ class S {
|
|
|
597
597
|
return ot.create(this, e, this._def);
|
|
598
598
|
}
|
|
599
599
|
transform(e) {
|
|
600
|
-
return new
|
|
600
|
+
return new W({
|
|
601
601
|
...T(this._def),
|
|
602
602
|
schema: this,
|
|
603
603
|
typeName: w.ZodEffects,
|
|
@@ -1980,7 +1980,7 @@ it.create = (n, e) => new it({
|
|
|
1980
1980
|
typeName: w.ZodUnion,
|
|
1981
1981
|
...T(e)
|
|
1982
1982
|
});
|
|
1983
|
-
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof
|
|
1983
|
+
const le = (n) => n instanceof ct ? le(n.schema) : n instanceof W ? le(n.innerType()) : n instanceof ut ? [n.value] : n instanceof _e ? n.options : n instanceof lt ? N.objectValues(n.enum) : n instanceof pt ? le(n._def.innerType) : n instanceof rt ? [void 0] : n instanceof at ? [null] : n instanceof Y ? [void 0, ...le(n.unwrap())] : n instanceof ge ? [null, ...le(n.unwrap())] : n instanceof dn || n instanceof ft ? le(n.unwrap()) : n instanceof ht ? le(n._def.innerType) : [];
|
|
1984
1984
|
class qt extends S {
|
|
1985
1985
|
_parse(e) {
|
|
1986
1986
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -2355,7 +2355,7 @@ class Ue extends S {
|
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
const a = { errorMap: t.common.contextualErrorMap }, o = t.data;
|
|
2358
|
-
if (this._def.returns instanceof
|
|
2358
|
+
if (this._def.returns instanceof Je) {
|
|
2359
2359
|
const d = this;
|
|
2360
2360
|
return D(async function(...c) {
|
|
2361
2361
|
const u = new L([]), l = await d._def.args.parseAsync(c, a).catch((A) => {
|
|
@@ -2546,7 +2546,7 @@ lt.create = (n, e) => new lt({
|
|
|
2546
2546
|
typeName: w.ZodNativeEnum,
|
|
2547
2547
|
...T(e)
|
|
2548
2548
|
});
|
|
2549
|
-
class
|
|
2549
|
+
class Je extends S {
|
|
2550
2550
|
unwrap() {
|
|
2551
2551
|
return this._def.type;
|
|
2552
2552
|
}
|
|
@@ -2565,12 +2565,12 @@ class We extends S {
|
|
|
2565
2565
|
})));
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
|
|
2568
|
+
Je.create = (n, e) => new Je({
|
|
2569
2569
|
type: n,
|
|
2570
2570
|
typeName: w.ZodPromise,
|
|
2571
2571
|
...T(e)
|
|
2572
2572
|
});
|
|
2573
|
-
class
|
|
2573
|
+
class W extends S {
|
|
2574
2574
|
innerType() {
|
|
2575
2575
|
return this._def.schema;
|
|
2576
2576
|
}
|
|
@@ -2647,13 +2647,13 @@ class J extends S {
|
|
|
2647
2647
|
N.assertNever(r);
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
|
|
2650
|
+
W.create = (n, e, t) => new W({
|
|
2651
2651
|
schema: n,
|
|
2652
2652
|
typeName: w.ZodEffects,
|
|
2653
2653
|
effect: e,
|
|
2654
2654
|
...T(t)
|
|
2655
2655
|
});
|
|
2656
|
-
|
|
2656
|
+
W.createWithPreprocess = (n, e, t) => new W({
|
|
2657
2657
|
schema: e,
|
|
2658
2658
|
effect: { type: "preprocess", transform: n },
|
|
2659
2659
|
typeName: w.ZodEffects,
|
|
@@ -2851,7 +2851,7 @@ var w;
|
|
|
2851
2851
|
})(w || (w = {}));
|
|
2852
2852
|
const bs = (n, e = {
|
|
2853
2853
|
message: `Input not instance of ${n.name}`
|
|
2854
|
-
}) => Sn((t) => t instanceof n, e), Zn = F.create, jn = fe.create, ks = Lt.create, xs = me.create, Nn = st.create, Ts = je.create, Os = Pt.create, Ss = rt.create, Zs = at.create, js = Be.create, Ns = Se.create, Cs = re.create, Is = Dt.create, Es = B.create, As = I.create, Rs = I.strictCreate, $s = it.create, Ps = qt.create, Ds = ot.create, Ms = ee.create, Ls = dt.create, Vs = Mt.create, Us = Ne.create, Fs = Ue.create, zs = ct.create, Bs = ut.create,
|
|
2854
|
+
}) => Sn((t) => t instanceof n, e), Zn = F.create, jn = fe.create, ks = Lt.create, xs = me.create, Nn = st.create, Ts = je.create, Os = Pt.create, Ss = rt.create, Zs = at.create, js = Be.create, Ns = Se.create, Cs = re.create, Is = Dt.create, Es = B.create, As = I.create, Rs = I.strictCreate, $s = it.create, Ps = qt.create, Ds = ot.create, Ms = ee.create, Ls = dt.create, Vs = Mt.create, Us = Ne.create, Fs = Ue.create, zs = ct.create, Bs = ut.create, Js = _e.create, Ws = lt.create, qs = Je.create, fn = W.create, Ks = Y.create, Hs = ge.create, Qs = W.createWithPreprocess, Ys = Nt.create, Gs = () => Zn().optional(), Xs = () => jn().optional(), er = () => Nn().optional(), tr = {
|
|
2855
2855
|
string: (n) => F.create({ ...n, coerce: !0 }),
|
|
2856
2856
|
number: (n) => fe.create({ ...n, coerce: !0 }),
|
|
2857
2857
|
boolean: (n) => st.create({
|
|
@@ -2913,9 +2913,9 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2913
2913
|
ZodLiteral: ut,
|
|
2914
2914
|
ZodEnum: _e,
|
|
2915
2915
|
ZodNativeEnum: lt,
|
|
2916
|
-
ZodPromise:
|
|
2917
|
-
ZodEffects:
|
|
2918
|
-
ZodTransformer:
|
|
2916
|
+
ZodPromise: Je,
|
|
2917
|
+
ZodEffects: W,
|
|
2918
|
+
ZodTransformer: W,
|
|
2919
2919
|
ZodOptional: Y,
|
|
2920
2920
|
ZodNullable: ge,
|
|
2921
2921
|
ZodDefault: pt,
|
|
@@ -2940,7 +2940,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2940
2940
|
date: Ts,
|
|
2941
2941
|
discriminatedUnion: Ps,
|
|
2942
2942
|
effect: fn,
|
|
2943
|
-
enum:
|
|
2943
|
+
enum: Js,
|
|
2944
2944
|
function: Fs,
|
|
2945
2945
|
instanceof: bs,
|
|
2946
2946
|
intersection: Ds,
|
|
@@ -2948,7 +2948,7 @@ var i = /* @__PURE__ */ Object.freeze({
|
|
|
2948
2948
|
literal: Bs,
|
|
2949
2949
|
map: Vs,
|
|
2950
2950
|
nan: ks,
|
|
2951
|
-
nativeEnum:
|
|
2951
|
+
nativeEnum: Ws,
|
|
2952
2952
|
never: Cs,
|
|
2953
2953
|
null: Zs,
|
|
2954
2954
|
nullable: Hs,
|
|
@@ -3709,7 +3709,7 @@ function Lr(n) {
|
|
|
3709
3709
|
email_verified: Mr(s),
|
|
3710
3710
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3711
3711
|
};
|
|
3712
|
-
return (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
|
|
3712
|
+
return s.app_metadata && (r.app_metadata = JSON.stringify(s.app_metadata)), s.user_metadata && (r.user_metadata = JSON.stringify(s.user_metadata)), (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
3715
|
function Vr(n) {
|
|
@@ -3753,7 +3753,7 @@ function Br(n) {
|
|
|
3753
3753
|
return t ? R(t) : null;
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function Jr(n) {
|
|
3757
3757
|
return async (e) => {
|
|
3758
3758
|
let t = n.selectFrom("tenants");
|
|
3759
3759
|
if (e.sort && e.sort.sort_by) {
|
|
@@ -3775,7 +3775,7 @@ function Wr(n) {
|
|
|
3775
3775
|
};
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function Wr(n) {
|
|
3779
3779
|
return async (e, t) => {
|
|
3780
3780
|
const s = {
|
|
3781
3781
|
...t,
|
|
@@ -3792,8 +3792,8 @@ function Kr(n) {
|
|
|
3792
3792
|
return {
|
|
3793
3793
|
create: zr(n),
|
|
3794
3794
|
get: Br(n),
|
|
3795
|
-
list:
|
|
3796
|
-
update:
|
|
3795
|
+
list: Jr(n),
|
|
3796
|
+
update: Wr(n),
|
|
3797
3797
|
remove: qr(n)
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
@@ -4381,7 +4381,7 @@ class V extends Error {
|
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
4383
|
V.create = (n) => new V(n);
|
|
4384
|
-
const
|
|
4384
|
+
const We = (n, e) => {
|
|
4385
4385
|
let t;
|
|
4386
4386
|
switch (n.code) {
|
|
4387
4387
|
case h.invalid_type:
|
|
@@ -4437,7 +4437,7 @@ const Je = (n, e) => {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
return { message: t };
|
|
4439
4439
|
};
|
|
4440
|
-
let Mn =
|
|
4440
|
+
let Mn = We;
|
|
4441
4441
|
function Ca(n) {
|
|
4442
4442
|
Mn = n;
|
|
4443
4443
|
}
|
|
@@ -4474,7 +4474,7 @@ function m(n, e) {
|
|
|
4474
4474
|
n.common.contextualErrorMap,
|
|
4475
4475
|
n.schemaErrorMap,
|
|
4476
4476
|
t,
|
|
4477
|
-
t ===
|
|
4477
|
+
t === We ? void 0 : We
|
|
4478
4478
|
// then global default map
|
|
4479
4479
|
].filter((r) => !!r)
|
|
4480
4480
|
});
|
|
@@ -4691,7 +4691,7 @@ class Z {
|
|
|
4691
4691
|
return this.nullable().optional();
|
|
4692
4692
|
}
|
|
4693
4693
|
array() {
|
|
4694
|
-
return
|
|
4694
|
+
return J.create(this, this._def);
|
|
4695
4695
|
}
|
|
4696
4696
|
promise() {
|
|
4697
4697
|
return Ke.create(this, this._def);
|
|
@@ -4770,7 +4770,7 @@ function Fn(n) {
|
|
|
4770
4770
|
const t = [];
|
|
4771
4771
|
return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
4772
4772
|
}
|
|
4773
|
-
function
|
|
4773
|
+
function Ja(n, e) {
|
|
4774
4774
|
return !!((e === "v4" || !e) && Va.test(n) || (e === "v6" || !e) && Ua.test(n));
|
|
4775
4775
|
}
|
|
4776
4776
|
class z extends Z {
|
|
@@ -4905,7 +4905,7 @@ class z extends Z {
|
|
|
4905
4905
|
validation: "duration",
|
|
4906
4906
|
code: h.invalid_string,
|
|
4907
4907
|
message: a.message
|
|
4908
|
-
}), s.dirty()) : a.kind === "ip" ?
|
|
4908
|
+
}), s.dirty()) : a.kind === "ip" ? Ja(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
|
|
4909
4909
|
validation: "ip",
|
|
4910
4910
|
code: h.invalid_string,
|
|
4911
4911
|
message: a.message
|
|
@@ -5131,7 +5131,7 @@ z.create = (n) => {
|
|
|
5131
5131
|
...O(n)
|
|
5132
5132
|
});
|
|
5133
5133
|
};
|
|
5134
|
-
function
|
|
5134
|
+
function Wa(n, e) {
|
|
5135
5135
|
const t = (n.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, r = t > s ? t : s, a = parseInt(n.toFixed(r).replace(".", "")), o = parseInt(e.toFixed(r).replace(".", ""));
|
|
5136
5136
|
return a % o / Math.pow(10, r);
|
|
5137
5137
|
}
|
|
@@ -5170,7 +5170,7 @@ class ye extends Z {
|
|
|
5170
5170
|
inclusive: a.inclusive,
|
|
5171
5171
|
exact: !1,
|
|
5172
5172
|
message: a.message
|
|
5173
|
-
}), r.dirty()) : a.kind === "multipleOf" ?
|
|
5173
|
+
}), r.dirty()) : a.kind === "multipleOf" ? Wa(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
|
|
5174
5174
|
code: h.not_multiple_of,
|
|
5175
5175
|
multipleOf: a.value,
|
|
5176
5176
|
message: a.message
|
|
@@ -5637,7 +5637,7 @@ Bt.create = (n) => new Bt({
|
|
|
5637
5637
|
typeName: b.ZodVoid,
|
|
5638
5638
|
...O(n)
|
|
5639
5639
|
});
|
|
5640
|
-
class
|
|
5640
|
+
class J extends Z {
|
|
5641
5641
|
_parse(e) {
|
|
5642
5642
|
const { ctx: t, status: s } = this._processInputParams(e), r = this._def;
|
|
5643
5643
|
if (t.parsedType !== g.array)
|
|
@@ -5681,19 +5681,19 @@ class W extends Z {
|
|
|
5681
5681
|
return this._def.type;
|
|
5682
5682
|
}
|
|
5683
5683
|
min(e, t) {
|
|
5684
|
-
return new
|
|
5684
|
+
return new J({
|
|
5685
5685
|
...this._def,
|
|
5686
5686
|
minLength: { value: e, message: v.toString(t) }
|
|
5687
5687
|
});
|
|
5688
5688
|
}
|
|
5689
5689
|
max(e, t) {
|
|
5690
|
-
return new
|
|
5690
|
+
return new J({
|
|
5691
5691
|
...this._def,
|
|
5692
5692
|
maxLength: { value: e, message: v.toString(t) }
|
|
5693
5693
|
});
|
|
5694
5694
|
}
|
|
5695
5695
|
length(e, t) {
|
|
5696
|
-
return new
|
|
5696
|
+
return new J({
|
|
5697
5697
|
...this._def,
|
|
5698
5698
|
exactLength: { value: e, message: v.toString(t) }
|
|
5699
5699
|
});
|
|
@@ -5702,7 +5702,7 @@ class W extends Z {
|
|
|
5702
5702
|
return this.min(1, e);
|
|
5703
5703
|
}
|
|
5704
5704
|
}
|
|
5705
|
-
|
|
5705
|
+
J.create = (n, e) => new J({
|
|
5706
5706
|
type: n,
|
|
5707
5707
|
minLength: null,
|
|
5708
5708
|
maxLength: null,
|
|
@@ -5721,7 +5721,7 @@ function Le(n) {
|
|
|
5721
5721
|
...n._def,
|
|
5722
5722
|
shape: () => e
|
|
5723
5723
|
});
|
|
5724
|
-
} else return n instanceof
|
|
5724
|
+
} else return n instanceof J ? new J({
|
|
5725
5725
|
...n._def,
|
|
5726
5726
|
type: Le(n.element)
|
|
5727
5727
|
}) : n instanceof G ? G.create(Le(n.unwrap())) : n instanceof be ? be.create(Le(n.unwrap())) : n instanceof ne ? ne.create(n.items.map((e) => Le(e))) : n;
|
|
@@ -6304,7 +6304,7 @@ class kt extends Z {
|
|
|
6304
6304
|
});
|
|
6305
6305
|
}
|
|
6306
6306
|
}
|
|
6307
|
-
class
|
|
6307
|
+
class Jt extends Z {
|
|
6308
6308
|
get keySchema() {
|
|
6309
6309
|
return this._def.keyType;
|
|
6310
6310
|
}
|
|
@@ -6346,7 +6346,7 @@ class Wt extends Z {
|
|
|
6346
6346
|
}
|
|
6347
6347
|
}
|
|
6348
6348
|
}
|
|
6349
|
-
|
|
6349
|
+
Jt.create = (n, e, t) => new Jt({
|
|
6350
6350
|
valueType: e,
|
|
6351
6351
|
keyType: n,
|
|
6352
6352
|
typeName: b.ZodMap,
|
|
@@ -6436,7 +6436,7 @@ class Fe extends Z {
|
|
|
6436
6436
|
t.common.contextualErrorMap,
|
|
6437
6437
|
t.schemaErrorMap,
|
|
6438
6438
|
Vt(),
|
|
6439
|
-
|
|
6439
|
+
We
|
|
6440
6440
|
].filter((u) => !!u),
|
|
6441
6441
|
issueData: {
|
|
6442
6442
|
code: h.invalid_arguments,
|
|
@@ -6452,7 +6452,7 @@ class Fe extends Z {
|
|
|
6452
6452
|
t.common.contextualErrorMap,
|
|
6453
6453
|
t.schemaErrorMap,
|
|
6454
6454
|
Vt(),
|
|
6455
|
-
|
|
6455
|
+
We
|
|
6456
6456
|
].filter((u) => !!u),
|
|
6457
6457
|
issueData: {
|
|
6458
6458
|
code: h.invalid_return_type,
|
|
@@ -6854,7 +6854,7 @@ Zt.create = (n, e) => new Zt({
|
|
|
6854
6854
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6855
6855
|
...O(e)
|
|
6856
6856
|
});
|
|
6857
|
-
class
|
|
6857
|
+
class Wt extends Z {
|
|
6858
6858
|
_parse(e) {
|
|
6859
6859
|
if (this._getType(e) !== g.nan) {
|
|
6860
6860
|
const s = this._getOrReturnCtx(e);
|
|
@@ -6867,7 +6867,7 @@ class Jt extends Z {
|
|
|
6867
6867
|
return { status: "valid", value: e.data };
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
|
-
|
|
6870
|
+
Wt.create = (n) => new Wt({
|
|
6871
6871
|
typeName: b.ZodNaN,
|
|
6872
6872
|
...O(n)
|
|
6873
6873
|
});
|
|
@@ -6957,7 +6957,7 @@ var b;
|
|
|
6957
6957
|
})(b || (b = {}));
|
|
6958
6958
|
const Ha = (n, e = {
|
|
6959
6959
|
message: `Input not instance of ${n.name}`
|
|
6960
|
-
}) => Bn((t) => t instanceof n, e),
|
|
6960
|
+
}) => Bn((t) => t instanceof n, e), Jn = z.create, Wn = ye.create, Qa = Wt.create, Ya = ve.create, qn = gt.create, Ga = Ce.create, Xa = zt.create, ei = yt.create, ti = vt.create, ni = qe.create, si = Ze.create, ri = ae.create, ai = Bt.create, ii = J.create, oi = E.create, di = E.strictCreate, ci = wt.create, ui = Kt.create, li = bt.create, pi = ne.create, hi = kt.create, fi = Jt.create, mi = Ie.create, _i = Fe.create, gi = xt.create, yi = Tt.create, vi = we.create, wi = Ot.create, bi = Ke.create, yn = q.create, ki = G.create, xi = be.create, Ti = q.createWithPreprocess, Oi = Ct.create, Si = () => Jn().optional(), Zi = () => Wn().optional(), ji = () => qn().optional(), Ni = {
|
|
6961
6961
|
string: (n) => z.create({ ...n, coerce: !0 }),
|
|
6962
6962
|
number: (n) => ye.create({ ...n, coerce: !0 }),
|
|
6963
6963
|
boolean: (n) => gt.create({
|
|
@@ -6969,7 +6969,7 @@ const Ha = (n, e = {
|
|
|
6969
6969
|
}, Ci = k;
|
|
6970
6970
|
var Ii = /* @__PURE__ */ Object.freeze({
|
|
6971
6971
|
__proto__: null,
|
|
6972
|
-
defaultErrorMap:
|
|
6972
|
+
defaultErrorMap: We,
|
|
6973
6973
|
setErrorMap: Ca,
|
|
6974
6974
|
getErrorMap: Vt,
|
|
6975
6975
|
makeIssue: Ut,
|
|
@@ -7005,14 +7005,14 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7005
7005
|
ZodUnknown: Ze,
|
|
7006
7006
|
ZodNever: ae,
|
|
7007
7007
|
ZodVoid: Bt,
|
|
7008
|
-
ZodArray:
|
|
7008
|
+
ZodArray: J,
|
|
7009
7009
|
ZodObject: E,
|
|
7010
7010
|
ZodUnion: wt,
|
|
7011
7011
|
ZodDiscriminatedUnion: Kt,
|
|
7012
7012
|
ZodIntersection: bt,
|
|
7013
7013
|
ZodTuple: ne,
|
|
7014
7014
|
ZodRecord: kt,
|
|
7015
|
-
ZodMap:
|
|
7015
|
+
ZodMap: Jt,
|
|
7016
7016
|
ZodSet: Ie,
|
|
7017
7017
|
ZodFunction: Fe,
|
|
7018
7018
|
ZodLazy: xt,
|
|
@@ -7026,7 +7026,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7026
7026
|
ZodNullable: be,
|
|
7027
7027
|
ZodDefault: St,
|
|
7028
7028
|
ZodCatch: Zt,
|
|
7029
|
-
ZodNaN:
|
|
7029
|
+
ZodNaN: Wt,
|
|
7030
7030
|
BRAND: qa,
|
|
7031
7031
|
ZodBranded: pn,
|
|
7032
7032
|
ZodPipeline: Ct,
|
|
@@ -7058,7 +7058,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7058
7058
|
never: ri,
|
|
7059
7059
|
null: ti,
|
|
7060
7060
|
nullable: xi,
|
|
7061
|
-
number:
|
|
7061
|
+
number: Wn,
|
|
7062
7062
|
object: oi,
|
|
7063
7063
|
oboolean: ji,
|
|
7064
7064
|
onumber: Zi,
|
|
@@ -7070,7 +7070,7 @@ var Ii = /* @__PURE__ */ Object.freeze({
|
|
|
7070
7070
|
record: hi,
|
|
7071
7071
|
set: mi,
|
|
7072
7072
|
strictObject: di,
|
|
7073
|
-
string:
|
|
7073
|
+
string: Jn,
|
|
7074
7074
|
symbol: Xa,
|
|
7075
7075
|
transformer: yn,
|
|
7076
7076
|
tuple: pi,
|
|
@@ -7241,7 +7241,7 @@ function Bi(n) {
|
|
|
7241
7241
|
list: zi(n)
|
|
7242
7242
|
};
|
|
7243
7243
|
}
|
|
7244
|
-
function
|
|
7244
|
+
function Ji(n) {
|
|
7245
7245
|
return async (e) => {
|
|
7246
7246
|
const [t] = await n.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
|
|
7247
7247
|
if (!t)
|
|
@@ -7271,7 +7271,7 @@ function Wi(n) {
|
|
|
7271
7271
|
});
|
|
7272
7272
|
};
|
|
7273
7273
|
}
|
|
7274
|
-
function
|
|
7274
|
+
function Wi(n) {
|
|
7275
7275
|
return async (e, t) => {
|
|
7276
7276
|
var o, d, c, u, l, j, A, U, ie, Re, oe, de, ce, $e, Pe, K, H, Q;
|
|
7277
7277
|
const { colors: s, font: r, ...a } = t;
|
|
@@ -7301,8 +7301,8 @@ function Ji(n) {
|
|
|
7301
7301
|
}
|
|
7302
7302
|
function qi(n) {
|
|
7303
7303
|
return {
|
|
7304
|
-
get:
|
|
7305
|
-
set:
|
|
7304
|
+
get: Ji(n),
|
|
7305
|
+
set: Wi(n)
|
|
7306
7306
|
};
|
|
7307
7307
|
}
|
|
7308
7308
|
function Ki(n) {
|