isoxml-angular
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
33 lines (32 loc) • 1.06 kB
TypeScript
import { TAGS } from './constants';
import { ISOXMLManager } from '../ISOXMLManager';
import { XMLElement } from '../types';
import { Entity, EntityConstructor } from '../types';
export type WorkerAttributes = {
WorkerLastName: string;
WorkerFirstName?: string;
WorkerStreet?: string;
WorkerPOBox?: string;
WorkerPostalCode?: string;
WorkerCity?: string;
WorkerState?: string;
WorkerCountry?: string;
WorkerPhone?: string;
WorkerMobile?: string;
WorkerLicenseNumber?: string;
WorkerEMail?: string;
ProprietaryAttributes?: {
[name: string]: string;
};
ProprietaryTags?: {
[tag: string]: XMLElement[];
};
};
export declare class Worker implements Entity {
attributes: WorkerAttributes;
isoxmlManager: ISOXMLManager;
tag: TAGS;
constructor(attributes: WorkerAttributes, isoxmlManager: ISOXMLManager);
static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>;
toXML(): XMLElement;
}