@ricado/api-client 2.2.0 → 2.3.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/dist/ricado.api.client.js +1 -1
- package/lib/DataItems/PointValueItem.js +3 -3
- package/lib/Models/AccountPolicyModel.js +7 -7
- package/lib/Models/ApiAccountModel.js +7 -7
- package/lib/Models/CompanyModel.js +5 -5
- package/lib/Models/FirebaseTokenModel.js +8 -8
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +13 -13
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -14
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/lib/Models/Packhouse/Site/PackingLineModel.js +16 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +18 -18
- package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/RTUModel.js +6 -6
- package/lib/Models/RTUPluginModel.js +5 -5
- package/lib/Models/Site/AlarmGroupModel.js +7 -7
- package/lib/Models/Site/AlarmModel.js +17 -17
- package/lib/Models/Site/DefinitionModel.js +6 -6
- package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
- package/lib/Models/Site/PermanentObjectModel.js +7 -7
- package/lib/Models/Site/PointModel.js +11 -11
- package/lib/Models/Site/TemporaryObjectModel.js +6 -6
- package/lib/Models/SiteModel.js +6 -6
- package/lib/Models/TokenModel.js +10 -10
- package/lib/Models/UserAccountActionTokenModel.js +11 -11
- package/lib/Models/UserAccountModel.js +10 -10
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +22 -12
- package/lib/WebSocketHelper.js +29 -13
- package/lib/index.d.ts +361 -361
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/DataItems/PointValueItem.js +3 -3
- package/src/Models/AccountPolicyModel.js +7 -7
- package/src/Models/ApiAccountModel.js +7 -7
- package/src/Models/CompanyModel.js +5 -5
- package/src/Models/FirebaseTokenModel.js +8 -8
- package/src/Models/Packhouse/Site/BinTipBinModel.js +13 -13
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -14
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/src/Models/Packhouse/Site/PackingLineModel.js +16 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +18 -18
- package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/RTUModel.js +6 -6
- package/src/Models/RTUPluginModel.js +5 -5
- package/src/Models/Site/AlarmGroupModel.js +7 -7
- package/src/Models/Site/AlarmModel.js +17 -17
- package/src/Models/Site/DefinitionModel.js +6 -6
- package/src/Models/Site/PermanentObjectDataModel.js +8 -8
- package/src/Models/Site/PermanentObjectModel.js +7 -7
- package/src/Models/Site/PointModel.js +11 -11
- package/src/Models/Site/TemporaryObjectModel.js +6 -6
- package/src/Models/SiteModel.js +6 -6
- package/src/Models/TokenModel.js +10 -10
- package/src/Models/UserAccountActionTokenModel.js +11 -11
- package/src/Models/UserAccountModel.js +10 -10
- package/src/PackageVersion.js +1 -1
- package/src/Points.js +24 -12
- package/src/WebSocketHelper.js +34 -13
- package/src/index.js +3 -3
- package/types/tslint.json +2 -1
|
@@ -31,7 +31,7 @@ class PackTypeModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Code for this Pack Type
|
|
@@ -39,7 +39,7 @@ class PackTypeModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.code =
|
|
42
|
+
this.code = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Name for this Pack Type
|
|
@@ -47,7 +47,7 @@ class PackTypeModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* An Optional Description for this Pack Type
|
|
@@ -55,7 +55,7 @@ class PackTypeModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.description =
|
|
58
|
+
this.description = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Physical Form of this Pack Type
|
|
@@ -63,7 +63,7 @@ class PackTypeModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.form =
|
|
66
|
+
this.form = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* An Array of Fruit Sizes Defined for this Pack Type
|
|
@@ -71,7 +71,7 @@ class PackTypeModel extends BaseModel
|
|
|
71
71
|
* @type {Array<{size: string, count: number}>}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.fruitSizes =
|
|
74
|
+
this.fruitSizes = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Pack Type has been deleted
|
|
@@ -79,7 +79,7 @@ class PackTypeModel extends BaseModel
|
|
|
79
79
|
* @type {boolean}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.deleted =
|
|
82
|
+
this.deleted = false;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* When the Pack Type was last updated
|
|
@@ -87,7 +87,7 @@ class PackTypeModel extends BaseModel
|
|
|
87
87
|
* @type {Date}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.updateTimestamp =
|
|
90
|
+
this.updateTimestamp = new Date();
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Site ID associated with this Pack Type
|
|
@@ -31,7 +31,7 @@ class PackingLineModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Packing Line belongs to
|
|
@@ -39,7 +39,7 @@ class PackingLineModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packing Line Name
|
|
@@ -47,7 +47,7 @@ class PackingLineModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Packing Line
|
|
@@ -55,7 +55,7 @@ class PackingLineModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points =
|
|
58
|
+
this.points = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Sizer Objects that belong to this Packing Line
|
|
@@ -63,7 +63,7 @@ class PackingLineModel extends BaseModel
|
|
|
63
63
|
* @type {Object[]}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.sizers =
|
|
66
|
+
this.sizers = [];
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Bin Tip Objects that belong to this this Packing Line
|
|
@@ -71,7 +71,7 @@ class PackingLineModel extends BaseModel
|
|
|
71
71
|
* @type {Object[]}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.binTips =
|
|
74
|
+
this.binTips = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Reject Bin Scale Objects that belong to this Packing Line
|
|
@@ -79,7 +79,7 @@ class PackingLineModel extends BaseModel
|
|
|
79
79
|
* @type {Object[]}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.rejectBinScales =
|
|
82
|
+
this.rejectBinScales = [];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* An Optional Secondary Packing Line Reference
|
|
@@ -87,7 +87,7 @@ class PackingLineModel extends BaseModel
|
|
|
87
87
|
* @type {?Object}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.secondaryPackingLine =
|
|
90
|
+
this.secondaryPackingLine = null;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Automation Object for this Packing Line
|
|
@@ -95,7 +95,7 @@ class PackingLineModel extends BaseModel
|
|
|
95
95
|
* @type {?Object}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.automation =
|
|
98
|
+
this.automation = null;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Alarm Groups that are used by this Packing Line
|
|
@@ -103,7 +103,7 @@ class PackingLineModel extends BaseModel
|
|
|
103
103
|
* @type {string[]}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.alarmGroups =
|
|
106
|
+
this.alarmGroups = [];
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Class Types that are defined for this Packing Line
|
|
@@ -111,7 +111,7 @@ class PackingLineModel extends BaseModel
|
|
|
111
111
|
* @type {Object[]}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.classTypes =
|
|
114
|
+
this.classTypes = [];
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Optional Shift Management Object for this Packing Line
|
|
@@ -119,7 +119,7 @@ class PackingLineModel extends BaseModel
|
|
|
119
119
|
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>}}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.shiftManagement =
|
|
122
|
+
this.shiftManagement = null;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The FreshPack Integration Configuration for this Packing Line
|
|
@@ -127,7 +127,7 @@ class PackingLineModel extends BaseModel
|
|
|
127
127
|
* @type {?Object}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.freshPackIntegration =
|
|
130
|
+
this.freshPackIntegration = null;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
@@ -135,7 +135,7 @@ class PackingLineModel extends BaseModel
|
|
|
135
135
|
* @type {?Object}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.freshQualityIntegration =
|
|
138
|
+
this.freshQualityIntegration = null;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Whether the Packing Line has been deleted
|
|
@@ -143,7 +143,7 @@ class PackingLineModel extends BaseModel
|
|
|
143
143
|
* @type {boolean}
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.deleted =
|
|
146
|
+
this.deleted = false;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* When the Packing Line was last updated
|
|
@@ -151,7 +151,7 @@ class PackingLineModel extends BaseModel
|
|
|
151
151
|
* @type {Date}
|
|
152
152
|
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.updateTimestamp =
|
|
154
|
+
this.updateTimestamp = new Date();
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* The Site ID associated with this Packing Line
|
|
@@ -31,7 +31,7 @@ class PackrunModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Packing Line ID this Packrun is associated with
|
|
@@ -39,7 +39,7 @@ class PackrunModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.packingLineId =
|
|
42
|
+
this.packingLineId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packrun Name
|
|
@@ -47,7 +47,7 @@ class PackrunModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Packrun was Created
|
|
@@ -55,7 +55,7 @@ class PackrunModel extends BaseModel
|
|
|
55
55
|
* @type {Date}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.createdTimestamp =
|
|
58
|
+
this.createdTimestamp = new Date();
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Grower Name for this Packrun
|
|
@@ -63,7 +63,7 @@ class PackrunModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.growerName =
|
|
66
|
+
this.growerName = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Grower Code for this Packrun
|
|
@@ -71,7 +71,7 @@ class PackrunModel extends BaseModel
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.growerCode =
|
|
74
|
+
this.growerCode = "";
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Maturity Area for this Packrun
|
|
@@ -79,7 +79,7 @@ class PackrunModel extends BaseModel
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.maturityArea =
|
|
82
|
+
this.maturityArea = "";
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* When this Packrun was Started
|
|
@@ -87,7 +87,7 @@ class PackrunModel extends BaseModel
|
|
|
87
87
|
* @type {?Date}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.startTimestamp =
|
|
90
|
+
this.startTimestamp = null;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* When this Packrun was Finished
|
|
@@ -95,7 +95,7 @@ class PackrunModel extends BaseModel
|
|
|
95
95
|
* @type {?Date}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.finishTimestamp =
|
|
98
|
+
this.finishTimestamp = null;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Variety for this Packrun
|
|
@@ -103,7 +103,7 @@ class PackrunModel extends BaseModel
|
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.varietyId =
|
|
106
|
+
this.varietyId = "";
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Growing Method for this Packrun
|
|
@@ -111,7 +111,7 @@ class PackrunModel extends BaseModel
|
|
|
111
111
|
* @type {?string}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.growingMethodId =
|
|
114
|
+
this.growingMethodId = null;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Number of Allocated Bins for this Packrun
|
|
@@ -119,7 +119,7 @@ class PackrunModel extends BaseModel
|
|
|
119
119
|
* @type {number}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.allocatedBins =
|
|
122
|
+
this.allocatedBins = 0;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The Time Batches for this Packrun
|
|
@@ -127,7 +127,7 @@ class PackrunModel extends BaseModel
|
|
|
127
127
|
* @type {Object[]}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.timeBatches =
|
|
130
|
+
this.timeBatches = [];
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* The FreshPack Grader ID associated with this Packrun
|
|
@@ -135,7 +135,7 @@ class PackrunModel extends BaseModel
|
|
|
135
135
|
* @type {?number}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.freshPackGraderId =
|
|
138
|
+
this.freshPackGraderId = null;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The FreshPack Bin Lot Code associated with this Packrun
|
|
@@ -143,7 +143,7 @@ class PackrunModel extends BaseModel
|
|
|
143
143
|
* @type {?string}
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.freshPackBinLotCode =
|
|
146
|
+
this.freshPackBinLotCode = null;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The FreshPack Produce Code associated with this Packrun
|
|
@@ -151,7 +151,7 @@ class PackrunModel extends BaseModel
|
|
|
151
151
|
* @type {?string}
|
|
152
152
|
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.freshPackProduceCode =
|
|
154
|
+
this.freshPackProduceCode = null;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Whether the Packrun has been deleted
|
|
@@ -159,7 +159,7 @@ class PackrunModel extends BaseModel
|
|
|
159
159
|
* @type {boolean}
|
|
160
160
|
* @public
|
|
161
161
|
*/
|
|
162
|
-
this.deleted =
|
|
162
|
+
this.deleted = false;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* When the Packrun was last updated
|
|
@@ -167,7 +167,7 @@ class PackrunModel extends BaseModel
|
|
|
167
167
|
* @type {Date}
|
|
168
168
|
* @public
|
|
169
169
|
*/
|
|
170
|
-
this.updateTimestamp =
|
|
170
|
+
this.updateTimestamp = new Date();
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* The Site ID associated with this Packrun
|
|
@@ -31,7 +31,7 @@ class RejectBinModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Reject Bin Scale ID this Reject Bin is associated with
|
|
@@ -39,7 +39,7 @@ class RejectBinModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rejectBinScaleId =
|
|
42
|
+
this.rejectBinScaleId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* When this Reject Bin was Created
|
|
@@ -47,7 +47,7 @@ class RejectBinModel extends BaseModel
|
|
|
47
47
|
* @type {Date}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.createdTimestamp =
|
|
50
|
+
this.createdTimestamp = new Date();
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Name of the Reject Bin Scale where this Bin was Created
|
|
@@ -55,7 +55,7 @@ class RejectBinModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.rejectBinScaleName =
|
|
58
|
+
this.rejectBinScaleName = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Tare Weight Captured by the Reject Bin Scale
|
|
@@ -63,7 +63,7 @@ class RejectBinModel extends BaseModel
|
|
|
63
63
|
* @type {?number}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.tareWeight =
|
|
66
|
+
this.tareWeight = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When this Reject Bin was Finalized (No new Weights)
|
|
@@ -71,7 +71,7 @@ class RejectBinModel extends BaseModel
|
|
|
71
71
|
* @type {?Date}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.finalizedTimestamp =
|
|
74
|
+
this.finalizedTimestamp = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Multi-Grower Bins that will be submitted to FreshPack
|
|
@@ -79,7 +79,7 @@ class RejectBinModel extends BaseModel
|
|
|
79
79
|
* @type {Object[]}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.freshPackMultiGrowerBins =
|
|
82
|
+
this.freshPackMultiGrowerBins = [];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Whether the Reject Bin has been deleted
|
|
@@ -87,7 +87,7 @@ class RejectBinModel extends BaseModel
|
|
|
87
87
|
* @type {boolean}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.deleted =
|
|
90
|
+
this.deleted = false;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* When the Reject Bin was last updated
|
|
@@ -95,7 +95,7 @@ class RejectBinModel extends BaseModel
|
|
|
95
95
|
* @type {Date}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.updateTimestamp =
|
|
98
|
+
this.updateTimestamp = new Date();
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Site ID associated with this Reject Bin
|
|
@@ -31,7 +31,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Reject Bin Scale belongs to
|
|
@@ -39,7 +39,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Name of this Reject Bin Scale
|
|
@@ -47,7 +47,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Reject Bin Scale
|
|
@@ -55,7 +55,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points =
|
|
58
|
+
this.points = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Packing Line that owns this Reject Bin Scale
|
|
@@ -63,7 +63,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.packingLineId =
|
|
66
|
+
this.packingLineId = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
@@ -71,7 +71,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
71
71
|
* @type {?string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.packrunSourceId =
|
|
74
|
+
this.packrunSourceId = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Packrun Group this Reject Bin Scale is a part of
|
|
@@ -79,7 +79,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
79
79
|
* @type {?number}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.packrunGroup =
|
|
82
|
+
this.packrunGroup = null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
@@ -87,7 +87,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
87
87
|
* @type {Object[]}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.sources =
|
|
90
|
+
this.sources = [];
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
@@ -95,7 +95,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
95
95
|
* @type {?{delay: ?number}}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.autoPackrunChange =
|
|
98
|
+
this.autoPackrunChange = null;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* Whether this Reject Bin Scale supports Live Weighing
|
|
@@ -103,7 +103,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
103
103
|
* @type {?boolean}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.supportsLiveWeighing =
|
|
106
|
+
this.supportsLiveWeighing = null;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
@@ -111,7 +111,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
111
111
|
* @type {?number}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.autoWeighingStartThreshold =
|
|
114
|
+
this.autoWeighingStartThreshold = null;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Delay in Milliseconds before Auto Live Weighing would Start
|
|
@@ -119,7 +119,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
119
119
|
* @type {?number}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.autoWeighingStartDelay =
|
|
122
|
+
this.autoWeighingStartDelay = null;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
@@ -127,7 +127,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
127
127
|
* @type {?number}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.autoWeighingFinishThreshold =
|
|
130
|
+
this.autoWeighingFinishThreshold = null;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
@@ -135,7 +135,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
135
135
|
* @type {?number}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.autoWeighingFinishDelay =
|
|
138
|
+
this.autoWeighingFinishDelay = null;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
@@ -143,7 +143,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
143
143
|
* @type {?number}
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.manualInterventionMaximumDuration =
|
|
146
|
+
this.manualInterventionMaximumDuration = null;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
@@ -151,7 +151,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
151
151
|
* @type {?number}
|
|
152
152
|
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.liveWeighingIncreaseTolerance =
|
|
154
|
+
this.liveWeighingIncreaseTolerance = null;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
@@ -159,7 +159,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
159
159
|
* @type {?number}
|
|
160
160
|
* @public
|
|
161
161
|
*/
|
|
162
|
-
this.liveWeighingDecreaseTolerance =
|
|
162
|
+
this.liveWeighingDecreaseTolerance = null;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* The Interval in Milliseconds between Live Weighing Updates
|
|
@@ -167,7 +167,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
167
167
|
* @type {?number}
|
|
168
168
|
* @public
|
|
169
169
|
*/
|
|
170
|
-
this.liveWeighingUpdateInterval =
|
|
170
|
+
this.liveWeighingUpdateInterval = null;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
|
|
@@ -175,7 +175,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
175
175
|
* @type {?boolean}
|
|
176
176
|
* @public
|
|
177
177
|
*/
|
|
178
|
-
this.liveWeighingUsesStableStatus =
|
|
178
|
+
this.liveWeighingUsesStableStatus = null;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
|
|
@@ -183,7 +183,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
183
183
|
* @type {?number}
|
|
184
184
|
* @public
|
|
185
185
|
*/
|
|
186
|
-
this.incorrectOperationTolerance =
|
|
186
|
+
this.incorrectOperationTolerance = null;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
@@ -191,7 +191,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
191
191
|
* @type {?Object}
|
|
192
192
|
* @public
|
|
193
193
|
*/
|
|
194
|
-
this.freshPackIntegration =
|
|
194
|
+
this.freshPackIntegration = null;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Whether the Reject Bin Scale has been deleted
|
|
@@ -199,7 +199,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
199
199
|
* @type {boolean}
|
|
200
200
|
* @public
|
|
201
201
|
*/
|
|
202
|
-
this.deleted =
|
|
202
|
+
this.deleted = false;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* When the Reject Bin Scale was last updated
|
|
@@ -207,7 +207,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
207
207
|
* @type {Date}
|
|
208
208
|
* @public
|
|
209
209
|
*/
|
|
210
|
-
this.updateTimestamp =
|
|
210
|
+
this.updateTimestamp = new Date();
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* The Site ID associated with this Reject Bin Scale
|