@reactionary/core 0.0.52 → 0.0.54
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/package.json
CHANGED
|
@@ -14,23 +14,23 @@ const CheckoutMutationSetShippingAddressSchema = BaseMutationSchema.extend({
|
|
|
14
14
|
const CheckoutMutationFinalizeCheckoutSchema = BaseMutationSchema.extend({
|
|
15
15
|
checkout: CartIdentifierSchema.required()
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const CheckoutMutationAddPaymentInstructionSchema = BaseMutationSchema.extend({
|
|
18
18
|
paymentInstruction: PaymentInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
|
|
19
19
|
checkout: CartIdentifierSchema.required()
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const CheckoutMutationRemovePaymentInstructionSchema = BaseMutationSchema.extend({
|
|
22
22
|
paymentInstruction: PaymentInstructionIdentifierSchema.required(),
|
|
23
23
|
checkout: CartIdentifierSchema.required()
|
|
24
24
|
});
|
|
25
|
-
const
|
|
25
|
+
const CheckoutMutationSetShippingInstructionSchema = BaseMutationSchema.extend({
|
|
26
26
|
shippingInstruction: ShippingInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
|
|
27
27
|
checkout: CartIdentifierSchema.required()
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
CheckoutMutationAddPaymentInstructionSchema,
|
|
31
31
|
CheckoutMutationFinalizeCheckoutSchema,
|
|
32
32
|
CheckoutMutationInitiateCheckoutSchema,
|
|
33
|
-
|
|
33
|
+
CheckoutMutationRemovePaymentInstructionSchema,
|
|
34
34
|
CheckoutMutationSetShippingAddressSchema,
|
|
35
|
-
|
|
35
|
+
CheckoutMutationSetShippingInstructionSchema
|
|
36
36
|
};
|
|
@@ -50,7 +50,7 @@ export declare const CheckoutMutationFinalizeCheckoutSchema: z.ZodObject<{
|
|
|
50
50
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
51
51
|
}, z.z.core.$loose>;
|
|
52
52
|
}, z.z.core.$loose>;
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const CheckoutMutationAddPaymentInstructionSchema: z.ZodObject<{
|
|
54
54
|
paymentInstruction: z.ZodObject<{
|
|
55
55
|
amount: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
56
56
|
value: z.ZodDefault<z.ZodNumber>;
|
|
@@ -252,7 +252,7 @@ export declare const CheckoutMutationAddPaymentInstruction: z.ZodObject<{
|
|
|
252
252
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
253
253
|
}, z.z.core.$loose>;
|
|
254
254
|
}, z.z.core.$loose>;
|
|
255
|
-
export declare const
|
|
255
|
+
export declare const CheckoutMutationRemovePaymentInstructionSchema: z.ZodObject<{
|
|
256
256
|
paymentInstruction: z.ZodObject<{
|
|
257
257
|
key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
|
|
258
258
|
}, z.z.core.$loose>;
|
|
@@ -260,7 +260,7 @@ export declare const CheckoutMutationRemovePaymentInstruction: z.ZodObject<{
|
|
|
260
260
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
261
261
|
}, z.z.core.$loose>;
|
|
262
262
|
}, z.z.core.$loose>;
|
|
263
|
-
export declare const
|
|
263
|
+
export declare const CheckoutMutationSetShippingInstructionSchema: z.ZodObject<{
|
|
264
264
|
shippingInstruction: z.ZodObject<{
|
|
265
265
|
instructions: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
266
266
|
shippingMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -276,6 +276,6 @@ export declare const CheckoutMutationSetShippingInstruction: z.ZodObject<{
|
|
|
276
276
|
export type CheckoutMutationInitiateCheckout = z.infer<typeof CheckoutMutationInitiateCheckoutSchema>;
|
|
277
277
|
export type CheckoutMutationSetShippingAddress = z.infer<typeof CheckoutMutationSetShippingAddressSchema>;
|
|
278
278
|
export type CheckoutMutationFinalizeCheckout = z.infer<typeof CheckoutMutationFinalizeCheckoutSchema>;
|
|
279
|
-
export type CheckoutMutationAddPaymentInstruction = z.infer<typeof
|
|
280
|
-
export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof
|
|
281
|
-
export type CheckoutMutationSetShippingInstruction = z.infer<typeof
|
|
279
|
+
export type CheckoutMutationAddPaymentInstruction = z.infer<typeof CheckoutMutationAddPaymentInstructionSchema>;
|
|
280
|
+
export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof CheckoutMutationRemovePaymentInstructionSchema>;
|
|
281
|
+
export type CheckoutMutationSetShippingInstruction = z.infer<typeof CheckoutMutationSetShippingInstructionSchema>;
|