feat(sync): synchronize customer adresses and orders from Hiboutik sales (#1)
This commit is contained in:
@@ -2,3 +2,11 @@ import { Prisma } from '../generated/client';
|
||||
|
||||
/** Product loaded with its versions (`include: { versions: true }`). */
|
||||
export type ProductWithVersions = Prisma.ProductGetPayload<{ include: { versions: true } }>;
|
||||
|
||||
/**
|
||||
* Order to save with its lines. Lines are kept apart from the nested Prisma input so that the repository can link
|
||||
* them to the current catalog (`productVersion`) and replace them on update.
|
||||
*/
|
||||
export type OrderWithLinesInput = Omit<Prisma.OrderCreateInput, 'lines'> & {
|
||||
lines: Prisma.OrderLineCreateWithoutOrderInput[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user