UNPKG

iworks-core-api

Version:

iwroks server api module

125 lines (105 loc) 1.66 kB
/** * Material type */ export interface IMaterialType { id: string; name: string; unit: string; code: string; group: string; created: string; updated: string; status: string; } export interface ISelectMaterialType { /** * ID of the material type */ id: string | undefined; /** * Code of the material type */ code: string | undefined; } /** * Select material. Use one of this properties. */ export interface ISelectMaterial { /** * ID of the material */ id: string | undefined; /** * Code of the material */ code: string | undefined; /** * Modification code of the material */ modificationCode: string | undefined; } /** * Material type */ export interface IMaterialBase { /** * ID of the material */ id: string; /** * The name of the material */ name: string; /** * The description of the description */ description: string; /** * The price of the material */ price: number; /** * The code for the material */ code: string; /** * The modification code */ modificationCode: string; /** * */ imageSrc: string; /** * */ thumbnailSrc: string; /** * */ unit: string; /** * When object is created at */ created: string; /** * When object is updated at */ updated: string; /** * The status of a material */ status: string; } /** * Material type */ export interface IMaterialDb extends IMaterialBase { materialTypeId?: string; } export interface IMaterial extends IMaterialBase { /** * Type of ther material */ materialType?: IMaterialType; }