opencrm/backend/dist/services/platform.service.d.ts

52 lines
1.2 KiB
TypeScript

export declare function getAllPlatforms(includeInactive?: boolean): Promise<{
id: number;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
name: string;
contactInfo: string | null;
}[]>;
export declare function getPlatformById(id: number): Promise<({
_count: {
contracts: number;
};
} & {
id: number;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
name: string;
contactInfo: string | null;
}) | null>;
export declare function createPlatform(data: {
name: string;
contactInfo?: string;
}): Promise<{
id: number;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
name: string;
contactInfo: string | null;
}>;
export declare function updatePlatform(id: number, data: {
name?: string;
contactInfo?: string;
isActive?: boolean;
}): Promise<{
id: number;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
name: string;
contactInfo: string | null;
}>;
export declare function deletePlatform(id: number): Promise<{
id: number;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
name: string;
contactInfo: string | null;
}>;
//# sourceMappingURL=platform.service.d.ts.map