@ricado/api-client 2.1.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 (123) hide show
  1. package/README.md +5 -7
  2. package/dist/ricado.api.client.js +1 -1
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  5. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  6. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  7. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  8. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  9. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  10. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  11. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  12. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  13. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  14. package/lib/DataItems/PointValueItem.js +3 -3
  15. package/lib/Models/AccountPolicyModel.js +7 -7
  16. package/lib/Models/ApiAccountModel.js +7 -7
  17. package/lib/Models/CompanyModel.js +5 -5
  18. package/lib/Models/FirebaseTokenModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  20. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  21. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  23. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  24. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  25. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  26. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  27. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  28. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  30. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  31. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  32. package/lib/Models/Packhouse/Site/PackingLineModel.js +539 -16
  33. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  34. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  35. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +271 -15
  36. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  37. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  38. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  39. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  40. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  41. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  42. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  43. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  44. package/lib/Models/Packhouse/Site/index.js +15 -0
  45. package/lib/Models/RTUModel.js +6 -6
  46. package/lib/Models/RTUPluginModel.js +5 -5
  47. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  48. package/lib/Models/Site/AlarmModel.js +17 -17
  49. package/lib/Models/Site/DefinitionModel.js +6 -6
  50. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  51. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  52. package/lib/Models/Site/PointModel.js +11 -11
  53. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  54. package/lib/Models/SiteModel.js +6 -6
  55. package/lib/Models/TokenModel.js +10 -10
  56. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  57. package/lib/Models/UserAccountModel.js +10 -10
  58. package/lib/PackageVersion.js +1 -1
  59. package/lib/Points.js +22 -12
  60. package/lib/WebSocketHelper.js +29 -13
  61. package/lib/index.d.ts +3853 -1290
  62. package/lib/index.js +3 -3
  63. package/package.json +1 -1
  64. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  65. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  66. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  67. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  68. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  69. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  70. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  71. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  72. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  73. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  74. package/src/Controllers/Packhouse/Site/index.js +10 -0
  75. package/src/DataItems/PointValueItem.js +3 -3
  76. package/src/Models/AccountPolicyModel.js +7 -7
  77. package/src/Models/ApiAccountModel.js +7 -7
  78. package/src/Models/CompanyModel.js +5 -5
  79. package/src/Models/FirebaseTokenModel.js +8 -8
  80. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  81. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  82. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  83. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  84. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  85. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  86. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  87. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  88. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  89. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  90. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  91. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  92. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  93. package/src/Models/Packhouse/Site/PackingLineModel.js +720 -16
  94. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  95. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  96. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +308 -15
  97. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  98. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  99. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  100. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  101. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  102. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  103. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  104. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  105. package/src/Models/Packhouse/Site/index.js +10 -0
  106. package/src/Models/RTUModel.js +6 -6
  107. package/src/Models/RTUPluginModel.js +5 -5
  108. package/src/Models/Site/AlarmGroupModel.js +7 -7
  109. package/src/Models/Site/AlarmModel.js +17 -17
  110. package/src/Models/Site/DefinitionModel.js +6 -6
  111. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  112. package/src/Models/Site/PermanentObjectModel.js +7 -7
  113. package/src/Models/Site/PointModel.js +11 -11
  114. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  115. package/src/Models/SiteModel.js +6 -6
  116. package/src/Models/TokenModel.js +10 -10
  117. package/src/Models/UserAccountActionTokenModel.js +11 -11
  118. package/src/Models/UserAccountModel.js +10 -10
  119. package/src/PackageVersion.js +1 -1
  120. package/src/Points.js +24 -12
  121. package/src/WebSocketHelper.js +34 -13
  122. package/src/index.js +3 -3
  123. package/types/tslint.json +2 -1
@@ -31,7 +31,7 @@ class CompacSizerModel 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 Compac Sizer belongs to
@@ -39,7 +39,7 @@ class CompacSizerModel 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 Compac Sizer Name
@@ -47,7 +47,7 @@ class CompacSizerModel 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 Lanes defined for this Compac Sizer
@@ -55,7 +55,7 @@ class CompacSizerModel extends BaseModel
55
55
  * @type {Object[]}
56
56
  * @public
57
57
  */
58
- this.lanes = undefined;
58
+ this.lanes = [];
59
59
 
60
60
  /**
61
61
  * The Points used by this Compac Sizer
@@ -63,7 +63,7 @@ class CompacSizerModel extends BaseModel
63
63
  * @type {Object}
64
64
  * @public
65
65
  */
66
- this.points = undefined;
66
+ this.points = {}
67
67
 
68
68
  /**
69
69
  * The Outlets defined for this Compac Sizer
@@ -71,7 +71,7 @@ class CompacSizerModel extends BaseModel
71
71
  * @type {Object[]}
72
72
  * @public
73
73
  */
74
- this.outlets = undefined;
74
+ this.outlets = [];
75
75
 
76
76
  /**
77
77
  * The Sizer Type
@@ -79,7 +79,7 @@ class CompacSizerModel extends BaseModel
79
79
  * @type {string}
80
80
  * @public
81
81
  */
82
- this.sizerType = undefined;
82
+ this.sizerType = "";
83
83
 
84
84
  /**
85
85
  * The Auto Create Batch Delay in Seconds for this Compac Sizer
@@ -87,7 +87,7 @@ class CompacSizerModel extends BaseModel
87
87
  * @type {number}
88
88
  * @public
89
89
  */
90
- this.autoCreateBatchDelay = undefined;
90
+ this.autoCreateBatchDelay = 0;
91
91
 
92
92
  /**
93
93
  * The Fruit Sizes defined and handled by this Compac Sizer
@@ -95,15 +95,15 @@ class CompacSizerModel extends BaseModel
95
95
  * @type {Object[]}
96
96
  * @public
97
97
  */
98
- this.fruitSizes = undefined;
98
+ this.fruitSizes = [];
99
99
 
100
100
  /**
101
- * The Packing Line ID this Compac Sizer belongs to
101
+ * The Packing Line ID that manages this Compac Sizer
102
102
  *
103
103
  * @type {string}
104
104
  * @public
105
105
  */
106
- this.packingLineId = undefined;
106
+ this.packingLineId = "";
107
107
 
108
108
  /**
109
109
  * The FreshPack Integration Configuration for this Compac Sizer
@@ -111,7 +111,7 @@ class CompacSizerModel extends BaseModel
111
111
  * @type {?Object}
112
112
  * @public
113
113
  */
114
- this.freshPackIntegration = undefined;
114
+ this.freshPackIntegration = null;
115
115
 
116
116
  /**
117
117
  * An Array of Sources that deliver Fruit to this Compac Sizer
@@ -119,7 +119,7 @@ class CompacSizerModel extends BaseModel
119
119
  * @type {Object[]}
120
120
  * @public
121
121
  */
122
- this.sources = undefined;
122
+ this.sources = [];
123
123
 
124
124
  /**
125
125
  * Whether the Compac Sizer has been deleted
@@ -127,7 +127,7 @@ class CompacSizerModel 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 Compac Sizer was last updated
@@ -135,7 +135,7 @@ class CompacSizerModel 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 Compac Sizer
@@ -31,7 +31,7 @@ class CompacSizerOutletProductChangeModel 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 Compac Sizer ID this Outlet Change is associated with
@@ -39,7 +39,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.compacSizerId = undefined;
42
+ this.compacSizerId = "";
43
43
 
44
44
  /**
45
45
  * The Sizer Outlet Number this Outlet Change is associated with
@@ -47,7 +47,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.outletNumber = undefined;
50
+ this.outletNumber = "";
51
51
 
52
52
  /**
53
53
  * When this Outlet Change occurred
@@ -55,7 +55,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
55
55
  * @type {Date}
56
56
  * @public
57
57
  */
58
- this.createdTimestamp = undefined;
58
+ this.createdTimestamp = new Date();
59
59
 
60
60
  /**
61
61
  * The ID of the Previous Product that was active on the Outlet
@@ -63,7 +63,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
63
63
  * @type {?string}
64
64
  * @public
65
65
  */
66
- this.previousProductId = undefined;
66
+ this.previousProductId = null;
67
67
 
68
68
  /**
69
69
  * The Name of the Previous Product that was active on the Outlet
@@ -71,7 +71,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
71
71
  * @type {?string}
72
72
  * @public
73
73
  */
74
- this.previousProductName = undefined;
74
+ this.previousProductName = null;
75
75
 
76
76
  /**
77
77
  * The ID of the New Product that is now active on the Outlet
@@ -79,7 +79,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
79
79
  * @type {string}
80
80
  * @public
81
81
  */
82
- this.newProductId = undefined;
82
+ this.newProductId = "";
83
83
 
84
84
  /**
85
85
  * The Name of the New Product that is now active on the Outlet
@@ -87,7 +87,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
87
87
  * @type {string}
88
88
  * @public
89
89
  */
90
- this.newProductName = undefined;
90
+ this.newProductName = "";
91
91
 
92
92
  /**
93
93
  * Whether the Compac Sizer Outlet Product Change has been deleted
@@ -95,7 +95,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
95
95
  * @type {boolean}
96
96
  * @public
97
97
  */
98
- this.deleted = undefined;
98
+ this.deleted = false;
99
99
 
100
100
  /**
101
101
  * When the Compac Sizer Outlet Product Change was last updated
@@ -103,7 +103,7 @@ class CompacSizerOutletProductChangeModel extends BaseModel
103
103
  * @type {Date}
104
104
  * @public
105
105
  */
106
- this.updateTimestamp = undefined;
106
+ this.updateTimestamp = new Date();
107
107
 
108
108
  /**
109
109
  * The Site ID associated with this Compac Sizer Outlet Product Change
@@ -31,7 +31,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Compac Sizer ID this Outlet Type Change is associated with
@@ -39,7 +39,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.compacSizerId = undefined;
42
+ this.compacSizerId = "";
43
43
 
44
44
  /**
45
45
  * The Sizer Outlet Number this Outlet Type Change is associated with
@@ -47,7 +47,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.outletNumber = undefined;
50
+ this.outletNumber = "";
51
51
 
52
52
  /**
53
53
  * When this Outlet Type Change occurred
@@ -55,7 +55,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
55
55
  * @type {Date}
56
56
  * @public
57
57
  */
58
- this.createdTimestamp = undefined;
58
+ this.createdTimestamp = new Date();
59
59
 
60
60
  /**
61
61
  * The ID of the Previous Type that was active on the Outlet
@@ -63,7 +63,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
63
63
  * @type {?string}
64
64
  * @public
65
65
  */
66
- this.previousTypeId = undefined;
66
+ this.previousTypeId = null;
67
67
 
68
68
  /**
69
69
  * The ID of the New Type that is now active on the Outlet
@@ -71,7 +71,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
71
71
  * @type {string}
72
72
  * @public
73
73
  */
74
- this.newTypeId = undefined;
74
+ this.newTypeId = "";
75
75
 
76
76
  /**
77
77
  * Whether the Compac Sizer Outlet Type Change has been deleted
@@ -79,7 +79,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
79
79
  * @type {boolean}
80
80
  * @public
81
81
  */
82
- this.deleted = undefined;
82
+ this.deleted = false;
83
83
 
84
84
  /**
85
85
  * When the Compac Sizer Outlet Type Change was last updated
@@ -87,7 +87,7 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
87
87
  * @type {Date}
88
88
  * @public
89
89
  */
90
- this.updateTimestamp = undefined;
90
+ this.updateTimestamp = new Date();
91
91
 
92
92
  /**
93
93
  * The Site ID associated with this Compac Sizer Outlet Type Change
@@ -31,7 +31,7 @@ class CompacSizerOutletTypeModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Name for this Dynamic Outlet Type
@@ -39,7 +39,7 @@ class CompacSizerOutletTypeModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.name = undefined;
42
+ this.name = "";
43
43
 
44
44
  /**
45
45
  * The Generic Outlet Type
@@ -47,7 +47,7 @@ class CompacSizerOutletTypeModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.type = undefined;
50
+ this.type = "";
51
51
 
52
52
  /**
53
53
  * An Optional Description for this Dynamic Outlet Type
@@ -55,7 +55,7 @@ class CompacSizerOutletTypeModel extends BaseModel
55
55
  * @type {string}
56
56
  * @public
57
57
  */
58
- this.description = undefined;
58
+ this.description = "";
59
59
 
60
60
  /**
61
61
  * Whether the Compac Sizer Outlet Type has been deleted
@@ -63,7 +63,7 @@ class CompacSizerOutletTypeModel extends BaseModel
63
63
  * @type {boolean}
64
64
  * @public
65
65
  */
66
- this.deleted = undefined;
66
+ this.deleted = false;
67
67
 
68
68
  /**
69
69
  * When the Compac Sizer Outlet Type was last updated
@@ -71,7 +71,7 @@ class CompacSizerOutletTypeModel extends BaseModel
71
71
  * @type {Date}
72
72
  * @public
73
73
  */
74
- this.updateTimestamp = undefined;
74
+ this.updateTimestamp = new Date();
75
75
 
76
76
  /**
77
77
  * The Site ID associated with this Compac Sizer Outlet Type
@@ -31,7 +31,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = undefined;
34
+ this.id = "";
35
35
 
36
36
  /**
37
37
  * The Compac Sizer ID this Summary is associated with
@@ -39,7 +39,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.compacSizerId = undefined;
42
+ this.compacSizerId = "";
43
43
 
44
44
  /**
45
45
  * The Packrun ID this Summary is associated with
@@ -47,7 +47,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.packrunId = undefined;
50
+ this.packrunId = "";
51
51
 
52
52
  /**
53
53
  * When this Summary was Created
@@ -55,7 +55,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
55
55
  * @type {Date}
56
56
  * @public
57
57
  */
58
- this.createdTimestamp = 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 CompacSizerPackrunSummaryModel 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 Packrun Summary Data Objects for each Outlet
@@ -71,7 +71,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
71
71
  * @type {Array<{name: string, type: string, number: number, totals: Array<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>}
72
72
  * @public
73
73
  */
74
- this.outletSummaries = undefined;
74
+ this.outletSummaries = [];
75
75
 
76
76
  /**
77
77
  * An Array that contains the Products initially Assigned to each Outlet
@@ -79,7 +79,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
79
79
  * @type {Array<{outletNumber: number, productId: string, productName: ?string}>}
80
80
  * @public
81
81
  */
82
- this.initialOutletProducts = undefined;
82
+ this.initialOutletProducts = [];
83
83
 
84
84
  /**
85
85
  * An Array of Outlet Product Changes
@@ -87,7 +87,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
87
87
  * @type {Array<{timestamp: Date, outletNumber: number, productId: string, productName: ?string, outletProductChangeId: string}>}
88
88
  * @public
89
89
  */
90
- this.outletProductChanges = undefined;
90
+ this.outletProductChanges = [];
91
91
 
92
92
  /**
93
93
  * An Array that contains the Types initially configured for each Outlet
@@ -95,7 +95,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
95
95
  * @type {Array<{outletNumber: number, type: string, typeId: ?string}>}
96
96
  * @public
97
97
  */
98
- this.initialOutletTypes = undefined;
98
+ this.initialOutletTypes = [];
99
99
 
100
100
  /**
101
101
  * An Array of Outlet Type Changes. Only applies to Outlets configured as *Dynamic*
@@ -103,7 +103,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
103
103
  * @type {Array<{timestamp: Date, outletNumber: number, typeId: ?string}>}
104
104
  * @public
105
105
  */
106
- this.outletTypeChanges = undefined;
106
+ this.outletTypeChanges = [];
107
107
 
108
108
  /**
109
109
  * Whether the Compac Sizer Packrun Summary has been deleted
@@ -111,7 +111,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
111
111
  * @type {boolean}
112
112
  * @public
113
113
  */
114
- this.deleted = undefined;
114
+ this.deleted = false;
115
115
 
116
116
  /**
117
117
  * When the Compac Sizer Packrun Summary was last updated
@@ -119,7 +119,7 @@ class CompacSizerPackrunSummaryModel extends BaseModel
119
119
  * @type {Date}
120
120
  * @public
121
121
  */
122
- this.updateTimestamp = undefined;
122
+ this.updateTimestamp = new Date();
123
123
 
124
124
  /**
125
125
  * The Site ID associated with this Compac Sizer Packrun Summary
@@ -31,7 +31,7 @@ class DowntimeEventModel extends BaseModel
31
31
  * @type {string}
32
32
  * @public
33
33
  */
34
- this.id = 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