@ricado/api-client 2.2.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -0
- package/lib/Controllers/Packhouse/Site/PackrunController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +267 -0
- package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
- 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 +60 -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 +715 -361
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -0
- package/src/Controllers/Packhouse/Site/PackrunController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +355 -0
- package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
- 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 +66 -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 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
|
|
@@ -31,7 +31,7 @@ class RejectBinWeightModel 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 Weight is associated with
|
|
@@ -39,7 +39,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rejectBinScaleId =
|
|
42
|
+
this.rejectBinScaleId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Reject Bin ID this Reject Weight is associated with
|
|
@@ -47,7 +47,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.rejectBinId =
|
|
50
|
+
this.rejectBinId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Reject Bin Weight was Created
|
|
@@ -55,7 +55,7 @@ class RejectBinWeightModel 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 Packrun this Reject Weight is associated with
|
|
@@ -63,7 +63,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
63
63
|
* @type {?string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.packrunId =
|
|
66
|
+
this.packrunId = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Net Weight Captured by the Reject Bin Scale
|
|
@@ -71,7 +71,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
71
71
|
* @type {number}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.netWeight =
|
|
74
|
+
this.netWeight = 0;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Source Weights that make up the Net Weight
|
|
@@ -79,7 +79,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
79
79
|
* @type {Object[]}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.sources =
|
|
82
|
+
this.sources = [];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
@@ -87,7 +87,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
87
87
|
* @type {Object[]}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.freshPackMultiGrowerBinWeights =
|
|
90
|
+
this.freshPackMultiGrowerBinWeights = [];
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the Reject Bin Weight has been deleted
|
|
@@ -95,7 +95,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
95
95
|
* @type {boolean}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.deleted =
|
|
98
|
+
this.deleted = false;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* When the Reject Bin Weight was last updated
|
|
@@ -103,7 +103,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
103
103
|
* @type {Date}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.updateTimestamp =
|
|
106
|
+
this.updateTimestamp = new Date();
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Site ID associated with this Reject Bin Weight
|
|
@@ -31,7 +31,7 @@ class ShiftFocusMeetingModel 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 Focus Meeting is associated with
|
|
@@ -39,7 +39,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.packingLineId =
|
|
42
|
+
this.packingLineId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Shift ID this Focus Meeting is asssociated with
|
|
@@ -47,7 +47,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.shiftId =
|
|
50
|
+
this.shiftId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Focus Meeting was Created
|
|
@@ -55,7 +55,7 @@ class ShiftFocusMeetingModel 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
|
* When this Focus Meeting is Scheduled to Begin
|
|
@@ -63,7 +63,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.scheduledTimestamp =
|
|
66
|
+
this.scheduledTimestamp = new Date();
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When this Focus Meeting was Started
|
|
@@ -71,7 +71,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
71
71
|
* @type {?Date}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.startTimestamp =
|
|
74
|
+
this.startTimestamp = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* When this Focus Meeting was Completed
|
|
@@ -79,7 +79,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
79
79
|
* @type {?Date}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.finishTimestamp =
|
|
82
|
+
this.finishTimestamp = null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* An Optional Key Focus until the Next Meeting
|
|
@@ -87,7 +87,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
87
87
|
* @type {?string}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.nextKeyFocus =
|
|
90
|
+
this.nextKeyFocus = null;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* An Optional Rating between 1 and 10 on how Successful the Focus Meeting was
|
|
@@ -95,7 +95,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
95
95
|
* @type {?number}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.successRating =
|
|
98
|
+
this.successRating = null;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Status of this Focus Meeting
|
|
@@ -103,7 +103,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.status =
|
|
106
|
+
this.status = "";
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Whether the Shift Focus Meeting has been deleted
|
|
@@ -111,7 +111,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
111
111
|
* @type {boolean}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.deleted =
|
|
114
|
+
this.deleted = false;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* When the Shift Focus Meeting was last updated
|
|
@@ -119,7 +119,7 @@ class ShiftFocusMeetingModel extends BaseModel
|
|
|
119
119
|
* @type {Date}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.updateTimestamp =
|
|
122
|
+
this.updateTimestamp = new Date();
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The Site ID associated with this Shift Focus Meeting
|