@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.
Files changed (98) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/DataItems/PointValueItem.js +3 -3
  3. package/lib/Models/AccountPolicyModel.js +7 -7
  4. package/lib/Models/ApiAccountModel.js +7 -7
  5. package/lib/Models/CompanyModel.js +5 -5
  6. package/lib/Models/FirebaseTokenModel.js +8 -8
  7. package/lib/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  8. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  9. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  10. package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  11. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  12. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  13. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  14. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  15. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  16. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  17. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  18. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  19. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  20. package/lib/Models/Packhouse/Site/PackingLineModel.js +16 -16
  21. package/lib/Models/Packhouse/Site/PackrunModel.js +18 -18
  22. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  23. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  24. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  25. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  26. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  27. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  28. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  29. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  30. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  31. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  32. package/lib/Models/RTUModel.js +6 -6
  33. package/lib/Models/RTUPluginModel.js +5 -5
  34. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  35. package/lib/Models/Site/AlarmModel.js +17 -17
  36. package/lib/Models/Site/DefinitionModel.js +6 -6
  37. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  38. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  39. package/lib/Models/Site/PointModel.js +11 -11
  40. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  41. package/lib/Models/SiteModel.js +6 -6
  42. package/lib/Models/TokenModel.js +10 -10
  43. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  44. package/lib/Models/UserAccountModel.js +10 -10
  45. package/lib/PackageVersion.js +1 -1
  46. package/lib/Points.js +22 -12
  47. package/lib/WebSocketHelper.js +29 -13
  48. package/lib/index.d.ts +361 -361
  49. package/lib/index.js +3 -3
  50. package/package.json +1 -1
  51. package/src/DataItems/PointValueItem.js +3 -3
  52. package/src/Models/AccountPolicyModel.js +7 -7
  53. package/src/Models/ApiAccountModel.js +7 -7
  54. package/src/Models/CompanyModel.js +5 -5
  55. package/src/Models/FirebaseTokenModel.js +8 -8
  56. package/src/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  57. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  58. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  59. package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  60. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  61. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  62. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  63. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  64. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  65. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  66. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  67. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  68. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  69. package/src/Models/Packhouse/Site/PackingLineModel.js +16 -16
  70. package/src/Models/Packhouse/Site/PackrunModel.js +18 -18
  71. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  72. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  73. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  74. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  75. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  76. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  77. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  78. package/src/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  79. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  80. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  81. package/src/Models/RTUModel.js +6 -6
  82. package/src/Models/RTUPluginModel.js +5 -5
  83. package/src/Models/Site/AlarmGroupModel.js +7 -7
  84. package/src/Models/Site/AlarmModel.js +17 -17
  85. package/src/Models/Site/DefinitionModel.js +6 -6
  86. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  87. package/src/Models/Site/PermanentObjectModel.js +7 -7
  88. package/src/Models/Site/PointModel.js +11 -11
  89. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  90. package/src/Models/SiteModel.js +6 -6
  91. package/src/Models/TokenModel.js +10 -10
  92. package/src/Models/UserAccountActionTokenModel.js +11 -11
  93. package/src/Models/UserAccountModel.js +10 -10
  94. package/src/PackageVersion.js +1 -1
  95. package/src/Points.js +24 -12
  96. package/src/WebSocketHelper.js +34 -13
  97. package/src/index.js +3 -3
  98. package/types/tslint.json +2 -1
@@ -31,7 +31,7 @@ class ShiftModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Packing Line ID this Shift is associated with
@@ -39,7 +39,7 @@ class ShiftModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.packingLineId = undefined;
42
+ this.packingLineId = "";
43
43
 
44
44
  /**
45
45
  * When this Shift was Created
@@ -47,7 +47,7 @@ class ShiftModel extends BaseModel
47
47
  * @type {Date}
48
48
  * @public
49
49
  */
50
- this.createdTimestamp = undefined;
50
+ this.createdTimestamp = new Date();
51
51
 
52
52
  /**
53
53
  * The Type of Shift
@@ -55,7 +55,7 @@ class ShiftModel extends BaseModel
55
55
  * @type {string}
56
56
  * @public
57
57
  */
58
- this.type = undefined;
58
+ this.type = "";
59
59
 
60
60
  /**
61
61
  * The Name of the Line Manager for this Shift
@@ -63,7 +63,7 @@ class ShiftModel extends BaseModel
63
63
  * @type {?string}
64
64
  * @public
65
65
  */
66
- this.lineManagerName = undefined;
66
+ this.lineManagerName = null;
67
67
 
68
68
  /**
69
69
  * The Target Number of Bins to Tip for this Shift
@@ -71,7 +71,7 @@ class ShiftModel extends BaseModel
71
71
  * @type {?number}
72
72
  * @public
73
73
  */
74
- this.binsTippedTarget = undefined;
74
+ this.binsTippedTarget = null;
75
75
 
76
76
  /**
77
77
  * *DEPRECATED* The Initial Number of People working in all Areas except Class 2 for this Hour
@@ -79,7 +79,7 @@ class ShiftModel extends BaseModel
79
79
  * @type {?number}
80
80
  * @public
81
81
  */
82
- this.initialClass1Manning = undefined;
82
+ this.initialClass1Manning = null;
83
83
 
84
84
  /**
85
85
  * *DEPRECATED* The Initial Number of People working in the Class 2 Area for this Hour
@@ -87,7 +87,7 @@ class ShiftModel extends BaseModel
87
87
  * @type {?number}
88
88
  * @public
89
89
  */
90
- this.initialClass2Manning = undefined;
90
+ this.initialClass2Manning = null;
91
91
 
92
92
  /**
93
93
  * When this Shift was Ready for Packing
@@ -95,7 +95,7 @@ class ShiftModel extends BaseModel
95
95
  * @type {?Date}
96
96
  * @public
97
97
  */
98
- this.readyTimestamp = undefined;
98
+ this.readyTimestamp = null;
99
99
 
100
100
  /**
101
101
  * When this Shift was Started
@@ -103,7 +103,7 @@ class ShiftModel extends BaseModel
103
103
  * @type {?Date}
104
104
  * @public
105
105
  */
106
- this.startTimestamp = undefined;
106
+ this.startTimestamp = null;
107
107
 
108
108
  /**
109
109
  * When this Shift was Finished
@@ -111,7 +111,7 @@ class ShiftModel extends BaseModel
111
111
  * @type {?Date}
112
112
  * @public
113
113
  */
114
- this.finishTimestamp = undefined;
114
+ this.finishTimestamp = null;
115
115
 
116
116
  /**
117
117
  * When this Shift was Published
@@ -119,7 +119,7 @@ class ShiftModel extends BaseModel
119
119
  * @type {?Date}
120
120
  * @public
121
121
  */
122
- this.publishTimestamp = undefined;
122
+ this.publishTimestamp = null;
123
123
 
124
124
  /**
125
125
  * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
@@ -127,7 +127,7 @@ class ShiftModel extends BaseModel
127
127
  * @type {?number}
128
128
  * @public
129
129
  */
130
- this.satisfactionRating = undefined;
130
+ this.satisfactionRating = null;
131
131
 
132
132
  /**
133
133
  * *DEPRECATED* An Optional Array of Handover Notes for this Shift
@@ -135,7 +135,7 @@ class ShiftModel extends BaseModel
135
135
  * @type {Array<{area: string, noteContent: string}>}
136
136
  * @public
137
137
  */
138
- this.handoverNotes = undefined;
138
+ this.handoverNotes = [];
139
139
 
140
140
  /**
141
141
  * An Optional Array of Notes for this Shift
@@ -143,7 +143,7 @@ class ShiftModel extends BaseModel
143
143
  * @type {Array<{area: string, timestamp: Date, content: string}>}
144
144
  * @public
145
145
  */
146
- this.areaNotes = undefined;
146
+ this.areaNotes = [];
147
147
 
148
148
  /**
149
149
  * The Schedule for this Shift
@@ -151,7 +151,17 @@ class ShiftModel extends BaseModel
151
151
  * @type {{startTime: string, endTime: string, breaks: Array<{startTime: string, endTime: string}>}}
152
152
  * @public
153
153
  */
154
- this.schedule = undefined;
154
+ this.schedule = (function(){
155
+ let scheduleDefaultValue = {};
156
+
157
+ scheduleDefaultValue.startTime = "";
158
+
159
+ scheduleDefaultValue.endTime = "";
160
+
161
+ scheduleDefaultValue.breaks = [];
162
+
163
+ return scheduleDefaultValue;
164
+ }());
155
165
 
156
166
  /**
157
167
  * The Status of this Shift
@@ -159,7 +169,7 @@ class ShiftModel extends BaseModel
159
169
  * @type {string}
160
170
  * @public
161
171
  */
162
- this.status = undefined;
172
+ this.status = "";
163
173
 
164
174
  /**
165
175
  * Whether the Shift has been deleted
@@ -167,7 +177,7 @@ class ShiftModel extends BaseModel
167
177
  * @type {boolean}
168
178
  * @public
169
179
  */
170
- this.deleted = undefined;
180
+ this.deleted = false;
171
181
 
172
182
  /**
173
183
  * When the Shift was last updated
@@ -175,7 +185,7 @@ class ShiftModel extends BaseModel
175
185
  * @type {Date}
176
186
  * @public
177
187
  */
178
- this.updateTimestamp = undefined;
188
+ this.updateTimestamp = new Date();
179
189
 
180
190
  /**
181
191
  * The Site ID associated with this Shift
@@ -31,7 +31,7 @@ class ShiftQualitySummaryModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Packing Line ID this Quality Summary is associated with
@@ -39,7 +39,7 @@ class ShiftQualitySummaryModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.packingLineId = undefined;
42
+ this.packingLineId = "";
43
43
 
44
44
  /**
45
45
  * The Shift ID this Quality Summary is asssociated with
@@ -47,7 +47,7 @@ class ShiftQualitySummaryModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.shiftId = undefined;
50
+ this.shiftId = "";
51
51
 
52
52
  /**
53
53
  * When this Quality Summary was Created
@@ -55,7 +55,7 @@ class ShiftQualitySummaryModel extends BaseModel
55
55
  * @type {Date}
56
56
  * @public
57
57
  */
58
- this.createdTimestamp = undefined;
58
+ this.createdTimestamp = new Date();
59
59
 
60
60
  /**
61
61
  * When this Quality Summary was Published
@@ -63,7 +63,7 @@ class ShiftQualitySummaryModel extends BaseModel
63
63
  * @type {?Date}
64
64
  * @public
65
65
  */
66
- this.publishTimestamp = undefined;
66
+ this.publishTimestamp = null;
67
67
 
68
68
  /**
69
69
  * The User ID of the Quality Manager for this Summary
@@ -71,7 +71,7 @@ class ShiftQualitySummaryModel extends BaseModel
71
71
  * @type {?string}
72
72
  * @public
73
73
  */
74
- this.qualityManagerUserId = undefined;
74
+ this.qualityManagerUserId = null;
75
75
 
76
76
  /**
77
77
  * The Name of the Quality Manager for this Summary
@@ -79,7 +79,7 @@ class ShiftQualitySummaryModel extends BaseModel
79
79
  * @type {string}
80
80
  * @public
81
81
  */
82
- this.qualityManagerName = undefined;
82
+ this.qualityManagerName = "";
83
83
 
84
84
  /**
85
85
  * An Array of Accuracy Results for this Summary
@@ -87,7 +87,7 @@ class ShiftQualitySummaryModel extends BaseModel
87
87
  * @type {Array<{type: string, value: number}>}
88
88
  * @public
89
89
  */
90
- this.accuracyResults = undefined;
90
+ this.accuracyResults = [];
91
91
 
92
92
  /**
93
93
  * An Array of Audit Results for this Summary
@@ -95,7 +95,7 @@ class ShiftQualitySummaryModel extends BaseModel
95
95
  * @type {Array<{type: string, value: number}>}
96
96
  * @public
97
97
  */
98
- this.auditResults = undefined;
98
+ this.auditResults = [];
99
99
 
100
100
  /**
101
101
  * An Array of Packrun Results for this Summary
@@ -103,7 +103,7 @@ class ShiftQualitySummaryModel extends BaseModel
103
103
  * @type {Array<{packrunId: string, packrunName: string, minorPackingDefects: number, majorPackingDefects: number, softs: number, cuts: number, rots: number, softsLineAverageSampleSize: ?number, softsLineAverageValue: ?number, exportFruitInClass2: ?number, exportFruitInLocalMarket: ?number, exportFruitInWaste: ?number}>}
104
104
  * @public
105
105
  */
106
- this.packrunResults = undefined;
106
+ this.packrunResults = [];
107
107
 
108
108
  /**
109
109
  * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
@@ -111,7 +111,7 @@ class ShiftQualitySummaryModel extends BaseModel
111
111
  * @type {?number}
112
112
  * @public
113
113
  */
114
- this.satisfactionRating = undefined;
114
+ this.satisfactionRating = null;
115
115
 
116
116
  /**
117
117
  * The Status of this Quality Summary
@@ -119,7 +119,7 @@ class ShiftQualitySummaryModel extends BaseModel
119
119
  * @type {string}
120
120
  * @public
121
121
  */
122
- this.status = undefined;
122
+ this.status = "";
123
123
 
124
124
  /**
125
125
  * Whether the Shift Quality Summary has been deleted
@@ -127,7 +127,7 @@ class ShiftQualitySummaryModel extends BaseModel
127
127
  * @type {boolean}
128
128
  * @public
129
129
  */
130
- this.deleted = undefined;
130
+ this.deleted = false;
131
131
 
132
132
  /**
133
133
  * When the Shift Quality Summary was last updated
@@ -135,7 +135,7 @@ class ShiftQualitySummaryModel extends BaseModel
135
135
  * @type {Date}
136
136
  * @public
137
137
  */
138
- this.updateTimestamp = undefined;
138
+ this.updateTimestamp = new Date();
139
139
 
140
140
  /**
141
141
  * The Site ID associated with this Shift Quality Summary
@@ -31,7 +31,7 @@ class ShiftTaskModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Packing Line ID this Task is associated with
@@ -39,7 +39,7 @@ class ShiftTaskModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.packingLineId = undefined;
42
+ this.packingLineId = "";
43
43
 
44
44
  /**
45
45
  * The Shift ID this Task is asssociated with
@@ -47,7 +47,7 @@ class ShiftTaskModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.shiftId = undefined;
50
+ this.shiftId = "";
51
51
 
52
52
  /**
53
53
  * When this Task was Created
@@ -55,7 +55,7 @@ class ShiftTaskModel extends BaseModel
55
55
  * @type {Date}
56
56
  * @public
57
57
  */
58
- this.createdTimestamp = undefined;
58
+ this.createdTimestamp = new Date();
59
59
 
60
60
  /**
61
61
  * When this Task was Completed
@@ -63,7 +63,7 @@ class ShiftTaskModel extends BaseModel
63
63
  * @type {?Date}
64
64
  * @public
65
65
  */
66
- this.completedTimestamp = undefined;
66
+ this.completedTimestamp = null;
67
67
 
68
68
  /**
69
69
  * The User ID of the Author for this Task
@@ -71,7 +71,7 @@ class ShiftTaskModel extends BaseModel
71
71
  * @type {?string}
72
72
  * @public
73
73
  */
74
- this.authorUserId = undefined;
74
+ this.authorUserId = null;
75
75
 
76
76
  /**
77
77
  * The Name of the Author for this Task
@@ -79,7 +79,7 @@ class ShiftTaskModel extends BaseModel
79
79
  * @type {string}
80
80
  * @public
81
81
  */
82
- this.authorName = undefined;
82
+ this.authorName = "";
83
83
 
84
84
  /**
85
85
  * The Task Type
@@ -87,7 +87,7 @@ class ShiftTaskModel extends BaseModel
87
87
  * @type {string}
88
88
  * @public
89
89
  */
90
- this.type = undefined;
90
+ this.type = "";
91
91
 
92
92
  /**
93
93
  * An Array of Tag IDs for this Task
@@ -95,7 +95,7 @@ class ShiftTaskModel extends BaseModel
95
95
  * @type {string[]}
96
96
  * @public
97
97
  */
98
- this.tags = undefined;
98
+ this.tags = [];
99
99
 
100
100
  /**
101
101
  * The Title of this Task
@@ -103,7 +103,7 @@ class ShiftTaskModel extends BaseModel
103
103
  * @type {string}
104
104
  * @public
105
105
  */
106
- this.title = undefined;
106
+ this.title = "";
107
107
 
108
108
  /**
109
109
  * The Content of this Task
@@ -111,7 +111,7 @@ class ShiftTaskModel extends BaseModel
111
111
  * @type {string}
112
112
  * @public
113
113
  */
114
- this.content = undefined;
114
+ this.content = "";
115
115
 
116
116
  /**
117
117
  * The Status of this Task
@@ -119,7 +119,7 @@ class ShiftTaskModel extends BaseModel
119
119
  * @type {string}
120
120
  * @public
121
121
  */
122
- this.status = undefined;
122
+ this.status = "";
123
123
 
124
124
  /**
125
125
  * Whether the Shift Task has been deleted
@@ -127,7 +127,7 @@ class ShiftTaskModel extends BaseModel
127
127
  * @type {boolean}
128
128
  * @public
129
129
  */
130
- this.deleted = undefined;
130
+ this.deleted = false;
131
131
 
132
132
  /**
133
133
  * When the Shift Task was last updated
@@ -135,7 +135,7 @@ class ShiftTaskModel extends BaseModel
135
135
  * @type {Date}
136
136
  * @public
137
137
  */
138
- this.updateTimestamp = undefined;
138
+ this.updateTimestamp = new Date();
139
139
 
140
140
  /**
141
141
  * The Site ID associated with this Shift Task
@@ -31,7 +31,7 @@ class SoftSortBeltModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The RTU this Soft Sort Belt belongs to
@@ -39,7 +39,7 @@ class SoftSortBeltModel extends BaseModel
39
39
  * @type {?number}
40
40
  * @public
41
41
  */
42
- this.rtuId = undefined;
42
+ this.rtuId = null;
43
43
 
44
44
  /**
45
45
  * The Name of this Soft Sort Belt
@@ -47,7 +47,7 @@ class SoftSortBeltModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.name = undefined;
50
+ this.name = "";
51
51
 
52
52
  /**
53
53
  * The Points used by this Soft Sort Belt
@@ -55,7 +55,7 @@ class SoftSortBeltModel extends BaseModel
55
55
  * @type {Object}
56
56
  * @public
57
57
  */
58
- this.points = undefined;
58
+ this.points = {}
59
59
 
60
60
  /**
61
61
  * The Packing Line that owns this Soft Sort Belt
@@ -63,7 +63,7 @@ class SoftSortBeltModel extends BaseModel
63
63
  * @type {string}
64
64
  * @public
65
65
  */
66
- this.packingLineId = undefined;
66
+ this.packingLineId = "";
67
67
 
68
68
  /**
69
69
  * Whether the Soft Sort Belt has been deleted
@@ -71,7 +71,7 @@ class SoftSortBeltModel extends BaseModel
71
71
  * @type {boolean}
72
72
  * @public
73
73
  */
74
- this.deleted = undefined;
74
+ this.deleted = false;
75
75
 
76
76
  /**
77
77
  * When the Soft Sort Belt was last updated
@@ -79,7 +79,7 @@ class SoftSortBeltModel extends BaseModel
79
79
  * @type {Date}
80
80
  * @public
81
81
  */
82
- this.updateTimestamp = undefined;
82
+ this.updateTimestamp = new Date();
83
83
 
84
84
  /**
85
85
  * The Site ID associated with this Soft Sort Belt
@@ -31,7 +31,7 @@ class VarietyModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Variety Code
@@ -39,7 +39,7 @@ class VarietyModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.code = undefined;
42
+ this.code = "";
43
43
 
44
44
  /**
45
45
  * The Variety Name
@@ -47,7 +47,7 @@ class VarietyModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.name = undefined;
50
+ this.name = "";
51
51
 
52
52
  /**
53
53
  * The Variety Description
@@ -55,7 +55,7 @@ class VarietyModel extends BaseModel
55
55
  * @type {string}
56
56
  * @public
57
57
  */
58
- this.description = undefined;
58
+ this.description = "";
59
59
 
60
60
  /**
61
61
  * The Variety Image Source
@@ -63,7 +63,7 @@ class VarietyModel extends BaseModel
63
63
  * @type {string}
64
64
  * @public
65
65
  */
66
- this.image = undefined;
66
+ this.image = "";
67
67
 
68
68
  /**
69
69
  * An Array of Fruit Sizes Defined for this Variety
@@ -71,7 +71,7 @@ class VarietyModel extends BaseModel
71
71
  * @type {Array<{size: string}>}
72
72
  * @public
73
73
  */
74
- this.fruitSizes = undefined;
74
+ this.fruitSizes = [];
75
75
 
76
76
  /**
77
77
  * Whether the Variety has been deleted
@@ -79,7 +79,7 @@ class VarietyModel extends BaseModel
79
79
  * @type {boolean}
80
80
  * @public
81
81
  */
82
- this.deleted = undefined;
82
+ this.deleted = false;
83
83
 
84
84
  /**
85
85
  * When the Variety was last updated
@@ -87,7 +87,7 @@ class VarietyModel extends BaseModel
87
87
  * @type {Date}
88
88
  * @public
89
89
  */
90
- this.updateTimestamp = undefined;
90
+ this.updateTimestamp = new Date();
91
91
 
92
92
  /**
93
93
  * The Site ID associated with this Variety
@@ -30,7 +30,7 @@ class RTUModel extends BaseModel
30
30
  * @type {number}
31
31
  * @public
32
32
  */
33
- this.id = undefined;
33
+ this.id = 0;
34
34
 
35
35
  /**
36
36
  * The Site this RTU belongs to
@@ -38,7 +38,7 @@ class RTUModel extends BaseModel
38
38
  * @type {number}
39
39
  * @public
40
40
  */
41
- this.siteId = undefined;
41
+ this.siteId = 0;
42
42
 
43
43
  /**
44
44
  * The RTU Name
@@ -46,7 +46,7 @@ class RTUModel extends BaseModel
46
46
  * @type {string}
47
47
  * @public
48
48
  */
49
- this.name = undefined;
49
+ this.name = "";
50
50
 
51
51
  /**
52
52
  * Whether the RTU is Enabled
@@ -54,7 +54,7 @@ class RTUModel extends BaseModel
54
54
  * @type {boolean}
55
55
  * @public
56
56
  */
57
- this.enabled = undefined;
57
+ this.enabled = false;
58
58
 
59
59
  /**
60
60
  * Whether the RTU has been deleted
@@ -62,7 +62,7 @@ class RTUModel extends BaseModel
62
62
  * @type {boolean}
63
63
  * @public
64
64
  */
65
- this.deleted = undefined;
65
+ this.deleted = false;
66
66
 
67
67
  /**
68
68
  * When the RTU was last updated
@@ -70,7 +70,7 @@ class RTUModel extends BaseModel
70
70
  * @type {Date}
71
71
  * @public
72
72
  */
73
- this.updateTimestamp = undefined;
73
+ this.updateTimestamp = new Date();
74
74
  }
75
75
 
76
76
  /**
@@ -30,7 +30,7 @@ class RTUPluginModel extends BaseModel
30
30
  * @type {number}
31
31
  * @public
32
32
  */
33
- this.id = undefined;
33
+ this.id = 0;
34
34
 
35
35
  /**
36
36
  * The Plugin Name
@@ -38,7 +38,7 @@ class RTUPluginModel extends BaseModel
38
38
  * @type {string}
39
39
  * @public
40
40
  */
41
- this.name = undefined;
41
+ this.name = "";
42
42
 
43
43
  /**
44
44
  * The Company this RTU Plugin belongs to
@@ -46,7 +46,7 @@ class RTUPluginModel extends BaseModel
46
46
  * @type {string}
47
47
  * @public
48
48
  */
49
- this.companyId = undefined;
49
+ this.companyId = "";
50
50
 
51
51
  /**
52
52
  * Whether the RTU Plugin has been deleted
@@ -54,7 +54,7 @@ class RTUPluginModel extends BaseModel
54
54
  * @type {boolean}
55
55
  * @public
56
56
  */
57
- this.deleted = undefined;
57
+ this.deleted = false;
58
58
 
59
59
  /**
60
60
  * When the RTU Plugin was last updated
@@ -62,7 +62,7 @@ class RTUPluginModel extends BaseModel
62
62
  * @type {Date}
63
63
  * @public
64
64
  */
65
- this.updateTimestamp = undefined;
65
+ this.updateTimestamp = new Date();
66
66
  }
67
67
 
68
68
  /**