RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

MAFSizerPackrunSummaryController

Controller Class for MAF Sizer Packrun Summaries

Constructor

new MAFSizerPackrunSummaryController()

Source

Methods

static

create(siteId, createData) → {Promise.<MAFSizerPackrunSummaryModel>}

Create a MAF Sizer Packrun Summary [POST /packhouse/sites/{siteId}/maf-sizer-packrun-summaries]

Parameters

  • siteId number

    The Site ID

  • createData MAFSizerPackrunSummaryController.CreateData

    The MAF Sizer Packrun Summary Create Data

Returns

  • Promise.<MAFSizerPackrunSummaryModel>

Source

static

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 number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

  • content string

    The Content of the New Comment

Returns

  • Promise.<MAFSizerPackrunSummaryController.CommentItem>

Source

static

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 number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

  • commentId string

    The Comment ID

Returns

  • Promise.<boolean>

Source

static

getAll(siteId, queryParametersopt) → {Promise.<Array.<MAFSizerPackrunSummaryModel>>}

List all MAF Sizer Packrun Summaries [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries]

Parameters

  • siteId number

    The Site ID

  • queryParameters MAFSizerPackrunSummaryController.GetAllQueryParameters <optional>

    The Optional Query Parameters

Returns

  • Promise.<Array.<MAFSizerPackrunSummaryModel>>

Source

static

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 number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

Returns

  • Promise.<Array.<MAFSizerPackrunSummaryController.CommentItem>>

Source

static

getOne(siteId, id) → {Promise.<MAFSizerPackrunSummaryModel>}

Retrieve a MAF Sizer Packrun Summary [GET /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

Returns

  • Promise.<MAFSizerPackrunSummaryModel>

Source

static

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 number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

  • commentId string

    The Comment ID

Returns

  • Promise.<MAFSizerPackrunSummaryController.CommentItem>

Source

static

update(siteId, id, updateData) → {Promise.<MAFSizerPackrunSummaryModel>}

Update a MAF Sizer Packrun Summary [PATCH /packhouse/sites/{siteId}/maf-sizer-packrun-summaries/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

  • updateData MAFSizerPackrunSummaryController.UpdateData

    The MAF Sizer Packrun Summary Update Data

Returns

  • Promise.<MAFSizerPackrunSummaryModel>

Source

static

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 number

    The Site ID

  • id string

    The MAF Sizer Packrun Summary ID

  • commentId string

    The Comment ID

  • content string

    The Updated Content for the Comment

Returns

  • Promise.<MAFSizerPackrunSummaryController.CommentItem>

Source

Type Definitions

CommentItem

A CommentItem Type

Type

  • Object

Properties

  • id string

    The 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 string

    The 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

  • 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

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

  • 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