Constructor
new CompacSizerBatchController()
Source
Methods
create(siteId, createData) → {Promise.<CompacSizerBatchModel>}
Create a Compac Sizer Batch [POST /packhouse/sites/{siteId}/compac-sizer-batches]
Parameters
-
siteId
numberThe Site ID
-
createData
CompacSizerBatchController.CreateDataThe Compac Sizer Batch Create Data
Returns
-
Promise.<CompacSizerBatchModel>
Source
createComment(siteId, id, content) → {Promise.<CompacSizerBatchController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/compac-sizer-batches/{id}/comments]
Create a Comment for a Compac Sizer Batch
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
-
content
stringThe Content of the New Comment
Returns
-
Promise.<CompacSizerBatchController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Compac Sizer Batch [DELETE /packhouse/sites/{siteId}/compac-sizer-batches/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/compac-sizer-batches/{id}/comments/{commentId}]
Delete a Comment for a Compac Sizer Batch
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<CompacSizerBatchModel>>}
List all Compac Sizer Batches [GET /packhouse/sites/{siteId}/compac-sizer-batches]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
CompacSizerBatchController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<CompacSizerBatchModel>>
Source
getComments(siteId, id) → {Promise.<Array.<CompacSizerBatchController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/compac-sizer-batches/{id}/comments]
Retrieves Comments for a Compac Sizer Batch
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
Returns
-
Promise.<Array.<CompacSizerBatchController.CommentItem>>
Source
getOne(siteId, id) → {Promise.<CompacSizerBatchModel>}
Retrieve a Compac Sizer Batch [GET /packhouse/sites/{siteId}/compac-sizer-batches/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
Returns
-
Promise.<CompacSizerBatchModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<CompacSizerBatchController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/compac-sizer-batches/{id}/comments/{commentId}]
Retrieves Comments for a Compac Sizer Batch
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<CompacSizerBatchController.CommentItem>
Source
update(siteId, id, updateData) → {Promise.<CompacSizerBatchModel>}
Update a Compac Sizer Batch [PATCH /packhouse/sites/{siteId}/compac-sizer-batches/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
-
updateData
CompacSizerBatchController.UpdateDataThe Compac Sizer Batch Update Data
Returns
-
Promise.<CompacSizerBatchModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<CompacSizerBatchController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/compac-sizer-batches/{id}/comments/{commentId}]
Update a Comment for a Compac Sizer Batch
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Batch ID
-
commentId
stringThe Comment ID
-
content
stringThe Updated Content for the Comment
Returns
-
Promise.<CompacSizerBatchController.CommentItem>
Source
Type Definitions
BatchDrop
A BatchDrop Type
Type
-
Object
Properties
-
id
numberID of this Drop (Outlet)
-
name
string<nullable>
Name of this Drop (Outlet)
-
totallingEnabled
booleanWhether Fruit sent to this Drop (Outlet) should be recorded in the Drop Summary
Source
BatchDropSummary
A BatchDropSummary Type
Type
-
Object
Properties
-
id
numberID of this Drop Summary
-
eventId
numberThe Event ID this Drop Summary is associated with
-
summaryGroupId
numberID of the Summary Group for this Drop Summary
-
productId
numberID of the Product for this Drop Summary
-
dropId
numberID of the Drop for this Drop Summary
-
gradeIndex
numberIndex of the Grade for this Drop Summary
-
sizeIndex
numberIndex of the Fruit Size for this Drop Summary
-
qualityIndex
numberIndex of the Quality for this Drop Summary
-
fruitWeight
numberFruit Weight in Grams for this Drop Summary
-
fruitCount
numberFruit Count for this Drop Summary
-
varietySizingMapId
numberVariety Sizing Map ID for this Drop Summary
Source
BatchEvent
A BatchEvent Type
Type
-
Object
Properties
-
id
numberID of this Event
-
batchId
numberThe Batch ID this Event is associated with
-
type
stringThe Event Type
-
details
stringDetails of this Event
-
timestamp
DateWhen this Event Occurred
-
runningSeconds
numberTotal Seconds the Sizer was Running during this Event
-
fruitRunningSeconds
numberTotal Seconds the Sizer was Running with Fruit during this Event
Source
BatchGrade
A BatchGrade Type
Type
-
Object
Properties
-
id
numberID of this Grade
-
eventId
numberThe Event ID this Grade is associated with
-
index
numberIndex of this Grade
-
name
string<nullable>
Name of this Grade
Source
BatchPack
A BatchPack Type
Type
-
Object
Properties
-
id
numberID of this Pack
-
eventId
numberThe Event ID this Pack is associated with
-
guid
stringUUID of this Pack
-
name
string<nullable>
Name of this Pack
Source
BatchPackSummary
A BatchPackSummary Type
Type
-
Object
Properties
-
id
numberID of this Pack Summary
-
eventId
numberThe Event ID this Pack Summary is associated with
-
summaryGroupId
numberID of the Summary Group for this Pack Summary
-
productId
numberID of the Product for this Pack Summary
-
packId
numberID of the Pack for this Pack Summary
-
packCount
numberPack Count for this Pack Summary
-
fruitWeight
numberFruit Weight in Grams for this Drop Summary
-
fruitCount
numberFruit Count for this Drop Summary
Source
BatchProduct
A BatchProduct Type
Type
-
Object
Properties
-
id
numberID of this Product
-
eventId
numberThe Event ID this Product is associated with
-
guid
stringUUID of this Product
-
name
string<nullable>
Name of this Product
Source
BatchQuality
A BatchQuality Type
Type
-
Object
Properties
-
id
numberID of this Quality
-
eventId
numberThe Event ID this Quality is associated with
-
index
numberIndex of this Quality
-
name
string<nullable>
Name of this Quality
Source
BatchRecycleSummary
A BatchRecycleSummary Type
Type
-
Object
Properties
-
id
numberID of this Recycle Summary
-
eventId
numberThe Event ID this Recycle Summary is associated with
-
productId
numberID of the Product for this Recycle Summary
-
dropId
numberID of the Drop for this Recycle Summary
-
gradeIndex
numberIndex of the Grade for this Recycle Summary
-
sizeIndex
numberIndex of the Fruit Size for this Recycle Summary
-
qualityIndex
numberIndex of the Quality for this Recycle Summary
-
fruitWeight
numberFruit Weight in Grams for this Recycle Summary
-
fruitCount
numberFruit Count for this Recycle Summary
-
varietySizingMapId
numberVariety Sizing Map ID for this Recycle Summary
Source
BatchSizingMap
A BatchSizingMap Type
Type
-
Object
Properties
-
id
numberID of this Sizing Map
-
eventId
numberThe Event ID this Sizing Map is associated with
-
varietySizingMapId
numberID of the Variety Sizing Map
-
name
string<nullable>
Name of this Sizing Map
-
fruitSizes
Array.<CompacSizerBatchController.BatchSizingMapFruitSize>An Array of Fruit Sizes defined in this Sizing Map
Source
BatchSizingMapFruitSize
A BatchSizingMapFruitSize Type
Type
-
Object
Properties
-
id
numberID of this Fruit Size
-
eventId
numberThe Event ID this Fruit Size is associated with
-
index
numberIndex of this Fruit Size
-
name
string<nullable>
Name of this Fruit Size
-
minimumFruitWeight
numberThe Minimum Weight in Grams for this Fruit Size
-
fruitCount
numberThe Fruit Count for this Fruit Size
-
minimumTrayWeight
numberThe Minimum Tray Weight in Grams for this Fruit Size
-
varietySizingMapId
numberID of the Variety Sizing Map
Source
BatchSummaryGroup
A BatchSummaryGroup Type
Type
-
Object
Properties
-
id
numberID of this Summary Group
-
name
string<nullable>
Name of this Summary Group
-
isReject
booleanWhether this Summary Group is classes as Reject
-
orderIndex
numberThe Display Order Index for this Summary Group
Source
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
stringThe Comment ID
-
userAccount
CompacSizerBatchController.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
CompacSizerBatch
A CompacSizerBatch Type
Type
-
Object
Properties
-
id
numberID of this Batch
-
name
string<nullable>
Name of this Batch
-
growerCode
string<nullable>
Code of the Grower for this Batch
-
growerName
string<nullable>
Name of the Grower for this Batch
-
startTimestamp
Date<nullable>
When this Batch was Started
-
endTimestamp
Date<nullable>
When this Batch was Finished
-
comments
Array.<string>An Array of Comments for this Batch
-
varietyId
stringID of the Variety for this Batch
-
varietyName
stringName of the Variety for this Batch
-
finished
booleanWhether this Batch has been Finished
-
events
Array.<CompacSizerBatchController.BatchEvent>An Array of Events for this Batch
-
sizingMaps
Array.<CompacSizerBatchController.BatchSizingMap>An Array of Sizing Maps for this Batch
-
grades
Array.<CompacSizerBatchController.BatchGrade>An Array of Grades for this Batch
-
qualities
Array.<CompacSizerBatchController.BatchQuality>An Array of Qualities for this Batch
-
products
Array.<CompacSizerBatchController.BatchProduct>An Array of Products for this Batch
-
packs
Array.<CompacSizerBatchController.BatchPack>An Array of Packs for this Batch
-
summaryGroups
Array.<CompacSizerBatchController.BatchSummaryGroup>An Array of Summary Groups for this Batch
-
dropSummaries
Array.<CompacSizerBatchController.BatchDropSummary>An Array of Drop Summaries for this Batch
-
recycleSummaries
Array.<CompacSizerBatchController.BatchRecycleSummary>An Array of Recycle Summaries for this Batch
-
packSummaries
Array.<CompacSizerBatchController.BatchPackSummary>An Array of Pack Summaries for this Batch
-
drops
Array.<CompacSizerBatchController.BatchDrop>An Array of Drops (Outlets) for this Batch
Source
CreateData
The Create Data for a Compac Sizer Batch
Type
-
Object
Properties
-
compacSizerId
stringThe Compac Sizer ID this Batch is associated with
-
batchId
string<optional>
The Numeric Compac Batch ID
-
createdTimestamp
Date<optional>
When this Batch was Created
-
packrunId
string<optional>
<nullable>
The Packrun ID associated with this Batch
-
batch
CompacSizerBatchController.CompacSizerBatchThe Compac Sizer Batch Data
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Batch is associated with
-
batchId
string<optional>
The Numeric Compac Batch ID
-
packrunId
string<optional>
<nullable>
The Packrun ID associated with this Batch
-
createdTimestampBegin
Date<optional>
Filter by the Timestamp when this Compac Sizer Batch was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date<optional>
Filter by the Timestamp when this Compac Sizer Batch was Created. Results Less than or Equal to Timestamp
-
batchName
string<optional>
Filter by the Compac Batch Name
Source
UpdateData
The Update Data for a Compac Sizer Batch
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Batch is associated with
-
createdTimestamp
Date<optional>
When this Batch was Created
-
packrunId
string<optional>
<nullable>
The Packrun ID associated with this Batch
-
batch
CompacSizerBatchController.CompacSizerBatch<optional>
The Compac Sizer Batch Data
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