@ricado/api-client 2.1.1 → 2.3.1

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 (118) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  3. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  4. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  5. package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  7. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  9. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  10. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  11. package/lib/DataItems/PointValueItem.js +3 -3
  12. package/lib/Models/AccountPolicyModel.js +7 -7
  13. package/lib/Models/ApiAccountModel.js +7 -7
  14. package/lib/Models/CompanyModel.js +5 -5
  15. package/lib/Models/FirebaseTokenModel.js +8 -8
  16. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  17. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  18. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  20. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  21. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  23. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  24. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  25. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  26. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  27. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  28. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/PackingLineModel.js +583 -16
  30. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  31. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  32. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  33. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  34. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  35. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  36. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  37. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  38. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  39. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  40. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  41. package/lib/Models/Packhouse/Site/index.js +12 -0
  42. package/lib/Models/RTUModel.js +6 -6
  43. package/lib/Models/RTUPluginModel.js +5 -5
  44. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  45. package/lib/Models/Site/AlarmModel.js +17 -17
  46. package/lib/Models/Site/DefinitionModel.js +6 -6
  47. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  48. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  49. package/lib/Models/Site/PointModel.js +11 -11
  50. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  51. package/lib/Models/SiteModel.js +6 -6
  52. package/lib/Models/TokenModel.js +10 -10
  53. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  54. package/lib/Models/UserAccountModel.js +10 -10
  55. package/lib/PackageVersion.js +1 -1
  56. package/lib/Points.js +22 -12
  57. package/lib/WebSocketHelper.js +29 -13
  58. package/lib/index.d.ts +2473 -348
  59. package/lib/index.js +3 -3
  60. package/package.json +1 -1
  61. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  62. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  63. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  64. package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  65. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  66. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  67. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  68. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  69. package/src/Controllers/Packhouse/Site/index.js +8 -0
  70. package/src/DataItems/PointValueItem.js +3 -3
  71. package/src/Models/AccountPolicyModel.js +7 -7
  72. package/src/Models/ApiAccountModel.js +7 -7
  73. package/src/Models/CompanyModel.js +5 -5
  74. package/src/Models/FirebaseTokenModel.js +8 -8
  75. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  76. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  77. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  78. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  79. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  80. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  81. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  82. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  83. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  84. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  85. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  86. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  87. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  88. package/src/Models/Packhouse/Site/PackingLineModel.js +770 -16
  89. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  90. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  91. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  92. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  93. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  94. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  95. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  96. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  97. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  98. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  99. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  100. package/src/Models/Packhouse/Site/index.js +8 -0
  101. package/src/Models/RTUModel.js +6 -6
  102. package/src/Models/RTUPluginModel.js +5 -5
  103. package/src/Models/Site/AlarmGroupModel.js +7 -7
  104. package/src/Models/Site/AlarmModel.js +17 -17
  105. package/src/Models/Site/DefinitionModel.js +6 -6
  106. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  107. package/src/Models/Site/PermanentObjectModel.js +7 -7
  108. package/src/Models/Site/PointModel.js +11 -11
  109. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  110. package/src/Models/SiteModel.js +6 -6
  111. package/src/Models/TokenModel.js +10 -10
  112. package/src/Models/UserAccountActionTokenModel.js +11 -11
  113. package/src/Models/UserAccountModel.js +10 -10
  114. package/src/PackageVersion.js +1 -1
  115. package/src/Points.js +24 -12
  116. package/src/WebSocketHelper.js +34 -13
  117. package/src/index.js +3 -3
  118. 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,7 +118,7 @@ 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
  *
@@ -126,7 +126,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.autoPackrunChange = undefined;
129
+ _this.autoPackrunChange = null;
130
130
  /**
131
131
  * Whether this Reject Bin Scale supports Live Weighing
132
132
  *
@@ -134,7 +134,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.supportsLiveWeighing = undefined;
137
+ _this.supportsLiveWeighing = null;
138
138
  /**
139
139
  * The Minimum Weight Change Required to Automatically Start Live Weighing
140
140
  *
@@ -142,7 +142,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.autoWeighingStartThreshold = undefined;
145
+ _this.autoWeighingStartThreshold = null;
146
146
  /**
147
147
  * The Delay in Milliseconds before Auto Live Weighing would Start
148
148
  *
@@ -150,7 +150,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.autoWeighingStartDelay = undefined;
153
+ _this.autoWeighingStartDelay = null;
154
154
  /**
155
155
  * The Minimum Weight Change Required to Automatically Finish Live Weighing
156
156
  *
@@ -158,7 +158,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.autoWeighingFinishThreshold = undefined;
161
+ _this.autoWeighingFinishThreshold = null;
162
162
  /**
163
163
  * The Delay in Milliseconds before Auto Live Weighing would Finish
164
164
  *
@@ -166,7 +166,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
166
166
  * @public
167
167
  */
168
168
 
169
- _this.autoWeighingFinishDelay = undefined;
169
+ _this.autoWeighingFinishDelay = null;
170
170
  /**
171
171
  * The Maximum Duration in Milliseconds before a Manual Intervention would end
172
172
  *
@@ -174,7 +174,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
174
174
  * @public
175
175
  */
176
176
 
177
- _this.manualInterventionMaximumDuration = undefined;
177
+ _this.manualInterventionMaximumDuration = null;
178
178
  /**
179
179
  * The Maximum Weight Increase allowed within a single Live Weighing Update Interval
180
180
  *
@@ -182,7 +182,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
182
182
  * @public
183
183
  */
184
184
 
185
- _this.liveWeighingIncreaseTolerance = undefined;
185
+ _this.liveWeighingIncreaseTolerance = null;
186
186
  /**
187
187
  * The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
188
188
  *
@@ -190,7 +190,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
190
190
  * @public
191
191
  */
192
192
 
193
- _this.liveWeighingDecreaseTolerance = undefined;
193
+ _this.liveWeighingDecreaseTolerance = null;
194
194
  /**
195
195
  * The Interval in Milliseconds between Live Weighing Updates
196
196
  *
@@ -198,7 +198,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
198
198
  * @public
199
199
  */
200
200
 
201
- _this.liveWeighingUpdateInterval = undefined;
201
+ _this.liveWeighingUpdateInterval = null;
202
202
  /**
203
203
  * Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
204
204
  *
@@ -206,7 +206,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
206
206
  * @public
207
207
  */
208
208
 
209
- _this.liveWeighingUsesStableStatus = undefined;
209
+ _this.liveWeighingUsesStableStatus = null;
210
210
  /**
211
211
  * The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
212
212
  *
@@ -214,7 +214,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
214
214
  * @public
215
215
  */
216
216
 
217
- _this.incorrectOperationTolerance = undefined;
217
+ _this.incorrectOperationTolerance = null;
218
218
  /**
219
219
  * The FreshPack Integration Configuration for this Reject Bin Scale
220
220
  *
@@ -222,7 +222,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
222
222
  * @public
223
223
  */
224
224
 
225
- _this.freshPackIntegration = undefined;
225
+ _this.freshPackIntegration = null;
226
226
  /**
227
227
  * Whether the Reject Bin Scale has been deleted
228
228
  *
@@ -230,7 +230,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
230
230
  * @public
231
231
  */
232
232
 
233
- _this.deleted = undefined;
233
+ _this.deleted = false;
234
234
  /**
235
235
  * When the Reject Bin Scale was last updated
236
236
  *
@@ -238,7 +238,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
238
238
  * @public
239
239
  */
240
240
 
241
- _this.updateTimestamp = undefined;
241
+ _this.updateTimestamp = new Date();
242
242
  /**
243
243
  * The Site ID associated with this Reject Bin Scale
244
244
  *
@@ -62,7 +62,7 @@ var RejectBinWeightModel = /*#__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 Weight is associated with
68
68
  *
@@ -70,7 +70,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rejectBinScaleId = undefined;
73
+ _this.rejectBinScaleId = "";
74
74
  /**
75
75
  * The Reject Bin ID this Reject Weight is associated with
76
76
  *
@@ -78,7 +78,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.rejectBinId = undefined;
81
+ _this.rejectBinId = "";
82
82
  /**
83
83
  * When this Reject Bin Weight was Created
84
84
  *
@@ -86,7 +86,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The Packrun this Reject Weight is associated with
92
92
  *
@@ -94,7 +94,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.packrunId = undefined;
97
+ _this.packrunId = null;
98
98
  /**
99
99
  * The Net Weight Captured by the Reject Bin Scale
100
100
  *
@@ -102,7 +102,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.netWeight = undefined;
105
+ _this.netWeight = 0;
106
106
  /**
107
107
  * The Source Weights that make up the Net Weight
108
108
  *
@@ -110,7 +110,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.sources = undefined;
113
+ _this.sources = [];
114
114
  /**
115
115
  * The Multi-Grower Bin Weights that will be submitted to FreshPack
116
116
  *
@@ -118,7 +118,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.freshPackMultiGrowerBinWeights = undefined;
121
+ _this.freshPackMultiGrowerBinWeights = [];
122
122
  /**
123
123
  * Whether the Reject Bin Weight has been deleted
124
124
  *
@@ -126,7 +126,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.deleted = undefined;
129
+ _this.deleted = false;
130
130
  /**
131
131
  * When the Reject Bin Weight was last updated
132
132
  *
@@ -134,7 +134,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.updateTimestamp = undefined;
137
+ _this.updateTimestamp = new Date();
138
138
  /**
139
139
  * The Site ID associated with this Reject Bin Weight
140
140
  *
@@ -62,7 +62,7 @@ var ShiftFocusMeetingModel = /*#__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 Focus Meeting is associated with
68
68
  *
@@ -70,7 +70,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Shift ID this Focus Meeting is asssociated with
76
76
  *
@@ -78,7 +78,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.shiftId = undefined;
81
+ _this.shiftId = "";
82
82
  /**
83
83
  * When this Focus Meeting was Created
84
84
  *
@@ -86,7 +86,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * When this Focus Meeting is Scheduled to Begin
92
92
  *
@@ -94,7 +94,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.scheduledTimestamp = undefined;
97
+ _this.scheduledTimestamp = new Date();
98
98
  /**
99
99
  * When this Focus Meeting was Started
100
100
  *
@@ -102,7 +102,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.startTimestamp = undefined;
105
+ _this.startTimestamp = null;
106
106
  /**
107
107
  * When this Focus Meeting was Completed
108
108
  *
@@ -110,7 +110,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.finishTimestamp = undefined;
113
+ _this.finishTimestamp = null;
114
114
  /**
115
115
  * An Optional Key Focus until the Next Meeting
116
116
  *
@@ -118,7 +118,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.nextKeyFocus = undefined;
121
+ _this.nextKeyFocus = null;
122
122
  /**
123
123
  * An Optional Rating between 1 and 10 on how Successful the Focus Meeting was
124
124
  *
@@ -126,7 +126,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.successRating = undefined;
129
+ _this.successRating = null;
130
130
  /**
131
131
  * The Status of this Focus Meeting
132
132
  *
@@ -134,7 +134,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.status = undefined;
137
+ _this.status = "";
138
138
  /**
139
139
  * Whether the Shift Focus Meeting has been deleted
140
140
  *
@@ -142,7 +142,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.deleted = undefined;
145
+ _this.deleted = false;
146
146
  /**
147
147
  * When the Shift Focus Meeting was last updated
148
148
  *
@@ -150,7 +150,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.updateTimestamp = undefined;
153
+ _this.updateTimestamp = new Date();
154
154
  /**
155
155
  * The Site ID associated with this Shift Focus Meeting
156
156
  *