@syngrisi/syngrisi
Version:
Syngrisi - Visual Testing Tool
47 lines (46 loc) • 1.89 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/server/schemas/CreateCheck.shema.ts
var CreateCheck_shema_exports = {};
__export(CreateCheck_shema_exports, {
createCheckParamsSchema: () => createCheckParamsSchema
});
module.exports = __toCommonJS(CreateCheck_shema_exports);
var import_zod = require("zod");
var createCheckParamsSchema = import_zod.z.object({
branch: import_zod.z.string().min(1),
appName: import_zod.z.string().min(1),
suitename: import_zod.z.string().min(1),
testid: import_zod.z.string().regex(/^[a-f0-9]{24}$/),
// Regex for 24 hex characters
name: import_zod.z.string().min(1),
viewport: import_zod.z.string().regex(/^\d+x\d+$/),
// "WidthxHeight" format
browserName: import_zod.z.string().min(1),
browserVersion: import_zod.z.string().min(1),
browserFullVersion: import_zod.z.string(),
os: import_zod.z.string().min(1),
hashcode: import_zod.z.string().length(128)
// Assuming hashcode is always 128 chars length
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createCheckParamsSchema
});
//# sourceMappingURL=CreateCheck.shema.js.map