@zyacreatives/shared 2.5.30 → 2.5.31
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.
|
@@ -47,7 +47,7 @@ export declare const InitTransactionInputSchema: z.ZodObject<{
|
|
|
47
47
|
productId: z.ZodCUID2;
|
|
48
48
|
firstName: z.ZodOptional<z.ZodString>;
|
|
49
49
|
lastName: z.ZodOptional<z.ZodString>;
|
|
50
|
-
email: z.
|
|
50
|
+
email: z.ZodEmail;
|
|
51
51
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
52
52
|
amount: z.ZodNumber;
|
|
53
53
|
}, z.core.$strip>;
|
|
@@ -30,17 +30,11 @@ exports.InitTransactionInputSchema = zod_openapi_1.z.object({
|
|
|
30
30
|
firstName: zod_openapi_1.z.string().optional(),
|
|
31
31
|
lastName: zod_openapi_1.z.string().optional(),
|
|
32
32
|
email: zod_openapi_1.z
|
|
33
|
-
.email()
|
|
34
|
-
.optional()
|
|
35
|
-
.openapi({ description: "Buyer's email address from the checkout form" }),
|
|
33
|
+
.email(),
|
|
36
34
|
discountCode: zod_openapi_1.z
|
|
37
35
|
.string()
|
|
38
|
-
.optional()
|
|
39
|
-
|
|
40
|
-
amount: zod_openapi_1.z
|
|
41
|
-
.number()
|
|
42
|
-
.int("Amount must be a whole number (cents/kobo)")
|
|
43
|
-
.min(0)
|
|
36
|
+
.optional(),
|
|
37
|
+
amount: zod_openapi_1.z.number().int("Amount must be a whole number (cents/kobo)").min(0),
|
|
44
38
|
});
|
|
45
39
|
exports.CreateTransactionInputSchema = exports.BaseTransactionSchema.pick({
|
|
46
40
|
productId: true,
|
package/package.json
CHANGED
|
@@ -39,17 +39,11 @@ export const InitTransactionInputSchema = z.object({
|
|
|
39
39
|
firstName: z.string().optional(),
|
|
40
40
|
lastName: z.string().optional(),
|
|
41
41
|
email: z
|
|
42
|
-
.email()
|
|
43
|
-
.optional()
|
|
44
|
-
.openapi({ description: "Buyer's email address from the checkout form" }),
|
|
42
|
+
.email(),
|
|
45
43
|
discountCode: z
|
|
46
44
|
.string()
|
|
47
|
-
.optional()
|
|
48
|
-
|
|
49
|
-
amount: z
|
|
50
|
-
.number()
|
|
51
|
-
.int("Amount must be a whole number (cents/kobo)")
|
|
52
|
-
.min(0)
|
|
45
|
+
.optional(),
|
|
46
|
+
amount: z.number().int("Amount must be a whole number (cents/kobo)").min(0),
|
|
53
47
|
});
|
|
54
48
|
|
|
55
49
|
export const CreateTransactionInputSchema = BaseTransactionSchema.pick({
|