@socotra/ec-react-schemas 2.24.1-next.3 → 2.24.1-next.4
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/README.md +1 -1
- package/dist/index.d.ts +15 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Import schemas directly from the package to use them for data validation, type i
|
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
41
|
import { policyResponseSchema } from '@socotra/ec-react-schemas';
|
|
42
|
-
import { z } from 'zod';
|
|
42
|
+
import { z } from 'zod/v4';
|
|
43
43
|
|
|
44
44
|
type Policy = z.infer<typeof policyResponseSchema>;
|
|
45
45
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { z as z_2 } from 'zod';
|
|
3
2
|
|
|
4
3
|
export declare const AbsoluteEnum: z.ZodEnum<{
|
|
5
4
|
none: "none";
|
|
@@ -5479,8 +5478,8 @@ export declare const InstallmentPreferencesSchema: z.ZodObject<{
|
|
|
5479
5478
|
installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5480
5479
|
}, z.core.$strip>;
|
|
5481
5480
|
|
|
5482
|
-
declare const installmentPreferencesSchema:
|
|
5483
|
-
cadence:
|
|
5481
|
+
declare const installmentPreferencesSchema: z.ZodObject<{
|
|
5482
|
+
cadence: z.ZodOptional<z.ZodEnum<{
|
|
5484
5483
|
none: "none";
|
|
5485
5484
|
fullPay: "fullPay";
|
|
5486
5485
|
weekly: "weekly";
|
|
@@ -5492,25 +5491,25 @@ declare const installmentPreferencesSchema: z_2.ZodObject<{
|
|
|
5492
5491
|
thirtyDays: "thirtyDays";
|
|
5493
5492
|
everyNDays: "everyNDays";
|
|
5494
5493
|
}>>;
|
|
5495
|
-
anchorMode:
|
|
5494
|
+
anchorMode: z.ZodOptional<z.ZodEnum<{
|
|
5496
5495
|
generateDay: "generateDay";
|
|
5497
5496
|
termStartDay: "termStartDay";
|
|
5498
5497
|
dueDay: "dueDay";
|
|
5499
5498
|
}>>;
|
|
5500
|
-
generateLeadDays:
|
|
5501
|
-
dueLeadDays:
|
|
5502
|
-
installmentWeights:
|
|
5503
|
-
maxInstallmentsPerTerm:
|
|
5504
|
-
installmentPlanName:
|
|
5505
|
-
anchorType:
|
|
5499
|
+
generateLeadDays: z.ZodOptional<z.ZodInt>;
|
|
5500
|
+
dueLeadDays: z.ZodOptional<z.ZodInt>;
|
|
5501
|
+
installmentWeights: z.ZodArray<z.ZodNumber>;
|
|
5502
|
+
maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
|
|
5503
|
+
installmentPlanName: z.ZodOptional<z.ZodString>;
|
|
5504
|
+
anchorType: z.ZodOptional<z.ZodEnum<{
|
|
5506
5505
|
none: "none";
|
|
5507
5506
|
dayOfMonth: "dayOfMonth";
|
|
5508
5507
|
anchorTime: "anchorTime";
|
|
5509
5508
|
dayOfWeek: "dayOfWeek";
|
|
5510
5509
|
weekOfMonth: "weekOfMonth";
|
|
5511
5510
|
}>>;
|
|
5512
|
-
dayOfMonth:
|
|
5513
|
-
dayOfWeek:
|
|
5511
|
+
dayOfMonth: z.ZodOptional<z.ZodInt>;
|
|
5512
|
+
dayOfWeek: z.ZodOptional<z.ZodEnum<{
|
|
5514
5513
|
monday: "monday";
|
|
5515
5514
|
tuesday: "tuesday";
|
|
5516
5515
|
wednesday: "wednesday";
|
|
@@ -5519,7 +5518,7 @@ declare const installmentPreferencesSchema: z_2.ZodObject<{
|
|
|
5519
5518
|
saturday: "saturday";
|
|
5520
5519
|
sunday: "sunday";
|
|
5521
5520
|
}>>;
|
|
5522
|
-
weekOfMonth:
|
|
5521
|
+
weekOfMonth: z.ZodOptional<z.ZodEnum<{
|
|
5523
5522
|
none: "none";
|
|
5524
5523
|
first: "first";
|
|
5525
5524
|
second: "second";
|
|
@@ -5527,9 +5526,9 @@ declare const installmentPreferencesSchema: z_2.ZodObject<{
|
|
|
5527
5526
|
fourth: "fourth";
|
|
5528
5527
|
fifth: "fifth";
|
|
5529
5528
|
}>>;
|
|
5530
|
-
anchorTime:
|
|
5531
|
-
autopayLeadDays:
|
|
5532
|
-
},
|
|
5529
|
+
anchorTime: z.ZodOptional<z.ZodISODateTime>;
|
|
5530
|
+
autopayLeadDays: z.ZodOptional<z.ZodNumber>;
|
|
5531
|
+
}, z.core.$strip>;
|
|
5533
5532
|
|
|
5534
5533
|
export declare type InvoiceFeeHandling = z.infer<typeof InvoiceFeeHandlingSchema>;
|
|
5535
5534
|
|