@socotra/ec-react-schemas 2.4.0 → 2.4.1-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 +78 -31
- package/dist/index.es.js +71 -72
- 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
|
@@ -2224,8 +2224,8 @@ export declare const documentInstanceResponseSchema: z.ZodObject<{
|
|
|
2224
2224
|
}, "strip", z.ZodTypeAny, {
|
|
2225
2225
|
locator: string;
|
|
2226
2226
|
createdAt: string;
|
|
2227
|
-
referenceLocator: string;
|
|
2228
2227
|
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
2228
|
+
referenceLocator: string;
|
|
2229
2229
|
policyLocator?: string | undefined;
|
|
2230
2230
|
createdBy?: string | undefined;
|
|
2231
2231
|
staticName?: string | undefined;
|
|
@@ -2243,8 +2243,8 @@ export declare const documentInstanceResponseSchema: z.ZodObject<{
|
|
|
2243
2243
|
}, {
|
|
2244
2244
|
locator: string;
|
|
2245
2245
|
createdAt: string;
|
|
2246
|
-
referenceLocator: string;
|
|
2247
2246
|
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
2247
|
+
referenceLocator: string;
|
|
2248
2248
|
policyLocator?: string | undefined;
|
|
2249
2249
|
createdBy?: string | undefined;
|
|
2250
2250
|
staticName?: string | undefined;
|
|
@@ -2275,17 +2275,17 @@ export declare const documentSummarySchema: z.ZodObject<{
|
|
|
2275
2275
|
locator: z.ZodString;
|
|
2276
2276
|
staticName: z.ZodOptional<z.ZodString>;
|
|
2277
2277
|
name: z.ZodOptional<z.ZodString>;
|
|
2278
|
-
|
|
2278
|
+
documentInstanceState: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
2279
2279
|
referenceType: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
2280
2280
|
}, "strip", z.ZodTypeAny, {
|
|
2281
2281
|
locator: string;
|
|
2282
|
-
|
|
2282
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
2283
2283
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
2284
2284
|
staticName?: string | undefined;
|
|
2285
2285
|
name?: string | undefined;
|
|
2286
2286
|
}, {
|
|
2287
2287
|
locator: string;
|
|
2288
|
-
|
|
2288
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
2289
2289
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
2290
2290
|
staticName?: string | undefined;
|
|
2291
2291
|
name?: string | undefined;
|
|
@@ -2932,7 +2932,7 @@ export declare const policyResponseSchema: z.ZodObject<{
|
|
|
2932
2932
|
billingTrigger: z.ZodEnum<["accept", "issue"]>;
|
|
2933
2933
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
2934
2934
|
createdBy: z.ZodOptional<z.ZodString>;
|
|
2935
|
-
currency: z.
|
|
2935
|
+
currency: z.ZodString;
|
|
2936
2936
|
timezone: z.ZodOptional<z.ZodString>;
|
|
2937
2937
|
branchHeadTransactionLocators: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2938
2938
|
static: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -2974,13 +2974,13 @@ export declare const policyResponseSchema: z.ZodObject<{
|
|
|
2974
2974
|
productName: string;
|
|
2975
2975
|
startTime: string;
|
|
2976
2976
|
endTime: string;
|
|
2977
|
+
currency: string;
|
|
2977
2978
|
durationBasis: "years" | "months" | "weeks" | "days" | "hours";
|
|
2978
2979
|
accountLocator: string;
|
|
2979
2980
|
billingTrigger: "accept" | "issue";
|
|
2980
2981
|
issuedTransactionLocator: string;
|
|
2981
2982
|
latestTermLocator: string;
|
|
2982
2983
|
delinquencyPlanName?: string | undefined;
|
|
2983
|
-
currency?: string | undefined;
|
|
2984
2984
|
timezone?: string | undefined;
|
|
2985
2985
|
validationResult?: {
|
|
2986
2986
|
validationItems?: {
|
|
@@ -3001,13 +3001,13 @@ export declare const policyResponseSchema: z.ZodObject<{
|
|
|
3001
3001
|
productName: string;
|
|
3002
3002
|
startTime: string;
|
|
3003
3003
|
endTime: string;
|
|
3004
|
+
currency: string;
|
|
3004
3005
|
durationBasis: "years" | "months" | "weeks" | "days" | "hours";
|
|
3005
3006
|
accountLocator: string;
|
|
3006
3007
|
billingTrigger: "accept" | "issue";
|
|
3007
3008
|
issuedTransactionLocator: string;
|
|
3008
3009
|
latestTermLocator: string;
|
|
3009
3010
|
delinquencyPlanName?: string | undefined;
|
|
3010
|
-
currency?: string | undefined;
|
|
3011
3011
|
timezone?: string | undefined;
|
|
3012
3012
|
validationResult?: {
|
|
3013
3013
|
validationItems?: {
|
|
@@ -3547,18 +3547,44 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3547
3547
|
locator: string;
|
|
3548
3548
|
staticLocator: string;
|
|
3549
3549
|
name: string;
|
|
3550
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3551
3550
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3551
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3552
3552
|
}, {
|
|
3553
3553
|
locator: string;
|
|
3554
3554
|
staticLocator: string;
|
|
3555
3555
|
name: string;
|
|
3556
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3557
3556
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3557
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3558
|
+
}>, "many">;
|
|
3559
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
3560
|
+
locator: z.ZodString;
|
|
3561
|
+
staticLocator: z.ZodString;
|
|
3562
|
+
type: z.ZodString;
|
|
3563
|
+
chargeSummaries: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
3564
|
+
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3565
|
+
}, "strip", z.ZodTypeAny, {
|
|
3566
|
+
locator: string;
|
|
3567
|
+
type: string;
|
|
3568
|
+
data: Record<string, any>;
|
|
3569
|
+
staticLocator: string;
|
|
3570
|
+
chargeSummaries: Record<string, number>;
|
|
3571
|
+
}, {
|
|
3572
|
+
locator: string;
|
|
3573
|
+
type: string;
|
|
3574
|
+
data: Record<string, any>;
|
|
3575
|
+
staticLocator: string;
|
|
3576
|
+
chargeSummaries: Record<string, number>;
|
|
3558
3577
|
}>, "many">;
|
|
3559
3578
|
}, "strip", z.ZodTypeAny, {
|
|
3560
3579
|
locator: string;
|
|
3561
3580
|
type: "coverage" | "gap";
|
|
3581
|
+
elements: {
|
|
3582
|
+
locator: string;
|
|
3583
|
+
type: string;
|
|
3584
|
+
data: Record<string, any>;
|
|
3585
|
+
staticLocator: string;
|
|
3586
|
+
chargeSummaries: Record<string, number>;
|
|
3587
|
+
}[];
|
|
3562
3588
|
startTime: string;
|
|
3563
3589
|
endTime: string;
|
|
3564
3590
|
duration: number;
|
|
@@ -3567,12 +3593,19 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3567
3593
|
locator: string;
|
|
3568
3594
|
staticLocator: string;
|
|
3569
3595
|
name: string;
|
|
3570
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3571
3596
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3597
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3572
3598
|
}[];
|
|
3573
3599
|
}, {
|
|
3574
3600
|
locator: string;
|
|
3575
3601
|
type: "coverage" | "gap";
|
|
3602
|
+
elements: {
|
|
3603
|
+
locator: string;
|
|
3604
|
+
type: string;
|
|
3605
|
+
data: Record<string, any>;
|
|
3606
|
+
staticLocator: string;
|
|
3607
|
+
chargeSummaries: Record<string, number>;
|
|
3608
|
+
}[];
|
|
3576
3609
|
startTime: string;
|
|
3577
3610
|
endTime: string;
|
|
3578
3611
|
duration: number;
|
|
@@ -3581,8 +3614,8 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3581
3614
|
locator: string;
|
|
3582
3615
|
staticLocator: string;
|
|
3583
3616
|
name: string;
|
|
3584
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3585
3617
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3618
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3586
3619
|
}[];
|
|
3587
3620
|
}>, "many">;
|
|
3588
3621
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -3597,6 +3630,13 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3597
3630
|
subsegments: {
|
|
3598
3631
|
locator: string;
|
|
3599
3632
|
type: "coverage" | "gap";
|
|
3633
|
+
elements: {
|
|
3634
|
+
locator: string;
|
|
3635
|
+
type: string;
|
|
3636
|
+
data: Record<string, any>;
|
|
3637
|
+
staticLocator: string;
|
|
3638
|
+
chargeSummaries: Record<string, number>;
|
|
3639
|
+
}[];
|
|
3600
3640
|
startTime: string;
|
|
3601
3641
|
endTime: string;
|
|
3602
3642
|
duration: number;
|
|
@@ -3605,8 +3645,8 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3605
3645
|
locator: string;
|
|
3606
3646
|
staticLocator: string;
|
|
3607
3647
|
name: string;
|
|
3608
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3609
3648
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3649
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3610
3650
|
}[];
|
|
3611
3651
|
}[];
|
|
3612
3652
|
}, {
|
|
@@ -3621,6 +3661,13 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3621
3661
|
subsegments: {
|
|
3622
3662
|
locator: string;
|
|
3623
3663
|
type: "coverage" | "gap";
|
|
3664
|
+
elements: {
|
|
3665
|
+
locator: string;
|
|
3666
|
+
type: string;
|
|
3667
|
+
data: Record<string, any>;
|
|
3668
|
+
staticLocator: string;
|
|
3669
|
+
chargeSummaries: Record<string, number>;
|
|
3670
|
+
}[];
|
|
3624
3671
|
startTime: string;
|
|
3625
3672
|
endTime: string;
|
|
3626
3673
|
duration: number;
|
|
@@ -3629,8 +3676,8 @@ export declare const policyTermSummaryResponse: z.ZodObject<z.objectUtil.extendS
|
|
|
3629
3676
|
locator: string;
|
|
3630
3677
|
staticLocator: string;
|
|
3631
3678
|
name: string;
|
|
3632
|
-
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3633
3679
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
3680
|
+
state: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
3634
3681
|
}[];
|
|
3635
3682
|
}[];
|
|
3636
3683
|
}>;
|
|
@@ -5911,17 +5958,17 @@ export declare const subsegmentSummarySchema: z.ZodObject<{
|
|
|
5911
5958
|
locator: z.ZodString;
|
|
5912
5959
|
staticName: z.ZodOptional<z.ZodString>;
|
|
5913
5960
|
name: z.ZodOptional<z.ZodString>;
|
|
5914
|
-
|
|
5961
|
+
documentInstanceState: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
5915
5962
|
referenceType: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
5916
5963
|
}, "strip", z.ZodTypeAny, {
|
|
5917
5964
|
locator: string;
|
|
5918
|
-
|
|
5965
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
5919
5966
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
5920
5967
|
staticName?: string | undefined;
|
|
5921
5968
|
name?: string | undefined;
|
|
5922
5969
|
}, {
|
|
5923
5970
|
locator: string;
|
|
5924
|
-
|
|
5971
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
5925
5972
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
5926
5973
|
staticName?: string | undefined;
|
|
5927
5974
|
name?: string | undefined;
|
|
@@ -5961,7 +6008,7 @@ export declare const subsegmentSummarySchema: z.ZodObject<{
|
|
|
5961
6008
|
basedOn?: string | undefined;
|
|
5962
6009
|
documentSummary?: {
|
|
5963
6010
|
locator: string;
|
|
5964
|
-
|
|
6011
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
5965
6012
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
5966
6013
|
staticName?: string | undefined;
|
|
5967
6014
|
name?: string | undefined;
|
|
@@ -5982,7 +6029,7 @@ export declare const subsegmentSummarySchema: z.ZodObject<{
|
|
|
5982
6029
|
basedOn?: string | undefined;
|
|
5983
6030
|
documentSummary?: {
|
|
5984
6031
|
locator: string;
|
|
5985
|
-
|
|
6032
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
5986
6033
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
5987
6034
|
staticName?: string | undefined;
|
|
5988
6035
|
name?: string | undefined;
|
|
@@ -6051,17 +6098,17 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6051
6098
|
locator: z.ZodString;
|
|
6052
6099
|
staticName: z.ZodOptional<z.ZodString>;
|
|
6053
6100
|
name: z.ZodOptional<z.ZodString>;
|
|
6054
|
-
|
|
6101
|
+
documentInstanceState: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
6055
6102
|
referenceType: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
6056
6103
|
}, "strip", z.ZodTypeAny, {
|
|
6057
6104
|
locator: string;
|
|
6058
|
-
|
|
6105
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6059
6106
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6060
6107
|
staticName?: string | undefined;
|
|
6061
6108
|
name?: string | undefined;
|
|
6062
6109
|
}, {
|
|
6063
6110
|
locator: string;
|
|
6064
|
-
|
|
6111
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6065
6112
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6066
6113
|
staticName?: string | undefined;
|
|
6067
6114
|
name?: string | undefined;
|
|
@@ -6101,7 +6148,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6101
6148
|
basedOn?: string | undefined;
|
|
6102
6149
|
documentSummary?: {
|
|
6103
6150
|
locator: string;
|
|
6104
|
-
|
|
6151
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6105
6152
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6106
6153
|
staticName?: string | undefined;
|
|
6107
6154
|
name?: string | undefined;
|
|
@@ -6122,7 +6169,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6122
6169
|
basedOn?: string | undefined;
|
|
6123
6170
|
documentSummary?: {
|
|
6124
6171
|
locator: string;
|
|
6125
|
-
|
|
6172
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6126
6173
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6127
6174
|
staticName?: string | undefined;
|
|
6128
6175
|
name?: string | undefined;
|
|
@@ -6132,17 +6179,17 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6132
6179
|
locator: z.ZodString;
|
|
6133
6180
|
staticName: z.ZodOptional<z.ZodString>;
|
|
6134
6181
|
name: z.ZodOptional<z.ZodString>;
|
|
6135
|
-
|
|
6182
|
+
documentInstanceState: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
6136
6183
|
referenceType: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
6137
6184
|
}, "strip", z.ZodTypeAny, {
|
|
6138
6185
|
locator: string;
|
|
6139
|
-
|
|
6186
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6140
6187
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6141
6188
|
staticName?: string | undefined;
|
|
6142
6189
|
name?: string | undefined;
|
|
6143
6190
|
}, {
|
|
6144
6191
|
locator: string;
|
|
6145
|
-
|
|
6192
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6146
6193
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6147
6194
|
staticName?: string | undefined;
|
|
6148
6195
|
name?: string | undefined;
|
|
@@ -6172,7 +6219,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6172
6219
|
basedOn?: string | undefined;
|
|
6173
6220
|
documentSummary?: {
|
|
6174
6221
|
locator: string;
|
|
6175
|
-
|
|
6222
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6176
6223
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6177
6224
|
staticName?: string | undefined;
|
|
6178
6225
|
name?: string | undefined;
|
|
@@ -6180,7 +6227,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6180
6227
|
}[];
|
|
6181
6228
|
documentSummary?: {
|
|
6182
6229
|
locator: string;
|
|
6183
|
-
|
|
6230
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6184
6231
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6185
6232
|
staticName?: string | undefined;
|
|
6186
6233
|
name?: string | undefined;
|
|
@@ -6210,7 +6257,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6210
6257
|
basedOn?: string | undefined;
|
|
6211
6258
|
documentSummary?: {
|
|
6212
6259
|
locator: string;
|
|
6213
|
-
|
|
6260
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6214
6261
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6215
6262
|
staticName?: string | undefined;
|
|
6216
6263
|
name?: string | undefined;
|
|
@@ -6218,7 +6265,7 @@ export declare const termSummarySchema: z.ZodObject<{
|
|
|
6218
6265
|
}[];
|
|
6219
6266
|
documentSummary?: {
|
|
6220
6267
|
locator: string;
|
|
6221
|
-
|
|
6268
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
6222
6269
|
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
6223
6270
|
staticName?: string | undefined;
|
|
6224
6271
|
name?: string | undefined;
|