@ricado/api-client 1.4.0 → 2.0.2

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 (162) 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 +6 -6
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +6 -6
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +5 -5
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +6 -6
  10. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +6 -6
  11. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +5 -5
  12. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +6 -6
  13. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +6 -6
  14. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +6 -6
  15. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +5 -5
  16. package/lib/Controllers/Packhouse/Site/PackTypeController.js +5 -5
  17. package/lib/Controllers/Packhouse/Site/PackingLineController.js +5 -5
  18. package/lib/Controllers/Packhouse/Site/PackrunController.js +292 -6
  19. package/lib/Controllers/Packhouse/Site/RejectBinController.js +6 -6
  20. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +5 -5
  21. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +6 -6
  22. package/lib/Controllers/Packhouse/Site/ShiftController.js +6 -6
  23. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +6 -6
  24. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +6 -6
  25. package/lib/Controllers/Packhouse/Site/VarietyController.js +5 -5
  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 +6 -6
  31. package/lib/Controllers/Site/AlarmGroupController.js +5 -5
  32. package/lib/Controllers/Site/DefinitionController.js +5 -5
  33. package/lib/Controllers/Site/PermanentObjectController.js +5 -5
  34. package/lib/Controllers/Site/PermanentObjectDataController.js +6 -6
  35. package/lib/Controllers/Site/PointController.js +8 -6
  36. package/lib/Controllers/Site/TemporaryObjectController.js +5 -5
  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 -195
  56. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -179
  57. package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -275
  58. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -211
  59. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -179
  60. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -147
  61. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -243
  62. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -275
  63. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -179
  64. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -147
  65. package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -179
  66. package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -291
  67. package/lib/Models/Packhouse/Site/PackrunModel.js +61 -291
  68. package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -195
  69. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -243
  70. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -211
  71. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -243
  72. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -643
  73. package/lib/Models/Packhouse/Site/ShiftModel.js +73 -355
  74. package/lib/Models/Packhouse/Site/VarietyModel.js +40 -179
  75. package/lib/Models/RTUModel.js +26 -117
  76. package/lib/Models/RTUPluginModel.js +23 -101
  77. package/lib/Models/Site/AlarmGroupModel.js +37 -163
  78. package/lib/Models/Site/AlarmModel.js +67 -323
  79. package/lib/Models/Site/DefinitionModel.js +34 -147
  80. package/lib/Models/Site/PermanentObjectDataModel.js +40 -179
  81. package/lib/Models/Site/PermanentObjectModel.js +37 -163
  82. package/lib/Models/Site/PointModel.js +49 -227
  83. package/lib/Models/Site/TemporaryObjectModel.js +34 -147
  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 +931 -1589
  94. package/package.json +3 -3
  95. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  96. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  97. package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  98. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  99. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  100. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  101. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  102. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  103. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  104. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  105. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  106. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  107. package/src/Controllers/Packhouse/Site/PackrunController.js +365 -4
  108. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  109. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  110. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  111. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  112. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  113. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  114. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  115. package/src/Controllers/Site/AlarmController.js +4 -4
  116. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  117. package/src/Controllers/Site/DefinitionController.js +4 -4
  118. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  119. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  120. package/src/Controllers/Site/PointController.js +6 -4
  121. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  122. package/src/Models/AccountPolicyModel.js +21 -117
  123. package/src/Models/ApiAccountModel.js +21 -117
  124. package/src/Models/CompanyModel.js +15 -87
  125. package/src/Models/FirebaseTokenModel.js +24 -132
  126. package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
  127. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
  128. package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
  129. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
  130. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
  131. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
  132. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
  133. package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
  134. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
  135. package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
  136. package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
  137. package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
  138. package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
  139. package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
  140. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
  141. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
  142. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
  143. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
  144. package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
  145. package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
  146. package/src/Models/RTUModel.js +18 -102
  147. package/src/Models/RTUPluginModel.js +15 -87
  148. package/src/Models/Site/AlarmGroupModel.js +27 -144
  149. package/src/Models/Site/AlarmModel.js +57 -294
  150. package/src/Models/Site/DefinitionModel.js +24 -129
  151. package/src/Models/Site/PermanentObjectDataModel.js +30 -159
  152. package/src/Models/Site/PermanentObjectModel.js +27 -144
  153. package/src/Models/Site/PointModel.js +39 -204
  154. package/src/Models/Site/TemporaryObjectModel.js +24 -129
  155. package/src/Models/Site/index.js +0 -2
  156. package/src/Models/SiteModel.js +18 -102
  157. package/src/Models/TokenModel.js +30 -162
  158. package/src/Models/UserAccountActionTokenModel.js +33 -177
  159. package/src/Models/UserAccountModel.js +30 -162
  160. package/src/PackageVersion.js +1 -1
  161. package/lib/Models/Site/BaseSiteModel.js +0 -58
  162. 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"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), 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
 
@@ -47,9 +47,8 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
47
47
  * ShiftHourlyEntryModel Constructor
48
48
  *
49
49
  * @protected
50
- * @param {number} siteId The Site ID associated with this Shift Hourly Entry
51
50
  */
52
- function ShiftHourlyEntryModel(siteId) {
51
+ function ShiftHourlyEntryModel() {
53
52
  var _this;
54
53
 
55
54
  _classCallCheck(this, ShiftHourlyEntryModel);
@@ -59,829 +58,314 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
59
58
  * The Shift Hourly Entry ID
60
59
  *
61
60
  * @type {string}
62
- * @private
61
+ * @public
63
62
  */
64
63
 
65
- _this._id = undefined;
64
+ _this.id = undefined;
66
65
  /**
67
66
  * The Packing Line ID this Hourly Entry is associated with
68
67
  *
69
68
  * @type {string}
70
- * @private
69
+ * @public
71
70
  */
72
71
 
73
- _this._packingLineId = undefined;
72
+ _this.packingLineId = undefined;
74
73
  /**
75
74
  * The Shift ID this Hourly Entry is asssociated with
76
75
  *
77
76
  * @type {string}
78
- * @private
77
+ * @public
79
78
  */
80
79
 
81
- _this._shiftId = undefined;
80
+ _this.shiftId = undefined;
82
81
  /**
83
82
  * When this Hourly Entry was Created
84
83
  *
85
84
  * @type {Date}
86
- * @private
85
+ * @public
87
86
  */
88
87
 
89
- _this._createdTimestamp = undefined;
88
+ _this.createdTimestamp = undefined;
90
89
  /**
91
90
  * The Start Timestamp of this Hourly Entry
92
91
  *
93
92
  * @type {Date}
94
- * @private
93
+ * @public
95
94
  */
96
95
 
97
- _this._startTimestamp = undefined;
96
+ _this.startTimestamp = undefined;
98
97
  /**
99
98
  * The End Timestamp of this Hourly Entry
100
99
  *
101
100
  * @type {Date}
102
- * @private
101
+ * @public
103
102
  */
104
103
 
105
- _this._endTimestamp = undefined;
104
+ _this.endTimestamp = undefined;
106
105
  /**
107
106
  * The Number of People working in all Areas except Class 2 for this Hour
108
107
  *
109
108
  * @type {?number}
110
- * @private
109
+ * @public
111
110
  */
112
111
 
113
- _this._class1Manning = undefined;
112
+ _this.class1Manning = undefined;
114
113
  /**
115
114
  * The Number of People working in the Class 2 Area for this Hour
116
115
  *
117
116
  * @type {?number}
118
- * @private
117
+ * @public
119
118
  */
120
119
 
121
- _this._class2Manning = undefined;
120
+ _this.class2Manning = undefined;
122
121
  /**
123
122
  * The Average Target Number of People that should be working for this Hour
124
123
  *
125
124
  * @type {?number}
126
- * @private
125
+ * @public
127
126
  */
128
127
 
129
- _this._averageManningTarget = undefined;
128
+ _this.averageManningTarget = undefined;
130
129
  /**
131
130
  * The Percentage of Total Tray Equivalents that are Layered for this Hour
132
131
  *
133
132
  * @type {?number}
134
- * @private
133
+ * @public
135
134
  */
136
135
 
137
- _this._layeredTrayPercentage = undefined;
136
+ _this.layeredTrayPercentage = undefined;
138
137
  /**
139
138
  * The Average Class 1 Percentage for this Hour
140
139
  *
141
140
  * @type {?number}
142
- * @private
141
+ * @public
143
142
  */
144
143
 
145
- _this._averageClass1Percentage = undefined;
144
+ _this.averageClass1Percentage = undefined;
146
145
  /**
147
146
  * The Number of Quality R600 Samples that were Ideal for this Hour
148
147
  *
149
148
  * @type {?number}
150
- * @private
149
+ * @public
151
150
  */
152
151
 
153
- _this._qualityR600IdealSamplesPercentage = undefined;
152
+ _this.qualityR600IdealSamplesPercentage = undefined;
154
153
  /**
155
154
  * An Array of Custom Quality Data Items for this Hour
156
155
  *
157
156
  * @type {Array<{id: string, name: string, type: string, value: number}>}
158
- * @private
157
+ * @public
159
158
  */
160
159
 
161
- _this._customQualityData = undefined;
160
+ _this.customQualityData = undefined;
162
161
  /**
163
162
  * The Total Number of Bins Tipped for this Hour
164
163
  *
165
164
  * @type {number}
166
- * @private
165
+ * @public
167
166
  */
168
167
 
169
- _this._totalBinsTipped = undefined;
168
+ _this.totalBinsTipped = undefined;
170
169
  /**
171
170
  * The Target Number of Bins to Tip for this Hour
172
171
  *
173
172
  * @type {number}
174
- * @private
173
+ * @public
175
174
  */
176
175
 
177
- _this._binsTippedTarget = undefined;
176
+ _this.binsTippedTarget = undefined;
178
177
  /**
179
178
  * The Total Downtime for this Hour expressed in Seconds
180
179
  *
181
180
  * @type {number}
182
- * @private
181
+ * @public
183
182
  */
184
183
 
185
- _this._totalDowntime = undefined;
184
+ _this.totalDowntime = undefined;
186
185
  /**
187
186
  * The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
188
187
  *
189
188
  * @type {number}
190
- * @private
189
+ * @public
191
190
  */
192
191
 
193
- _this._totalProductionTime = undefined;
192
+ _this.totalProductionTime = undefined;
194
193
  /**
195
194
  * The Total Number of Class 1 Tray Equivalents Packed for this Hour
196
195
  *
197
196
  * @type {number}
198
- * @private
197
+ * @public
199
198
  */
200
199
 
201
- _this._totalClass1Trays = undefined;
200
+ _this.totalClass1Trays = undefined;
202
201
  /**
203
202
  * The Total Number of Class 2 Tray Equivalents Packed for this Hour
204
203
  *
205
204
  * @type {number}
206
- * @private
205
+ * @public
207
206
  */
208
207
 
209
- _this._totalClass2Trays = undefined;
208
+ _this.totalClass2Trays = undefined;
210
209
  /**
211
210
  * The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
212
211
  *
213
212
  * @type {number}
214
- * @private
213
+ * @public
215
214
  */
216
215
 
217
- _this._class1TraysPerHourExcludingDowntimeTarget = undefined;
216
+ _this.class1TraysPerHourExcludingDowntimeTarget = undefined;
218
217
  /**
219
218
  * The Primary Issue Category for this Hourly Entry
220
219
  *
221
220
  * @type {?string}
222
- * @private
221
+ * @public
223
222
  */
224
223
 
225
- _this._primaryIssueCategory = undefined;
224
+ _this.primaryIssueCategory = undefined;
226
225
  /**
227
226
  * The Primary Issue Tag for this Hourly Entry
228
227
  *
229
228
  * @type {?string}
230
- * @private
229
+ * @public
231
230
  */
232
231
 
233
- _this._primaryIssueTag = undefined;
232
+ _this.primaryIssueTag = undefined;
234
233
  /**
235
234
  * The Secondary Issue Category for this Hourly Entry
236
235
  *
237
236
  * @type {?string}
238
- * @private
237
+ * @public
239
238
  */
240
239
 
241
- _this._secondaryIssueCategory = undefined;
240
+ _this.secondaryIssueCategory = undefined;
242
241
  /**
243
242
  * The Secondary Issue Tag for this Hourly Entry
244
243
  *
245
244
  * @type {?string}
246
- * @private
245
+ * @public
247
246
  */
248
247
 
249
- _this._secondaryIssueTag = undefined;
248
+ _this.secondaryIssueTag = undefined;
250
249
  /**
251
250
  * An Optional Focus for the Next Hour
252
251
  *
253
252
  * @type {?string}
254
- * @private
253
+ * @public
255
254
  */
256
255
 
257
- _this._nextHourFocus = undefined;
256
+ _this.nextHourFocus = undefined;
258
257
  /**
259
258
  * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
260
259
  *
261
260
  * @type {?number}
262
- * @private
261
+ * @public
263
262
  */
264
263
 
265
- _this._satisfactionRating = undefined;
264
+ _this.satisfactionRating = undefined;
266
265
  /**
267
266
  * The Status of this Hourly Entry
268
267
  *
269
268
  * @type {string}
270
- * @private
269
+ * @public
271
270
  */
272
271
 
273
- _this._status = undefined;
272
+ _this.status = undefined;
274
273
  /**
275
274
  * The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
276
275
  *
277
276
  * @type {number}
278
- * @private
277
+ * @public
279
278
  */
280
279
 
281
- _this._class1TraysPerHourPotential = undefined;
280
+ _this.class1TraysPerHourPotential = undefined;
282
281
  /**
283
282
  * The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
284
283
  *
285
284
  * @type {number}
286
- * @private
285
+ * @public
287
286
  */
288
287
 
289
- _this._class1TraysPerHourExcludingDowntime = undefined;
288
+ _this.class1TraysPerHourExcludingDowntime = undefined;
290
289
  /**
291
290
  * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
292
291
  *
293
292
  * @type {?number}
294
- * @private
293
+ * @public
295
294
  */
296
295
 
297
- _this._class1TraysPerManHourPotential = undefined;
296
+ _this.class1TraysPerManHourPotential = undefined;
298
297
  /**
299
298
  * The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
300
299
  *
301
300
  * @type {?number}
302
- * @private
301
+ * @public
303
302
  */
304
303
 
305
- _this._class1TraysPerManHourExcludingDowntime = undefined;
304
+ _this.class1TraysPerManHourExcludingDowntime = undefined;
306
305
  /**
307
306
  * The Manning Percentage based on the Average Target for this Hour
308
307
  *
309
308
  * @type {?number}
310
- * @private
309
+ * @public
311
310
  */
312
311
 
313
- _this._manningPercentage = undefined;
312
+ _this.manningPercentage = undefined;
314
313
  /**
315
314
  * The Total Number of People working for this Hour
316
315
  *
317
316
  * @type {?number}
318
- * @private
317
+ * @public
319
318
  */
320
319
 
321
- _this._totalManning = undefined;
320
+ _this.totalManning = undefined;
322
321
  /**
323
322
  * The Percentage of Production Time without Downtime for this Hour
324
323
  *
325
324
  * @type {number}
326
- * @private
325
+ * @public
327
326
  */
328
327
 
329
- _this._uptimePercentage = undefined;
328
+ _this.uptimePercentage = undefined;
330
329
  /**
331
330
  * The Percentage of Downtime for this Hour
332
331
  *
333
332
  * @type {number}
334
- * @private
333
+ * @public
335
334
  */
336
335
 
337
- _this._downtimePercentage = undefined;
336
+ _this.downtimePercentage = undefined;
338
337
  /**
339
338
  * Whether the Shift Hourly Entry has been deleted
340
339
  *
341
340
  * @type {boolean}
342
- * @private
341
+ * @public
343
342
  */
344
343
 
345
- _this._deleted = undefined;
344
+ _this.deleted = undefined;
346
345
  /**
347
346
  * When the Shift Hourly Entry was last updated
348
347
  *
349
348
  * @type {Date}
350
- * @private
351
- */
352
-
353
- _this._updateTimestamp = undefined;
354
- /**
355
- * The Site ID associated with this Shift Hourly Entry
356
- *
357
- * @type {number}
358
- * @private
349
+ * @public
359
350
  */
360
351
 
361
- _this._siteId = siteId;
352
+ _this.updateTimestamp = undefined;
362
353
  return _this;
363
354
  }
364
355
  /**
365
- * The Shift Hourly Entry ID
356
+ * Create a new **ShiftHourlyEntryModel** from a JSON Object or JSON String
366
357
  *
358
+ * @static
367
359
  * @public
368
- * @type {string}
360
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
361
+ * @return {ShiftHourlyEntryModel}
369
362
  */
370
363
 
371
364
 
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
- }], [{
365
+ _createClass(ShiftHourlyEntryModel, null, [{
882
366
  key: "fromJSON",
883
- value: function fromJSON(json, siteId) {
884
- var model = new ShiftHourlyEntryModel(siteId);
367
+ value: function fromJSON(json) {
368
+ var model = new ShiftHourlyEntryModel();
885
369
  /**
886
370
  * The JSON Object
887
371
  *
@@ -897,7 +381,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
897
381
  }
898
382
 
899
383
  if ('id' in jsonObject) {
900
- model._id = function () {
384
+ model.id = function () {
901
385
  if (typeof jsonObject['id'] !== 'string') {
902
386
  return String(jsonObject['id']);
903
387
  }
@@ -907,7 +391,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
907
391
  }
908
392
 
909
393
  if ('packingLineId' in jsonObject) {
910
- model._packingLineId = function () {
394
+ model.packingLineId = function () {
911
395
  if (typeof jsonObject['packingLineId'] !== 'string') {
912
396
  return String(jsonObject['packingLineId']);
913
397
  }
@@ -917,7 +401,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
917
401
  }
918
402
 
919
403
  if ('shiftId' in jsonObject) {
920
- model._shiftId = function () {
404
+ model.shiftId = function () {
921
405
  if (typeof jsonObject['shiftId'] !== 'string') {
922
406
  return String(jsonObject['shiftId']);
923
407
  }
@@ -927,7 +411,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
927
411
  }
928
412
 
929
413
  if ('createdTimestamp' in jsonObject) {
930
- model._createdTimestamp = function () {
414
+ model.createdTimestamp = function () {
931
415
  if (typeof jsonObject['createdTimestamp'] !== 'string') {
932
416
  return new Date(String(jsonObject['createdTimestamp']));
933
417
  }
@@ -937,7 +421,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
937
421
  }
938
422
 
939
423
  if ('startTimestamp' in jsonObject) {
940
- model._startTimestamp = function () {
424
+ model.startTimestamp = function () {
941
425
  if (typeof jsonObject['startTimestamp'] !== 'string') {
942
426
  return new Date(String(jsonObject['startTimestamp']));
943
427
  }
@@ -947,7 +431,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
947
431
  }
948
432
 
949
433
  if ('endTimestamp' in jsonObject) {
950
- model._endTimestamp = function () {
434
+ model.endTimestamp = function () {
951
435
  if (typeof jsonObject['endTimestamp'] !== 'string') {
952
436
  return new Date(String(jsonObject['endTimestamp']));
953
437
  }
@@ -957,7 +441,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
957
441
  }
958
442
 
959
443
  if ('class1Manning' in jsonObject) {
960
- model._class1Manning = function () {
444
+ model.class1Manning = function () {
961
445
  if (jsonObject['class1Manning'] === null) {
962
446
  return null;
963
447
  }
@@ -971,7 +455,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
971
455
  }
972
456
 
973
457
  if ('class2Manning' in jsonObject) {
974
- model._class2Manning = function () {
458
+ model.class2Manning = function () {
975
459
  if (jsonObject['class2Manning'] === null) {
976
460
  return null;
977
461
  }
@@ -985,7 +469,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
985
469
  }
986
470
 
987
471
  if ('averageManningTarget' in jsonObject) {
988
- model._averageManningTarget = function () {
472
+ model.averageManningTarget = function () {
989
473
  if (jsonObject['averageManningTarget'] === null) {
990
474
  return null;
991
475
  }
@@ -999,7 +483,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
999
483
  }
1000
484
 
1001
485
  if ('layeredTrayPercentage' in jsonObject) {
1002
- model._layeredTrayPercentage = function () {
486
+ model.layeredTrayPercentage = function () {
1003
487
  if (jsonObject['layeredTrayPercentage'] === null) {
1004
488
  return null;
1005
489
  }
@@ -1013,7 +497,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1013
497
  }
1014
498
 
1015
499
  if ('averageClass1Percentage' in jsonObject) {
1016
- model._averageClass1Percentage = function () {
500
+ model.averageClass1Percentage = function () {
1017
501
  if (jsonObject['averageClass1Percentage'] === null) {
1018
502
  return null;
1019
503
  }
@@ -1027,7 +511,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1027
511
  }
1028
512
 
1029
513
  if ('qualityR600IdealSamplesPercentage' in jsonObject) {
1030
- model._qualityR600IdealSamplesPercentage = function () {
514
+ model.qualityR600IdealSamplesPercentage = function () {
1031
515
  if (jsonObject['qualityR600IdealSamplesPercentage'] === null) {
1032
516
  return null;
1033
517
  }
@@ -1041,7 +525,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1041
525
  }
1042
526
 
1043
527
  if ('customQualityData' in jsonObject) {
1044
- model._customQualityData = function () {
528
+ model.customQualityData = function () {
1045
529
  if (Array.isArray(jsonObject['customQualityData']) !== true) {
1046
530
  return [];
1047
531
  }
@@ -1105,7 +589,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1105
589
  }
1106
590
 
1107
591
  if ('totalBinsTipped' in jsonObject) {
1108
- model._totalBinsTipped = function () {
592
+ model.totalBinsTipped = function () {
1109
593
  if (typeof jsonObject['totalBinsTipped'] !== 'number') {
1110
594
  return Number.isInteger(Number(jsonObject['totalBinsTipped'])) ? Number(jsonObject['totalBinsTipped']) : Math.floor(Number(jsonObject['totalBinsTipped']));
1111
595
  }
@@ -1115,7 +599,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1115
599
  }
1116
600
 
1117
601
  if ('binsTippedTarget' in jsonObject) {
1118
- model._binsTippedTarget = function () {
602
+ model.binsTippedTarget = function () {
1119
603
  if (typeof jsonObject['binsTippedTarget'] !== 'number') {
1120
604
  return Number.isInteger(Number(jsonObject['binsTippedTarget'])) ? Number(jsonObject['binsTippedTarget']) : Math.floor(Number(jsonObject['binsTippedTarget']));
1121
605
  }
@@ -1125,7 +609,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1125
609
  }
1126
610
 
1127
611
  if ('totalDowntime' in jsonObject) {
1128
- model._totalDowntime = function () {
612
+ model.totalDowntime = function () {
1129
613
  if (typeof jsonObject['totalDowntime'] !== 'number') {
1130
614
  return Number.isInteger(Number(jsonObject['totalDowntime'])) ? Number(jsonObject['totalDowntime']) : Math.floor(Number(jsonObject['totalDowntime']));
1131
615
  }
@@ -1135,7 +619,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1135
619
  }
1136
620
 
1137
621
  if ('totalProductionTime' in jsonObject) {
1138
- model._totalProductionTime = function () {
622
+ model.totalProductionTime = function () {
1139
623
  if (typeof jsonObject['totalProductionTime'] !== 'number') {
1140
624
  return Number.isInteger(Number(jsonObject['totalProductionTime'])) ? Number(jsonObject['totalProductionTime']) : Math.floor(Number(jsonObject['totalProductionTime']));
1141
625
  }
@@ -1145,7 +629,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1145
629
  }
1146
630
 
1147
631
  if ('totalClass1Trays' in jsonObject) {
1148
- model._totalClass1Trays = function () {
632
+ model.totalClass1Trays = function () {
1149
633
  if (typeof jsonObject['totalClass1Trays'] !== 'number') {
1150
634
  return Number.isInteger(Number(jsonObject['totalClass1Trays'])) ? Number(jsonObject['totalClass1Trays']) : Math.floor(Number(jsonObject['totalClass1Trays']));
1151
635
  }
@@ -1155,7 +639,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1155
639
  }
1156
640
 
1157
641
  if ('totalClass2Trays' in jsonObject) {
1158
- model._totalClass2Trays = function () {
642
+ model.totalClass2Trays = function () {
1159
643
  if (typeof jsonObject['totalClass2Trays'] !== 'number') {
1160
644
  return Number.isInteger(Number(jsonObject['totalClass2Trays'])) ? Number(jsonObject['totalClass2Trays']) : Math.floor(Number(jsonObject['totalClass2Trays']));
1161
645
  }
@@ -1165,7 +649,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1165
649
  }
1166
650
 
1167
651
  if ('class1TraysPerHourExcludingDowntimeTarget' in jsonObject) {
1168
- model._class1TraysPerHourExcludingDowntimeTarget = function () {
652
+ model.class1TraysPerHourExcludingDowntimeTarget = function () {
1169
653
  if (typeof jsonObject['class1TraysPerHourExcludingDowntimeTarget'] !== 'number') {
1170
654
  return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']));
1171
655
  }
@@ -1175,7 +659,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1175
659
  }
1176
660
 
1177
661
  if ('primaryIssueCategory' in jsonObject) {
1178
- model._primaryIssueCategory = function () {
662
+ model.primaryIssueCategory = function () {
1179
663
  if (jsonObject['primaryIssueCategory'] === null) {
1180
664
  return null;
1181
665
  }
@@ -1189,7 +673,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1189
673
  }
1190
674
 
1191
675
  if ('primaryIssueTag' in jsonObject) {
1192
- model._primaryIssueTag = function () {
676
+ model.primaryIssueTag = function () {
1193
677
  if (jsonObject['primaryIssueTag'] === null) {
1194
678
  return null;
1195
679
  }
@@ -1203,7 +687,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1203
687
  }
1204
688
 
1205
689
  if ('secondaryIssueCategory' in jsonObject) {
1206
- model._secondaryIssueCategory = function () {
690
+ model.secondaryIssueCategory = function () {
1207
691
  if (jsonObject['secondaryIssueCategory'] === null) {
1208
692
  return null;
1209
693
  }
@@ -1217,7 +701,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1217
701
  }
1218
702
 
1219
703
  if ('secondaryIssueTag' in jsonObject) {
1220
- model._secondaryIssueTag = function () {
704
+ model.secondaryIssueTag = function () {
1221
705
  if (jsonObject['secondaryIssueTag'] === null) {
1222
706
  return null;
1223
707
  }
@@ -1231,7 +715,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1231
715
  }
1232
716
 
1233
717
  if ('nextHourFocus' in jsonObject) {
1234
- model._nextHourFocus = function () {
718
+ model.nextHourFocus = function () {
1235
719
  if (jsonObject['nextHourFocus'] === null) {
1236
720
  return null;
1237
721
  }
@@ -1245,7 +729,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1245
729
  }
1246
730
 
1247
731
  if ('satisfactionRating' in jsonObject) {
1248
- model._satisfactionRating = function () {
732
+ model.satisfactionRating = function () {
1249
733
  if (jsonObject['satisfactionRating'] === null) {
1250
734
  return null;
1251
735
  }
@@ -1259,7 +743,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1259
743
  }
1260
744
 
1261
745
  if ('status' in jsonObject) {
1262
- model._status = function () {
746
+ model.status = function () {
1263
747
  if (typeof jsonObject['status'] !== 'string') {
1264
748
  return String(jsonObject['status']);
1265
749
  }
@@ -1269,7 +753,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1269
753
  }
1270
754
 
1271
755
  if ('class1TraysPerHourPotential' in jsonObject) {
1272
- model._class1TraysPerHourPotential = function () {
756
+ model.class1TraysPerHourPotential = function () {
1273
757
  if (typeof jsonObject['class1TraysPerHourPotential'] !== 'number') {
1274
758
  return Number.isInteger(Number(jsonObject['class1TraysPerHourPotential'])) ? Number(jsonObject['class1TraysPerHourPotential']) : Math.floor(Number(jsonObject['class1TraysPerHourPotential']));
1275
759
  }
@@ -1279,7 +763,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1279
763
  }
1280
764
 
1281
765
  if ('class1TraysPerHourExcludingDowntime' in jsonObject) {
1282
- model._class1TraysPerHourExcludingDowntime = function () {
766
+ model.class1TraysPerHourExcludingDowntime = function () {
1283
767
  if (typeof jsonObject['class1TraysPerHourExcludingDowntime'] !== 'number') {
1284
768
  return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntime'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntime']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntime']));
1285
769
  }
@@ -1289,7 +773,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1289
773
  }
1290
774
 
1291
775
  if ('class1TraysPerManHourPotential' in jsonObject) {
1292
- model._class1TraysPerManHourPotential = function () {
776
+ model.class1TraysPerManHourPotential = function () {
1293
777
  if (jsonObject['class1TraysPerManHourPotential'] === null) {
1294
778
  return null;
1295
779
  }
@@ -1303,7 +787,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1303
787
  }
1304
788
 
1305
789
  if ('class1TraysPerManHourExcludingDowntime' in jsonObject) {
1306
- model._class1TraysPerManHourExcludingDowntime = function () {
790
+ model.class1TraysPerManHourExcludingDowntime = function () {
1307
791
  if (jsonObject['class1TraysPerManHourExcludingDowntime'] === null) {
1308
792
  return null;
1309
793
  }
@@ -1317,7 +801,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1317
801
  }
1318
802
 
1319
803
  if ('manningPercentage' in jsonObject) {
1320
- model._manningPercentage = function () {
804
+ model.manningPercentage = function () {
1321
805
  if (jsonObject['manningPercentage'] === null) {
1322
806
  return null;
1323
807
  }
@@ -1331,7 +815,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1331
815
  }
1332
816
 
1333
817
  if ('totalManning' in jsonObject) {
1334
- model._totalManning = function () {
818
+ model.totalManning = function () {
1335
819
  if (jsonObject['totalManning'] === null) {
1336
820
  return null;
1337
821
  }
@@ -1345,7 +829,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1345
829
  }
1346
830
 
1347
831
  if ('uptimePercentage' in jsonObject) {
1348
- model._uptimePercentage = function () {
832
+ model.uptimePercentage = function () {
1349
833
  if (typeof jsonObject['uptimePercentage'] !== 'number') {
1350
834
  return Number(jsonObject['uptimePercentage']);
1351
835
  }
@@ -1355,7 +839,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1355
839
  }
1356
840
 
1357
841
  if ('downtimePercentage' in jsonObject) {
1358
- model._downtimePercentage = function () {
842
+ model.downtimePercentage = function () {
1359
843
  if (typeof jsonObject['downtimePercentage'] !== 'number') {
1360
844
  return Number(jsonObject['downtimePercentage']);
1361
845
  }
@@ -1365,7 +849,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1365
849
  }
1366
850
 
1367
851
  if ('deleted' in jsonObject) {
1368
- model._deleted = function () {
852
+ model.deleted = function () {
1369
853
  if (typeof jsonObject['deleted'] !== 'boolean') {
1370
854
  return Boolean(jsonObject['deleted']);
1371
855
  }
@@ -1375,7 +859,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1375
859
  }
1376
860
 
1377
861
  if ('updateTimestamp' in jsonObject) {
1378
- model._updateTimestamp = function () {
862
+ model.updateTimestamp = function () {
1379
863
  if (typeof jsonObject['updateTimestamp'] !== 'string') {
1380
864
  return new Date(String(jsonObject['updateTimestamp']));
1381
865
  }
@@ -1389,7 +873,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseSiteModel) {
1389
873
  }]);
1390
874
 
1391
875
  return ShiftHourlyEntryModel;
1392
- }(_BaseSiteModel2.default);
876
+ }(_BaseModel2.default);
1393
877
 
1394
878
  var _default = ShiftHourlyEntryModel;
1395
879
  exports.default = _default;