@socotra/ec-react-schemas 2.6.0 → 2.6.2-next.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/index.d.ts +18 -18
- package/dist/index.es.js +23 -23
- 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.d.ts
CHANGED
|
@@ -6674,7 +6674,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6674
6674
|
duration: z.ZodNumber;
|
|
6675
6675
|
durationBasis: z.ZodEnum<["years", "months", "weeks", "days", "hours"]>;
|
|
6676
6676
|
termNumber: z.ZodNumber;
|
|
6677
|
-
subsegments: z.ZodArray<z.ZodObject<{
|
|
6677
|
+
subsegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6678
6678
|
locator: z.ZodString;
|
|
6679
6679
|
startTime: z.ZodString;
|
|
6680
6680
|
endTime: z.ZodString;
|
|
@@ -6761,7 +6761,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6761
6761
|
staticName?: string | undefined;
|
|
6762
6762
|
name?: string | undefined;
|
|
6763
6763
|
}[] | undefined;
|
|
6764
|
-
}>, "many"
|
|
6764
|
+
}>, "many">>;
|
|
6765
6765
|
documentSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6766
6766
|
locator: z.ZodString;
|
|
6767
6767
|
staticName: z.ZodOptional<z.ZodString>;
|
|
@@ -6790,7 +6790,14 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6790
6790
|
duration: number;
|
|
6791
6791
|
policyLocator: string;
|
|
6792
6792
|
termNumber: number;
|
|
6793
|
-
|
|
6793
|
+
documentSummary?: {
|
|
6794
|
+
locator: string;
|
|
6795
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6796
|
+
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6797
|
+
staticName?: string | undefined;
|
|
6798
|
+
name?: string | undefined;
|
|
6799
|
+
}[] | undefined;
|
|
6800
|
+
subsegments?: {
|
|
6794
6801
|
locator: string;
|
|
6795
6802
|
type: "coverage" | "gap";
|
|
6796
6803
|
elements: {
|
|
@@ -6811,13 +6818,6 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6811
6818
|
staticName?: string | undefined;
|
|
6812
6819
|
name?: string | undefined;
|
|
6813
6820
|
}[] | undefined;
|
|
6814
|
-
}[];
|
|
6815
|
-
documentSummary?: {
|
|
6816
|
-
locator: string;
|
|
6817
|
-
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6818
|
-
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6819
|
-
staticName?: string | undefined;
|
|
6820
|
-
name?: string | undefined;
|
|
6821
6821
|
}[] | undefined;
|
|
6822
6822
|
}, {
|
|
6823
6823
|
locator: string;
|
|
@@ -6828,7 +6828,14 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6828
6828
|
duration: number;
|
|
6829
6829
|
policyLocator: string;
|
|
6830
6830
|
termNumber: number;
|
|
6831
|
-
|
|
6831
|
+
documentSummary?: {
|
|
6832
|
+
locator: string;
|
|
6833
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6834
|
+
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6835
|
+
staticName?: string | undefined;
|
|
6836
|
+
name?: string | undefined;
|
|
6837
|
+
}[] | undefined;
|
|
6838
|
+
subsegments?: {
|
|
6832
6839
|
locator: string;
|
|
6833
6840
|
type: "coverage" | "gap";
|
|
6834
6841
|
elements: {
|
|
@@ -6849,13 +6856,6 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6849
6856
|
staticName?: string | undefined;
|
|
6850
6857
|
name?: string | undefined;
|
|
6851
6858
|
}[] | undefined;
|
|
6852
|
-
}[];
|
|
6853
|
-
documentSummary?: {
|
|
6854
|
-
locator: string;
|
|
6855
|
-
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6856
|
-
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6857
|
-
staticName?: string | undefined;
|
|
6858
|
-
name?: string | undefined;
|
|
6859
6859
|
}[] | undefined;
|
|
6860
6860
|
}>;
|
|
6861
6861
|
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z as a } from "zod";
|
|
2
|
-
const
|
|
2
|
+
const o = a.string(), R = a.object({
|
|
3
3
|
elementType: a.string().optional(),
|
|
4
|
-
locator:
|
|
4
|
+
locator: o.optional(),
|
|
5
5
|
errors: a.array(a.string()).optional()
|
|
6
6
|
}), r = a.object({
|
|
7
7
|
validationItems: a.array(R).optional(),
|
|
@@ -858,7 +858,7 @@ const i = a.string(), R = a.object({
|
|
|
858
858
|
"decline",
|
|
859
859
|
"reject",
|
|
860
860
|
"approve"
|
|
861
|
-
]),
|
|
861
|
+
]), i = a.object({
|
|
862
862
|
locator: a.string(),
|
|
863
863
|
elementLocator: a.string().optional(),
|
|
864
864
|
clearedBy: a.string().uuid().optional(),
|
|
@@ -998,10 +998,10 @@ const i = a.string(), R = a.object({
|
|
|
998
998
|
"reinstatement",
|
|
999
999
|
"reversal",
|
|
1000
1000
|
"aggregate"
|
|
1001
|
-
]),
|
|
1001
|
+
]), oa = a.object({
|
|
1002
1002
|
category: ta,
|
|
1003
1003
|
costBearing: a.boolean()
|
|
1004
|
-
}),
|
|
1004
|
+
}), ia = a.record(oa), _a = a.object({
|
|
1005
1005
|
// Root level
|
|
1006
1006
|
dataTypes: n,
|
|
1007
1007
|
accounts: _,
|
|
@@ -1009,7 +1009,7 @@ const i = a.string(), R = a.object({
|
|
|
1009
1009
|
coverageTerms: W,
|
|
1010
1010
|
delinquencyPlans: J,
|
|
1011
1011
|
autoRenewalPlans: q,
|
|
1012
|
-
transactionTypes:
|
|
1012
|
+
transactionTypes: ia,
|
|
1013
1013
|
reversalTypes: na.optional(),
|
|
1014
1014
|
dataAccessControl: a.any().optional(),
|
|
1015
1015
|
bootstrap: O.optional(),
|
|
@@ -1165,10 +1165,10 @@ const i = a.string(), R = a.object({
|
|
|
1165
1165
|
}), p = la.extend({
|
|
1166
1166
|
elements: a.lazy(() => p.array().optional())
|
|
1167
1167
|
}), Ua = a.object({
|
|
1168
|
-
locator:
|
|
1168
|
+
locator: o,
|
|
1169
1169
|
quoteState: P,
|
|
1170
1170
|
productName: a.string(),
|
|
1171
|
-
accountLocator:
|
|
1171
|
+
accountLocator: o,
|
|
1172
1172
|
startTime: a.string().optional(),
|
|
1173
1173
|
endTime: a.string().optional(),
|
|
1174
1174
|
timezone: a.string().optional(),
|
|
@@ -1181,7 +1181,7 @@ const i = a.string(), R = a.object({
|
|
|
1181
1181
|
durationBasis: C.optional(),
|
|
1182
1182
|
boundTime: a.string().optional(),
|
|
1183
1183
|
issuedTime: a.string().optional(),
|
|
1184
|
-
policyLocator:
|
|
1184
|
+
policyLocator: o.optional(),
|
|
1185
1185
|
validationResult: r.optional(),
|
|
1186
1186
|
preferences: a.any().optional(),
|
|
1187
1187
|
delinquencyPlanName: a.string().optional(),
|
|
@@ -1189,7 +1189,7 @@ const i = a.string(), R = a.object({
|
|
|
1189
1189
|
billingLevel: sa.optional(),
|
|
1190
1190
|
billingTrigger: ca.optional(),
|
|
1191
1191
|
coverageTerms: a.record(a.string()).optional(),
|
|
1192
|
-
groupLocator:
|
|
1192
|
+
groupLocator: o.optional()
|
|
1193
1193
|
}), ma = a.enum([
|
|
1194
1194
|
"premium",
|
|
1195
1195
|
"tax",
|
|
@@ -1222,8 +1222,8 @@ const i = a.string(), R = a.object({
|
|
|
1222
1222
|
items: a.array(ua).optional()
|
|
1223
1223
|
}), Oa = a.object({
|
|
1224
1224
|
quoteLocator: a.string(),
|
|
1225
|
-
clearedFlags:
|
|
1226
|
-
flags:
|
|
1225
|
+
clearedFlags: i.array().optional(),
|
|
1226
|
+
flags: i.array().optional()
|
|
1227
1227
|
}), ga = a.enum(["clear", "delete"]), xa = a.object({
|
|
1228
1228
|
deleteAllAutomaticDocuments: a.boolean(),
|
|
1229
1229
|
resetAllUnderwritingFlags: a.boolean(),
|
|
@@ -1346,7 +1346,7 @@ const i = a.string(), R = a.object({
|
|
|
1346
1346
|
duration: a.number(),
|
|
1347
1347
|
durationBasis: d,
|
|
1348
1348
|
termNumber: a.number().int(),
|
|
1349
|
-
subsegments: ba.array(),
|
|
1349
|
+
subsegments: ba.array().optional(),
|
|
1350
1350
|
documentSummary: L.array().optional()
|
|
1351
1351
|
}), fa = a.object({
|
|
1352
1352
|
locator: a.string(),
|
|
@@ -1448,11 +1448,11 @@ const i = a.string(), R = a.object({
|
|
|
1448
1448
|
}), te = a.object({
|
|
1449
1449
|
action: a.literal("delete"),
|
|
1450
1450
|
staticElementLocators: a.array(a.string())
|
|
1451
|
-
}),
|
|
1451
|
+
}), oe = a.object({
|
|
1452
1452
|
locator: a.string(),
|
|
1453
1453
|
action: a.literal("delete"),
|
|
1454
1454
|
staticElementLocators: a.array(a.string())
|
|
1455
|
-
}),
|
|
1455
|
+
}), ie = a.object({
|
|
1456
1456
|
staticLocator: a.string(),
|
|
1457
1457
|
action: a.literal("modify"),
|
|
1458
1458
|
removeCoverageTerms: a.record(a.string(), a.any()).optional(),
|
|
@@ -1529,7 +1529,7 @@ const i = a.string(), R = a.object({
|
|
|
1529
1529
|
effectiveTime: a.string(),
|
|
1530
1530
|
transactionCategory: c,
|
|
1531
1531
|
underwritingStatus: a.string().optional(),
|
|
1532
|
-
underwritingFlags:
|
|
1532
|
+
underwritingFlags: i.array().optional()
|
|
1533
1533
|
}), me = b.extend({
|
|
1534
1534
|
aggregatedTransactions: a.array(b).optional()
|
|
1535
1535
|
}), ue = a.object({
|
|
@@ -1540,8 +1540,8 @@ const i = a.string(), R = a.object({
|
|
|
1540
1540
|
resetFlags: a.array(a.string()).optional()
|
|
1541
1541
|
}), ge = a.object({
|
|
1542
1542
|
transactionLocator: a.string(),
|
|
1543
|
-
clearedFlags:
|
|
1544
|
-
flags:
|
|
1543
|
+
clearedFlags: i.array().optional(),
|
|
1544
|
+
flags: i.array().optional()
|
|
1545
1545
|
}), va = a.enum(["open", "settled"]), La = a.object({
|
|
1546
1546
|
locator: a.string(),
|
|
1547
1547
|
elementStaticLocator: a.string(),
|
|
@@ -1643,7 +1643,7 @@ export {
|
|
|
1643
1643
|
Ia as dataTypesRecordSchema,
|
|
1644
1644
|
j as dayOfWeekEnumSchema,
|
|
1645
1645
|
te as deleteChangeInstructionCreateRequestSchema,
|
|
1646
|
-
|
|
1646
|
+
oe as deleteChangeInstructionResponseSchema,
|
|
1647
1647
|
Ra as delinquencyLevelEnumSchema,
|
|
1648
1648
|
z as delinquencyLevelSchema,
|
|
1649
1649
|
J as delinquencyPlanRecordsSchema,
|
|
@@ -1669,7 +1669,7 @@ export {
|
|
|
1669
1669
|
La as invoiceItemResponseSchema,
|
|
1670
1670
|
pe as invoiceResponseSchema,
|
|
1671
1671
|
va as invoiceStateEnumSchema,
|
|
1672
|
-
|
|
1672
|
+
ie as modifyChangeInstructionCreateRequestSchema,
|
|
1673
1673
|
re as modifyChangeInstructionResponseSchema,
|
|
1674
1674
|
Va as optionalQuantifiersSchema,
|
|
1675
1675
|
ce as paramsChangeInstructionCreateRequestSchema,
|
|
@@ -1710,13 +1710,13 @@ export {
|
|
|
1710
1710
|
ha as transactionSnapshotResponseSchema,
|
|
1711
1711
|
A as transactionStateEnumSchema,
|
|
1712
1712
|
ta as transactionTypeCategorySchema,
|
|
1713
|
-
|
|
1714
|
-
|
|
1713
|
+
oa as transactionTypeSchema,
|
|
1714
|
+
ia as transactionTypesRecordsSchema,
|
|
1715
1715
|
ge as transactionUnderwritingFlagsResponse,
|
|
1716
1716
|
me as transactionUnderwritingResponseSchema,
|
|
1717
1717
|
G as underwritingFlagCreateRequestSchema,
|
|
1718
1718
|
T as underwritingFlagEnumSchema,
|
|
1719
|
-
|
|
1719
|
+
i as underwritingFlagResponseSchema,
|
|
1720
1720
|
Ga as underwritingFlagsUpdateRequestSchema,
|
|
1721
1721
|
E as underwritingStatusEnumSchema,
|
|
1722
1722
|
r as validationResultSchema,
|