/* Options: Date: 2026-04-04 02:56:51 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddAttachments.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class MediaModel { public MediaFileId: string; public MediaName: string; public FileContent: string; public FileContentType: string; public FilePath: string; public OriginalFileName: string; public ImageWidth: number; public ImageHeight: number; public FileSizeKB: number; public BlobUriRaw: string; public BlobUriFull: string; public BlobUriThumbnail: string; public WatermarkUri: string; public CapturedDate: string; public CapturedByContactId?: string; public CapturedByContactName: string; public CapturedByContactThumbnailUrl: string; public Notes: string; public ResourceActionName: string; public LocationVerified: string; public TrafficLightLocationVerified: string; public AudienceLevel: string; public WorksFor: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AddAttachmentsResponse { public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/attachments", "POST") export class AddAttachments implements IReturn { /** @description including file content, file type, content type and connected object. */ // @ApiMember(DataType="string", Description=" including file content, file type, content type and connected object.", Name="Files", ParameterType="query") public Files: MediaModel[]; /** @description Appliance from which primary image file is to be uploaded. */ // @ApiMember(DataType="Guid", Description="Appliance from which primary image file is to be uploaded.", IsRequired=true, Name="ApplianceId") public ApplianceId: string; /** @description Object for which primary image is to be uploaded. */ // @ApiMember(DataType="Guid", Description="Object for which primary image is to be uploaded.", IsRequired=true, Name="ConnectedObjectId") public ConnectedObjectId: string; /** @description Licensee Id of the Object owner for which primary image is to be uploaded. */ // @ApiMember(DataType="Guid", Description="Licensee Id of the Object owner for which primary image is to be uploaded.", IsRequired=true, Name="ConnectedObjectLicenseeId") public ConnectedObjectLicenseeId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AddAttachments'; } public getMethod() { return 'POST'; } public createResponse() { return new AddAttachmentsResponse(); } }