@ricado/api-client 2.7.7 → 2.7.9

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.
Files changed (27) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/PackingLineController.js +14 -3
  3. package/lib/Controllers/Packhouse/Site/PackrunGrowerNotificationController.js +940 -0
  4. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -0
  5. package/lib/Controllers/Packhouse/Site/index.js +3 -0
  6. package/lib/Controllers/UserAccountActionTokenController.js +15 -0
  7. package/lib/Models/Packhouse/Site/PackingLineModel.js +283 -2
  8. package/lib/Models/Packhouse/Site/PackrunGrowerNotificationModel.js +669 -0
  9. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +33 -1
  10. package/lib/Models/Packhouse/Site/index.js +3 -0
  11. package/lib/Models/TokenModel.js +105 -0
  12. package/lib/Models/UserAccountActionTokenModel.js +210 -0
  13. package/lib/PackageVersion.js +1 -1
  14. package/lib/index.d.ts +707 -3
  15. package/package.json +1 -1
  16. package/src/Controllers/Packhouse/Site/PackingLineController.js +14 -3
  17. package/src/Controllers/Packhouse/Site/PackrunGrowerNotificationController.js +1071 -0
  18. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -0
  19. package/src/Controllers/Packhouse/Site/index.js +2 -0
  20. package/src/Controllers/UserAccountActionTokenController.js +15 -0
  21. package/src/Models/Packhouse/Site/PackingLineModel.js +380 -2
  22. package/src/Models/Packhouse/Site/PackrunGrowerNotificationModel.js +763 -0
  23. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +43 -1
  24. package/src/Models/Packhouse/Site/index.js +2 -0
  25. package/src/Models/TokenModel.js +136 -0
  26. package/src/Models/UserAccountActionTokenModel.js +272 -0
  27. package/src/PackageVersion.js +1 -1
@@ -274,6 +274,8 @@ var _default = RejectBinScaleController;
274
274
  * @property {?number} printerGroupId The FreshPack Printer Group ID to be used when Printing Multi-Grower Bin Cards for this Reject Bin Scale
275
275
  * @property {boolean} binCardPrintingEnabled Whether Bin Card Printing is Enabled
276
276
  * @property {boolean} [useWindowsDriverApi] Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
277
+ * @property {?boolean} [forceSingleClassType] Whether the Net Weight should be used as a single Forced Class Type when creating Multi-Grower Bins and Weights
278
+ * @property {?string} [forcedClassType] The Forced Class Type of Net Weights when Enabled
277
279
  * @memberof Controllers.Packhouse.Site
278
280
  */
279
281
 
@@ -55,6 +55,8 @@ var _PackingLineController = _interopRequireDefault(require("./PackingLineContro
55
55
 
56
56
  var _PackrunController = _interopRequireDefault(require("./PackrunController"));
57
57
 
58
+ var _PackrunGrowerNotificationController = _interopRequireDefault(require("./PackrunGrowerNotificationController"));
59
+
58
60
  var _PrePackSampleController = _interopRequireDefault(require("./PrePackSampleController"));
59
61
 
60
62
  var _ReemoonSizerBatchController = _interopRequireDefault(require("./ReemoonSizerBatchController"));
@@ -128,6 +130,7 @@ var Site = {
128
130
  PackTypeController: _PackTypeController.default,
129
131
  PackingLineController: _PackingLineController.default,
130
132
  PackrunController: _PackrunController.default,
133
+ PackrunGrowerNotificationController: _PackrunGrowerNotificationController.default,
131
134
  PrePackSampleController: _PrePackSampleController.default,
132
135
  ReemoonSizerBatchController: _ReemoonSizerBatchController.default,
133
136
  ReemoonSizerController: _ReemoonSizerController.default,
@@ -433,6 +433,8 @@ var _default = UserAccountActionTokenController;
433
433
  * @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
434
434
  * @property {?Date} [completedTimestamp] When the Action was Completed
435
435
  * @property {?Date} [emailTimestamp] When the Action Email was Sent
436
+ * @property {UserAccountActionTokenController.RequestMetadata} [issueMetadata] Metadata from the Request that generated this Action Token
437
+ * @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
436
438
  * @memberof Controllers
437
439
  */
438
440
 
@@ -443,6 +445,19 @@ var _default = UserAccountActionTokenController;
443
445
  * @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
444
446
  * @property {?Date} [completedTimestamp] When the Action was Completed
445
447
  * @property {?Date} [emailTimestamp] When the Action Email was Sent
448
+ * @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
449
+ * @memberof Controllers
450
+ */
451
+
452
+ /**
453
+ * A **RequestMetadata** Type
454
+ *
455
+ * @typedef {Object} UserAccountActionTokenController.RequestMetadata
456
+ * @property {?string} ipAddress The IP Address of the Requester
457
+ * @property {?string} userAgent The User-Agent of the Requester
458
+ * @property {?string} cloudflareRayId The Cloudflare Ray ID from the Request
459
+ * @property {?string} host The Host header from the Request
460
+ * @property {?string} referrer The Referrer header from the Request
446
461
  * @memberof Controllers
447
462
  */
448
463
 
@@ -90,7 +90,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
90
90
  /**
91
91
  * The Points used by this Packing Line
92
92
  *
93
- * @type {{currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, currentPackrunVarietyCode: number, startNextPackrunRequest: number, finishCurrentPackrunRequest: number, availablePackrunList: number, createFromAvailablePackrun: number, currentTimeBatch: number, createNewTimeBatchRequest: number, currentPackrunExportPercentage: number, currentPackrunRejectPercentage: number, currentPackrunFruitSizeSummary: number, currentPackrunTotalExportTrays: number, currentPackrunExportTraysPerBin: number, currentPackrunAverageExportFruitSize: number, currentPackrunTotalClass1LayeredTrays: number, currentPackrunTotalClass1BulkTrays: number, currentPackrunTotalClass2Trays: number, currentPackrunSoftSortEventsPerBin: number, serviceModeActive: number, serviceModeBeginRequest: number, serviceModeFinishRequest: number, serviceModeStartTimestamp: number, serviceModeMaximumDuration: number, disabled: ?number, currentPackrunRecentPackrunSummaries: number, currentPackrunHistoricalPackrunSummaries: number, nextPackrunRecentPackrunSummaries: number, nextPackrunHistoricalPackrunSummaries: number}}
93
+ * @type {{currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, currentPackrunVarietyCode: number, startNextPackrunRequest: number, finishCurrentPackrunRequest: number, availablePackrunList: number, createFromAvailablePackrun: number, currentTimeBatch: number, createNewTimeBatchRequest: number, currentPackrunExportPercentage: number, currentPackrunRejectPercentage: number, currentPackrunFruitSizeSummary: number, currentPackrunTotalExportTrays: number, currentPackrunExportTraysPerBin: number, currentPackrunAverageExportFruitSize: number, currentPackrunTotalClass1LayeredTrays: number, currentPackrunTotalClass1BulkTrays: number, currentPackrunTotalClass2Trays: number, currentPackrunSoftSortEventsPerBin: number, serviceModeActive: number, serviceModeBeginRequest: number, serviceModeFinishRequest: number, serviceModeStartTimestamp: number, serviceModeMaximumDuration: number, disabled: ?number, currentPackrunRecentPackrunSummaries: number, currentPackrunHistoricalPackrunSummaries: number, nextPackrunRecentPackrunSummaries: number, nextPackrunHistoricalPackrunSummaries: number, averageSecondsPerBin: ?number, estimatedPackrunTimestamps: ?number}}
94
94
  * @public
95
95
  */
96
96
 
@@ -127,6 +127,8 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
127
127
  pointsDefaultValue.currentPackrunHistoricalPackrunSummaries = 0;
128
128
  pointsDefaultValue.nextPackrunRecentPackrunSummaries = 0;
129
129
  pointsDefaultValue.nextPackrunHistoricalPackrunSummaries = 0;
130
+ pointsDefaultValue.averageSecondsPerBin = null;
131
+ pointsDefaultValue.estimatedPackrunTimestamps = null;
130
132
  return pointsDefaultValue;
131
133
  }();
132
134
  /**
@@ -189,7 +191,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
189
191
  /**
190
192
  * The Optional Shift Management Object for this Packing Line
191
193
  *
192
- * @type {?{points: {currentShiftId: number, currentShiftStatus: number, currentShiftBreakActive: ?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, currentShiftTotalBinsTipped: ?number, currentShiftTotalClass1Trays: ?number, currentShiftTotalClass2Trays: ?number, currentShiftTotalDowntimePercentage: ?number, currentShiftTotalDowntimeSeconds: ?number, currentShiftTotalLayeredTraysPercentage: ?number, currentShiftAverageClass1TraysPerHour: ?number, currentShiftAverageCostPerTray: ?number, currentShiftAverageClass1Manning: ?number, currentShiftAverageClass2Manning: ?number, currentShiftAverageQualityR600Ideal: ?number, currentShiftAverageScorePercentage: ?number, currentShiftProjectedTotalBinsTipped: ?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, currentShiftCustomQualityAverageValue: ?number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean, useDefaultManningAtShiftStart: ?boolean}}
194
+ * @type {?{points: {currentShiftId: number, currentShiftStatus: number, currentShiftBreakActive: ?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, currentShiftTotalBinsTipped: ?number, currentShiftTotalClass1Trays: ?number, currentShiftTotalClass2Trays: ?number, currentShiftTotalDowntimePercentage: ?number, currentShiftTotalDowntimeSeconds: ?number, currentShiftTotalLayeredTraysPercentage: ?number, currentShiftAverageClass1TraysPerHour: ?number, currentShiftAverageCostPerTray: ?number, currentShiftAverageClass1Manning: ?number, currentShiftAverageClass2Manning: ?number, currentShiftAverageQualityR600Ideal: ?number, currentShiftAverageScorePercentage: ?number, currentShiftProjectedTotalBinsTipped: ?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, packrunChangeDurationTargets: ?number, currentShiftDowntimeActive: ?number, currentShiftPackrunChangeActive: ?number, currentShiftPackrunChangeSecondsTarget: ?number, currentShiftPackrunChangeSecondsElapsed: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, currentShiftCustomQualityAverageValue: ?number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean, useDefaultManningAtShiftStart: ?boolean}}
193
195
  * @public
194
196
  */
195
197
 
@@ -226,6 +228,14 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
226
228
  */
227
229
 
228
230
  _this.freshQualityIntegration = null;
231
+ /**
232
+ * The Optional Grower Notifications Configuration for this Packing Line
233
+ *
234
+ * @type {?{points: {packingSoonAutoNotificationEnabled: number, packingSoonAutoNotificationSeconds: number, packingTodayAutoNotificationEnabled: number, packingTodayAutoNotificationTime: number, sendPackingTodayNotificationRequest: number, packingTodayNotificationProcessed: number, externalContactsCommunicationStatus: number, externalContactsCommunicationLastAttempt: number, externalContactsCommunicationLastError: number}, enabled: boolean}}
235
+ * @public
236
+ */
237
+
238
+ _this.growerNotifications = null;
229
239
  /**
230
240
  * Whether the Packing Line has been deleted
231
241
  *
@@ -705,6 +715,38 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
705
715
  pointsObject.nextPackrunHistoricalPackrunSummaries = 0;
706
716
  }
707
717
 
718
+ if (_typeof(jsonObject['points']) === 'object' && 'averageSecondsPerBin' in jsonObject['points']) {
719
+ pointsObject.averageSecondsPerBin = function () {
720
+ if (jsonObject['points'].averageSecondsPerBin === null) {
721
+ return null;
722
+ }
723
+
724
+ if (typeof jsonObject['points'].averageSecondsPerBin !== 'number') {
725
+ return Number.isInteger(Number(jsonObject['points'].averageSecondsPerBin)) ? Number(jsonObject['points'].averageSecondsPerBin) : Math.floor(Number(jsonObject['points'].averageSecondsPerBin));
726
+ }
727
+
728
+ return Number.isInteger(jsonObject['points'].averageSecondsPerBin) ? jsonObject['points'].averageSecondsPerBin : Math.floor(jsonObject['points'].averageSecondsPerBin);
729
+ }();
730
+ } else {
731
+ pointsObject.averageSecondsPerBin = null;
732
+ }
733
+
734
+ if (_typeof(jsonObject['points']) === 'object' && 'estimatedPackrunTimestamps' in jsonObject['points']) {
735
+ pointsObject.estimatedPackrunTimestamps = function () {
736
+ if (jsonObject['points'].estimatedPackrunTimestamps === null) {
737
+ return null;
738
+ }
739
+
740
+ if (typeof jsonObject['points'].estimatedPackrunTimestamps !== 'number') {
741
+ return Number.isInteger(Number(jsonObject['points'].estimatedPackrunTimestamps)) ? Number(jsonObject['points'].estimatedPackrunTimestamps) : Math.floor(Number(jsonObject['points'].estimatedPackrunTimestamps));
742
+ }
743
+
744
+ return Number.isInteger(jsonObject['points'].estimatedPackrunTimestamps) ? jsonObject['points'].estimatedPackrunTimestamps : Math.floor(jsonObject['points'].estimatedPackrunTimestamps);
745
+ }();
746
+ } else {
747
+ pointsObject.estimatedPackrunTimestamps = null;
748
+ }
749
+
708
750
  return pointsObject;
709
751
  }();
710
752
  }
@@ -3501,6 +3543,86 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
3501
3543
  pointsObject.manningTeams = null;
3502
3544
  }
3503
3545
 
3546
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'packrunChangeDurationTargets' in jsonObject['shiftManagement'].points) {
3547
+ pointsObject.packrunChangeDurationTargets = function () {
3548
+ if (jsonObject['shiftManagement'].points.packrunChangeDurationTargets === null) {
3549
+ return null;
3550
+ }
3551
+
3552
+ if (typeof jsonObject['shiftManagement'].points.packrunChangeDurationTargets !== 'number') {
3553
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.packrunChangeDurationTargets)) ? Number(jsonObject['shiftManagement'].points.packrunChangeDurationTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.packrunChangeDurationTargets));
3554
+ }
3555
+
3556
+ return Number.isInteger(jsonObject['shiftManagement'].points.packrunChangeDurationTargets) ? jsonObject['shiftManagement'].points.packrunChangeDurationTargets : Math.floor(jsonObject['shiftManagement'].points.packrunChangeDurationTargets);
3557
+ }();
3558
+ } else {
3559
+ pointsObject.packrunChangeDurationTargets = null;
3560
+ }
3561
+
3562
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftDowntimeActive' in jsonObject['shiftManagement'].points) {
3563
+ pointsObject.currentShiftDowntimeActive = function () {
3564
+ if (jsonObject['shiftManagement'].points.currentShiftDowntimeActive === null) {
3565
+ return null;
3566
+ }
3567
+
3568
+ if (typeof jsonObject['shiftManagement'].points.currentShiftDowntimeActive !== 'number') {
3569
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftDowntimeActive)) ? Number(jsonObject['shiftManagement'].points.currentShiftDowntimeActive) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftDowntimeActive));
3570
+ }
3571
+
3572
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftDowntimeActive) ? jsonObject['shiftManagement'].points.currentShiftDowntimeActive : Math.floor(jsonObject['shiftManagement'].points.currentShiftDowntimeActive);
3573
+ }();
3574
+ } else {
3575
+ pointsObject.currentShiftDowntimeActive = null;
3576
+ }
3577
+
3578
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftPackrunChangeActive' in jsonObject['shiftManagement'].points) {
3579
+ pointsObject.currentShiftPackrunChangeActive = function () {
3580
+ if (jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive === null) {
3581
+ return null;
3582
+ }
3583
+
3584
+ if (typeof jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive !== 'number') {
3585
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive)) ? Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive));
3586
+ }
3587
+
3588
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive) ? jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive : Math.floor(jsonObject['shiftManagement'].points.currentShiftPackrunChangeActive);
3589
+ }();
3590
+ } else {
3591
+ pointsObject.currentShiftPackrunChangeActive = null;
3592
+ }
3593
+
3594
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftPackrunChangeSecondsTarget' in jsonObject['shiftManagement'].points) {
3595
+ pointsObject.currentShiftPackrunChangeSecondsTarget = function () {
3596
+ if (jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget === null) {
3597
+ return null;
3598
+ }
3599
+
3600
+ if (typeof jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget !== 'number') {
3601
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget));
3602
+ }
3603
+
3604
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget) ? jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsTarget);
3605
+ }();
3606
+ } else {
3607
+ pointsObject.currentShiftPackrunChangeSecondsTarget = null;
3608
+ }
3609
+
3610
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftPackrunChangeSecondsElapsed' in jsonObject['shiftManagement'].points) {
3611
+ pointsObject.currentShiftPackrunChangeSecondsElapsed = function () {
3612
+ if (jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed === null) {
3613
+ return null;
3614
+ }
3615
+
3616
+ if (typeof jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed !== 'number') {
3617
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed)) ? Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed));
3618
+ }
3619
+
3620
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed) ? jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed : Math.floor(jsonObject['shiftManagement'].points.currentShiftPackrunChangeSecondsElapsed);
3621
+ }();
3622
+ } else {
3623
+ pointsObject.currentShiftPackrunChangeSecondsElapsed = null;
3624
+ }
3625
+
3504
3626
  return pointsObject;
3505
3627
  }();
3506
3628
  } else {
@@ -3563,6 +3685,11 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
3563
3685
  pointsDefaultValue.currentShiftUpdateManningTeamsRequest = null;
3564
3686
  pointsDefaultValue.currentShiftUpdateManningTeamsTimestamp = null;
3565
3687
  pointsDefaultValue.manningTeams = null;
3688
+ pointsDefaultValue.packrunChangeDurationTargets = null;
3689
+ pointsDefaultValue.currentShiftDowntimeActive = null;
3690
+ pointsDefaultValue.currentShiftPackrunChangeActive = null;
3691
+ pointsDefaultValue.currentShiftPackrunChangeSecondsTarget = null;
3692
+ pointsDefaultValue.currentShiftPackrunChangeSecondsElapsed = null;
3566
3693
  return pointsDefaultValue;
3567
3694
  }();
3568
3695
  }
@@ -5163,6 +5290,160 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
5163
5290
  }();
5164
5291
  }
5165
5292
 
5293
+ if ('growerNotifications' in jsonObject) {
5294
+ model.growerNotifications = function () {
5295
+ if (jsonObject['growerNotifications'] === null) {
5296
+ return null;
5297
+ }
5298
+
5299
+ var growerNotificationsObject = {};
5300
+
5301
+ if (_typeof(jsonObject['growerNotifications']) === 'object' && 'points' in jsonObject['growerNotifications']) {
5302
+ growerNotificationsObject.points = function () {
5303
+ var pointsObject = {};
5304
+
5305
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'packingSoonAutoNotificationEnabled' in jsonObject['growerNotifications'].points) {
5306
+ pointsObject.packingSoonAutoNotificationEnabled = function () {
5307
+ if (typeof jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled !== 'number') {
5308
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled)) ? Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled) : Math.floor(Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled));
5309
+ }
5310
+
5311
+ return Number.isInteger(jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled) ? jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled : Math.floor(jsonObject['growerNotifications'].points.packingSoonAutoNotificationEnabled);
5312
+ }();
5313
+ } else {
5314
+ pointsObject.packingSoonAutoNotificationEnabled = 0;
5315
+ }
5316
+
5317
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'packingSoonAutoNotificationSeconds' in jsonObject['growerNotifications'].points) {
5318
+ pointsObject.packingSoonAutoNotificationSeconds = function () {
5319
+ if (typeof jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds !== 'number') {
5320
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds)) ? Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds) : Math.floor(Number(jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds));
5321
+ }
5322
+
5323
+ return Number.isInteger(jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds) ? jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds : Math.floor(jsonObject['growerNotifications'].points.packingSoonAutoNotificationSeconds);
5324
+ }();
5325
+ } else {
5326
+ pointsObject.packingSoonAutoNotificationSeconds = 0;
5327
+ }
5328
+
5329
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'packingTodayAutoNotificationEnabled' in jsonObject['growerNotifications'].points) {
5330
+ pointsObject.packingTodayAutoNotificationEnabled = function () {
5331
+ if (typeof jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled !== 'number') {
5332
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled)) ? Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled) : Math.floor(Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled));
5333
+ }
5334
+
5335
+ return Number.isInteger(jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled) ? jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled : Math.floor(jsonObject['growerNotifications'].points.packingTodayAutoNotificationEnabled);
5336
+ }();
5337
+ } else {
5338
+ pointsObject.packingTodayAutoNotificationEnabled = 0;
5339
+ }
5340
+
5341
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'packingTodayAutoNotificationTime' in jsonObject['growerNotifications'].points) {
5342
+ pointsObject.packingTodayAutoNotificationTime = function () {
5343
+ if (typeof jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime !== 'number') {
5344
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime)) ? Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime) : Math.floor(Number(jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime));
5345
+ }
5346
+
5347
+ return Number.isInteger(jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime) ? jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime : Math.floor(jsonObject['growerNotifications'].points.packingTodayAutoNotificationTime);
5348
+ }();
5349
+ } else {
5350
+ pointsObject.packingTodayAutoNotificationTime = 0;
5351
+ }
5352
+
5353
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'sendPackingTodayNotificationRequest' in jsonObject['growerNotifications'].points) {
5354
+ pointsObject.sendPackingTodayNotificationRequest = function () {
5355
+ if (typeof jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest !== 'number') {
5356
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest)) ? Number(jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest) : Math.floor(Number(jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest));
5357
+ }
5358
+
5359
+ return Number.isInteger(jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest) ? jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest : Math.floor(jsonObject['growerNotifications'].points.sendPackingTodayNotificationRequest);
5360
+ }();
5361
+ } else {
5362
+ pointsObject.sendPackingTodayNotificationRequest = 0;
5363
+ }
5364
+
5365
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'packingTodayNotificationProcessed' in jsonObject['growerNotifications'].points) {
5366
+ pointsObject.packingTodayNotificationProcessed = function () {
5367
+ if (typeof jsonObject['growerNotifications'].points.packingTodayNotificationProcessed !== 'number') {
5368
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.packingTodayNotificationProcessed)) ? Number(jsonObject['growerNotifications'].points.packingTodayNotificationProcessed) : Math.floor(Number(jsonObject['growerNotifications'].points.packingTodayNotificationProcessed));
5369
+ }
5370
+
5371
+ return Number.isInteger(jsonObject['growerNotifications'].points.packingTodayNotificationProcessed) ? jsonObject['growerNotifications'].points.packingTodayNotificationProcessed : Math.floor(jsonObject['growerNotifications'].points.packingTodayNotificationProcessed);
5372
+ }();
5373
+ } else {
5374
+ pointsObject.packingTodayNotificationProcessed = 0;
5375
+ }
5376
+
5377
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'externalContactsCommunicationStatus' in jsonObject['growerNotifications'].points) {
5378
+ pointsObject.externalContactsCommunicationStatus = function () {
5379
+ if (typeof jsonObject['growerNotifications'].points.externalContactsCommunicationStatus !== 'number') {
5380
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationStatus)) ? Number(jsonObject['growerNotifications'].points.externalContactsCommunicationStatus) : Math.floor(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationStatus));
5381
+ }
5382
+
5383
+ return Number.isInteger(jsonObject['growerNotifications'].points.externalContactsCommunicationStatus) ? jsonObject['growerNotifications'].points.externalContactsCommunicationStatus : Math.floor(jsonObject['growerNotifications'].points.externalContactsCommunicationStatus);
5384
+ }();
5385
+ } else {
5386
+ pointsObject.externalContactsCommunicationStatus = 0;
5387
+ }
5388
+
5389
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'externalContactsCommunicationLastAttempt' in jsonObject['growerNotifications'].points) {
5390
+ pointsObject.externalContactsCommunicationLastAttempt = function () {
5391
+ if (typeof jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt !== 'number') {
5392
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt)) ? Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt) : Math.floor(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt));
5393
+ }
5394
+
5395
+ return Number.isInteger(jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt) ? jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt : Math.floor(jsonObject['growerNotifications'].points.externalContactsCommunicationLastAttempt);
5396
+ }();
5397
+ } else {
5398
+ pointsObject.externalContactsCommunicationLastAttempt = 0;
5399
+ }
5400
+
5401
+ if (_typeof(jsonObject['growerNotifications'].points) === 'object' && 'externalContactsCommunicationLastError' in jsonObject['growerNotifications'].points) {
5402
+ pointsObject.externalContactsCommunicationLastError = function () {
5403
+ if (typeof jsonObject['growerNotifications'].points.externalContactsCommunicationLastError !== 'number') {
5404
+ return Number.isInteger(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastError)) ? Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastError) : Math.floor(Number(jsonObject['growerNotifications'].points.externalContactsCommunicationLastError));
5405
+ }
5406
+
5407
+ return Number.isInteger(jsonObject['growerNotifications'].points.externalContactsCommunicationLastError) ? jsonObject['growerNotifications'].points.externalContactsCommunicationLastError : Math.floor(jsonObject['growerNotifications'].points.externalContactsCommunicationLastError);
5408
+ }();
5409
+ } else {
5410
+ pointsObject.externalContactsCommunicationLastError = 0;
5411
+ }
5412
+
5413
+ return pointsObject;
5414
+ }();
5415
+ } else {
5416
+ growerNotificationsObject.points = function () {
5417
+ var pointsDefaultValue = {};
5418
+ pointsDefaultValue.packingSoonAutoNotificationEnabled = 0;
5419
+ pointsDefaultValue.packingSoonAutoNotificationSeconds = 0;
5420
+ pointsDefaultValue.packingTodayAutoNotificationEnabled = 0;
5421
+ pointsDefaultValue.packingTodayAutoNotificationTime = 0;
5422
+ pointsDefaultValue.sendPackingTodayNotificationRequest = 0;
5423
+ pointsDefaultValue.packingTodayNotificationProcessed = 0;
5424
+ pointsDefaultValue.externalContactsCommunicationStatus = 0;
5425
+ pointsDefaultValue.externalContactsCommunicationLastAttempt = 0;
5426
+ pointsDefaultValue.externalContactsCommunicationLastError = 0;
5427
+ return pointsDefaultValue;
5428
+ }();
5429
+ }
5430
+
5431
+ if (_typeof(jsonObject['growerNotifications']) === 'object' && 'enabled' in jsonObject['growerNotifications']) {
5432
+ growerNotificationsObject.enabled = function () {
5433
+ if (typeof jsonObject['growerNotifications'].enabled !== 'boolean') {
5434
+ return Boolean(jsonObject['growerNotifications'].enabled);
5435
+ }
5436
+
5437
+ return jsonObject['growerNotifications'].enabled;
5438
+ }();
5439
+ } else {
5440
+ growerNotificationsObject.enabled = false;
5441
+ }
5442
+
5443
+ return growerNotificationsObject;
5444
+ }();
5445
+ }
5446
+
5166
5447
  if ('deleted' in jsonObject) {
5167
5448
  model.deleted = function () {
5168
5449
  if (typeof jsonObject['deleted'] !== 'boolean') {