@socotra/ec-react-schemas 2.26.1-next.1 → 2.26.1-next.3

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 CHANGED
@@ -1104,6 +1104,78 @@ export declare const BasePolicyTransactionResponseSchema: z.ZodObject<{
1104
1104
  }>;
1105
1105
  }, z.core.$strip>;
1106
1106
 
1107
+ /**
1108
+ * Base schema for policy transaction response.
1109
+ */
1110
+ declare const basePolicyTransactionResponseSchema: z.ZodObject<{
1111
+ locator: z.ZodString;
1112
+ transactionCategory: z.ZodEnum<{
1113
+ issuance: "issuance";
1114
+ change: "change";
1115
+ renewal: "renewal";
1116
+ cancellation: "cancellation";
1117
+ reinstatement: "reinstatement";
1118
+ reversal: "reversal";
1119
+ aggregate: "aggregate";
1120
+ }>;
1121
+ transactionState: z.ZodEnum<{
1122
+ draft: "draft";
1123
+ validated: "validated";
1124
+ earlyUnderwritten: "earlyUnderwritten";
1125
+ priced: "priced";
1126
+ underwritten: "underwritten";
1127
+ accepted: "accepted";
1128
+ issued: "issued";
1129
+ underwrittenBlocked: "underwrittenBlocked";
1130
+ declined: "declined";
1131
+ rejected: "rejected";
1132
+ refused: "refused";
1133
+ discarded: "discarded";
1134
+ initialized: "initialized";
1135
+ invalidated: "invalidated";
1136
+ reversed: "reversed";
1137
+ }>;
1138
+ policyLocator: z.ZodString;
1139
+ baseTransactionLocator: z.ZodOptional<z.ZodString>;
1140
+ aggregateTransactionLocator: z.ZodOptional<z.ZodString>;
1141
+ createdAt: z.ZodISODateTime;
1142
+ createdBy: z.ZodUUID;
1143
+ effectiveTime: z.ZodISODateTime;
1144
+ aggregatedTransactions: z.ZodOptional;
1145
+ termLocator: z.ZodString;
1146
+ preferences: z.ZodOptional;
1147
+ transactionType: z.ZodString;
1148
+ issuedTime: z.ZodOptional<z.ZodISODateTime>;
1149
+ billingTrigger: z.ZodOptional<z.ZodEnum<{
1150
+ accept: "accept";
1151
+ issue: "issue";
1152
+ }>>;
1153
+ acceptedTime: z.ZodOptional<z.ZodISODateTime>;
1154
+ reapplicationOfLocator: z.ZodOptional<z.ZodString>;
1155
+ maskingLevel: z.ZodOptional<z.ZodEnum<{
1156
+ none: "none";
1157
+ level1: "level1";
1158
+ level2: "level2";
1159
+ }>>;
1160
+ anonymizedAt: z.ZodOptional<z.ZodISODateTime>;
1161
+ changeInstructions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
1162
+ underwritingStatus: z.ZodOptional<z.ZodEnum<{
1163
+ none: "none";
1164
+ declined: "declined";
1165
+ rejected: "rejected";
1166
+ approved: "approved";
1167
+ blocked: "blocked";
1168
+ }>>;
1169
+ validationResult: z.ZodOptional<z.ZodObject<{
1170
+ validationItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1171
+ locator: z.ZodOptional<z.ZodULID>;
1172
+ elementType: z.ZodOptional<z.ZodString>;
1173
+ errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1174
+ }, z.core.$strip>>>;
1175
+ success: z.ZodOptional<z.ZodBoolean>;
1176
+ }, z.core.$strip>>;
1177
+ }, z.core.$strip>;
1178
+
1107
1179
  declare const BaseTransactionPriceSchema: z.ZodObject<{
1108
1180
  locator: z.ZodULID;
1109
1181
  policyLocator: z.ZodULID;
@@ -1502,7 +1574,7 @@ export declare type ConsolidatedDocumentRef = z.infer<typeof ConsolidatedDocumen
1502
1574
  export declare type ConsolidatedDocumentRefRecord = z.infer<typeof ConsolidatedDocumentRefRecordSchema>;
1503
1575
 
1504
1576
  export declare const ConsolidatedDocumentRefRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1505
- displayName: z.ZodString;
1577
+ displayName: z.ZodOptional<z.ZodString>;
1506
1578
  consolidatedDocuments: z.ZodArray<z.ZodString>;
1507
1579
  leadingDocumentTemplate: z.ZodString;
1508
1580
  pageNumbering: z.ZodObject<{
@@ -1514,7 +1586,7 @@ export declare const ConsolidatedDocumentRefRecordSchema: z.ZodRecord<z.ZodStrin
1514
1586
  }, z.core.$strip>>;
1515
1587
 
1516
1588
  export declare const ConsolidatedDocumentRefSchema: z.ZodObject<{
1517
- displayName: z.ZodString;
1589
+ displayName: z.ZodOptional<z.ZodString>;
1518
1590
  consolidatedDocuments: z.ZodArray<z.ZodString>;
1519
1591
  leadingDocumentTemplate: z.ZodString;
1520
1592
  pageNumbering: z.ZodObject<{
@@ -3497,7 +3569,7 @@ export declare const dataModelSchema: z.ZodObject<{
3497
3569
  }>>;
3498
3570
  }, z.core.$strip>>>;
3499
3571
  consolidatedDocuments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3500
- displayName: z.ZodString;
3572
+ displayName: z.ZodOptional<z.ZodString>;
3501
3573
  consolidatedDocuments: z.ZodArray<z.ZodString>;
3502
3574
  leadingDocumentTemplate: z.ZodString;
3503
3575
  pageNumbering: z.ZodObject<{
@@ -6001,6 +6073,7 @@ export declare const InvoiceResponseSchema: z.ZodObject<{
6001
6073
  autopayTime: z.ZodOptional<z.ZodISODateTime>;
6002
6074
  totalAmount: z.ZodOptional<z.ZodNumber>;
6003
6075
  totalRemainingAmount: z.ZodOptional<z.ZodNumber>;
6076
+ settledTime: z.ZodOptional<z.ZodISODateTime>;
6004
6077
  }, z.core.$strip>;
6005
6078
 
6006
6079
  export declare type InvoiceStateEnum = z.infer<typeof InvoiceStateEnumSchema>;
@@ -8709,13 +8782,20 @@ export declare const PolicyTransactionListResponseSchema: z.ZodObject<{
8709
8782
  }, z.core.$strip>>;
8710
8783
  }, z.core.$strip>;
8711
8784
 
8712
- export declare type PolicyTransactionResponse = z.infer<typeof policyTransactionResponseSchema>;
8785
+ export declare type PolicyTransactionResponse = z.infer<typeof basePolicyTransactionResponseSchema> & {
8786
+ aggregatedTransactions?: PolicyTransactionResponse[];
8787
+ };
8713
8788
 
8714
- export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8715
- locator: z.ZodULID;
8716
- policyLocator: z.ZodULID;
8717
- termLocator: z.ZodULID;
8718
- effectiveTime: z.ZodISODateTime;
8789
+ /**
8790
+ * Full schema for policy transaction response with aggregated transactions shaped the same as the base schema.
8791
+ */
8792
+ export declare const PolicyTransactionResponseSchema: z.ZodType<PolicyTransactionResponse>;
8793
+
8794
+ /** @deprecated - use PolicyTransactionResponseSchema instead. */
8795
+ export declare const policyTransactionResponseSchema: z.ZodObject<{
8796
+ locator: z.ZodString;
8797
+ policyLocator: z.ZodString;
8798
+ termLocator: z.ZodString;
8719
8799
  transactionState: z.ZodEnum<{
8720
8800
  draft: "draft";
8721
8801
  validated: "validated";
@@ -8733,6 +8813,9 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8733
8813
  invalidated: "invalidated";
8734
8814
  reversed: "reversed";
8735
8815
  }>;
8816
+ createdAt: z.ZodISODateTime;
8817
+ createdBy: z.ZodGUID;
8818
+ effectiveTime: z.ZodISODateTime;
8736
8819
  transactionCategory: z.ZodEnum<{
8737
8820
  issuance: "issuance";
8738
8821
  change: "change";
@@ -8743,38 +8826,31 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8743
8826
  aggregate: "aggregate";
8744
8827
  }>;
8745
8828
  transactionType: z.ZodString;
8746
- createdAt: z.ZodISODateTime;
8747
- createdBy: z.ZodGUID;
8748
- aggregateTransactionLocator: z.ZodOptional<z.ZodULID>;
8749
- baseTransactionLocator: z.ZodOptional<z.ZodULID>;
8829
+ changeInstructions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
8830
+ aggregateTransactionLocator: z.ZodOptional<z.ZodString>;
8831
+ baseTransactionLocator: z.ZodOptional<z.ZodString>;
8750
8832
  issuedTime: z.ZodOptional<z.ZodISODateTime>;
8751
- acceptedTime: z.ZodOptional<z.ZodISODateTime>;
8833
+ billingTrigger: z.ZodOptional<z.ZodEnum<{
8834
+ accept: "accept";
8835
+ issue: "issue";
8836
+ }>>;
8752
8837
  preferences: z.ZodOptional<z.ZodObject<{
8838
+ billingPreferences: z.ZodOptional<z.ZodObject<{
8839
+ billingPlanName: z.ZodOptional<z.ZodString>;
8840
+ billingLevel: z.ZodOptional<z.ZodEnum<{
8841
+ account: "account";
8842
+ inherit: "inherit";
8843
+ policy: "policy";
8844
+ }>>;
8845
+ }, z.core.$strip>>;
8753
8846
  installmentPreferences: z.ZodOptional<z.ZodObject<{
8754
- generateLeadDays: z.ZodOptional<z.ZodInt>;
8755
- dueLeadDays: z.ZodOptional<z.ZodInt>;
8756
- maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
8757
8847
  installmentPlanName: z.ZodOptional<z.ZodString>;
8758
- dayOfMonth: z.ZodOptional<z.ZodInt>;
8759
- anchorTime: z.ZodOptional<z.ZodISODateTime>;
8760
- autopayLeadDays: z.ZodOptional<z.ZodNumber>;
8761
- cadence: z.ZodOptional<z.ZodEnum<{
8762
- none: "none";
8763
- fullPay: "fullPay";
8764
- weekly: "weekly";
8765
- everyOtherWeek: "everyOtherWeek";
8766
- monthly: "monthly";
8767
- quarterly: "quarterly";
8768
- semiannually: "semiannually";
8769
- annually: "annually";
8770
- thirtyDays: "thirtyDays";
8771
- everyNDays: "everyNDays";
8772
- }>>;
8773
8848
  anchorMode: z.ZodOptional<z.ZodEnum<{
8774
8849
  generateDay: "generateDay";
8775
8850
  termStartDay: "termStartDay";
8776
8851
  dueDay: "dueDay";
8777
8852
  }>>;
8853
+ anchorTime: z.ZodOptional<z.ZodString>;
8778
8854
  anchorType: z.ZodOptional<z.ZodEnum<{
8779
8855
  none: "none";
8780
8856
  dayOfMonth: "dayOfMonth";
@@ -8782,6 +8858,19 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8782
8858
  dayOfWeek: "dayOfWeek";
8783
8859
  weekOfMonth: "weekOfMonth";
8784
8860
  }>>;
8861
+ cadence: z.ZodOptional<z.ZodEnum<{
8862
+ none: "none";
8863
+ fullPay: "fullPay";
8864
+ weekly: "weekly";
8865
+ everyOtherWeek: "everyOtherWeek";
8866
+ monthly: "monthly";
8867
+ quarterly: "quarterly";
8868
+ semiannually: "semiannually";
8869
+ annually: "annually";
8870
+ thirtyDays: "thirtyDays";
8871
+ everyNDays: "everyNDays";
8872
+ }>>;
8873
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
8785
8874
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
8786
8875
  monday: "monday";
8787
8876
  tuesday: "tuesday";
@@ -8791,6 +8880,9 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8791
8880
  saturday: "saturday";
8792
8881
  sunday: "sunday";
8793
8882
  }>>;
8883
+ dueLeadDays: z.ZodOptional<z.ZodNumber>;
8884
+ generateLeadDays: z.ZodOptional<z.ZodNumber>;
8885
+ maxInstallmentsPerTerm: z.ZodOptional<z.ZodNumber>;
8794
8886
  weekOfMonth: z.ZodOptional<z.ZodEnum<{
8795
8887
  none: "none";
8796
8888
  first: "first";
@@ -8799,18 +8891,15 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8799
8891
  fourth: "fourth";
8800
8892
  fifth: "fifth";
8801
8893
  }>>;
8802
- installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
8803
- }, z.core.$strip>>;
8804
- billingPreferences: z.ZodOptional<z.ZodObject<{
8805
- billingPlanName: z.ZodOptional<z.ZodString>;
8806
- billingLevel: z.ZodEnum<{
8807
- account: "account";
8808
- inherit: "inherit";
8809
- policy: "policy";
8810
- }>;
8811
8894
  }, z.core.$strip>>;
8812
8895
  }, z.core.$strip>>;
8813
- underwritingStatus: z.ZodOptional<z.ZodString>;
8896
+ underwritingStatus: z.ZodOptional<z.ZodEnum<{
8897
+ none: "none";
8898
+ declined: "declined";
8899
+ rejected: "rejected";
8900
+ approved: "approved";
8901
+ blocked: "blocked";
8902
+ }>>;
8814
8903
  validationResult: z.ZodOptional<z.ZodObject<{
8815
8904
  validationItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
8816
8905
  locator: z.ZodOptional<z.ZodULID>;
@@ -8819,549 +8908,48 @@ export declare const PolicyTransactionResponseSchema: z.ZodObject<{
8819
8908
  }, z.core.$strip>>>;
8820
8909
  success: z.ZodOptional<z.ZodBoolean>;
8821
8910
  }, z.core.$strip>>;
8822
- changeInstructions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
8823
- locator: z.ZodULID;
8824
- action: z.ZodEnum<{
8825
- delete: "delete";
8826
- params: "params";
8827
- modify: "modify";
8828
- add: "add";
8829
- }>;
8830
- elements: z.ZodArray<z.ZodType<{
8831
- type: string;
8832
- parentLocator: string;
8833
- data: Record<string, any>;
8834
- coverageTerms: Record<string, string>;
8835
- staticLocator?: string | undefined;
8836
- } & {
8837
- elements?: ({
8838
- type: string;
8839
- parentLocator: string;
8840
- data: Record<string, any>;
8841
- coverageTerms: Record<string, string>;
8842
- staticLocator?: string | undefined;
8843
- } & /*elided*/ any)[];
8844
- }, unknown, z.core.$ZodTypeInternals<{
8845
- type: string;
8846
- parentLocator: string;
8847
- data: Record<string, any>;
8848
- coverageTerms: Record<string, string>;
8849
- staticLocator?: string | undefined;
8850
- } & {
8851
- elements?: ({
8852
- type: string;
8853
- parentLocator: string;
8854
- data: Record<string, any>;
8855
- coverageTerms: Record<string, string>;
8856
- staticLocator?: string | undefined;
8857
- } & /*elided*/ any)[];
8858
- }, unknown>>>;
8859
- }, z.core.$strip>, z.ZodObject<{
8860
- locator: z.ZodULID;
8861
- action: z.ZodEnum<{
8862
- delete: "delete";
8863
- params: "params";
8864
- modify: "modify";
8865
- add: "add";
8866
- }>;
8867
- staticLocator: z.ZodULID;
8868
- setData: z.ZodRecord<z.ZodString, z.ZodAny>;
8869
- removeData: z.ZodRecord<z.ZodString, z.ZodAny>;
8870
- setCoverageTerms: z.ZodRecord<z.ZodString, z.ZodString>;
8871
- removeCoverageTerms: z.ZodRecord<z.ZodString, z.ZodAny>;
8872
- }, z.core.$strip>, z.ZodObject<{
8873
- locator: z.ZodULID;
8874
- action: z.ZodEnum<{
8875
- delete: "delete";
8876
- params: "params";
8877
- modify: "modify";
8878
- add: "add";
8911
+ aggregatedTransactions: z.ZodLazy<z.ZodOptional<z.ZodArray<z.ZodObject<{
8912
+ locator: z.ZodString;
8913
+ policyLocator: z.ZodString;
8914
+ termLocator: z.ZodString;
8915
+ transactionState: z.ZodEnum<{
8916
+ draft: "draft";
8917
+ validated: "validated";
8918
+ earlyUnderwritten: "earlyUnderwritten";
8919
+ priced: "priced";
8920
+ underwritten: "underwritten";
8921
+ accepted: "accepted";
8922
+ issued: "issued";
8923
+ underwrittenBlocked: "underwrittenBlocked";
8924
+ declined: "declined";
8925
+ rejected: "rejected";
8926
+ refused: "refused";
8927
+ discarded: "discarded";
8928
+ initialized: "initialized";
8929
+ invalidated: "invalidated";
8930
+ reversed: "reversed";
8879
8931
  }>;
8932
+ createdAt: z.ZodISODateTime;
8933
+ createdBy: z.ZodGUID;
8880
8934
  effectiveTime: z.ZodISODateTime;
8881
- newPolicyEndTime: z.ZodOptional<z.ZodISODateTime>;
8882
- preferences: z.ZodOptional<z.ZodObject<{
8883
- installmentPreferences: z.ZodOptional<z.ZodObject<{
8884
- generateLeadDays: z.ZodOptional<z.ZodInt>;
8885
- dueLeadDays: z.ZodOptional<z.ZodInt>;
8886
- maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
8887
- installmentPlanName: z.ZodOptional<z.ZodString>;
8888
- dayOfMonth: z.ZodOptional<z.ZodInt>;
8889
- anchorTime: z.ZodOptional<z.ZodISODateTime>;
8890
- autopayLeadDays: z.ZodOptional<z.ZodNumber>;
8891
- cadence: z.ZodOptional<z.ZodEnum<{
8892
- none: "none";
8893
- fullPay: "fullPay";
8894
- weekly: "weekly";
8895
- everyOtherWeek: "everyOtherWeek";
8896
- monthly: "monthly";
8897
- quarterly: "quarterly";
8898
- semiannually: "semiannually";
8899
- annually: "annually";
8900
- thirtyDays: "thirtyDays";
8901
- everyNDays: "everyNDays";
8902
- }>>;
8903
- anchorMode: z.ZodOptional<z.ZodEnum<{
8904
- generateDay: "generateDay";
8905
- termStartDay: "termStartDay";
8906
- dueDay: "dueDay";
8907
- }>>;
8908
- anchorType: z.ZodOptional<z.ZodEnum<{
8909
- none: "none";
8910
- dayOfMonth: "dayOfMonth";
8911
- anchorTime: "anchorTime";
8912
- dayOfWeek: "dayOfWeek";
8913
- weekOfMonth: "weekOfMonth";
8914
- }>>;
8915
- dayOfWeek: z.ZodOptional<z.ZodEnum<{
8916
- monday: "monday";
8917
- tuesday: "tuesday";
8918
- wednesday: "wednesday";
8919
- thursday: "thursday";
8920
- friday: "friday";
8921
- saturday: "saturday";
8922
- sunday: "sunday";
8923
- }>>;
8924
- weekOfMonth: z.ZodOptional<z.ZodEnum<{
8925
- none: "none";
8926
- first: "first";
8927
- second: "second";
8928
- third: "third";
8929
- fourth: "fourth";
8930
- fifth: "fifth";
8931
- }>>;
8932
- installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
8933
- }, z.core.$strip>>;
8934
- billingPreferences: z.ZodOptional<z.ZodObject<{
8935
- billingPlanName: z.ZodOptional<z.ZodString>;
8936
- billingLevel: z.ZodEnum<{
8937
- account: "account";
8938
- inherit: "inherit";
8939
- policy: "policy";
8940
- }>;
8941
- }, z.core.$strip>>;
8942
- }, z.core.$strip>>;
8943
- triggerBillingChange: z.ZodOptional<z.ZodBoolean>;
8944
- billingModeChange: z.ZodOptional<z.ZodBoolean>;
8945
- }, z.core.$strip>, z.ZodObject<{
8946
- locator: z.ZodULID;
8947
- action: z.ZodEnum<{
8948
- delete: "delete";
8949
- params: "params";
8950
- modify: "modify";
8951
- add: "add";
8952
- }>;
8953
- staticElementLocators: z.ZodArray<z.ZodULID>;
8954
- }, z.core.$strip>]>>>;
8955
- billingTrigger: z.ZodEnum<{
8956
- accept: "accept";
8957
- issue: "issue";
8958
- }>;
8959
- aggregatedTransactions: z.ZodArray<z.ZodObject<{
8960
- locator: z.ZodULID;
8961
- policyLocator: z.ZodULID;
8962
- termLocator: z.ZodULID;
8963
- effectiveTime: z.ZodISODateTime;
8964
- transactionState: z.ZodEnum<{
8965
- draft: "draft";
8966
- validated: "validated";
8967
- earlyUnderwritten: "earlyUnderwritten";
8968
- priced: "priced";
8969
- underwritten: "underwritten";
8970
- accepted: "accepted";
8971
- issued: "issued";
8972
- underwrittenBlocked: "underwrittenBlocked";
8973
- declined: "declined";
8974
- rejected: "rejected";
8975
- refused: "refused";
8976
- discarded: "discarded";
8977
- initialized: "initialized";
8978
- invalidated: "invalidated";
8979
- reversed: "reversed";
8980
- }>;
8981
- transactionCategory: z.ZodEnum<{
8982
- issuance: "issuance";
8983
- change: "change";
8984
- renewal: "renewal";
8985
- cancellation: "cancellation";
8986
- reinstatement: "reinstatement";
8987
- reversal: "reversal";
8988
- aggregate: "aggregate";
8989
- }>;
8990
- transactionType: z.ZodString;
8991
- createdAt: z.ZodISODateTime;
8992
- createdBy: z.ZodGUID;
8993
- aggregateTransactionLocator: z.ZodOptional<z.ZodULID>;
8994
- baseTransactionLocator: z.ZodOptional<z.ZodULID>;
8995
- issuedTime: z.ZodOptional<z.ZodISODateTime>;
8996
- acceptedTime: z.ZodOptional<z.ZodISODateTime>;
8997
- preferences: z.ZodOptional<z.ZodObject<{
8998
- installmentPreferences: z.ZodOptional<z.ZodObject<{
8999
- generateLeadDays: z.ZodOptional<z.ZodInt>;
9000
- dueLeadDays: z.ZodOptional<z.ZodInt>;
9001
- maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
9002
- installmentPlanName: z.ZodOptional<z.ZodString>;
9003
- dayOfMonth: z.ZodOptional<z.ZodInt>;
9004
- anchorTime: z.ZodOptional<z.ZodISODateTime>;
9005
- autopayLeadDays: z.ZodOptional<z.ZodNumber>;
9006
- cadence: z.ZodOptional<z.ZodEnum<{
9007
- none: "none";
9008
- fullPay: "fullPay";
9009
- weekly: "weekly";
9010
- everyOtherWeek: "everyOtherWeek";
9011
- monthly: "monthly";
9012
- quarterly: "quarterly";
9013
- semiannually: "semiannually";
9014
- annually: "annually";
9015
- thirtyDays: "thirtyDays";
9016
- everyNDays: "everyNDays";
9017
- }>>;
9018
- anchorMode: z.ZodOptional<z.ZodEnum<{
9019
- generateDay: "generateDay";
9020
- termStartDay: "termStartDay";
9021
- dueDay: "dueDay";
9022
- }>>;
9023
- anchorType: z.ZodOptional<z.ZodEnum<{
9024
- none: "none";
9025
- dayOfMonth: "dayOfMonth";
9026
- anchorTime: "anchorTime";
9027
- dayOfWeek: "dayOfWeek";
9028
- weekOfMonth: "weekOfMonth";
9029
- }>>;
9030
- dayOfWeek: z.ZodOptional<z.ZodEnum<{
9031
- monday: "monday";
9032
- tuesday: "tuesday";
9033
- wednesday: "wednesday";
9034
- thursday: "thursday";
9035
- friday: "friday";
9036
- saturday: "saturday";
9037
- sunday: "sunday";
9038
- }>>;
9039
- weekOfMonth: z.ZodOptional<z.ZodEnum<{
9040
- none: "none";
9041
- first: "first";
9042
- second: "second";
9043
- third: "third";
9044
- fourth: "fourth";
9045
- fifth: "fifth";
9046
- }>>;
9047
- installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
9048
- }, z.core.$strip>>;
9049
- billingPreferences: z.ZodOptional<z.ZodObject<{
9050
- billingPlanName: z.ZodOptional<z.ZodString>;
9051
- billingLevel: z.ZodEnum<{
9052
- account: "account";
9053
- inherit: "inherit";
9054
- policy: "policy";
9055
- }>;
9056
- }, z.core.$strip>>;
9057
- }, z.core.$strip>>;
9058
- underwritingStatus: z.ZodOptional<z.ZodString>;
9059
- validationResult: z.ZodOptional<z.ZodObject<{
9060
- validationItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
9061
- locator: z.ZodOptional<z.ZodULID>;
9062
- elementType: z.ZodOptional<z.ZodString>;
9063
- errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
9064
- }, z.core.$strip>>>;
9065
- success: z.ZodOptional<z.ZodBoolean>;
9066
- }, z.core.$strip>>;
9067
- changeInstructions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
9068
- locator: z.ZodULID;
9069
- action: z.ZodEnum<{
9070
- delete: "delete";
9071
- params: "params";
9072
- modify: "modify";
9073
- add: "add";
9074
- }>;
9075
- elements: z.ZodArray<z.ZodType<{
9076
- type: string;
9077
- parentLocator: string;
9078
- data: Record<string, any>;
9079
- coverageTerms: Record<string, string>;
9080
- staticLocator?: string | undefined;
9081
- } & {
9082
- elements?: ({
9083
- type: string;
9084
- parentLocator: string;
9085
- data: Record<string, any>;
9086
- coverageTerms: Record<string, string>;
9087
- staticLocator?: string | undefined;
9088
- } & /*elided*/ any)[];
9089
- }, unknown, z.core.$ZodTypeInternals<{
9090
- type: string;
9091
- parentLocator: string;
9092
- data: Record<string, any>;
9093
- coverageTerms: Record<string, string>;
9094
- staticLocator?: string | undefined;
9095
- } & {
9096
- elements?: ({
9097
- type: string;
9098
- parentLocator: string;
9099
- data: Record<string, any>;
9100
- coverageTerms: Record<string, string>;
9101
- staticLocator?: string | undefined;
9102
- } & /*elided*/ any)[];
9103
- }, unknown>>>;
9104
- }, z.core.$strip>, z.ZodObject<{
9105
- locator: z.ZodULID;
9106
- action: z.ZodEnum<{
9107
- delete: "delete";
9108
- params: "params";
9109
- modify: "modify";
9110
- add: "add";
9111
- }>;
9112
- staticLocator: z.ZodULID;
9113
- setData: z.ZodRecord<z.ZodString, z.ZodAny>;
9114
- removeData: z.ZodRecord<z.ZodString, z.ZodAny>;
9115
- setCoverageTerms: z.ZodRecord<z.ZodString, z.ZodString>;
9116
- removeCoverageTerms: z.ZodRecord<z.ZodString, z.ZodAny>;
9117
- }, z.core.$strip>, z.ZodObject<{
9118
- locator: z.ZodULID;
9119
- action: z.ZodEnum<{
9120
- delete: "delete";
9121
- params: "params";
9122
- modify: "modify";
9123
- add: "add";
9124
- }>;
9125
- effectiveTime: z.ZodISODateTime;
9126
- newPolicyEndTime: z.ZodOptional<z.ZodISODateTime>;
9127
- preferences: z.ZodOptional<z.ZodObject<{
9128
- installmentPreferences: z.ZodOptional<z.ZodObject<{
9129
- generateLeadDays: z.ZodOptional<z.ZodInt>;
9130
- dueLeadDays: z.ZodOptional<z.ZodInt>;
9131
- maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
9132
- installmentPlanName: z.ZodOptional<z.ZodString>;
9133
- dayOfMonth: z.ZodOptional<z.ZodInt>;
9134
- anchorTime: z.ZodOptional<z.ZodISODateTime>;
9135
- autopayLeadDays: z.ZodOptional<z.ZodNumber>;
9136
- cadence: z.ZodOptional<z.ZodEnum<{
9137
- none: "none";
9138
- fullPay: "fullPay";
9139
- weekly: "weekly";
9140
- everyOtherWeek: "everyOtherWeek";
9141
- monthly: "monthly";
9142
- quarterly: "quarterly";
9143
- semiannually: "semiannually";
9144
- annually: "annually";
9145
- thirtyDays: "thirtyDays";
9146
- everyNDays: "everyNDays";
9147
- }>>;
9148
- anchorMode: z.ZodOptional<z.ZodEnum<{
9149
- generateDay: "generateDay";
9150
- termStartDay: "termStartDay";
9151
- dueDay: "dueDay";
9152
- }>>;
9153
- anchorType: z.ZodOptional<z.ZodEnum<{
9154
- none: "none";
9155
- dayOfMonth: "dayOfMonth";
9156
- anchorTime: "anchorTime";
9157
- dayOfWeek: "dayOfWeek";
9158
- weekOfMonth: "weekOfMonth";
9159
- }>>;
9160
- dayOfWeek: z.ZodOptional<z.ZodEnum<{
9161
- monday: "monday";
9162
- tuesday: "tuesday";
9163
- wednesday: "wednesday";
9164
- thursday: "thursday";
9165
- friday: "friday";
9166
- saturday: "saturday";
9167
- sunday: "sunday";
9168
- }>>;
9169
- weekOfMonth: z.ZodOptional<z.ZodEnum<{
9170
- none: "none";
9171
- first: "first";
9172
- second: "second";
9173
- third: "third";
9174
- fourth: "fourth";
9175
- fifth: "fifth";
9176
- }>>;
9177
- installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
9178
- }, z.core.$strip>>;
9179
- billingPreferences: z.ZodOptional<z.ZodObject<{
9180
- billingPlanName: z.ZodOptional<z.ZodString>;
9181
- billingLevel: z.ZodEnum<{
9182
- account: "account";
9183
- inherit: "inherit";
9184
- policy: "policy";
9185
- }>;
9186
- }, z.core.$strip>>;
9187
- }, z.core.$strip>>;
9188
- triggerBillingChange: z.ZodOptional<z.ZodBoolean>;
9189
- billingModeChange: z.ZodOptional<z.ZodBoolean>;
9190
- }, z.core.$strip>, z.ZodObject<{
9191
- locator: z.ZodULID;
9192
- action: z.ZodEnum<{
9193
- delete: "delete";
9194
- params: "params";
9195
- modify: "modify";
9196
- add: "add";
9197
- }>;
9198
- staticElementLocators: z.ZodArray<z.ZodULID>;
9199
- }, z.core.$strip>]>>>;
9200
- billingTrigger: z.ZodEnum<{
9201
- accept: "accept";
9202
- issue: "issue";
9203
- }>;
9204
- }, z.core.$strip>>;
9205
- }, z.core.$strip>;
9206
-
9207
- export declare const policyTransactionResponseSchema: z.ZodObject<{
9208
- locator: z.ZodString;
9209
- policyLocator: z.ZodString;
9210
- termLocator: z.ZodString;
9211
- transactionState: z.ZodEnum<{
9212
- draft: "draft";
9213
- validated: "validated";
9214
- earlyUnderwritten: "earlyUnderwritten";
9215
- priced: "priced";
9216
- underwritten: "underwritten";
9217
- accepted: "accepted";
9218
- issued: "issued";
9219
- underwrittenBlocked: "underwrittenBlocked";
9220
- declined: "declined";
9221
- rejected: "rejected";
9222
- refused: "refused";
9223
- discarded: "discarded";
9224
- initialized: "initialized";
9225
- invalidated: "invalidated";
9226
- reversed: "reversed";
9227
- }>;
9228
- createdAt: z.ZodISODateTime;
9229
- createdBy: z.ZodGUID;
9230
- effectiveTime: z.ZodISODateTime;
9231
- transactionCategory: z.ZodEnum<{
9232
- issuance: "issuance";
9233
- change: "change";
9234
- renewal: "renewal";
9235
- cancellation: "cancellation";
9236
- reinstatement: "reinstatement";
9237
- reversal: "reversal";
9238
- aggregate: "aggregate";
9239
- }>;
9240
- transactionType: z.ZodString;
9241
- changeInstructions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
9242
- aggregateTransactionLocator: z.ZodOptional<z.ZodString>;
9243
- baseTransactionLocator: z.ZodOptional<z.ZodString>;
9244
- issuedTime: z.ZodOptional<z.ZodISODateTime>;
9245
- billingTrigger: z.ZodOptional<z.ZodEnum<{
9246
- accept: "accept";
9247
- issue: "issue";
9248
- }>>;
9249
- preferences: z.ZodOptional<z.ZodObject<{
9250
- billingPreferences: z.ZodOptional<z.ZodObject<{
9251
- billingPlanName: z.ZodOptional<z.ZodString>;
9252
- billingLevel: z.ZodOptional<z.ZodEnum<{
9253
- account: "account";
9254
- inherit: "inherit";
9255
- policy: "policy";
9256
- }>>;
9257
- }, z.core.$strip>>;
9258
- installmentPreferences: z.ZodOptional<z.ZodObject<{
9259
- installmentPlanName: z.ZodOptional<z.ZodString>;
9260
- anchorMode: z.ZodOptional<z.ZodEnum<{
9261
- generateDay: "generateDay";
9262
- termStartDay: "termStartDay";
9263
- dueDay: "dueDay";
9264
- }>>;
9265
- anchorTime: z.ZodOptional<z.ZodString>;
9266
- anchorType: z.ZodOptional<z.ZodEnum<{
9267
- none: "none";
9268
- dayOfMonth: "dayOfMonth";
9269
- anchorTime: "anchorTime";
9270
- dayOfWeek: "dayOfWeek";
9271
- weekOfMonth: "weekOfMonth";
9272
- }>>;
9273
- cadence: z.ZodOptional<z.ZodEnum<{
9274
- none: "none";
9275
- fullPay: "fullPay";
9276
- weekly: "weekly";
9277
- everyOtherWeek: "everyOtherWeek";
9278
- monthly: "monthly";
9279
- quarterly: "quarterly";
9280
- semiannually: "semiannually";
9281
- annually: "annually";
9282
- thirtyDays: "thirtyDays";
9283
- everyNDays: "everyNDays";
9284
- }>>;
9285
- dayOfMonth: z.ZodOptional<z.ZodNumber>;
9286
- dayOfWeek: z.ZodOptional<z.ZodEnum<{
9287
- monday: "monday";
9288
- tuesday: "tuesday";
9289
- wednesday: "wednesday";
9290
- thursday: "thursday";
9291
- friday: "friday";
9292
- saturday: "saturday";
9293
- sunday: "sunday";
9294
- }>>;
9295
- dueLeadDays: z.ZodOptional<z.ZodNumber>;
9296
- generateLeadDays: z.ZodOptional<z.ZodNumber>;
9297
- maxInstallmentsPerTerm: z.ZodOptional<z.ZodNumber>;
9298
- weekOfMonth: z.ZodOptional<z.ZodEnum<{
9299
- none: "none";
9300
- first: "first";
9301
- second: "second";
9302
- third: "third";
9303
- fourth: "fourth";
9304
- fifth: "fifth";
9305
- }>>;
9306
- }, z.core.$strip>>;
9307
- }, z.core.$strip>>;
9308
- underwritingStatus: z.ZodOptional<z.ZodEnum<{
9309
- none: "none";
9310
- declined: "declined";
9311
- rejected: "rejected";
9312
- approved: "approved";
9313
- blocked: "blocked";
9314
- }>>;
9315
- validationResult: z.ZodOptional<z.ZodObject<{
9316
- validationItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
9317
- locator: z.ZodOptional<z.ZodULID>;
9318
- elementType: z.ZodOptional<z.ZodString>;
9319
- errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
9320
- }, z.core.$strip>>>;
9321
- success: z.ZodOptional<z.ZodBoolean>;
9322
- }, z.core.$strip>>;
9323
- aggregatedTransactions: z.ZodLazy<z.ZodOptional<z.ZodArray<z.ZodObject<{
9324
- locator: z.ZodString;
9325
- policyLocator: z.ZodString;
9326
- termLocator: z.ZodString;
9327
- transactionState: z.ZodEnum<{
9328
- draft: "draft";
9329
- validated: "validated";
9330
- earlyUnderwritten: "earlyUnderwritten";
9331
- priced: "priced";
9332
- underwritten: "underwritten";
9333
- accepted: "accepted";
9334
- issued: "issued";
9335
- underwrittenBlocked: "underwrittenBlocked";
9336
- declined: "declined";
9337
- rejected: "rejected";
9338
- refused: "refused";
9339
- discarded: "discarded";
9340
- initialized: "initialized";
9341
- invalidated: "invalidated";
9342
- reversed: "reversed";
9343
- }>;
9344
- createdAt: z.ZodISODateTime;
9345
- createdBy: z.ZodGUID;
9346
- effectiveTime: z.ZodISODateTime;
9347
- transactionCategory: z.ZodEnum<{
9348
- issuance: "issuance";
9349
- change: "change";
9350
- renewal: "renewal";
9351
- cancellation: "cancellation";
9352
- reinstatement: "reinstatement";
9353
- reversal: "reversal";
9354
- aggregate: "aggregate";
9355
- }>;
9356
- transactionType: z.ZodString;
9357
- changeInstructions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
9358
- aggregateTransactionLocator: z.ZodOptional<z.ZodString>;
9359
- baseTransactionLocator: z.ZodOptional<z.ZodString>;
9360
- issuedTime: z.ZodOptional<z.ZodISODateTime>;
9361
- billingTrigger: z.ZodOptional<z.ZodEnum<{
9362
- accept: "accept";
9363
- issue: "issue";
9364
- }>>;
8935
+ transactionCategory: z.ZodEnum<{
8936
+ issuance: "issuance";
8937
+ change: "change";
8938
+ renewal: "renewal";
8939
+ cancellation: "cancellation";
8940
+ reinstatement: "reinstatement";
8941
+ reversal: "reversal";
8942
+ aggregate: "aggregate";
8943
+ }>;
8944
+ transactionType: z.ZodString;
8945
+ changeInstructions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
8946
+ aggregateTransactionLocator: z.ZodOptional<z.ZodString>;
8947
+ baseTransactionLocator: z.ZodOptional<z.ZodString>;
8948
+ issuedTime: z.ZodOptional<z.ZodISODateTime>;
8949
+ billingTrigger: z.ZodOptional<z.ZodEnum<{
8950
+ accept: "accept";
8951
+ issue: "issue";
8952
+ }>>;
9365
8953
  preferences: z.ZodOptional<z.ZodObject<{
9366
8954
  billingPreferences: z.ZodOptional<z.ZodObject<{
9367
8955
  billingPlanName: z.ZodOptional<z.ZodString>;
@@ -12604,7 +12192,7 @@ export declare const TemplateSnippetConfigSchema: z.ZodObject<{
12604
12192
  policyStartTime: "policyStartTime";
12605
12193
  currentTime: "currentTime";
12606
12194
  }>;
12607
- displayName: z.ZodString;
12195
+ displayName: z.ZodOptional<z.ZodString>;
12608
12196
  }, z.core.$strip>;
12609
12197
 
12610
12198
  export declare type TenantBaseConfig = z.infer<typeof tenantBaseConfigSchema>;