RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

BinTipWeightController

Controller Class for Bin Tip Weights

Constructor

new BinTipWeightController()

Source

Methods

static

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

static

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

static

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

static

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

static

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

static

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

static

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

static

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

static

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