build: add TypeScript configuration and generate declaration files

- Add tsconfig.json for TypeScript compilation with declaration and source map generation
- Generate .d.ts declaration files for all modules, services, controllers, and models
- Update package.json with NestJS dependencies and TypeScript development tools
- Include database files in the distribution output for persistence
This commit is contained in:
Jp
2026-01-31 09:00:26 +08:00
parent 0fa0343798
commit f521970a65
174 changed files with 7205 additions and 1633 deletions

26
dist/models/user.model.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
import { Model } from 'sequelize-typescript';
import { Meal } from './meal.model';
import { WeightLog } from './weight-log.model';
import { WaterLog } from './water-log.model';
import { MealPlan } from './meal-plan.model';
import { UserGoal } from './user-goal.model';
import { DailySummary } from './daily-summary.model';
export declare class User extends Model {
username: string;
password: string;
name: string;
age: number;
gender: string;
height_cm: number;
weight_kg: number;
activity_level: string;
target_daily_calories: number;
meals: Meal[];
weightLogs: WeightLog[];
waterLogs: WaterLog[];
mealPlans: MealPlan[];
goal: UserGoal;
dailySummaries: DailySummary[];
validPassword(password: string): boolean;
static hashPassword(user: User): Promise<void>;
}