Files
ISA-Frontend/libs/checkout/data-access/src/lib/schemas/text.schema.ts
Lorenz Hilpert 2b5da00249 feat(checkout): add reward order confirmation feature with schema migrations
- Add new reward-order-confirmation feature library with components and store
- Implement checkout completion orchestrator service for order finalization
- Migrate checkout/oms/crm models to Zod schemas for better type safety
- Add order creation facade and display order schemas
- Update shopping cart facade with order completion flow
- Add comprehensive tests for shopping cart facade
- Update routing to include order confirmation page
2025-10-21 14:28:52 +02:00

18 lines
776 B
TypeScript

import { z } from 'zod';
import { EntitySchema, EntityContainerSchema } from '@isa/common/data-access';
export const TextSchema = EntitySchema.extend({
cultureInfo: z.string().describe('Culture info').optional(),
name: z.string().describe('Name').optional(),
subtitle: z.string().describe('Subtitle').optional(),
copyright: z.string().describe('Copyright').optional(),
type: z.string().describe('Type').optional(),
content: z.string().describe('Content').optional(),
encoding: z.string().describe('Encoding').optional(),
mime: z.string().describe('Mime').optional(),
hash: z.string().describe('Whether has h').optional(),
tenant: EntityContainerSchema(z.any()).describe('Tenant identifier').optional(),
});
export type Text = z.infer<typeof TextSchema>;