voyage-and-consumption-mcp-server
Version:
Voyage and consumption management server handling vessel position tracking, ETA monitoring, fuel consumption, lube oil consumption, fresh water production and weather data
16 lines • 447 B
JavaScript
/**
* Parse a document link and extract relevant information
*/
export function parseDocumentLink(link) {
// Parse the document link format: type-id-timestamp
const parts = link.split('-');
if (parts.length !== 3) {
throw new Error('Invalid document link format');
}
return {
documentType: parts[0],
documentId: parts[1],
timestamp: parts[2]
};
}
//# sourceMappingURL=documentParser.js.map