Compare commits
2 Commits
919934e701
...
3f78f0ec00
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f78f0ec00 | |||
| 3510a10ca0 |
@@ -19,6 +19,7 @@ lerna-debug.log*
|
|||||||
# Tests
|
# Tests
|
||||||
/coverage
|
/coverage
|
||||||
/.nyc_output
|
/.nyc_output
|
||||||
|
/.jest-cache
|
||||||
|
|
||||||
# IDEs and editors
|
# IDEs and editors
|
||||||
/.idea
|
/.idea
|
||||||
|
|||||||
@@ -14,3 +14,21 @@ export interface Contract {
|
|||||||
endDate?: string;
|
endDate?: string;
|
||||||
project?: ContractProjectReference;
|
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;
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "nap-dms.lcbp3",
|
"name": "nap-dms.lcbp3",
|
||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
|
"packageManager": "pnpm@10.33.0",
|
||||||
"description": "> **Laem Chabang Port Phase 3 - Document Management System**\r >\r > ระบบบริหารจัดการเอกสารโครงการแบบครบวงจร สำหรับโครงการก่อสร้างท่าเรือแหลมฉบังระยะที่ 3",
|
"description": "> **Laem Chabang Port Phase 3 - Document Management System**\r >\r > ระบบบริหารจัดการเอกสารโครงการแบบครบวงจร สำหรับโครงการก่อสร้างท่าเรือแหลมฉบังระยะที่ 3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Reference in New Issue
Block a user