Download src/interfaces/repository/IOtpRepository.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IOtpRepository.ts
- Command line
-
hf download hf://spaces/lynfera/api@c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IOtpRepository.ts
-
curl -L -o IOtpRepository.ts https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IOtpRepository.ts
375 Bytes
| import { IOtp, OtpPurposes } from "@/models/Otp.js"; | |
| export interface IOtpRepository { | |
| createOtp(otpObj: Partial<IOtp>): Promise<IOtp>; | |
| getOtp(userId: string, purpose: OtpPurposes): Promise<IOtp | null>; | |
| deleteOtp(userId: string, purpose: OtpPurposes): Promise<number>; | |
| updateOtp(userId: string, purpose: OtpPurposes, updateData: Partial<IOtp>): Promise<IOtp | null>; | |
| } | |