import { IBusinessEntity } from '../Entity'; import { IModuleAssociationsDoc, ModuleProperty } from '../ModuleProperties'; import { IModuleLink, Omit, UUID } from '../SimpleTypes'; export declare enum EAttachmentCondition { PENDING = "PENDING", FAILED = "FAILED", VERIFIED = "VERIFIED", MISSING = "MISSING", DELETED = "DELETED" } export declare const AttachmentModuleProperties: ModuleProperty[]; export interface IAttachment extends IBusinessEntity, IModuleAssociationsDoc { file_name: string; condition: EAttachmentCondition; key: string; icon_url: string; file_type: string; } /** @document */ export interface ICoreAttachment extends Omit { } /** @document */ export interface IUrlAttachment extends Omit { name: string; url: string; file_type: 'URL'; } export interface IDownloadAttachmentDTO { id: UUID; } export interface ISyncAttachmentConditionDTO { attachment_id: UUID; condition: EAttachmentCondition; } export interface IUploadAttachmentDTO extends IModuleLink { file_name: string; content_type: string; } export interface IUploadUrlAttachmentDTO extends IModuleLink { name: string; url: string; } export interface IAttachmentDownloadedDTO { attachment_id: UUID; } export interface IAttachmentConditionSyncedDTO extends ISyncAttachmentConditionDTO { } export interface IAttachmentCreatedDTO extends ICoreAttachment, IModuleLink { } export interface IUrlAttachmentCreatedDTO extends IUrlAttachment, IModuleLink { }