Methods
create(siteId, createData) → {Promise.<PackrunModel>}
Create a Packrun [POST /packhouse/sites/{siteId}/packruns]
Parameters
-
siteId
numberThe Site ID
-
createData
PackrunController.CreateDataThe Packrun Create Data
Returns
-
Promise.<PackrunModel>
Source
createComment(siteId, id, content) → {Promise.<PackrunController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/packruns/{id}/comments]
Create a Comment for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
-
content
stringThe Content of the New Comment
Returns
-
Promise.<PackrunController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Packrun [DELETE /packhouse/sites/{siteId}/packruns/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/packruns/{id}/comments/{commentId}]
Delete a Comment for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<PackrunModel>>}
List all Packruns [GET /packhouse/sites/{siteId}/packruns]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
PackrunController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<PackrunModel>>
Source
getComments(siteId, id) → {Promise.<Array.<PackrunController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/packruns/{id}/comments]
Retrieves Comments for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<Array.<PackrunController.CommentItem>>
Source
getInfeedReport(siteId, id) → {Promise.<PackrunController.PackrunInfeedReport>}
Retrieve a Packrun Infeed Report [GET /packhouse/sites/{siteId}/packruns/{id}/infeedReport]
Retrieves an Infeed Report for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<PackrunController.PackrunInfeedReport>
Source
getLatestSummaryData(siteId, id) → {Promise.<PackrunController.PackrunLatestSummaryData>}
Retrive a Packrun's Latest Summary Data [GET /packhouse/sites/{siteId}/packruns/{id}/latestSummaryData]
Retrieves the Latest Summary Data for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<PackrunController.PackrunLatestSummaryData>
Source
getOne(siteId, id) → {Promise.<PackrunModel>}
Retrieve a Packrun [GET /packhouse/sites/{siteId}/packruns/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<PackrunModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<PackrunController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/packruns/{id}/comments/{commentId}]
Retrieves Comments for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<PackrunController.CommentItem>
Source
getSummaryReport(siteId, id) → {Promise.<PackrunController.PackrunSummaryReport>}
Retrieve a Packrun Summary Report [GET /packhouse/sites/{siteId}/packruns/{id}/summaryReport]
Retrieves a Summary Report for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
Returns
-
Promise.<PackrunController.PackrunSummaryReport>
Source
update(siteId, id, updateData) → {Promise.<PackrunModel>}
Update a Packrun [PATCH /packhouse/sites/{siteId}/packruns/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
-
updateData
PackrunController.UpdateDataThe Packrun Update Data
Returns
-
Promise.<PackrunModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<PackrunController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/packruns/{id}/comments/{commentId}]
Update a Comment for a Packrun
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Packrun ID
-
commentId
stringThe Comment ID
-
content
stringThe Updated Content for the Comment
Returns
-
Promise.<PackrunController.CommentItem>
Source
Type Definitions
ClassTypeItem
A ClassTypeItem Type
Type
-
Object
Properties
-
classType
stringThe Class Type
-
name
stringThe Class Type Name
Source
ClassTypePercentageItem
A ClassTypePercentageItem Type
Type
-
Object
Properties
-
classType
stringThe Class Type
-
name
stringThe Class Type Name
-
percentage
numberThe Percentage of Total Weight for this Class Type
Source
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
stringThe Comment ID
-
userAccount
PackrunController.UserAccount -
content
string<nullable>
The Content of the Comment
-
createdTimestamp
Date<nullable>
When the Comment was Created
-
updatedTimestamp
Date<nullable>
When the Comment was last Updated
Source
CreateData
The Create Data for a Packrun
Type
-
Object
Properties
-
packingLineId
stringThe Packing Line ID this Packrun is associated with
-
name
string<optional>
The Packrun Name
-
createdTimestamp
Date<optional>
When this Packrun was Created
-
growerName
stringThe Grower Name for this Packrun
-
growerCode
stringThe Grower Code for this Packrun
-
maturityArea
stringThe Maturity Area for this Packrun
-
startTimestamp
Date<optional>
<nullable>
When this Packrun was Started
-
finishTimestamp
Date<optional>
<nullable>
When this Packrun was Finished
-
varietyId
stringThe Variety for this Packrun
-
growingMethodId
string<optional>
<nullable>
The Growing Method for this Packrun
-
allocatedBins
number<optional>
The Number of Allocated Bins for this Packrun
-
timeBatches
Array.<PackrunController.TimeBatch><optional>
The Time Batches for this Packrun
-
freshPackGraderId
number<optional>
<nullable>
The FreshPack Grader ID associated with this Packrun
-
freshPackBinLotCode
string<optional>
<nullable>
The FreshPack Bin Lot Code associated with this Packrun
-
freshPackProduceCode
string<optional>
<nullable>
The FreshPack Produce Code associated with this Packrun
Source
FruitSizeProfileItem
A FruitSizeProfileItem Type
Type
-
Object
Properties
-
fruitSize
stringThe Fruit Size
-
fruitCount
numberThe Fruit Count
-
percentage
numberThe Percentage of Total Fruit for this Fruit Size
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
packingLineId
string<optional>
The Packing Line ID this Packrun is associated with
-
name
string<optional>
The Packrun Name
-
growerName
string<optional>
The Grower Name for this Packrun
-
growerCode
string<optional>
The Grower Code for this Packrun
-
maturityArea
string<optional>
The Maturity Area for this Packrun
-
startTimestamp
Date<optional>
<nullable>
When this Packrun was Started
-
finishTimestamp
Date<optional>
<nullable>
When this Packrun was Finished
-
varietyId
string<optional>
The Variety for this Packrun
-
growingMethodId
string<optional>
<nullable>
The Growing Method for this Packrun
-
freshPackGraderId
number<optional>
<nullable>
The FreshPack Grader ID associated with this Packrun
-
freshPackBinLotCode
string<optional>
<nullable>
The FreshPack Bin Lot Code associated with this Packrun
-
createdTimestampBegin
Date<optional>
Filter by the Timestamp when this Packrun was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date<optional>
Filter by the Timestamp when this Packrun was Created. Results Less than or Equal to Timestamp
-
startTimestampBegin
Date<optional>
Filter by the Timestamp when this Packrun was Started. Results Greater than or Equal to Timestamp
-
startTimestampEnd
Date<optional>
Filter by the Timestamp when this Packrun was Started. Results Less than or Equal to Timestamp
-
finishTimestampBegin
Date<optional>
Filter by the Timestamp when this Packrun was Finished. Results Greater than or Equal to Timestamp
-
finishTimestampEnd
Date<optional>
Filter by the Timestamp when this Packrun was Finished. Results Less than or Equal to Timestamp
Source
GrowingMethodItem
The Growing Method for the Packrun
Type
-
Object
Properties
-
id
stringThe Growing Method ID
-
code
stringThe Growing Method Code
-
name
stringThe Growing Method Name
-
description
stringThe Growing Method Description
Source
PackrunInfeedReport
A PackrunInfeedReport Type
Type
-
Object
Properties
-
id
stringThe Packrun ID
-
name
stringThe Packrun Name
-
createdTimestamp
DateWhen the Packrun was Created
-
startTimestamp
Date<nullable>
When the Packrun was Started
-
finishTimestamp
Date<nullable>
When the Packrun was Finished
-
packingLineId
stringThe Packing Line ID
-
packingLineName
string<nullable>
The Packing Line Name
-
growerName
stringThe Grower Name
-
growerCode
stringThe Grower Code
-
maturityArea
string<nullable>
The Maturity Area
-
allocatedBins
numberThe Number of Bins Allocated for the Packrun
-
tippedBins
numberThe Number of Bins Tipped for the Packrun
-
softSortRejectWeight
numberThe Total Reject Weight for the Soft-Sort category expressed in kilograms
-
softSortRejectPercentage
numberThe Percentage of Packrun Weight categorized as Soft-Sort
-
softSortEventsPerBin
numberThe Number of Soft-Sort Events per Bin
-
totalSoftSortEventsCount
numberThe Number of Soft-Sort Events that occurred for the Packrun
-
averageSoftSortEventsDuration
numberThe Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
-
totalSoftSortEventsDuration
numberThe Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
-
softSortEventsIsAccurate
boolean<nullable>
Whether the Soft-Sort Events Data is considered accurate or not
-
softSortEventsNotAccurateReason
string<nullable>
A Reason for why the Soft-Sort Events Data is not accurate. Applies when
softSortEventsIsAccurateis false
Source
PackrunLatestSummaryData
A PackrunLatestSummaryData Type
Type
-
Object
Properties
-
id
stringThe Packrun ID
-
name
stringThe Packrun Name
-
createdTimestamp
DateWhen the Packrun was Created
-
growerName
stringThe Grower Name
-
growerCode
stringThe Grower Code
-
maturityArea
string<nullable>
The Maturity Area
-
startTimestamp
Date<nullable>
When the Packrun was Started
-
finishTimestamp
Date<nullable>
When the Packrun was Finished
-
variety
PackrunController.VarietyItemThe Variety for the Packrun
-
growingMethod
PackrunController.GrowingMethodItemThe Growing Method for the Packrun
-
packingLineId
stringThe Packing Line ID
-
packingLineName
stringThe Packing Line Name
-
status
stringThe Status of this Packrun
-
allocatedBins
numberThe Number of Bins Allocated for the Packrun
-
tippedBins
numberThe Number of Bins Tipped for the Packrun
-
class1FruitSizeProfile
Array.<PackrunController.FruitSizeProfileItem>An Array of Class 1 Fruit Profiles by Size for the Packrun
-
class1TotalTrays
numberThe Total Class 1 Trays for this Packrun
-
class1TraysPerBin
numberThe Number of Class 1 Trays per Bin for this Packrun
-
class1AverageFruitSize
numberThe Average Class 1 Fruit Size for this Packrun
-
class2TotalTrays
numberThe Total Class 2 Trays for this Packrun
-
classTypeTotals
Array.<PackrunController.ClassTypePercentageItem>An Array of Class Types and their Percentages for this Packrun
Source
PackrunSummaryReport
A PackrunSummaryReport Type
Type
-
Object
Properties
-
id
stringThe Packrun ID
-
name
stringThe Packrun Name
-
createdTimestamp
DateWhen the Packrun was Created
-
growerName
stringThe Grower Name
-
growerCode
stringThe Grower Code
-
maturityArea
string<nullable>
The Maturity Area
-
startTimestamp
Date<nullable>
When the Packrun was Started
-
finishTimestamp
Date<nullable>
When the Packrun was Finished
-
allocatedBins
numberThe Number of Bins Allocated for the Packrun
-
timeBatches
Array.<PackrunController.TimeBatchItem>The Time Batches for the Packrun
-
variety
PackrunController.VarietyItemThe Variety for the Packrun
-
growingMethod
PackrunController.GrowingMethodItemThe Growing Method for the Packrun
-
packingLineId
stringThe Packing Line ID
-
packingLineName
string<nullable>
The Packing Line Name
-
classTypes
Array.<PackrunController.ClassTypeItem>An Array of Class Types for the Packing Line
-
compacSizers
Array.<Object>DEPRECATED - An Array of Summarized Compac Sizer Data
-
sizers
Array.<PackrunController.SizerItem> -
incomingSizerIds
Array.<string>The IDs of the Sizers that directly receive Fruit from the Infeed
-
incomingSizersFruitCount
numberThe Incoming Fruit Count of all Incoming Sizers
-
incomingSizersFruitWeight
numberThe Incoming Fruit Weight of all Incoming Sizers
-
rejectBinSummary
ObjectThe Reject Bin Summary for the Packrun
-
binTipSummary
ObjectThe Bin Tip Summary for the Packrun
-
classTypeTotals
Array.<Object>An Array of Totals for each Class Type within the Packrun
-
class1SizerSummary
Array.<Object>An Array of Class 1 Fruit Summaries by Size for all Sizers within the Packrun
-
class1TotalTrays
numberThe Total Class 1 Trays for this Packrun
-
class1AverageTrayWeight
numberThe Average Class 1 Tray Weight for this Packrun
-
class1FruitSizeProfile
Array.<Object>An Array of Class 1 Fruit Profiles by Size for the Packrun
-
class1AverageFruitSize
numberThe Average Class 1 Fruit Size for this Packrun
-
class1TraysPerBin
numberThe Number of Class 1 Trays per Bin for this Packrun
-
class1FreshPackSummary
Array.<Object>An Array of Class 1 Fruit Summaries by Size from FreshPack for the Packrun
-
class2SizerSummary
Array.<Object>An Array of Class 2 Fruit Summaries by Size for all Sizers within the Packrun
-
class2TotalTrays
numberThe Total Class 2 Trays for this Packrun
-
class2AverageTrayWeight
numberThe Average Class 2 Tray Weight for this Packrun
-
class2FreshPackSummary
Array.<Object>An Array of Class 2 Fruit Summaries by Size from FreshPack for the Packrun
Source
SizerBatchSummaryItem
A SizerBatchSummaryItem Type
Type
-
Object
Properties
-
id
stringThe Sizer Batch ID
-
number
numberThe Sizer Batch Number
-
name
stringThe Sizer Batch Name
-
varietyName
stringThe Sizer Variety Name
-
timestamp
DateThe Sizer Batch Timestamp
-
totalFruitCount
numberThe Total Fruit Count for the Batch
-
totalFruitWeight
numberThe Total Fruit Weight (kg) for the Batch
-
recycleFruitCount
numberThe Recycled Fruit Count for the Batch
-
recycleFruitWeight
numberThe Recycled Fruit Weight (kg) for the Batch
-
recyclePercentage
numberThe Percentage of Total Fruit that was Recycled for the Batch
-
incomingFruitCount
numberThe Incoming Fruit Count for the Batch
-
incomingFruitWeight
numberThe Incoming Fruit Weight (kg) for the Batch
Source
SizerItem
A SizerItem Type
Type
-
Object
Properties
-
id
stringThe Sizer ID
-
name
stringThe Sizer Name
-
batchSummaries
Array.<PackrunController.SizerBatchSummaryItem>An Array of Summarized Batches for the Sizer
Source
TimeBatch
A TimeBatch Type
Type
-
Object
Properties
-
id
stringThe Single Letter ID of this Time Batch (Starts at A and proceeds through to Z)
-
timestamp
DateTimestamp when this Time Batch was Created
Source
TimeBatchItem
A TimeBatchItem Type
Type
-
Object
Properties
-
id
stringThe Time Batch ID (A Single Letter starting from 'A'
-
timestamp
DateWhen the Time Batch was Created
Source
UpdateData
The Update Data for a Packrun
Type
-
Object
Properties
-
packingLineId
string<optional>
The Packing Line ID this Packrun is associated with
-
createdTimestamp
Date<optional>
When this Packrun was Created
-
growerName
string<optional>
The Grower Name for this Packrun
-
growerCode
string<optional>
The Grower Code for this Packrun
-
maturityArea
string<optional>
The Maturity Area for this Packrun
-
startTimestamp
Date<optional>
<nullable>
When this Packrun was Started
-
finishTimestamp
Date<optional>
<nullable>
When this Packrun was Finished
-
varietyId
string<optional>
The Variety for this Packrun
-
growingMethodId
string<optional>
<nullable>
The Growing Method for this Packrun
-
allocatedBins
number<optional>
The Number of Allocated Bins for this Packrun
-
timeBatches
Array.<PackrunController.TimeBatch><optional>
The Time Batches for this Packrun
-
freshPackGraderId
number<optional>
<nullable>
The FreshPack Grader ID associated with this Packrun
-
freshPackBinLotCode
string<optional>
<nullable>
The FreshPack Bin Lot Code associated with this Packrun
-
freshPackProduceCode
string<optional>
<nullable>
The FreshPack Produce Code associated with this Packrun
Source
UserAccount
A UserAccount Type
Type
-
Object
Properties
-
id
string<nullable>
The User Account ID
-
firstName
string<nullable>
The User's First Name
-
lastName
string<nullable>
The User's Last Name
Source
VarietyItem
The Variety for the Packrun
Type
-
Object
Properties
-
id
stringThe Variety ID
-
code
stringThe Variety Code
-
name
stringThe Variety Name
-
description
stringThe Variety Description
-
image
stringThe Base64 Encoded Image for the Variety