UNPKG

@mos-connection/helper

Version:

Helper functions for the MOS-connection library

31 lines 1.6 kB
import * as XMLBuilder from 'xmlbuilder'; import { IMOSROStory, IMOSItem, IMOSROFullStory, IMOSRunningOrderBase, IMOSRunningOrder, AnyXMLValue } from '@mos-connection/model'; import { ROAck } from './ROAck'; export declare namespace XMLMosROAck { function fromXML(path: string, xml: AnyXMLValue, strict: boolean): ROAck; } export declare namespace XMLRunningOrderBase { function fromXML(path: string, xml: AnyXMLValue, strict: boolean): IMOSRunningOrderBase; function toXML(xmlRo: XMLBuilder.XMLElement, ro: IMOSRunningOrderBase, strict: boolean): void; } export declare namespace XMLRunningOrder { function fromXML(path: string, xml: AnyXMLValue, strict: boolean): IMOSRunningOrder; } export declare namespace XMLROStories { function fromXML(path: string, xmlStories: AnyXMLValue, strict: boolean): IMOSROStory[]; } export declare namespace XMLROStoryBase { function toXML(xmlStory: XMLBuilder.XMLElement, story: IMOSROStory | IMOSROFullStory, strict: boolean): void; } export declare namespace XMLROStory { function fromXML(path: string, xml: AnyXMLValue, strict: boolean): IMOSROStory; function toXML(xmlRoot: XMLBuilder.XMLElement, story: IMOSROStory, strict: boolean): void; } export declare namespace XMLMosItems { function fromXML(path: string, xmlItems: AnyXMLValue, strict: boolean): Array<IMOSItem>; } export declare namespace XMLMosItem { function fromXML(path: string, xml: AnyXMLValue, strict: boolean): IMOSItem; function toXML(root: XMLBuilder.XMLElement, item: IMOSItem, strict: boolean): void; } //# sourceMappingURL=xmlConversion.d.ts.map