feat: restructure sales, add PDF quote generation and WebSocket support
This commit is contained in:
@@ -368,6 +368,23 @@ export function buildMockCWForecastItem(overrides: Record<string, any> = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
/** Build a minimal Prisma-shaped GeneratedQuotes row. */
|
||||
export function buildMockGeneratedQuote(overrides: Record<string, any> = {}) {
|
||||
return {
|
||||
id: "quote-1",
|
||||
quoteRegenData: { theme: "default" },
|
||||
quoteFile: new Uint8Array([0x25, 0x50, 0x44, 0x46]),
|
||||
quoteFileName: "Quote-TestOpp.pdf",
|
||||
opportunityId: "opp-1",
|
||||
createdById: "user-1",
|
||||
createdAt: new Date("2026-03-01"),
|
||||
updatedAt: new Date("2026-03-01"),
|
||||
opportunity: null,
|
||||
createdBy: null,
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
/** Build a minimal Prisma-shaped CatalogItem row. */
|
||||
export function buildMockCatalogItem(overrides: Record<string, any> = {}) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user