52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
export declare function getAllCancellationPeriods(includeInactive?: boolean): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
description: string;
|
|
code: string;
|
|
}[]>;
|
|
export declare function getCancellationPeriodById(id: number): Promise<({
|
|
_count: {
|
|
contracts: number;
|
|
};
|
|
} & {
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
description: string;
|
|
code: string;
|
|
}) | null>;
|
|
export declare function createCancellationPeriod(data: {
|
|
code: string;
|
|
description: string;
|
|
}): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
description: string;
|
|
code: string;
|
|
}>;
|
|
export declare function updateCancellationPeriod(id: number, data: {
|
|
code?: string;
|
|
description?: string;
|
|
isActive?: boolean;
|
|
}): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
description: string;
|
|
code: string;
|
|
}>;
|
|
export declare function deleteCancellationPeriod(id: number): Promise<{
|
|
id: number;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
description: string;
|
|
code: string;
|
|
}>;
|
|
//# sourceMappingURL=cancellation-period.service.d.ts.map
|