RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

MAFSizerController

Controller Class for MAF Sizers

Constructor

new MAFSizerController()

Source

Methods

static

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

Create a MAF Sizer [POST /packhouse/sites/{siteId}/maf-sizers]

Parameters

  • siteId number

    The Site ID

  • createData MAFSizerController.CreateData

    The MAF Sizer Create Data

Returns

  • Promise.<MAFSizerModel>

Source

static

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

List all MAF Sizers [GET /packhouse/sites/{siteId}/maf-sizers]

Parameters

  • siteId number

    The Site ID

  • queryParameters MAFSizerController.GetAllQueryParameters <optional>

    The Optional Query Parameters

Returns

  • Promise.<Array.<MAFSizerModel>>

Source

static

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

Retrieve a MAF Sizer [GET /packhouse/sites/{siteId}/maf-sizers/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The MAF Sizer ID

Returns

  • Promise.<MAFSizerModel>

Source

static

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

Update a MAF Sizer [PATCH /packhouse/sites/{siteId}/maf-sizers/{id}]

Parameters

  • siteId number

    The Site ID

  • id string

    The MAF Sizer ID

  • updateData MAFSizerController.UpdateData

    The MAF Sizer Update Data

Returns

  • Promise.<MAFSizerModel>

Source

Type Definitions

CreateData

The Create Data for a MAF Sizer

Type

  • Object

Properties

  • rtuId number <optional>
    <nullable>

    The RTU this MAF Sizer belongs to

  • name string

    The MAF Sizer Name

  • packingLineId string

    The Packing Line ID that manages this MAF Sizer

  • sizerType string

    The Sizer Type

  • autoCreateBatchDelay number <optional>

    The Auto Create Batch Delay in Seconds for this MAF Sizer

  • points Object

    The Points used by this MAF Sizer

  • lanes Array.<MAFSizerController.MAFSizerLane> <optional>

    The Lanes defined for this MAF Sizer

  • outlets Array.<MAFSizerController.MAFSizerOutlet> <optional>

    The Outlets defined for this MAF Sizer

  • fruitSizes Array.<MAFSizerController.MAFSizerFruitSize> <optional>

    The Fruit Sizes defined and handled by this MAF Sizer

  • freshPackIntegration MAFSizerController.FreshPackMAFSizerIntegration <optional>
    <nullable>

    The FreshPack Integration Configuration for this MAF Sizer

  • mafIntegration MAFSizerController.MAFSizerIntegration <optional>
    <nullable>

    The MAF Integration Configuration for this MAF Sizer

  • sources Array.<(MAFSizerController.RiserSource|MAFSizerController.SizerSource)> <optional>

    An Array of Sources that deliver Fruit to this MAF Sizer

  • articleClassTypes Array.<MAFSizerController.ArticleClassType> <optional>

    An Array of Article to Class Type Maps for this MAF Sizer

Source

FreshPackMAFSizerIntegration

A FreshPackMAFSizerIntegration Type

Type

  • Object

Properties

  • points Object

    The Points used by this FreshPack Sizer Integration

  • enabled boolean

    Whether this FreshPack Sizer Integration is Enabled

  • materialGroupId number

    The FreshPack Material Group ID to be used for Multi-Grower Bins from this Sizer

  • binTypeId number

    The FreshPack Bin Type ID to be used for Multi-Grower Bins from this Sizer

  • bulkWeightClassTypes Array.<string>

    An Array of Class Types that should be Sent to FreshPack as Bulk Weights in Multi-Grower Bins

Source

GetAllQueryParameters

The Optional Query Parameters for the getAll Function

Type

  • Object

Properties

  • rtuId number <optional>
    <nullable>

    The RTU this MAF Sizer belongs to

  • name string <optional>

    The MAF Sizer Name

  • packingLineId string <optional>

    The Packing Line ID that manages this MAF Sizer

  • sizerType string <optional>

    The Sizer Type

Source

MAFSizerIntegration

A MAFSizerIntegration Type

Type

  • Object

Properties

  • points Object

    The Points used by this MAF Sizer Integration

  • enabled boolean

    Whether this MAF Sizer Integration is Enabled

  • sizerNumber number

    The MAF Internal Number for this Sizer

  • dumpSizerName string

    The MAF Internal Name of this Sizer when interacting with the MAF Dump API

  • statSizerName string

    The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API

Source

SizerSource

A SizerSource Type

Type

  • Object

Properties

  • type string

    The Source Type

  • sizerId string

    ID of the Sizer Object

  • outletNumbers Array.<number>

    An Array of Outlet Numbers on the Source Sizer that supply this MAF Sizer

Source

UpdateData

The Update Data for a MAF Sizer

Type

  • Object

Properties

  • name string <optional>

    The MAF Sizer Name

  • packingLineId string <optional>

    The Packing Line ID that manages this MAF Sizer

  • sizerType string <optional>

    The Sizer Type

  • autoCreateBatchDelay number <optional>

    The Auto Create Batch Delay in Seconds for this MAF Sizer

  • points Object <optional>

    The Points used by this MAF Sizer

  • lanes Array.<MAFSizerController.MAFSizerLane> <optional>

    The Lanes defined for this MAF Sizer

  • outlets Array.<MAFSizerController.MAFSizerOutlet> <optional>

    The Outlets defined for this MAF Sizer

  • fruitSizes Array.<MAFSizerController.MAFSizerFruitSize> <optional>

    The Fruit Sizes defined and handled by this MAF Sizer

  • freshPackIntegration MAFSizerController.FreshPackMAFSizerIntegration <optional>
    <nullable>

    The FreshPack Integration Configuration for this MAF Sizer

  • mafIntegration MAFSizerController.MAFSizerIntegration <optional>
    <nullable>

    The MAF Integration Configuration for this MAF Sizer

  • sources Array.<(MAFSizerController.RiserSource|MAFSizerController.SizerSource)> <optional>

    An Array of Sources that deliver Fruit to this MAF Sizer

  • articleClassTypes Array.<MAFSizerController.ArticleClassType> <optional>

    An Array of Article to Class Type Maps for this MAF Sizer

Source