Constructor
new CompacSizerPackrunSummaryController()
Source
Methods
create(siteId, createData) → {Promise.<CompacSizerPackrunSummaryModel>}
Create a Compac Sizer Packrun Summary [POST /packhouse/sites/{siteId}/compac-sizer-packrun-summaries]
Parameters
-
siteId
numberThe Site ID
-
createData
CompacSizerPackrunSummaryController.CreateDataThe Compac Sizer Packrun Summary Create Data
Returns
-
Promise.<CompacSizerPackrunSummaryModel>
Source
createComment(siteId, id, content) → {Promise.<CompacSizerPackrunSummaryController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}/comments]
Create a Comment for a Compac Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
-
content
stringThe Content of the New Comment
Returns
-
Promise.<CompacSizerPackrunSummaryController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Compac Sizer Packrun Summary [DELETE /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}/comments/{commentId}]
Delete a Comment for a Compac Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<CompacSizerPackrunSummaryModel>>}
List all Compac Sizer Packrun Summaries [GET /packhouse/sites/{siteId}/compac-sizer-packrun-summaries]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
CompacSizerPackrunSummaryController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<CompacSizerPackrunSummaryModel>>
Source
getComments(siteId, id) → {Promise.<Array.<CompacSizerPackrunSummaryController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}/comments]
Retrieves Comments for a Compac Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
Returns
-
Promise.<Array.<CompacSizerPackrunSummaryController.CommentItem>>
Source
getOne(siteId, id) → {Promise.<CompacSizerPackrunSummaryModel>}
Retrieve a Compac Sizer Packrun Summary [GET /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
Returns
-
Promise.<CompacSizerPackrunSummaryModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<CompacSizerPackrunSummaryController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}/comments/{commentId}]
Retrieves Comments for a Compac Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<CompacSizerPackrunSummaryController.CommentItem>
Source
update(siteId, id, updateData) → {Promise.<CompacSizerPackrunSummaryModel>}
Update a Compac Sizer Packrun Summary [PATCH /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
-
updateData
CompacSizerPackrunSummaryController.UpdateDataThe Compac Sizer Packrun Summary Update Data
Returns
-
Promise.<CompacSizerPackrunSummaryModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<CompacSizerPackrunSummaryController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/compac-sizer-packrun-summaries/{id}/comments/{commentId}]
Update a Comment for a Compac Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Compac Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
-
content
stringThe Updated Content for the Comment
Returns
-
Promise.<CompacSizerPackrunSummaryController.CommentItem>
Source
Type Definitions
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
stringThe Comment ID
-
userAccount
CompacSizerPackrunSummaryController.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 Packrun Summary
Type
-
Object
Properties
-
compacSizerId
stringThe Compac Sizer ID this Summary is associated with
-
packrunId
string<optional>
The Packrun ID this Summary is associated with
-
createdTimestamp
Date<optional>
When this Summary was Created
-
timeBatchId
string<optional>
<nullable>
The Time Batch this Summary is associated with
-
outletSummaries
Array.<CompacSizerPackrunSummaryController.OutletSummary><optional>
An Array of Packrun Summary Data Objects for each Outlet
-
initialOutletProducts
Array.<CompacSizerPackrunSummaryController.InitialOutletProduct><optional>
An Array that contains the Products initially Assigned to each Outlet
-
outletProductChanges
Array.<CompacSizerPackrunSummaryController.OutletProductChange><optional>
An Array of Outlet Product Changes
-
initialOutletTypes
Array.<CompacSizerPackrunSummaryController.InitialOutletType><optional>
An Array that contains the Types initially configured for each Outlet
-
outletTypeChanges
Array.<CompacSizerPackrunSummaryController.OutletTypeChange><optional>
An Array of Outlet Type Changes. Only applies to Outlets configured as Dynamic
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Summary is associated with
-
packrunId
string<optional>
The Packrun ID this Summary is associated with
-
timeBatchId
string<optional>
<nullable>
The Time Batch this Summary is associated with
-
createdTimestampBegin
Date<optional>
Filter by the Timestamp when this Compac Sizer Packrun Summary was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date<optional>
Filter by the Timestamp when this Compac Sizer Packrun Summary was Created. Results Less than or Equal to Timestamp
Source
InitialOutletProduct
A InitialOutletProduct Type
Type
-
Object
Properties
-
outletNumber
numberThe Outlet Number
-
productId
stringThe Product ID assigned to the Outlet
-
productName
string<nullable>
The Name of the Product assigned to the Outlet
Source
InitialOutletType
A InitialOutletType Type
Type
-
Object
Properties
-
outletNumber
numberThe Outlet Number
-
type
stringThe Generic Type configured on the Outlet
-
typeId
string<nullable>
The Type ID configured on the Outlet. Only applies when the type is Dynamic
Source
OutletProductChange
A OutletProductChange Type
Type
-
Object
Properties
-
timestamp
DateWhen the Outlet Product was Changed
-
outletNumber
numberThe Outlet Number
-
productId
stringThe new Product ID that has been assigned to the Outlet
-
productName
string<nullable>
The Name of the new Product that has been assigned to the Outlet
-
outletProductChangeId
stringThe ID of the associated Compac Sizer Outlet Product Change*
Source
OutletSummary
A OutletSummary Type
Type
-
Object
Properties
-
name
stringThe Outlet Name
-
type
stringThe Generic Outlet Type
-
number
numberThe Outlet Number
-
totals
Array.<CompacSizerPackrunSummaryController.OutletTotal>An Array of Totals for the Outlet
Source
OutletTotal
A OutletTotal Type
Type
-
Object
Properties
-
classType
string<nullable>
The Class Type
-
fruitSize
stringThe Fruit Size
-
packType
string<nullable>
The Pack Type
-
weight
numberThe Weight expressed in Kilograms
-
fruitCount
numberThe Fruit Count
-
packCount
number<nullable>
The Number of Packs
Source
OutletTypeChange
A OutletTypeChange Type
Type
-
Object
Properties
-
timestamp
DateWhen the Outlet Type was Changed
-
outletNumber
numberThe Outlet Number
-
typeId
string<nullable>
The new Dynamic Type ID that has been configured for the Outlet
Source
UpdateData
The Update Data for a Compac Sizer Packrun Summary
Type
-
Object
Properties
-
compacSizerId
string<optional>
The Compac Sizer ID this Summary is associated with
-
createdTimestamp
Date<optional>
When this Summary was Created
-
timeBatchId
string<optional>
<nullable>
The Time Batch this Summary is associated with
-
outletSummaries
Array.<CompacSizerPackrunSummaryController.OutletSummary><optional>
An Array of Packrun Summary Data Objects for each Outlet
-
initialOutletProducts
Array.<CompacSizerPackrunSummaryController.InitialOutletProduct><optional>
An Array that contains the Products initially Assigned to each Outlet
-
outletProductChanges
Array.<CompacSizerPackrunSummaryController.OutletProductChange><optional>
An Array of Outlet Product Changes
-
initialOutletTypes
Array.<CompacSizerPackrunSummaryController.InitialOutletType><optional>
An Array that contains the Types initially configured for each Outlet
-
outletTypeChanges
Array.<CompacSizerPackrunSummaryController.OutletTypeChange><optional>
An Array of Outlet Type Changes. Only applies to Outlets configured as Dynamic
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