@ricado/api-client 2.1.1 → 2.3.1

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 (118) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  3. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  4. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  5. package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  7. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  9. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  10. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  11. package/lib/DataItems/PointValueItem.js +3 -3
  12. package/lib/Models/AccountPolicyModel.js +7 -7
  13. package/lib/Models/ApiAccountModel.js +7 -7
  14. package/lib/Models/CompanyModel.js +5 -5
  15. package/lib/Models/FirebaseTokenModel.js +8 -8
  16. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  17. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  18. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  20. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  21. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  23. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  24. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  25. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  26. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  27. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  28. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/PackingLineModel.js +583 -16
  30. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  31. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  32. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  33. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  34. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  35. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  36. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  37. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  38. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  39. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  40. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  41. package/lib/Models/Packhouse/Site/index.js +12 -0
  42. package/lib/Models/RTUModel.js +6 -6
  43. package/lib/Models/RTUPluginModel.js +5 -5
  44. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  45. package/lib/Models/Site/AlarmModel.js +17 -17
  46. package/lib/Models/Site/DefinitionModel.js +6 -6
  47. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  48. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  49. package/lib/Models/Site/PointModel.js +11 -11
  50. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  51. package/lib/Models/SiteModel.js +6 -6
  52. package/lib/Models/TokenModel.js +10 -10
  53. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  54. package/lib/Models/UserAccountModel.js +10 -10
  55. package/lib/PackageVersion.js +1 -1
  56. package/lib/Points.js +22 -12
  57. package/lib/WebSocketHelper.js +29 -13
  58. package/lib/index.d.ts +2473 -348
  59. package/lib/index.js +3 -3
  60. package/package.json +1 -1
  61. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  62. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  63. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  64. package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -1
  65. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  66. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  67. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  68. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  69. package/src/Controllers/Packhouse/Site/index.js +8 -0
  70. package/src/DataItems/PointValueItem.js +3 -3
  71. package/src/Models/AccountPolicyModel.js +7 -7
  72. package/src/Models/ApiAccountModel.js +7 -7
  73. package/src/Models/CompanyModel.js +5 -5
  74. package/src/Models/FirebaseTokenModel.js +8 -8
  75. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  76. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  77. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  78. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  79. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  80. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  81. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  82. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  83. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  84. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  85. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  86. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  87. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  88. package/src/Models/Packhouse/Site/PackingLineModel.js +770 -16
  89. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  90. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  91. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  92. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  93. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  94. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  95. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  96. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  97. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  98. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  99. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  100. package/src/Models/Packhouse/Site/index.js +8 -0
  101. package/src/Models/RTUModel.js +6 -6
  102. package/src/Models/RTUPluginModel.js +5 -5
  103. package/src/Models/Site/AlarmGroupModel.js +7 -7
  104. package/src/Models/Site/AlarmModel.js +17 -17
  105. package/src/Models/Site/DefinitionModel.js +6 -6
  106. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  107. package/src/Models/Site/PermanentObjectModel.js +7 -7
  108. package/src/Models/Site/PointModel.js +11 -11
  109. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  110. package/src/Models/SiteModel.js +6 -6
  111. package/src/Models/TokenModel.js +10 -10
  112. package/src/Models/UserAccountActionTokenModel.js +11 -11
  113. package/src/Models/UserAccountModel.js +10 -10
  114. package/src/PackageVersion.js +1 -1
  115. package/src/Points.js +24 -12
  116. package/src/WebSocketHelper.js +34 -13
  117. package/src/index.js +3 -3
  118. package/types/tslint.json +2 -1
@@ -31,7 +31,7 @@ class BinTipWeightModel 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 Bin Tip ID associated with this Bin Weight
@@ -39,7 +39,7 @@ class BinTipWeightModel extends BaseModel
39
39
  * @type {string}
40
40
  * @public
41
41
  */
42
- this.binTipId = undefined;
42
+ this.binTipId = "";
43
43
 
44
44
  /**
45
45
  * The Packrun ID associated with this Bin Weight
@@ -47,7 +47,7 @@ class BinTipWeightModel 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 Bin Weight was Created
@@ -55,7 +55,7 @@ class BinTipWeightModel 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 Bin Weight Type
@@ -63,7 +63,7 @@ class BinTipWeightModel extends BaseModel
63
63
  * @type {string}
64
64
  * @public
65
65
  */
66
- this.weightType = undefined;
66
+ this.weightType = "";
67
67
 
68
68
  /**
69
69
  * The Bin Weight
@@ -71,7 +71,7 @@ class BinTipWeightModel extends BaseModel
71
71
  * @type {number}
72
72
  * @public
73
73
  */
74
- this.weight = undefined;
74
+ this.weight = 0;
75
75
 
76
76
  /**
77
77
  * The Bin Scale ID associated with this Bin Weight
@@ -79,7 +79,7 @@ class BinTipWeightModel extends BaseModel
79
79
  * @type {?string}
80
80
  * @public
81
81
  */
82
- this.binScaleId = undefined;
82
+ this.binScaleId = null;
83
83
 
84
84
  /**
85
85
  * Whether the Bin Tip Weight has been deleted
@@ -87,7 +87,7 @@ class BinTipWeightModel extends BaseModel
87
87
  * @type {boolean}
88
88
  * @public
89
89
  */
90
- this.deleted = undefined;
90
+ this.deleted = false;
91
91
 
92
92
  /**
93
93
  * When the Bin Tip Weight was last updated
@@ -95,7 +95,7 @@ class BinTipWeightModel extends BaseModel
95
95
  * @type {Date}
96
96
  * @public
97
97
  */
98
- this.updateTimestamp = undefined;
98
+ this.updateTimestamp = new Date();
99
99
 
100
100
  /**
101
101
  * The Site ID associated with this Bin Tip Weight
@@ -31,7 +31,7 @@ class CompacSizerBatchModel 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 Batch is associated with
@@ -39,7 +39,7 @@ class CompacSizerBatchModel 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 Numeric Compac Batch ID
@@ -47,7 +47,7 @@ class CompacSizerBatchModel extends BaseModel
47
47
  * @type {string}
48
48
  * @public
49
49
  */
50
- this.batchId = undefined;
50
+ this.batchId = "";
51
51
 
52
52
  /**
53
53
  * When this Batch was Created
@@ -55,7 +55,7 @@ class CompacSizerBatchModel 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 Packrun ID associated with this Batch
@@ -63,7 +63,7 @@ class CompacSizerBatchModel extends BaseModel
63
63
  * @type {?string}
64
64
  * @public
65
65
  */
66
- this.packrunId = undefined;
66
+ this.packrunId = null;
67
67
 
68
68
  /**
69
69
  * The Compac Sizer Batch Data
@@ -71,7 +71,7 @@ class CompacSizerBatchModel extends BaseModel
71
71
  * @type {Object}
72
72
  * @public
73
73
  */
74
- this.batch = undefined;
74
+ this.batch = {}
75
75
 
76
76
  /**
77
77
  * Whether the Compac Sizer Batch has been deleted
@@ -79,7 +79,7 @@ class CompacSizerBatchModel 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 Batch was last updated
@@ -87,7 +87,7 @@ class CompacSizerBatchModel 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 Batch
@@ -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