feat: created api product and api feature zod schemas

This commit is contained in:
John Yeo
2025-09-30 19:08:50 +01:00
parent 16dfca67e8
commit 96e0e8c2ce
40 changed files with 1079 additions and 2077 deletions

View File

@@ -1,6 +1,6 @@
import { z } from "zod/v4";
export enum FeatureResType {
export enum APIFeatureType {
Boolean = "boolean",
SingleUsage = "single_use",
ContinuousUse = "continuous_use",
@@ -10,7 +10,7 @@ export enum FeatureResType {
export const APIFeatureSchema = z.object({
id: z.string(),
name: z.string().nullish(),
type: z.enum(FeatureResType),
type: z.enum(APIFeatureType),
display: z
.object({
singular: z.string(),