mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
- 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
18 lines
776 B
TypeScript
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>;
|