@azure-utils/storybooks
Version:
Utils to upload and manage Storybooks via Azure Functions and storage.
48 lines (46 loc) • 1.34 kB
JavaScript
const require_chunk = require('./chunk-DWy1uDak.cjs');
const require_constants = require('./constants-94H7Co6A.cjs');
const zod = require_chunk.__toESM(require("zod"));
//#region src/models/shared.ts
/** @private */
const ProjectIdSchema = zod.default.string().refine((val) => new RegExp(require_constants.PATTERNS.projectId.pattern).test(val), require_constants.PATTERNS.projectId.message).meta({
id: "projectId",
description: "The ID of the project."
});
/** @private */
const BuildSHASchema = zod.default.string().check(zod.default.minLength(7)).meta({
id: "buildSHA",
description: "The SHA of the build."
});
/** @private */
const LabelSlugSchema = zod.default.string().meta({
id: "labelSlug",
description: "The slug of the label."
});
/** @private */
const EmptyObjectSchema = zod.default.object();
//#endregion
Object.defineProperty(exports, 'BuildSHASchema', {
enumerable: true,
get: function () {
return BuildSHASchema;
}
});
Object.defineProperty(exports, 'EmptyObjectSchema', {
enumerable: true,
get: function () {
return EmptyObjectSchema;
}
});
Object.defineProperty(exports, 'LabelSlugSchema', {
enumerable: true,
get: function () {
return LabelSlugSchema;
}
});
Object.defineProperty(exports, 'ProjectIdSchema', {
enumerable: true,
get: function () {
return ProjectIdSchema;
}
});