Download data/apps/api/src/schema.ts from llama1/dokpl0y: direct link, hf CLI and curl.
- Browser
- Download file 934 Bytes
-
https://huggingface.co/datasets/llama1/dokpl0y/resolve/main/data/apps/api/src/schema.ts
- Command line
-
hf download hf://datasets/llama1/dokpl0y/data/apps/api/src/schema.ts
-
curl -L -o schema.ts https://huggingface.co/datasets/llama1/dokpl0y/resolve/main/data/apps/api/src/schema.ts
934 Bytes
| import { z } from "zod"; | |
| export const deployJobSchema = z.discriminatedUnion("applicationType", [ | |
| z.object({ | |
| applicationId: z.string(), | |
| titleLog: z.string(), | |
| descriptionLog: z.string(), | |
| server: z.boolean().optional(), | |
| type: z.enum(["deploy", "redeploy"]), | |
| applicationType: z.literal("application"), | |
| serverId: z.string().min(1), | |
| }), | |
| z.object({ | |
| composeId: z.string(), | |
| titleLog: z.string(), | |
| descriptionLog: z.string(), | |
| server: z.boolean().optional(), | |
| type: z.enum(["deploy", "redeploy"]), | |
| applicationType: z.literal("compose"), | |
| serverId: z.string().min(1), | |
| }), | |
| z.object({ | |
| applicationId: z.string(), | |
| previewDeploymentId: z.string(), | |
| titleLog: z.string(), | |
| descriptionLog: z.string(), | |
| server: z.boolean().optional(), | |
| type: z.enum(["deploy"]), | |
| applicationType: z.literal("application-preview"), | |
| serverId: z.string().min(1), | |
| }), | |
| ]); | |
| export type DeployJob = z.infer<typeof deployJobSchema>; | |