archetecture security fix
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.companySignupSchema = void 0;
|
||||
const zod_1 = require("zod");
|
||||
exports.companySignupSchema = zod_1.z.object({
|
||||
firstName: zod_1.z.string().min(1).max(80),
|
||||
lastName: zod_1.z.string().min(1).max(80),
|
||||
email: zod_1.z.string().email(),
|
||||
password: zod_1.z.string().min(8).max(128),
|
||||
companyName: zod_1.z.string().min(2).max(120),
|
||||
legalName: zod_1.z.string().min(2).max(160),
|
||||
legalForm: zod_1.z.string().min(1).max(80),
|
||||
registrationNumber: zod_1.z.string().min(1).max(120),
|
||||
iceNumber: zod_1.z.string().min(1).max(120),
|
||||
taxId: zod_1.z.string().min(1).max(120),
|
||||
operatingLicenseNumber: zod_1.z.string().min(1).max(120),
|
||||
operatingLicenseIssuedAt: zod_1.z.string().min(1).max(40),
|
||||
operatingLicenseIssuedBy: zod_1.z.string().min(1).max(160),
|
||||
streetAddress: zod_1.z.string().min(1).max(200),
|
||||
city: zod_1.z.string().min(1).max(120),
|
||||
country: zod_1.z.string().min(1).max(120),
|
||||
zipCode: zod_1.z.string().min(1).max(40),
|
||||
companyPhone: zod_1.z.string().min(1).max(80),
|
||||
companyEmail: zod_1.z.string().email(),
|
||||
fax: zod_1.z.string().max(80).optional(),
|
||||
yearsActive: zod_1.z.string().min(1).max(80),
|
||||
representativeName: zod_1.z.string().max(160).optional(),
|
||||
representativeTitle: zod_1.z.string().max(120).optional(),
|
||||
responsibleName: zod_1.z.string().min(1).max(160),
|
||||
responsibleRole: zod_1.z.string().min(1).max(120),
|
||||
responsibleIdentityNumber: zod_1.z.string().min(1).max(120),
|
||||
responsibleQualification: zod_1.z.string().max(200).optional(),
|
||||
responsiblePhone: zod_1.z.string().min(1).max(80),
|
||||
responsibleEmail: zod_1.z.string().email(),
|
||||
preferredLanguage: zod_1.z.enum(['en', 'fr', 'ar']).default('en'),
|
||||
plan: zod_1.z.enum(['STARTER', 'GROWTH', 'PRO']),
|
||||
billingPeriod: zod_1.z.enum(['MONTHLY', 'ANNUAL']),
|
||||
currency: zod_1.z.literal('MAD'),
|
||||
paymentProvider: zod_1.z.enum(['AMANPAY', 'PAYPAL']),
|
||||
});
|
||||
//# sourceMappingURL=auth.company.schemas.js.map
|
||||
Reference in New Issue
Block a user