@ricado/api-client 1.4.1 → 2.1.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 (136) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/AccountPolicyController.js +1 -1
  3. package/lib/Controllers/ApiAccountController.js +2 -2
  4. package/lib/Controllers/CompanyController.js +1 -1
  5. package/lib/Controllers/FirebaseTokenController.js +1 -1
  6. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +2 -2
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
  10. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
  11. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
  12. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
  13. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
  14. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
  15. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
  16. package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
  17. package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
  18. package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
  19. package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
  20. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
  21. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
  22. package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
  23. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
  24. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
  25. package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
  26. package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
  27. package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
  28. package/lib/Controllers/RTUController.js +1 -1
  29. package/lib/Controllers/RTUPluginController.js +1 -1
  30. package/lib/Controllers/Site/AlarmController.js +2 -2
  31. package/lib/Controllers/Site/AlarmGroupController.js +1 -1
  32. package/lib/Controllers/Site/DefinitionController.js +1 -1
  33. package/lib/Controllers/Site/PermanentObjectController.js +1 -1
  34. package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
  35. package/lib/Controllers/Site/PointController.js +2 -2
  36. package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
  37. package/lib/Controllers/SiteController.js +1 -1
  38. package/lib/Controllers/TokenController.js +2 -2
  39. package/lib/Controllers/ToolsController.js +1 -1
  40. package/lib/Controllers/UserAccountActionTokenController.js +2 -2
  41. package/lib/Controllers/UserAccountController.js +2 -2
  42. package/lib/DataItems/PointValueItem.js +2 -2
  43. package/lib/Errors/BadRequestError.js +7 -3
  44. package/lib/Errors/ForbiddenError.js +7 -3
  45. package/lib/Errors/NetworkError.js +7 -3
  46. package/lib/Errors/NotAllowedError.js +7 -3
  47. package/lib/Errors/NotFoundError.js +7 -3
  48. package/lib/Errors/ServerError.js +7 -3
  49. package/lib/Errors/UnauthorizedError.js +7 -3
  50. package/lib/Models/AccountPolicyModel.js +29 -133
  51. package/lib/Models/ApiAccountModel.js +29 -133
  52. package/lib/Models/BaseModel.js +6 -2
  53. package/lib/Models/CompanyModel.js +23 -101
  54. package/lib/Models/FirebaseTokenModel.js +32 -149
  55. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
  56. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
  57. package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
  58. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
  59. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
  60. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
  61. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
  62. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
  63. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
  64. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
  65. package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
  66. package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
  67. package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
  68. package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
  69. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
  70. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
  71. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
  72. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
  73. package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
  74. package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
  75. package/lib/Models/RTUModel.js +26 -117
  76. package/lib/Models/RTUPluginModel.js +23 -101
  77. package/lib/Models/Site/AlarmGroupModel.js +37 -153
  78. package/lib/Models/Site/AlarmModel.js +67 -313
  79. package/lib/Models/Site/DefinitionModel.js +34 -137
  80. package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
  81. package/lib/Models/Site/PermanentObjectModel.js +37 -153
  82. package/lib/Models/Site/PointModel.js +49 -217
  83. package/lib/Models/Site/TemporaryObjectModel.js +34 -137
  84. package/lib/Models/Site/index.js +0 -3
  85. package/lib/Models/SiteModel.js +26 -117
  86. package/lib/Models/TokenModel.js +38 -181
  87. package/lib/Models/UserAccountActionTokenModel.js +41 -197
  88. package/lib/Models/UserAccountModel.js +38 -181
  89. package/lib/PackageVersion.js +1 -1
  90. package/lib/Points.js +1 -1
  91. package/lib/RequestHelper.js +2 -2
  92. package/lib/WebSocketHelper.js +1 -1
  93. package/lib/index.d.ts +945 -1206
  94. package/package.json +3 -3
  95. package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
  96. package/src/Models/AccountPolicyModel.js +21 -117
  97. package/src/Models/ApiAccountModel.js +21 -117
  98. package/src/Models/CompanyModel.js +15 -87
  99. package/src/Models/FirebaseTokenModel.js +24 -132
  100. package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
  101. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
  102. package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
  103. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
  104. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
  105. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
  106. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
  107. package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
  108. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
  109. package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
  110. package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
  111. package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
  112. package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
  113. package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
  114. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
  115. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
  116. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
  117. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
  118. package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
  119. package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
  120. package/src/Models/RTUModel.js +18 -102
  121. package/src/Models/RTUPluginModel.js +15 -87
  122. package/src/Models/Site/AlarmGroupModel.js +26 -133
  123. package/src/Models/Site/AlarmModel.js +56 -283
  124. package/src/Models/Site/DefinitionModel.js +23 -118
  125. package/src/Models/Site/PermanentObjectDataModel.js +29 -148
  126. package/src/Models/Site/PermanentObjectModel.js +26 -133
  127. package/src/Models/Site/PointModel.js +38 -193
  128. package/src/Models/Site/TemporaryObjectModel.js +23 -118
  129. package/src/Models/Site/index.js +0 -2
  130. package/src/Models/SiteModel.js +18 -102
  131. package/src/Models/TokenModel.js +30 -162
  132. package/src/Models/UserAccountActionTokenModel.js +33 -177
  133. package/src/Models/UserAccountModel.js +30 -162
  134. package/src/PackageVersion.js +1 -1
  135. package/lib/Models/Site/BaseSiteModel.js +0 -58
  136. package/src/Models/Site/BaseSiteModel.js +0 -30
@@ -4,16 +4,16 @@
4
4
  * Do Not Edit this File Manually!
5
5
  */
6
6
 
7
- import BaseSiteModel from '../../../Models/Site/BaseSiteModel';
7
+ import BaseModel from '../../../Models/BaseModel';
8
8
 
9
9
  /**
10
10
  * Model Class for a Shift Focus Meeting
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
14
- * @extends BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class ShiftFocusMeetingModel extends BaseSiteModel
16
+ class ShiftFocusMeetingModel extends BaseModel
17
17
  {
18
18
  /**
19
19
  * ShiftFocusMeetingModel Constructor
@@ -29,272 +29,105 @@ class ShiftFocusMeetingModel extends BaseSiteModel
29
29
  * The Shift Focus Meeting ID
30
30
  *
31
31
  * @type {string}
32
- * @private
32
+ * @public
33
33
  */
34
- this._id = undefined;
34
+ this.id = undefined;
35
35
 
36
36
  /**
37
37
  * The Packing Line ID this Focus Meeting is associated with
38
38
  *
39
39
  * @type {string}
40
- * @private
40
+ * @public
41
41
  */
42
- this._packingLineId = undefined;
42
+ this.packingLineId = undefined;
43
43
 
44
44
  /**
45
45
  * The Shift ID this Focus Meeting is asssociated with
46
46
  *
47
47
  * @type {string}
48
- * @private
48
+ * @public
49
49
  */
50
- this._shiftId = undefined;
50
+ this.shiftId = undefined;
51
51
 
52
52
  /**
53
53
  * When this Focus Meeting was Created
54
54
  *
55
55
  * @type {Date}
56
- * @private
56
+ * @public
57
57
  */
58
- this._createdTimestamp = undefined;
58
+ this.createdTimestamp = undefined;
59
59
 
60
60
  /**
61
61
  * When this Focus Meeting is Scheduled to Begin
62
62
  *
63
63
  * @type {Date}
64
- * @private
64
+ * @public
65
65
  */
66
- this._scheduledTimestamp = undefined;
66
+ this.scheduledTimestamp = undefined;
67
67
 
68
68
  /**
69
69
  * When this Focus Meeting was Started
70
70
  *
71
71
  * @type {?Date}
72
- * @private
72
+ * @public
73
73
  */
74
- this._startTimestamp = undefined;
74
+ this.startTimestamp = undefined;
75
75
 
76
76
  /**
77
77
  * When this Focus Meeting was Completed
78
78
  *
79
79
  * @type {?Date}
80
- * @private
80
+ * @public
81
81
  */
82
- this._finishTimestamp = undefined;
82
+ this.finishTimestamp = undefined;
83
83
 
84
84
  /**
85
85
  * An Optional Key Focus until the Next Meeting
86
86
  *
87
87
  * @type {?string}
88
- * @private
88
+ * @public
89
89
  */
90
- this._nextKeyFocus = undefined;
90
+ this.nextKeyFocus = undefined;
91
91
 
92
92
  /**
93
93
  * An Optional Rating between 1 and 10 on how Successful the Focus Meeting was
94
94
  *
95
95
  * @type {?number}
96
- * @private
96
+ * @public
97
97
  */
98
- this._successRating = undefined;
98
+ this.successRating = undefined;
99
99
 
100
100
  /**
101
101
  * The Status of this Focus Meeting
102
102
  *
103
103
  * @type {string}
104
- * @private
104
+ * @public
105
105
  */
106
- this._status = undefined;
106
+ this.status = undefined;
107
107
 
108
108
  /**
109
109
  * Whether the Shift Focus Meeting has been deleted
110
110
  *
111
111
  * @type {boolean}
112
- * @private
112
+ * @public
113
113
  */
114
- this._deleted = undefined;
114
+ this.deleted = undefined;
115
115
 
116
116
  /**
117
117
  * When the Shift Focus Meeting was last updated
118
118
  *
119
119
  * @type {Date}
120
- * @private
120
+ * @public
121
121
  */
122
- this._updateTimestamp = undefined;
122
+ this.updateTimestamp = undefined;
123
123
 
124
124
  /**
125
125
  * The Site ID associated with this Shift Focus Meeting
126
126
  *
127
127
  * @type {number}
128
- * @private
128
+ * @public
129
129
  */
130
- this._siteId = siteId;
131
- }
132
-
133
- /**
134
- * The Shift Focus Meeting ID
135
- *
136
- * @public
137
- * @type {string}
138
- */
139
- get id()
140
- {
141
- return this._id;
142
- }
143
-
144
- /**
145
- * The Packing Line ID this Focus Meeting is associated with
146
- *
147
- * @public
148
- * @type {string}
149
- */
150
- get packingLineId()
151
- {
152
- return this._packingLineId;
153
- }
154
-
155
- /**
156
- * The Shift ID this Focus Meeting is asssociated with
157
- *
158
- * @public
159
- * @type {string}
160
- */
161
- get shiftId()
162
- {
163
- return this._shiftId;
164
- }
165
-
166
- /**
167
- * When this Focus Meeting was Created
168
- *
169
- * @public
170
- * @type {Date}
171
- */
172
- get createdTimestamp()
173
- {
174
- return this._createdTimestamp;
175
- }
176
-
177
- /**
178
- * When this Focus Meeting is Scheduled to Begin
179
- *
180
- * @public
181
- * @type {Date}
182
- */
183
- get scheduledTimestamp()
184
- {
185
- return this._scheduledTimestamp;
186
- }
187
-
188
- /**
189
- * When this Focus Meeting was Started
190
- *
191
- * @public
192
- * @type {?Date}
193
- */
194
- get startTimestamp()
195
- {
196
- return this._startTimestamp;
197
- }
198
-
199
- /**
200
- * When this Focus Meeting was Completed
201
- *
202
- * @public
203
- * @type {?Date}
204
- */
205
- get finishTimestamp()
206
- {
207
- return this._finishTimestamp;
208
- }
209
-
210
- /**
211
- * An Optional Key Focus until the Next Meeting
212
- *
213
- * @public
214
- * @type {?string}
215
- */
216
- get nextKeyFocus()
217
- {
218
- return this._nextKeyFocus;
219
- }
220
-
221
- /**
222
- * An Optional Rating between 1 and 10 on how Successful the Focus Meeting was
223
- *
224
- * @public
225
- * @type {?number}
226
- */
227
- get successRating()
228
- {
229
- return this._successRating;
230
- }
231
-
232
- /**
233
- * The Status of this Focus Meeting
234
- *
235
- * @public
236
- * @type {string}
237
- */
238
- get status()
239
- {
240
- return this._status;
241
- }
242
-
243
- /**
244
- * Whether the Shift Focus Meeting has been deleted
245
- *
246
- * @public
247
- * @type {boolean}
248
- */
249
- get deleted()
250
- {
251
- return this._deleted;
252
- }
253
-
254
- /**
255
- * When the Shift Focus Meeting was last updated
256
- *
257
- * @public
258
- * @type {Date}
259
- */
260
- get updateTimestamp()
261
- {
262
- return this._updateTimestamp;
263
- }
264
-
265
- /**
266
- * The Site ID associated with this Shift Focus Meeting
267
- *
268
- * @public
269
- * @type {number}
270
- */
271
- get siteId()
272
- {
273
- return this._siteId;
274
- }
275
-
276
- /**
277
- * Convert this **ShiftFocusMeetingModel** to a JSON Object
278
- *
279
- * @public
280
- * @return {Object<string, any>}
281
- */
282
- toJSON()
283
- {
284
- return {
285
- id: this._id,
286
- packingLineId: this._packingLineId,
287
- shiftId: this._shiftId,
288
- createdTimestamp: this._createdTimestamp,
289
- scheduledTimestamp: this._scheduledTimestamp,
290
- startTimestamp: this._startTimestamp,
291
- finishTimestamp: this._finishTimestamp,
292
- nextKeyFocus: this._nextKeyFocus,
293
- successRating: this._successRating,
294
- status: this._status,
295
- deleted: this._deleted,
296
- updateTimestamp: this._updateTimestamp
297
- };
130
+ this.siteId = siteId;
298
131
  }
299
132
 
300
133
  /**
@@ -328,7 +161,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
328
161
 
329
162
  if('id' in jsonObject)
330
163
  {
331
- model._id = (function(){
164
+ model.id = (function(){
332
165
  if(typeof jsonObject['id'] !== 'string')
333
166
  {
334
167
  return String(jsonObject['id']);
@@ -340,7 +173,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
340
173
 
341
174
  if('packingLineId' in jsonObject)
342
175
  {
343
- model._packingLineId = (function(){
176
+ model.packingLineId = (function(){
344
177
  if(typeof jsonObject['packingLineId'] !== 'string')
345
178
  {
346
179
  return String(jsonObject['packingLineId']);
@@ -352,7 +185,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
352
185
 
353
186
  if('shiftId' in jsonObject)
354
187
  {
355
- model._shiftId = (function(){
188
+ model.shiftId = (function(){
356
189
  if(typeof jsonObject['shiftId'] !== 'string')
357
190
  {
358
191
  return String(jsonObject['shiftId']);
@@ -364,7 +197,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
364
197
 
365
198
  if('createdTimestamp' in jsonObject)
366
199
  {
367
- model._createdTimestamp = (function(){
200
+ model.createdTimestamp = (function(){
368
201
  if(typeof jsonObject['createdTimestamp'] !== 'string')
369
202
  {
370
203
  return new Date(String(jsonObject['createdTimestamp']));
@@ -376,7 +209,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
376
209
 
377
210
  if('scheduledTimestamp' in jsonObject)
378
211
  {
379
- model._scheduledTimestamp = (function(){
212
+ model.scheduledTimestamp = (function(){
380
213
  if(typeof jsonObject['scheduledTimestamp'] !== 'string')
381
214
  {
382
215
  return new Date(String(jsonObject['scheduledTimestamp']));
@@ -388,7 +221,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
388
221
 
389
222
  if('startTimestamp' in jsonObject)
390
223
  {
391
- model._startTimestamp = (function(){
224
+ model.startTimestamp = (function(){
392
225
  if(jsonObject['startTimestamp'] === null)
393
226
  {
394
227
  return null;
@@ -405,7 +238,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
405
238
 
406
239
  if('finishTimestamp' in jsonObject)
407
240
  {
408
- model._finishTimestamp = (function(){
241
+ model.finishTimestamp = (function(){
409
242
  if(jsonObject['finishTimestamp'] === null)
410
243
  {
411
244
  return null;
@@ -422,7 +255,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
422
255
 
423
256
  if('nextKeyFocus' in jsonObject)
424
257
  {
425
- model._nextKeyFocus = (function(){
258
+ model.nextKeyFocus = (function(){
426
259
  if(jsonObject['nextKeyFocus'] === null)
427
260
  {
428
261
  return null;
@@ -439,7 +272,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
439
272
 
440
273
  if('successRating' in jsonObject)
441
274
  {
442
- model._successRating = (function(){
275
+ model.successRating = (function(){
443
276
  if(jsonObject['successRating'] === null)
444
277
  {
445
278
  return null;
@@ -456,7 +289,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
456
289
 
457
290
  if('status' in jsonObject)
458
291
  {
459
- model._status = (function(){
292
+ model.status = (function(){
460
293
  if(typeof jsonObject['status'] !== 'string')
461
294
  {
462
295
  return String(jsonObject['status']);
@@ -468,7 +301,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
468
301
 
469
302
  if('deleted' in jsonObject)
470
303
  {
471
- model._deleted = (function(){
304
+ model.deleted = (function(){
472
305
  if(typeof jsonObject['deleted'] !== 'boolean')
473
306
  {
474
307
  return Boolean(jsonObject['deleted']);
@@ -480,7 +313,7 @@ class ShiftFocusMeetingModel extends BaseSiteModel
480
313
 
481
314
  if('updateTimestamp' in jsonObject)
482
315
  {
483
- model._updateTimestamp = (function(){
316
+ model.updateTimestamp = (function(){
484
317
  if(typeof jsonObject['updateTimestamp'] !== 'string')
485
318
  {
486
319
  return new Date(String(jsonObject['updateTimestamp']));