@ricado/api-client 2.3.5 → 2.3.6

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/lib/index.d.ts CHANGED
@@ -3155,6 +3155,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3155
3155
  export { ShiftQualitySummaryController };
3156
3156
  export { ShiftTaskController };
3157
3157
  export { SoftSortBeltController };
3158
+ export { SoftSortPackrunSummaryController };
3158
3159
  export { VarietyController };
3159
3160
  }
3160
3161
  import BinTipBinController from "@ricado/api-client/Controllers/Packhouse/Site/BinTipBinController";
@@ -3181,6 +3182,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3181
3182
  import ShiftQualitySummaryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController";
3182
3183
  import ShiftTaskController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskController";
3183
3184
  import SoftSortBeltController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortBeltController";
3185
+ import SoftSortPackrunSummaryController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortPackrunSummaryController";
3184
3186
  import VarietyController from "@ricado/api-client/Controllers/Packhouse/Site/VarietyController";
3185
3187
  }
3186
3188
 
@@ -4746,6 +4748,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4746
4748
  export { ShiftQualitySummaryModel };
4747
4749
  export { ShiftTaskModel };
4748
4750
  export { SoftSortBeltModel };
4751
+ export { SoftSortPackrunSummaryModel };
4749
4752
  export { VarietyModel };
4750
4753
  }
4751
4754
  import BinTipBinModel from "@ricado/api-client/Models/Packhouse/Site/BinTipBinModel";
@@ -4772,6 +4775,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4772
4775
  import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
4773
4776
  import ShiftTaskModel from "@ricado/api-client/Models/Packhouse/Site/ShiftTaskModel";
4774
4777
  import SoftSortBeltModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortBeltModel";
4778
+ import SoftSortPackrunSummaryModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortPackrunSummaryModel";
4775
4779
  import VarietyModel from "@ricado/api-client/Models/Packhouse/Site/VarietyModel";
4776
4780
  }
4777
4781
 
@@ -11683,6 +11687,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummar
11683
11687
  * The Shift ID this Quality Summary is asssociated with
11684
11688
  */
11685
11689
  shiftId?: string;
11690
+ /**
11691
+ * When this Quality Summary was Published
11692
+ */
11693
+ publishTimestamp?: Date | null;
11686
11694
  /**
11687
11695
  * The User ID of the Quality Manager for this Summary
11688
11696
  */
@@ -12432,6 +12440,298 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/SoftSortBeltContro
12432
12440
  import SoftSortBeltModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortBeltModel";
12433
12441
  }
12434
12442
 
12443
+ declare module '@ricado/api-client/Controllers/Packhouse/Site/SoftSortPackrunSummaryController' {
12444
+ export default SoftSortPackrunSummaryController;
12445
+ /**
12446
+ * Controller Class for Soft-Sort Packrun Summaries
12447
+ *
12448
+ * @class
12449
+ */
12450
+ class SoftSortPackrunSummaryController {
12451
+ /**
12452
+ * Retrieve a Soft-Sort Packrun Summary [GET /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}]
12453
+ *
12454
+ * @static
12455
+ * @public
12456
+ * @param {number} siteId The Site ID
12457
+ * @param {string} id The Soft-Sort Packrun Summary ID
12458
+ * @return {Promise<SoftSortPackrunSummaryModel>}
12459
+ */
12460
+ static getOne(siteId: number, id: string): Promise<SoftSortPackrunSummaryModel>;
12461
+ /**
12462
+ * Update a Soft-Sort Packrun Summary [PATCH /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}]
12463
+ *
12464
+ * @static
12465
+ * @public
12466
+ * @param {number} siteId The Site ID
12467
+ * @param {string} id The Soft-Sort Packrun Summary ID
12468
+ * @param {SoftSortPackrunSummaryController.UpdateData} updateData The Soft-Sort Packrun Summary Update Data
12469
+ * @return {Promise<SoftSortPackrunSummaryModel>}
12470
+ */
12471
+ static update(siteId: number, id: string, updateData: SoftSortPackrunSummaryController.UpdateData): Promise<SoftSortPackrunSummaryModel>;
12472
+ /**
12473
+ * Delete a Soft-Sort Packrun Summary [DELETE /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}]
12474
+ *
12475
+ * @static
12476
+ * @public
12477
+ * @param {number} siteId The Site ID
12478
+ * @param {string} id The Soft-Sort Packrun Summary ID
12479
+ * @return {Promise<boolean>}
12480
+ */
12481
+ static delete(siteId: number, id: string): Promise<boolean>;
12482
+ /**
12483
+ * Retrieve Comments [GET /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}/comments]
12484
+ *
12485
+ * Retrieves Comments for a Soft-Sort Packrun Summary
12486
+ *
12487
+ * @static
12488
+ * @public
12489
+ * @param {number} siteId The Site ID
12490
+ * @param {string} id The Soft-Sort Packrun Summary ID
12491
+ * @return {Promise<Array<SoftSortPackrunSummaryController.CommentItem>>}
12492
+ */
12493
+ static getComments(siteId: number, id: string): Promise<Array<SoftSortPackrunSummaryController.CommentItem>>;
12494
+ /**
12495
+ * Create a Comment [POST /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}/comments]
12496
+ *
12497
+ * Create a Comment for a Soft-Sort Packrun Summary
12498
+ *
12499
+ * @static
12500
+ * @public
12501
+ * @param {number} siteId The Site ID
12502
+ * @param {string} id The Soft-Sort Packrun Summary ID
12503
+ * @param {string} content The Content of the New Comment
12504
+ * @return {Promise<SoftSortPackrunSummaryController.CommentItem>}
12505
+ */
12506
+ static createComment(siteId: number, id: string, content: string): Promise<SoftSortPackrunSummaryController.CommentItem>;
12507
+ /**
12508
+ * Retrieve a Comment [GET /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}/comments/{commentId}]
12509
+ *
12510
+ * Retrieves Comments for a Soft-Sort Packrun Summary
12511
+ *
12512
+ * @static
12513
+ * @public
12514
+ * @param {number} siteId The Site ID
12515
+ * @param {string} id The Soft-Sort Packrun Summary ID
12516
+ * @param {string} commentId The Comment ID
12517
+ * @return {Promise<SoftSortPackrunSummaryController.CommentItem>}
12518
+ */
12519
+ static getOneComment(siteId: number, id: string, commentId: string): Promise<SoftSortPackrunSummaryController.CommentItem>;
12520
+ /**
12521
+ * Update a Comment [PATCH /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}/comments/{commentId}]
12522
+ *
12523
+ * Update a Comment for a Soft-Sort Packrun Summary
12524
+ *
12525
+ * @static
12526
+ * @public
12527
+ * @param {number} siteId The Site ID
12528
+ * @param {string} id The Soft-Sort Packrun Summary ID
12529
+ * @param {string} commentId The Comment ID
12530
+ * @param {string} content The Updated Content for the Comment
12531
+ * @return {Promise<SoftSortPackrunSummaryController.CommentItem>}
12532
+ */
12533
+ static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<SoftSortPackrunSummaryController.CommentItem>;
12534
+ /**
12535
+ * Delete a Comment [DELETE /packhouse/sites/{siteId}/softsort-packrun-summaries/{id}/comments/{commentId}]
12536
+ *
12537
+ * Delete a Comment for a Soft-Sort Packrun Summary
12538
+ *
12539
+ * @static
12540
+ * @public
12541
+ * @param {number} siteId The Site ID
12542
+ * @param {string} id The Soft-Sort Packrun Summary ID
12543
+ * @param {string} commentId The Comment ID
12544
+ * @return {Promise<boolean>}
12545
+ */
12546
+ static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
12547
+ /**
12548
+ * List all Soft-Sort Packrun Summaries [GET /packhouse/sites/{siteId}/softsort-packrun-summaries]
12549
+ *
12550
+ * @static
12551
+ * @public
12552
+ * @param {number} siteId The Site ID
12553
+ * @param {SoftSortPackrunSummaryController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
12554
+ * @return {Promise<SoftSortPackrunSummaryModel[]>}
12555
+ */
12556
+ static getAll(siteId: number, queryParameters?: SoftSortPackrunSummaryController.GetAllQueryParameters | undefined): Promise<SoftSortPackrunSummaryModel[]>;
12557
+ /**
12558
+ * Create a Soft-Sort Packrun Summary [POST /packhouse/sites/{siteId}/softsort-packrun-summaries]
12559
+ *
12560
+ * @static
12561
+ * @public
12562
+ * @param {number} siteId The Site ID
12563
+ * @param {SoftSortPackrunSummaryController.CreateData} createData The Soft-Sort Packrun Summary Create Data
12564
+ * @return {Promise<SoftSortPackrunSummaryModel>}
12565
+ */
12566
+ static create(siteId: number, createData: SoftSortPackrunSummaryController.CreateData): Promise<SoftSortPackrunSummaryModel>;
12567
+ }
12568
+ namespace SoftSortPackrunSummaryController {
12569
+ /**
12570
+ * The Optional Query Parameters for the getAll Function
12571
+ */
12572
+ export type GetAllQueryParameters = {
12573
+ /**
12574
+ * The Packing Line ID this Summary is associated with
12575
+ */
12576
+ packingLineId?: string;
12577
+ /**
12578
+ * The Packrun ID this Summary is associated with
12579
+ */
12580
+ packrunId?: string;
12581
+ /**
12582
+ * Whether the Soft-Sort Events Data for this Summary has been Finalized
12583
+ */
12584
+ eventsFinalizedTimestamp?: Date | null;
12585
+ /**
12586
+ * Whether the Soft-Sort Events for this Summary are considered accurate or not
12587
+ */
12588
+ eventsAccurate?: boolean | null;
12589
+ /**
12590
+ * Filter by the Timestamp when this Soft-Sort Packrun Summary was Created. Results Greater than or Equal to Timestamp
12591
+ */
12592
+ createdTimestampBegin?: Date;
12593
+ /**
12594
+ * Filter by the Timestamp when this Soft-Sort Packrun Summary was Created. Results Less than or Equal to Timestamp
12595
+ */
12596
+ createdTimestampEnd?: Date;
12597
+ };
12598
+ /**
12599
+ * The Create Data for a Soft-Sort Packrun Summary
12600
+ */
12601
+ export type CreateData = {
12602
+ /**
12603
+ * The Packing Line ID this Summary is associated with
12604
+ */
12605
+ packingLineId: string;
12606
+ /**
12607
+ * The Packrun ID this Summary is associated with
12608
+ */
12609
+ packrunId?: string;
12610
+ /**
12611
+ * When this Summary was Created
12612
+ */
12613
+ createdTimestamp?: Date;
12614
+ /**
12615
+ * The Number of Soft-Sort Events per Bin Tipped
12616
+ */
12617
+ eventsPerBin: number;
12618
+ /**
12619
+ * The Number of Soft-Sort Events that occurred for the Packrun
12620
+ */
12621
+ totalEventsCount: number;
12622
+ /**
12623
+ * The Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
12624
+ */
12625
+ averageEventsDuration: number;
12626
+ /**
12627
+ * The Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
12628
+ */
12629
+ totalEventsDuration: number;
12630
+ /**
12631
+ * Whether the Soft-Sort Events Data for this Summary has been Finalized
12632
+ */
12633
+ eventsFinalizedTimestamp?: Date | null;
12634
+ /**
12635
+ * Whether the Soft-Sort Events for this Summary are considered accurate or not
12636
+ */
12637
+ eventsAccurate?: boolean | null;
12638
+ /**
12639
+ * A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
12640
+ */
12641
+ eventsNotAccurateReason?: string | null;
12642
+ /**
12643
+ * The FreshPack Soft-Sort API Data
12644
+ */
12645
+ freshPackSoftSortApi?: any;
12646
+ };
12647
+ /**
12648
+ * The Update Data for a Soft-Sort Packrun Summary
12649
+ */
12650
+ export type UpdateData = {
12651
+ /**
12652
+ * The Packing Line ID this Summary is associated with
12653
+ */
12654
+ packingLineId?: string;
12655
+ /**
12656
+ * When this Summary was Created
12657
+ */
12658
+ createdTimestamp?: Date;
12659
+ /**
12660
+ * The Number of Soft-Sort Events per Bin Tipped
12661
+ */
12662
+ eventsPerBin?: number;
12663
+ /**
12664
+ * The Number of Soft-Sort Events that occurred for the Packrun
12665
+ */
12666
+ totalEventsCount?: number;
12667
+ /**
12668
+ * The Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
12669
+ */
12670
+ averageEventsDuration?: number;
12671
+ /**
12672
+ * The Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
12673
+ */
12674
+ totalEventsDuration?: number;
12675
+ /**
12676
+ * Whether the Soft-Sort Events Data for this Summary has been Finalized
12677
+ */
12678
+ eventsFinalizedTimestamp?: Date | null;
12679
+ /**
12680
+ * Whether the Soft-Sort Events for this Summary are considered accurate or not
12681
+ */
12682
+ eventsAccurate?: boolean | null;
12683
+ /**
12684
+ * A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
12685
+ */
12686
+ eventsNotAccurateReason?: string | null;
12687
+ /**
12688
+ * The FreshPack Soft-Sort API Data
12689
+ */
12690
+ freshPackSoftSortApi?: any;
12691
+ };
12692
+ /**
12693
+ * A **UserAccount** Type
12694
+ */
12695
+ export type UserAccount = {
12696
+ /**
12697
+ * The User Account ID
12698
+ */
12699
+ id: string | null;
12700
+ /**
12701
+ * The User's First Name
12702
+ */
12703
+ firstName: string | null;
12704
+ /**
12705
+ * The User's Last Name
12706
+ */
12707
+ lastName: string | null;
12708
+ };
12709
+ /**
12710
+ * A **CommentItem** Type
12711
+ */
12712
+ export type CommentItem = {
12713
+ /**
12714
+ * The Comment ID
12715
+ */
12716
+ id: string;
12717
+ userAccount: UserAccount;
12718
+ /**
12719
+ * The Content of the Comment
12720
+ */
12721
+ content: string | null;
12722
+ /**
12723
+ * When the Comment was Created
12724
+ */
12725
+ createdTimestamp: Date | null;
12726
+ /**
12727
+ * When the Comment was last Updated
12728
+ */
12729
+ updatedTimestamp: Date | null;
12730
+ };
12731
+ }
12732
+ import SoftSortPackrunSummaryModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortPackrunSummaryModel";
12733
+ }
12734
+
12435
12735
  declare module '@ricado/api-client/Controllers/Packhouse/Site/VarietyController' {
12436
12736
  export default VarietyController;
12437
12737
  /**
@@ -15884,6 +16184,144 @@ declare module '@ricado/api-client/Models/Packhouse/Site/SoftSortBeltModel' {
15884
16184
  import BaseModel from "@ricado/api-client/Models/BaseModel";
15885
16185
  }
15886
16186
 
16187
+ declare module '@ricado/api-client/Models/Packhouse/Site/SoftSortPackrunSummaryModel' {
16188
+ export default SoftSortPackrunSummaryModel;
16189
+ /**
16190
+ * Model Class for a Soft-Sort Packrun Summary
16191
+ *
16192
+ * @class
16193
+ * @hideconstructor
16194
+ * @extends BaseModel
16195
+ */
16196
+ class SoftSortPackrunSummaryModel extends BaseModel {
16197
+ /**
16198
+ * Create a new **SoftSortPackrunSummaryModel** from a JSON Object or JSON String
16199
+ *
16200
+ * @static
16201
+ * @public
16202
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
16203
+ * @param {number} siteId The Site ID associated with this Soft-Sort Packrun Summary
16204
+ * @return {SoftSortPackrunSummaryModel}
16205
+ */
16206
+ static fromJSON(json: {
16207
+ [x: string]: any;
16208
+ } | string, siteId: number): SoftSortPackrunSummaryModel;
16209
+ /**
16210
+ * SoftSortPackrunSummaryModel Constructor
16211
+ *
16212
+ * @protected
16213
+ * @param {number} siteId The Site ID associated with this Soft-Sort Packrun Summary
16214
+ */
16215
+ protected constructor();
16216
+ /**
16217
+ * The Soft-Sort Packrun Summary ID
16218
+ *
16219
+ * @type {string}
16220
+ * @public
16221
+ */
16222
+ id: string;
16223
+ /**
16224
+ * The Packing Line ID this Summary is associated with
16225
+ *
16226
+ * @type {string}
16227
+ * @public
16228
+ */
16229
+ packingLineId: string;
16230
+ /**
16231
+ * The Packrun ID this Summary is associated with
16232
+ *
16233
+ * @type {string}
16234
+ * @public
16235
+ */
16236
+ packrunId: string;
16237
+ /**
16238
+ * When this Summary was Created
16239
+ *
16240
+ * @type {Date}
16241
+ * @public
16242
+ */
16243
+ createdTimestamp: Date;
16244
+ /**
16245
+ * The Number of Soft-Sort Events per Bin Tipped
16246
+ *
16247
+ * @type {number}
16248
+ * @public
16249
+ */
16250
+ eventsPerBin: number;
16251
+ /**
16252
+ * The Number of Soft-Sort Events that occurred for the Packrun
16253
+ *
16254
+ * @type {number}
16255
+ * @public
16256
+ */
16257
+ totalEventsCount: number;
16258
+ /**
16259
+ * The Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
16260
+ *
16261
+ * @type {number}
16262
+ * @public
16263
+ */
16264
+ averageEventsDuration: number;
16265
+ /**
16266
+ * The Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
16267
+ *
16268
+ * @type {number}
16269
+ * @public
16270
+ */
16271
+ totalEventsDuration: number;
16272
+ /**
16273
+ * Whether the Soft-Sort Events Data for this Summary has been Finalized
16274
+ *
16275
+ * @type {?Date}
16276
+ * @public
16277
+ */
16278
+ eventsFinalizedTimestamp: Date | null;
16279
+ /**
16280
+ * Whether the Soft-Sort Events for this Summary are considered accurate or not
16281
+ *
16282
+ * @type {?boolean}
16283
+ * @public
16284
+ */
16285
+ eventsAccurate: boolean | null;
16286
+ /**
16287
+ * A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
16288
+ *
16289
+ * @type {?string}
16290
+ * @public
16291
+ */
16292
+ eventsNotAccurateReason: string | null;
16293
+ /**
16294
+ * The FreshPack Soft-Sort API Data
16295
+ *
16296
+ * @type {?Object}
16297
+ * @public
16298
+ */
16299
+ freshPackSoftSortApi: any | null;
16300
+ /**
16301
+ * Whether the Soft-Sort Packrun Summary has been deleted
16302
+ *
16303
+ * @type {boolean}
16304
+ * @public
16305
+ */
16306
+ deleted: boolean;
16307
+ /**
16308
+ * When the Soft-Sort Packrun Summary was last updated
16309
+ *
16310
+ * @type {Date}
16311
+ * @public
16312
+ */
16313
+ updateTimestamp: Date;
16314
+ /**
16315
+ * The Site ID associated with this Soft-Sort Packrun Summary
16316
+ *
16317
+ * @type {number}
16318
+ * @public
16319
+ */
16320
+ siteId: number;
16321
+ }
16322
+ import BaseModel from "@ricado/api-client/Models/BaseModel";
16323
+ }
16324
+
15887
16325
  declare module '@ricado/api-client/Models/Packhouse/Site/VarietyModel' {
15888
16326
  export default VarietyModel;
15889
16327
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -957,6 +957,7 @@ export default ShiftQualitySummaryController;
957
957
  * @typedef {Object} ShiftQualitySummaryController.GetAllQueryParameters
958
958
  * @property {string} [packingLineId] The Packing Line ID this Quality Summary is associated with
959
959
  * @property {string} [shiftId] The Shift ID this Quality Summary is asssociated with
960
+ * @property {?Date} [publishTimestamp] When this Quality Summary was Published
960
961
  * @property {string} [qualityManagerUserId] The User ID of the Quality Manager for this Summary
961
962
  * @property {string} [qualityManagerName] The Name of the Quality Manager for this Summary
962
963
  * @property {Date} [createdTimestampBegin] Filter by the Timestamp when Quality Summaries were Created. Results Greater than or Equal to Timestamp