|
1
|
import { z } from "@medusajs/framework/zod"; |
|
2
|
|
|
3
|
export type StoreAddGiftCardToCartType = z.infer<typeof StoreAddGiftCardToCart>; |
|
4
|
export const StoreAddGiftCardToCart = z.strictObject({ |
|
5
|
code: z.string(), |
|
6
|
}); |
|
7
|
|
|
8
|
export type StoreRemoveGiftCardFromCartType = z.infer< |
|
9
|
typeof StoreRemoveGiftCardFromCart |
|
10
|
>; |
|
11
|
export const StoreRemoveGiftCardFromCart = z.strictObject({ |
|
12
|
code: z.string(), |
|
13
|
}); |
|
14
|
|
|
15
|
export type StoreAddStoreCreditsToCartType = z.infer< |
|
16
|
typeof StoreAddStoreCreditsToCart |
|
17
|
>; |
|
18
|
export const StoreAddStoreCreditsToCart = z.object({ |
|
19
|
amount: z.number().optional(), |
|
20
|
}); |