- Mark backend as complete in IMPLEMENTATION_PLAN.md - Create ADMIN_BACKEND_COMPLETE.md with full documentation - Document all API endpoints - Add testing instructions - Add deployment notes
55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
import { PrismaService } from '../prisma/prisma.service';
|
|
export declare class AdminConfigService {
|
|
private readonly prisma;
|
|
constructor(prisma: PrismaService);
|
|
findAll(category?: string): Promise<{
|
|
category: string;
|
|
id: string;
|
|
updatedAt: Date;
|
|
type: string;
|
|
value: string;
|
|
description: string | null;
|
|
key: string;
|
|
label: string;
|
|
isSecret: boolean;
|
|
updatedBy: string | null;
|
|
}[]>;
|
|
findOne(key: string): Promise<{
|
|
category: string;
|
|
id: string;
|
|
updatedAt: Date;
|
|
type: string;
|
|
value: string;
|
|
description: string | null;
|
|
key: string;
|
|
label: string;
|
|
isSecret: boolean;
|
|
updatedBy: string | null;
|
|
} | null>;
|
|
upsert(key: string, data: any, updatedBy: string): Promise<{
|
|
category: string;
|
|
id: string;
|
|
updatedAt: Date;
|
|
type: string;
|
|
value: string;
|
|
description: string | null;
|
|
key: string;
|
|
label: string;
|
|
isSecret: boolean;
|
|
updatedBy: string | null;
|
|
}>;
|
|
delete(key: string): Promise<{
|
|
category: string;
|
|
id: string;
|
|
updatedAt: Date;
|
|
type: string;
|
|
value: string;
|
|
description: string | null;
|
|
key: string;
|
|
label: string;
|
|
isSecret: boolean;
|
|
updatedBy: string | null;
|
|
}>;
|
|
getByCategory(): Promise<Record<string, any[]>>;
|
|
}
|