@ricado/api-client 2.0.2 → 2.2.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.
- package/README.md +5 -7
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -5
- package/lib/Controllers/Packhouse/Site/PackrunController.js +46 -4
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
- package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/lib/Controllers/Packhouse/Site/index.js +15 -0
- package/lib/Controllers/Site/AlarmController.js +4 -4
- package/lib/Controllers/Site/AlarmGroupController.js +4 -4
- package/lib/Controllers/Site/DefinitionController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/lib/Controllers/Site/PointController.js +4 -4
- package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
- package/lib/Errors/BadRequestError.js +1 -1
- package/lib/Errors/ForbiddenError.js +1 -1
- package/lib/Errors/NetworkError.js +1 -1
- package/lib/Errors/NotAllowedError.js +1 -1
- package/lib/Errors/NotFoundError.js +1 -1
- package/lib/Errors/ServerError.js +1 -1
- package/lib/Errors/UnauthorizedError.js +1 -1
- package/lib/Models/AccountPolicyModel.js +1 -1
- package/lib/Models/ApiAccountModel.js +1 -1
- package/lib/Models/CompanyModel.js +1 -1
- package/lib/Models/FirebaseTokenModel.js +1 -1
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -5
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +14 -4
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -4
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +14 -4
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +14 -4
- package/lib/Models/Packhouse/Site/PackTypeModel.js +14 -4
- package/lib/Models/Packhouse/Site/PackingLineModel.js +538 -5
- package/lib/Models/Packhouse/Site/PackrunModel.js +80 -4
- package/lib/Models/Packhouse/Site/RejectBinModel.js +14 -4
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +274 -8
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +181 -5
- package/lib/Models/Packhouse/Site/ShiftModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
- package/lib/Models/Packhouse/Site/VarietyModel.js +14 -4
- package/lib/Models/Packhouse/Site/index.js +15 -0
- package/lib/Models/RTUModel.js +1 -1
- package/lib/Models/RTUPluginModel.js +1 -1
- package/lib/Models/Site/AlarmGroupModel.js +14 -4
- package/lib/Models/Site/AlarmModel.js +14 -4
- package/lib/Models/Site/DefinitionModel.js +14 -4
- package/lib/Models/Site/PermanentObjectDataModel.js +14 -4
- package/lib/Models/Site/PermanentObjectModel.js +14 -4
- package/lib/Models/Site/PointModel.js +14 -4
- package/lib/Models/Site/TemporaryObjectModel.js +14 -4
- package/lib/Models/SiteModel.js +1 -1
- package/lib/Models/TokenModel.js +1 -1
- package/lib/Models/UserAccountActionTokenModel.js +1 -1
- package/lib/Models/UserAccountModel.js +1 -1
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +4039 -1071
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -5
- package/src/Controllers/Packhouse/Site/PackrunController.js +56 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Packhouse/Site/index.js +10 -0
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +4 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -4
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
- package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/PackingLineModel.js +718 -4
- package/src/Models/Packhouse/Site/PackrunModel.js +88 -3
- package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +310 -7
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +205 -4
- package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
- package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
- package/src/Models/Packhouse/Site/index.js +10 -0
- package/src/Models/Site/AlarmGroupModel.js +13 -3
- package/src/Models/Site/AlarmModel.js +13 -3
- package/src/Models/Site/DefinitionModel.js +13 -3
- package/src/Models/Site/PermanentObjectDataModel.js +13 -3
- package/src/Models/Site/PermanentObjectModel.js +13 -3
- package/src/Models/Site/PointModel.js +13 -3
- package/src/Models/Site/TemporaryObjectModel.js +13 -3
- package/src/PackageVersion.js +1 -1
|
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
17
17
|
|
|
18
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"); }
|
|
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
|
|
|
@@ -47,8 +47,9 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
47
47
|
* ShiftHourlyEntryModel Constructor
|
|
48
48
|
*
|
|
49
49
|
* @protected
|
|
50
|
+
* @param {number} siteId The Site ID associated with this Shift Hourly Entry
|
|
50
51
|
*/
|
|
51
|
-
function ShiftHourlyEntryModel() {
|
|
52
|
+
function ShiftHourlyEntryModel(siteId) {
|
|
52
53
|
var _this;
|
|
53
54
|
|
|
54
55
|
_classCallCheck(this, ShiftHourlyEntryModel);
|
|
@@ -126,6 +127,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
127
|
*/
|
|
127
128
|
|
|
128
129
|
_this.averageManningTarget = undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The Average Cost per Person working in all Areas for this Hour
|
|
132
|
+
*
|
|
133
|
+
* @type {?number}
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
_this.averageCostPerManningUnit = undefined;
|
|
129
138
|
/**
|
|
130
139
|
* The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
131
140
|
*
|
|
@@ -150,10 +159,18 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
159
|
*/
|
|
151
160
|
|
|
152
161
|
_this.qualityR600IdealSamplesPercentage = undefined;
|
|
162
|
+
/**
|
|
163
|
+
* The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
|
|
164
|
+
*
|
|
165
|
+
* @type {?number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.averageQualityR600IdealSamplesTarget = undefined;
|
|
153
170
|
/**
|
|
154
171
|
* An Array of Custom Quality Data Items for this Hour
|
|
155
172
|
*
|
|
156
|
-
* @type {Array<{id: string, name: string, type: string, value: number}>}
|
|
173
|
+
* @type {Array<{id: string, name: string, type: string, value: number, averageTarget: number}>}
|
|
157
174
|
* @public
|
|
158
175
|
*/
|
|
159
176
|
|
|
@@ -214,6 +231,30 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
214
231
|
*/
|
|
215
232
|
|
|
216
233
|
_this.class1TraysPerHourExcludingDowntimeTarget = undefined;
|
|
234
|
+
/**
|
|
235
|
+
* The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
|
|
236
|
+
*
|
|
237
|
+
* @type {?number}
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
_this.averageClass1TraysPerHourAdjustedTarget = undefined;
|
|
242
|
+
/**
|
|
243
|
+
* The Average Cost per Tray Equivalent for this Hour
|
|
244
|
+
*
|
|
245
|
+
* @type {?number}
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
_this.averageCostPerTray = undefined;
|
|
250
|
+
/**
|
|
251
|
+
* The Average Cost per Tray Equivalent Target for this Hour
|
|
252
|
+
*
|
|
253
|
+
* @type {?number}
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
_this.averageCostPerTrayTarget = undefined;
|
|
217
258
|
/**
|
|
218
259
|
* The Primary Issue Category for this Hourly Entry
|
|
219
260
|
*
|
|
@@ -230,6 +271,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
230
271
|
*/
|
|
231
272
|
|
|
232
273
|
_this.primaryIssueTag = undefined;
|
|
274
|
+
/**
|
|
275
|
+
* A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
|
|
276
|
+
*
|
|
277
|
+
* @type {?number}
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
_this.primaryIssuePercentage = undefined;
|
|
233
282
|
/**
|
|
234
283
|
* The Secondary Issue Category for this Hourly Entry
|
|
235
284
|
*
|
|
@@ -246,6 +295,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
246
295
|
*/
|
|
247
296
|
|
|
248
297
|
_this.secondaryIssueTag = undefined;
|
|
298
|
+
/**
|
|
299
|
+
* A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
|
|
300
|
+
*
|
|
301
|
+
* @type {?number}
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
_this.secondaryIssuePercentage = undefined;
|
|
249
306
|
/**
|
|
250
307
|
* An Optional Focus for the Next Hour
|
|
251
308
|
*
|
|
@@ -350,6 +407,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
350
407
|
*/
|
|
351
408
|
|
|
352
409
|
_this.updateTimestamp = undefined;
|
|
410
|
+
/**
|
|
411
|
+
* The Site ID associated with this Shift Hourly Entry
|
|
412
|
+
*
|
|
413
|
+
* @type {number}
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
_this.siteId = siteId;
|
|
353
418
|
return _this;
|
|
354
419
|
}
|
|
355
420
|
/**
|
|
@@ -358,14 +423,15 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
358
423
|
* @static
|
|
359
424
|
* @public
|
|
360
425
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
426
|
+
* @param {number} siteId The Site ID associated with this Shift Hourly Entry
|
|
361
427
|
* @return {ShiftHourlyEntryModel}
|
|
362
428
|
*/
|
|
363
429
|
|
|
364
430
|
|
|
365
431
|
_createClass(ShiftHourlyEntryModel, null, [{
|
|
366
432
|
key: "fromJSON",
|
|
367
|
-
value: function fromJSON(json) {
|
|
368
|
-
var model = new ShiftHourlyEntryModel();
|
|
433
|
+
value: function fromJSON(json, siteId) {
|
|
434
|
+
var model = new ShiftHourlyEntryModel(siteId);
|
|
369
435
|
/**
|
|
370
436
|
* The JSON Object
|
|
371
437
|
*
|
|
@@ -482,6 +548,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
482
548
|
}();
|
|
483
549
|
}
|
|
484
550
|
|
|
551
|
+
if ('averageCostPerManningUnit' in jsonObject) {
|
|
552
|
+
model.averageCostPerManningUnit = function () {
|
|
553
|
+
if (jsonObject['averageCostPerManningUnit'] === null) {
|
|
554
|
+
return null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if (typeof jsonObject['averageCostPerManningUnit'] !== 'number') {
|
|
558
|
+
return Number(jsonObject['averageCostPerManningUnit']);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
return jsonObject['averageCostPerManningUnit'];
|
|
562
|
+
}();
|
|
563
|
+
}
|
|
564
|
+
|
|
485
565
|
if ('layeredTrayPercentage' in jsonObject) {
|
|
486
566
|
model.layeredTrayPercentage = function () {
|
|
487
567
|
if (jsonObject['layeredTrayPercentage'] === null) {
|
|
@@ -524,6 +604,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
524
604
|
}();
|
|
525
605
|
}
|
|
526
606
|
|
|
607
|
+
if ('averageQualityR600IdealSamplesTarget' in jsonObject) {
|
|
608
|
+
model.averageQualityR600IdealSamplesTarget = function () {
|
|
609
|
+
if (jsonObject['averageQualityR600IdealSamplesTarget'] === null) {
|
|
610
|
+
return null;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (typeof jsonObject['averageQualityR600IdealSamplesTarget'] !== 'number') {
|
|
614
|
+
return Number(jsonObject['averageQualityR600IdealSamplesTarget']);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
return jsonObject['averageQualityR600IdealSamplesTarget'];
|
|
618
|
+
}();
|
|
619
|
+
}
|
|
620
|
+
|
|
527
621
|
if ('customQualityData' in jsonObject) {
|
|
528
622
|
model.customQualityData = function () {
|
|
529
623
|
if (Array.isArray(jsonObject['customQualityData']) !== true) {
|
|
@@ -582,6 +676,18 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
582
676
|
customQualityDataItemObject.value = 0;
|
|
583
677
|
}
|
|
584
678
|
|
|
679
|
+
if (_typeof(customQualityDataItem) === 'object' && 'averageTarget' in customQualityDataItem) {
|
|
680
|
+
customQualityDataItemObject.averageTarget = function () {
|
|
681
|
+
if (typeof customQualityDataItem.averageTarget !== 'number') {
|
|
682
|
+
return Number(customQualityDataItem.averageTarget);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
return customQualityDataItem.averageTarget;
|
|
686
|
+
}();
|
|
687
|
+
} else {
|
|
688
|
+
customQualityDataItemObject.averageTarget = 0;
|
|
689
|
+
}
|
|
690
|
+
|
|
585
691
|
return customQualityDataItemObject;
|
|
586
692
|
}();
|
|
587
693
|
});
|
|
@@ -658,6 +764,48 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
658
764
|
}();
|
|
659
765
|
}
|
|
660
766
|
|
|
767
|
+
if ('averageClass1TraysPerHourAdjustedTarget' in jsonObject) {
|
|
768
|
+
model.averageClass1TraysPerHourAdjustedTarget = function () {
|
|
769
|
+
if (jsonObject['averageClass1TraysPerHourAdjustedTarget'] === null) {
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
if (typeof jsonObject['averageClass1TraysPerHourAdjustedTarget'] !== 'number') {
|
|
774
|
+
return Number.isInteger(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget'])) ? Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']) : Math.floor(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return Number.isInteger(jsonObject['averageClass1TraysPerHourAdjustedTarget']) ? jsonObject['averageClass1TraysPerHourAdjustedTarget'] : Math.floor(jsonObject['averageClass1TraysPerHourAdjustedTarget']);
|
|
778
|
+
}();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
if ('averageCostPerTray' in jsonObject) {
|
|
782
|
+
model.averageCostPerTray = function () {
|
|
783
|
+
if (jsonObject['averageCostPerTray'] === null) {
|
|
784
|
+
return null;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
if (typeof jsonObject['averageCostPerTray'] !== 'number') {
|
|
788
|
+
return Number(jsonObject['averageCostPerTray']);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
return jsonObject['averageCostPerTray'];
|
|
792
|
+
}();
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
if ('averageCostPerTrayTarget' in jsonObject) {
|
|
796
|
+
model.averageCostPerTrayTarget = function () {
|
|
797
|
+
if (jsonObject['averageCostPerTrayTarget'] === null) {
|
|
798
|
+
return null;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
if (typeof jsonObject['averageCostPerTrayTarget'] !== 'number') {
|
|
802
|
+
return Number(jsonObject['averageCostPerTrayTarget']);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
return jsonObject['averageCostPerTrayTarget'];
|
|
806
|
+
}();
|
|
807
|
+
}
|
|
808
|
+
|
|
661
809
|
if ('primaryIssueCategory' in jsonObject) {
|
|
662
810
|
model.primaryIssueCategory = function () {
|
|
663
811
|
if (jsonObject['primaryIssueCategory'] === null) {
|
|
@@ -686,6 +834,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
686
834
|
}();
|
|
687
835
|
}
|
|
688
836
|
|
|
837
|
+
if ('primaryIssuePercentage' in jsonObject) {
|
|
838
|
+
model.primaryIssuePercentage = function () {
|
|
839
|
+
if (jsonObject['primaryIssuePercentage'] === null) {
|
|
840
|
+
return null;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
if (typeof jsonObject['primaryIssuePercentage'] !== 'number') {
|
|
844
|
+
return Number(jsonObject['primaryIssuePercentage']);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
return jsonObject['primaryIssuePercentage'];
|
|
848
|
+
}();
|
|
849
|
+
}
|
|
850
|
+
|
|
689
851
|
if ('secondaryIssueCategory' in jsonObject) {
|
|
690
852
|
model.secondaryIssueCategory = function () {
|
|
691
853
|
if (jsonObject['secondaryIssueCategory'] === null) {
|
|
@@ -714,6 +876,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
714
876
|
}();
|
|
715
877
|
}
|
|
716
878
|
|
|
879
|
+
if ('secondaryIssuePercentage' in jsonObject) {
|
|
880
|
+
model.secondaryIssuePercentage = function () {
|
|
881
|
+
if (jsonObject['secondaryIssuePercentage'] === null) {
|
|
882
|
+
return null;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
if (typeof jsonObject['secondaryIssuePercentage'] !== 'number') {
|
|
886
|
+
return Number(jsonObject['secondaryIssuePercentage']);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
return jsonObject['secondaryIssuePercentage'];
|
|
890
|
+
}();
|
|
891
|
+
}
|
|
892
|
+
|
|
717
893
|
if ('nextHourFocus' in jsonObject) {
|
|
718
894
|
model.nextHourFocus = function () {
|
|
719
895
|
if (jsonObject['nextHourFocus'] === null) {
|
|
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
17
17
|
|
|
18
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"); }
|
|
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
|
|
|
@@ -47,8 +47,9 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
47
47
|
* ShiftModel Constructor
|
|
48
48
|
*
|
|
49
49
|
* @protected
|
|
50
|
+
* @param {number} siteId The Site ID associated with this Shift
|
|
50
51
|
*/
|
|
51
|
-
function ShiftModel() {
|
|
52
|
+
function ShiftModel(siteId) {
|
|
52
53
|
var _this;
|
|
53
54
|
|
|
54
55
|
_classCallCheck(this, ShiftModel);
|
|
@@ -206,6 +207,14 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
207
|
*/
|
|
207
208
|
|
|
208
209
|
_this.updateTimestamp = undefined;
|
|
210
|
+
/**
|
|
211
|
+
* The Site ID associated with this Shift
|
|
212
|
+
*
|
|
213
|
+
* @type {number}
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
_this.siteId = siteId;
|
|
209
218
|
return _this;
|
|
210
219
|
}
|
|
211
220
|
/**
|
|
@@ -214,14 +223,15 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
214
223
|
* @static
|
|
215
224
|
* @public
|
|
216
225
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
226
|
+
* @param {number} siteId The Site ID associated with this Shift
|
|
217
227
|
* @return {ShiftModel}
|
|
218
228
|
*/
|
|
219
229
|
|
|
220
230
|
|
|
221
231
|
_createClass(ShiftModel, null, [{
|
|
222
232
|
key: "fromJSON",
|
|
223
|
-
value: function fromJSON(json) {
|
|
224
|
-
var model = new ShiftModel();
|
|
233
|
+
value: function fromJSON(json, siteId) {
|
|
234
|
+
var model = new ShiftModel(siteId);
|
|
225
235
|
/**
|
|
226
236
|
* The JSON Object
|
|
227
237
|
*
|