/* Options: Date: 2026-04-04 04:53:35 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: GetInspectionAutomation.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Eros.Saguna.Common.WebAPIModel.Models; using Eros.Subtle.Canvara.WebAPIModel.ServiceModel; namespace Eros.Saguna.Common.WebAPIModel.Models { public partial class AutoInspectionModel : AutomationModel { /// ///The inspection type for the template. /// [ApiMember(Description="The inspection type for the template.", ParameterType="query")] public virtual Guid InspectionTypeId { get; set; } /// ///The template to base the new inspection on. /// [ApiMember(Description="The template to base the new inspection on.", ParameterType="query")] public virtual Guid InspectionTemplateId { get; set; } /// ///The inspector chosen for this inspection will be a contact linked to the project in this role. If no one matches the description, the inspector is not set. /// [ApiMember(Description="The inspector chosen for this inspection will be a contact linked to the project in this role. If no one matches the description, the inspector is not set. ", ParameterType="query")] public virtual Guid ContactRoleId { get; set; } /// ///If this is true, then if a project inspection for this template already exists, we will not create another inspection. /// [ApiMember(Description="If this is true, then if a project inspection for this template already exists, we will not create another inspection.", ParameterType="query")] public virtual bool IgnoreIfExists { get; set; } } public partial class AutomationModel { /// ///The unique automation Id /// [ApiMember(Description="The unique automation Id", ParameterType="query")] public virtual Guid AutomationId { get; set; } /// ///The automation type Id /// [ApiMember(Description="The automation type Id", ParameterType="query")] public virtual Guid AutomationTypeId { get; set; } /// ///The automation type /// [ApiMember(Description="The automation type", ParameterType="query")] public virtual string AutomationType { get; set; } /// ///The object this automation applies to /// [ApiMember(Description="The object this automation applies to", ParameterType="query")] public virtual Guid ObjectId { get; set; } /// ///The object name this automation applies to /// [ApiMember(Description="The object name this automation applies to", ParameterType="query")] public virtual string ObjectName { get; set; } /// ///The Id of the object type that this automation applies to. /// [ApiMember(Description="The Id of the object type that this automation applies to. ", ParameterType="query")] public virtual Guid RmsTableCtxIdObject { get; set; } /// ///The name of the object type that this automation applies to. /// [ApiMember(Description="The name of the object type that this automation applies to.", ParameterType="query")] public virtual string RmsTableCtxName { get; set; } /// ///A guid list containing the selected system action Id's that trigger this automation. /// [ApiMember(Description="A guid list containing the selected system action Id's that trigger this automation.", ParameterType="query")] public virtual List ActionList { get; set; } /// ///A comma separated string of the selected system action names that trigger this automation. /// [ApiMember(Description="A comma separated string of the selected system action names that trigger this automation.", ParameterType="query")] public virtual string Actions { get; set; } /// ///Name of the automation. /// [ApiMember(Description="Name of the automation.", ParameterType="query")] public virtual string Name { get; set; } /// ///Description of the automation /// [ApiMember(Description="Description of the automation", ParameterType="query")] public virtual string Description { get; set; } /// ///Owner Contact Id /// [ApiMember(Description="Owner Contact Id", ParameterType="query")] public virtual Guid OwnerContactId { get; set; } /// ///Record Status of the automation. /// [ApiMember(Description="Record Status of the automation.", ParameterType="query")] public virtual string RecordStatus { get; set; } } } namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel { /// ///Get details of a specific inspection automation /// [Route("/automation/{AutomationId}/inspection", "GET")] [Api(Description="Get details of a specific inspection automation")] public partial class GetInspectionAutomation : IReturn { /// ///Automation Id. /// [ApiMember(Description="Automation Id.", ParameterType="path")] public virtual Guid AutomationId { get; set; } } [ApiResponse(Description="Returns an inspection automation")] public partial class GetInspectionAutomationResponse { /// ///Inspection Automation /// [ApiMember(Description="Inspection Automation")] public virtual AutoInspectionModel Automation { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } } namespace ServiceStack { [DataContract] public partial class ResponseStatus : IMeta { [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string Message { get; set; } [DataMember(Order=3)] public virtual string StackTrace { get; set; } [DataMember(Order=4)] public virtual List Errors { get; set; } [DataMember(Order=5)] public virtual Dictionary Meta { get; set; } } }