UNPKG

isoxml-angular

Version:

JavaScript library to parse and generate ISOXML (ISO11783-10) files

35 lines (34 loc) 1.28 kB
import { ISOXMLManager } from "../ISOXMLManager"; import { XMLElement } from "../types"; import { TAGS } from "./constants"; import { AllocationStamp } from "./AllocationStamp"; import { Entity, EntityConstructor, ISOXMLReference } from "../types"; export declare const enum ProductAllocationTransferModeEnum { Filling = "1", Emptying = "2", Remainder = "3" } export type ProductAllocationAttributes = { ProductIdRef: ISOXMLReference; QuantityDDI?: string; QuantityValue?: number; TransferMode?: ProductAllocationTransferModeEnum; DeviceElementIdRef?: ISOXMLReference; ValuePresentationIdRef?: ISOXMLReference; ProductSubTypeIdRef?: ISOXMLReference; AllocationStamp?: AllocationStamp[]; ProprietaryAttributes?: { [name: string]: string; }; ProprietaryTags?: { [tag: string]: XMLElement[]; }; }; export declare class ProductAllocation implements Entity { attributes: ProductAllocationAttributes; isoxmlManager: ISOXMLManager; tag: TAGS; constructor(attributes: ProductAllocationAttributes, isoxmlManager: ISOXMLManager); static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>; toXML(): XMLElement; }