archetecture security fix
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import { prisma } from '../../lib/prisma';
|
||||
type DbClient = Pick<typeof prisma, 'company' | 'brandSettings' | 'contractSettings' | 'subscription' | 'employee'>;
|
||||
type CompanySignupInput = {
|
||||
companyName: string;
|
||||
legalName: string;
|
||||
slug: string;
|
||||
ownerEmail: string;
|
||||
companyEmail: string;
|
||||
companyPhone: string;
|
||||
streetAddress: string;
|
||||
city: string;
|
||||
country: string;
|
||||
zipCode: string;
|
||||
legalForm: string;
|
||||
managerName: string;
|
||||
iceNumber: string;
|
||||
taxId: string;
|
||||
operatingLicenseNumber: string;
|
||||
operatingLicenseIssuedAt: string;
|
||||
operatingLicenseIssuedBy: string;
|
||||
fax?: string;
|
||||
yearsActive: string;
|
||||
representativeName?: string;
|
||||
representativeTitle?: string;
|
||||
responsibleName: string;
|
||||
responsibleRole: string;
|
||||
responsibleIdentityNumber: string;
|
||||
responsibleQualification?: string;
|
||||
responsiblePhone: string;
|
||||
responsibleEmail: string;
|
||||
currency: 'MAD';
|
||||
registrationNumber: string;
|
||||
plan: 'STARTER' | 'GROWTH' | 'PRO';
|
||||
billingPeriod: 'MONTHLY' | 'ANNUAL';
|
||||
preferredLanguage: 'en' | 'fr' | 'ar';
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
passwordHash: string;
|
||||
now: Date;
|
||||
trialEndAt: Date;
|
||||
};
|
||||
export declare function findCompanyBySlug(slug: string): any;
|
||||
export declare function findCompanyByEmail(email: string): any;
|
||||
export declare function findEmployeeByEmail(email: string): any;
|
||||
export declare function createCompanySignup(db: DbClient, input: CompanySignupInput): Promise<{
|
||||
company: any;
|
||||
employee: any;
|
||||
}>;
|
||||
export {};
|
||||
//# sourceMappingURL=auth.company.repo.d.ts.map
|
||||
Reference in New Issue
Block a user