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:
52
dist/dashboard/dashboard.controller.d.ts
vendored
Normal file
52
dist/dashboard/dashboard.controller.d.ts
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { UtilsService } from '../utils/utils.service';
|
||||
import { UserGoal } from '../models/user-goal.model';
|
||||
import { WeightLog } from '../models/weight-log.model';
|
||||
import { Response } from 'express';
|
||||
export declare class DashboardController {
|
||||
private utilsService;
|
||||
private userGoalModel;
|
||||
private weightLogModel;
|
||||
constructor(utilsService: UtilsService, userGoalModel: typeof UserGoal, weightLogModel: typeof WeightLog);
|
||||
getDashboard(req: any, res: Response): Promise<{
|
||||
user: any;
|
||||
nutrition: {
|
||||
calories: number;
|
||||
protein: number;
|
||||
carbs: number;
|
||||
fat: number;
|
||||
meals: any[];
|
||||
};
|
||||
water: {
|
||||
total_ml: number;
|
||||
logs: {
|
||||
id: any;
|
||||
amount_ml: number;
|
||||
time: string;
|
||||
}[];
|
||||
};
|
||||
goals: UserGoal;
|
||||
weightLogToday: WeightLog;
|
||||
weightChange: any;
|
||||
remaining: {
|
||||
calories: number;
|
||||
protein: number;
|
||||
carbs: number;
|
||||
fat: number;
|
||||
water: number;
|
||||
};
|
||||
macroPercentages: {
|
||||
protein: number;
|
||||
carbs: number;
|
||||
fat: number;
|
||||
};
|
||||
} | {
|
||||
user?: undefined;
|
||||
nutrition?: undefined;
|
||||
water?: undefined;
|
||||
goals?: undefined;
|
||||
weightLogToday?: undefined;
|
||||
weightChange?: undefined;
|
||||
remaining?: undefined;
|
||||
macroPercentages?: undefined;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user