Constructor
new MAFSizerPackrunSummaryController()
Source
Methods
create(siteId, createData) → {Promise.<MAFSizerPackrunSummaryModel>}
Create a MAF Sizer Packrun Summary [POST /packhouse/sites/{siteId}/maf-sizer-packrun-summaries]
Parameters
-
siteId
numberThe Site ID
-
createData
MAFSizerPackrunSummaryController.CreateDataThe MAF Sizer Packrun Summary Create Data
Returns
-
Promise.<MAFSizerPackrunSummaryModel>
Source
createComment(siteId, id, content) → {Promise.<MAFSizerPackrunSummaryController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}/comments]
Create a Comment for a MAF Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
-
content
stringThe Content of the New Comment
Returns
-
Promise.<MAFSizerPackrunSummaryController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a MAF Sizer Packrun Summary [DELETE /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}/comments/{commentId}]
Delete a Comment for a MAF Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<MAFSizerPackrunSummaryModel>>}
List all MAF Sizer Packrun Summaries [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
MAFSizerPackrunSummaryController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<MAFSizerPackrunSummaryModel>>
Source
getComments(siteId, id) → {Promise.<Array.<MAFSizerPackrunSummaryController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}/comments]
Retrieves Comments for a MAF Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
Returns
-
Promise.<Array.<MAFSizerPackrunSummaryController.CommentItem>>
Source
getOne(siteId, id) → {Promise.<MAFSizerPackrunSummaryModel>}
Retrieve a MAF Sizer Packrun Summary [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
Returns
-
Promise.<MAFSizerPackrunSummaryModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<MAFSizerPackrunSummaryController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}/comments/{commentId}]
Retrieves Comments for a MAF Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
Returns
-
Promise.<MAFSizerPackrunSummaryController.CommentItem>
Source
update(siteId, id, updateData) → {Promise.<MAFSizerPackrunSummaryModel>}
Update a MAF Sizer Packrun Summary [PATCH /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
-
updateData
MAFSizerPackrunSummaryController.UpdateDataThe MAF Sizer Packrun Summary Update Data
Returns
-
Promise.<MAFSizerPackrunSummaryModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<MAFSizerPackrunSummaryController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}/comments/{commentId}]
Update a Comment for a MAF Sizer Packrun Summary
Parameters
-
siteId
numberThe Site ID
-
id
stringThe MAF Sizer Packrun Summary ID
-
commentId
stringThe Comment ID
-
content
stringThe Updated Content for the Comment
Returns
-
Promise.<MAFSizerPackrunSummaryController.CommentItem>
Source
Type Definitions
ClassTypeSummary
A ClassTypeSummary Type
Type
-
Object
Properties
-
classType
stringThe Class Type
-
totals
Array.<MAFSizerPackrunSummaryController.ClassTypeTotal>An Array of Totals for the Class Type
Source
ClassTypeTotal
A ClassTypeTotal Type
Type
-
Object
Properties
-
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
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
stringThe Comment ID
-
userAccount
MAFSizerPackrunSummaryController.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 MAF Sizer Packrun Summary
Type
-
Object
Properties
-
mafSizerId
stringThe MAF 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
-
classTypeSummaries
Array.<MAFSizerPackrunSummaryController.ClassTypeSummary><optional>
An Array of Packrun Summary Data Objects for each Class Type
-
outletSummaries
Array.<MAFSizerPackrunSummaryController.OutletSummary><optional>
An Array of Packrun Summary Data Objects for each Outlet
-
initialOutletArticles
Array.<MAFSizerPackrunSummaryController.InitialOutletArticle><optional>
An Array that contains the Articles initially Assigned to each Outlet
-
initialOutletTypes
Array.<MAFSizerPackrunSummaryController.InitialOutletType><optional>
An Array that contains the Types initially configured for each Outlet
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
mafSizerId
string<optional>
The MAF 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 MAF Sizer Packrun Summary was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date<optional>
Filter by the Timestamp when this MAF Sizer Packrun Summary was Created. Results Less than or Equal to Timestamp
Source
InitialOutletArticle
A InitialOutletArticle Type
Type
-
Object
Properties
-
outletNumber
numberThe Outlet Number
-
articleName
string<nullable>
The Name of the Article 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
OutletSummary
A OutletSummary Type
Type
-
Object
Properties
-
name
stringThe Outlet Name
-
type
stringThe Generic Outlet Type
-
number
numberThe Outlet Number
-
totals
Array.<MAFSizerPackrunSummaryController.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
UpdateData
The Update Data for a MAF Sizer Packrun Summary
Type
-
Object
Properties
-
mafSizerId
string<optional>
The MAF 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
-
classTypeSummaries
Array.<MAFSizerPackrunSummaryController.ClassTypeSummary><optional>
An Array of Packrun Summary Data Objects for each Class Type
-
outletSummaries
Array.<MAFSizerPackrunSummaryController.OutletSummary><optional>
An Array of Packrun Summary Data Objects for each Outlet
-
initialOutletArticles
Array.<MAFSizerPackrunSummaryController.InitialOutletArticle><optional>
An Array that contains the Articles initially Assigned to each Outlet
-
initialOutletTypes
Array.<MAFSizerPackrunSummaryController.InitialOutletType><optional>
An Array that contains the Types initially configured for each Outlet
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