archetecture security fix
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
export declare function createCompanyWithEmployee(overrides?: {
|
||||
role?: 'OWNER' | 'MANAGER' | 'AGENT';
|
||||
companyStatus?: 'ACTIVE' | 'TRIALING' | 'PAST_DUE' | 'SUSPENDED' | 'PENDING';
|
||||
}): Promise<{
|
||||
company: any;
|
||||
employee: any;
|
||||
}>;
|
||||
export declare function createVehicle(companyId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createCustomer(companyId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createRenter(overrides?: {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
email?: string;
|
||||
password?: string;
|
||||
isActive?: boolean;
|
||||
}): Promise<any>;
|
||||
export declare function createAdminUser(overrides?: {
|
||||
email?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
password?: string;
|
||||
role?: 'SUPER_ADMIN' | 'ADMIN' | 'SUPPORT' | 'FINANCE' | 'VIEWER';
|
||||
isActive?: boolean;
|
||||
totpEnabled?: boolean;
|
||||
totpSecret?: string | null;
|
||||
}): Promise<any>;
|
||||
export declare function createReservation(companyId: string, vehicleId: string, customerId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createRentalPayment(companyId: string, reservationId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createSubscriptionInvoice(companyId: string, subscriptionId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createCompanyNotification(companyId: string, employeeId?: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function createRenterNotification(renterId: string, overrides?: Record<string, unknown>): Promise<any>;
|
||||
export declare function signEmployeeToken(employeeId: string, _companyId: string, _role?: string): string;
|
||||
export declare function signAdminToken(adminId: string): string;
|
||||
export declare function signRenterToken(renterId: string): string;
|
||||
export declare function authHeader(token: string): {
|
||||
Authorization: string;
|
||||
};
|
||||
//# sourceMappingURL=fixtures.d.ts.map
|
||||
Reference in New Issue
Block a user