UNPKG

@lyxa.ai/types

Version:

Lyxa type definitions and validation schemas for both frontend and backend

13 lines 856 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserAddressFrontendSchema = void 0; const global_validation_1 = require("./global-validation"); const zod_1 = require("zod"); exports.UserAddressFrontendSchema = zod_1.z.object({ addressLabel: global_validation_1.ZodValidation.string('Address Label', { maxLength: 20, isTrimmed: true }), apartment: global_validation_1.ZodValidation.string('Apt/Suite/Floor', { maxLength: 30, isTrimmed: true }), buildingName: global_validation_1.ZodValidation.string('Building Name', { maxLength: 30, isTrimmed: true }), deliveryOption: global_validation_1.ZodValidation.string('Delivery Option').optional(), instructions: global_validation_1.ZodValidation.string('Instructions', { maxLength: 250 }).optional(), }); //# sourceMappingURL=validation-for-frontend.js.map