@socotra/ec-react-schemas 2.8.0-next.2 → 2.8.0-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
@@ -931,6 +931,204 @@ export declare const coverageTermsRecordSchema: z.ZodRecord<z.ZodString, z.ZodOb
931
931
  displayName?: string | undefined;
932
932
  }>>;
933
933
 
934
+ export declare type CreditDistributionRequest = z.infer<typeof creditDistributionRequestSchema>;
935
+
936
+ export declare const creditDistributionRequestSchema: z.ZodObject<{
937
+ amount: z.ZodNumber;
938
+ sources: z.ZodArray<z.ZodObject<{
939
+ containerLocator: z.ZodString;
940
+ containerType: z.ZodEnum<["invoice", "account"]>;
941
+ amount: z.ZodOptional<z.ZodNumber>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ containerLocator: string;
944
+ containerType: "account" | "invoice";
945
+ amount?: number | undefined;
946
+ }, {
947
+ containerLocator: string;
948
+ containerType: "account" | "invoice";
949
+ amount?: number | undefined;
950
+ }>, "many">;
951
+ targets: z.ZodArray<z.ZodObject<{
952
+ containerLocator: z.ZodString;
953
+ containerType: z.ZodEnum<["invoice", "account"]>;
954
+ amount: z.ZodOptional<z.ZodNumber>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ containerLocator: string;
957
+ containerType: "account" | "invoice";
958
+ amount?: number | undefined;
959
+ }, {
960
+ containerLocator: string;
961
+ containerType: "account" | "invoice";
962
+ amount?: number | undefined;
963
+ }>, "many">;
964
+ accountLocator: z.ZodOptional<z.ZodString>;
965
+ currency: z.ZodOptional<z.ZodString>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ amount: number;
968
+ targets: {
969
+ containerLocator: string;
970
+ containerType: "account" | "invoice";
971
+ amount?: number | undefined;
972
+ }[];
973
+ sources: {
974
+ containerLocator: string;
975
+ containerType: "account" | "invoice";
976
+ amount?: number | undefined;
977
+ }[];
978
+ currency?: string | undefined;
979
+ accountLocator?: string | undefined;
980
+ }, {
981
+ amount: number;
982
+ targets: {
983
+ containerLocator: string;
984
+ containerType: "account" | "invoice";
985
+ amount?: number | undefined;
986
+ }[];
987
+ sources: {
988
+ containerLocator: string;
989
+ containerType: "account" | "invoice";
990
+ amount?: number | undefined;
991
+ }[];
992
+ currency?: string | undefined;
993
+ accountLocator?: string | undefined;
994
+ }>;
995
+
996
+ export declare type CreditDistributionResponse = z.infer<typeof creditDistributionResponseSchema>;
997
+
998
+ export declare const creditDistributionResponseSchema: z.ZodObject<{
999
+ locator: z.ZodString;
1000
+ currency: z.ZodString;
1001
+ creditDistributionState: z.ZodEnum<["draft", "validated", "executed", "reversed", "discarded"]>;
1002
+ amount: z.ZodNumber;
1003
+ createdAt: z.ZodString;
1004
+ createdBy: z.ZodString;
1005
+ sources: z.ZodArray<z.ZodObject<{
1006
+ containerLocator: z.ZodString;
1007
+ containerType: z.ZodEnum<["invoice", "account"]>;
1008
+ amount: z.ZodOptional<z.ZodNumber>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ containerLocator: string;
1011
+ containerType: "account" | "invoice";
1012
+ amount?: number | undefined;
1013
+ }, {
1014
+ containerLocator: string;
1015
+ containerType: "account" | "invoice";
1016
+ amount?: number | undefined;
1017
+ }>, "many">;
1018
+ targets: z.ZodArray<z.ZodObject<{
1019
+ containerLocator: z.ZodString;
1020
+ containerType: z.ZodEnum<["invoice", "account"]>;
1021
+ amount: z.ZodOptional<z.ZodNumber>;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ containerLocator: string;
1024
+ containerType: "account" | "invoice";
1025
+ amount?: number | undefined;
1026
+ }, {
1027
+ containerLocator: string;
1028
+ containerType: "account" | "invoice";
1029
+ amount?: number | undefined;
1030
+ }>, "many">;
1031
+ shortfallCreditLocators: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1032
+ accountLocator: z.ZodOptional<z.ZodString>;
1033
+ executedAt: z.ZodOptional<z.ZodString>;
1034
+ reversalReason: z.ZodOptional<z.ZodString>;
1035
+ reversedAt: z.ZodOptional<z.ZodString>;
1036
+ validationResult: z.ZodOptional<z.ZodObject<{
1037
+ validationItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1038
+ elementType: z.ZodOptional<z.ZodString>;
1039
+ locator: z.ZodOptional<z.ZodString>;
1040
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ elementType?: string | undefined;
1043
+ locator?: string | undefined;
1044
+ errors?: string[] | undefined;
1045
+ }, {
1046
+ elementType?: string | undefined;
1047
+ locator?: string | undefined;
1048
+ errors?: string[] | undefined;
1049
+ }>, "many">>;
1050
+ success: z.ZodOptional<z.ZodBoolean>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ validationItems?: {
1053
+ elementType?: string | undefined;
1054
+ locator?: string | undefined;
1055
+ errors?: string[] | undefined;
1056
+ }[] | undefined;
1057
+ success?: boolean | undefined;
1058
+ }, {
1059
+ validationItems?: {
1060
+ elementType?: string | undefined;
1061
+ locator?: string | undefined;
1062
+ errors?: string[] | undefined;
1063
+ }[] | undefined;
1064
+ success?: boolean | undefined;
1065
+ }>>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ locator: string;
1068
+ createdBy: string;
1069
+ currency: string;
1070
+ amount: number;
1071
+ createdAt: string;
1072
+ targets: {
1073
+ containerLocator: string;
1074
+ containerType: "account" | "invoice";
1075
+ amount?: number | undefined;
1076
+ }[];
1077
+ sources: {
1078
+ containerLocator: string;
1079
+ containerType: "account" | "invoice";
1080
+ amount?: number | undefined;
1081
+ }[];
1082
+ creditDistributionState: "draft" | "validated" | "discarded" | "reversed" | "executed";
1083
+ accountLocator?: string | undefined;
1084
+ validationResult?: {
1085
+ validationItems?: {
1086
+ elementType?: string | undefined;
1087
+ locator?: string | undefined;
1088
+ errors?: string[] | undefined;
1089
+ }[] | undefined;
1090
+ success?: boolean | undefined;
1091
+ } | undefined;
1092
+ shortfallCreditLocators?: string[] | undefined;
1093
+ reversalReason?: string | undefined;
1094
+ reversedAt?: string | undefined;
1095
+ executedAt?: string | undefined;
1096
+ }, {
1097
+ locator: string;
1098
+ createdBy: string;
1099
+ currency: string;
1100
+ amount: number;
1101
+ createdAt: string;
1102
+ targets: {
1103
+ containerLocator: string;
1104
+ containerType: "account" | "invoice";
1105
+ amount?: number | undefined;
1106
+ }[];
1107
+ sources: {
1108
+ containerLocator: string;
1109
+ containerType: "account" | "invoice";
1110
+ amount?: number | undefined;
1111
+ }[];
1112
+ creditDistributionState: "draft" | "validated" | "discarded" | "reversed" | "executed";
1113
+ accountLocator?: string | undefined;
1114
+ validationResult?: {
1115
+ validationItems?: {
1116
+ elementType?: string | undefined;
1117
+ locator?: string | undefined;
1118
+ errors?: string[] | undefined;
1119
+ }[] | undefined;
1120
+ success?: boolean | undefined;
1121
+ } | undefined;
1122
+ shortfallCreditLocators?: string[] | undefined;
1123
+ reversalReason?: string | undefined;
1124
+ reversedAt?: string | undefined;
1125
+ executedAt?: string | undefined;
1126
+ }>;
1127
+
1128
+ export declare type CreditDistributionStateEnum = z.infer<typeof creditDistributionStateEnumSchema>;
1129
+
1130
+ export declare const creditDistributionStateEnumSchema: z.ZodEnum<["draft", "validated", "executed", "reversed", "discarded"]>;
1131
+
934
1132
  export declare type CreditItem = z.infer<typeof creditItemSchema>;
935
1133
 
936
1134
  export declare type CreditItemContainerTypeEnum = z.infer<typeof creditItemContainerTypeEnumSchema>;
@@ -4950,6 +5148,88 @@ export declare type InvoiceState = z.infer<typeof invoiceStateEnumSchema>;
4950
5148
 
4951
5149
  export declare const invoiceStateEnumSchema: z.ZodEnum<["open", "settled"]>;
4952
5150
 
5151
+ export declare type LedgerAccountAccountingTypeEnum = z.infer<typeof ledgerAccountAccountingTypeEnumSchema>;
5152
+
5153
+ export declare const ledgerAccountAccountingTypeEnumSchema: z.ZodEnum<["credit", "debit"]>;
5154
+
5155
+ export declare type LedgerAccountLineItem = z.infer<typeof ledgerAccountLineItemSchema>;
5156
+
5157
+ export declare const ledgerAccountLineItemSchema: z.ZodObject<{
5158
+ faTransactionLocator: z.ZodString;
5159
+ accountingType: z.ZodEnum<["credit", "debit"]>;
5160
+ amount: z.ZodNumber;
5161
+ faTransactionNote: z.ZodString;
5162
+ faTransactionTime: z.ZodString;
5163
+ }, "strip", z.ZodTypeAny, {
5164
+ amount: number;
5165
+ faTransactionLocator: string;
5166
+ accountingType: "credit" | "debit";
5167
+ faTransactionNote: string;
5168
+ faTransactionTime: string;
5169
+ }, {
5170
+ amount: number;
5171
+ faTransactionLocator: string;
5172
+ accountingType: "credit" | "debit";
5173
+ faTransactionNote: string;
5174
+ faTransactionTime: string;
5175
+ }>;
5176
+
5177
+ export declare type LedgerAccountReferenceTypeEnum = z.infer<typeof ledgerAccountReferenceTypeEnumSchema>;
5178
+
5179
+ export declare const ledgerAccountReferenceTypeEnumSchema: z.ZodEnum<["accountCreditBalance", "cash", "charge", "credit", "installmentItem", "invoiceItem", "quote", "policy", "transaction", "accountExpenseBalance"]>;
5180
+
5181
+ export declare type LedgerAccountResponse = z.infer<typeof ledgerAccountResponseSchema>;
5182
+
5183
+ export declare const ledgerAccountResponseSchema: z.ZodObject<{
5184
+ referenceLocator: z.ZodString;
5185
+ currency: z.ZodEnum<["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "COP", "COU", "CRC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "CNY", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLE", "SLL", "SOS", "SRD", "SSP", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VED", "VES", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWL"]>;
5186
+ balance: z.ZodNumber;
5187
+ referenceType: z.ZodEnum<["accountCreditBalance", "cash", "charge", "credit", "installmentItem", "invoiceItem", "quote", "policy", "transaction", "accountExpenseBalance"]>;
5188
+ lineItems: z.ZodArray<z.ZodObject<{
5189
+ faTransactionLocator: z.ZodString;
5190
+ accountingType: z.ZodEnum<["credit", "debit"]>;
5191
+ amount: z.ZodNumber;
5192
+ faTransactionNote: z.ZodString;
5193
+ faTransactionTime: z.ZodString;
5194
+ }, "strip", z.ZodTypeAny, {
5195
+ amount: number;
5196
+ faTransactionLocator: string;
5197
+ accountingType: "credit" | "debit";
5198
+ faTransactionNote: string;
5199
+ faTransactionTime: string;
5200
+ }, {
5201
+ amount: number;
5202
+ faTransactionLocator: string;
5203
+ accountingType: "credit" | "debit";
5204
+ faTransactionNote: string;
5205
+ faTransactionTime: string;
5206
+ }>, "many">;
5207
+ }, "strip", z.ZodTypeAny, {
5208
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "COP" | "COU" | "CRC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "CNY" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
5209
+ referenceType: "policy" | "quote" | "transaction" | "credit" | "cash" | "accountCreditBalance" | "charge" | "installmentItem" | "invoiceItem" | "accountExpenseBalance";
5210
+ referenceLocator: string;
5211
+ balance: number;
5212
+ lineItems: {
5213
+ amount: number;
5214
+ faTransactionLocator: string;
5215
+ accountingType: "credit" | "debit";
5216
+ faTransactionNote: string;
5217
+ faTransactionTime: string;
5218
+ }[];
5219
+ }, {
5220
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "COP" | "COU" | "CRC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "CNY" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
5221
+ referenceType: "policy" | "quote" | "transaction" | "credit" | "cash" | "accountCreditBalance" | "charge" | "installmentItem" | "invoiceItem" | "accountExpenseBalance";
5222
+ referenceLocator: string;
5223
+ balance: number;
5224
+ lineItems: {
5225
+ amount: number;
5226
+ faTransactionLocator: string;
5227
+ accountingType: "credit" | "debit";
5228
+ faTransactionNote: string;
5229
+ faTransactionTime: string;
5230
+ }[];
5231
+ }>;
5232
+
4953
5233
  export declare type ModifyChangeInstructionCreateRequest = z.infer<typeof modifyChangeInstructionCreateRequestSchema>;
4954
5234
 
4955
5235
  export declare const modifyChangeInstructionCreateRequestSchema: z.ZodObject<{