first commit
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
export declare function getAllContractCategories(includeInactive?: boolean): Promise<({
|
||||
_count: {
|
||||
contracts: number;
|
||||
};
|
||||
} & {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
})[]>;
|
||||
export declare function getContractCategoryById(id: number): Promise<({
|
||||
_count: {
|
||||
contracts: number;
|
||||
};
|
||||
} & {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
}) | null>;
|
||||
export declare function getContractCategoryByCode(code: string): Promise<{
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
} | null>;
|
||||
interface ContractCategoryCreateData {
|
||||
code: string;
|
||||
name: string;
|
||||
icon?: string;
|
||||
color?: string;
|
||||
sortOrder?: number;
|
||||
isActive?: boolean;
|
||||
}
|
||||
export declare function createContractCategory(data: ContractCategoryCreateData): Promise<{
|
||||
_count: {
|
||||
contracts: number;
|
||||
};
|
||||
} & {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
}>;
|
||||
export declare function updateContractCategory(id: number, data: Partial<ContractCategoryCreateData>): Promise<{
|
||||
_count: {
|
||||
contracts: number;
|
||||
};
|
||||
} & {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
}>;
|
||||
export declare function deleteContractCategory(id: number): Promise<{
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
code: string;
|
||||
icon: string | null;
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
}>;
|
||||
export {};
|
||||
//# sourceMappingURL=contractCategory.service.d.ts.map
|
||||
Reference in New Issue
Block a user