isoxml-angular
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
31 lines (30 loc) • 1.09 kB
TypeScript
import { ISOXMLManager } from "../ISOXMLManager";
import { XMLElement } from "../types";
import { TAGS } from "./constants";
import { Entity, EntityConstructor } from "../types";
export declare const enum AttachedFilePreserveEnum {
TaskControllerDoesNotNeedToPreserveAttachedFile = "1",
PreserveOnTaskControllerAndSendBackToFMIS = "2"
}
export type AttachedFileAttributes = {
FilenameWithExtension: string;
Preserve: AttachedFilePreserveEnum;
ManufacturerGLN: string;
FileType: number;
FileVersion?: string;
FileLength?: number;
ProprietaryAttributes?: {
[name: string]: string;
};
ProprietaryTags?: {
[tag: string]: XMLElement[];
};
};
export declare class AttachedFile implements Entity {
attributes: AttachedFileAttributes;
isoxmlManager: ISOXMLManager;
tag: TAGS;
constructor(attributes: AttachedFileAttributes, isoxmlManager: ISOXMLManager);
static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>;
toXML(): XMLElement;
}