UNPKG

@azure-utils/storybooks

Version:

Utils to upload and manage Storybooks via Azure Functions and storage.

25 lines (23 loc) 768 B
import { PATTERNS } from "./constants-CsV1N9r4.mjs"; import z from "zod"; //#region src/models/shared.ts /** @private */ const ProjectIdSchema = z.string().refine((val) => new RegExp(PATTERNS.projectId.pattern).test(val), PATTERNS.projectId.message).meta({ id: "projectId", description: "The ID of the project." }); /** @private */ const BuildSHASchema = z.string().check(z.minLength(7)).meta({ id: "buildSHA", description: "The SHA of the build." }); /** @private */ const LabelSlugSchema = z.string().meta({ id: "labelSlug", description: "The slug of the label." }); /** @private */ const EmptyObjectSchema = z.object(); //#endregion export { BuildSHASchema, EmptyObjectSchema, LabelSlugSchema, ProjectIdSchema }; //# sourceMappingURL=shared-BAE3ceND.mjs.map