Constructor
new ShiftSummaryReportModel(siteId)
ShiftSummaryReportModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Shift Summary Report
Source
Members
createdTimestampDate
When this Summary Report was Created
Type
-
Date
Source
deletedboolean
Whether the Shift Summary Report has been deleted
Type
-
boolean
Source
emailContactsArray.<{email: string, firstName: string, lastName: string}>
An Array of Email Contacts that were sent this Summary Report
Type
-
Array.<{email: string, firstName: string, lastName: string}>
Source
idstring
The Shift Summary Report ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Summary Report is associated with
Type
-
string
Source
pdfReportContentstring
The Base64 Encoded PDF Report
Type
-
string
Source
pdfReportFileNamestring
The Filename that should be used with the PDF Report
Type
-
string
Source
sendGridApiObject
The SendGrid API Status indicating progress when sending emails
Type
-
Object
Source
shiftIdstring
The Shift ID this Summary Report relates to
Type
-
string
Source
siteIdnumber
The Site ID associated with this Shift Summary Report
Type
-
number
Source
statusstring
Whether the Report is in the process of being Emailed
Type
-
string
Source
updateTimestampDate
When the Shift Summary Report was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {ShiftSummaryReportModel}
Create a new ShiftSummaryReportModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this Shift Summary Report
Returns
-
ShiftSummaryReportModel