Constructor
new ShiftModel(siteId)
ShiftModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Shift
Source
Members
areaNotesArray.<{area: string, timestamp: Date, content: string}>
An Optional Array of Notes for this Shift
Type
-
Array.<{area: string, timestamp: Date, content: string}>
Source
binsTippedTargetnumber
The Target Number of Bins to Tip for this Shift
Type
-
number
Source
createdTimestampDate
When this Shift was Created
Type
-
Date
Source
deletedboolean
Whether the Shift has been deleted
Type
-
boolean
Source
finishTimestampDate
When this Shift was Finished
Type
-
Date
Source
handoverNotesArray.<{area: string, noteContent: string}>
DEPRECATED An Optional Array of Handover Notes for this Shift
Type
-
Array.<{area: string, noteContent: string}>
Source
idstring
The Shift ID
Type
-
string
Source
initialClass1Manningnumber
DEPRECATED The Initial Number of People working in all Areas except Class 2 for this Hour
Type
-
number
Source
initialClass2Manningnumber
DEPRECATED The Initial Number of People working in the Class 2 Area for this Hour
Type
-
number
Source
keyCelebrationstring
An Optional Key Celebration the Line Manager and Team experienced during this Shift
Type
-
string
Source
keyChallengestring
An Optional Key Challenge the Line Manager and Team experienced during this Shift
Type
-
string
Source
lineManagerNamestring
The Name of the Line Manager for this Shift
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Shift is associated with
Type
-
string
Source
publishTimestampDate
When this Shift was Published
Type
-
Date
Source
readyTimestampDate
When this Shift was Ready for Packing
Type
-
Date
Source
satisfactionRatingnumber
An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
Type
-
number
Source
scheduleObject
The Schedule for this Shift
Type
-
Object
Source
scoreWeightingsObject
The Score Weightings used for this Shift. Represented as a Number between 0.0 and 1.0
Type
-
Object
Source
siteIdnumber
The Site ID associated with this Shift
Type
-
number
Source
startTimestampDate
When this Shift was Started
Type
-
Date
Source
statusstring
The Status of this Shift
Type
-
string
Source
typestring
The Type of Shift
Type
-
string
Source
updateTimestampDate
When the Shift was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {ShiftModel}
Create a new ShiftModel 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
Returns
-
ShiftModel