@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 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
|
|
@@ -31,7 +31,7 @@ class DowntimeEventModel 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 Downtime Event is associated with
|
|
@@ -39,7 +39,7 @@ class DowntimeEventModel 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 Downtime Event is asssociated with
|
|
@@ -47,7 +47,7 @@ class DowntimeEventModel 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 Downtime Event was Created
|
|
@@ -55,7 +55,7 @@ class DowntimeEventModel 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 Downtime Event Started
|
|
@@ -63,7 +63,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.startTimestamp =
|
|
66
|
+
this.startTimestamp = new Date();
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When this Downtime Event Ended
|
|
@@ -71,7 +71,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
71
71
|
* @type {?Date}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.endTimestamp =
|
|
74
|
+
this.endTimestamp = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Reason Category for this Downtime Event
|
|
@@ -79,7 +79,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
79
79
|
* @type {?string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.reasonCategory =
|
|
82
|
+
this.reasonCategory = null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Reason Tag for this Downtime Event
|
|
@@ -87,7 +87,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
87
87
|
* @type {?string}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.reasonTag =
|
|
90
|
+
this.reasonTag = null;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* An Optional Summary of the Action taken to Remedy this Downtime Event
|
|
@@ -95,7 +95,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
95
95
|
* @type {?string}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.remedyAction =
|
|
98
|
+
this.remedyAction = null;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* An Optional Rating between 1 and 10 on how likely this Downtime Event could have been Avoided
|
|
@@ -103,7 +103,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
103
103
|
* @type {?number}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.avoidableRating =
|
|
106
|
+
this.avoidableRating = null;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Source which Created this Downtime Event
|
|
@@ -111,7 +111,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.source =
|
|
114
|
+
this.source = "";
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Status of this Downtime Event
|
|
@@ -119,7 +119,7 @@ class DowntimeEventModel extends BaseModel
|
|
|
119
119
|
* @type {string}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.status =
|
|
122
|
+
this.status = "";
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Whether the Downtime Event has been deleted
|
|
@@ -127,7 +127,7 @@ class DowntimeEventModel 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 Downtime Event was last updated
|
|
@@ -135,7 +135,7 @@ class DowntimeEventModel 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 Downtime Event
|
|
@@ -31,7 +31,7 @@ class FreshPackPackrunSummaryModel 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 Summary is associated with
|
|
@@ -39,7 +39,7 @@ class FreshPackPackrunSummaryModel 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 ID this Summary is associated with
|
|
@@ -47,7 +47,7 @@ class FreshPackPackrunSummaryModel 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 FreshPackPackrunSummaryModel 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 FreshPackPackrunSummaryModel 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 Tray Summary Data Objects for all Sizes and Class Types
|
|
@@ -71,7 +71,7 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
71
71
|
* @type {Object[]}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.traySummaries =
|
|
74
|
+
this.traySummaries = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the FreshPack Packrun Summary has been deleted
|
|
@@ -79,7 +79,7 @@ class FreshPackPackrunSummaryModel 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 FreshPack Packrun Summary was last updated
|
|
@@ -87,7 +87,7 @@ class FreshPackPackrunSummaryModel 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 FreshPack Packrun Summary
|
|
@@ -31,7 +31,7 @@ class FreshQualityPackrunSummaryModel 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 Summary is associated with
|
|
@@ -39,7 +39,7 @@ class FreshQualityPackrunSummaryModel 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 ID this Summary is associated with
|
|
@@ -47,7 +47,7 @@ class FreshQualityPackrunSummaryModel 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 FreshQualityPackrunSummaryModel 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 FreshQualityPackrunSummaryModel 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 Class 1 R600 Samples
|
|
@@ -71,7 +71,7 @@ class FreshQualityPackrunSummaryModel extends BaseModel
|
|
|
71
71
|
* @type {Array<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array<{name: string, group: string, fruitCount: number}>}>}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.class1R600Samples =
|
|
74
|
+
this.class1R600Samples = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
|
|
@@ -79,7 +79,7 @@ class FreshQualityPackrunSummaryModel extends BaseModel
|
|
|
79
79
|
* @type {Array<{name: string, percentage: number, defects: Array<{name: string, fruitCount: number, percentage: number}>}>}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.categorySummaries =
|
|
82
|
+
this.categorySummaries = [];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Total Number of Fruit Sampled in this Packrun Summary
|
|
@@ -87,7 +87,7 @@ class FreshQualityPackrunSummaryModel extends BaseModel
|
|
|
87
87
|
* @type {number}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.totalFruitSampled =
|
|
90
|
+
this.totalFruitSampled = 0;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the FreshQuality Packrun Summary has been deleted
|
|
@@ -95,7 +95,7 @@ class FreshQualityPackrunSummaryModel 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 FreshQuality Packrun Summary was last updated
|
|
@@ -103,7 +103,7 @@ class FreshQualityPackrunSummaryModel 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 FreshQuality Packrun Summary
|
|
@@ -31,7 +31,7 @@ class GrowingMethodModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Growing Method Code
|
|
@@ -39,7 +39,7 @@ class GrowingMethodModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.code =
|
|
42
|
+
this.code = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Growing Method Name
|
|
@@ -47,7 +47,7 @@ class GrowingMethodModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Growing Method Description
|
|
@@ -55,7 +55,7 @@ class GrowingMethodModel 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 Growing Method has been deleted
|
|
@@ -63,7 +63,7 @@ class GrowingMethodModel 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 Growing Method was last updated
|
|
@@ -71,7 +71,7 @@ class GrowingMethodModel 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 Growing Method
|