import { z } from 'zod';
export var ProductType;
(function (ProductType) {
    ProductType["FILE"] = "file";
    ProductType["LINK"] = "link";
})(ProductType || (ProductType = {}));
export var DiscountType;
(function (DiscountType) {
    DiscountType["AMOUNT"] = "amount";
    DiscountType["PERCENTAGE"] = "percentage";
})(DiscountType || (DiscountType = {}));
export const ZDigitalProductItemLandingPage = z
    .object({
    callToAction: z.string().optional().nullable(),
    description: z.string().optional().nullable(),
    productType: z.nativeEnum(ProductType),
    productUrl: z.string(),
    id: z.string().uuid().optional(),
    isUploadFile: z.boolean().optional(),
    productItemId: z.string().optional().nullable(),
    moduleId: z.string().optional().nullable(),
    thumbnails: z.array(z.string()).optional().nullable(),
    title: z.string().optional().nullable(),
    urlSlug: z.string().optional().nullable(),
    versionId: z.string().optional().nullable(),
    currency: z.string().optional().nullable(),
    regularPrice: z.number().default(0).optional(),
    discountValue: z.number().default(0).optional(),
    discountType: z
        .nativeEnum(DiscountType)
        .optional()
        .nullable()
        .default(DiscountType.AMOUNT)
})
    .transform(data => (Object.assign({}, data)));
