Files
alrahma_sunday_school_api/apps/api/dist/tests/helpers/fixtures.d.ts
T
2026-06-11 03:22:12 -04:00

38 lines
2.0 KiB
TypeScript

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