@ricado/api-client 2.3.23 → 2.3.25
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 +40 -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 +410 -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 +55 -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";
|
|
@@ -14256,6 +14260,9 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
14256
14260
|
currentFocusMeetingId: number;
|
|
14257
14261
|
startFocusMeetingRequest: number;
|
|
14258
14262
|
finishFocusMeetingRequest: number;
|
|
14263
|
+
currentGrowerChangeMeetingId: number;
|
|
14264
|
+
startGrowerChangeMeetingRequest: number;
|
|
14265
|
+
finishGrowerChangeMeetingRequest: number;
|
|
14259
14266
|
shiftSchedules: number;
|
|
14260
14267
|
currentShiftModifyHourlyEntryRequest: number;
|
|
14261
14268
|
currentShiftClass1TraysPerHourTarget: number;
|
|
@@ -15369,6 +15376,291 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
15369
15376
|
import PackrunModel from "@ricado/api-client/Models/Packhouse/Site/PackrunModel";
|
|
15370
15377
|
}
|
|
15371
15378
|
|
|
15379
|
+
declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleController' {
|
|
15380
|
+
export default PrePackSampleController;
|
|
15381
|
+
/**
|
|
15382
|
+
* Controller Class for Pre-Pack Samples
|
|
15383
|
+
*
|
|
15384
|
+
* @class
|
|
15385
|
+
*/
|
|
15386
|
+
class PrePackSampleController {
|
|
15387
|
+
/**
|
|
15388
|
+
* Retrieve a Pre-Pack Sample [GET /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15389
|
+
*
|
|
15390
|
+
* @static
|
|
15391
|
+
* @public
|
|
15392
|
+
* @param {number} siteId The Site ID
|
|
15393
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15394
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15395
|
+
*/
|
|
15396
|
+
static getOne(siteId: number, id: string): Promise<PrePackSampleModel>;
|
|
15397
|
+
/**
|
|
15398
|
+
* Update a Pre-Pack Sample [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15399
|
+
*
|
|
15400
|
+
* @static
|
|
15401
|
+
* @public
|
|
15402
|
+
* @param {number} siteId The Site ID
|
|
15403
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15404
|
+
* @param {PrePackSampleController.UpdateData} updateData The Pre-Pack Sample Update Data
|
|
15405
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15406
|
+
*/
|
|
15407
|
+
static update(siteId: number, id: string, updateData: PrePackSampleController.UpdateData): Promise<PrePackSampleModel>;
|
|
15408
|
+
/**
|
|
15409
|
+
* Delete a Pre-Pack Sample [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15410
|
+
*
|
|
15411
|
+
* @static
|
|
15412
|
+
* @public
|
|
15413
|
+
* @param {number} siteId The Site ID
|
|
15414
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15415
|
+
* @return {Promise<boolean>}
|
|
15416
|
+
*/
|
|
15417
|
+
static delete(siteId: number, id: string): Promise<boolean>;
|
|
15418
|
+
/**
|
|
15419
|
+
* Retrieve Comments [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15420
|
+
*
|
|
15421
|
+
* Retrieves Comments for a Pre-Pack Sample
|
|
15422
|
+
*
|
|
15423
|
+
* @static
|
|
15424
|
+
* @public
|
|
15425
|
+
* @param {number} siteId The Site ID
|
|
15426
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15427
|
+
* @return {Promise<Array<PrePackSampleController.CommentItem>>}
|
|
15428
|
+
*/
|
|
15429
|
+
static getComments(siteId: number, id: string): Promise<Array<PrePackSampleController.CommentItem>>;
|
|
15430
|
+
/**
|
|
15431
|
+
* Create a Comment [POST /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15432
|
+
*
|
|
15433
|
+
* Create a Comment for a Pre-Pack Sample
|
|
15434
|
+
*
|
|
15435
|
+
* @static
|
|
15436
|
+
* @public
|
|
15437
|
+
* @param {number} siteId The Site ID
|
|
15438
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15439
|
+
* @param {string} content The Content of the New Comment
|
|
15440
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15441
|
+
*/
|
|
15442
|
+
static createComment(siteId: number, id: string, content: string): Promise<PrePackSampleController.CommentItem>;
|
|
15443
|
+
/**
|
|
15444
|
+
* Retrieve a Comment [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15445
|
+
*
|
|
15446
|
+
* Retrieves Comments for a Pre-Pack Sample
|
|
15447
|
+
*
|
|
15448
|
+
* @static
|
|
15449
|
+
* @public
|
|
15450
|
+
* @param {number} siteId The Site ID
|
|
15451
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15452
|
+
* @param {string} commentId The Comment ID
|
|
15453
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15454
|
+
*/
|
|
15455
|
+
static getOneComment(siteId: number, id: string, commentId: string): Promise<PrePackSampleController.CommentItem>;
|
|
15456
|
+
/**
|
|
15457
|
+
* Update a Comment [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15458
|
+
*
|
|
15459
|
+
* Update a Comment for a Pre-Pack Sample
|
|
15460
|
+
*
|
|
15461
|
+
* @static
|
|
15462
|
+
* @public
|
|
15463
|
+
* @param {number} siteId The Site ID
|
|
15464
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15465
|
+
* @param {string} commentId The Comment ID
|
|
15466
|
+
* @param {string} content The Updated Content for the Comment
|
|
15467
|
+
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15468
|
+
*/
|
|
15469
|
+
static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<PrePackSampleController.CommentItem>;
|
|
15470
|
+
/**
|
|
15471
|
+
* Delete a Comment [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15472
|
+
*
|
|
15473
|
+
* Delete a Comment for a Pre-Pack Sample
|
|
15474
|
+
*
|
|
15475
|
+
* @static
|
|
15476
|
+
* @public
|
|
15477
|
+
* @param {number} siteId The Site ID
|
|
15478
|
+
* @param {string} id The Pre-Pack Sample ID
|
|
15479
|
+
* @param {string} commentId The Comment ID
|
|
15480
|
+
* @return {Promise<boolean>}
|
|
15481
|
+
*/
|
|
15482
|
+
static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
|
|
15483
|
+
/**
|
|
15484
|
+
* List all Pre-Pack Samples [GET /packhouse/sites/{siteId}/prepack-samples]
|
|
15485
|
+
*
|
|
15486
|
+
* @static
|
|
15487
|
+
* @public
|
|
15488
|
+
* @param {number} siteId The Site ID
|
|
15489
|
+
* @param {PrePackSampleController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
|
|
15490
|
+
* @return {Promise<PrePackSampleModel[]>}
|
|
15491
|
+
*/
|
|
15492
|
+
static getAll(siteId: number, queryParameters?: PrePackSampleController.GetAllQueryParameters | undefined): Promise<PrePackSampleModel[]>;
|
|
15493
|
+
/**
|
|
15494
|
+
* Create a Pre-Pack Sample [POST /packhouse/sites/{siteId}/prepack-samples]
|
|
15495
|
+
*
|
|
15496
|
+
* @static
|
|
15497
|
+
* @public
|
|
15498
|
+
* @param {number} siteId The Site ID
|
|
15499
|
+
* @param {PrePackSampleController.CreateData} createData The Pre-Pack Sample Create Data
|
|
15500
|
+
* @return {Promise<PrePackSampleModel>}
|
|
15501
|
+
*/
|
|
15502
|
+
static create(siteId: number, createData: PrePackSampleController.CreateData): Promise<PrePackSampleModel>;
|
|
15503
|
+
}
|
|
15504
|
+
namespace PrePackSampleController {
|
|
15505
|
+
/**
|
|
15506
|
+
* The Optional Query Parameters for the getAll Function
|
|
15507
|
+
*/
|
|
15508
|
+
export type GetAllQueryParameters = {
|
|
15509
|
+
/**
|
|
15510
|
+
* The Packing Line ID this Sample is associated with
|
|
15511
|
+
*/
|
|
15512
|
+
packingLineId?: string;
|
|
15513
|
+
/**
|
|
15514
|
+
* The Packrun ID this Sample is associated with
|
|
15515
|
+
*/
|
|
15516
|
+
packrunId?: string;
|
|
15517
|
+
/**
|
|
15518
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15519
|
+
*/
|
|
15520
|
+
userId?: string;
|
|
15521
|
+
/**
|
|
15522
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15523
|
+
*/
|
|
15524
|
+
userName?: string;
|
|
15525
|
+
/**
|
|
15526
|
+
* Filter by the Timestamp when Pre-Pack Samples were Created. Results Greater than or Equal to Timestamp
|
|
15527
|
+
*/
|
|
15528
|
+
createdTimestampBegin?: Date;
|
|
15529
|
+
/**
|
|
15530
|
+
* Filter by the Timestamp when Pre-Pack Samples were Created. Results Less than or Equal to Timestamp
|
|
15531
|
+
*/
|
|
15532
|
+
createdTimestampEnd?: Date;
|
|
15533
|
+
/**
|
|
15534
|
+
* Filter by the Timestamp when Pre-Pack Samples were last Updated. Results Greater than or Equal to Timestamp
|
|
15535
|
+
*/
|
|
15536
|
+
updateTimestampBegin?: Date;
|
|
15537
|
+
/**
|
|
15538
|
+
* Filter by the Timestamp when Pre-Pack Samples were last Updated. Results Less than or Equal to Timestamp
|
|
15539
|
+
*/
|
|
15540
|
+
updateTimestampEnd?: Date;
|
|
15541
|
+
};
|
|
15542
|
+
/**
|
|
15543
|
+
* The Create Data for a Pre-Pack Sample
|
|
15544
|
+
*/
|
|
15545
|
+
export type CreateData = {
|
|
15546
|
+
/**
|
|
15547
|
+
* The Packing Line ID this Sample is associated with
|
|
15548
|
+
*/
|
|
15549
|
+
packingLineId: string;
|
|
15550
|
+
/**
|
|
15551
|
+
* The Packrun ID this Sample is associated with
|
|
15552
|
+
*/
|
|
15553
|
+
packrunId?: string;
|
|
15554
|
+
/**
|
|
15555
|
+
* When this Sample was Created
|
|
15556
|
+
*/
|
|
15557
|
+
createdTimestamp?: Date;
|
|
15558
|
+
/**
|
|
15559
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15560
|
+
*/
|
|
15561
|
+
userId: string;
|
|
15562
|
+
/**
|
|
15563
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15564
|
+
*/
|
|
15565
|
+
userName: string;
|
|
15566
|
+
/**
|
|
15567
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
15568
|
+
*/
|
|
15569
|
+
sampleDefects?: SampleDefect[];
|
|
15570
|
+
/**
|
|
15571
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
15572
|
+
*/
|
|
15573
|
+
totalFruitSampled?: number;
|
|
15574
|
+
};
|
|
15575
|
+
/**
|
|
15576
|
+
* The Update Data for a Pre-Pack Sample
|
|
15577
|
+
*/
|
|
15578
|
+
export type UpdateData = {
|
|
15579
|
+
/**
|
|
15580
|
+
* The Packing Line ID this Sample is associated with
|
|
15581
|
+
*/
|
|
15582
|
+
packingLineId?: string;
|
|
15583
|
+
/**
|
|
15584
|
+
* When this Sample was Created
|
|
15585
|
+
*/
|
|
15586
|
+
createdTimestamp?: Date;
|
|
15587
|
+
/**
|
|
15588
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
15589
|
+
*/
|
|
15590
|
+
userId?: string;
|
|
15591
|
+
/**
|
|
15592
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
15593
|
+
*/
|
|
15594
|
+
userName?: string;
|
|
15595
|
+
/**
|
|
15596
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
15597
|
+
*/
|
|
15598
|
+
sampleDefects?: SampleDefect[];
|
|
15599
|
+
/**
|
|
15600
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
15601
|
+
*/
|
|
15602
|
+
totalFruitSampled?: number;
|
|
15603
|
+
};
|
|
15604
|
+
/**
|
|
15605
|
+
* A **UserAccount** Type
|
|
15606
|
+
*/
|
|
15607
|
+
export type UserAccount = {
|
|
15608
|
+
/**
|
|
15609
|
+
* The User Account ID
|
|
15610
|
+
*/
|
|
15611
|
+
id: string | null;
|
|
15612
|
+
/**
|
|
15613
|
+
* The User's First Name
|
|
15614
|
+
*/
|
|
15615
|
+
firstName: string | null;
|
|
15616
|
+
/**
|
|
15617
|
+
* The User's Last Name
|
|
15618
|
+
*/
|
|
15619
|
+
lastName: string | null;
|
|
15620
|
+
};
|
|
15621
|
+
/**
|
|
15622
|
+
* A **CommentItem** Type
|
|
15623
|
+
*/
|
|
15624
|
+
export type CommentItem = {
|
|
15625
|
+
/**
|
|
15626
|
+
* The Comment ID
|
|
15627
|
+
*/
|
|
15628
|
+
id: string;
|
|
15629
|
+
userAccount: UserAccount;
|
|
15630
|
+
/**
|
|
15631
|
+
* The Content of the Comment
|
|
15632
|
+
*/
|
|
15633
|
+
content: string | null;
|
|
15634
|
+
/**
|
|
15635
|
+
* When the Comment was Created
|
|
15636
|
+
*/
|
|
15637
|
+
createdTimestamp: Date | null;
|
|
15638
|
+
/**
|
|
15639
|
+
* When the Comment was last Updated
|
|
15640
|
+
*/
|
|
15641
|
+
updatedTimestamp: Date | null;
|
|
15642
|
+
};
|
|
15643
|
+
/**
|
|
15644
|
+
* A **SampleDefect** Type
|
|
15645
|
+
*/
|
|
15646
|
+
export type SampleDefect = {
|
|
15647
|
+
/**
|
|
15648
|
+
* A String ID for the Defect
|
|
15649
|
+
*/
|
|
15650
|
+
id: string;
|
|
15651
|
+
/**
|
|
15652
|
+
* The Defect Name
|
|
15653
|
+
*/
|
|
15654
|
+
name: string;
|
|
15655
|
+
/**
|
|
15656
|
+
* The Number of Fruit with this Defect
|
|
15657
|
+
*/
|
|
15658
|
+
fruitCount: number;
|
|
15659
|
+
};
|
|
15660
|
+
}
|
|
15661
|
+
import PrePackSampleModel from "@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel";
|
|
15662
|
+
}
|
|
15663
|
+
|
|
15372
15664
|
declare module '@ricado/api-client/Controllers/Packhouse/Site/RejectBinController' {
|
|
15373
15665
|
export default RejectBinController;
|
|
15374
15666
|
/**
|
|
@@ -23093,7 +23385,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23093
23385
|
/**
|
|
23094
23386
|
* The Optional Shift Management Object for this Packing Line
|
|
23095
23387
|
*
|
|
23096
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: 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}}
|
|
23388
|
+
* @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}}
|
|
23097
23389
|
* @public
|
|
23098
23390
|
*/
|
|
23099
23391
|
shiftManagement: {
|
|
@@ -23107,6 +23399,9 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23107
23399
|
currentFocusMeetingId: number;
|
|
23108
23400
|
startFocusMeetingRequest: number;
|
|
23109
23401
|
finishFocusMeetingRequest: number;
|
|
23402
|
+
currentGrowerChangeMeetingId: number;
|
|
23403
|
+
startGrowerChangeMeetingRequest: number;
|
|
23404
|
+
finishGrowerChangeMeetingRequest: number;
|
|
23110
23405
|
shiftSchedules: number;
|
|
23111
23406
|
currentShiftModifyHourlyEntryRequest: number;
|
|
23112
23407
|
currentShiftClass1TraysPerHourTarget: number;
|
|
@@ -23502,6 +23797,120 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
23502
23797
|
import BaseModel from "@ricado/api-client/Models/BaseModel";
|
|
23503
23798
|
}
|
|
23504
23799
|
|
|
23800
|
+
declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
23801
|
+
export default PrePackSampleModel;
|
|
23802
|
+
/**
|
|
23803
|
+
* Model Class for a Pre-Pack Sample
|
|
23804
|
+
*
|
|
23805
|
+
* @class
|
|
23806
|
+
* @hideconstructor
|
|
23807
|
+
* @extends BaseModel
|
|
23808
|
+
*/
|
|
23809
|
+
class PrePackSampleModel extends BaseModel {
|
|
23810
|
+
/**
|
|
23811
|
+
* Create a new **PrePackSampleModel** from a JSON Object or JSON String
|
|
23812
|
+
*
|
|
23813
|
+
* @static
|
|
23814
|
+
* @public
|
|
23815
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
23816
|
+
* @param {number} siteId The Site ID associated with this Pre-Pack Sample
|
|
23817
|
+
* @return {PrePackSampleModel}
|
|
23818
|
+
*/
|
|
23819
|
+
static fromJSON(json: {
|
|
23820
|
+
[x: string]: any;
|
|
23821
|
+
} | string, siteId: number): PrePackSampleModel;
|
|
23822
|
+
/**
|
|
23823
|
+
* PrePackSampleModel Constructor
|
|
23824
|
+
*
|
|
23825
|
+
* @protected
|
|
23826
|
+
* @param {number} siteId The Site ID associated with this Pre-Pack Sample
|
|
23827
|
+
*/
|
|
23828
|
+
protected constructor();
|
|
23829
|
+
/**
|
|
23830
|
+
* The Pre-Pack Sample ID
|
|
23831
|
+
*
|
|
23832
|
+
* @type {string}
|
|
23833
|
+
* @public
|
|
23834
|
+
*/
|
|
23835
|
+
id: string;
|
|
23836
|
+
/**
|
|
23837
|
+
* The Packing Line ID this Sample is associated with
|
|
23838
|
+
*
|
|
23839
|
+
* @type {string}
|
|
23840
|
+
* @public
|
|
23841
|
+
*/
|
|
23842
|
+
packingLineId: string;
|
|
23843
|
+
/**
|
|
23844
|
+
* The Packrun ID this Sample is associated with
|
|
23845
|
+
*
|
|
23846
|
+
* @type {string}
|
|
23847
|
+
* @public
|
|
23848
|
+
*/
|
|
23849
|
+
packrunId: string;
|
|
23850
|
+
/**
|
|
23851
|
+
* When this Sample was Created
|
|
23852
|
+
*
|
|
23853
|
+
* @type {Date}
|
|
23854
|
+
* @public
|
|
23855
|
+
*/
|
|
23856
|
+
createdTimestamp: Date;
|
|
23857
|
+
/**
|
|
23858
|
+
* The ID of the User who created this Pre-Pack Sample
|
|
23859
|
+
*
|
|
23860
|
+
* @type {string}
|
|
23861
|
+
* @public
|
|
23862
|
+
*/
|
|
23863
|
+
userId: string;
|
|
23864
|
+
/**
|
|
23865
|
+
* The Name of the User who created this Pre-Pack Sample
|
|
23866
|
+
*
|
|
23867
|
+
* @type {string}
|
|
23868
|
+
* @public
|
|
23869
|
+
*/
|
|
23870
|
+
userName: string;
|
|
23871
|
+
/**
|
|
23872
|
+
* An Array of Defects found in this Pre-Pack Sample
|
|
23873
|
+
*
|
|
23874
|
+
* @type {Array<{id: string, name: string, fruitCount: number}>}
|
|
23875
|
+
* @public
|
|
23876
|
+
*/
|
|
23877
|
+
sampleDefects: {
|
|
23878
|
+
id: string;
|
|
23879
|
+
name: string;
|
|
23880
|
+
fruitCount: number;
|
|
23881
|
+
}[];
|
|
23882
|
+
/**
|
|
23883
|
+
* The Total Number of Fruit Sampled in this Pre-Pack Sample
|
|
23884
|
+
*
|
|
23885
|
+
* @type {number}
|
|
23886
|
+
* @public
|
|
23887
|
+
*/
|
|
23888
|
+
totalFruitSampled: number;
|
|
23889
|
+
/**
|
|
23890
|
+
* Whether the Pre-Pack Sample has been deleted
|
|
23891
|
+
*
|
|
23892
|
+
* @type {boolean}
|
|
23893
|
+
* @public
|
|
23894
|
+
*/
|
|
23895
|
+
deleted: boolean;
|
|
23896
|
+
/**
|
|
23897
|
+
* When the Pre-Pack Sample was last updated
|
|
23898
|
+
*
|
|
23899
|
+
* @type {Date}
|
|
23900
|
+
* @public
|
|
23901
|
+
*/
|
|
23902
|
+
updateTimestamp: Date;
|
|
23903
|
+
/**
|
|
23904
|
+
* The Site ID associated with this Pre-Pack Sample
|
|
23905
|
+
*
|
|
23906
|
+
* @type {number}
|
|
23907
|
+
* @public
|
|
23908
|
+
*/
|
|
23909
|
+
siteId: number;
|
|
23910
|
+
}
|
|
23911
|
+
import BaseModel from "@ricado/api-client/Models/BaseModel";
|
|
23912
|
+
}
|
|
23913
|
+
|
|
23505
23914
|
declare module '@ricado/api-client/Models/Packhouse/Site/RejectBinModel' {
|
|
23506
23915
|
export default RejectBinModel;
|
|
23507
23916
|
/**
|
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, 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, 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
|