Files
cfw-autumn/shared/models/cusProductModels/cusEntModels/replaceableSchema.ts
John Yeo 3d0e4f94f2 wip
2025-09-29 11:15:23 +01:00

22 lines
628 B
TypeScript

import { z } from "zod/v4";
import { EntitlementSchema } from "../../productModels/entModels/entModels.js";
export const ReplaceableSchema = z.object({
id: z.string(),
cus_ent_id: z.string(),
created_at: z.number(),
from_entity_id: z.string().nullish(),
delete_next_cycle: z.boolean(),
});
export const AttachReplaceableSchema = z.object({
ent: EntitlementSchema,
id: z.string(),
created_at: z.number(),
from_entity_id: z.string().nullish(),
delete_next_cycle: z.boolean(),
});
// export type Replaceable = z.infer<typeof ReplaceableSchema>;
export type AttachReplaceable = z.infer<typeof AttachReplaceableSchema>;