@socotra/ec-react-schemas 2.15.0-next.0 → 2.15.0-next.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.d.ts +40 -340
- package/dist/index.es.js +100 -100
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -486,7 +486,7 @@ class T {
|
|
|
486
486
|
return this._refinement((r, o) => t(r) ? !0 : (o.addIssue(typeof a == "function" ? a(r, o) : a), !1));
|
|
487
487
|
}
|
|
488
488
|
_refinement(t) {
|
|
489
|
-
return new
|
|
489
|
+
return new N({
|
|
490
490
|
schema: this,
|
|
491
491
|
typeName: f.ZodEffects,
|
|
492
492
|
effect: { type: "refinement", refinement: t }
|
|
@@ -503,7 +503,7 @@ class T {
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
optional() {
|
|
506
|
-
return
|
|
506
|
+
return M.create(this, this._def);
|
|
507
507
|
}
|
|
508
508
|
nullable() {
|
|
509
509
|
return ee.create(this, this._def);
|
|
@@ -512,7 +512,7 @@ class T {
|
|
|
512
512
|
return this.nullable().optional();
|
|
513
513
|
}
|
|
514
514
|
array() {
|
|
515
|
-
return
|
|
515
|
+
return B.create(this);
|
|
516
516
|
}
|
|
517
517
|
promise() {
|
|
518
518
|
return fe.create(this, this._def);
|
|
@@ -524,7 +524,7 @@ class T {
|
|
|
524
524
|
return Me.create(this, t, this._def);
|
|
525
525
|
}
|
|
526
526
|
transform(t) {
|
|
527
|
-
return new
|
|
527
|
+
return new N({
|
|
528
528
|
...j(this._def),
|
|
529
529
|
schema: this,
|
|
530
530
|
typeName: f.ZodEffects,
|
|
@@ -607,7 +607,7 @@ function Lr(n, t) {
|
|
|
607
607
|
function Rr(n, t) {
|
|
608
608
|
return !!((t === "v4" || !t) && Sr.test(n) || (t === "v6" || !t) && Tr.test(n));
|
|
609
609
|
}
|
|
610
|
-
class
|
|
610
|
+
class P extends T {
|
|
611
611
|
_parse(t) {
|
|
612
612
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== p.string) {
|
|
613
613
|
const i = this._getOrReturnCtx(t);
|
|
@@ -770,7 +770,7 @@ class B extends T {
|
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
_addCheck(t) {
|
|
773
|
-
return new
|
|
773
|
+
return new P({
|
|
774
774
|
...this._def,
|
|
775
775
|
checks: [...this._def.checks, t]
|
|
776
776
|
});
|
|
@@ -907,19 +907,19 @@ class B extends T {
|
|
|
907
907
|
return this.min(1, g.errToObj(t));
|
|
908
908
|
}
|
|
909
909
|
trim() {
|
|
910
|
-
return new
|
|
910
|
+
return new P({
|
|
911
911
|
...this._def,
|
|
912
912
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
toLowerCase() {
|
|
916
|
-
return new
|
|
916
|
+
return new P({
|
|
917
917
|
...this._def,
|
|
918
918
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
toUpperCase() {
|
|
922
|
-
return new
|
|
922
|
+
return new P({
|
|
923
923
|
...this._def,
|
|
924
924
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
925
925
|
});
|
|
@@ -985,9 +985,9 @@ class B extends T {
|
|
|
985
985
|
return t;
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
|
|
988
|
+
P.create = (n) => {
|
|
989
989
|
var t;
|
|
990
|
-
return new
|
|
990
|
+
return new P({
|
|
991
991
|
checks: [],
|
|
992
992
|
typeName: f.ZodString,
|
|
993
993
|
coerce: (t = n == null ? void 0 : n.coerce) !== null && t !== void 0 ? t : !1,
|
|
@@ -1508,7 +1508,7 @@ mt.create = (n) => new mt({
|
|
|
1508
1508
|
typeName: f.ZodVoid,
|
|
1509
1509
|
...j(n)
|
|
1510
1510
|
});
|
|
1511
|
-
class
|
|
1511
|
+
class B extends T {
|
|
1512
1512
|
_parse(t) {
|
|
1513
1513
|
const { ctx: a, status: r } = this._processInputParams(t), o = this._def;
|
|
1514
1514
|
if (a.parsedType !== p.array)
|
|
@@ -1552,19 +1552,19 @@ class N extends T {
|
|
|
1552
1552
|
return this._def.type;
|
|
1553
1553
|
}
|
|
1554
1554
|
min(t, a) {
|
|
1555
|
-
return new
|
|
1555
|
+
return new B({
|
|
1556
1556
|
...this._def,
|
|
1557
1557
|
minLength: { value: t, message: g.toString(a) }
|
|
1558
1558
|
});
|
|
1559
1559
|
}
|
|
1560
1560
|
max(t, a) {
|
|
1561
|
-
return new
|
|
1561
|
+
return new B({
|
|
1562
1562
|
...this._def,
|
|
1563
1563
|
maxLength: { value: t, message: g.toString(a) }
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
length(t, a) {
|
|
1567
|
-
return new
|
|
1567
|
+
return new B({
|
|
1568
1568
|
...this._def,
|
|
1569
1569
|
exactLength: { value: t, message: g.toString(a) }
|
|
1570
1570
|
});
|
|
@@ -1573,7 +1573,7 @@ class N extends T {
|
|
|
1573
1573
|
return this.min(1, t);
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
|
|
1576
|
+
B.create = (n, t) => new B({
|
|
1577
1577
|
type: n,
|
|
1578
1578
|
minLength: null,
|
|
1579
1579
|
maxLength: null,
|
|
@@ -1586,16 +1586,16 @@ function ue(n) {
|
|
|
1586
1586
|
const t = {};
|
|
1587
1587
|
for (const a in n.shape) {
|
|
1588
1588
|
const r = n.shape[a];
|
|
1589
|
-
t[a] =
|
|
1589
|
+
t[a] = M.create(ue(r));
|
|
1590
1590
|
}
|
|
1591
1591
|
return new w({
|
|
1592
1592
|
...n._def,
|
|
1593
1593
|
shape: () => t
|
|
1594
1594
|
});
|
|
1595
|
-
} else return n instanceof
|
|
1595
|
+
} else return n instanceof B ? new B({
|
|
1596
1596
|
...n._def,
|
|
1597
1597
|
type: ue(n.element)
|
|
1598
|
-
}) : n instanceof
|
|
1598
|
+
}) : n instanceof M ? M.create(ue(n.unwrap())) : n instanceof ee ? ee.create(ue(n.unwrap())) : n instanceof U ? U.create(n.items.map((t) => ue(t))) : n;
|
|
1599
1599
|
}
|
|
1600
1600
|
class w extends T {
|
|
1601
1601
|
constructor() {
|
|
@@ -1622,10 +1622,10 @@ class w extends T {
|
|
|
1622
1622
|
l.includes(u) || s.push(u);
|
|
1623
1623
|
const m = [];
|
|
1624
1624
|
for (const u of l) {
|
|
1625
|
-
const b = i[u],
|
|
1625
|
+
const b = i[u], C = o.data[u];
|
|
1626
1626
|
m.push({
|
|
1627
1627
|
key: { status: "valid", value: u },
|
|
1628
|
-
value: b._parse(new Z(o,
|
|
1628
|
+
value: b._parse(new Z(o, C, o.path, u)),
|
|
1629
1629
|
alwaysSet: u in o.data
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
@@ -1646,11 +1646,11 @@ class w extends T {
|
|
|
1646
1646
|
} else {
|
|
1647
1647
|
const u = this._def.catchall;
|
|
1648
1648
|
for (const b of s) {
|
|
1649
|
-
const
|
|
1649
|
+
const C = o.data[b];
|
|
1650
1650
|
m.push({
|
|
1651
1651
|
key: { status: "valid", value: b },
|
|
1652
1652
|
value: u._parse(
|
|
1653
|
-
new Z(o,
|
|
1653
|
+
new Z(o, C, o.path, b)
|
|
1654
1654
|
//, ctx.child(key), value, getParsedType(value)
|
|
1655
1655
|
),
|
|
1656
1656
|
alwaysSet: b in o.data
|
|
@@ -1660,9 +1660,9 @@ class w extends T {
|
|
|
1660
1660
|
return o.common.async ? Promise.resolve().then(async () => {
|
|
1661
1661
|
const u = [];
|
|
1662
1662
|
for (const b of m) {
|
|
1663
|
-
const
|
|
1663
|
+
const C = await b.key, ha = await b.value;
|
|
1664
1664
|
u.push({
|
|
1665
|
-
key:
|
|
1665
|
+
key: C,
|
|
1666
1666
|
value: ha,
|
|
1667
1667
|
alwaysSet: b.alwaysSet
|
|
1668
1668
|
});
|
|
@@ -1850,7 +1850,7 @@ class w extends T {
|
|
|
1850
1850
|
a[r] = this.shape[r];
|
|
1851
1851
|
else {
|
|
1852
1852
|
let i = this.shape[r];
|
|
1853
|
-
for (; i instanceof
|
|
1853
|
+
for (; i instanceof M; )
|
|
1854
1854
|
i = i._def.innerType;
|
|
1855
1855
|
a[r] = i;
|
|
1856
1856
|
}
|
|
@@ -1957,7 +1957,7 @@ Ie.create = (n, t) => new Ie({
|
|
|
1957
1957
|
typeName: f.ZodUnion,
|
|
1958
1958
|
...j(t)
|
|
1959
1959
|
});
|
|
1960
|
-
const G = (n) => n instanceof Ze ? G(n.schema) : n instanceof
|
|
1960
|
+
const G = (n) => n instanceof Ze ? G(n.schema) : n instanceof N ? G(n.innerType()) : n instanceof Ue ? [n.value] : n instanceof X ? n.options : n instanceof ze ? A.objectValues(n.enum) : n instanceof Fe ? G(n._def.innerType) : n instanceof Be ? [void 0] : n instanceof Ne ? [null] : n instanceof M ? [void 0, ...G(n.unwrap())] : n instanceof ee ? [null, ...G(n.unwrap())] : n instanceof Ut || n instanceof Ve ? G(n.unwrap()) : n instanceof Ge ? G(n._def.innerType) : [];
|
|
1961
1961
|
class ft extends T {
|
|
1962
1962
|
_parse(t) {
|
|
1963
1963
|
const { ctx: a } = this._processInputParams(t);
|
|
@@ -2168,7 +2168,7 @@ class Oe extends T {
|
|
|
2168
2168
|
typeName: f.ZodRecord,
|
|
2169
2169
|
...j(r)
|
|
2170
2170
|
}) : new Oe({
|
|
2171
|
-
keyType:
|
|
2171
|
+
keyType: P.create(),
|
|
2172
2172
|
valueType: t,
|
|
2173
2173
|
typeName: f.ZodRecord,
|
|
2174
2174
|
...j(a)
|
|
@@ -2337,9 +2337,9 @@ class pe extends T {
|
|
|
2337
2337
|
return L(async function(...m) {
|
|
2338
2338
|
const u = new E([]), b = await s._def.args.parseAsync(m, i).catch((Rt) => {
|
|
2339
2339
|
throw u.addIssue(r(m, Rt)), u;
|
|
2340
|
-
}),
|
|
2341
|
-
return await s._def.returns._def.type.parseAsync(
|
|
2342
|
-
throw u.addIssue(o(
|
|
2340
|
+
}), C = await Reflect.apply(l, this, b);
|
|
2341
|
+
return await s._def.returns._def.type.parseAsync(C, i).catch((Rt) => {
|
|
2342
|
+
throw u.addIssue(o(C, Rt)), u;
|
|
2343
2343
|
});
|
|
2344
2344
|
});
|
|
2345
2345
|
} else {
|
|
@@ -2348,10 +2348,10 @@ class pe extends T {
|
|
|
2348
2348
|
const u = s._def.args.safeParse(m, i);
|
|
2349
2349
|
if (!u.success)
|
|
2350
2350
|
throw new E([r(m, u.error)]);
|
|
2351
|
-
const b = Reflect.apply(l, this, u.data),
|
|
2352
|
-
if (!
|
|
2353
|
-
throw new E([o(b,
|
|
2354
|
-
return
|
|
2351
|
+
const b = Reflect.apply(l, this, u.data), C = s._def.returns.safeParse(b, i);
|
|
2352
|
+
if (!C.success)
|
|
2353
|
+
throw new E([o(b, C.error)]);
|
|
2354
|
+
return C.data;
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
@@ -2547,7 +2547,7 @@ fe.create = (n, t) => new fe({
|
|
|
2547
2547
|
typeName: f.ZodPromise,
|
|
2548
2548
|
...j(t)
|
|
2549
2549
|
});
|
|
2550
|
-
class
|
|
2550
|
+
class N extends T {
|
|
2551
2551
|
innerType() {
|
|
2552
2552
|
return this._def.schema;
|
|
2553
2553
|
}
|
|
@@ -2624,19 +2624,19 @@ class I extends T {
|
|
|
2624
2624
|
A.assertNever(o);
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
|
-
|
|
2627
|
+
N.create = (n, t, a) => new N({
|
|
2628
2628
|
schema: n,
|
|
2629
2629
|
typeName: f.ZodEffects,
|
|
2630
2630
|
effect: t,
|
|
2631
2631
|
...j(a)
|
|
2632
2632
|
});
|
|
2633
|
-
|
|
2633
|
+
N.createWithPreprocess = (n, t, a) => new N({
|
|
2634
2634
|
schema: t,
|
|
2635
2635
|
effect: { type: "preprocess", transform: n },
|
|
2636
2636
|
typeName: f.ZodEffects,
|
|
2637
2637
|
...j(a)
|
|
2638
2638
|
});
|
|
2639
|
-
class
|
|
2639
|
+
class M extends T {
|
|
2640
2640
|
_parse(t) {
|
|
2641
2641
|
return this._getType(t) === p.undefined ? L(void 0) : this._def.innerType._parse(t);
|
|
2642
2642
|
}
|
|
@@ -2644,7 +2644,7 @@ class O extends T {
|
|
|
2644
2644
|
return this._def.innerType;
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2647
|
+
M.create = (n, t) => new M({
|
|
2648
2648
|
innerType: n,
|
|
2649
2649
|
typeName: f.ZodOptional,
|
|
2650
2650
|
...j(t)
|
|
@@ -2828,8 +2828,8 @@ var f;
|
|
|
2828
2828
|
})(f || (f = {}));
|
|
2829
2829
|
const qr = (n, t = {
|
|
2830
2830
|
message: `Input not instance of ${n.name}`
|
|
2831
|
-
}) => Pa((a) => a instanceof n, t), Ba =
|
|
2832
|
-
string: (n) =>
|
|
2831
|
+
}) => Pa((a) => a instanceof n, t), Ba = P.create, Na = J.create, Pr = gt.create, Br = Y.create, Ia = Pe.create, Nr = oe.create, Ir = ut.create, Mr = Be.create, Or = Ne.create, Zr = ye.create, Ur = ne.create, zr = K.create, Fr = mt.create, Gr = B.create, Vr = w.create, $r = w.strictCreate, Wr = Ie.create, Kr = ft.create, Qr = Me.create, Hr = U.create, Jr = Oe.create, Yr = pt.create, Xr = ie.create, eo = pe.create, to = Ze.create, ao = Ue.create, no = X.create, ro = ze.create, oo = fe.create, va = N.create, io = M.create, lo = ee.create, so = N.createWithPreprocess, co = Qe.create, uo = () => Ba().optional(), mo = () => Na().optional(), po = () => Ia().optional(), go = {
|
|
2832
|
+
string: (n) => P.create({ ...n, coerce: !0 }),
|
|
2833
2833
|
number: (n) => J.create({ ...n, coerce: !0 }),
|
|
2834
2834
|
boolean: (n) => Pe.create({
|
|
2835
2835
|
...n,
|
|
@@ -2864,7 +2864,7 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
2864
2864
|
getParsedType: $,
|
|
2865
2865
|
ZodType: T,
|
|
2866
2866
|
datetimeRegex: Da,
|
|
2867
|
-
ZodString:
|
|
2867
|
+
ZodString: P,
|
|
2868
2868
|
ZodNumber: J,
|
|
2869
2869
|
ZodBigInt: Y,
|
|
2870
2870
|
ZodBoolean: Pe,
|
|
@@ -2876,7 +2876,7 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
2876
2876
|
ZodUnknown: ne,
|
|
2877
2877
|
ZodNever: K,
|
|
2878
2878
|
ZodVoid: mt,
|
|
2879
|
-
ZodArray:
|
|
2879
|
+
ZodArray: B,
|
|
2880
2880
|
ZodObject: w,
|
|
2881
2881
|
ZodUnion: Ie,
|
|
2882
2882
|
ZodDiscriminatedUnion: ft,
|
|
@@ -2891,9 +2891,9 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
2891
2891
|
ZodEnum: X,
|
|
2892
2892
|
ZodNativeEnum: ze,
|
|
2893
2893
|
ZodPromise: fe,
|
|
2894
|
-
ZodEffects:
|
|
2895
|
-
ZodTransformer:
|
|
2896
|
-
ZodOptional:
|
|
2894
|
+
ZodEffects: N,
|
|
2895
|
+
ZodTransformer: N,
|
|
2896
|
+
ZodOptional: M,
|
|
2897
2897
|
ZodNullable: ee,
|
|
2898
2898
|
ZodDefault: Fe,
|
|
2899
2899
|
ZodCatch: Ge,
|
|
@@ -5389,12 +5389,12 @@ e.union([
|
|
|
5389
5389
|
]);
|
|
5390
5390
|
const Ye = e.object({
|
|
5391
5391
|
action: e.string()
|
|
5392
|
-
}),
|
|
5392
|
+
}), q = e.lazy(
|
|
5393
5393
|
() => e.object({
|
|
5394
5394
|
type: e.string(),
|
|
5395
5395
|
locator: e.string(),
|
|
5396
5396
|
parentLocator: e.string(),
|
|
5397
|
-
elements: e.array(
|
|
5397
|
+
elements: e.array(q),
|
|
5398
5398
|
coverageTerms: e.record(e.string()),
|
|
5399
5399
|
data: e.record(e.record(e.unknown())),
|
|
5400
5400
|
staticLocator: e.string(),
|
|
@@ -5738,7 +5738,7 @@ const zi = e.object({
|
|
|
5738
5738
|
setCoverageTerms: e.record(e.string()),
|
|
5739
5739
|
removeCoverageTerms: e.record(e.record(e.unknown()))
|
|
5740
5740
|
})
|
|
5741
|
-
),
|
|
5741
|
+
), I = e.object({
|
|
5742
5742
|
installmentPreferences: hn.optional(),
|
|
5743
5743
|
billingPreferences: fn.optional()
|
|
5744
5744
|
}), Fi = e.object({
|
|
@@ -5775,7 +5775,7 @@ const zi = e.object({
|
|
|
5775
5775
|
endTime: e.string(),
|
|
5776
5776
|
expirationTime: e.string(),
|
|
5777
5777
|
elements: e.array(jt),
|
|
5778
|
-
preferences:
|
|
5778
|
+
preferences: I,
|
|
5779
5779
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]),
|
|
5780
5780
|
delinquencyPlanName: e.string(),
|
|
5781
5781
|
autoRenewalPlanName: e.string(),
|
|
@@ -5823,7 +5823,7 @@ const Vi = e.object({
|
|
|
5823
5823
|
timezone: e.string(),
|
|
5824
5824
|
coverageTerms: e.record(e.string()),
|
|
5825
5825
|
data: e.record(e.record(e.unknown())),
|
|
5826
|
-
elements: e.array(
|
|
5826
|
+
elements: e.array(q),
|
|
5827
5827
|
durationBasis: e.union([
|
|
5828
5828
|
e.literal("none"),
|
|
5829
5829
|
e.literal("years"),
|
|
@@ -5898,7 +5898,7 @@ const Sn = e.object({
|
|
|
5898
5898
|
timezone: e.string(),
|
|
5899
5899
|
coverageTerms: e.record(e.string()),
|
|
5900
5900
|
data: e.record(e.record(e.unknown())),
|
|
5901
|
-
elements: e.array(
|
|
5901
|
+
elements: e.array(q),
|
|
5902
5902
|
durationBasis: e.union([
|
|
5903
5903
|
e.literal("none"),
|
|
5904
5904
|
e.literal("years"),
|
|
@@ -5908,7 +5908,7 @@ const Sn = e.object({
|
|
|
5908
5908
|
e.literal("days"),
|
|
5909
5909
|
e.literal("hours")
|
|
5910
5910
|
]),
|
|
5911
|
-
preferences:
|
|
5911
|
+
preferences: I,
|
|
5912
5912
|
delinquencyPlanName: e.string(),
|
|
5913
5913
|
autoRenewalPlanName: e.string(),
|
|
5914
5914
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]),
|
|
@@ -5919,7 +5919,7 @@ const Sn = e.object({
|
|
|
5919
5919
|
]),
|
|
5920
5920
|
region: e.string(),
|
|
5921
5921
|
static: e.record(e.record(e.unknown()))
|
|
5922
|
-
}),
|
|
5922
|
+
}), D = e.object({
|
|
5923
5923
|
quoteLocator: e.string()
|
|
5924
5924
|
}), $i = e.object({
|
|
5925
5925
|
quoteLocator: e.string(),
|
|
@@ -6046,7 +6046,7 @@ const je = e.object({
|
|
|
6046
6046
|
segmentType: e.union([e.literal("coverage"), e.literal("gap")]),
|
|
6047
6047
|
startTime: e.string(),
|
|
6048
6048
|
endTime: e.string(),
|
|
6049
|
-
element:
|
|
6049
|
+
element: q,
|
|
6050
6050
|
duration: e.number(),
|
|
6051
6051
|
basedOn: e.string().optional()
|
|
6052
6052
|
});
|
|
@@ -6189,7 +6189,7 @@ const S = e.object({
|
|
|
6189
6189
|
transactionType: e.string(),
|
|
6190
6190
|
effectiveTime: e.string(),
|
|
6191
6191
|
issuedTime: e.string(),
|
|
6192
|
-
preferences:
|
|
6192
|
+
preferences: I,
|
|
6193
6193
|
segment: je
|
|
6194
6194
|
}), Xi = e.lazy(
|
|
6195
6195
|
() => e.object({
|
|
@@ -6287,7 +6287,7 @@ const la = e.object({
|
|
|
6287
6287
|
});
|
|
6288
6288
|
e.object({
|
|
6289
6289
|
locator: e.string(),
|
|
6290
|
-
requestBody: e.array(
|
|
6290
|
+
requestBody: e.array(q)
|
|
6291
6291
|
});
|
|
6292
6292
|
e.array(je);
|
|
6293
6293
|
e.object({
|
|
@@ -6309,7 +6309,7 @@ const at = Ye.and(
|
|
|
6309
6309
|
e.literal("add"),
|
|
6310
6310
|
e.literal("delete")
|
|
6311
6311
|
]).optional(),
|
|
6312
|
-
elements: e.array(
|
|
6312
|
+
elements: e.array(q).optional()
|
|
6313
6313
|
})
|
|
6314
6314
|
).and(
|
|
6315
6315
|
e.object({
|
|
@@ -6320,7 +6320,7 @@ const at = Ye.and(
|
|
|
6320
6320
|
e.literal("add"),
|
|
6321
6321
|
e.literal("delete")
|
|
6322
6322
|
]),
|
|
6323
|
-
elements: e.array(
|
|
6323
|
+
elements: e.array(q)
|
|
6324
6324
|
})
|
|
6325
6325
|
), de = Ye.and(
|
|
6326
6326
|
e.object({
|
|
@@ -6333,7 +6333,7 @@ const at = Ye.and(
|
|
|
6333
6333
|
]).optional(),
|
|
6334
6334
|
effectiveTime: e.string().optional(),
|
|
6335
6335
|
newPolicyEndTime: e.string().optional(),
|
|
6336
|
-
preferences:
|
|
6336
|
+
preferences: I.optional(),
|
|
6337
6337
|
billingModeChange: e.boolean().optional(),
|
|
6338
6338
|
triggerBillingChange: e.boolean().optional(),
|
|
6339
6339
|
inheritSettings: e.boolean().optional()
|
|
@@ -6389,7 +6389,7 @@ const at = Ye.and(
|
|
|
6389
6389
|
effectiveTime: e.string(),
|
|
6390
6390
|
aggregatedTransactions: e.array(nl),
|
|
6391
6391
|
termLocator: e.string(),
|
|
6392
|
-
preferences:
|
|
6392
|
+
preferences: I.optional(),
|
|
6393
6393
|
transactionType: e.string(),
|
|
6394
6394
|
issuedTime: e.string().optional(),
|
|
6395
6395
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]).optional(),
|
|
@@ -6429,8 +6429,8 @@ const wn = e.object({
|
|
|
6429
6429
|
currency: e.string().optional(),
|
|
6430
6430
|
underwritingStatus: e.string().optional(),
|
|
6431
6431
|
expirationTime: e.string().optional(),
|
|
6432
|
-
element:
|
|
6433
|
-
preferences:
|
|
6432
|
+
element: q,
|
|
6433
|
+
preferences: I.optional(),
|
|
6434
6434
|
policyLocator: e.string().optional(),
|
|
6435
6435
|
delinquencyPlanName: e.string().optional(),
|
|
6436
6436
|
durationBasis: e.union([
|
|
@@ -6470,7 +6470,7 @@ e.object({
|
|
|
6470
6470
|
});
|
|
6471
6471
|
e.object({
|
|
6472
6472
|
locator: e.string(),
|
|
6473
|
-
requestBody: e.array(
|
|
6473
|
+
requestBody: e.array(q)
|
|
6474
6474
|
});
|
|
6475
6475
|
e.object({
|
|
6476
6476
|
locator: e.string(),
|
|
@@ -6478,7 +6478,7 @@ e.object({
|
|
|
6478
6478
|
});
|
|
6479
6479
|
e.object({
|
|
6480
6480
|
locator: e.string(),
|
|
6481
|
-
requestBody: e.array(
|
|
6481
|
+
requestBody: e.array(q)
|
|
6482
6482
|
});
|
|
6483
6483
|
e.object({
|
|
6484
6484
|
locator: e.string(),
|
|
@@ -6507,7 +6507,7 @@ e.object({
|
|
|
6507
6507
|
e.literal("hours")
|
|
6508
6508
|
]).optional(),
|
|
6509
6509
|
groupLocator: e.string(),
|
|
6510
|
-
element:
|
|
6510
|
+
element: q,
|
|
6511
6511
|
validationResult: ae.optional()
|
|
6512
6512
|
});
|
|
6513
6513
|
e.object({
|
|
@@ -6617,7 +6617,7 @@ const rl = e.object({
|
|
|
6617
6617
|
shortfallTolerancePlanName: e.string(),
|
|
6618
6618
|
autoRenewalPlanName: e.string(),
|
|
6619
6619
|
excessCreditPlanName: e.string(),
|
|
6620
|
-
preferences:
|
|
6620
|
+
preferences: I,
|
|
6621
6621
|
validationResult: ae.optional(),
|
|
6622
6622
|
billingLevel: e.union([
|
|
6623
6623
|
e.literal("account"),
|
|
@@ -6641,7 +6641,7 @@ const rl = e.object({
|
|
|
6641
6641
|
shortfallTolerancePlanName: e.string(),
|
|
6642
6642
|
autoRenewalPlanName: e.string(),
|
|
6643
6643
|
excessCreditPlanName: e.string(),
|
|
6644
|
-
preferences:
|
|
6644
|
+
preferences: I,
|
|
6645
6645
|
billingLevel: e.union([
|
|
6646
6646
|
e.literal("account"),
|
|
6647
6647
|
e.literal("inherit"),
|
|
@@ -6658,7 +6658,7 @@ const rl = e.object({
|
|
|
6658
6658
|
excessCreditPlanName: e.string(),
|
|
6659
6659
|
setData: e.record(e.record(e.unknown())),
|
|
6660
6660
|
removeData: e.record(e.record(e.unknown())),
|
|
6661
|
-
preferences:
|
|
6661
|
+
preferences: I,
|
|
6662
6662
|
billingLevel: e.union([
|
|
6663
6663
|
e.literal("account"),
|
|
6664
6664
|
e.literal("inherit"),
|
|
@@ -6730,8 +6730,8 @@ e.object({
|
|
|
6730
6730
|
currency: e.string().optional(),
|
|
6731
6731
|
underwritingStatus: e.string().optional(),
|
|
6732
6732
|
expirationTime: e.string().optional(),
|
|
6733
|
-
element:
|
|
6734
|
-
preferences:
|
|
6733
|
+
element: q,
|
|
6734
|
+
preferences: I.optional(),
|
|
6735
6735
|
policyLocator: e.string().optional(),
|
|
6736
6736
|
delinquencyPlanName: e.string().optional(),
|
|
6737
6737
|
durationBasis: e.union([
|
|
@@ -7202,20 +7202,20 @@ const ll = e.object({
|
|
|
7202
7202
|
"policy.account.validate": Ct.optional(),
|
|
7203
7203
|
"policy.account.create": Ct.optional()
|
|
7204
7204
|
}), sl = e.object({
|
|
7205
|
-
"policy.quote.issue":
|
|
7206
|
-
"policy.quote.staticdata.replace":
|
|
7207
|
-
"policy.quote.create":
|
|
7208
|
-
"policy.quote.reset":
|
|
7209
|
-
"policy.quote.staticdata.update":
|
|
7210
|
-
"policy.quote.refuse":
|
|
7211
|
-
"policy.quote.staticdata.add":
|
|
7205
|
+
"policy.quote.issue": D.optional(),
|
|
7206
|
+
"policy.quote.staticdata.replace": D.optional(),
|
|
7207
|
+
"policy.quote.create": D.optional(),
|
|
7208
|
+
"policy.quote.reset": D.optional(),
|
|
7209
|
+
"policy.quote.staticdata.update": D.optional(),
|
|
7210
|
+
"policy.quote.refuse": D.optional(),
|
|
7211
|
+
"policy.quote.staticdata.add": D.optional(),
|
|
7212
7212
|
"policy.quote.underwrite": $i.optional(),
|
|
7213
7213
|
"policy.quote.manualunderwrite": Wi.optional(),
|
|
7214
|
-
"policy.quote.update":
|
|
7215
|
-
"policy.quote.price":
|
|
7216
|
-
"policy.quote.validate":
|
|
7217
|
-
"policy.quote.discard":
|
|
7218
|
-
"policy.quote.accept":
|
|
7214
|
+
"policy.quote.update": D.optional(),
|
|
7215
|
+
"policy.quote.price": D.optional(),
|
|
7216
|
+
"policy.quote.validate": D.optional(),
|
|
7217
|
+
"policy.quote.discard": D.optional(),
|
|
7218
|
+
"policy.quote.accept": D.optional()
|
|
7219
7219
|
}), cl = e.object({
|
|
7220
7220
|
"policy.renewal.accept": S.optional(),
|
|
7221
7221
|
"policy.cancellation.reset": S.optional(),
|
|
@@ -7361,14 +7361,14 @@ const ml = _n.merge(
|
|
|
7361
7361
|
tenants: e.array(e.string()).optional(),
|
|
7362
7362
|
permissions: e.array(e.string()).optional()
|
|
7363
7363
|
})
|
|
7364
|
-
),
|
|
7364
|
+
), O = e.object({
|
|
7365
7365
|
locator: k,
|
|
7366
7366
|
userName: e.string(),
|
|
7367
7367
|
firstName: e.string().optional(),
|
|
7368
7368
|
lastName: e.string().optional()
|
|
7369
7369
|
}), wd = e.object({
|
|
7370
7370
|
listCompleted: e.boolean(),
|
|
7371
|
-
items: e.array(
|
|
7371
|
+
items: e.array(O)
|
|
7372
7372
|
}), kd = e.object({
|
|
7373
7373
|
firstName: e.string(),
|
|
7374
7374
|
lastName: e.string(),
|
|
@@ -7382,7 +7382,7 @@ const ml = _n.merge(
|
|
|
7382
7382
|
...Xa.shape,
|
|
7383
7383
|
deadlineTime: y,
|
|
7384
7384
|
references: e.array(yt),
|
|
7385
|
-
assignedTo:
|
|
7385
|
+
assignedTo: O.optional()
|
|
7386
7386
|
}), xd = e.object({
|
|
7387
7387
|
...en.shape,
|
|
7388
7388
|
deadlineTime: y.optional(),
|
|
@@ -7395,10 +7395,10 @@ const ml = _n.merge(
|
|
|
7395
7395
|
references: e.array(yt).optional(),
|
|
7396
7396
|
underwritingFlagLocators: e.array(e.string()).optional(),
|
|
7397
7397
|
deadlineTime: y.optional(),
|
|
7398
|
-
assignedTo:
|
|
7399
|
-
createdBy:
|
|
7398
|
+
assignedTo: O.optional(),
|
|
7399
|
+
createdBy: O,
|
|
7400
7400
|
createdAt: y,
|
|
7401
|
-
updatedBy:
|
|
7401
|
+
updatedBy: O.optional(),
|
|
7402
7402
|
updatedAt: y.optional()
|
|
7403
7403
|
}), Ld = Q(qn), gl = e.object({
|
|
7404
7404
|
...Ua.shape
|
|
@@ -7409,11 +7409,11 @@ const ml = _n.merge(
|
|
|
7409
7409
|
activityState: Ya,
|
|
7410
7410
|
underwritingFlagLocators: e.array(e.string()),
|
|
7411
7411
|
deadlineTime: e.string(),
|
|
7412
|
-
assignedTo:
|
|
7413
|
-
createdBy:
|
|
7412
|
+
assignedTo: k.optional(),
|
|
7413
|
+
createdBy: k,
|
|
7414
7414
|
createdAt: e.string()
|
|
7415
7415
|
}), yl = Pn.extend({
|
|
7416
|
-
updatedBy:
|
|
7416
|
+
updatedBy: k.optional(),
|
|
7417
7417
|
updatedAt: e.string()
|
|
7418
7418
|
}), Rd = e.object({
|
|
7419
7419
|
listCompleted: e.boolean(),
|
|
@@ -7896,7 +7896,7 @@ const ml = _n.merge(
|
|
|
7896
7896
|
})
|
|
7897
7897
|
), Zn = fn.merge(
|
|
7898
7898
|
e.object({ billingLevel: Se })
|
|
7899
|
-
), _e =
|
|
7899
|
+
), _e = I.merge(
|
|
7900
7900
|
e.object({
|
|
7901
7901
|
installmentPreferences: On.optional(),
|
|
7902
7902
|
billingPreferences: Zn.optional()
|
|
@@ -10906,9 +10906,9 @@ const ir = e.object({
|
|
|
10906
10906
|
referenceType: Ei,
|
|
10907
10907
|
diaryState: Ci,
|
|
10908
10908
|
createdAt: y,
|
|
10909
|
-
createdBy:
|
|
10909
|
+
createdBy: O,
|
|
10910
10910
|
updatedAt: y,
|
|
10911
|
-
updatedBy:
|
|
10911
|
+
updatedBy: O.optional()
|
|
10912
10912
|
}), Sm = e.array(dd), jm = e.object({
|
|
10913
10913
|
...pl.shape,
|
|
10914
10914
|
diaryNote: ir.optional(),
|
|
@@ -10921,9 +10921,9 @@ const ir = e.object({
|
|
|
10921
10921
|
isDeleted: e.boolean()
|
|
10922
10922
|
}), ud = e.object({
|
|
10923
10923
|
...qn.shape,
|
|
10924
|
-
assignedTo: e.union([
|
|
10925
|
-
createdBy: e.union([
|
|
10926
|
-
updatedBy: e.union([
|
|
10924
|
+
assignedTo: e.union([O, Nt]).optional(),
|
|
10925
|
+
createdBy: e.union([O, Nt]).optional(),
|
|
10926
|
+
updatedBy: e.union([O, Nt]).optional()
|
|
10927
10927
|
}), Tm = Q(ud), H = e.object({
|
|
10928
10928
|
tenantLocator: Te
|
|
10929
10929
|
}), Am = H.merge(
|
|
@@ -11023,7 +11023,7 @@ export {
|
|
|
11023
11023
|
Fu as AuthTokenResponseSchema,
|
|
11024
11024
|
Td as BaseListPaginationSchema,
|
|
11025
11025
|
ka as BasePolicyTransactionResponseSchema,
|
|
11026
|
-
|
|
11026
|
+
O as BasicUserResponseSchema,
|
|
11027
11027
|
Se as BillingLevelEnumSchema,
|
|
11028
11028
|
Zn as BillingPreferencesSchema,
|
|
11029
11029
|
He as BillingTriggerEnumSchema,
|