@ricado/api-client 2.3.24 → 2.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PrePackSampleController.js +895 -0
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +14 -1
- package/lib/Models/Packhouse/Site/PrePackSampleModel.js +327 -0
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +406 -1
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/src/Controllers/Packhouse/Site/PrePackSampleController.js +1026 -0
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +19 -1
- package/src/Models/Packhouse/Site/PrePackSampleModel.js +324 -0
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4333,6 +4333,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
|
|
|
4333
4333
|
export { PackTypeController };
|
|
4334
4334
|
export { PackingLineController };
|
|
4335
4335
|
export { PackrunController };
|
|
4336
|
+
export { PrePackSampleController };
|
|
4336
4337
|
export { RejectBinController };
|
|
4337
4338
|
export { RejectBinScaleController };
|
|
4338
4339
|
export { RejectBinWeightController };
|
|
@@ -4372,6 +4373,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
|
|
|
4372
4373
|
import PackTypeController from "@ricado/api-client/Controllers/Packhouse/Site/PackTypeController";
|
|
4373
4374
|
import PackingLineController from "@ricado/api-client/Controllers/Packhouse/Site/PackingLineController";
|
|
4374
4375
|
import PackrunController from "@ricado/api-client/Controllers/Packhouse/Site/PackrunController";
|
|
4376
|
+
import PrePackSampleController from "@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleController";
|
|
4375
4377
|
import RejectBinController from "@ricado/api-client/Controllers/Packhouse/Site/RejectBinController";
|
|
4376
4378
|
import RejectBinScaleController from "@ricado/api-client/Controllers/Packhouse/Site/RejectBinScaleController";
|
|
4377
4379
|
import RejectBinWeightController from "@ricado/api-client/Controllers/Packhouse/Site/RejectBinWeightController";
|
|
@@ -5950,6 +5952,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
|
|
|
5950
5952
|
export { PackTypeModel };
|
|
5951
5953
|
export { PackingLineModel };
|
|
5952
5954
|
export { PackrunModel };
|
|
5955
|
+
export { PrePackSampleModel };
|
|
5953
5956
|
export { RejectBinModel };
|
|
5954
5957
|
export { RejectBinScaleModel };
|
|
5955
5958
|
export { RejectBinWeightModel };
|
|
@@ -5989,6 +5992,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
|
|
|
5989
5992
|
import PackTypeModel from "@ricado/api-client/Models/Packhouse/Site/PackTypeModel";
|
|
5990
5993
|
import PackingLineModel from "@ricado/api-client/Models/Packhouse/Site/PackingLineModel";
|
|
5991
5994
|
import PackrunModel from "@ricado/api-client/Models/Packhouse/Site/PackrunModel";
|
|
5995
|
+
import PrePackSampleModel from "@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel";
|
|
5992
5996
|
import RejectBinModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinModel";
|
|
5993
5997
|
import RejectBinScaleModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel";
|
|
5994
5998
|
import RejectBinWeightModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinWeightModel";
|
|
@@ -14276,6 +14280,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
14276
14280
|
currentShiftQualityR600Ideal: number;
|
|
14277
14281
|
currentShiftScorePercentage: number;
|
|
14278
14282
|
class1TraysPerHourTargets: number;
|
|
14283
|
+
class1TraysPerHourAdjustments: number;
|
|
14279
14284
|
costPerTrayTargets: number;
|
|
14280
14285
|
manningTargets: number;
|
|
14281
14286
|
qualityR600IdealTargets: number;
|
|
@@ -15372,6 +15377,291 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
15372
15377
|
import PackrunModel from "@ricado/api-client/Models/Packhouse/Site/PackrunModel";
|
|
15373
15378
|
}
|
|
15374
15379
|
|
|
15380
|
+
declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleController' {
|
|
15381
|
+
export default PrePackSampleController;
|
|
15382
|
+
/**
|
|
15383
|
+
* Controller Class for PrePack Samples
|
|
15384
|
+
*
|
|
15385
|
+
* @class
|
|
15386
|
+
*/
|
|
15387
|
+
class PrePackSampleController {
|
|
15388
|
+
/**
|
|
15389
|
+
* Retrieve a PrePack Sample [GET /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15390
|
+
*
|
|
15391
|
+
* @static
|
|
15392
|
+
* @public
|
|
15393
|
+
* @param {number} siteId The Site ID
|
|
15394
|
+
* @param {string} id The PrePack Sample ID
|
|
15395
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15396
|
+
*/
|
|
15397
|
+
static getOne(siteId: number, id: string): Promise<PrePackSampleModel>;
|
|
15398
|
+
/**
|
|
15399
|
+
* Update a PrePack Sample [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15400
|
+
*
|
|
15401
|
+
* @static
|
|
15402
|
+
* @public
|
|
15403
|
+
* @param {number} siteId The Site ID
|
|
15404
|
+
* @param {string} id The PrePack Sample ID
|
|
15405
|
+
* @param {PrePackSampleController.UpdateData} updateData The PrePack Sample Update Data
|
|
15406
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15407
|
+
*/
|
|
15408
|
+
static update(siteId: number, id: string, updateData: PrePackSampleController.UpdateData): Promise<PrePackSampleModel>;
|
|
15409
|
+
/**
|
|
15410
|
+
* Delete a PrePack Sample [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15411
|
+
*
|
|
15412
|
+
* @static
|
|
15413
|
+
* @public
|
|
15414
|
+
* @param {number} siteId The Site ID
|
|
15415
|
+
* @param {string} id The PrePack Sample ID
|
|
15416
|
+
* @return {Promise<boolean>}
|
|
15417
|
+
*/
|
|
15418
|
+
static delete(siteId: number, id: string): Promise<boolean>;
|
|
15419
|
+
/**
|
|
15420
|
+
* Retrieve Comments [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15421
|
+
*
|
|
15422
|
+
* Retrieves Comments for a PrePack Sample
|
|
15423
|
+
*
|
|
15424
|
+
* @static
|
|
15425
|
+
* @public
|
|
15426
|
+
* @param {number} siteId The Site ID
|
|
15427
|
+
* @param {string} id The PrePack Sample ID
|
|
15428
|
+
* @return {Promise<Array<PrePackSampleController.CommentItem>>}
|
|
15429
|
+
*/
|
|
15430
|
+
static getComments(siteId: number, id: string): Promise<Array<PrePackSampleController.CommentItem>>;
|
|
15431
|
+
/**
|
|
15432
|
+
* Create a Comment [POST /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15433
|
+
*
|
|
15434
|
+
* Create a Comment for a PrePack Sample
|
|
15435
|
+
*
|
|
15436
|
+
* @static
|
|
15437
|
+
* @public
|
|
15438
|
+
* @param {number} siteId The Site ID
|
|
15439
|
+
* @param {string} id The PrePack Sample ID
|
|
15440
|
+
* @param {string} content The Content of the New Comment
|
|
15441
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15442
|
+
*/
|
|
15443
|
+
static createComment(siteId: number, id: string, content: string): Promise<PrePackSampleController.CommentItem>;
|
|
15444
|
+
/**
|
|
15445
|
+
* Retrieve a Comment [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15446
|
+
*
|
|
15447
|
+
* Retrieves Comments for a PrePack Sample
|
|
15448
|
+
*
|
|
15449
|
+
* @static
|
|
15450
|
+
* @public
|
|
15451
|
+
* @param {number} siteId The Site ID
|
|
15452
|
+
* @param {string} id The PrePack Sample ID
|
|
15453
|
+
* @param {string} commentId The Comment ID
|
|
15454
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15455
|
+
*/
|
|
15456
|
+
static getOneComment(siteId: number, id: string, commentId: string): Promise<PrePackSampleController.CommentItem>;
|
|
15457
|
+
/**
|
|
15458
|
+
* Update a Comment [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15459
|
+
*
|
|
15460
|
+
* Update a Comment for a PrePack Sample
|
|
15461
|
+
*
|
|
15462
|
+
* @static
|
|
15463
|
+
* @public
|
|
15464
|
+
* @param {number} siteId The Site ID
|
|
15465
|
+
* @param {string} id The PrePack Sample ID
|
|
15466
|
+
* @param {string} commentId The Comment ID
|
|
15467
|
+
* @param {string} content The Updated Content for the Comment
|
|
15468
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15469
|
+
*/
|
|
15470
|
+
static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<PrePackSampleController.CommentItem>;
|
|
15471
|
+
/**
|
|
15472
|
+
* Delete a Comment [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15473
|
+
*
|
|
15474
|
+
* Delete a Comment for a PrePack Sample
|
|
15475
|
+
*
|
|
15476
|
+
* @static
|
|
15477
|
+
* @public
|
|
15478
|
+
* @param {number} siteId The Site ID
|
|
15479
|
+
* @param {string} id The PrePack Sample ID
|
|
15480
|
+
* @param {string} commentId The Comment ID
|
|
15481
|
+
* @return {Promise<boolean>}
|
|
15482
|
+
*/
|
|
15483
|
+
static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
|
|
15484
|
+
/**
|
|
15485
|
+
* List all PrePack Samples [GET /packhouse/sites/{siteId}/prepack-samples]
|
|
15486
|
+
*
|
|
15487
|
+
* @static
|
|
15488
|
+
* @public
|
|
15489
|
+
* @param {number} siteId The Site ID
|
|
15490
|
+
* @param {PrePackSampleController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
|
|
15491
|
+
* @return {Promise<PrePackSampleModel[]>}
|
|
15492
|
+
*/
|
|
15493
|
+
static getAll(siteId: number, queryParameters?: PrePackSampleController.GetAllQueryParameters | undefined): Promise<PrePackSampleModel[]>;
|
|
15494
|
+
/**
|
|
15495
|
+
* Create a PrePack Sample [POST /packhouse/sites/{siteId}/prepack-samples]
|
|
15496
|
+
*
|
|
15497
|
+
* @static
|
|
15498
|
+
* @public
|
|
15499
|
+
* @param {number} siteId The Site ID
|
|
15500
|
+
* @param {PrePackSampleController.CreateData} createData The PrePack Sample Create Data
|
|
15501
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15502
|
+
*/
|
|
15503
|
+
static create(siteId: number, createData: PrePackSampleController.CreateData): Promise<PrePackSampleModel>;
|
|
15504
|
+
}
|
|
15505
|
+
namespace PrePackSampleController {
|
|
15506
|
+
/**
|
|
15507
|
+
* The Optional Query Parameters for the getAll Function
|
|
15508
|
+
*/
|
|
15509
|
+
export type GetAllQueryParameters = {
|
|
15510
|
+
/**
|
|
15511
|
+
* The Packing Line ID this Sample is associated with
|
|
15512
|
+
*/
|
|
15513
|
+
packingLineId?: string;
|
|
15514
|
+
/**
|
|
15515
|
+
* The Packrun ID this Sample is associated with
|
|
15516
|
+
*/
|
|
15517
|
+
packrunId?: string;
|
|
15518
|
+
/**
|
|
15519
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15520
|
+
*/
|
|
15521
|
+
userId?: string;
|
|
15522
|
+
/**
|
|
15523
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15524
|
+
*/
|
|
15525
|
+
userName?: string;
|
|
15526
|
+
/**
|
|
15527
|
+
* Filter by the Timestamp when Pre-Pack Samples were Created. Results Greater than or Equal to Timestamp
|
|
15528
|
+
*/
|
|
15529
|
+
createdTimestampBegin?: Date;
|
|
15530
|
+
/**
|
|
15531
|
+
* Filter by the Timestamp when Pre-Pack Samples were Created. Results Less than or Equal to Timestamp
|
|
15532
|
+
*/
|
|
15533
|
+
createdTimestampEnd?: Date;
|
|
15534
|
+
/**
|
|
15535
|
+
* Filter by the Timestamp when Pre-Pack Samples were last Updated. Results Greater than or Equal to Timestamp
|
|
15536
|
+
*/
|
|
15537
|
+
updateTimestampBegin?: Date;
|
|
15538
|
+
/**
|
|
15539
|
+
* Filter by the Timestamp when Pre-Pack Samples were last Updated. Results Less than or Equal to Timestamp
|
|
15540
|
+
*/
|
|
15541
|
+
updateTimestampEnd?: Date;
|
|
15542
|
+
};
|
|
15543
|
+
/**
|
|
15544
|
+
* The Create Data for a PrePack Sample
|
|
15545
|
+
*/
|
|
15546
|
+
export type CreateData = {
|
|
15547
|
+
/**
|
|
15548
|
+
* The Packing Line ID this Sample is associated with
|
|
15549
|
+
*/
|
|
15550
|
+
packingLineId: string;
|
|
15551
|
+
/**
|
|
15552
|
+
* The Packrun ID this Sample is associated with
|
|
15553
|
+
*/
|
|
15554
|
+
packrunId?: string;
|
|
15555
|
+
/**
|
|
15556
|
+
* When this Sample was Created
|
|
15557
|
+
*/
|
|
15558
|
+
createdTimestamp?: Date;
|
|
15559
|
+
/**
|
|
15560
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15561
|
+
*/
|
|
15562
|
+
userId: string;
|
|
15563
|
+
/**
|
|
15564
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15565
|
+
*/
|
|
15566
|
+
userName: string;
|
|
15567
|
+
/**
|
|
15568
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
15569
|
+
*/
|
|
15570
|
+
sampleDefects?: SampleDefect[];
|
|
15571
|
+
/**
|
|
15572
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
15573
|
+
*/
|
|
15574
|
+
totalFruitSampled?: number;
|
|
15575
|
+
};
|
|
15576
|
+
/**
|
|
15577
|
+
* The Update Data for a PrePack Sample
|
|
15578
|
+
*/
|
|
15579
|
+
export type UpdateData = {
|
|
15580
|
+
/**
|
|
15581
|
+
* The Packing Line ID this Sample is associated with
|
|
15582
|
+
*/
|
|
15583
|
+
packingLineId?: string;
|
|
15584
|
+
/**
|
|
15585
|
+
* When this Sample was Created
|
|
15586
|
+
*/
|
|
15587
|
+
createdTimestamp?: Date;
|
|
15588
|
+
/**
|
|
15589
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15590
|
+
*/
|
|
15591
|
+
userId?: string;
|
|
15592
|
+
/**
|
|
15593
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15594
|
+
*/
|
|
15595
|
+
userName?: string;
|
|
15596
|
+
/**
|
|
15597
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
15598
|
+
*/
|
|
15599
|
+
sampleDefects?: SampleDefect[];
|
|
15600
|
+
/**
|
|
15601
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
15602
|
+
*/
|
|
15603
|
+
totalFruitSampled?: number;
|
|
15604
|
+
};
|
|
15605
|
+
/**
|
|
15606
|
+
* A **UserAccount** Type
|
|
15607
|
+
*/
|
|
15608
|
+
export type UserAccount = {
|
|
15609
|
+
/**
|
|
15610
|
+
* The User Account ID
|
|
15611
|
+
*/
|
|
15612
|
+
id: string | null;
|
|
15613
|
+
/**
|
|
15614
|
+
* The User's First Name
|
|
15615
|
+
*/
|
|
15616
|
+
firstName: string | null;
|
|
15617
|
+
/**
|
|
15618
|
+
* The User's Last Name
|
|
15619
|
+
*/
|
|
15620
|
+
lastName: string | null;
|
|
15621
|
+
};
|
|
15622
|
+
/**
|
|
15623
|
+
* A **CommentItem** Type
|
|
15624
|
+
*/
|
|
15625
|
+
export type CommentItem = {
|
|
15626
|
+
/**
|
|
15627
|
+
* The Comment ID
|
|
15628
|
+
*/
|
|
15629
|
+
id: string;
|
|
15630
|
+
userAccount: UserAccount;
|
|
15631
|
+
/**
|
|
15632
|
+
* The Content of the Comment
|
|
15633
|
+
*/
|
|
15634
|
+
content: string | null;
|
|
15635
|
+
/**
|
|
15636
|
+
* When the Comment was Created
|
|
15637
|
+
*/
|
|
15638
|
+
createdTimestamp: Date | null;
|
|
15639
|
+
/**
|
|
15640
|
+
* When the Comment was last Updated
|
|
15641
|
+
*/
|
|
15642
|
+
updatedTimestamp: Date | null;
|
|
15643
|
+
};
|
|
15644
|
+
/**
|
|
15645
|
+
* A **SampleDefect** Type
|
|
15646
|
+
*/
|
|
15647
|
+
export type SampleDefect = {
|
|
15648
|
+
/**
|
|
15649
|
+
* A String ID for the Defect
|
|
15650
|
+
*/
|
|
15651
|
+
id: string;
|
|
15652
|
+
/**
|
|
15653
|
+
* The Defect Name
|
|
15654
|
+
*/
|
|
15655
|
+
name: string;
|
|
15656
|
+
/**
|
|
15657
|
+
* The Number of Fruit with this Defect
|
|
15658
|
+
*/
|
|
15659
|
+
fruitCount: number;
|
|
15660
|
+
};
|
|
15661
|
+
}
|
|
15662
|
+
import PrePackSampleModel from "@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel";
|
|
15663
|
+
}
|
|
15664
|
+
|
|
15375
15665
|
declare module '@ricado/api-client/Controllers/Packhouse/Site/RejectBinController' {
|
|
15376
15666
|
export default RejectBinController;
|
|
15377
15667
|
/**
|
|
@@ -23096,7 +23386,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23096
23386
|
/**
|
|
23097
23387
|
* The Optional Shift Management Object for this Packing Line
|
|
23098
23388
|
*
|
|
23099
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
23389
|
+
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
23100
23390
|
* @public
|
|
23101
23391
|
*/
|
|
23102
23392
|
shiftManagement: {
|
|
@@ -23130,6 +23420,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23130
23420
|
currentShiftQualityR600Ideal: number;
|
|
23131
23421
|
currentShiftScorePercentage: number;
|
|
23132
23422
|
class1TraysPerHourTargets: number;
|
|
23423
|
+
class1TraysPerHourAdjustments: number;
|
|
23133
23424
|
costPerTrayTargets: number;
|
|
23134
23425
|
manningTargets: number;
|
|
23135
23426
|
qualityR600IdealTargets: number;
|
|
@@ -23508,6 +23799,120 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
23508
23799
|
import BaseModel from "@ricado/api-client/Models/BaseModel";
|
|
23509
23800
|
}
|
|
23510
23801
|
|
|
23802
|
+
declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
23803
|
+
export default PrePackSampleModel;
|
|
23804
|
+
/**
|
|
23805
|
+
* Model Class for a PrePack Sample
|
|
23806
|
+
*
|
|
23807
|
+
* @class
|
|
23808
|
+
* @hideconstructor
|
|
23809
|
+
* @extends BaseModel
|
|
23810
|
+
*/
|
|
23811
|
+
class PrePackSampleModel extends BaseModel {
|
|
23812
|
+
/**
|
|
23813
|
+
* Create a new **PrePackSampleModel** from a JSON Object or JSON String
|
|
23814
|
+
*
|
|
23815
|
+
* @static
|
|
23816
|
+
* @public
|
|
23817
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
23818
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
23819
|
+
* @return {PrePackSampleModel}
|
|
23820
|
+
*/
|
|
23821
|
+
static fromJSON(json: {
|
|
23822
|
+
[x: string]: any;
|
|
23823
|
+
} | string, siteId: number): PrePackSampleModel;
|
|
23824
|
+
/**
|
|
23825
|
+
* PrePackSampleModel Constructor
|
|
23826
|
+
*
|
|
23827
|
+
* @protected
|
|
23828
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
23829
|
+
*/
|
|
23830
|
+
protected constructor();
|
|
23831
|
+
/**
|
|
23832
|
+
* The PrePack Sample ID
|
|
23833
|
+
*
|
|
23834
|
+
* @type {string}
|
|
23835
|
+
* @public
|
|
23836
|
+
*/
|
|
23837
|
+
id: string;
|
|
23838
|
+
/**
|
|
23839
|
+
* The Packing Line ID this Sample is associated with
|
|
23840
|
+
*
|
|
23841
|
+
* @type {string}
|
|
23842
|
+
* @public
|
|
23843
|
+
*/
|
|
23844
|
+
packingLineId: string;
|
|
23845
|
+
/**
|
|
23846
|
+
* The Packrun ID this Sample is associated with
|
|
23847
|
+
*
|
|
23848
|
+
* @type {string}
|
|
23849
|
+
* @public
|
|
23850
|
+
*/
|
|
23851
|
+
packrunId: string;
|
|
23852
|
+
/**
|
|
23853
|
+
* When this Sample was Created
|
|
23854
|
+
*
|
|
23855
|
+
* @type {Date}
|
|
23856
|
+
* @public
|
|
23857
|
+
*/
|
|
23858
|
+
createdTimestamp: Date;
|
|
23859
|
+
/**
|
|
23860
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
23861
|
+
*
|
|
23862
|
+
* @type {string}
|
|
23863
|
+
* @public
|
|
23864
|
+
*/
|
|
23865
|
+
userId: string;
|
|
23866
|
+
/**
|
|
23867
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
23868
|
+
*
|
|
23869
|
+
* @type {string}
|
|
23870
|
+
* @public
|
|
23871
|
+
*/
|
|
23872
|
+
userName: string;
|
|
23873
|
+
/**
|
|
23874
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
23875
|
+
*
|
|
23876
|
+
* @type {Array<{id: string, name: string, fruitCount: number}>}
|
|
23877
|
+
* @public
|
|
23878
|
+
*/
|
|
23879
|
+
sampleDefects: {
|
|
23880
|
+
id: string;
|
|
23881
|
+
name: string;
|
|
23882
|
+
fruitCount: number;
|
|
23883
|
+
}[];
|
|
23884
|
+
/**
|
|
23885
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
23886
|
+
*
|
|
23887
|
+
* @type {number}
|
|
23888
|
+
* @public
|
|
23889
|
+
*/
|
|
23890
|
+
totalFruitSampled: number;
|
|
23891
|
+
/**
|
|
23892
|
+
* Whether the PrePack Sample has been deleted
|
|
23893
|
+
*
|
|
23894
|
+
* @type {boolean}
|
|
23895
|
+
* @public
|
|
23896
|
+
*/
|
|
23897
|
+
deleted: boolean;
|
|
23898
|
+
/**
|
|
23899
|
+
* When the PrePack Sample was last updated
|
|
23900
|
+
*
|
|
23901
|
+
* @type {Date}
|
|
23902
|
+
* @public
|
|
23903
|
+
*/
|
|
23904
|
+
updateTimestamp: Date;
|
|
23905
|
+
/**
|
|
23906
|
+
* The Site ID associated with this PrePack Sample
|
|
23907
|
+
*
|
|
23908
|
+
* @type {number}
|
|
23909
|
+
* @public
|
|
23910
|
+
*/
|
|
23911
|
+
siteId: number;
|
|
23912
|
+
}
|
|
23913
|
+
import BaseModel from "@ricado/api-client/Models/BaseModel";
|
|
23914
|
+
}
|
|
23915
|
+
|
|
23511
23916
|
declare module '@ricado/api-client/Models/Packhouse/Site/RejectBinModel' {
|
|
23512
23917
|
export default RejectBinModel;
|
|
23513
23918
|
/**
|
package/package.json
CHANGED
|
@@ -494,7 +494,7 @@ export default PackingLineController;
|
|
|
494
494
|
* A **ShiftManagement** Type
|
|
495
495
|
*
|
|
496
496
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
497
|
-
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
497
|
+
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
498
498
|
* @property {Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>} customQualityConfiguration An Optional Array of Configuration Data for Custom Qualities in Shift Management
|
|
499
499
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
500
500
|
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|