Constructor
new ShiftQualitySummaryModel(siteId)
ShiftQualitySummaryModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Shift Quality Summary
Source
Members
accuracyResultsArray.<{type: string, value: number}>
An Array of Accuracy Results for this Summary
Type
-
Array.<{type: string, value: number}>
Source
auditResultsArray.<{type: string, value: number}>
An Array of Audit Results for this Summary
Type
-
Array.<{type: string, value: number}>
Source
createdTimestampDate
When this Quality Summary was Created
Type
-
Date
Source
deletedboolean
Whether the Shift Quality Summary has been deleted
Type
-
boolean
Source
idstring
The Shift Quality Summary ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Quality Summary is associated with
Type
-
string
Source
packrunResultsArray.<{packrunId: string, packrunName: string, minorPackingDefects: number, majorPackingDefects: number, softs: number, cuts: number, rots: number, softsLineAverageSampleSize: ?number, softsLineAverageValue: ?number, exportFruitInClass2: ?number, exportFruitInLocalMarket: ?number, exportFruitInWaste: ?number}>
An Array of Packrun Results for this Summary
Type
-
Array.<{packrunId: string, packrunName: string, minorPackingDefects: number, majorPackingDefects: number, softs: number, cuts: number, rots: number, softsLineAverageSampleSize: ?number, softsLineAverageValue: ?number, exportFruitInClass2: ?number, exportFruitInLocalMarket: ?number, exportFruitInWaste: ?number}>
Source
publishTimestampDate
When this Quality Summary was Published
Type
-
Date
Source
qualityManagerNamestring
The Name of the Quality Manager for this Summary
Type
-
string
Source
qualityManagerUserIdstring
The User ID of the Quality Manager for this Summary
Type
-
string
Source
satisfactionRatingnumber
An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
Type
-
number
Source
shiftIdstring
The Shift ID this Quality Summary is asssociated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Shift Quality Summary
Type
-
number
Source
statusstring
The Status of this Quality Summary
Type
-
string
Source
updateTimestampDate
When the Shift Quality Summary was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {ShiftQualitySummaryModel}
Create a new ShiftQualitySummaryModel 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 Quality Summary
Returns
-
ShiftQualitySummaryModel