Deploy via committed dist: local Nest build, server runs with .env
Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+61
@@ -0,0 +1,61 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { AdminLoginDto, RequestOtpDto, UpdateProfileDto, VerifyOtpDto } from './dto/auth.dto';
|
||||
export declare class AuthService {
|
||||
private readonly prisma;
|
||||
private readonly jwt;
|
||||
private readonly config;
|
||||
constructor(prisma: PrismaService, jwt: JwtService, config: ConfigService);
|
||||
requestOtp(dto: RequestOtpDto): Promise<{
|
||||
success: boolean;
|
||||
message: string;
|
||||
expiresAt: Date;
|
||||
debugCode: string;
|
||||
}>;
|
||||
verifyOtp(dto: VerifyOtpDto): Promise<{
|
||||
accessToken: string;
|
||||
user: {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone: string;
|
||||
nationalId: string | undefined;
|
||||
createdAt: string;
|
||||
};
|
||||
}>;
|
||||
adminLogin(dto: AdminLoginDto): Promise<{
|
||||
accessToken: string;
|
||||
user: {
|
||||
id: string;
|
||||
fullName: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
role: import("@prisma/client").$Enums.AdminRole;
|
||||
};
|
||||
}>;
|
||||
me(userId: string, type: 'customer' | 'admin'): Promise<{
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone: string;
|
||||
nationalId: string | undefined;
|
||||
createdAt: string;
|
||||
} | {
|
||||
id: string;
|
||||
fullName: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
role: import("@prisma/client").$Enums.AdminRole;
|
||||
}>;
|
||||
updateProfile(userId: string, dto: UpdateProfileDto): Promise<{
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
phone: string;
|
||||
nationalId: string | undefined;
|
||||
createdAt: string;
|
||||
}>;
|
||||
private signCustomerToken;
|
||||
private mapCustomer;
|
||||
}
|
||||
Reference in New Issue
Block a user