@ricado/api-client 2.3.11 → 2.3.12

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
@@ -3158,6 +3158,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3158
3158
  export { ShiftFocusMeetingController };
3159
3159
  export { ShiftHourlyEntryController };
3160
3160
  export { ShiftQualitySummaryController };
3161
+ export { ShiftSummaryReportController };
3161
3162
  export { ShiftTaskController };
3162
3163
  export { SoftSortBeltController };
3163
3164
  export { SoftSortPackrunSummaryController };
@@ -3190,6 +3191,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3190
3191
  import ShiftFocusMeetingController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftFocusMeetingController";
3191
3192
  import ShiftHourlyEntryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryController";
3192
3193
  import ShiftQualitySummaryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController";
3194
+ import ShiftSummaryReportController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftSummaryReportController";
3193
3195
  import ShiftTaskController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskController";
3194
3196
  import SoftSortBeltController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortBeltController";
3195
3197
  import SoftSortPackrunSummaryController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortPackrunSummaryController";
@@ -4761,6 +4763,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4761
4763
  export { ShiftHourlyEntryModel };
4762
4764
  export { ShiftModel };
4763
4765
  export { ShiftQualitySummaryModel };
4766
+ export { ShiftSummaryReportModel };
4764
4767
  export { ShiftTaskModel };
4765
4768
  export { SoftSortBeltModel };
4766
4769
  export { SoftSortPackrunSummaryModel };
@@ -4793,6 +4796,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4793
4796
  import ShiftHourlyEntryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel";
4794
4797
  import ShiftModel from "@ricado/api-client/Models/Packhouse/Site/ShiftModel";
4795
4798
  import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
4799
+ import ShiftSummaryReportModel from "@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel";
4796
4800
  import ShiftTaskModel from "@ricado/api-client/Models/Packhouse/Site/ShiftTaskModel";
4797
4801
  import SoftSortBeltModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortBeltModel";
4798
4802
  import SoftSortPackrunSummaryModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortPackrunSummaryModel";
@@ -13363,6 +13367,320 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummar
13363
13367
  import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
13364
13368
  }
13365
13369
 
13370
+ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftSummaryReportController' {
13371
+ export default ShiftSummaryReportController;
13372
+ /**
13373
+ * Controller Class for Shift Summary Reports
13374
+ *
13375
+ * @class
13376
+ */
13377
+ class ShiftSummaryReportController {
13378
+ /**
13379
+ * Retrieve a Shift Summary Report [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13380
+ *
13381
+ * @static
13382
+ * @public
13383
+ * @param {number} siteId The Site ID
13384
+ * @param {string} id The Shift Summary Report ID
13385
+ * @return {Promise<ShiftSummaryReportModel>}
13386
+ */
13387
+ static getOne(siteId: number, id: string): Promise<ShiftSummaryReportModel>;
13388
+ /**
13389
+ * Update a Shift Summary Report [PATCH /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13390
+ *
13391
+ * @static
13392
+ * @public
13393
+ * @param {number} siteId The Site ID
13394
+ * @param {string} id The Shift Summary Report ID
13395
+ * @param {ShiftSummaryReportController.UpdateData} updateData The Shift Summary Report Update Data
13396
+ * @return {Promise<ShiftSummaryReportModel>}
13397
+ */
13398
+ static update(siteId: number, id: string, updateData: ShiftSummaryReportController.UpdateData): Promise<ShiftSummaryReportModel>;
13399
+ /**
13400
+ * Delete a Shift Summary Report [DELETE /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13401
+ *
13402
+ * @static
13403
+ * @public
13404
+ * @param {number} siteId The Site ID
13405
+ * @param {string} id The Shift Summary Report ID
13406
+ * @return {Promise<boolean>}
13407
+ */
13408
+ static delete(siteId: number, id: string): Promise<boolean>;
13409
+ /**
13410
+ * Retrieve Comments [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments]
13411
+ *
13412
+ * Retrieves Comments for a Shift Summary Report
13413
+ *
13414
+ * @static
13415
+ * @public
13416
+ * @param {number} siteId The Site ID
13417
+ * @param {string} id The Shift Summary Report ID
13418
+ * @return {Promise<Array<ShiftSummaryReportController.CommentItem>>}
13419
+ */
13420
+ static getComments(siteId: number, id: string): Promise<Array<ShiftSummaryReportController.CommentItem>>;
13421
+ /**
13422
+ * Create a Comment [POST /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments]
13423
+ *
13424
+ * Create a Comment for a Shift Summary Report
13425
+ *
13426
+ * @static
13427
+ * @public
13428
+ * @param {number} siteId The Site ID
13429
+ * @param {string} id The Shift Summary Report ID
13430
+ * @param {string} content The Content of the New Comment
13431
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13432
+ */
13433
+ static createComment(siteId: number, id: string, content: string): Promise<ShiftSummaryReportController.CommentItem>;
13434
+ /**
13435
+ * Retrieve a Comment [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13436
+ *
13437
+ * Retrieves Comments for a Shift Summary Report
13438
+ *
13439
+ * @static
13440
+ * @public
13441
+ * @param {number} siteId The Site ID
13442
+ * @param {string} id The Shift Summary Report ID
13443
+ * @param {string} commentId The Comment ID
13444
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13445
+ */
13446
+ static getOneComment(siteId: number, id: string, commentId: string): Promise<ShiftSummaryReportController.CommentItem>;
13447
+ /**
13448
+ * Update a Comment [PATCH /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13449
+ *
13450
+ * Update a Comment for a Shift Summary Report
13451
+ *
13452
+ * @static
13453
+ * @public
13454
+ * @param {number} siteId The Site ID
13455
+ * @param {string} id The Shift Summary Report ID
13456
+ * @param {string} commentId The Comment ID
13457
+ * @param {string} content The Updated Content for the Comment
13458
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13459
+ */
13460
+ static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<ShiftSummaryReportController.CommentItem>;
13461
+ /**
13462
+ * Delete a Comment [DELETE /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13463
+ *
13464
+ * Delete a Comment for a Shift Summary Report
13465
+ *
13466
+ * @static
13467
+ * @public
13468
+ * @param {number} siteId The Site ID
13469
+ * @param {string} id The Shift Summary Report ID
13470
+ * @param {string} commentId The Comment ID
13471
+ * @return {Promise<boolean>}
13472
+ */
13473
+ static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
13474
+ /**
13475
+ * List all Shift Summary Reports [GET /packhouse/sites/{siteId}/shift-summary-reports]
13476
+ *
13477
+ * @static
13478
+ * @public
13479
+ * @param {number} siteId The Site ID
13480
+ * @param {ShiftSummaryReportController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
13481
+ * @return {Promise<ShiftSummaryReportModel[]>}
13482
+ */
13483
+ static getAll(siteId: number, queryParameters?: ShiftSummaryReportController.GetAllQueryParameters | undefined): Promise<ShiftSummaryReportModel[]>;
13484
+ /**
13485
+ * Create a Shift Summary Report [POST /packhouse/sites/{siteId}/shift-summary-reports]
13486
+ *
13487
+ * @static
13488
+ * @public
13489
+ * @param {number} siteId The Site ID
13490
+ * @param {ShiftSummaryReportController.CreateData} createData The Shift Summary Report Create Data
13491
+ * @return {Promise<ShiftSummaryReportModel>}
13492
+ */
13493
+ static create(siteId: number, createData: ShiftSummaryReportController.CreateData): Promise<ShiftSummaryReportModel>;
13494
+ }
13495
+ namespace ShiftSummaryReportController {
13496
+ /**
13497
+ * The Optional Query Parameters for the getAll Function
13498
+ */
13499
+ export type GetAllQueryParameters = {
13500
+ /**
13501
+ * The Packing Line ID this Summary Report is associated with
13502
+ */
13503
+ packingLineId?: string;
13504
+ /**
13505
+ * The Shift ID this Summary Report relates to
13506
+ */
13507
+ shiftId?: string;
13508
+ /**
13509
+ * Whether the Report is in the process of being Emailed
13510
+ */
13511
+ status?: string;
13512
+ /**
13513
+ * Filter by the Timestamp when Summary Reports were Created. Results Greater than or Equal to Timestamp
13514
+ */
13515
+ createdTimestampBegin?: Date;
13516
+ /**
13517
+ * Filter by the Timestamp when Summary Reports were Created. Results Less than or Equal to Timestamp
13518
+ */
13519
+ createdTimestampEnd?: Date;
13520
+ /**
13521
+ * Filter by the Timestamp when Summary Reports were last Updated. Results Greater than or Equal to Timestamp
13522
+ */
13523
+ updateTimestampBegin?: Date;
13524
+ /**
13525
+ * Filter by the Timestamp when Summary Reports were last Updated. Results Less than or Equal to Timestamp
13526
+ */
13527
+ updateTimestampEnd?: Date;
13528
+ };
13529
+ /**
13530
+ * The Create Data for a Shift Summary Report
13531
+ */
13532
+ export type CreateData = {
13533
+ /**
13534
+ * The Packing Line ID this Summary Report is associated with
13535
+ */
13536
+ packingLineId: string;
13537
+ /**
13538
+ * The Shift ID this Summary Report relates to
13539
+ */
13540
+ shiftId?: string;
13541
+ /**
13542
+ * When this Summary Report was Created
13543
+ */
13544
+ createdTimestamp?: Date;
13545
+ /**
13546
+ * The Base64 Encoded PDF Report
13547
+ */
13548
+ pdfReportContent?: string | null;
13549
+ /**
13550
+ * The Filename that should be used with the PDF Report
13551
+ */
13552
+ pdfReportFileName: string | null;
13553
+ /**
13554
+ * The SendGrid API Status indicating progress when sending emails
13555
+ */
13556
+ sendGridApi?: SendGridApiResult | null;
13557
+ /**
13558
+ * Whether the Report is in the process of being Emailed
13559
+ */
13560
+ status: string;
13561
+ /**
13562
+ * An Array of Email Contacts that were sent this Summary Report
13563
+ */
13564
+ emailContacts?: EmailContact[];
13565
+ };
13566
+ /**
13567
+ * The Update Data for a Shift Summary Report
13568
+ */
13569
+ export type UpdateData = {
13570
+ /**
13571
+ * The Packing Line ID this Summary Report is associated with
13572
+ */
13573
+ packingLineId?: string;
13574
+ /**
13575
+ * When this Summary Report was Created
13576
+ */
13577
+ createdTimestamp?: Date;
13578
+ /**
13579
+ * The Base64 Encoded PDF Report
13580
+ */
13581
+ pdfReportContent?: string | null;
13582
+ /**
13583
+ * The Filename that should be used with the PDF Report
13584
+ */
13585
+ pdfReportFileName?: string | null;
13586
+ /**
13587
+ * The SendGrid API Status indicating progress when sending emails
13588
+ */
13589
+ sendGridApi?: SendGridApiResult | null;
13590
+ /**
13591
+ * Whether the Report is in the process of being Emailed
13592
+ */
13593
+ status?: string;
13594
+ /**
13595
+ * An Array of Email Contacts that were sent this Summary Report
13596
+ */
13597
+ emailContacts?: EmailContact[];
13598
+ };
13599
+ /**
13600
+ * A **UserAccount** Type
13601
+ */
13602
+ export type UserAccount = {
13603
+ /**
13604
+ * The User Account ID
13605
+ */
13606
+ id: string | null;
13607
+ /**
13608
+ * The User's First Name
13609
+ */
13610
+ firstName: string | null;
13611
+ /**
13612
+ * The User's Last Name
13613
+ */
13614
+ lastName: string | null;
13615
+ };
13616
+ /**
13617
+ * A **CommentItem** Type
13618
+ */
13619
+ export type CommentItem = {
13620
+ /**
13621
+ * The Comment ID
13622
+ */
13623
+ id: string;
13624
+ userAccount: UserAccount;
13625
+ /**
13626
+ * The Content of the Comment
13627
+ */
13628
+ content: string | null;
13629
+ /**
13630
+ * When the Comment was Created
13631
+ */
13632
+ createdTimestamp: Date | null;
13633
+ /**
13634
+ * When the Comment was last Updated
13635
+ */
13636
+ updatedTimestamp: Date | null;
13637
+ };
13638
+ /**
13639
+ * A **SendGridApiResult** Type
13640
+ */
13641
+ export type SendGridApiResult = {
13642
+ /**
13643
+ * The Number of API Requests made to SendGrid
13644
+ */
13645
+ requestCount: number;
13646
+ /**
13647
+ * When the latest API Request was made
13648
+ */
13649
+ requestTimestamp: Date | null;
13650
+ /**
13651
+ * The HTTP Response Code received from the SendGrid API
13652
+ */
13653
+ responseCode: number | null;
13654
+ /**
13655
+ * The HTTP Response Message received from the SendGrid API
13656
+ */
13657
+ responseMessage: string | null;
13658
+ /**
13659
+ * Whether the sending of API Requests has been completed
13660
+ */
13661
+ completed: boolean;
13662
+ };
13663
+ /**
13664
+ * A **EmailContact** Type
13665
+ */
13666
+ export type EmailContact = {
13667
+ /**
13668
+ * Email Address of the Contact
13669
+ */
13670
+ email: string;
13671
+ /**
13672
+ * First Name of the Contact
13673
+ */
13674
+ firstName: string;
13675
+ /**
13676
+ * Last Name of the Contact
13677
+ */
13678
+ lastName: string;
13679
+ };
13680
+ }
13681
+ import ShiftSummaryReportModel from "@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel";
13682
+ }
13683
+
13366
13684
  declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskController' {
13367
13685
  export default ShiftTaskController;
13368
13686
  /**
@@ -18063,6 +18381,133 @@ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryMode
18063
18381
  import BaseModel from "@ricado/api-client/Models/BaseModel";
18064
18382
  }
18065
18383
 
18384
+ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel' {
18385
+ export default ShiftSummaryReportModel;
18386
+ /**
18387
+ * Model Class for a Shift Summary Report
18388
+ *
18389
+ * @class
18390
+ * @hideconstructor
18391
+ * @extends BaseModel
18392
+ */
18393
+ class ShiftSummaryReportModel extends BaseModel {
18394
+ /**
18395
+ * Create a new **ShiftSummaryReportModel** from a JSON Object or JSON String
18396
+ *
18397
+ * @static
18398
+ * @public
18399
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
18400
+ * @param {number} siteId The Site ID associated with this Shift Summary Report
18401
+ * @return {ShiftSummaryReportModel}
18402
+ */
18403
+ static fromJSON(json: {
18404
+ [x: string]: any;
18405
+ } | string, siteId: number): ShiftSummaryReportModel;
18406
+ /**
18407
+ * ShiftSummaryReportModel Constructor
18408
+ *
18409
+ * @protected
18410
+ * @param {number} siteId The Site ID associated with this Shift Summary Report
18411
+ */
18412
+ protected constructor();
18413
+ /**
18414
+ * The Shift Summary Report ID
18415
+ *
18416
+ * @type {string}
18417
+ * @public
18418
+ */
18419
+ id: string;
18420
+ /**
18421
+ * The Packing Line ID this Summary Report is associated with
18422
+ *
18423
+ * @type {string}
18424
+ * @public
18425
+ */
18426
+ packingLineId: string;
18427
+ /**
18428
+ * The Shift ID this Summary Report relates to
18429
+ *
18430
+ * @type {string}
18431
+ * @public
18432
+ */
18433
+ shiftId: string;
18434
+ /**
18435
+ * When this Summary Report was Created
18436
+ *
18437
+ * @type {Date}
18438
+ * @public
18439
+ */
18440
+ createdTimestamp: Date;
18441
+ /**
18442
+ * The Base64 Encoded PDF Report
18443
+ *
18444
+ * @type {?string}
18445
+ * @public
18446
+ */
18447
+ pdfReportContent: string | null;
18448
+ /**
18449
+ * The Filename that should be used with the PDF Report
18450
+ *
18451
+ * @type {?string}
18452
+ * @public
18453
+ */
18454
+ pdfReportFileName: string | null;
18455
+ /**
18456
+ * The SendGrid API Status indicating progress when sending emails
18457
+ *
18458
+ * @type {?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}
18459
+ * @public
18460
+ */
18461
+ sendGridApi: {
18462
+ requestCount: number;
18463
+ requestTimestamp: Date | null;
18464
+ responseCode: number | null;
18465
+ responseMessage: string | null;
18466
+ completed: boolean;
18467
+ } | null;
18468
+ /**
18469
+ * Whether the Report is in the process of being Emailed
18470
+ *
18471
+ * @type {string}
18472
+ * @public
18473
+ */
18474
+ status: string;
18475
+ /**
18476
+ * An Array of Email Contacts that were sent this Summary Report
18477
+ *
18478
+ * @type {Array<{email: string, firstName: string, lastName: string}>}
18479
+ * @public
18480
+ */
18481
+ emailContacts: {
18482
+ email: string;
18483
+ firstName: string;
18484
+ lastName: string;
18485
+ }[];
18486
+ /**
18487
+ * Whether the Shift Summary Report has been deleted
18488
+ *
18489
+ * @type {boolean}
18490
+ * @public
18491
+ */
18492
+ deleted: boolean;
18493
+ /**
18494
+ * When the Shift Summary Report was last updated
18495
+ *
18496
+ * @type {Date}
18497
+ * @public
18498
+ */
18499
+ updateTimestamp: Date;
18500
+ /**
18501
+ * The Site ID associated with this Shift Summary Report
18502
+ *
18503
+ * @type {number}
18504
+ * @public
18505
+ */
18506
+ siteId: number;
18507
+ }
18508
+ import BaseModel from "@ricado/api-client/Models/BaseModel";
18509
+ }
18510
+
18066
18511
  declare module '@ricado/api-client/Models/Packhouse/Site/ShiftTaskModel' {
18067
18512
  export default ShiftTaskModel;
18068
18513
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"