@ricado/api-client 1.4.1 → 2.1.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 (136) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/AccountPolicyController.js +1 -1
  3. package/lib/Controllers/ApiAccountController.js +2 -2
  4. package/lib/Controllers/CompanyController.js +1 -1
  5. package/lib/Controllers/FirebaseTokenController.js +1 -1
  6. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +2 -2
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
  10. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
  11. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
  12. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
  13. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
  14. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
  15. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
  16. package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
  17. package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
  18. package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
  19. package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
  20. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
  21. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
  22. package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
  23. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
  24. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
  25. package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
  26. package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
  27. package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
  28. package/lib/Controllers/RTUController.js +1 -1
  29. package/lib/Controllers/RTUPluginController.js +1 -1
  30. package/lib/Controllers/Site/AlarmController.js +2 -2
  31. package/lib/Controllers/Site/AlarmGroupController.js +1 -1
  32. package/lib/Controllers/Site/DefinitionController.js +1 -1
  33. package/lib/Controllers/Site/PermanentObjectController.js +1 -1
  34. package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
  35. package/lib/Controllers/Site/PointController.js +2 -2
  36. package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
  37. package/lib/Controllers/SiteController.js +1 -1
  38. package/lib/Controllers/TokenController.js +2 -2
  39. package/lib/Controllers/ToolsController.js +1 -1
  40. package/lib/Controllers/UserAccountActionTokenController.js +2 -2
  41. package/lib/Controllers/UserAccountController.js +2 -2
  42. package/lib/DataItems/PointValueItem.js +2 -2
  43. package/lib/Errors/BadRequestError.js +7 -3
  44. package/lib/Errors/ForbiddenError.js +7 -3
  45. package/lib/Errors/NetworkError.js +7 -3
  46. package/lib/Errors/NotAllowedError.js +7 -3
  47. package/lib/Errors/NotFoundError.js +7 -3
  48. package/lib/Errors/ServerError.js +7 -3
  49. package/lib/Errors/UnauthorizedError.js +7 -3
  50. package/lib/Models/AccountPolicyModel.js +29 -133
  51. package/lib/Models/ApiAccountModel.js +29 -133
  52. package/lib/Models/BaseModel.js +6 -2
  53. package/lib/Models/CompanyModel.js +23 -101
  54. package/lib/Models/FirebaseTokenModel.js +32 -149
  55. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
  56. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
  57. package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
  58. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
  59. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
  60. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
  61. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
  62. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
  63. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
  64. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
  65. package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
  66. package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
  67. package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
  68. package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
  69. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
  70. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
  71. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
  72. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
  73. package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
  74. package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
  75. package/lib/Models/RTUModel.js +26 -117
  76. package/lib/Models/RTUPluginModel.js +23 -101
  77. package/lib/Models/Site/AlarmGroupModel.js +37 -153
  78. package/lib/Models/Site/AlarmModel.js +67 -313
  79. package/lib/Models/Site/DefinitionModel.js +34 -137
  80. package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
  81. package/lib/Models/Site/PermanentObjectModel.js +37 -153
  82. package/lib/Models/Site/PointModel.js +49 -217
  83. package/lib/Models/Site/TemporaryObjectModel.js +34 -137
  84. package/lib/Models/Site/index.js +0 -3
  85. package/lib/Models/SiteModel.js +26 -117
  86. package/lib/Models/TokenModel.js +38 -181
  87. package/lib/Models/UserAccountActionTokenModel.js +41 -197
  88. package/lib/Models/UserAccountModel.js +38 -181
  89. package/lib/PackageVersion.js +1 -1
  90. package/lib/Points.js +1 -1
  91. package/lib/RequestHelper.js +2 -2
  92. package/lib/WebSocketHelper.js +1 -1
  93. package/lib/index.d.ts +945 -1206
  94. package/package.json +3 -3
  95. package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
  96. package/src/Models/AccountPolicyModel.js +21 -117
  97. package/src/Models/ApiAccountModel.js +21 -117
  98. package/src/Models/CompanyModel.js +15 -87
  99. package/src/Models/FirebaseTokenModel.js +24 -132
  100. package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
  101. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
  102. package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
  103. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
  104. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
  105. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
  106. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
  107. package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
  108. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
  109. package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
  110. package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
  111. package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
  112. package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
  113. package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
  114. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
  115. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
  116. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
  117. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
  118. package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
  119. package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
  120. package/src/Models/RTUModel.js +18 -102
  121. package/src/Models/RTUPluginModel.js +15 -87
  122. package/src/Models/Site/AlarmGroupModel.js +26 -133
  123. package/src/Models/Site/AlarmModel.js +56 -283
  124. package/src/Models/Site/DefinitionModel.js +23 -118
  125. package/src/Models/Site/PermanentObjectDataModel.js +29 -148
  126. package/src/Models/Site/PermanentObjectModel.js +26 -133
  127. package/src/Models/Site/PointModel.js +38 -193
  128. package/src/Models/Site/TemporaryObjectModel.js +23 -118
  129. package/src/Models/Site/index.js +0 -2
  130. package/src/Models/SiteModel.js +18 -102
  131. package/src/Models/TokenModel.js +30 -162
  132. package/src/Models/UserAccountActionTokenModel.js +33 -177
  133. package/src/Models/UserAccountModel.js +30 -162
  134. package/src/PackageVersion.js +1 -1
  135. package/lib/Models/Site/BaseSiteModel.js +0 -58
  136. package/src/Models/Site/BaseSiteModel.js +0 -30
@@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _BaseSiteModel2 = _interopRequireDefault(require("../../../Models/Site/BaseSiteModel"));
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
16
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
17
 
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -36,10 +36,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
36
36
  *
37
37
  * @class
38
38
  * @hideconstructor
39
- * @extends BaseSiteModel
39
+ * @extends BaseModel
40
40
  */
41
- var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
42
- _inherits(ShiftHourlyEntryModel, _BaseSiteModel);
41
+ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(ShiftHourlyEntryModel, _BaseModel);
43
43
 
44
44
  var _super = _createSuper(ShiftHourlyEntryModel);
45
45
 
@@ -59,826 +59,320 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
59
59
  * The Shift Hourly Entry ID
60
60
  *
61
61
  * @type {string}
62
- * @private
62
+ * @public
63
63
  */
64
64
 
65
- _this._id = undefined;
65
+ _this.id = undefined;
66
66
  /**
67
67
  * The Packing Line ID this Hourly Entry is associated with
68
68
  *
69
69
  * @type {string}
70
- * @private
70
+ * @public
71
71
  */
72
72
 
73
- _this._packingLineId = undefined;
73
+ _this.packingLineId = undefined;
74
74
  /**
75
75
  * The Shift ID this Hourly Entry is asssociated with
76
76
  *
77
77
  * @type {string}
78
- * @private
78
+ * @public
79
79
  */
80
80
 
81
- _this._shiftId = undefined;
81
+ _this.shiftId = undefined;
82
82
  /**
83
83
  * When this Hourly Entry was Created
84
84
  *
85
85
  * @type {Date}
86
- * @private
86
+ * @public
87
87
  */
88
88
 
89
- _this._createdTimestamp = undefined;
89
+ _this.createdTimestamp = undefined;
90
90
  /**
91
91
  * The Start Timestamp of this Hourly Entry
92
92
  *
93
93
  * @type {Date}
94
- * @private
94
+ * @public
95
95
  */
96
96
 
97
- _this._startTimestamp = undefined;
97
+ _this.startTimestamp = undefined;
98
98
  /**
99
99
  * The End Timestamp of this Hourly Entry
100
100
  *
101
101
  * @type {Date}
102
- * @private
102
+ * @public
103
103
  */
104
104
 
105
- _this._endTimestamp = undefined;
105
+ _this.endTimestamp = undefined;
106
106
  /**
107
107
  * The Number of People working in all Areas except Class 2 for this Hour
108
108
  *
109
109
  * @type {?number}
110
- * @private
110
+ * @public
111
111
  */
112
112
 
113
- _this._class1Manning = undefined;
113
+ _this.class1Manning = undefined;
114
114
  /**
115
115
  * The Number of People working in the Class 2 Area for this Hour
116
116
  *
117
117
  * @type {?number}
118
- * @private
118
+ * @public
119
119
  */
120
120
 
121
- _this._class2Manning = undefined;
121
+ _this.class2Manning = undefined;
122
122
  /**
123
123
  * The Average Target Number of People that should be working for this Hour
124
124
  *
125
125
  * @type {?number}
126
- * @private
126
+ * @public
127
127
  */
128
128
 
129
- _this._averageManningTarget = undefined;
129
+ _this.averageManningTarget = undefined;
130
130
  /**
131
131
  * The Percentage of Total Tray Equivalents that are Layered for this Hour
132
132
  *
133
133
  * @type {?number}
134
- * @private
134
+ * @public
135
135
  */
136
136
 
137
- _this._layeredTrayPercentage = undefined;
137
+ _this.layeredTrayPercentage = undefined;
138
138
  /**
139
139
  * The Average Class 1 Percentage for this Hour
140
140
  *
141
141
  * @type {?number}
142
- * @private
142
+ * @public
143
143
  */
144
144
 
145
- _this._averageClass1Percentage = undefined;
145
+ _this.averageClass1Percentage = undefined;
146
146
  /**
147
147
  * The Number of Quality R600 Samples that were Ideal for this Hour
148
148
  *
149
149
  * @type {?number}
150
- * @private
150
+ * @public
151
151
  */
152
152
 
153
- _this._qualityR600IdealSamplesPercentage = undefined;
153
+ _this.qualityR600IdealSamplesPercentage = undefined;
154
154
  /**
155
155
  * An Array of Custom Quality Data Items for this Hour
156
156
  *
157
157
  * @type {Array<{id: string, name: string, type: string, value: number}>}
158
- * @private
158
+ * @public
159
159
  */
160
160
 
161
- _this._customQualityData = undefined;
161
+ _this.customQualityData = undefined;
162
162
  /**
163
163
  * The Total Number of Bins Tipped for this Hour
164
164
  *
165
165
  * @type {number}
166
- * @private
166
+ * @public
167
167
  */
168
168
 
169
- _this._totalBinsTipped = undefined;
169
+ _this.totalBinsTipped = undefined;
170
170
  /**
171
171
  * The Target Number of Bins to Tip for this Hour
172
172
  *
173
173
  * @type {number}
174
- * @private
174
+ * @public
175
175
  */
176
176
 
177
- _this._binsTippedTarget = undefined;
177
+ _this.binsTippedTarget = undefined;
178
178
  /**
179
179
  * The Total Downtime for this Hour expressed in Seconds
180
180
  *
181
181
  * @type {number}
182
- * @private
182
+ * @public
183
183
  */
184
184
 
185
- _this._totalDowntime = undefined;
185
+ _this.totalDowntime = undefined;
186
186
  /**
187
187
  * The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
188
188
  *
189
189
  * @type {number}
190
- * @private
190
+ * @public
191
191
  */
192
192
 
193
- _this._totalProductionTime = undefined;
193
+ _this.totalProductionTime = undefined;
194
194
  /**
195
195
  * The Total Number of Class 1 Tray Equivalents Packed for this Hour
196
196
  *
197
197
  * @type {number}
198
- * @private
198
+ * @public
199
199
  */
200
200
 
201
- _this._totalClass1Trays = undefined;
201
+ _this.totalClass1Trays = undefined;
202
202
  /**
203
203
  * The Total Number of Class 2 Tray Equivalents Packed for this Hour
204
204
  *
205
205
  * @type {number}
206
- * @private
206
+ * @public
207
207
  */
208
208
 
209
- _this._totalClass2Trays = undefined;
209
+ _this.totalClass2Trays = undefined;
210
210
  /**
211
211
  * The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
212
212
  *
213
213
  * @type {number}
214
- * @private
214
+ * @public
215
215
  */
216
216
 
217
- _this._class1TraysPerHourExcludingDowntimeTarget = undefined;
217
+ _this.class1TraysPerHourExcludingDowntimeTarget = undefined;
218
218
  /**
219
219
  * The Primary Issue Category for this Hourly Entry
220
220
  *
221
221
  * @type {?string}
222
- * @private
222
+ * @public
223
223
  */
224
224
 
225
- _this._primaryIssueCategory = undefined;
225
+ _this.primaryIssueCategory = undefined;
226
226
  /**
227
227
  * The Primary Issue Tag for this Hourly Entry
228
228
  *
229
229
  * @type {?string}
230
- * @private
230
+ * @public
231
231
  */
232
232
 
233
- _this._primaryIssueTag = undefined;
233
+ _this.primaryIssueTag = undefined;
234
234
  /**
235
235
  * The Secondary Issue Category for this Hourly Entry
236
236
  *
237
237
  * @type {?string}
238
- * @private
238
+ * @public
239
239
  */
240
240
 
241
- _this._secondaryIssueCategory = undefined;
241
+ _this.secondaryIssueCategory = undefined;
242
242
  /**
243
243
  * The Secondary Issue Tag for this Hourly Entry
244
244
  *
245
245
  * @type {?string}
246
- * @private
246
+ * @public
247
247
  */
248
248
 
249
- _this._secondaryIssueTag = undefined;
249
+ _this.secondaryIssueTag = undefined;
250
250
  /**
251
251
  * An Optional Focus for the Next Hour
252
252
  *
253
253
  * @type {?string}
254
- * @private
254
+ * @public
255
255
  */
256
256
 
257
- _this._nextHourFocus = undefined;
257
+ _this.nextHourFocus = undefined;
258
258
  /**
259
259
  * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
260
260
  *
261
261
  * @type {?number}
262
- * @private
262
+ * @public
263
263
  */
264
264
 
265
- _this._satisfactionRating = undefined;
265
+ _this.satisfactionRating = undefined;
266
266
  /**
267
267
  * The Status of this Hourly Entry
268
268
  *
269
269
  * @type {string}
270
- * @private
270
+ * @public
271
271
  */
272
272
 
273
- _this._status = undefined;
273
+ _this.status = undefined;
274
274
  /**
275
275
  * The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
276
276
  *
277
277
  * @type {number}
278
- * @private
278
+ * @public
279
279
  */
280
280
 
281
- _this._class1TraysPerHourPotential = undefined;
281
+ _this.class1TraysPerHourPotential = undefined;
282
282
  /**
283
283
  * The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
284
284
  *
285
285
  * @type {number}
286
- * @private
286
+ * @public
287
287
  */
288
288
 
289
- _this._class1TraysPerHourExcludingDowntime = undefined;
289
+ _this.class1TraysPerHourExcludingDowntime = undefined;
290
290
  /**
291
291
  * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
292
292
  *
293
293
  * @type {?number}
294
- * @private
294
+ * @public
295
295
  */
296
296
 
297
- _this._class1TraysPerManHourPotential = undefined;
297
+ _this.class1TraysPerManHourPotential = undefined;
298
298
  /**
299
299
  * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
300
300
  *
301
301
  * @type {?number}
302
- * @private
302
+ * @public
303
303
  */
304
304
 
305
- _this._class1TraysPerManHourExcludingDowntime = undefined;
305
+ _this.class1TraysPerManHourExcludingDowntime = undefined;
306
306
  /**
307
307
  * The Manning Percentage based on the Average Target for this Hour
308
308
  *
309
309
  * @type {?number}
310
- * @private
310
+ * @public
311
311
  */
312
312
 
313
- _this._manningPercentage = undefined;
313
+ _this.manningPercentage = undefined;
314
314
  /**
315
315
  * The Total Number of People working for this Hour
316
316
  *
317
317
  * @type {?number}
318
- * @private
318
+ * @public
319
319
  */
320
320
 
321
- _this._totalManning = undefined;
321
+ _this.totalManning = undefined;
322
322
  /**
323
323
  * The Percentage of Production Time without Downtime for this Hour
324
324
  *
325
325
  * @type {number}
326
- * @private
326
+ * @public
327
327
  */
328
328
 
329
- _this._uptimePercentage = undefined;
329
+ _this.uptimePercentage = undefined;
330
330
  /**
331
331
  * The Percentage of Downtime for this Hour
332
332
  *
333
333
  * @type {number}
334
- * @private
334
+ * @public
335
335
  */
336
336
 
337
- _this._downtimePercentage = undefined;
337
+ _this.downtimePercentage = undefined;
338
338
  /**
339
339
  * Whether the Shift Hourly Entry has been deleted
340
340
  *
341
341
  * @type {boolean}
342
- * @private
342
+ * @public
343
343
  */
344
344
 
345
- _this._deleted = undefined;
345
+ _this.deleted = undefined;
346
346
  /**
347
347
  * When the Shift Hourly Entry was last updated
348
348
  *
349
349
  * @type {Date}
350
- * @private
350
+ * @public
351
351
  */
352
352
 
353
- _this._updateTimestamp = undefined;
353
+ _this.updateTimestamp = undefined;
354
354
  /**
355
355
  * The Site ID associated with this Shift Hourly Entry
356
356
  *
357
357
  * @type {number}
358
- * @private
358
+ * @public
359
359
  */
360
360
 
361
- _this._siteId = siteId;
361
+ _this.siteId = siteId;
362
362
  return _this;
363
363
  }
364
364
  /**
365
- * The Shift Hourly Entry ID
365
+ * Create a new **ShiftHourlyEntryModel** from a JSON Object or JSON String
366
366
  *
367
+ * @static
367
368
  * @public
368
- * @type {string}
369
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
370
+ * @param {number} siteId The Site ID associated with this Shift Hourly Entry
371
+ * @return {ShiftHourlyEntryModel}
369
372
  */
370
373
 
371
374
 
372
- _createClass(ShiftHourlyEntryModel, [{
373
- key: "id",
374
- get: function get() {
375
- return this._id;
376
- }
377
- /**
378
- * The Packing Line ID this Hourly Entry is associated with
379
- *
380
- * @public
381
- * @type {string}
382
- */
383
-
384
- }, {
385
- key: "packingLineId",
386
- get: function get() {
387
- return this._packingLineId;
388
- }
389
- /**
390
- * The Shift ID this Hourly Entry is asssociated with
391
- *
392
- * @public
393
- * @type {string}
394
- */
395
-
396
- }, {
397
- key: "shiftId",
398
- get: function get() {
399
- return this._shiftId;
400
- }
401
- /**
402
- * When this Hourly Entry was Created
403
- *
404
- * @public
405
- * @type {Date}
406
- */
407
-
408
- }, {
409
- key: "createdTimestamp",
410
- get: function get() {
411
- return this._createdTimestamp;
412
- }
413
- /**
414
- * The Start Timestamp of this Hourly Entry
415
- *
416
- * @public
417
- * @type {Date}
418
- */
419
-
420
- }, {
421
- key: "startTimestamp",
422
- get: function get() {
423
- return this._startTimestamp;
424
- }
425
- /**
426
- * The End Timestamp of this Hourly Entry
427
- *
428
- * @public
429
- * @type {Date}
430
- */
431
-
432
- }, {
433
- key: "endTimestamp",
434
- get: function get() {
435
- return this._endTimestamp;
436
- }
437
- /**
438
- * The Number of People working in all Areas except Class 2 for this Hour
439
- *
440
- * @public
441
- * @type {?number}
442
- */
443
-
444
- }, {
445
- key: "class1Manning",
446
- get: function get() {
447
- return this._class1Manning;
448
- }
449
- /**
450
- * The Number of People working in the Class 2 Area for this Hour
451
- *
452
- * @public
453
- * @type {?number}
454
- */
455
-
456
- }, {
457
- key: "class2Manning",
458
- get: function get() {
459
- return this._class2Manning;
460
- }
461
- /**
462
- * The Average Target Number of People that should be working for this Hour
463
- *
464
- * @public
465
- * @type {?number}
466
- */
467
-
468
- }, {
469
- key: "averageManningTarget",
470
- get: function get() {
471
- return this._averageManningTarget;
472
- }
473
- /**
474
- * The Percentage of Total Tray Equivalents that are Layered for this Hour
475
- *
476
- * @public
477
- * @type {?number}
478
- */
479
-
480
- }, {
481
- key: "layeredTrayPercentage",
482
- get: function get() {
483
- return this._layeredTrayPercentage;
484
- }
485
- /**
486
- * The Average Class 1 Percentage for this Hour
487
- *
488
- * @public
489
- * @type {?number}
490
- */
491
-
492
- }, {
493
- key: "averageClass1Percentage",
494
- get: function get() {
495
- return this._averageClass1Percentage;
496
- }
497
- /**
498
- * The Number of Quality R600 Samples that were Ideal for this Hour
499
- *
500
- * @public
501
- * @type {?number}
502
- */
503
-
504
- }, {
505
- key: "qualityR600IdealSamplesPercentage",
506
- get: function get() {
507
- return this._qualityR600IdealSamplesPercentage;
508
- }
509
- /**
510
- * An Array of Custom Quality Data Items for this Hour
511
- *
512
- * @public
513
- * @type {Array<{id: string, name: string, type: string, value: number}>}
514
- */
515
-
516
- }, {
517
- key: "customQualityData",
518
- get: function get() {
519
- return this._customQualityData;
520
- }
521
- /**
522
- * The Total Number of Bins Tipped for this Hour
523
- *
524
- * @public
525
- * @type {number}
526
- */
527
-
528
- }, {
529
- key: "totalBinsTipped",
530
- get: function get() {
531
- return this._totalBinsTipped;
532
- }
533
- /**
534
- * The Target Number of Bins to Tip for this Hour
535
- *
536
- * @public
537
- * @type {number}
538
- */
539
-
540
- }, {
541
- key: "binsTippedTarget",
542
- get: function get() {
543
- return this._binsTippedTarget;
544
- }
545
- /**
546
- * The Total Downtime for this Hour expressed in Seconds
547
- *
548
- * @public
549
- * @type {number}
550
- */
551
-
552
- }, {
553
- key: "totalDowntime",
554
- get: function get() {
555
- return this._totalDowntime;
556
- }
557
- /**
558
- * The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
559
- *
560
- * @public
561
- * @type {number}
562
- */
563
-
564
- }, {
565
- key: "totalProductionTime",
566
- get: function get() {
567
- return this._totalProductionTime;
568
- }
569
- /**
570
- * The Total Number of Class 1 Tray Equivalents Packed for this Hour
571
- *
572
- * @public
573
- * @type {number}
574
- */
575
-
576
- }, {
577
- key: "totalClass1Trays",
578
- get: function get() {
579
- return this._totalClass1Trays;
580
- }
581
- /**
582
- * The Total Number of Class 2 Tray Equivalents Packed for this Hour
583
- *
584
- * @public
585
- * @type {number}
586
- */
587
-
588
- }, {
589
- key: "totalClass2Trays",
590
- get: function get() {
591
- return this._totalClass2Trays;
592
- }
593
- /**
594
- * The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
595
- *
596
- * @public
597
- * @type {number}
598
- */
599
-
600
- }, {
601
- key: "class1TraysPerHourExcludingDowntimeTarget",
602
- get: function get() {
603
- return this._class1TraysPerHourExcludingDowntimeTarget;
604
- }
605
- /**
606
- * The Primary Issue Category for this Hourly Entry
607
- *
608
- * @public
609
- * @type {?string}
610
- */
611
-
612
- }, {
613
- key: "primaryIssueCategory",
614
- get: function get() {
615
- return this._primaryIssueCategory;
616
- }
617
- /**
618
- * The Primary Issue Tag for this Hourly Entry
619
- *
620
- * @public
621
- * @type {?string}
622
- */
623
-
624
- }, {
625
- key: "primaryIssueTag",
626
- get: function get() {
627
- return this._primaryIssueTag;
628
- }
629
- /**
630
- * The Secondary Issue Category for this Hourly Entry
631
- *
632
- * @public
633
- * @type {?string}
634
- */
635
-
636
- }, {
637
- key: "secondaryIssueCategory",
638
- get: function get() {
639
- return this._secondaryIssueCategory;
640
- }
641
- /**
642
- * The Secondary Issue Tag for this Hourly Entry
643
- *
644
- * @public
645
- * @type {?string}
646
- */
647
-
648
- }, {
649
- key: "secondaryIssueTag",
650
- get: function get() {
651
- return this._secondaryIssueTag;
652
- }
653
- /**
654
- * An Optional Focus for the Next Hour
655
- *
656
- * @public
657
- * @type {?string}
658
- */
659
-
660
- }, {
661
- key: "nextHourFocus",
662
- get: function get() {
663
- return this._nextHourFocus;
664
- }
665
- /**
666
- * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
667
- *
668
- * @public
669
- * @type {?number}
670
- */
671
-
672
- }, {
673
- key: "satisfactionRating",
674
- get: function get() {
675
- return this._satisfactionRating;
676
- }
677
- /**
678
- * The Status of this Hourly Entry
679
- *
680
- * @public
681
- * @type {string}
682
- */
683
-
684
- }, {
685
- key: "status",
686
- get: function get() {
687
- return this._status;
688
- }
689
- /**
690
- * The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
691
- *
692
- * @public
693
- * @type {number}
694
- */
695
-
696
- }, {
697
- key: "class1TraysPerHourPotential",
698
- get: function get() {
699
- return this._class1TraysPerHourPotential;
700
- }
701
- /**
702
- * The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
703
- *
704
- * @public
705
- * @type {number}
706
- */
707
-
708
- }, {
709
- key: "class1TraysPerHourExcludingDowntime",
710
- get: function get() {
711
- return this._class1TraysPerHourExcludingDowntime;
712
- }
713
- /**
714
- * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
715
- *
716
- * @public
717
- * @type {?number}
718
- */
719
-
720
- }, {
721
- key: "class1TraysPerManHourPotential",
722
- get: function get() {
723
- return this._class1TraysPerManHourPotential;
724
- }
725
- /**
726
- * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
727
- *
728
- * @public
729
- * @type {?number}
730
- */
731
-
732
- }, {
733
- key: "class1TraysPerManHourExcludingDowntime",
734
- get: function get() {
735
- return this._class1TraysPerManHourExcludingDowntime;
736
- }
737
- /**
738
- * The Manning Percentage based on the Average Target for this Hour
739
- *
740
- * @public
741
- * @type {?number}
742
- */
743
-
744
- }, {
745
- key: "manningPercentage",
746
- get: function get() {
747
- return this._manningPercentage;
748
- }
749
- /**
750
- * The Total Number of People working for this Hour
751
- *
752
- * @public
753
- * @type {?number}
754
- */
755
-
756
- }, {
757
- key: "totalManning",
758
- get: function get() {
759
- return this._totalManning;
760
- }
761
- /**
762
- * The Percentage of Production Time without Downtime for this Hour
763
- *
764
- * @public
765
- * @type {number}
766
- */
767
-
768
- }, {
769
- key: "uptimePercentage",
770
- get: function get() {
771
- return this._uptimePercentage;
772
- }
773
- /**
774
- * The Percentage of Downtime for this Hour
775
- *
776
- * @public
777
- * @type {number}
778
- */
779
-
780
- }, {
781
- key: "downtimePercentage",
782
- get: function get() {
783
- return this._downtimePercentage;
784
- }
785
- /**
786
- * Whether the Shift Hourly Entry has been deleted
787
- *
788
- * @public
789
- * @type {boolean}
790
- */
791
-
792
- }, {
793
- key: "deleted",
794
- get: function get() {
795
- return this._deleted;
796
- }
797
- /**
798
- * When the Shift Hourly Entry was last updated
799
- *
800
- * @public
801
- * @type {Date}
802
- */
803
-
804
- }, {
805
- key: "updateTimestamp",
806
- get: function get() {
807
- return this._updateTimestamp;
808
- }
809
- /**
810
- * The Site ID associated with this Shift Hourly Entry
811
- *
812
- * @public
813
- * @type {number}
814
- */
815
-
816
- }, {
817
- key: "siteId",
818
- get: function get() {
819
- return this._siteId;
820
- }
821
- /**
822
- * Convert this **ShiftHourlyEntryModel** to a JSON Object
823
- *
824
- * @public
825
- * @return {Object<string, any>}
826
- */
827
-
828
- }, {
829
- key: "toJSON",
830
- value: function toJSON() {
831
- return {
832
- id: this._id,
833
- packingLineId: this._packingLineId,
834
- shiftId: this._shiftId,
835
- createdTimestamp: this._createdTimestamp,
836
- startTimestamp: this._startTimestamp,
837
- endTimestamp: this._endTimestamp,
838
- class1Manning: this._class1Manning,
839
- class2Manning: this._class2Manning,
840
- averageManningTarget: this._averageManningTarget,
841
- layeredTrayPercentage: this._layeredTrayPercentage,
842
- averageClass1Percentage: this._averageClass1Percentage,
843
- qualityR600IdealSamplesPercentage: this._qualityR600IdealSamplesPercentage,
844
- customQualityData: this._customQualityData,
845
- totalBinsTipped: this._totalBinsTipped,
846
- binsTippedTarget: this._binsTippedTarget,
847
- totalDowntime: this._totalDowntime,
848
- totalProductionTime: this._totalProductionTime,
849
- totalClass1Trays: this._totalClass1Trays,
850
- totalClass2Trays: this._totalClass2Trays,
851
- class1TraysPerHourExcludingDowntimeTarget: this._class1TraysPerHourExcludingDowntimeTarget,
852
- primaryIssueCategory: this._primaryIssueCategory,
853
- primaryIssueTag: this._primaryIssueTag,
854
- secondaryIssueCategory: this._secondaryIssueCategory,
855
- secondaryIssueTag: this._secondaryIssueTag,
856
- nextHourFocus: this._nextHourFocus,
857
- satisfactionRating: this._satisfactionRating,
858
- status: this._status,
859
- class1TraysPerHourPotential: this._class1TraysPerHourPotential,
860
- class1TraysPerHourExcludingDowntime: this._class1TraysPerHourExcludingDowntime,
861
- class1TraysPerManHourPotential: this._class1TraysPerManHourPotential,
862
- class1TraysPerManHourExcludingDowntime: this._class1TraysPerManHourExcludingDowntime,
863
- manningPercentage: this._manningPercentage,
864
- totalManning: this._totalManning,
865
- uptimePercentage: this._uptimePercentage,
866
- downtimePercentage: this._downtimePercentage,
867
- deleted: this._deleted,
868
- updateTimestamp: this._updateTimestamp
869
- };
870
- }
871
- /**
872
- * Create a new **ShiftHourlyEntryModel** from a JSON Object or JSON String
873
- *
874
- * @static
875
- * @public
876
- * @param {Object<string, any>|string} json A JSON Object or JSON String
877
- * @param {number} siteId The Site ID associated with this Shift Hourly Entry
878
- * @return {ShiftHourlyEntryModel}
879
- */
880
-
881
- }], [{
375
+ _createClass(ShiftHourlyEntryModel, null, [{
882
376
  key: "fromJSON",
883
377
  value: function fromJSON(json, siteId) {
884
378
  var model = new ShiftHourlyEntryModel(siteId);
@@ -897,7 +391,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
897
391
  }
898
392
 
899
393
  if ('id' in jsonObject) {
900
- model._id = function () {
394
+ model.id = function () {
901
395
  if (typeof jsonObject['id'] !== 'string') {
902
396
  return String(jsonObject['id']);
903
397
  }
@@ -907,7 +401,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
907
401
  }
908
402
 
909
403
  if ('packingLineId' in jsonObject) {
910
- model._packingLineId = function () {
404
+ model.packingLineId = function () {
911
405
  if (typeof jsonObject['packingLineId'] !== 'string') {
912
406
  return String(jsonObject['packingLineId']);
913
407
  }
@@ -917,7 +411,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
917
411
  }
918
412
 
919
413
  if ('shiftId' in jsonObject) {
920
- model._shiftId = function () {
414
+ model.shiftId = function () {
921
415
  if (typeof jsonObject['shiftId'] !== 'string') {
922
416
  return String(jsonObject['shiftId']);
923
417
  }
@@ -927,7 +421,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
927
421
  }
928
422
 
929
423
  if ('createdTimestamp' in jsonObject) {
930
- model._createdTimestamp = function () {
424
+ model.createdTimestamp = function () {
931
425
  if (typeof jsonObject['createdTimestamp'] !== 'string') {
932
426
  return new Date(String(jsonObject['createdTimestamp']));
933
427
  }
@@ -937,7 +431,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
937
431
  }
938
432
 
939
433
  if ('startTimestamp' in jsonObject) {
940
- model._startTimestamp = function () {
434
+ model.startTimestamp = function () {
941
435
  if (typeof jsonObject['startTimestamp'] !== 'string') {
942
436
  return new Date(String(jsonObject['startTimestamp']));
943
437
  }
@@ -947,7 +441,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
947
441
  }
948
442
 
949
443
  if ('endTimestamp' in jsonObject) {
950
- model._endTimestamp = function () {
444
+ model.endTimestamp = function () {
951
445
  if (typeof jsonObject['endTimestamp'] !== 'string') {
952
446
  return new Date(String(jsonObject['endTimestamp']));
953
447
  }
@@ -957,7 +451,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
957
451
  }
958
452
 
959
453
  if ('class1Manning' in jsonObject) {
960
- model._class1Manning = function () {
454
+ model.class1Manning = function () {
961
455
  if (jsonObject['class1Manning'] === null) {
962
456
  return null;
963
457
  }
@@ -971,7 +465,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
971
465
  }
972
466
 
973
467
  if ('class2Manning' in jsonObject) {
974
- model._class2Manning = function () {
468
+ model.class2Manning = function () {
975
469
  if (jsonObject['class2Manning'] === null) {
976
470
  return null;
977
471
  }
@@ -985,7 +479,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
985
479
  }
986
480
 
987
481
  if ('averageManningTarget' in jsonObject) {
988
- model._averageManningTarget = function () {
482
+ model.averageManningTarget = function () {
989
483
  if (jsonObject['averageManningTarget'] === null) {
990
484
  return null;
991
485
  }
@@ -999,7 +493,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
999
493
  }
1000
494
 
1001
495
  if ('layeredTrayPercentage' in jsonObject) {
1002
- model._layeredTrayPercentage = function () {
496
+ model.layeredTrayPercentage = function () {
1003
497
  if (jsonObject['layeredTrayPercentage'] === null) {
1004
498
  return null;
1005
499
  }
@@ -1013,7 +507,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1013
507
  }
1014
508
 
1015
509
  if ('averageClass1Percentage' in jsonObject) {
1016
- model._averageClass1Percentage = function () {
510
+ model.averageClass1Percentage = function () {
1017
511
  if (jsonObject['averageClass1Percentage'] === null) {
1018
512
  return null;
1019
513
  }
@@ -1027,7 +521,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1027
521
  }
1028
522
 
1029
523
  if ('qualityR600IdealSamplesPercentage' in jsonObject) {
1030
- model._qualityR600IdealSamplesPercentage = function () {
524
+ model.qualityR600IdealSamplesPercentage = function () {
1031
525
  if (jsonObject['qualityR600IdealSamplesPercentage'] === null) {
1032
526
  return null;
1033
527
  }
@@ -1041,7 +535,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1041
535
  }
1042
536
 
1043
537
  if ('customQualityData' in jsonObject) {
1044
- model._customQualityData = function () {
538
+ model.customQualityData = function () {
1045
539
  if (Array.isArray(jsonObject['customQualityData']) !== true) {
1046
540
  return [];
1047
541
  }
@@ -1105,7 +599,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1105
599
  }
1106
600
 
1107
601
  if ('totalBinsTipped' in jsonObject) {
1108
- model._totalBinsTipped = function () {
602
+ model.totalBinsTipped = function () {
1109
603
  if (typeof jsonObject['totalBinsTipped'] !== 'number') {
1110
604
  return Number.isInteger(Number(jsonObject['totalBinsTipped'])) ? Number(jsonObject['totalBinsTipped']) : Math.floor(Number(jsonObject['totalBinsTipped']));
1111
605
  }
@@ -1115,7 +609,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1115
609
  }
1116
610
 
1117
611
  if ('binsTippedTarget' in jsonObject) {
1118
- model._binsTippedTarget = function () {
612
+ model.binsTippedTarget = function () {
1119
613
  if (typeof jsonObject['binsTippedTarget'] !== 'number') {
1120
614
  return Number.isInteger(Number(jsonObject['binsTippedTarget'])) ? Number(jsonObject['binsTippedTarget']) : Math.floor(Number(jsonObject['binsTippedTarget']));
1121
615
  }
@@ -1125,7 +619,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1125
619
  }
1126
620
 
1127
621
  if ('totalDowntime' in jsonObject) {
1128
- model._totalDowntime = function () {
622
+ model.totalDowntime = function () {
1129
623
  if (typeof jsonObject['totalDowntime'] !== 'number') {
1130
624
  return Number.isInteger(Number(jsonObject['totalDowntime'])) ? Number(jsonObject['totalDowntime']) : Math.floor(Number(jsonObject['totalDowntime']));
1131
625
  }
@@ -1135,7 +629,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1135
629
  }
1136
630
 
1137
631
  if ('totalProductionTime' in jsonObject) {
1138
- model._totalProductionTime = function () {
632
+ model.totalProductionTime = function () {
1139
633
  if (typeof jsonObject['totalProductionTime'] !== 'number') {
1140
634
  return Number.isInteger(Number(jsonObject['totalProductionTime'])) ? Number(jsonObject['totalProductionTime']) : Math.floor(Number(jsonObject['totalProductionTime']));
1141
635
  }
@@ -1145,7 +639,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1145
639
  }
1146
640
 
1147
641
  if ('totalClass1Trays' in jsonObject) {
1148
- model._totalClass1Trays = function () {
642
+ model.totalClass1Trays = function () {
1149
643
  if (typeof jsonObject['totalClass1Trays'] !== 'number') {
1150
644
  return Number.isInteger(Number(jsonObject['totalClass1Trays'])) ? Number(jsonObject['totalClass1Trays']) : Math.floor(Number(jsonObject['totalClass1Trays']));
1151
645
  }
@@ -1155,7 +649,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1155
649
  }
1156
650
 
1157
651
  if ('totalClass2Trays' in jsonObject) {
1158
- model._totalClass2Trays = function () {
652
+ model.totalClass2Trays = function () {
1159
653
  if (typeof jsonObject['totalClass2Trays'] !== 'number') {
1160
654
  return Number.isInteger(Number(jsonObject['totalClass2Trays'])) ? Number(jsonObject['totalClass2Trays']) : Math.floor(Number(jsonObject['totalClass2Trays']));
1161
655
  }
@@ -1165,7 +659,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1165
659
  }
1166
660
 
1167
661
  if ('class1TraysPerHourExcludingDowntimeTarget' in jsonObject) {
1168
- model._class1TraysPerHourExcludingDowntimeTarget = function () {
662
+ model.class1TraysPerHourExcludingDowntimeTarget = function () {
1169
663
  if (typeof jsonObject['class1TraysPerHourExcludingDowntimeTarget'] !== 'number') {
1170
664
  return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']));
1171
665
  }
@@ -1175,7 +669,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1175
669
  }
1176
670
 
1177
671
  if ('primaryIssueCategory' in jsonObject) {
1178
- model._primaryIssueCategory = function () {
672
+ model.primaryIssueCategory = function () {
1179
673
  if (jsonObject['primaryIssueCategory'] === null) {
1180
674
  return null;
1181
675
  }
@@ -1189,7 +683,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1189
683
  }
1190
684
 
1191
685
  if ('primaryIssueTag' in jsonObject) {
1192
- model._primaryIssueTag = function () {
686
+ model.primaryIssueTag = function () {
1193
687
  if (jsonObject['primaryIssueTag'] === null) {
1194
688
  return null;
1195
689
  }
@@ -1203,7 +697,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1203
697
  }
1204
698
 
1205
699
  if ('secondaryIssueCategory' in jsonObject) {
1206
- model._secondaryIssueCategory = function () {
700
+ model.secondaryIssueCategory = function () {
1207
701
  if (jsonObject['secondaryIssueCategory'] === null) {
1208
702
  return null;
1209
703
  }
@@ -1217,7 +711,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1217
711
  }
1218
712
 
1219
713
  if ('secondaryIssueTag' in jsonObject) {
1220
- model._secondaryIssueTag = function () {
714
+ model.secondaryIssueTag = function () {
1221
715
  if (jsonObject['secondaryIssueTag'] === null) {
1222
716
  return null;
1223
717
  }
@@ -1231,7 +725,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1231
725
  }
1232
726
 
1233
727
  if ('nextHourFocus' in jsonObject) {
1234
- model._nextHourFocus = function () {
728
+ model.nextHourFocus = function () {
1235
729
  if (jsonObject['nextHourFocus'] === null) {
1236
730
  return null;
1237
731
  }
@@ -1245,7 +739,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1245
739
  }
1246
740
 
1247
741
  if ('satisfactionRating' in jsonObject) {
1248
- model._satisfactionRating = function () {
742
+ model.satisfactionRating = function () {
1249
743
  if (jsonObject['satisfactionRating'] === null) {
1250
744
  return null;
1251
745
  }
@@ -1259,7 +753,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1259
753
  }
1260
754
 
1261
755
  if ('status' in jsonObject) {
1262
- model._status = function () {
756
+ model.status = function () {
1263
757
  if (typeof jsonObject['status'] !== 'string') {
1264
758
  return String(jsonObject['status']);
1265
759
  }
@@ -1269,7 +763,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1269
763
  }
1270
764
 
1271
765
  if ('class1TraysPerHourPotential' in jsonObject) {
1272
- model._class1TraysPerHourPotential = function () {
766
+ model.class1TraysPerHourPotential = function () {
1273
767
  if (typeof jsonObject['class1TraysPerHourPotential'] !== 'number') {
1274
768
  return Number.isInteger(Number(jsonObject['class1TraysPerHourPotential'])) ? Number(jsonObject['class1TraysPerHourPotential']) : Math.floor(Number(jsonObject['class1TraysPerHourPotential']));
1275
769
  }
@@ -1279,7 +773,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1279
773
  }
1280
774
 
1281
775
  if ('class1TraysPerHourExcludingDowntime' in jsonObject) {
1282
- model._class1TraysPerHourExcludingDowntime = function () {
776
+ model.class1TraysPerHourExcludingDowntime = function () {
1283
777
  if (typeof jsonObject['class1TraysPerHourExcludingDowntime'] !== 'number') {
1284
778
  return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntime'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntime']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntime']));
1285
779
  }
@@ -1289,7 +783,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1289
783
  }
1290
784
 
1291
785
  if ('class1TraysPerManHourPotential' in jsonObject) {
1292
- model._class1TraysPerManHourPotential = function () {
786
+ model.class1TraysPerManHourPotential = function () {
1293
787
  if (jsonObject['class1TraysPerManHourPotential'] === null) {
1294
788
  return null;
1295
789
  }
@@ -1303,7 +797,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1303
797
  }
1304
798
 
1305
799
  if ('class1TraysPerManHourExcludingDowntime' in jsonObject) {
1306
- model._class1TraysPerManHourExcludingDowntime = function () {
800
+ model.class1TraysPerManHourExcludingDowntime = function () {
1307
801
  if (jsonObject['class1TraysPerManHourExcludingDowntime'] === null) {
1308
802
  return null;
1309
803
  }
@@ -1317,7 +811,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1317
811
  }
1318
812
 
1319
813
  if ('manningPercentage' in jsonObject) {
1320
- model._manningPercentage = function () {
814
+ model.manningPercentage = function () {
1321
815
  if (jsonObject['manningPercentage'] === null) {
1322
816
  return null;
1323
817
  }
@@ -1331,7 +825,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1331
825
  }
1332
826
 
1333
827
  if ('totalManning' in jsonObject) {
1334
- model._totalManning = function () {
828
+ model.totalManning = function () {
1335
829
  if (jsonObject['totalManning'] === null) {
1336
830
  return null;
1337
831
  }
@@ -1345,7 +839,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1345
839
  }
1346
840
 
1347
841
  if ('uptimePercentage' in jsonObject) {
1348
- model._uptimePercentage = function () {
842
+ model.uptimePercentage = function () {
1349
843
  if (typeof jsonObject['uptimePercentage'] !== 'number') {
1350
844
  return Number(jsonObject['uptimePercentage']);
1351
845
  }
@@ -1355,7 +849,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1355
849
  }
1356
850
 
1357
851
  if ('downtimePercentage' in jsonObject) {
1358
- model._downtimePercentage = function () {
852
+ model.downtimePercentage = function () {
1359
853
  if (typeof jsonObject['downtimePercentage'] !== 'number') {
1360
854
  return Number(jsonObject['downtimePercentage']);
1361
855
  }
@@ -1365,7 +859,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1365
859
  }
1366
860
 
1367
861
  if ('deleted' in jsonObject) {
1368
- model._deleted = function () {
862
+ model.deleted = function () {
1369
863
  if (typeof jsonObject['deleted'] !== 'boolean') {
1370
864
  return Boolean(jsonObject['deleted']);
1371
865
  }
@@ -1375,7 +869,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1375
869
  }
1376
870
 
1377
871
  if ('updateTimestamp' in jsonObject) {
1378
- model._updateTimestamp = function () {
872
+ model.updateTimestamp = function () {
1379
873
  if (typeof jsonObject['updateTimestamp'] !== 'string') {
1380
874
  return new Date(String(jsonObject['updateTimestamp']));
1381
875
  }
@@ -1389,7 +883,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1389
883
  }]);
1390
884
 
1391
885
  return ShiftHourlyEntryModel;
1392
- }(_BaseSiteModel2.default);
886
+ }(_BaseModel2.default);
1393
887
 
1394
888
  var _default = ShiftHourlyEntryModel;
1395
889
  exports.default = _default;