@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
@@ -31,7 +31,7 @@ class DowntimeEventModel 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 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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
74
+ this.updateTimestamp = new Date();
75
75
 
76
76
  /**
77
77
  * The Site ID associated with this Growing Method
@@ -31,7 +31,7 @@ class PackTypeModel 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 Code for this Pack Type
@@ -39,7 +39,7 @@ class PackTypeModel 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 Name for this Pack Type
@@ -47,7 +47,7 @@ class PackTypeModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.name = undefined;
50
+ this.name = "";
51
51
 
52
52
  /**
53
53
  * An Optional Description for this Pack Type
@@ -55,7 +55,7 @@ class PackTypeModel 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 Physical Form of this Pack Type
@@ -63,7 +63,7 @@ class PackTypeModel extends BaseModel
63
63
  * @type {string}
64
64
  * @public
65
65
  */
66
- this.form = undefined;
66
+ this.form = "";
67
67
 
68
68
  /**
69
69
  * An Array of Fruit Sizes Defined for this Pack Type
@@ -71,7 +71,7 @@ class PackTypeModel extends BaseModel
71
71
  * @type {Array<{size: string, count: number}>}
72
72
  * @public
73
73
  */
74
- this.fruitSizes = undefined;
74
+ this.fruitSizes = [];
75
75
 
76
76
  /**
77
77
  * Whether the Pack Type has been deleted
@@ -79,7 +79,7 @@ class PackTypeModel 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 Pack Type was last updated
@@ -87,7 +87,7 @@ class PackTypeModel 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 Pack Type
@@ -31,7 +31,7 @@ class PackingLineModel 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 Packing Line belongs to
@@ -39,7 +39,7 @@ class PackingLineModel 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 Packing Line Name
@@ -47,7 +47,7 @@ class PackingLineModel 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 Packing Line
@@ -55,7 +55,7 @@ class PackingLineModel 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 Sizer Objects that belong to this Packing Line
@@ -63,7 +63,7 @@ class PackingLineModel extends BaseModel
63
63
  * @type {Object[]}
64
64
  * @public
65
65
  */
66
- this.sizers = undefined;
66
+ this.sizers = [];
67
67
 
68
68
  /**
69
69
  * The Bin Tip Objects that belong to this this Packing Line
@@ -71,7 +71,7 @@ class PackingLineModel extends BaseModel
71
71
  * @type {Object[]}
72
72
  * @public
73
73
  */
74
- this.binTips = undefined;
74
+ this.binTips = [];
75
75
 
76
76
  /**
77
77
  * The Reject Bin Scale Objects that belong to this Packing Line
@@ -79,7 +79,7 @@ class PackingLineModel extends BaseModel
79
79
  * @type {Object[]}
80
80
  * @public
81
81
  */
82
- this.rejectBinScales = undefined;
82
+ this.rejectBinScales = [];
83
83
 
84
84
  /**
85
85
  * An Optional Secondary Packing Line Reference
@@ -87,7 +87,7 @@ class PackingLineModel extends BaseModel
87
87
  * @type {?Object}
88
88
  * @public
89
89
  */
90
- this.secondaryPackingLine = undefined;
90
+ this.secondaryPackingLine = null;
91
91
 
92
92
  /**
93
93
  * The Automation Object for this Packing Line
@@ -95,7 +95,7 @@ class PackingLineModel extends BaseModel
95
95
  * @type {?Object}
96
96
  * @public
97
97
  */
98
- this.automation = undefined;
98
+ this.automation = null;
99
99
 
100
100
  /**
101
101
  * The Alarm Groups that are used by this Packing Line
@@ -103,7 +103,7 @@ class PackingLineModel extends BaseModel
103
103
  * @type {string[]}
104
104
  * @public
105
105
  */
106
- this.alarmGroups = undefined;
106
+ this.alarmGroups = [];
107
107
 
108
108
  /**
109
109
  * The Class Types that are defined for this Packing Line
@@ -111,7 +111,7 @@ class PackingLineModel extends BaseModel
111
111
  * @type {Object[]}
112
112
  * @public
113
113
  */
114
- this.classTypes = undefined;
114
+ this.classTypes = [];
115
115
 
116
116
  /**
117
117
  * The Optional Shift Management Object for this Packing Line
@@ -119,7 +119,23 @@ class PackingLineModel extends BaseModel
119
119
  * @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>}}
120
120
  * @public
121
121
  */
122
- this.shiftManagement = undefined;
122
+ this.shiftManagement = null;
123
+
124
+ /**
125
+ * The Advanced Packrun Management Configuration for this Packing Line
126
+ *
127
+ * @type {?Object}
128
+ * @public
129
+ */
130
+ this.advancedPackrunManagement = null;
131
+
132
+ /**
133
+ * The MAF Integration Configuration for this Packing Line
134
+ *
135
+ * @type {?Object}
136
+ * @public
137
+ */
138
+ this.mafIntegration = null;
123
139
 
124
140
  /**
125
141
  * The FreshPack Integration Configuration for this Packing Line
@@ -127,7 +143,7 @@ class PackingLineModel extends BaseModel
127
143
  * @type {?Object}
128
144
  * @public
129
145
  */
130
- this.freshPackIntegration = undefined;
146
+ this.freshPackIntegration = null;
131
147
 
132
148
  /**
133
149
  * The FreshQuality Integration Configuration for this Packing Line
@@ -135,7 +151,7 @@ class PackingLineModel extends BaseModel
135
151
  * @type {?Object}
136
152
  * @public
137
153
  */
138
- this.freshQualityIntegration = undefined;
154
+ this.freshQualityIntegration = null;
139
155
 
140
156
  /**
141
157
  * Whether the Packing Line has been deleted
@@ -143,7 +159,7 @@ class PackingLineModel extends BaseModel
143
159
  * @type {boolean}
144
160
  * @public
145
161
  */
146
- this.deleted = undefined;
162
+ this.deleted = false;
147
163
 
148
164
  /**
149
165
  * When the Packing Line was last updated
@@ -151,7 +167,7 @@ class PackingLineModel extends BaseModel
151
167
  * @type {Date}
152
168
  * @public
153
169
  */
154
- this.updateTimestamp = undefined;
170
+ this.updateTimestamp = new Date();
155
171
 
156
172
  /**
157
173
  * The Site ID associated with this Packing Line
@@ -1271,6 +1287,40 @@ class PackingLineModel extends BaseModel
1271
1287
  }());
1272
1288
  }
1273
1289
 
1290
+ if('advancedPackrunManagement' in jsonObject)
1291
+ {
1292
+ model.advancedPackrunManagement = (function(){
1293
+ if(jsonObject['advancedPackrunManagement'] === null)
1294
+ {
1295
+ return null;
1296
+ }
1297
+
1298
+ if(typeof jsonObject['advancedPackrunManagement'] !== 'object')
1299
+ {
1300
+ return Object(jsonObject['advancedPackrunManagement']);
1301
+ }
1302
+
1303
+ return jsonObject['advancedPackrunManagement'];
1304
+ }());
1305
+ }
1306
+
1307
+ if('mafIntegration' in jsonObject)
1308
+ {
1309
+ model.mafIntegration = (function(){
1310
+ if(jsonObject['mafIntegration'] === null)
1311
+ {
1312
+ return null;
1313
+ }
1314
+
1315
+ if(typeof jsonObject['mafIntegration'] !== 'object')
1316
+ {
1317
+ return Object(jsonObject['mafIntegration']);
1318
+ }
1319
+
1320
+ return jsonObject['mafIntegration'];
1321
+ }());
1322
+ }
1323
+
1274
1324
  if('freshPackIntegration' in jsonObject)
1275
1325
  {
1276
1326
  model.freshPackIntegration = (function(){