@ricado/api-client 2.1.0 → 2.3.0

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 (123) hide show
  1. package/README.md +5 -7
  2. package/dist/ricado.api.client.js +1 -1
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  5. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  6. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  7. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  8. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  9. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  10. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  11. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  12. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  13. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  14. package/lib/DataItems/PointValueItem.js +3 -3
  15. package/lib/Models/AccountPolicyModel.js +7 -7
  16. package/lib/Models/ApiAccountModel.js +7 -7
  17. package/lib/Models/CompanyModel.js +5 -5
  18. package/lib/Models/FirebaseTokenModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  20. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  21. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  23. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  24. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  25. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  26. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  27. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  28. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  30. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  31. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  32. package/lib/Models/Packhouse/Site/PackingLineModel.js +539 -16
  33. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  34. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  35. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +271 -15
  36. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  37. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  38. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  39. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  40. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  41. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  42. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  43. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  44. package/lib/Models/Packhouse/Site/index.js +15 -0
  45. package/lib/Models/RTUModel.js +6 -6
  46. package/lib/Models/RTUPluginModel.js +5 -5
  47. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  48. package/lib/Models/Site/AlarmModel.js +17 -17
  49. package/lib/Models/Site/DefinitionModel.js +6 -6
  50. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  51. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  52. package/lib/Models/Site/PointModel.js +11 -11
  53. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  54. package/lib/Models/SiteModel.js +6 -6
  55. package/lib/Models/TokenModel.js +10 -10
  56. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  57. package/lib/Models/UserAccountModel.js +10 -10
  58. package/lib/PackageVersion.js +1 -1
  59. package/lib/Points.js +22 -12
  60. package/lib/WebSocketHelper.js +29 -13
  61. package/lib/index.d.ts +3853 -1290
  62. package/lib/index.js +3 -3
  63. package/package.json +1 -1
  64. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  65. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  66. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  67. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  68. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  69. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  70. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  71. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  72. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  73. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  74. package/src/Controllers/Packhouse/Site/index.js +10 -0
  75. package/src/DataItems/PointValueItem.js +3 -3
  76. package/src/Models/AccountPolicyModel.js +7 -7
  77. package/src/Models/ApiAccountModel.js +7 -7
  78. package/src/Models/CompanyModel.js +5 -5
  79. package/src/Models/FirebaseTokenModel.js +8 -8
  80. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  81. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  82. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  83. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  84. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  85. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  86. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  87. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  88. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  89. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  90. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  91. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  92. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  93. package/src/Models/Packhouse/Site/PackingLineModel.js +720 -16
  94. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  95. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  96. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +308 -15
  97. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  98. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  99. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  100. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  101. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  102. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  103. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  104. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  105. package/src/Models/Packhouse/Site/index.js +10 -0
  106. package/src/Models/RTUModel.js +6 -6
  107. package/src/Models/RTUPluginModel.js +5 -5
  108. package/src/Models/Site/AlarmGroupModel.js +7 -7
  109. package/src/Models/Site/AlarmModel.js +17 -17
  110. package/src/Models/Site/DefinitionModel.js +6 -6
  111. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  112. package/src/Models/Site/PermanentObjectModel.js +7 -7
  113. package/src/Models/Site/PointModel.js +11 -11
  114. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  115. package/src/Models/SiteModel.js +6 -6
  116. package/src/Models/TokenModel.js +10 -10
  117. package/src/Models/UserAccountActionTokenModel.js +11 -11
  118. package/src/Models/UserAccountModel.js +10 -10
  119. package/src/PackageVersion.js +1 -1
  120. package/src/Points.js +24 -12
  121. package/src/WebSocketHelper.js +34 -13
  122. package/src/index.js +3 -3
  123. package/types/tslint.json +2 -1
@@ -62,7 +62,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Packing Line ID this Packrun is associated with
68
68
  *
@@ -70,7 +70,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Packrun Name
76
76
  *
@@ -78,7 +78,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * When this Packrun was Created
84
84
  *
@@ -86,7 +86,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The Grower Name for this Packrun
92
92
  *
@@ -94,7 +94,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.growerName = undefined;
97
+ _this.growerName = "";
98
98
  /**
99
99
  * The Grower Code for this Packrun
100
100
  *
@@ -102,7 +102,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.growerCode = undefined;
105
+ _this.growerCode = "";
106
106
  /**
107
107
  * The Maturity Area for this Packrun
108
108
  *
@@ -110,7 +110,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.maturityArea = undefined;
113
+ _this.maturityArea = "";
114
114
  /**
115
115
  * When this Packrun was Started
116
116
  *
@@ -118,7 +118,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.startTimestamp = undefined;
121
+ _this.startTimestamp = null;
122
122
  /**
123
123
  * When this Packrun was Finished
124
124
  *
@@ -126,7 +126,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.finishTimestamp = undefined;
129
+ _this.finishTimestamp = null;
130
130
  /**
131
131
  * The Variety for this Packrun
132
132
  *
@@ -134,7 +134,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.varietyId = undefined;
137
+ _this.varietyId = "";
138
138
  /**
139
139
  * The Growing Method for this Packrun
140
140
  *
@@ -142,7 +142,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.growingMethodId = undefined;
145
+ _this.growingMethodId = null;
146
146
  /**
147
147
  * The Number of Allocated Bins for this Packrun
148
148
  *
@@ -150,7 +150,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.allocatedBins = undefined;
153
+ _this.allocatedBins = 0;
154
154
  /**
155
155
  * The Time Batches for this Packrun
156
156
  *
@@ -158,7 +158,31 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.timeBatches = undefined;
161
+ _this.timeBatches = [];
162
+ /**
163
+ * The FreshPack Grader ID associated with this Packrun
164
+ *
165
+ * @type {?number}
166
+ * @public
167
+ */
168
+
169
+ _this.freshPackGraderId = null;
170
+ /**
171
+ * The FreshPack Bin Lot Code associated with this Packrun
172
+ *
173
+ * @type {?string}
174
+ * @public
175
+ */
176
+
177
+ _this.freshPackBinLotCode = null;
178
+ /**
179
+ * The FreshPack Produce Code associated with this Packrun
180
+ *
181
+ * @type {?string}
182
+ * @public
183
+ */
184
+
185
+ _this.freshPackProduceCode = null;
162
186
  /**
163
187
  * Whether the Packrun has been deleted
164
188
  *
@@ -166,7 +190,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
166
190
  * @public
167
191
  */
168
192
 
169
- _this.deleted = undefined;
193
+ _this.deleted = false;
170
194
  /**
171
195
  * When the Packrun was last updated
172
196
  *
@@ -174,7 +198,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
174
198
  * @public
175
199
  */
176
200
 
177
- _this.updateTimestamp = undefined;
201
+ _this.updateTimestamp = new Date();
178
202
  /**
179
203
  * The Site ID associated with this Packrun
180
204
  *
@@ -364,6 +388,48 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
364
388
  }();
365
389
  }
366
390
 
391
+ if ('freshPackGraderId' in jsonObject) {
392
+ model.freshPackGraderId = function () {
393
+ if (jsonObject['freshPackGraderId'] === null) {
394
+ return null;
395
+ }
396
+
397
+ if (typeof jsonObject['freshPackGraderId'] !== 'number') {
398
+ return Number.isInteger(Number(jsonObject['freshPackGraderId'])) ? Number(jsonObject['freshPackGraderId']) : Math.floor(Number(jsonObject['freshPackGraderId']));
399
+ }
400
+
401
+ return Number.isInteger(jsonObject['freshPackGraderId']) ? jsonObject['freshPackGraderId'] : Math.floor(jsonObject['freshPackGraderId']);
402
+ }();
403
+ }
404
+
405
+ if ('freshPackBinLotCode' in jsonObject) {
406
+ model.freshPackBinLotCode = function () {
407
+ if (jsonObject['freshPackBinLotCode'] === null) {
408
+ return null;
409
+ }
410
+
411
+ if (typeof jsonObject['freshPackBinLotCode'] !== 'string') {
412
+ return String(jsonObject['freshPackBinLotCode']);
413
+ }
414
+
415
+ return jsonObject['freshPackBinLotCode'];
416
+ }();
417
+ }
418
+
419
+ if ('freshPackProduceCode' in jsonObject) {
420
+ model.freshPackProduceCode = function () {
421
+ if (jsonObject['freshPackProduceCode'] === null) {
422
+ return null;
423
+ }
424
+
425
+ if (typeof jsonObject['freshPackProduceCode'] !== 'string') {
426
+ return String(jsonObject['freshPackProduceCode']);
427
+ }
428
+
429
+ return jsonObject['freshPackProduceCode'];
430
+ }();
431
+ }
432
+
367
433
  if ('deleted' in jsonObject) {
368
434
  model.deleted = function () {
369
435
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -62,7 +62,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Reject Bin Scale ID this Reject Bin is associated with
68
68
  *
@@ -70,7 +70,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rejectBinScaleId = undefined;
73
+ _this.rejectBinScaleId = "";
74
74
  /**
75
75
  * When this Reject Bin was Created
76
76
  *
@@ -78,7 +78,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.createdTimestamp = undefined;
81
+ _this.createdTimestamp = new Date();
82
82
  /**
83
83
  * The Name of the Reject Bin Scale where this Bin was Created
84
84
  *
@@ -86,7 +86,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.rejectBinScaleName = undefined;
89
+ _this.rejectBinScaleName = "";
90
90
  /**
91
91
  * The Tare Weight Captured by the Reject Bin Scale
92
92
  *
@@ -94,7 +94,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.tareWeight = undefined;
97
+ _this.tareWeight = null;
98
98
  /**
99
99
  * When this Reject Bin was Finalized (No new Weights)
100
100
  *
@@ -102,7 +102,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.finalizedTimestamp = undefined;
105
+ _this.finalizedTimestamp = null;
106
106
  /**
107
107
  * The Multi-Grower Bins that will be submitted to FreshPack
108
108
  *
@@ -110,7 +110,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.freshPackMultiGrowerBins = undefined;
113
+ _this.freshPackMultiGrowerBins = [];
114
114
  /**
115
115
  * Whether the Reject Bin has been deleted
116
116
  *
@@ -118,7 +118,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.deleted = undefined;
121
+ _this.deleted = false;
122
122
  /**
123
123
  * When the Reject Bin was last updated
124
124
  *
@@ -126,7 +126,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.updateTimestamp = undefined;
129
+ _this.updateTimestamp = new Date();
130
130
  /**
131
131
  * The Site ID associated with this Reject Bin
132
132
  *
@@ -62,7 +62,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Reject Bin Scale belongs to
68
68
  *
@@ -70,7 +70,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Name of this Reject Bin Scale
76
76
  *
@@ -78,7 +78,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Points used by this Reject Bin Scale
84
84
  *
@@ -86,7 +86,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.points = undefined;
89
+ _this.points = {};
90
90
  /**
91
91
  * The Packing Line that owns this Reject Bin Scale
92
92
  *
@@ -94,7 +94,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.packingLineId = undefined;
97
+ _this.packingLineId = "";
98
98
  /**
99
99
  * The Permanent Object that provides the Next Packrun for this Reject Bin Scale
100
100
  *
@@ -102,7 +102,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.packrunSourceId = undefined;
105
+ _this.packrunSourceId = null;
106
106
  /**
107
107
  * The Packrun Group this Reject Bin Scale is a part of
108
108
  *
@@ -110,7 +110,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.packrunGroup = undefined;
113
+ _this.packrunGroup = null;
114
114
  /**
115
115
  * An Array of Sources that deliver Fruit to this Reject Bin Scale
116
116
  *
@@ -118,15 +118,103 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.sources = undefined;
121
+ _this.sources = [];
122
122
  /**
123
123
  * The Auto Packrun Change Configuration for this Reject Bin Scale
124
124
  *
125
+ * @type {?{delay: ?number}}
126
+ * @public
127
+ */
128
+
129
+ _this.autoPackrunChange = null;
130
+ /**
131
+ * Whether this Reject Bin Scale supports Live Weighing
132
+ *
133
+ * @type {?boolean}
134
+ * @public
135
+ */
136
+
137
+ _this.supportsLiveWeighing = null;
138
+ /**
139
+ * The Minimum Weight Change Required to Automatically Start Live Weighing
140
+ *
141
+ * @type {?number}
142
+ * @public
143
+ */
144
+
145
+ _this.autoWeighingStartThreshold = null;
146
+ /**
147
+ * The Delay in Milliseconds before Auto Live Weighing would Start
148
+ *
149
+ * @type {?number}
150
+ * @public
151
+ */
152
+
153
+ _this.autoWeighingStartDelay = null;
154
+ /**
155
+ * The Minimum Weight Change Required to Automatically Finish Live Weighing
156
+ *
157
+ * @type {?number}
158
+ * @public
159
+ */
160
+
161
+ _this.autoWeighingFinishThreshold = null;
162
+ /**
163
+ * The Delay in Milliseconds before Auto Live Weighing would Finish
164
+ *
165
+ * @type {?number}
166
+ * @public
167
+ */
168
+
169
+ _this.autoWeighingFinishDelay = null;
170
+ /**
171
+ * The Maximum Duration in Milliseconds before a Manual Intervention would end
172
+ *
173
+ * @type {?number}
174
+ * @public
175
+ */
176
+
177
+ _this.manualInterventionMaximumDuration = null;
178
+ /**
179
+ * The Maximum Weight Increase allowed within a single Live Weighing Update Interval
180
+ *
125
181
  * @type {?number}
126
182
  * @public
127
183
  */
128
184
 
129
- _this.autoPackrunChange = undefined;
185
+ _this.liveWeighingIncreaseTolerance = null;
186
+ /**
187
+ * The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
188
+ *
189
+ * @type {?number}
190
+ * @public
191
+ */
192
+
193
+ _this.liveWeighingDecreaseTolerance = null;
194
+ /**
195
+ * The Interval in Milliseconds between Live Weighing Updates
196
+ *
197
+ * @type {?number}
198
+ * @public
199
+ */
200
+
201
+ _this.liveWeighingUpdateInterval = null;
202
+ /**
203
+ * Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
204
+ *
205
+ * @type {?boolean}
206
+ * @public
207
+ */
208
+
209
+ _this.liveWeighingUsesStableStatus = null;
210
+ /**
211
+ * The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
212
+ *
213
+ * @type {?number}
214
+ * @public
215
+ */
216
+
217
+ _this.incorrectOperationTolerance = null;
130
218
  /**
131
219
  * The FreshPack Integration Configuration for this Reject Bin Scale
132
220
  *
@@ -134,7 +222,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
134
222
  * @public
135
223
  */
136
224
 
137
- _this.freshPackIntegration = undefined;
225
+ _this.freshPackIntegration = null;
138
226
  /**
139
227
  * Whether the Reject Bin Scale has been deleted
140
228
  *
@@ -142,7 +230,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
142
230
  * @public
143
231
  */
144
232
 
145
- _this.deleted = undefined;
233
+ _this.deleted = false;
146
234
  /**
147
235
  * When the Reject Bin Scale was last updated
148
236
  *
@@ -150,7 +238,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
150
238
  * @public
151
239
  */
152
240
 
153
- _this.updateTimestamp = undefined;
241
+ _this.updateTimestamp = new Date();
154
242
  /**
155
243
  * The Site ID associated with this Reject Bin Scale
156
244
  *
@@ -296,11 +384,179 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
296
384
  return null;
297
385
  }
298
386
 
299
- if (typeof jsonObject['autoPackrunChange'] !== 'number') {
300
- return Number.isInteger(Number(jsonObject['autoPackrunChange'])) ? Number(jsonObject['autoPackrunChange']) : Math.floor(Number(jsonObject['autoPackrunChange']));
387
+ var autoPackrunChangeObject = {};
388
+
389
+ if (_typeof(jsonObject['autoPackrunChange']) === 'object' && 'delay' in jsonObject['autoPackrunChange']) {
390
+ autoPackrunChangeObject.delay = function () {
391
+ if (jsonObject['autoPackrunChange'].delay === null) {
392
+ return null;
393
+ }
394
+
395
+ if (typeof jsonObject['autoPackrunChange'].delay !== 'number') {
396
+ return Number.isInteger(Number(jsonObject['autoPackrunChange'].delay)) ? Number(jsonObject['autoPackrunChange'].delay) : Math.floor(Number(jsonObject['autoPackrunChange'].delay));
397
+ }
398
+
399
+ return Number.isInteger(jsonObject['autoPackrunChange'].delay) ? jsonObject['autoPackrunChange'].delay : Math.floor(jsonObject['autoPackrunChange'].delay);
400
+ }();
401
+ } else {
402
+ autoPackrunChangeObject.delay = null;
403
+ }
404
+
405
+ return autoPackrunChangeObject;
406
+ }();
407
+ }
408
+
409
+ if ('supportsLiveWeighing' in jsonObject) {
410
+ model.supportsLiveWeighing = function () {
411
+ if (jsonObject['supportsLiveWeighing'] === null) {
412
+ return null;
413
+ }
414
+
415
+ if (typeof jsonObject['supportsLiveWeighing'] !== 'boolean') {
416
+ return Boolean(jsonObject['supportsLiveWeighing']);
417
+ }
418
+
419
+ return jsonObject['supportsLiveWeighing'];
420
+ }();
421
+ }
422
+
423
+ if ('autoWeighingStartThreshold' in jsonObject) {
424
+ model.autoWeighingStartThreshold = function () {
425
+ if (jsonObject['autoWeighingStartThreshold'] === null) {
426
+ return null;
427
+ }
428
+
429
+ if (typeof jsonObject['autoWeighingStartThreshold'] !== 'number') {
430
+ return Number(jsonObject['autoWeighingStartThreshold']);
431
+ }
432
+
433
+ return jsonObject['autoWeighingStartThreshold'];
434
+ }();
435
+ }
436
+
437
+ if ('autoWeighingStartDelay' in jsonObject) {
438
+ model.autoWeighingStartDelay = function () {
439
+ if (jsonObject['autoWeighingStartDelay'] === null) {
440
+ return null;
441
+ }
442
+
443
+ if (typeof jsonObject['autoWeighingStartDelay'] !== 'number') {
444
+ return Number.isInteger(Number(jsonObject['autoWeighingStartDelay'])) ? Number(jsonObject['autoWeighingStartDelay']) : Math.floor(Number(jsonObject['autoWeighingStartDelay']));
445
+ }
446
+
447
+ return Number.isInteger(jsonObject['autoWeighingStartDelay']) ? jsonObject['autoWeighingStartDelay'] : Math.floor(jsonObject['autoWeighingStartDelay']);
448
+ }();
449
+ }
450
+
451
+ if ('autoWeighingFinishThreshold' in jsonObject) {
452
+ model.autoWeighingFinishThreshold = function () {
453
+ if (jsonObject['autoWeighingFinishThreshold'] === null) {
454
+ return null;
455
+ }
456
+
457
+ if (typeof jsonObject['autoWeighingFinishThreshold'] !== 'number') {
458
+ return Number(jsonObject['autoWeighingFinishThreshold']);
459
+ }
460
+
461
+ return jsonObject['autoWeighingFinishThreshold'];
462
+ }();
463
+ }
464
+
465
+ if ('autoWeighingFinishDelay' in jsonObject) {
466
+ model.autoWeighingFinishDelay = function () {
467
+ if (jsonObject['autoWeighingFinishDelay'] === null) {
468
+ return null;
469
+ }
470
+
471
+ if (typeof jsonObject['autoWeighingFinishDelay'] !== 'number') {
472
+ return Number.isInteger(Number(jsonObject['autoWeighingFinishDelay'])) ? Number(jsonObject['autoWeighingFinishDelay']) : Math.floor(Number(jsonObject['autoWeighingFinishDelay']));
473
+ }
474
+
475
+ return Number.isInteger(jsonObject['autoWeighingFinishDelay']) ? jsonObject['autoWeighingFinishDelay'] : Math.floor(jsonObject['autoWeighingFinishDelay']);
476
+ }();
477
+ }
478
+
479
+ if ('manualInterventionMaximumDuration' in jsonObject) {
480
+ model.manualInterventionMaximumDuration = function () {
481
+ if (jsonObject['manualInterventionMaximumDuration'] === null) {
482
+ return null;
483
+ }
484
+
485
+ if (typeof jsonObject['manualInterventionMaximumDuration'] !== 'number') {
486
+ return Number.isInteger(Number(jsonObject['manualInterventionMaximumDuration'])) ? Number(jsonObject['manualInterventionMaximumDuration']) : Math.floor(Number(jsonObject['manualInterventionMaximumDuration']));
487
+ }
488
+
489
+ return Number.isInteger(jsonObject['manualInterventionMaximumDuration']) ? jsonObject['manualInterventionMaximumDuration'] : Math.floor(jsonObject['manualInterventionMaximumDuration']);
490
+ }();
491
+ }
492
+
493
+ if ('liveWeighingIncreaseTolerance' in jsonObject) {
494
+ model.liveWeighingIncreaseTolerance = function () {
495
+ if (jsonObject['liveWeighingIncreaseTolerance'] === null) {
496
+ return null;
497
+ }
498
+
499
+ if (typeof jsonObject['liveWeighingIncreaseTolerance'] !== 'number') {
500
+ return Number(jsonObject['liveWeighingIncreaseTolerance']);
501
+ }
502
+
503
+ return jsonObject['liveWeighingIncreaseTolerance'];
504
+ }();
505
+ }
506
+
507
+ if ('liveWeighingDecreaseTolerance' in jsonObject) {
508
+ model.liveWeighingDecreaseTolerance = function () {
509
+ if (jsonObject['liveWeighingDecreaseTolerance'] === null) {
510
+ return null;
511
+ }
512
+
513
+ if (typeof jsonObject['liveWeighingDecreaseTolerance'] !== 'number') {
514
+ return Number(jsonObject['liveWeighingDecreaseTolerance']);
515
+ }
516
+
517
+ return jsonObject['liveWeighingDecreaseTolerance'];
518
+ }();
519
+ }
520
+
521
+ if ('liveWeighingUpdateInterval' in jsonObject) {
522
+ model.liveWeighingUpdateInterval = function () {
523
+ if (jsonObject['liveWeighingUpdateInterval'] === null) {
524
+ return null;
525
+ }
526
+
527
+ if (typeof jsonObject['liveWeighingUpdateInterval'] !== 'number') {
528
+ return Number.isInteger(Number(jsonObject['liveWeighingUpdateInterval'])) ? Number(jsonObject['liveWeighingUpdateInterval']) : Math.floor(Number(jsonObject['liveWeighingUpdateInterval']));
529
+ }
530
+
531
+ return Number.isInteger(jsonObject['liveWeighingUpdateInterval']) ? jsonObject['liveWeighingUpdateInterval'] : Math.floor(jsonObject['liveWeighingUpdateInterval']);
532
+ }();
533
+ }
534
+
535
+ if ('liveWeighingUsesStableStatus' in jsonObject) {
536
+ model.liveWeighingUsesStableStatus = function () {
537
+ if (jsonObject['liveWeighingUsesStableStatus'] === null) {
538
+ return null;
539
+ }
540
+
541
+ if (typeof jsonObject['liveWeighingUsesStableStatus'] !== 'boolean') {
542
+ return Boolean(jsonObject['liveWeighingUsesStableStatus']);
543
+ }
544
+
545
+ return jsonObject['liveWeighingUsesStableStatus'];
546
+ }();
547
+ }
548
+
549
+ if ('incorrectOperationTolerance' in jsonObject) {
550
+ model.incorrectOperationTolerance = function () {
551
+ if (jsonObject['incorrectOperationTolerance'] === null) {
552
+ return null;
553
+ }
554
+
555
+ if (typeof jsonObject['incorrectOperationTolerance'] !== 'number') {
556
+ return Number(jsonObject['incorrectOperationTolerance']);
301
557
  }
302
558
 
303
- return Number.isInteger(jsonObject['autoPackrunChange']) ? jsonObject['autoPackrunChange'] : Math.floor(jsonObject['autoPackrunChange']);
559
+ return jsonObject['incorrectOperationTolerance'];
304
560
  }();
305
561
  }
306
562