@ricado/api-client 2.1.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  3. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  4. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  5. package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  7. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  9. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  10. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  11. package/lib/DataItems/PointValueItem.js +3 -3
  12. package/lib/Models/AccountPolicyModel.js +7 -7
  13. package/lib/Models/ApiAccountModel.js +7 -7
  14. package/lib/Models/CompanyModel.js +5 -5
  15. package/lib/Models/FirebaseTokenModel.js +8 -8
  16. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  17. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  18. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  20. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  21. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  23. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  24. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  25. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  26. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  27. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  28. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/PackingLineModel.js +583 -16
  30. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  31. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  32. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  33. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  34. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  35. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  36. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  37. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  38. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  39. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  40. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  41. package/lib/Models/Packhouse/Site/index.js +12 -0
  42. package/lib/Models/RTUModel.js +6 -6
  43. package/lib/Models/RTUPluginModel.js +5 -5
  44. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  45. package/lib/Models/Site/AlarmModel.js +17 -17
  46. package/lib/Models/Site/DefinitionModel.js +6 -6
  47. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  48. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  49. package/lib/Models/Site/PointModel.js +11 -11
  50. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  51. package/lib/Models/SiteModel.js +6 -6
  52. package/lib/Models/TokenModel.js +10 -10
  53. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  54. package/lib/Models/UserAccountModel.js +10 -10
  55. package/lib/PackageVersion.js +1 -1
  56. package/lib/Points.js +22 -12
  57. package/lib/WebSocketHelper.js +29 -13
  58. package/lib/index.d.ts +2473 -348
  59. package/lib/index.js +3 -3
  60. package/package.json +1 -1
  61. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  62. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  63. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  64. package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  65. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  66. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  67. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  68. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  69. package/src/Controllers/Packhouse/Site/index.js +8 -0
  70. package/src/DataItems/PointValueItem.js +3 -3
  71. package/src/Models/AccountPolicyModel.js +7 -7
  72. package/src/Models/ApiAccountModel.js +7 -7
  73. package/src/Models/CompanyModel.js +5 -5
  74. package/src/Models/FirebaseTokenModel.js +8 -8
  75. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  76. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  77. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  78. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  79. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  80. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  81. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  82. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  83. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  84. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  85. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  86. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  87. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  88. package/src/Models/Packhouse/Site/PackingLineModel.js +770 -16
  89. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  90. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  91. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  92. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  93. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  94. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  95. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  96. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  97. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  98. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  99. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  100. package/src/Models/Packhouse/Site/index.js +8 -0
  101. package/src/Models/RTUModel.js +6 -6
  102. package/src/Models/RTUPluginModel.js +5 -5
  103. package/src/Models/Site/AlarmGroupModel.js +7 -7
  104. package/src/Models/Site/AlarmModel.js +17 -17
  105. package/src/Models/Site/DefinitionModel.js +6 -6
  106. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  107. package/src/Models/Site/PermanentObjectModel.js +7 -7
  108. package/src/Models/Site/PointModel.js +11 -11
  109. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  110. package/src/Models/SiteModel.js +6 -6
  111. package/src/Models/TokenModel.js +10 -10
  112. package/src/Models/UserAccountActionTokenModel.js +11 -11
  113. package/src/Models/UserAccountModel.js +10 -10
  114. package/src/PackageVersion.js +1 -1
  115. package/src/Points.js +24 -12
  116. package/src/WebSocketHelper.js +34 -13
  117. package/src/index.js +3 -3
  118. package/types/tslint.json +2 -1
@@ -0,0 +1,373 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
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
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
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
+
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
+
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
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ /**
35
+ * Model Class for a Shift Task
36
+ *
37
+ * @class
38
+ * @hideconstructor
39
+ * @extends BaseModel
40
+ */
41
+ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(ShiftTaskModel, _BaseModel);
43
+
44
+ var _super = _createSuper(ShiftTaskModel);
45
+
46
+ /**
47
+ * ShiftTaskModel Constructor
48
+ *
49
+ * @protected
50
+ * @param {number} siteId The Site ID associated with this Shift Task
51
+ */
52
+ function ShiftTaskModel(siteId) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, ShiftTaskModel);
56
+
57
+ _this = _super.call(this);
58
+ /**
59
+ * The Shift Task ID
60
+ *
61
+ * @type {string}
62
+ * @public
63
+ */
64
+
65
+ _this.id = "";
66
+ /**
67
+ * The Packing Line ID this Task is associated with
68
+ *
69
+ * @type {string}
70
+ * @public
71
+ */
72
+
73
+ _this.packingLineId = "";
74
+ /**
75
+ * The Shift ID this Task is asssociated with
76
+ *
77
+ * @type {string}
78
+ * @public
79
+ */
80
+
81
+ _this.shiftId = "";
82
+ /**
83
+ * When this Task was Created
84
+ *
85
+ * @type {Date}
86
+ * @public
87
+ */
88
+
89
+ _this.createdTimestamp = new Date();
90
+ /**
91
+ * When this Task was Completed
92
+ *
93
+ * @type {?Date}
94
+ * @public
95
+ */
96
+
97
+ _this.completedTimestamp = null;
98
+ /**
99
+ * The User ID of the Author for this Task
100
+ *
101
+ * @type {?string}
102
+ * @public
103
+ */
104
+
105
+ _this.authorUserId = null;
106
+ /**
107
+ * The Name of the Author for this Task
108
+ *
109
+ * @type {string}
110
+ * @public
111
+ */
112
+
113
+ _this.authorName = "";
114
+ /**
115
+ * The Task Type
116
+ *
117
+ * @type {string}
118
+ * @public
119
+ */
120
+
121
+ _this.type = "";
122
+ /**
123
+ * An Array of Tag IDs for this Task
124
+ *
125
+ * @type {string[]}
126
+ * @public
127
+ */
128
+
129
+ _this.tags = [];
130
+ /**
131
+ * The Title of this Task
132
+ *
133
+ * @type {string}
134
+ * @public
135
+ */
136
+
137
+ _this.title = "";
138
+ /**
139
+ * The Content of this Task
140
+ *
141
+ * @type {string}
142
+ * @public
143
+ */
144
+
145
+ _this.content = "";
146
+ /**
147
+ * The Status of this Task
148
+ *
149
+ * @type {string}
150
+ * @public
151
+ */
152
+
153
+ _this.status = "";
154
+ /**
155
+ * Whether the Shift Task has been deleted
156
+ *
157
+ * @type {boolean}
158
+ * @public
159
+ */
160
+
161
+ _this.deleted = false;
162
+ /**
163
+ * When the Shift Task was last updated
164
+ *
165
+ * @type {Date}
166
+ * @public
167
+ */
168
+
169
+ _this.updateTimestamp = new Date();
170
+ /**
171
+ * The Site ID associated with this Shift Task
172
+ *
173
+ * @type {number}
174
+ * @public
175
+ */
176
+
177
+ _this.siteId = siteId;
178
+ return _this;
179
+ }
180
+ /**
181
+ * Create a new **ShiftTaskModel** from a JSON Object or JSON String
182
+ *
183
+ * @static
184
+ * @public
185
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
186
+ * @param {number} siteId The Site ID associated with this Shift Task
187
+ * @return {ShiftTaskModel}
188
+ */
189
+
190
+
191
+ _createClass(ShiftTaskModel, null, [{
192
+ key: "fromJSON",
193
+ value: function fromJSON(json, siteId) {
194
+ var model = new ShiftTaskModel(siteId);
195
+ /**
196
+ * The JSON Object
197
+ *
198
+ * @type {Object<string, any>}
199
+ */
200
+
201
+ var jsonObject = {};
202
+
203
+ if (typeof json === 'string') {
204
+ jsonObject = JSON.parse(json);
205
+ } else if (_typeof(json) === 'object') {
206
+ jsonObject = json;
207
+ }
208
+
209
+ if ('id' in jsonObject) {
210
+ model.id = function () {
211
+ if (typeof jsonObject['id'] !== 'string') {
212
+ return String(jsonObject['id']);
213
+ }
214
+
215
+ return jsonObject['id'];
216
+ }();
217
+ }
218
+
219
+ if ('packingLineId' in jsonObject) {
220
+ model.packingLineId = function () {
221
+ if (typeof jsonObject['packingLineId'] !== 'string') {
222
+ return String(jsonObject['packingLineId']);
223
+ }
224
+
225
+ return jsonObject['packingLineId'];
226
+ }();
227
+ }
228
+
229
+ if ('shiftId' in jsonObject) {
230
+ model.shiftId = function () {
231
+ if (typeof jsonObject['shiftId'] !== 'string') {
232
+ return String(jsonObject['shiftId']);
233
+ }
234
+
235
+ return jsonObject['shiftId'];
236
+ }();
237
+ }
238
+
239
+ if ('createdTimestamp' in jsonObject) {
240
+ model.createdTimestamp = function () {
241
+ if (typeof jsonObject['createdTimestamp'] !== 'string') {
242
+ return new Date(String(jsonObject['createdTimestamp']));
243
+ }
244
+
245
+ return new Date(jsonObject['createdTimestamp']);
246
+ }();
247
+ }
248
+
249
+ if ('completedTimestamp' in jsonObject) {
250
+ model.completedTimestamp = function () {
251
+ if (jsonObject['completedTimestamp'] === null) {
252
+ return null;
253
+ }
254
+
255
+ if (typeof jsonObject['completedTimestamp'] !== 'string') {
256
+ return new Date(String(jsonObject['completedTimestamp']));
257
+ }
258
+
259
+ return new Date(jsonObject['completedTimestamp']);
260
+ }();
261
+ }
262
+
263
+ if ('authorUserId' in jsonObject) {
264
+ model.authorUserId = function () {
265
+ if (jsonObject['authorUserId'] === null) {
266
+ return null;
267
+ }
268
+
269
+ if (typeof jsonObject['authorUserId'] !== 'string') {
270
+ return String(jsonObject['authorUserId']);
271
+ }
272
+
273
+ return jsonObject['authorUserId'];
274
+ }();
275
+ }
276
+
277
+ if ('authorName' in jsonObject) {
278
+ model.authorName = function () {
279
+ if (typeof jsonObject['authorName'] !== 'string') {
280
+ return String(jsonObject['authorName']);
281
+ }
282
+
283
+ return jsonObject['authorName'];
284
+ }();
285
+ }
286
+
287
+ if ('type' in jsonObject) {
288
+ model.type = function () {
289
+ if (typeof jsonObject['type'] !== 'string') {
290
+ return String(jsonObject['type']);
291
+ }
292
+
293
+ return jsonObject['type'];
294
+ }();
295
+ }
296
+
297
+ if ('tags' in jsonObject) {
298
+ model.tags = function () {
299
+ if (Array.isArray(jsonObject['tags']) !== true) {
300
+ return [];
301
+ }
302
+
303
+ return jsonObject['tags'].map(function (tagsItem) {
304
+ return function () {
305
+ if (typeof tagsItem !== 'string') {
306
+ return String(tagsItem);
307
+ }
308
+
309
+ return tagsItem;
310
+ }();
311
+ });
312
+ }();
313
+ }
314
+
315
+ if ('title' in jsonObject) {
316
+ model.title = function () {
317
+ if (typeof jsonObject['title'] !== 'string') {
318
+ return String(jsonObject['title']);
319
+ }
320
+
321
+ return jsonObject['title'];
322
+ }();
323
+ }
324
+
325
+ if ('content' in jsonObject) {
326
+ model.content = function () {
327
+ if (typeof jsonObject['content'] !== 'string') {
328
+ return String(jsonObject['content']);
329
+ }
330
+
331
+ return jsonObject['content'];
332
+ }();
333
+ }
334
+
335
+ if ('status' in jsonObject) {
336
+ model.status = function () {
337
+ if (typeof jsonObject['status'] !== 'string') {
338
+ return String(jsonObject['status']);
339
+ }
340
+
341
+ return jsonObject['status'];
342
+ }();
343
+ }
344
+
345
+ if ('deleted' in jsonObject) {
346
+ model.deleted = function () {
347
+ if (typeof jsonObject['deleted'] !== 'boolean') {
348
+ return Boolean(jsonObject['deleted']);
349
+ }
350
+
351
+ return jsonObject['deleted'];
352
+ }();
353
+ }
354
+
355
+ if ('updateTimestamp' in jsonObject) {
356
+ model.updateTimestamp = function () {
357
+ if (typeof jsonObject['updateTimestamp'] !== 'string') {
358
+ return new Date(String(jsonObject['updateTimestamp']));
359
+ }
360
+
361
+ return new Date(jsonObject['updateTimestamp']);
362
+ }();
363
+ }
364
+
365
+ return model;
366
+ }
367
+ }]);
368
+
369
+ return ShiftTaskModel;
370
+ }(_BaseModel2.default);
371
+
372
+ var _default = ShiftTaskModel;
373
+ exports.default = _default;
@@ -62,7 +62,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Soft Sort Belt belongs to
68
68
  *
@@ -70,7 +70,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Name of this Soft Sort Belt
76
76
  *
@@ -78,7 +78,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Points used by this Soft Sort Belt
84
84
  *
@@ -86,7 +86,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.points = undefined;
89
+ _this.points = {};
90
90
  /**
91
91
  * The Packing Line that owns this Soft Sort Belt
92
92
  *
@@ -94,7 +94,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.packingLineId = undefined;
97
+ _this.packingLineId = "";
98
98
  /**
99
99
  * Whether the Soft Sort Belt has been deleted
100
100
  *
@@ -102,7 +102,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.deleted = undefined;
105
+ _this.deleted = false;
106
106
  /**
107
107
  * When the Soft Sort Belt was last updated
108
108
  *
@@ -110,7 +110,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.updateTimestamp = undefined;
113
+ _this.updateTimestamp = new Date();
114
114
  /**
115
115
  * The Site ID associated with this Soft Sort Belt
116
116
  *
@@ -62,7 +62,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Variety Code
68
68
  *
@@ -70,7 +70,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.code = undefined;
73
+ _this.code = "";
74
74
  /**
75
75
  * The Variety Name
76
76
  *
@@ -78,7 +78,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Variety Description
84
84
  *
@@ -86,7 +86,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.description = undefined;
89
+ _this.description = "";
90
90
  /**
91
91
  * The Variety Image Source
92
92
  *
@@ -94,7 +94,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.image = undefined;
97
+ _this.image = "";
98
98
  /**
99
99
  * An Array of Fruit Sizes Defined for this Variety
100
100
  *
@@ -102,7 +102,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.fruitSizes = undefined;
105
+ _this.fruitSizes = [];
106
106
  /**
107
107
  * Whether the Variety has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the Variety was last updated
116
116
  *
@@ -118,7 +118,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.updateTimestamp = undefined;
121
+ _this.updateTimestamp = new Date();
122
122
  /**
123
123
  * The Site ID associated with this Variety
124
124
  *
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _BinTipBinModel = _interopRequireDefault(require("./BinTipBinModel"));
9
+
8
10
  var _BinTipWeightModel = _interopRequireDefault(require("./BinTipWeightModel"));
9
11
 
10
12
  var _CompacSizerBatchModel = _interopRequireDefault(require("./CompacSizerBatchModel"));
@@ -23,6 +25,8 @@ var _DowntimeEventModel = _interopRequireDefault(require("./DowntimeEventModel")
23
25
 
24
26
  var _FreshPackPackrunSummaryModel = _interopRequireDefault(require("./FreshPackPackrunSummaryModel"));
25
27
 
28
+ var _FreshQualityPackrunSummaryModel = _interopRequireDefault(require("./FreshQualityPackrunSummaryModel"));
29
+
26
30
  var _GrowingMethodModel = _interopRequireDefault(require("./GrowingMethodModel"));
27
31
 
28
32
  var _PackTypeModel = _interopRequireDefault(require("./PackTypeModel"));
@@ -43,6 +47,10 @@ var _ShiftHourlyEntryModel = _interopRequireDefault(require("./ShiftHourlyEntryM
43
47
 
44
48
  var _ShiftModel = _interopRequireDefault(require("./ShiftModel"));
45
49
 
50
+ var _ShiftQualitySummaryModel = _interopRequireDefault(require("./ShiftQualitySummaryModel"));
51
+
52
+ var _ShiftTaskModel = _interopRequireDefault(require("./ShiftTaskModel"));
53
+
46
54
  var _SoftSortBeltModel = _interopRequireDefault(require("./SoftSortBeltModel"));
47
55
 
48
56
  var _VarietyModel = _interopRequireDefault(require("./VarietyModel"));
@@ -59,6 +67,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
59
67
  * @namespace Models.Packhouse.Site
60
68
  */
61
69
  var Site = {
70
+ BinTipBinModel: _BinTipBinModel.default,
62
71
  BinTipWeightModel: _BinTipWeightModel.default,
63
72
  CompacSizerBatchModel: _CompacSizerBatchModel.default,
64
73
  CompacSizerModel: _CompacSizerModel.default,
@@ -68,6 +77,7 @@ var Site = {
68
77
  CompacSizerPackrunSummaryModel: _CompacSizerPackrunSummaryModel.default,
69
78
  DowntimeEventModel: _DowntimeEventModel.default,
70
79
  FreshPackPackrunSummaryModel: _FreshPackPackrunSummaryModel.default,
80
+ FreshQualityPackrunSummaryModel: _FreshQualityPackrunSummaryModel.default,
71
81
  GrowingMethodModel: _GrowingMethodModel.default,
72
82
  PackTypeModel: _PackTypeModel.default,
73
83
  PackingLineModel: _PackingLineModel.default,
@@ -78,6 +88,8 @@ var Site = {
78
88
  ShiftFocusMeetingModel: _ShiftFocusMeetingModel.default,
79
89
  ShiftHourlyEntryModel: _ShiftHourlyEntryModel.default,
80
90
  ShiftModel: _ShiftModel.default,
91
+ ShiftQualitySummaryModel: _ShiftQualitySummaryModel.default,
92
+ ShiftTaskModel: _ShiftTaskModel.default,
81
93
  SoftSortBeltModel: _SoftSortBeltModel.default,
82
94
  VarietyModel: _VarietyModel.default
83
95
  };
@@ -61,7 +61,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = 0;
65
65
  /**
66
66
  * The Site this RTU belongs to
67
67
  *
@@ -69,7 +69,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.siteId = undefined;
72
+ _this.siteId = 0;
73
73
  /**
74
74
  * The RTU Name
75
75
  *
@@ -77,7 +77,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.name = undefined;
80
+ _this.name = "";
81
81
  /**
82
82
  * Whether the RTU is Enabled
83
83
  *
@@ -85,7 +85,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.enabled = undefined;
88
+ _this.enabled = false;
89
89
  /**
90
90
  * Whether the RTU has been deleted
91
91
  *
@@ -93,7 +93,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.deleted = undefined;
96
+ _this.deleted = false;
97
97
  /**
98
98
  * When the RTU was last updated
99
99
  *
@@ -101,7 +101,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
101
101
  * @public
102
102
  */
103
103
 
104
- _this.updateTimestamp = undefined;
104
+ _this.updateTimestamp = new Date();
105
105
  return _this;
106
106
  }
107
107
  /**
@@ -61,7 +61,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = 0;
65
65
  /**
66
66
  * The Plugin Name
67
67
  *
@@ -69,7 +69,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.name = undefined;
72
+ _this.name = "";
73
73
  /**
74
74
  * The Company this RTU Plugin belongs to
75
75
  *
@@ -77,7 +77,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.companyId = undefined;
80
+ _this.companyId = "";
81
81
  /**
82
82
  * Whether the RTU Plugin has been deleted
83
83
  *
@@ -85,7 +85,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.deleted = undefined;
88
+ _this.deleted = false;
89
89
  /**
90
90
  * When the RTU Plugin was last updated
91
91
  *
@@ -93,7 +93,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.updateTimestamp = undefined;
96
+ _this.updateTimestamp = new Date();
97
97
  return _this;
98
98
  }
99
99
  /**