🎉👏 done

This commit is contained in:
user
2025-10-21 19:27:38 +03:00
parent f0fa53a4e5
commit 319384c334
9 changed files with 138 additions and 52 deletions

View File

@@ -2,7 +2,10 @@ import { z } from "zod";
import { paginationModel } from "../../../core/pagination.utils";
import { encodeCursor } from "../../../core/string.utils";
import { customerInfoModel } from "../../customerinfo/data";
import { paymentInfoPayloadModel } from "../../paymentinfo/data/entities";
import {
paymentInfoModel,
paymentInfoPayloadModel,
} from "../../paymentinfo/data/entities";
import { productModel } from "../../product/data";
export enum OrderCreationStep {
@@ -72,6 +75,7 @@ export const fullOrderModel = orderModel.merge(
z.object({
product: productModel,
customerInfo: customerInfoModel.optional().nullable(),
paymentInfo: paymentInfoModel.optional().nullable(),
}),
);
export type FullOrderModel = z.infer<typeof fullOrderModel>;