@ricado/api-client 2.2.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +267 -0
  3. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +267 -0
  4. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +267 -0
  5. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +267 -0
  6. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +267 -0
  7. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +267 -0
  8. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +267 -0
  9. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +267 -0
  10. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +267 -0
  11. package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -0
  12. package/lib/Controllers/Packhouse/Site/PackrunController.js +267 -0
  13. package/lib/Controllers/Packhouse/Site/RejectBinController.js +267 -0
  14. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +267 -0
  15. package/lib/Controllers/Packhouse/Site/ShiftController.js +267 -0
  16. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +267 -0
  17. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +267 -0
  18. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +267 -0
  19. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +267 -0
  20. package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
  21. package/lib/DataItems/PointValueItem.js +3 -3
  22. package/lib/Models/AccountPolicyModel.js +7 -7
  23. package/lib/Models/ApiAccountModel.js +7 -7
  24. package/lib/Models/CompanyModel.js +5 -5
  25. package/lib/Models/FirebaseTokenModel.js +8 -8
  26. package/lib/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  27. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  28. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  30. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  31. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  32. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  33. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  34. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  35. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  36. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  37. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  38. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  39. package/lib/Models/Packhouse/Site/PackingLineModel.js +60 -16
  40. package/lib/Models/Packhouse/Site/PackrunModel.js +18 -18
  41. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  42. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  43. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  44. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  45. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  46. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  47. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  48. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  49. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  50. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  51. package/lib/Models/RTUModel.js +6 -6
  52. package/lib/Models/RTUPluginModel.js +5 -5
  53. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  54. package/lib/Models/Site/AlarmModel.js +17 -17
  55. package/lib/Models/Site/DefinitionModel.js +6 -6
  56. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  57. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  58. package/lib/Models/Site/PointModel.js +11 -11
  59. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  60. package/lib/Models/SiteModel.js +6 -6
  61. package/lib/Models/TokenModel.js +10 -10
  62. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  63. package/lib/Models/UserAccountModel.js +10 -10
  64. package/lib/PackageVersion.js +1 -1
  65. package/lib/Points.js +22 -12
  66. package/lib/WebSocketHelper.js +29 -13
  67. package/lib/index.d.ts +715 -361
  68. package/lib/index.js +3 -3
  69. package/package.json +1 -1
  70. package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
  71. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
  72. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
  73. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
  74. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
  75. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
  76. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
  77. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
  78. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
  79. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -0
  80. package/src/Controllers/Packhouse/Site/PackrunController.js +355 -0
  81. package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
  82. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
  83. package/src/Controllers/Packhouse/Site/ShiftController.js +355 -0
  84. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
  85. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
  86. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
  87. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +355 -0
  88. package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
  89. package/src/DataItems/PointValueItem.js +3 -3
  90. package/src/Models/AccountPolicyModel.js +7 -7
  91. package/src/Models/ApiAccountModel.js +7 -7
  92. package/src/Models/CompanyModel.js +5 -5
  93. package/src/Models/FirebaseTokenModel.js +8 -8
  94. package/src/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  95. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  96. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  97. package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  98. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  99. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  100. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  101. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  102. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  103. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  104. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  105. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  106. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  107. package/src/Models/Packhouse/Site/PackingLineModel.js +66 -16
  108. package/src/Models/Packhouse/Site/PackrunModel.js +18 -18
  109. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  110. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  111. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  112. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  113. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  114. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  115. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  116. package/src/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  117. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  118. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  119. package/src/Models/RTUModel.js +6 -6
  120. package/src/Models/RTUPluginModel.js +5 -5
  121. package/src/Models/Site/AlarmGroupModel.js +7 -7
  122. package/src/Models/Site/AlarmModel.js +17 -17
  123. package/src/Models/Site/DefinitionModel.js +6 -6
  124. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  125. package/src/Models/Site/PermanentObjectModel.js +7 -7
  126. package/src/Models/Site/PointModel.js +11 -11
  127. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  128. package/src/Models/SiteModel.js +6 -6
  129. package/src/Models/TokenModel.js +10 -10
  130. package/src/Models/UserAccountActionTokenModel.js +11 -11
  131. package/src/Models/UserAccountModel.js +10 -10
  132. package/src/PackageVersion.js +1 -1
  133. package/src/Points.js +24 -12
  134. package/src/WebSocketHelper.js +34 -13
  135. package/src/index.js +3 -3
  136. package/types/tslint.json +2 -1
@@ -62,7 +62,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Compac Sizer ID this Outlet Type Change is associated with
68
68
  *
@@ -70,7 +70,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.compacSizerId = undefined;
73
+ _this.compacSizerId = "";
74
74
  /**
75
75
  * The Sizer Outlet Number this Outlet Type Change is associated with
76
76
  *
@@ -78,7 +78,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.outletNumber = undefined;
81
+ _this.outletNumber = "";
82
82
  /**
83
83
  * When this Outlet Type Change occurred
84
84
  *
@@ -86,7 +86,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The ID of the Previous Type that was active on the Outlet
92
92
  *
@@ -94,7 +94,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.previousTypeId = undefined;
97
+ _this.previousTypeId = null;
98
98
  /**
99
99
  * The ID of the New Type that is now active on the Outlet
100
100
  *
@@ -102,7 +102,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.newTypeId = undefined;
105
+ _this.newTypeId = "";
106
106
  /**
107
107
  * Whether the Compac Sizer Outlet Type Change has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var CompacSizerOutletTypeChangeModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the Compac Sizer Outlet Type Change was last updated
116
116
  *
@@ -118,7 +118,7 @@ var CompacSizerOutletTypeChangeModel = /*#__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 Compac Sizer Outlet Type Change
124
124
  *
@@ -62,7 +62,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Name for this Dynamic Outlet Type
68
68
  *
@@ -70,7 +70,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.name = undefined;
73
+ _this.name = "";
74
74
  /**
75
75
  * The Generic Outlet Type
76
76
  *
@@ -78,7 +78,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.type = undefined;
81
+ _this.type = "";
82
82
  /**
83
83
  * An Optional Description for this Dynamic Outlet Type
84
84
  *
@@ -86,7 +86,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.description = undefined;
89
+ _this.description = "";
90
90
  /**
91
91
  * Whether the Compac Sizer Outlet Type has been deleted
92
92
  *
@@ -94,7 +94,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.deleted = undefined;
97
+ _this.deleted = false;
98
98
  /**
99
99
  * When the Compac Sizer Outlet Type was last updated
100
100
  *
@@ -102,7 +102,7 @@ var CompacSizerOutletTypeModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.updateTimestamp = undefined;
105
+ _this.updateTimestamp = new Date();
106
106
  /**
107
107
  * The Site ID associated with this Compac Sizer Outlet Type
108
108
  *
@@ -62,7 +62,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Compac Sizer ID this Summary is associated with
68
68
  *
@@ -70,7 +70,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.compacSizerId = undefined;
73
+ _this.compacSizerId = "";
74
74
  /**
75
75
  * The Packrun ID this Summary is associated with
76
76
  *
@@ -78,7 +78,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.packrunId = undefined;
81
+ _this.packrunId = "";
82
82
  /**
83
83
  * When this Summary was Created
84
84
  *
@@ -86,7 +86,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The Time Batch this Summary is associated with
92
92
  *
@@ -94,7 +94,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.timeBatchId = undefined;
97
+ _this.timeBatchId = null;
98
98
  /**
99
99
  * An Array of Packrun Summary Data Objects for each Outlet
100
100
  *
@@ -102,7 +102,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.outletSummaries = undefined;
105
+ _this.outletSummaries = [];
106
106
  /**
107
107
  * An Array that contains the Products initially Assigned to each Outlet
108
108
  *
@@ -110,7 +110,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.initialOutletProducts = undefined;
113
+ _this.initialOutletProducts = [];
114
114
  /**
115
115
  * An Array of Outlet Product Changes
116
116
  *
@@ -118,7 +118,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.outletProductChanges = undefined;
121
+ _this.outletProductChanges = [];
122
122
  /**
123
123
  * An Array that contains the Types initially configured for each Outlet
124
124
  *
@@ -126,7 +126,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.initialOutletTypes = undefined;
129
+ _this.initialOutletTypes = [];
130
130
  /**
131
131
  * An Array of Outlet Type Changes. Only applies to Outlets configured as *Dynamic*
132
132
  *
@@ -134,7 +134,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.outletTypeChanges = undefined;
137
+ _this.outletTypeChanges = [];
138
138
  /**
139
139
  * Whether the Compac Sizer Packrun Summary has been deleted
140
140
  *
@@ -142,7 +142,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.deleted = undefined;
145
+ _this.deleted = false;
146
146
  /**
147
147
  * When the Compac Sizer Packrun Summary was last updated
148
148
  *
@@ -150,7 +150,7 @@ var CompacSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.updateTimestamp = undefined;
153
+ _this.updateTimestamp = new Date();
154
154
  /**
155
155
  * The Site ID associated with this Compac Sizer Packrun Summary
156
156
  *
@@ -62,7 +62,7 @@ var DowntimeEventModel = /*#__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 Downtime Event is associated with
68
68
  *
@@ -70,7 +70,7 @@ var DowntimeEventModel = /*#__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 Downtime Event is asssociated with
76
76
  *
@@ -78,7 +78,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.shiftId = undefined;
81
+ _this.shiftId = "";
82
82
  /**
83
83
  * When this Downtime Event was Created
84
84
  *
@@ -86,7 +86,7 @@ var DowntimeEventModel = /*#__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 Downtime Event Started
92
92
  *
@@ -94,7 +94,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.startTimestamp = undefined;
97
+ _this.startTimestamp = new Date();
98
98
  /**
99
99
  * When this Downtime Event Ended
100
100
  *
@@ -102,7 +102,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.endTimestamp = undefined;
105
+ _this.endTimestamp = null;
106
106
  /**
107
107
  * The Reason Category for this Downtime Event
108
108
  *
@@ -110,7 +110,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.reasonCategory = undefined;
113
+ _this.reasonCategory = null;
114
114
  /**
115
115
  * The Reason Tag for this Downtime Event
116
116
  *
@@ -118,7 +118,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.reasonTag = undefined;
121
+ _this.reasonTag = null;
122
122
  /**
123
123
  * An Optional Summary of the Action taken to Remedy this Downtime Event
124
124
  *
@@ -126,7 +126,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.remedyAction = undefined;
129
+ _this.remedyAction = null;
130
130
  /**
131
131
  * An Optional Rating between 1 and 10 on how likely this Downtime Event could have been Avoided
132
132
  *
@@ -134,7 +134,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.avoidableRating = undefined;
137
+ _this.avoidableRating = null;
138
138
  /**
139
139
  * The Source which Created this Downtime Event
140
140
  *
@@ -142,7 +142,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.source = undefined;
145
+ _this.source = "";
146
146
  /**
147
147
  * The Status of this Downtime Event
148
148
  *
@@ -150,7 +150,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.status = undefined;
153
+ _this.status = "";
154
154
  /**
155
155
  * Whether the Downtime Event has been deleted
156
156
  *
@@ -158,7 +158,7 @@ var DowntimeEventModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.deleted = undefined;
161
+ _this.deleted = false;
162
162
  /**
163
163
  * When the Downtime Event was last updated
164
164
  *
@@ -166,7 +166,7 @@ var DowntimeEventModel = /*#__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 Downtime Event
172
172
  *
@@ -62,7 +62,7 @@ var FreshPackPackrunSummaryModel = /*#__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 Summary is associated with
68
68
  *
@@ -70,7 +70,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Packrun ID this Summary is associated with
76
76
  *
@@ -78,7 +78,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.packrunId = undefined;
81
+ _this.packrunId = "";
82
82
  /**
83
83
  * When this Summary was Created
84
84
  *
@@ -86,7 +86,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The Time Batch this Summary is associated with
92
92
  *
@@ -94,7 +94,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.timeBatchId = undefined;
97
+ _this.timeBatchId = null;
98
98
  /**
99
99
  * An Array of Tray Summary Data Objects for all Sizes and Class Types
100
100
  *
@@ -102,7 +102,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.traySummaries = undefined;
105
+ _this.traySummaries = [];
106
106
  /**
107
107
  * Whether the FreshPack Packrun Summary has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the FreshPack Packrun Summary was last updated
116
116
  *
@@ -118,7 +118,7 @@ var FreshPackPackrunSummaryModel = /*#__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 FreshPack Packrun Summary
124
124
  *
@@ -62,7 +62,7 @@ var FreshQualityPackrunSummaryModel = /*#__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 Summary is associated with
68
68
  *
@@ -70,7 +70,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.packingLineId = undefined;
73
+ _this.packingLineId = "";
74
74
  /**
75
75
  * The Packrun ID this Summary is associated with
76
76
  *
@@ -78,7 +78,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.packrunId = undefined;
81
+ _this.packrunId = "";
82
82
  /**
83
83
  * When this Summary was Created
84
84
  *
@@ -86,7 +86,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.createdTimestamp = undefined;
89
+ _this.createdTimestamp = new Date();
90
90
  /**
91
91
  * The Time Batch this Summary is associated with
92
92
  *
@@ -94,7 +94,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.timeBatchId = undefined;
97
+ _this.timeBatchId = null;
98
98
  /**
99
99
  * An Array of Class 1 R600 Samples
100
100
  *
@@ -102,7 +102,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.class1R600Samples = undefined;
105
+ _this.class1R600Samples = [];
106
106
  /**
107
107
  * An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
108
108
  *
@@ -110,7 +110,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.categorySummaries = undefined;
113
+ _this.categorySummaries = [];
114
114
  /**
115
115
  * The Total Number of Fruit Sampled in this Packrun Summary
116
116
  *
@@ -118,7 +118,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.totalFruitSampled = undefined;
121
+ _this.totalFruitSampled = 0;
122
122
  /**
123
123
  * Whether the FreshQuality Packrun Summary has been deleted
124
124
  *
@@ -126,7 +126,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.deleted = undefined;
129
+ _this.deleted = false;
130
130
  /**
131
131
  * When the FreshQuality Packrun Summary was last updated
132
132
  *
@@ -134,7 +134,7 @@ var FreshQualityPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.updateTimestamp = undefined;
137
+ _this.updateTimestamp = new Date();
138
138
  /**
139
139
  * The Site ID associated with this FreshQuality Packrun Summary
140
140
  *
@@ -62,7 +62,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Growing Method Code
68
68
  *
@@ -70,7 +70,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.code = undefined;
73
+ _this.code = "";
74
74
  /**
75
75
  * The Growing Method Name
76
76
  *
@@ -78,7 +78,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Growing Method Description
84
84
  *
@@ -86,7 +86,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.description = undefined;
89
+ _this.description = "";
90
90
  /**
91
91
  * Whether the Growing Method has been deleted
92
92
  *
@@ -94,7 +94,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.deleted = undefined;
97
+ _this.deleted = false;
98
98
  /**
99
99
  * When the Growing Method was last updated
100
100
  *
@@ -102,7 +102,7 @@ var GrowingMethodModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.updateTimestamp = undefined;
105
+ _this.updateTimestamp = new Date();
106
106
  /**
107
107
  * The Site ID associated with this Growing Method
108
108
  *
@@ -62,7 +62,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Code for this Pack Type
68
68
  *
@@ -70,7 +70,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.code = undefined;
73
+ _this.code = "";
74
74
  /**
75
75
  * The Name for this Pack Type
76
76
  *
@@ -78,7 +78,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * An Optional Description for this Pack Type
84
84
  *
@@ -86,7 +86,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.description = undefined;
89
+ _this.description = "";
90
90
  /**
91
91
  * The Physical Form of this Pack Type
92
92
  *
@@ -94,7 +94,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.form = undefined;
97
+ _this.form = "";
98
98
  /**
99
99
  * An Array of Fruit Sizes Defined for this Pack Type
100
100
  *
@@ -102,7 +102,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.fruitSizes = undefined;
105
+ _this.fruitSizes = [];
106
106
  /**
107
107
  * Whether the Pack Type has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var PackTypeModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the Pack Type was last updated
116
116
  *
@@ -118,7 +118,7 @@ var PackTypeModel = /*#__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 Pack Type
124
124
  *