Constructor
new PackrunModel(siteId)
PackrunModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Packrun
Source
Members
allocatedBinsnumber
The Number of Allocated Bins for this Packrun
Type
-
number
Source
createdTimestampDate
When this Packrun was Created
Type
-
Date
Source
deletedboolean
Whether the Packrun has been deleted
Type
-
boolean
Source
finishTimestampDate
When this Packrun was Finished
Type
-
Date
Source
freshPackBinLotCodestring
The FreshPack Bin Lot Code associated with this Packrun
Type
-
string
Source
freshPackGraderIdnumber
The FreshPack Grader ID associated with this Packrun
Type
-
number
Source
freshPackProduceCodestring
The FreshPack Produce Code associated with this Packrun
Type
-
string
Source
growerCodestring
The Grower Code for this Packrun
Type
-
string
Source
growerNamestring
The Grower Name for this Packrun
Type
-
string
Source
growingMethodIdstring
The Growing Method for this Packrun
Type
-
string
Source
idstring
The Packrun ID
Type
-
string
Source
maturityAreastring
The Maturity Area for this Packrun
Type
-
string
Source
namestring
The Packrun Name
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Packrun is associated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Packrun
Type
-
number
Source
startTimestampDate
When this Packrun was Started
Type
-
Date
Source
timeBatchesArray.<{id: string, timestamp: Date}>
The Time Batches for this Packrun
Type
-
Array.<{id: string, timestamp: Date}>
Source
updateTimestampDate
When the Packrun was last updated
Type
-
Date
Source
varietyIdstring
The Variety for this Packrun
Type
-
string
Source
Methods
fromJSON(json, siteId) → {PackrunModel}
Create a new PackrunModel 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 Packrun
Returns
-
PackrunModel