UNPKG

@golemio/pid

Version:
17 lines (16 loc) 788 B
import { ICommonRunsMessageProperties } from "../interfaces/CommonRunsMessageInterfaces"; import { ICommonRunHelper, ICommonRunIdentifiers } from "./interfaces/ICommonRunHelper"; export declare class CommonRunHelper implements ICommonRunHelper { private logger; constructor(); /** * @returns {ICommonRunIdentifiers | null} commonRunIdentifiers * { runId: "123_456_789_2020-01-01T00:00:00Z", routeId: "123", runNumber: "456" } */ getRunIdentifiers(properties: ICommonRunsMessageProperties, msgTimestamp: string): ICommonRunIdentifiers | null; /** * @param {string} utcTimestamp - "2022-03-27T12:04:38" * @returns {Date | null} dateObject - Date(2022-03-27T12:04:38.000Z) */ parseDateFromRunInput(utcTimestamp: string): Date | null; }