Trendsic Platform Service

<back to all web services

InspectorDailyReportRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/inspections/idr
"use strict";
export class IdrLine {
    /** @param {{Label?:string,Detail?:string,Qty?:number,Unit?:string,Hours?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Label;
    /** @type {string} */
    Detail;
    /** @type {?number} */
    Qty;
    /** @type {string} */
    Unit;
    /** @type {?number} */
    Hours;
}
export class InspectionPhoto {
    /** @param {{AttachmentId?:string,FileName?:string,Url?:string,CreatedBy?:string,CreatedDate?:string,HasAnnotation?:boolean,AnnotatedAttachmentId?:string,AnnotatedUrl?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AttachmentId;
    /** @type {string} */
    FileName;
    /** @type {string} */
    Url;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedDate;
    /** @type {boolean} */
    HasAnnotation;
    /** @type {?string} */
    AnnotatedAttachmentId;
    /** @type {string} */
    AnnotatedUrl;
}
export class InspectionItem {
    /** @param {{InspectionItemID?:number,InspectionID?:number,Seq?:number,Section?:string,Prompt?:string,ResponseType?:string,IsRequired?:boolean,Unit?:string,Guidance?:string,Result?:string,Value?:string,Notes?:string,PhotoCount?:number,LinkedPunchItemID?:number,LinkedPunchNo?:string,LinkedPunchStatus?:string,LinkedNcrID?:number,LinkedNcrNo?:string,LinkedActionID?:number,AnsweredBy?:string,AnsweredAt?:string,Photos?:InspectionPhoto[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    InspectionItemID;
    /** @type {number} */
    InspectionID;
    /** @type {number} */
    Seq;
    /** @type {string} */
    Section;
    /** @type {string} */
    Prompt;
    /** @type {string} */
    ResponseType;
    /** @type {boolean} */
    IsRequired;
    /** @type {string} */
    Unit;
    /** @type {string} */
    Guidance;
    /** @type {string} */
    Result;
    /** @type {string} */
    Value;
    /** @type {string} */
    Notes;
    /** @type {number} */
    PhotoCount;
    /** @type {?number} */
    LinkedPunchItemID;
    /** @type {string} */
    LinkedPunchNo;
    /** @type {string} */
    LinkedPunchStatus;
    /** @type {?number} */
    LinkedNcrID;
    /** @type {string} */
    LinkedNcrNo;
    /** @type {?number} */
    LinkedActionID;
    /** @type {string} */
    AnsweredBy;
    /** @type {?string} */
    AnsweredAt;
    /** @type {InspectionPhoto[]} */
    Photos = [];
}
export class InspectionRequest {
    /** @param {{InspectionRequestID?:number,InspectionID?:number,Agency?:string,ContactName?:string,ContactPhone?:string,PermitNo?:string,RequestedDate?:string,RequestedWindow?:string,Status?:string,ConfirmationNo?:string,Outcome?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    InspectionRequestID;
    /** @type {number} */
    InspectionID;
    /** @type {string} */
    Agency;
    /** @type {string} */
    ContactName;
    /** @type {string} */
    ContactPhone;
    /** @type {string} */
    PermitNo;
    /** @type {?string} */
    RequestedDate;
    /** @type {string} */
    RequestedWindow;
    /** @type {string} */
    Status;
    /** @type {string} */
    ConfirmationNo;
    /** @type {string} */
    Outcome;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    UpdatedAt;
}
export class SignatureRecord {
    /** @param {{SignatureRecordID?:number,EntityType?:string,EntityID?:number,Role?:string,SignerName?:string,SignerContactID?:number,SignerUserId?:string,Method?:string,ImageAttachmentId?:string,ImageUrl?:string,ImageHash?:string,DocumentHash?:string,ConsentText?:string,IpAddress?:string,UserAgent?:string,SignedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    SignatureRecordID;
    /** @type {string} */
    EntityType;
    /** @type {number} */
    EntityID;
    /** @type {string} */
    Role;
    /** @type {string} */
    SignerName;
    /** @type {?number} */
    SignerContactID;
    /** @type {string} */
    SignerUserId;
    /** @type {string} */
    Method;
    /** @type {?string} */
    ImageAttachmentId;
    /** @type {string} */
    ImageUrl;
    /** @type {string} */
    ImageHash;
    /** @type {string} */
    DocumentHash;
    /** @type {string} */
    ConsentText;
    /** @type {string} */
    IpAddress;
    /** @type {string} */
    UserAgent;
    /** @type {?string} */
    SignedAt;
}
export class Inspection {
    /** @param {{InspectionID?:number,InspectionUID?:string,ProjectID?:number,ProjectName?:string,JobID?:number,JobName?:string,InspectionNo?:string,Type?:string,Title?:string,Status?:string,TemplateUID?:string,TemplateVersionNo?:number,ScheduledFor?:string,StartedAt?:string,CompletedAt?:string,ClosedAt?:string,InspectorContactID?:number,InspectorName?:string,AgencyName?:string,PermitNo?:string,LocationText?:string,Notes?:string,WeatherJson?:string,ItemsTotal?:number,ItemsPassed?:number,ItemsFailed?:number,Outcome?:string,OutcomeNotes?:string,ReinspectionOfInspectionID?:number,QcHoldPointID?:number,ReportAttachmentId?:string,RequestCount?:number,SignatureCount?:number,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,Items?:InspectionItem[],Requests?:InspectionRequest[],Signatures?:SignatureRecord[],Actions?:string[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    InspectionID;
    /** @type {string} */
    InspectionUID;
    /** @type {number} */
    ProjectID;
    /** @type {string} */
    ProjectName;
    /** @type {?number} */
    JobID;
    /** @type {string} */
    JobName;
    /** @type {string} */
    InspectionNo;
    /** @type {string} */
    Type;
    /** @type {string} */
    Title;
    /** @type {string} */
    Status;
    /** @type {?string} */
    TemplateUID;
    /** @type {?number} */
    TemplateVersionNo;
    /** @type {?string} */
    ScheduledFor;
    /** @type {?string} */
    StartedAt;
    /** @type {?string} */
    CompletedAt;
    /** @type {?string} */
    ClosedAt;
    /** @type {?number} */
    InspectorContactID;
    /** @type {string} */
    InspectorName;
    /** @type {string} */
    AgencyName;
    /** @type {string} */
    PermitNo;
    /** @type {string} */
    LocationText;
    /** @type {string} */
    Notes;
    /** @type {string} */
    WeatherJson;
    /** @type {number} */
    ItemsTotal;
    /** @type {number} */
    ItemsPassed;
    /** @type {number} */
    ItemsFailed;
    /** @type {string} */
    Outcome;
    /** @type {string} */
    OutcomeNotes;
    /** @type {?number} */
    ReinspectionOfInspectionID;
    /** @type {?number} */
    QcHoldPointID;
    /** @type {?string} */
    ReportAttachmentId;
    /** @type {number} */
    RequestCount;
    /** @type {number} */
    SignatureCount;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    UpdatedAt;
    /** @type {InspectionItem[]} */
    Items = [];
    /** @type {InspectionRequest[]} */
    Requests = [];
    /** @type {SignatureRecord[]} */
    Signatures = [];
    /** @type {string[]} */
    Actions = [];
}
export class InspectorDailyReportResponse {
    /** @param {{ResponseStatus?:ResponseStatus,ProjectID?:number,ProjectName?:string,ReportDate?:string,CompanyName?:string,Weather?:string,TempF?:number,WeatherDelayHours?:number,HasFieldLog?:boolean,FieldLogStatus?:string,FieldLogSubmittedBy?:string,Notes?:string,Crew?:IdrLine[],Subs?:IdrLine[],Equipment?:IdrLine[],Quantities?:IdrLine[],Deliveries?:IdrLine[],Incidents?:IdrLine[],CrewHoursTotal?:number,Inspections?:Inspection[],Signatures?:SignatureRecord[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {number} */
    ProjectID;
    /** @type {string} */
    ProjectName;
    /** @type {string} */
    ReportDate;
    /** @type {string} */
    CompanyName;
    /** @type {string} */
    Weather;
    /** @type {?number} */
    TempF;
    /** @type {?number} */
    WeatherDelayHours;
    /** @type {boolean} */
    HasFieldLog;
    /** @type {string} */
    FieldLogStatus;
    /** @type {string} */
    FieldLogSubmittedBy;
    /** @type {string} */
    Notes;
    /** @type {IdrLine[]} */
    Crew = [];
    /** @type {IdrLine[]} */
    Subs = [];
    /** @type {IdrLine[]} */
    Equipment = [];
    /** @type {IdrLine[]} */
    Quantities = [];
    /** @type {IdrLine[]} */
    Deliveries = [];
    /** @type {IdrLine[]} */
    Incidents = [];
    /** @type {number} */
    CrewHoursTotal;
    /** @type {Inspection[]} */
    Inspections = [];
    /** @type {SignatureRecord[]} */
    Signatures = [];
}
export class InspectorDailyReportRequest {
    /** @param {{ProjectID?:number,Date?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ProjectID;
    /** @type {string} */
    Date;
}

JavaScript InspectorDailyReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/projects/{ProjectID}/inspections/idr HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InspectorDailyReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CompanyName>String</CompanyName>
  <Crew>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Crew>
  <CrewHoursTotal>0</CrewHoursTotal>
  <Deliveries>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Deliveries>
  <Equipment>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Equipment>
  <FieldLogStatus>String</FieldLogStatus>
  <FieldLogSubmittedBy>String</FieldLogSubmittedBy>
  <HasFieldLog>false</HasFieldLog>
  <Incidents>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Incidents>
  <Inspections>
    <Inspection>
      <Actions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Actions>
      <AgencyName>String</AgencyName>
      <ClosedAt>0001-01-01T00:00:00</ClosedAt>
      <CompletedAt>0001-01-01T00:00:00</CompletedAt>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <InspectionID>0</InspectionID>
      <InspectionNo>String</InspectionNo>
      <InspectionUID>00000000-0000-0000-0000-000000000000</InspectionUID>
      <InspectorContactID>0</InspectorContactID>
      <InspectorName>String</InspectorName>
      <Items>
        <InspectionItem>
          <AnsweredAt>0001-01-01T00:00:00</AnsweredAt>
          <AnsweredBy>String</AnsweredBy>
          <Guidance>String</Guidance>
          <InspectionID>0</InspectionID>
          <InspectionItemID>0</InspectionItemID>
          <IsRequired>false</IsRequired>
          <LinkedActionID>0</LinkedActionID>
          <LinkedNcrID>0</LinkedNcrID>
          <LinkedNcrNo>String</LinkedNcrNo>
          <LinkedPunchItemID>0</LinkedPunchItemID>
          <LinkedPunchNo>String</LinkedPunchNo>
          <LinkedPunchStatus>String</LinkedPunchStatus>
          <Notes>String</Notes>
          <PhotoCount>0</PhotoCount>
          <Photos>
            <InspectionPhoto>
              <AnnotatedAttachmentId>00000000-0000-0000-0000-000000000000</AnnotatedAttachmentId>
              <AnnotatedUrl>String</AnnotatedUrl>
              <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
              <CreatedBy>String</CreatedBy>
              <CreatedDate>0001-01-01T00:00:00</CreatedDate>
              <FileName>String</FileName>
              <HasAnnotation>false</HasAnnotation>
              <Url>String</Url>
            </InspectionPhoto>
          </Photos>
          <Prompt>String</Prompt>
          <ResponseType>String</ResponseType>
          <Result>String</Result>
          <Section>String</Section>
          <Seq>0</Seq>
          <Unit>String</Unit>
          <Value>String</Value>
        </InspectionItem>
      </Items>
      <ItemsFailed>0</ItemsFailed>
      <ItemsPassed>0</ItemsPassed>
      <ItemsTotal>0</ItemsTotal>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <LocationText>String</LocationText>
      <Notes>String</Notes>
      <Outcome>String</Outcome>
      <OutcomeNotes>String</OutcomeNotes>
      <PermitNo>String</PermitNo>
      <ProjectID>0</ProjectID>
      <ProjectName>String</ProjectName>
      <QcHoldPointID>0</QcHoldPointID>
      <ReinspectionOfInspectionID>0</ReinspectionOfInspectionID>
      <ReportAttachmentId>00000000-0000-0000-0000-000000000000</ReportAttachmentId>
      <RequestCount>0</RequestCount>
      <Requests>
        <InspectionRequest>
          <Agency>String</Agency>
          <ConfirmationNo>String</ConfirmationNo>
          <ContactName>String</ContactName>
          <ContactPhone>String</ContactPhone>
          <CreatedAt>0001-01-01T00:00:00</CreatedAt>
          <CreatedBy>String</CreatedBy>
          <InspectionID>0</InspectionID>
          <InspectionRequestID>0</InspectionRequestID>
          <Outcome>String</Outcome>
          <PermitNo>String</PermitNo>
          <RequestedDate>0001-01-01T00:00:00</RequestedDate>
          <RequestedWindow>String</RequestedWindow>
          <Status>String</Status>
          <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
        </InspectionRequest>
      </Requests>
      <ScheduledFor>0001-01-01T00:00:00</ScheduledFor>
      <SignatureCount>0</SignatureCount>
      <Signatures>
        <SignatureRecord>
          <ConsentText>String</ConsentText>
          <DocumentHash>String</DocumentHash>
          <EntityID>0</EntityID>
          <EntityType>String</EntityType>
          <ImageAttachmentId>00000000-0000-0000-0000-000000000000</ImageAttachmentId>
          <ImageHash>String</ImageHash>
          <ImageUrl>String</ImageUrl>
          <IpAddress>String</IpAddress>
          <Method>String</Method>
          <Role>String</Role>
          <SignatureRecordID>0</SignatureRecordID>
          <SignedAt>0001-01-01T00:00:00</SignedAt>
          <SignerContactID>0</SignerContactID>
          <SignerName>String</SignerName>
          <SignerUserId>String</SignerUserId>
          <UserAgent>String</UserAgent>
        </SignatureRecord>
      </Signatures>
      <StartedAt>0001-01-01T00:00:00</StartedAt>
      <Status>String</Status>
      <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
      <TemplateVersionNo>0</TemplateVersionNo>
      <Title>String</Title>
      <Type>String</Type>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WeatherJson>String</WeatherJson>
    </Inspection>
  </Inspections>
  <Notes>String</Notes>
  <ProjectID>0</ProjectID>
  <ProjectName>String</ProjectName>
  <Quantities>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Quantities>
  <ReportDate>0001-01-01T00:00:00</ReportDate>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Signatures>
    <SignatureRecord>
      <ConsentText>String</ConsentText>
      <DocumentHash>String</DocumentHash>
      <EntityID>0</EntityID>
      <EntityType>String</EntityType>
      <ImageAttachmentId>00000000-0000-0000-0000-000000000000</ImageAttachmentId>
      <ImageHash>String</ImageHash>
      <ImageUrl>String</ImageUrl>
      <IpAddress>String</IpAddress>
      <Method>String</Method>
      <Role>String</Role>
      <SignatureRecordID>0</SignatureRecordID>
      <SignedAt>0001-01-01T00:00:00</SignedAt>
      <SignerContactID>0</SignerContactID>
      <SignerName>String</SignerName>
      <SignerUserId>String</SignerUserId>
      <UserAgent>String</UserAgent>
    </SignatureRecord>
  </Signatures>
  <Subs>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Subs>
  <TempF>0</TempF>
  <Weather>String</Weather>
  <WeatherDelayHours>0</WeatherDelayHours>
</InspectorDailyReportResponse>