690328:1328 Fixing Refactor uuid by Kimi #08
CI / CD Pipeline / build (push) Successful in 7m22s
CI / CD Pipeline / deploy (push) Failing after 12m2s

This commit is contained in:
2026-03-28 13:29:14 +07:00
parent 3510a10ca0
commit 3f78f0ec00
18335 changed files with 1075592 additions and 1 deletions
+18
View File
@@ -14,3 +14,21 @@ export interface Contract {
endDate?: string;
project?: ContractProjectReference;
}
/**
* Safely extract publicId from a Contract object (ADR-019)
* @param contract - Contract object or null/undefined
* @returns publicId string or undefined
*/
export function getContractPublicId(contract: Contract | null | undefined): string | undefined {
return contract?.publicId;
}
/**
* Safely extract publicId from a Project reference object (ADR-019)
* @param project - Project reference object or null/undefined
* @returns publicId string or undefined
*/
export function getProjectPublicId(project: ContractProjectReference | null | undefined): string | undefined {
return project?.publicId;
}