Add modular admin CRUD UI, fix MikroORM migrations/config and update static admin routing

This commit is contained in:
2026-03-18 16:52:05 -03:00
parent 56a926b10b
commit 9e60600a5d
19 changed files with 1921 additions and 563 deletions

View File

@@ -1,7 +1,25 @@
import { GiftService } from '../gift/services/gift.service';
import { GuestService } from '../guest/services/guest.service';
import { TodoService } from '../todo/services/todo.service';
import { ModuleRegistryService } from '../core/services/module-registry.service';
export declare class AdminController {
private readonly moduleRegistry;
constructor(moduleRegistry: ModuleRegistryService);
private readonly guestService;
private readonly giftService;
private readonly todoService;
constructor(moduleRegistry: ModuleRegistryService, guestService: GuestService, giftService: GiftService, todoService: TodoService);
getModules(): import("../core/services/module-registry.service").AdminModuleInfo[];
private getTenantId;
listGuests(tenantId?: string): Promise<import("../guest/entities/guest.entity").Guest[]>;
createGuest(tenantId: string, body: any): Promise<import("../guest/entities/guest.entity").Guest>;
updateGuestRsvp(tenantId: string, id: string, body: any): Promise<import("../guest/entities/guest.entity").Guest | null>;
listTodos(tenantId?: string): Promise<import("../todo/entities/todo.entity").TodoItem[]>;
createTodo(tenantId: string, body: Record<string, any>): Promise<import("../todo/entities/todo.entity").TodoItem>;
completeTodo(tenantId: string, id: string): Promise<import("../todo/entities/todo.entity").TodoItem | null>;
listGifts(tenantId?: string): Promise<import("../gift/entities/gift.entity").Gift[]>;
createGift(tenantId: string, body: any): Promise<import("../gift/entities/gift.entity").Gift>;
getGift(tenantId: string, id: string): Promise<import("../gift/entities/gift.entity").Gift | null>;
createContribution(tenantId: string, id: string, body: any): Promise<import("../gift/entities/gift.entity").GiftContribution>;
listContributions(tenantId: string, id: string): Promise<import("../gift/entities/gift.entity").GiftContribution[]>;
}
//# sourceMappingURL=admin.controller.d.ts.map