isoxml
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
35 lines (34 loc) • 1.27 kB
TypeScript
import { TAGS } from './constants';
import { ISOXMLManager } from '../ISOXMLManager';
import { XMLElement } from '../types';
import { AllocationStamp } from './AllocationStamp';
import { Entity, EntityConstructor, ISOXMLReference } from '../types';
export declare 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;
}