@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
|
@@ -29,7 +29,7 @@ class PermanentObjectController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/permanent-objects/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return PermanentObjectModel.fromJSON(result);
|
|
32
|
+
return PermanentObjectModel.fromJSON(result, siteId);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class PermanentObjectController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/permanent-objects/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return PermanentObjectModel.fromJSON(result);
|
|
57
|
+
return PermanentObjectModel.fromJSON(result, siteId);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class PermanentObjectController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return PermanentObjectModel.fromJSON(resultItem);
|
|
108
|
+
return PermanentObjectModel.fromJSON(resultItem, siteId);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class PermanentObjectController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/permanent-objects`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return PermanentObjectModel.fromJSON(result);
|
|
134
|
+
return PermanentObjectModel.fromJSON(result, siteId);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class PermanentObjectDataController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/permanent-object-data/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
32
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class PermanentObjectDataController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/permanent-object-data/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
57
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -569,7 +569,7 @@ class PermanentObjectDataController
|
|
|
569
569
|
|
|
570
570
|
return result.map((resultItem) => {
|
|
571
571
|
return (function(){
|
|
572
|
-
return PermanentObjectDataModel.fromJSON(resultItem);
|
|
572
|
+
return PermanentObjectDataModel.fromJSON(resultItem, siteId);
|
|
573
573
|
}());
|
|
574
574
|
});
|
|
575
575
|
}());
|
|
@@ -595,7 +595,7 @@ class PermanentObjectDataController
|
|
|
595
595
|
RequestHelper.postRequest(`/sites/${siteId}/permanent-object-data`, createData)
|
|
596
596
|
.then((result) => {
|
|
597
597
|
let resolveValue = (function(){
|
|
598
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
598
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
599
599
|
}());
|
|
600
600
|
|
|
601
601
|
resolve(resolveValue);
|
|
@@ -348,7 +348,7 @@ class PointController
|
|
|
348
348
|
RequestHelper.getRequest(`/sites/${siteId}/points/${id}`)
|
|
349
349
|
.then((result) => {
|
|
350
350
|
let resolveValue = (function(){
|
|
351
|
-
return PointModel.fromJSON(result);
|
|
351
|
+
return PointModel.fromJSON(result, siteId);
|
|
352
352
|
}());
|
|
353
353
|
|
|
354
354
|
resolve(resolveValue);
|
|
@@ -373,7 +373,7 @@ class PointController
|
|
|
373
373
|
RequestHelper.patchRequest(`/sites/${siteId}/points/${id}`, updateData)
|
|
374
374
|
.then((result) => {
|
|
375
375
|
let resolveValue = (function(){
|
|
376
|
-
return PointModel.fromJSON(result);
|
|
376
|
+
return PointModel.fromJSON(result, siteId);
|
|
377
377
|
}());
|
|
378
378
|
|
|
379
379
|
resolve(resolveValue);
|
|
@@ -424,7 +424,7 @@ class PointController
|
|
|
424
424
|
|
|
425
425
|
return result.map((resultItem) => {
|
|
426
426
|
return (function(){
|
|
427
|
-
return PointModel.fromJSON(resultItem);
|
|
427
|
+
return PointModel.fromJSON(resultItem, siteId);
|
|
428
428
|
}());
|
|
429
429
|
});
|
|
430
430
|
}());
|
|
@@ -450,7 +450,7 @@ class PointController
|
|
|
450
450
|
RequestHelper.postRequest(`/sites/${siteId}/points`, createData)
|
|
451
451
|
.then((result) => {
|
|
452
452
|
let resolveValue = (function(){
|
|
453
|
-
return PointModel.fromJSON(result);
|
|
453
|
+
return PointModel.fromJSON(result, siteId);
|
|
454
454
|
}());
|
|
455
455
|
|
|
456
456
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class TemporaryObjectController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/temporary-objects/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
32
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class TemporaryObjectController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/temporary-objects/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
57
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class TemporaryObjectController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return TemporaryObjectModel.fromJSON(resultItem);
|
|
108
|
+
return TemporaryObjectModel.fromJSON(resultItem, siteId);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class TemporaryObjectController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/temporary-objects`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
134
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Model Class for a Bin Tip Bin
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class BinTipBinModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* BinTipBinModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Bin Tip Bin ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Bin Tip ID associated with this Bin
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.binTipId = undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Packrun ID associated with this Bin
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.packrunId = undefined;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Bin was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
62
|
+
*
|
|
63
|
+
* @type {?string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.binNumber = undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The Time Batch ID associated with this Bin
|
|
70
|
+
*
|
|
71
|
+
* @type {?string}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.timeBatchId = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Full Weight for this Bin
|
|
78
|
+
*
|
|
79
|
+
* @type {?number}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.fullWeight = undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Empty Weight for this Bin
|
|
86
|
+
*
|
|
87
|
+
* @type {?number}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.emptyWeight = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The `BinTipWeight` ID as the Source for the Full Weight of this Bin
|
|
94
|
+
*
|
|
95
|
+
* @type {?string}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.fullBinWeightId = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The `BinTipWeight` ID as the Source for the Empty Weight of this Bin
|
|
102
|
+
*
|
|
103
|
+
* @type {?string}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.emptyBinWeightId = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The FreshPack Field Bin Weight API Data
|
|
110
|
+
*
|
|
111
|
+
* @type {?Object}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.freshPackFieldBinWeightApi = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Whether the Bin Tip Bin has been deleted
|
|
118
|
+
*
|
|
119
|
+
* @type {boolean}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.deleted = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* When the Bin Tip Bin was last updated
|
|
126
|
+
*
|
|
127
|
+
* @type {Date}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.updateTimestamp = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The Site ID associated with this Bin Tip Bin
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.siteId = siteId;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Create a new **BinTipBinModel** from a JSON Object or JSON String
|
|
143
|
+
*
|
|
144
|
+
* @static
|
|
145
|
+
* @public
|
|
146
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
147
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin
|
|
148
|
+
* @return {BinTipBinModel}
|
|
149
|
+
*/
|
|
150
|
+
static fromJSON(json, siteId)
|
|
151
|
+
{
|
|
152
|
+
let model = new BinTipBinModel(siteId);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The JSON Object
|
|
156
|
+
*
|
|
157
|
+
* @type {Object<string, any>}
|
|
158
|
+
*/
|
|
159
|
+
let jsonObject = {};
|
|
160
|
+
|
|
161
|
+
if(typeof json === 'string')
|
|
162
|
+
{
|
|
163
|
+
jsonObject = JSON.parse(json);
|
|
164
|
+
}
|
|
165
|
+
else if(typeof json === 'object')
|
|
166
|
+
{
|
|
167
|
+
jsonObject = json;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if('id' in jsonObject)
|
|
171
|
+
{
|
|
172
|
+
model.id = (function(){
|
|
173
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
174
|
+
{
|
|
175
|
+
return String(jsonObject['id']);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return jsonObject['id'];
|
|
179
|
+
}());
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if('binTipId' in jsonObject)
|
|
183
|
+
{
|
|
184
|
+
model.binTipId = (function(){
|
|
185
|
+
if(typeof jsonObject['binTipId'] !== 'string')
|
|
186
|
+
{
|
|
187
|
+
return String(jsonObject['binTipId']);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return jsonObject['binTipId'];
|
|
191
|
+
}());
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if('packrunId' in jsonObject)
|
|
195
|
+
{
|
|
196
|
+
model.packrunId = (function(){
|
|
197
|
+
if(typeof jsonObject['packrunId'] !== 'string')
|
|
198
|
+
{
|
|
199
|
+
return String(jsonObject['packrunId']);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return jsonObject['packrunId'];
|
|
203
|
+
}());
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if('createdTimestamp' in jsonObject)
|
|
207
|
+
{
|
|
208
|
+
model.createdTimestamp = (function(){
|
|
209
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
210
|
+
{
|
|
211
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
215
|
+
}());
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if('binNumber' in jsonObject)
|
|
219
|
+
{
|
|
220
|
+
model.binNumber = (function(){
|
|
221
|
+
if(jsonObject['binNumber'] === null)
|
|
222
|
+
{
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if(typeof jsonObject['binNumber'] !== 'string')
|
|
227
|
+
{
|
|
228
|
+
return String(jsonObject['binNumber']);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return jsonObject['binNumber'];
|
|
232
|
+
}());
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if('timeBatchId' in jsonObject)
|
|
236
|
+
{
|
|
237
|
+
model.timeBatchId = (function(){
|
|
238
|
+
if(jsonObject['timeBatchId'] === null)
|
|
239
|
+
{
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if(typeof jsonObject['timeBatchId'] !== 'string')
|
|
244
|
+
{
|
|
245
|
+
return String(jsonObject['timeBatchId']);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return jsonObject['timeBatchId'];
|
|
249
|
+
}());
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if('fullWeight' in jsonObject)
|
|
253
|
+
{
|
|
254
|
+
model.fullWeight = (function(){
|
|
255
|
+
if(jsonObject['fullWeight'] === null)
|
|
256
|
+
{
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if(typeof jsonObject['fullWeight'] !== 'number')
|
|
261
|
+
{
|
|
262
|
+
return Number(jsonObject['fullWeight']);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return jsonObject['fullWeight'];
|
|
266
|
+
}());
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if('emptyWeight' in jsonObject)
|
|
270
|
+
{
|
|
271
|
+
model.emptyWeight = (function(){
|
|
272
|
+
if(jsonObject['emptyWeight'] === null)
|
|
273
|
+
{
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if(typeof jsonObject['emptyWeight'] !== 'number')
|
|
278
|
+
{
|
|
279
|
+
return Number(jsonObject['emptyWeight']);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return jsonObject['emptyWeight'];
|
|
283
|
+
}());
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if('fullBinWeightId' in jsonObject)
|
|
287
|
+
{
|
|
288
|
+
model.fullBinWeightId = (function(){
|
|
289
|
+
if(jsonObject['fullBinWeightId'] === null)
|
|
290
|
+
{
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if(typeof jsonObject['fullBinWeightId'] !== 'string')
|
|
295
|
+
{
|
|
296
|
+
return String(jsonObject['fullBinWeightId']);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return jsonObject['fullBinWeightId'];
|
|
300
|
+
}());
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if('emptyBinWeightId' in jsonObject)
|
|
304
|
+
{
|
|
305
|
+
model.emptyBinWeightId = (function(){
|
|
306
|
+
if(jsonObject['emptyBinWeightId'] === null)
|
|
307
|
+
{
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if(typeof jsonObject['emptyBinWeightId'] !== 'string')
|
|
312
|
+
{
|
|
313
|
+
return String(jsonObject['emptyBinWeightId']);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return jsonObject['emptyBinWeightId'];
|
|
317
|
+
}());
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if('freshPackFieldBinWeightApi' in jsonObject)
|
|
321
|
+
{
|
|
322
|
+
model.freshPackFieldBinWeightApi = (function(){
|
|
323
|
+
if(jsonObject['freshPackFieldBinWeightApi'] === null)
|
|
324
|
+
{
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if(typeof jsonObject['freshPackFieldBinWeightApi'] !== 'object')
|
|
329
|
+
{
|
|
330
|
+
return Object(jsonObject['freshPackFieldBinWeightApi']);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return jsonObject['freshPackFieldBinWeightApi'];
|
|
334
|
+
}());
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if('deleted' in jsonObject)
|
|
338
|
+
{
|
|
339
|
+
model.deleted = (function(){
|
|
340
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
341
|
+
{
|
|
342
|
+
return Boolean(jsonObject['deleted']);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
return jsonObject['deleted'];
|
|
346
|
+
}());
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if('updateTimestamp' in jsonObject)
|
|
350
|
+
{
|
|
351
|
+
model.updateTimestamp = (function(){
|
|
352
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
353
|
+
{
|
|
354
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
358
|
+
}());
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return model;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export default BinTipBinModel;
|
|
@@ -19,8 +19,9 @@ class BinTipWeightModel extends BaseModel
|
|
|
19
19
|
* BinTipWeightModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Weight
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -95,6 +96,14 @@ class BinTipWeightModel extends BaseModel
|
|
|
95
96
|
* @public
|
|
96
97
|
*/
|
|
97
98
|
this.updateTimestamp = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The Site ID associated with this Bin Tip Weight
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.siteId = siteId;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
/**
|
|
@@ -103,11 +112,12 @@ class BinTipWeightModel extends BaseModel
|
|
|
103
112
|
* @static
|
|
104
113
|
* @public
|
|
105
114
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
115
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Weight
|
|
106
116
|
* @return {BinTipWeightModel}
|
|
107
117
|
*/
|
|
108
|
-
static fromJSON(json)
|
|
118
|
+
static fromJSON(json, siteId)
|
|
109
119
|
{
|
|
110
|
-
let model = new BinTipWeightModel();
|
|
120
|
+
let model = new BinTipWeightModel(siteId);
|
|
111
121
|
|
|
112
122
|
/**
|
|
113
123
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
19
19
|
* CompacSizerBatchModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Batch
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -87,6 +88,14 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
this.updateTimestamp = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The Site ID associated with this Compac Sizer Batch
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.siteId = siteId;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
/**
|
|
@@ -95,11 +104,12 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
95
104
|
* @static
|
|
96
105
|
* @public
|
|
97
106
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
107
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Batch
|
|
98
108
|
* @return {CompacSizerBatchModel}
|
|
99
109
|
*/
|
|
100
|
-
static fromJSON(json)
|
|
110
|
+
static fromJSON(json, siteId)
|
|
101
111
|
{
|
|
102
|
-
let model = new CompacSizerBatchModel();
|
|
112
|
+
let model = new CompacSizerBatchModel(siteId);
|
|
103
113
|
|
|
104
114
|
/**
|
|
105
115
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerModel extends BaseModel
|
|
|
19
19
|
* CompacSizerModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -97,7 +98,7 @@ class CompacSizerModel extends BaseModel
|
|
|
97
98
|
this.fruitSizes = undefined;
|
|
98
99
|
|
|
99
100
|
/**
|
|
100
|
-
* The Packing Line ID this Compac Sizer
|
|
101
|
+
* The Packing Line ID that manages this Compac Sizer
|
|
101
102
|
*
|
|
102
103
|
* @type {string}
|
|
103
104
|
* @public
|
|
@@ -135,6 +136,14 @@ class CompacSizerModel extends BaseModel
|
|
|
135
136
|
* @public
|
|
136
137
|
*/
|
|
137
138
|
this.updateTimestamp = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Site ID associated with this Compac Sizer
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.siteId = siteId;
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
/**
|
|
@@ -143,11 +152,12 @@ class CompacSizerModel extends BaseModel
|
|
|
143
152
|
* @static
|
|
144
153
|
* @public
|
|
145
154
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
155
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer
|
|
146
156
|
* @return {CompacSizerModel}
|
|
147
157
|
*/
|
|
148
|
-
static fromJSON(json)
|
|
158
|
+
static fromJSON(json, siteId)
|
|
149
159
|
{
|
|
150
|
-
let model = new CompacSizerModel();
|
|
160
|
+
let model = new CompacSizerModel(siteId);
|
|
151
161
|
|
|
152
162
|
/**
|
|
153
163
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
19
19
|
* CompacSizerOutletProductChangeModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Product Change
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -103,6 +104,14 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
103
104
|
* @public
|
|
104
105
|
*/
|
|
105
106
|
this.updateTimestamp = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The Site ID associated with this Compac Sizer Outlet Product Change
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.siteId = siteId;
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
/**
|
|
@@ -111,11 +120,12 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
111
120
|
* @static
|
|
112
121
|
* @public
|
|
113
122
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
123
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Product Change
|
|
114
124
|
* @return {CompacSizerOutletProductChangeModel}
|
|
115
125
|
*/
|
|
116
|
-
static fromJSON(json)
|
|
126
|
+
static fromJSON(json, siteId)
|
|
117
127
|
{
|
|
118
|
-
let model = new CompacSizerOutletProductChangeModel();
|
|
128
|
+
let model = new CompacSizerOutletProductChangeModel(siteId);
|
|
119
129
|
|
|
120
130
|
/**
|
|
121
131
|
* The JSON Object
|