Constructor
new CompacSizerBinWeightController()
Source
Methods
create(siteId, createData) → {Promise.<CompacSizerBinWeightModel>}
Create a Compac Sizer Bin Weight [POST /packhouse/sites/{siteId}/compac-sizer-bin-weights]
Parameters
-
siteId
numberThe Site ID
-
createData
CompacSizerBinWeightController.CreateDataThe Compac Sizer Bin Weight Create Data
Returns
-
Promise.<CompacSizerBinWeightModel>
Source
createComment(siteId, id, content) → {Promise.<CompacSizerBinWeightController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}/comments]
Create a Comment for a Compac Sizer Bin Weight
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
-
content
stringThe Content of the New Comment
Returns
-
Promise.<CompacSizerBinWeightController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Compac Sizer Bin Weight [DELETE /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}/comments/{commentId}]
Delete a Comment for a Compac Sizer Bin Weight
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<CompacSizerBinWeightModel>>}
List all Compac Sizer Bin Weights [GET /packhouse/sites/{siteId}/compac-sizer-bin-weights]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
CompacSizerBinWeightController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<CompacSizerBinWeightModel>>
Source
getComments(siteId, id) → {Promise.<Array.<CompacSizerBinWeightController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}/comments]
Retrieves Comments for a Compac Sizer Bin Weight
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
Returns
-
Promise.<Array.<CompacSizerBinWeightController.CommentItem>>
Source
getOne(siteId, id) → {Promise.<CompacSizerBinWeightModel>}
Retrieve a Compac Sizer Bin Weight [GET /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
Returns
-
Promise.<CompacSizerBinWeightModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<CompacSizerBinWeightController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}/comments/{commentId}]
Retrieves Comments for a Compac Sizer Bin Weight
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<CompacSizerBinWeightController.CommentItem>
Source
update(siteId, id, updateData) → {Promise.<CompacSizerBinWeightModel>}
Update a Compac Sizer Bin Weight [PATCH /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
-
updateData
CompacSizerBinWeightController.UpdateDataThe Compac Sizer Bin Weight Update Data
Returns
-
Promise.<CompacSizerBinWeightModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<CompacSizerBinWeightController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/compac-sizer-bin-weights/{id}/comments/{commentId}]
Update a Comment for a Compac Sizer Bin Weight
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Bin Weight ID
-
commentId
stringThe Comment ID
-
content
stringThe Updated Content for the Comment
Returns
-
Promise.<CompacSizerBinWeightController.CommentItem>
Source
Type Definitions
BinCardApiStatus
Results from Interacting with the FreshPack API to Print a Multi-Grower Bin Card
Type
-
Object
Properties
-
requestCount
numberNumber of Requests made to the FreshPack API
-
requestTimestamp
Date<nullable>
Timestamp of the last Request made to the FreshPack API
-
responseCode
number<nullable>
Response Code from the last FreshPack API Request
-
responseMessage
string<nullable>
Response Message from the last FreshPack API Request
-
completed
booleanWhether Interaction with the FreshPack API has been Completed
Source
BinNumberApiStatus
Results from Interacting with the FreshPack API to Create a Multi-Grower Bin
Type
-
Object
Properties
-
requestCount
numberNumber of Requests made to the FreshPack API
-
requestTimestamp
Date<nullable>
Timestamp of the last Request made to the FreshPack API
-
responseCode
number<nullable>
Response Code from the last FreshPack API Request
-
responseMessage
string<nullable>
Response Message from the last FreshPack API Request
-
completed
booleanWhether Interaction with the FreshPack API has been Completed
Source
BinWeightApiStatus
Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
Type
-
Object
Properties
-
requestCount
numberNumber of Requests made to the FreshPack API
-
requestTimestamp
Date<nullable>
Timestamp of the last Request made to the FreshPack API
-
responseCode
number<nullable>
Response Code from the last FreshPack API Request
-
responseMessage
string<nullable>
Response Message from the last FreshPack API Request
-
completed
booleanWhether Interaction with the FreshPack API has been Completed
Source
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
stringThe Comment ID
-
userAccount
CompacSizerBinWeightController.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 Compac Sizer Bin Weight
Type
-
Object
Properties
-
compacSizerId
stringThe Compac Sizer ID this Bin Weight is associated with
-
packrunId
string<optional>
The Packrun ID associated with this Bin Weight
-
createdTimestamp
Date<optional>
When this Bin Weight was Created
-
timeBatchId
string<optional>
<nullable>
The Time Batch ID associated with this Bin Weight
-
sources
Array.<(CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource)><optional>
The Sources and Weights that make up this Bin Weight
-
freshPackMultiGrowerBinWeights
Array.<CompacSizerBinWeightController.FreshPackMultiGrowerBinWeight>The Multi-Grower Bin Weights that will be submitted to FreshPack
-
freshPackMultiGrowerBins
Array.<CompacSizerBinWeightController.FreshPackMultiGrowerBin><optional>
The Multi-Grower Bins that will be submitted to FreshPack
Source
FreshPackMultiGrowerBin
A FreshPackMultiGrowerBin Type
Type
-
Object
Properties
-
classType
stringThe Class Type of this Multi-Grower Bin
-
binNumber
string<nullable>
The FreshPack Assigned Number of this Multi-Grower Bin
-
printBinCard
booleanWhether a Bin Card should be Printed when the Bin Weight is Finalized
-
binNumberApi
CompacSizerBinWeightController.BinNumberApiStatus<nullable>
Results from Interacting with the FreshPack API to Create a Multi-Grower Bin
-
binCardApi
CompacSizerBinWeightController.BinCardApiStatus<nullable>
Results from Interacting with the FreshPack API to Print a Multi-Grower Bin Card
Source
FreshPackMultiGrowerBinWeight
A FreshPackMultiGrowerBinWeight Type
Type
-
Object
Properties
-
classType
stringThe Class Type of this Multi-Grower Bin Weight
-
weight
numberThe Net Weight in Kilograms of this Multi-Grower Bin Weight
-
weightApi
CompacSizerBinWeightController.BinWeightApiStatus<nullable>
Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Bin Weight is associated with
-
packrunId
string<optional>
The Packrun ID associated with this Bin Weight
-
createdTimestampBegin
Date<optional>
Filter by the Timestamp when this Compac Sizer Bin Weight was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date<optional>
Filter by the Timestamp when this Compac Sizer Bin Weight was Created. Results Less than or Equal to Timestamp
Source
OutletSource
A OutletSource Type
Type
-
Object
Properties
-
type
stringType of this Bin Weight Source
-
outletNumber
numberOutlet Number of the Sizer Outlet
-
outletName
string<nullable>
Name of the Sizer Outlet
-
weights
Array.<{classType: string, weight: number, fruitCount: ?number}>An Array of Weights by Class Type for this Bin Weight Source
Source
SizerBulkSource
A SizerBulkSource Type
Type
-
Object
Properties
-
type
stringType of this Bin Weight Source
-
weights
Array.<{classType: string, weight: number, fruitCount: ?number}>An Array of Weights by Class Type for this Bin Weight Source
Source
UpdateData
The Update Data for a Compac Sizer Bin Weight
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Bin Weight is associated with
-
createdTimestamp
Date<optional>
When this Bin Weight was Created
-
timeBatchId
string<optional>
<nullable>
The Time Batch ID associated with this Bin Weight
-
sources
Array.<(CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource)><optional>
The Sources and Weights that make up this Bin Weight
-
freshPackMultiGrowerBinWeights
Array.<CompacSizerBinWeightController.FreshPackMultiGrowerBinWeight><optional>
The Multi-Grower Bin Weights that will be submitted to FreshPack
-
freshPackMultiGrowerBins
Array.<CompacSizerBinWeightController.FreshPackMultiGrowerBin><optional>
The Multi-Grower Bins that will be submitted to FreshPack
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