@ricado/api-client 2.1.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/index.js +12 -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 +367 -0
- 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 +15 -15
- 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 +481 -0
- 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 +583 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
- 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 +204 -38
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- 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 +7 -7
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/Packhouse/Site/index.js +12 -0
- 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 +2473 -348
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/index.js +8 -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 +365 -0
- 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 +15 -15
- 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 +523 -0
- 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 +770 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
- 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 +229 -38
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- 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 +7 -7
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/Packhouse/Site/index.js +8 -0
- 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 BinTipWeightModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Bin Tip ID associated with this Bin Weight
|
|
@@ -39,7 +39,7 @@ class BinTipWeightModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.binTipId =
|
|
42
|
+
this.binTipId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packrun ID associated with this Bin Weight
|
|
@@ -47,7 +47,7 @@ class BinTipWeightModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.packrunId =
|
|
50
|
+
this.packrunId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Bin Weight was Created
|
|
@@ -55,7 +55,7 @@ class BinTipWeightModel 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 Bin Weight Type
|
|
@@ -63,7 +63,7 @@ class BinTipWeightModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.weightType =
|
|
66
|
+
this.weightType = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Bin Weight
|
|
@@ -71,7 +71,7 @@ class BinTipWeightModel extends BaseModel
|
|
|
71
71
|
* @type {number}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.weight =
|
|
74
|
+
this.weight = 0;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Bin Scale ID associated with this Bin Weight
|
|
@@ -79,7 +79,7 @@ class BinTipWeightModel extends BaseModel
|
|
|
79
79
|
* @type {?string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.binScaleId =
|
|
82
|
+
this.binScaleId = null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Whether the Bin Tip Weight has been deleted
|
|
@@ -87,7 +87,7 @@ class BinTipWeightModel 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 Bin Tip Weight was last updated
|
|
@@ -95,7 +95,7 @@ class BinTipWeightModel 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 Bin Tip Weight
|
|
@@ -31,7 +31,7 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Batch is associated with
|
|
@@ -39,7 +39,7 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.compacSizerId =
|
|
42
|
+
this.compacSizerId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Numeric Compac Batch ID
|
|
@@ -47,7 +47,7 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.batchId =
|
|
50
|
+
this.batchId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Batch was Created
|
|
@@ -55,7 +55,7 @@ class CompacSizerBatchModel 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 ID associated with this Batch
|
|
@@ -63,7 +63,7 @@ class CompacSizerBatchModel 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 Compac Sizer Batch Data
|
|
@@ -71,7 +71,7 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
71
71
|
* @type {Object}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.batch =
|
|
74
|
+
this.batch = {}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Compac Sizer Batch has been deleted
|
|
@@ -79,7 +79,7 @@ class CompacSizerBatchModel 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 Compac Sizer Batch was last updated
|
|
@@ -87,7 +87,7 @@ class CompacSizerBatchModel 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 Compac Sizer Batch
|
|
@@ -31,7 +31,7 @@ class CompacSizerModel 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 Compac Sizer belongs to
|
|
@@ -39,7 +39,7 @@ class CompacSizerModel 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 Compac Sizer Name
|
|
@@ -47,7 +47,7 @@ class CompacSizerModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Lanes defined for this Compac Sizer
|
|
@@ -55,7 +55,7 @@ class CompacSizerModel extends BaseModel
|
|
|
55
55
|
* @type {Object[]}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.lanes =
|
|
58
|
+
this.lanes = [];
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Points used by this Compac Sizer
|
|
@@ -63,7 +63,7 @@ class CompacSizerModel extends BaseModel
|
|
|
63
63
|
* @type {Object}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.points =
|
|
66
|
+
this.points = {}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Outlets defined for this Compac Sizer
|
|
@@ -71,7 +71,7 @@ class CompacSizerModel extends BaseModel
|
|
|
71
71
|
* @type {Object[]}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.outlets =
|
|
74
|
+
this.outlets = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Sizer Type
|
|
@@ -79,7 +79,7 @@ class CompacSizerModel extends BaseModel
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.sizerType =
|
|
82
|
+
this.sizerType = "";
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Auto Create Batch Delay in Seconds for this Compac Sizer
|
|
@@ -87,7 +87,7 @@ class CompacSizerModel extends BaseModel
|
|
|
87
87
|
* @type {number}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.autoCreateBatchDelay =
|
|
90
|
+
this.autoCreateBatchDelay = 0;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Fruit Sizes defined and handled by this Compac Sizer
|
|
@@ -95,15 +95,15 @@ class CompacSizerModel extends BaseModel
|
|
|
95
95
|
* @type {Object[]}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.fruitSizes =
|
|
98
|
+
this.fruitSizes = [];
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
* The Packing Line ID this Compac Sizer
|
|
101
|
+
* The Packing Line ID that manages this Compac Sizer
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.packingLineId =
|
|
106
|
+
this.packingLineId = "";
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The FreshPack Integration Configuration for this Compac Sizer
|
|
@@ -111,7 +111,7 @@ class CompacSizerModel extends BaseModel
|
|
|
111
111
|
* @type {?Object}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.freshPackIntegration =
|
|
114
|
+
this.freshPackIntegration = null;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* An Array of Sources that deliver Fruit to this Compac Sizer
|
|
@@ -119,7 +119,7 @@ class CompacSizerModel extends BaseModel
|
|
|
119
119
|
* @type {Object[]}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.sources =
|
|
122
|
+
this.sources = [];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Whether the Compac Sizer has been deleted
|
|
@@ -127,7 +127,7 @@ class CompacSizerModel extends BaseModel
|
|
|
127
127
|
* @type {boolean}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.deleted =
|
|
130
|
+
this.deleted = false;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* When the Compac Sizer was last updated
|
|
@@ -135,7 +135,7 @@ class CompacSizerModel extends BaseModel
|
|
|
135
135
|
* @type {Date}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.updateTimestamp =
|
|
138
|
+
this.updateTimestamp = new Date();
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Site ID associated with this Compac Sizer
|
|
@@ -31,7 +31,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Outlet Change is associated with
|
|
@@ -39,7 +39,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.compacSizerId =
|
|
42
|
+
this.compacSizerId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Sizer Outlet Number this Outlet Change is associated with
|
|
@@ -47,7 +47,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.outletNumber =
|
|
50
|
+
this.outletNumber = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Outlet Change occurred
|
|
@@ -55,7 +55,7 @@ class CompacSizerOutletProductChangeModel 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 ID of the Previous Product that was active on the Outlet
|
|
@@ -63,7 +63,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
63
63
|
* @type {?string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.previousProductId =
|
|
66
|
+
this.previousProductId = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Name of the Previous Product that was active on the Outlet
|
|
@@ -71,7 +71,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
71
71
|
* @type {?string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.previousProductName =
|
|
74
|
+
this.previousProductName = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The ID of the New Product that is now active on the Outlet
|
|
@@ -79,7 +79,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.newProductId =
|
|
82
|
+
this.newProductId = "";
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Name of the New Product that is now active on the Outlet
|
|
@@ -87,7 +87,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.newProductName =
|
|
90
|
+
this.newProductName = "";
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the Compac Sizer Outlet Product Change has been deleted
|
|
@@ -95,7 +95,7 @@ class CompacSizerOutletProductChangeModel 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 Compac Sizer Outlet Product Change was last updated
|
|
@@ -103,7 +103,7 @@ class CompacSizerOutletProductChangeModel 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 Compac Sizer Outlet Product Change
|
|
@@ -31,7 +31,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Outlet Type Change is associated with
|
|
@@ -39,7 +39,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.compacSizerId =
|
|
42
|
+
this.compacSizerId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Sizer Outlet Number this Outlet Type Change is associated with
|
|
@@ -47,7 +47,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.outletNumber =
|
|
50
|
+
this.outletNumber = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Outlet Type Change occurred
|
|
@@ -55,7 +55,7 @@ class CompacSizerOutletTypeChangeModel 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 ID of the Previous Type that was active on the Outlet
|
|
@@ -63,7 +63,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
63
63
|
* @type {?string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.previousTypeId =
|
|
66
|
+
this.previousTypeId = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The ID of the New Type that is now active on the Outlet
|
|
@@ -71,7 +71,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.newTypeId =
|
|
74
|
+
this.newTypeId = "";
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Compac Sizer Outlet Type Change has been deleted
|
|
@@ -79,7 +79,7 @@ class CompacSizerOutletTypeChangeModel 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 Compac Sizer Outlet Type Change was last updated
|
|
@@ -87,7 +87,7 @@ class CompacSizerOutletTypeChangeModel 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 Compac Sizer Outlet Type Change
|
|
@@ -31,7 +31,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Name for this Dynamic Outlet Type
|
|
@@ -39,7 +39,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.name =
|
|
42
|
+
this.name = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Generic Outlet Type
|
|
@@ -47,7 +47,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.type =
|
|
50
|
+
this.type = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* An Optional Description for this Dynamic Outlet Type
|
|
@@ -55,7 +55,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.description =
|
|
58
|
+
this.description = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Whether the Compac Sizer Outlet Type has been deleted
|
|
@@ -63,7 +63,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
63
63
|
* @type {boolean}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.deleted =
|
|
66
|
+
this.deleted = false;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When the Compac Sizer Outlet Type was last updated
|
|
@@ -71,7 +71,7 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
71
71
|
* @type {Date}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.updateTimestamp =
|
|
74
|
+
this.updateTimestamp = new Date();
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Site ID associated with this Compac Sizer Outlet Type
|
|
@@ -31,7 +31,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Summary is associated with
|
|
@@ -39,7 +39,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.compacSizerId =
|
|
42
|
+
this.compacSizerId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packrun ID this Summary is associated with
|
|
@@ -47,7 +47,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.packrunId =
|
|
50
|
+
this.packrunId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Summary was Created
|
|
@@ -55,7 +55,7 @@ class CompacSizerPackrunSummaryModel 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 Time Batch this Summary is associated with
|
|
@@ -63,7 +63,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
63
63
|
* @type {?string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.timeBatchId =
|
|
66
|
+
this.timeBatchId = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* An Array of Packrun Summary Data Objects for each Outlet
|
|
@@ -71,7 +71,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
71
71
|
* @type {Array<{name: string, type: string, number: number, totals: Array<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.outletSummaries =
|
|
74
|
+
this.outletSummaries = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* An Array that contains the Products initially Assigned to each Outlet
|
|
@@ -79,7 +79,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
79
79
|
* @type {Array<{outletNumber: number, productId: string, productName: ?string}>}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.initialOutletProducts =
|
|
82
|
+
this.initialOutletProducts = [];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* An Array of Outlet Product Changes
|
|
@@ -87,7 +87,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
87
87
|
* @type {Array<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.outletProductChanges =
|
|
90
|
+
this.outletProductChanges = [];
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* An Array that contains the Types initially configured for each Outlet
|
|
@@ -95,7 +95,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
95
95
|
* @type {Array<{outletNumber: number, type: string, typeId: ?string}>}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.initialOutletTypes =
|
|
98
|
+
this.initialOutletTypes = [];
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* An Array of Outlet Type Changes. Only applies to Outlets configured as *Dynamic*
|
|
@@ -103,7 +103,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
103
103
|
* @type {Array<{timestamp: Date, outletNumber: number, typeId: ?string}>}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.outletTypeChanges =
|
|
106
|
+
this.outletTypeChanges = [];
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Whether the Compac Sizer Packrun Summary has been deleted
|
|
@@ -111,7 +111,7 @@ class CompacSizerPackrunSummaryModel 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 Compac Sizer Packrun Summary was last updated
|
|
@@ -119,7 +119,7 @@ class CompacSizerPackrunSummaryModel 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 Compac Sizer Packrun Summary
|