Constructor
new BinTipWeightController()
Source
Methods
create(siteId, createData) → {Promise.<BinTipWeightModel>}
Create a Bin Tip Weight [POST /packhouse/sites/{siteId}/bin-tip-weights]
Parameters
-
siteId
number
The Site ID
-
createData
BinTipWeightController.CreateData
The Bin Tip Weight Create Data
Returns
-
Promise.<BinTipWeightModel>
Source
createComment(siteId, id, content) → {Promise.<BinTipWeightController.CommentItem>}
Create a Comment [POST /packhouse/sites/{siteId}/bin-tip-weights/{id}/comments]
Create a Comment for a Bin Tip Weight
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
-
content
string
The Content of the New Comment
Returns
-
Promise.<BinTipWeightController.CommentItem>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Bin Tip Weight [DELETE /packhouse/sites/{siteId}/bin-tip-weights/{id}]
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
Returns
-
Promise.<boolean>
Source
deleteOneComment(siteId, id, commentId) → {Promise.<boolean>}
Delete a Comment [DELETE /packhouse/sites/{siteId}/bin-tip-weights/{id}/comments/{commentId}]
Delete a Comment for a Bin Tip Weight
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
-
commentId
string
The Comment ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<BinTipWeightModel>>}
List all Bin Tip Weights [GET /packhouse/sites/{siteId}/bin-tip-weights]
Parameters
-
siteId
number
The Site ID
-
queryParameters
BinTipWeightController.GetAllQueryParameters
<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<BinTipWeightModel>>
Source
getComments(siteId, id) → {Promise.<Array.<BinTipWeightController.CommentItem>>}
Retrieve Comments [GET /packhouse/sites/{siteId}/bin-tip-weights/{id}/comments]
Retrieves Comments for a Bin Tip Weight
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
Returns
-
Promise.<Array.<BinTipWeightController.CommentItem>>
Source
getOne(siteId, id) → {Promise.<BinTipWeightModel>}
Retrieve a Bin Tip Weight [GET /packhouse/sites/{siteId}/bin-tip-weights/{id}]
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
Returns
-
Promise.<BinTipWeightModel>
Source
getOneComment(siteId, id, commentId) → {Promise.<BinTipWeightController.CommentItem>}
Retrieve a Comment [GET /packhouse/sites/{siteId}/bin-tip-weights/{id}/comments/{commentId}]
Retrieves Comments for a Bin Tip Weight
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
-
commentId
string
The Comment ID
Returns
-
Promise.<BinTipWeightController.CommentItem>
Source
update(siteId, id, updateData) → {Promise.<BinTipWeightModel>}
Update a Bin Tip Weight [PATCH /packhouse/sites/{siteId}/bin-tip-weights/{id}]
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
-
updateData
BinTipWeightController.UpdateData
The Bin Tip Weight Update Data
Returns
-
Promise.<BinTipWeightModel>
Source
updateOneComment(siteId, id, commentId, content) → {Promise.<BinTipWeightController.CommentItem>}
Update a Comment [PATCH /packhouse/sites/{siteId}/bin-tip-weights/{id}/comments/{commentId}]
Update a Comment for a Bin Tip Weight
Parameters
-
siteId
number
The Site ID
-
id
string
The Bin Tip Weight ID
-
commentId
string
The Comment ID
-
content
string
The Updated Content for the Comment
Returns
-
Promise.<BinTipWeightController.CommentItem>
Source
Type Definitions
CommentItem
A CommentItem Type
Type
-
Object
Properties
-
id
string
The Comment ID
-
userAccount
BinTipWeightController.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 Bin Tip Weight
Type
-
Object
Properties
-
binTipId
string
The Bin Tip ID associated with this Bin Weight
-
packrunId
string
<optional>
The Packrun ID associated with this Bin Weight
-
createdTimestamp
Date
<optional>
When this Bin Weight was Created
-
weightType
string
The Bin Weight Type
-
weight
number
The Bin Weight
-
binScaleId
string
<optional>
<nullable>
The Bin Scale ID associated with this Bin Weight
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
binTipId
string
<optional>
The Bin Tip ID associated with this Bin Weight
-
packrunId
string
<optional>
The Packrun ID associated with this Bin Weight
-
weightType
string
<optional>
The Bin Weight Type
-
binScaleId
string
<optional>
<nullable>
The Bin Scale ID associated with this Bin Weight
-
createdTimestampBegin
Date
<optional>
Filter by the Timestamp when this Bin Tip Weight was Created. Results Greater than or Equal to Timestamp
-
createdTimestampEnd
Date
<optional>
Filter by the Timestamp when this Bin Tip Weight was Created. Results Less than or Equal to Timestamp
Source
UpdateData
The Update Data for a Bin Tip Weight
Type
-
Object
Properties
-
binTipId
string
<optional>
The Bin Tip ID associated with this Bin Weight
-
createdTimestamp
Date
<optional>
When this Bin Weight was Created
-
weightType
string
<optional>
The Bin Weight Type
-
weight
number
<optional>
The Bin Weight
-
binScaleId
string
<optional>
<nullable>
The Bin Scale ID associated with this Bin Weight
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