@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
@@ -62,7 +62,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Packing Line ID this Shift is associated with
68
68
  *
@@ -70,7 +70,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * When this Shift was Created
76
76
  *
@@ -78,7 +78,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.createdTimestamp = undefined;
81
+ _this.createdTimestamp = new Date();
82
82
  /**
83
83
  * The Type of Shift
84
84
  *
@@ -86,7 +86,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.type = undefined;
89
+ _this.type = "";
90
90
  /**
91
91
  * The Name of the Line Manager for this Shift
92
92
  *
@@ -94,7 +94,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.lineManagerName = undefined;
97
+ _this.lineManagerName = null;
98
98
  /**
99
99
  * The Target Number of Bins to Tip for this Shift
100
100
  *
@@ -102,7 +102,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.binsTippedTarget = undefined;
105
+ _this.binsTippedTarget = null;
106
106
  /**
107
107
  * *DEPRECATED* The Initial Number of People working in all Areas except Class 2 for this Hour
108
108
  *
@@ -110,7 +110,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.initialClass1Manning = undefined;
113
+ _this.initialClass1Manning = null;
114
114
  /**
115
115
  * *DEPRECATED* The Initial Number of People working in the Class 2 Area for this Hour
116
116
  *
@@ -118,7 +118,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.initialClass2Manning = undefined;
121
+ _this.initialClass2Manning = null;
122
122
  /**
123
123
  * When this Shift was Ready for Packing
124
124
  *
@@ -126,7 +126,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.readyTimestamp = undefined;
129
+ _this.readyTimestamp = null;
130
130
  /**
131
131
  * When this Shift was Started
132
132
  *
@@ -134,7 +134,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.startTimestamp = undefined;
137
+ _this.startTimestamp = null;
138
138
  /**
139
139
  * When this Shift was Finished
140
140
  *
@@ -142,7 +142,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.finishTimestamp = undefined;
145
+ _this.finishTimestamp = null;
146
146
  /**
147
147
  * When this Shift was Published
148
148
  *
@@ -150,7 +150,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.publishTimestamp = undefined;
153
+ _this.publishTimestamp = null;
154
154
  /**
155
155
  * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
156
156
  *
@@ -158,7 +158,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.satisfactionRating = undefined;
161
+ _this.satisfactionRating = null;
162
162
  /**
163
163
  * *DEPRECATED* An Optional Array of Handover Notes for this Shift
164
164
  *
@@ -166,7 +166,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
166
166
  * @public
167
167
  */
168
168
 
169
- _this.handoverNotes = undefined;
169
+ _this.handoverNotes = [];
170
170
  /**
171
171
  * An Optional Array of Notes for this Shift
172
172
  *
@@ -174,7 +174,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
174
174
  * @public
175
175
  */
176
176
 
177
- _this.areaNotes = undefined;
177
+ _this.areaNotes = [];
178
178
  /**
179
179
  * The Schedule for this Shift
180
180
  *
@@ -182,7 +182,13 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
182
182
  * @public
183
183
  */
184
184
 
185
- _this.schedule = undefined;
185
+ _this.schedule = function () {
186
+ var scheduleDefaultValue = {};
187
+ scheduleDefaultValue.startTime = "";
188
+ scheduleDefaultValue.endTime = "";
189
+ scheduleDefaultValue.breaks = [];
190
+ return scheduleDefaultValue;
191
+ }();
186
192
  /**
187
193
  * The Status of this Shift
188
194
  *
@@ -190,7 +196,8 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
190
196
  * @public
191
197
  */
192
198
 
193
- _this.status = undefined;
199
+
200
+ _this.status = "";
194
201
  /**
195
202
  * Whether the Shift has been deleted
196
203
  *
@@ -198,7 +205,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
198
205
  * @public
199
206
  */
200
207
 
201
- _this.deleted = undefined;
208
+ _this.deleted = false;
202
209
  /**
203
210
  * When the Shift was last updated
204
211
  *
@@ -206,7 +213,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
206
213
  * @public
207
214
  */
208
215
 
209
- _this.updateTimestamp = undefined;
216
+ _this.updateTimestamp = new Date();
210
217
  /**
211
218
  * The Site ID associated with this Shift
212
219
  *
@@ -62,7 +62,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Packing Line ID this Quality Summary is associated with
68
68
  *
@@ -70,7 +70,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Shift ID this Quality Summary is asssociated with
76
76
  *
@@ -78,7 +78,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.shiftId = undefined;
81
+ _this.shiftId = "";
82
82
  /**
83
83
  * When this Quality Summary was Created
84
84
  *
@@ -86,7 +86,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * When this Quality Summary was Published
92
92
  *
@@ -94,7 +94,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.publishTimestamp = undefined;
97
+ _this.publishTimestamp = null;
98
98
  /**
99
99
  * The User ID of the Quality Manager for this Summary
100
100
  *
@@ -102,7 +102,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.qualityManagerUserId = undefined;
105
+ _this.qualityManagerUserId = null;
106
106
  /**
107
107
  * The Name of the Quality Manager for this Summary
108
108
  *
@@ -110,7 +110,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.qualityManagerName = undefined;
113
+ _this.qualityManagerName = "";
114
114
  /**
115
115
  * An Array of Accuracy Results for this Summary
116
116
  *
@@ -118,7 +118,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.accuracyResults = undefined;
121
+ _this.accuracyResults = [];
122
122
  /**
123
123
  * An Array of Audit Results for this Summary
124
124
  *
@@ -126,7 +126,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.auditResults = undefined;
129
+ _this.auditResults = [];
130
130
  /**
131
131
  * An Array of Packrun Results for this Summary
132
132
  *
@@ -134,7 +134,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.packrunResults = undefined;
137
+ _this.packrunResults = [];
138
138
  /**
139
139
  * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
140
140
  *
@@ -142,7 +142,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.satisfactionRating = undefined;
145
+ _this.satisfactionRating = null;
146
146
  /**
147
147
  * The Status of this Quality Summary
148
148
  *
@@ -150,7 +150,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.status = undefined;
153
+ _this.status = "";
154
154
  /**
155
155
  * Whether the Shift Quality Summary has been deleted
156
156
  *
@@ -158,7 +158,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.deleted = undefined;
161
+ _this.deleted = false;
162
162
  /**
163
163
  * When the Shift Quality Summary was last updated
164
164
  *
@@ -166,7 +166,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
166
166
  * @public
167
167
  */
168
168
 
169
- _this.updateTimestamp = undefined;
169
+ _this.updateTimestamp = new Date();
170
170
  /**
171
171
  * The Site ID associated with this Shift Quality Summary
172
172
  *
@@ -62,7 +62,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Packing Line ID this Task is associated with
68
68
  *
@@ -70,7 +70,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Shift ID this Task is asssociated with
76
76
  *
@@ -78,7 +78,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.shiftId = undefined;
81
+ _this.shiftId = "";
82
82
  /**
83
83
  * When this Task was Created
84
84
  *
@@ -86,7 +86,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * When this Task was Completed
92
92
  *
@@ -94,7 +94,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.completedTimestamp = undefined;
97
+ _this.completedTimestamp = null;
98
98
  /**
99
99
  * The User ID of the Author for this Task
100
100
  *
@@ -102,7 +102,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.authorUserId = undefined;
105
+ _this.authorUserId = null;
106
106
  /**
107
107
  * The Name of the Author for this Task
108
108
  *
@@ -110,7 +110,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.authorName = undefined;
113
+ _this.authorName = "";
114
114
  /**
115
115
  * The Task Type
116
116
  *
@@ -118,7 +118,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.type = undefined;
121
+ _this.type = "";
122
122
  /**
123
123
  * An Array of Tag IDs for this Task
124
124
  *
@@ -126,7 +126,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.tags = undefined;
129
+ _this.tags = [];
130
130
  /**
131
131
  * The Title of this Task
132
132
  *
@@ -134,7 +134,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.title = undefined;
137
+ _this.title = "";
138
138
  /**
139
139
  * The Content of this Task
140
140
  *
@@ -142,7 +142,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.content = undefined;
145
+ _this.content = "";
146
146
  /**
147
147
  * The Status of this Task
148
148
  *
@@ -150,7 +150,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.status = undefined;
153
+ _this.status = "";
154
154
  /**
155
155
  * Whether the Shift Task has been deleted
156
156
  *
@@ -158,7 +158,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.deleted = undefined;
161
+ _this.deleted = false;
162
162
  /**
163
163
  * When the Shift Task was last updated
164
164
  *
@@ -166,7 +166,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
166
166
  * @public
167
167
  */
168
168
 
169
- _this.updateTimestamp = undefined;
169
+ _this.updateTimestamp = new Date();
170
170
  /**
171
171
  * The Site ID associated with this Shift Task
172
172
  *
@@ -62,7 +62,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Soft Sort Belt belongs to
68
68
  *
@@ -70,7 +70,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Name of this Soft Sort Belt
76
76
  *
@@ -78,7 +78,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Points used by this Soft Sort Belt
84
84
  *
@@ -86,7 +86,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.points = undefined;
89
+ _this.points = {};
90
90
  /**
91
91
  * The Packing Line that owns this Soft Sort Belt
92
92
  *
@@ -94,7 +94,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.packingLineId = undefined;
97
+ _this.packingLineId = "";
98
98
  /**
99
99
  * Whether the Soft Sort Belt has been deleted
100
100
  *
@@ -102,7 +102,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.deleted = undefined;
105
+ _this.deleted = false;
106
106
  /**
107
107
  * When the Soft Sort Belt was last updated
108
108
  *
@@ -110,7 +110,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.updateTimestamp = undefined;
113
+ _this.updateTimestamp = new Date();
114
114
  /**
115
115
  * The Site ID associated with this Soft Sort Belt
116
116
  *
@@ -62,7 +62,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Variety Code
68
68
  *
@@ -70,7 +70,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.code = undefined;
73
+ _this.code = "";
74
74
  /**
75
75
  * The Variety Name
76
76
  *
@@ -78,7 +78,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Variety Description
84
84
  *
@@ -86,7 +86,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.description = undefined;
89
+ _this.description = "";
90
90
  /**
91
91
  * The Variety Image Source
92
92
  *
@@ -94,7 +94,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.image = undefined;
97
+ _this.image = "";
98
98
  /**
99
99
  * An Array of Fruit Sizes Defined for this Variety
100
100
  *
@@ -102,7 +102,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.fruitSizes = undefined;
105
+ _this.fruitSizes = [];
106
106
  /**
107
107
  * Whether the Variety has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the Variety was last updated
116
116
  *
@@ -118,7 +118,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.updateTimestamp = undefined;
121
+ _this.updateTimestamp = new Date();
122
122
  /**
123
123
  * The Site ID associated with this Variety
124
124
  *
@@ -61,7 +61,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = 0;
65
65
  /**
66
66
  * The Site this RTU belongs to
67
67
  *
@@ -69,7 +69,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.siteId = undefined;
72
+ _this.siteId = 0;
73
73
  /**
74
74
  * The RTU Name
75
75
  *
@@ -77,7 +77,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.name = undefined;
80
+ _this.name = "";
81
81
  /**
82
82
  * Whether the RTU is Enabled
83
83
  *
@@ -85,7 +85,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.enabled = undefined;
88
+ _this.enabled = false;
89
89
  /**
90
90
  * Whether the RTU has been deleted
91
91
  *
@@ -93,7 +93,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.deleted = undefined;
96
+ _this.deleted = false;
97
97
  /**
98
98
  * When the RTU was last updated
99
99
  *
@@ -101,7 +101,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
101
101
  * @public
102
102
  */
103
103
 
104
- _this.updateTimestamp = undefined;
104
+ _this.updateTimestamp = new Date();
105
105
  return _this;
106
106
  }
107
107
  /**
@@ -61,7 +61,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = 0;
65
65
  /**
66
66
  * The Plugin Name
67
67
  *
@@ -69,7 +69,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.name = undefined;
72
+ _this.name = "";
73
73
  /**
74
74
  * The Company this RTU Plugin belongs to
75
75
  *
@@ -77,7 +77,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.companyId = undefined;
80
+ _this.companyId = "";
81
81
  /**
82
82
  * Whether the RTU Plugin has been deleted
83
83
  *
@@ -85,7 +85,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.deleted = undefined;
88
+ _this.deleted = false;
89
89
  /**
90
90
  * When the RTU Plugin was last updated
91
91
  *
@@ -93,7 +93,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.updateTimestamp = undefined;
96
+ _this.updateTimestamp = new Date();
97
97
  return _this;
98
98
  }
99
99
  /**
@@ -62,7 +62,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Alarm Group belongs to
68
68
  *
@@ -70,7 +70,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Alarm Group Name
76
76
  *
@@ -78,7 +78,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Boolean Point used to Reset this Alarm Group
84
84
  *
@@ -86,7 +86,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.resetPoint = undefined;
89
+ _this.resetPoint = 0;
90
90
  /**
91
91
  * An Array of Points and the States to be Written when this Alarm Group is Reset
92
92
  *
@@ -94,7 +94,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.externalResetPoints = undefined;
97
+ _this.externalResetPoints = [];
98
98
  /**
99
99
  * Whether the Alarm Group has been deleted
100
100
  *
@@ -102,7 +102,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.deleted = undefined;
105
+ _this.deleted = false;
106
106
  /**
107
107
  * When the Alarm Group was last updated
108
108
  *
@@ -110,7 +110,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.updateTimestamp = undefined;
113
+ _this.updateTimestamp = new Date();
114
114
  /**
115
115
  * The Site ID associated with this Alarm Group
116
116
  *