@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
@@ -139,6 +139,70 @@ var DowntimeEventController = /*#__PURE__*/function () {
139
139
  resultItemObject.id = "";
140
140
  }
141
141
 
142
+ if (_typeof(resultItem) === 'object' && 'userAccount' in resultItem) {
143
+ resultItemObject.userAccount = function () {
144
+ var userAccountObject = {};
145
+
146
+ if (_typeof(resultItem.userAccount) === 'object' && 'id' in resultItem.userAccount) {
147
+ userAccountObject.id = function () {
148
+ if (resultItem.userAccount.id === null) {
149
+ return null;
150
+ }
151
+
152
+ if (typeof resultItem.userAccount.id !== 'string') {
153
+ return String(resultItem.userAccount.id);
154
+ }
155
+
156
+ return resultItem.userAccount.id;
157
+ }();
158
+ } else {
159
+ userAccountObject.id = null;
160
+ }
161
+
162
+ if (_typeof(resultItem.userAccount) === 'object' && 'firstName' in resultItem.userAccount) {
163
+ userAccountObject.firstName = function () {
164
+ if (resultItem.userAccount.firstName === null) {
165
+ return null;
166
+ }
167
+
168
+ if (typeof resultItem.userAccount.firstName !== 'string') {
169
+ return String(resultItem.userAccount.firstName);
170
+ }
171
+
172
+ return resultItem.userAccount.firstName;
173
+ }();
174
+ } else {
175
+ userAccountObject.firstName = null;
176
+ }
177
+
178
+ if (_typeof(resultItem.userAccount) === 'object' && 'lastName' in resultItem.userAccount) {
179
+ userAccountObject.lastName = function () {
180
+ if (resultItem.userAccount.lastName === null) {
181
+ return null;
182
+ }
183
+
184
+ if (typeof resultItem.userAccount.lastName !== 'string') {
185
+ return String(resultItem.userAccount.lastName);
186
+ }
187
+
188
+ return resultItem.userAccount.lastName;
189
+ }();
190
+ } else {
191
+ userAccountObject.lastName = null;
192
+ }
193
+
194
+ return userAccountObject;
195
+ }();
196
+ } else {
197
+ resultItemObject.userAccount = function () {
198
+ var userAccountDefaultValue = {};
199
+ userAccountDefaultValue.id = null;
200
+ userAccountDefaultValue.firstName = null;
201
+ userAccountDefaultValue.lastName = null;
202
+ return userAccountDefaultValue;
203
+ }();
204
+ }
205
+
142
206
  if (_typeof(resultItem) === 'object' && 'content' in resultItem) {
143
207
  resultItemObject.content = function () {
144
208
  if (resultItem.content === null) {
@@ -233,6 +297,70 @@ var DowntimeEventController = /*#__PURE__*/function () {
233
297
  resultObject.id = "";
234
298
  }
235
299
 
300
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
301
+ resultObject.userAccount = function () {
302
+ var userAccountObject = {};
303
+
304
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
305
+ userAccountObject.id = function () {
306
+ if (result.userAccount.id === null) {
307
+ return null;
308
+ }
309
+
310
+ if (typeof result.userAccount.id !== 'string') {
311
+ return String(result.userAccount.id);
312
+ }
313
+
314
+ return result.userAccount.id;
315
+ }();
316
+ } else {
317
+ userAccountObject.id = null;
318
+ }
319
+
320
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
321
+ userAccountObject.firstName = function () {
322
+ if (result.userAccount.firstName === null) {
323
+ return null;
324
+ }
325
+
326
+ if (typeof result.userAccount.firstName !== 'string') {
327
+ return String(result.userAccount.firstName);
328
+ }
329
+
330
+ return result.userAccount.firstName;
331
+ }();
332
+ } else {
333
+ userAccountObject.firstName = null;
334
+ }
335
+
336
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
337
+ userAccountObject.lastName = function () {
338
+ if (result.userAccount.lastName === null) {
339
+ return null;
340
+ }
341
+
342
+ if (typeof result.userAccount.lastName !== 'string') {
343
+ return String(result.userAccount.lastName);
344
+ }
345
+
346
+ return result.userAccount.lastName;
347
+ }();
348
+ } else {
349
+ userAccountObject.lastName = null;
350
+ }
351
+
352
+ return userAccountObject;
353
+ }();
354
+ } else {
355
+ resultObject.userAccount = function () {
356
+ var userAccountDefaultValue = {};
357
+ userAccountDefaultValue.id = null;
358
+ userAccountDefaultValue.firstName = null;
359
+ userAccountDefaultValue.lastName = null;
360
+ return userAccountDefaultValue;
361
+ }();
362
+ }
363
+
236
364
  if (_typeof(result) === 'object' && 'content' in result) {
237
365
  resultObject.content = function () {
238
366
  if (result.content === null) {
@@ -323,6 +451,70 @@ var DowntimeEventController = /*#__PURE__*/function () {
323
451
  resultObject.id = "";
324
452
  }
325
453
 
454
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
455
+ resultObject.userAccount = function () {
456
+ var userAccountObject = {};
457
+
458
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
459
+ userAccountObject.id = function () {
460
+ if (result.userAccount.id === null) {
461
+ return null;
462
+ }
463
+
464
+ if (typeof result.userAccount.id !== 'string') {
465
+ return String(result.userAccount.id);
466
+ }
467
+
468
+ return result.userAccount.id;
469
+ }();
470
+ } else {
471
+ userAccountObject.id = null;
472
+ }
473
+
474
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
475
+ userAccountObject.firstName = function () {
476
+ if (result.userAccount.firstName === null) {
477
+ return null;
478
+ }
479
+
480
+ if (typeof result.userAccount.firstName !== 'string') {
481
+ return String(result.userAccount.firstName);
482
+ }
483
+
484
+ return result.userAccount.firstName;
485
+ }();
486
+ } else {
487
+ userAccountObject.firstName = null;
488
+ }
489
+
490
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
491
+ userAccountObject.lastName = function () {
492
+ if (result.userAccount.lastName === null) {
493
+ return null;
494
+ }
495
+
496
+ if (typeof result.userAccount.lastName !== 'string') {
497
+ return String(result.userAccount.lastName);
498
+ }
499
+
500
+ return result.userAccount.lastName;
501
+ }();
502
+ } else {
503
+ userAccountObject.lastName = null;
504
+ }
505
+
506
+ return userAccountObject;
507
+ }();
508
+ } else {
509
+ resultObject.userAccount = function () {
510
+ var userAccountDefaultValue = {};
511
+ userAccountDefaultValue.id = null;
512
+ userAccountDefaultValue.firstName = null;
513
+ userAccountDefaultValue.lastName = null;
514
+ return userAccountDefaultValue;
515
+ }();
516
+ }
517
+
326
518
  if (_typeof(result) === 'object' && 'content' in result) {
327
519
  resultObject.content = function () {
328
520
  if (result.content === null) {
@@ -416,6 +608,70 @@ var DowntimeEventController = /*#__PURE__*/function () {
416
608
  resultObject.id = "";
417
609
  }
418
610
 
611
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
612
+ resultObject.userAccount = function () {
613
+ var userAccountObject = {};
614
+
615
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
616
+ userAccountObject.id = function () {
617
+ if (result.userAccount.id === null) {
618
+ return null;
619
+ }
620
+
621
+ if (typeof result.userAccount.id !== 'string') {
622
+ return String(result.userAccount.id);
623
+ }
624
+
625
+ return result.userAccount.id;
626
+ }();
627
+ } else {
628
+ userAccountObject.id = null;
629
+ }
630
+
631
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
632
+ userAccountObject.firstName = function () {
633
+ if (result.userAccount.firstName === null) {
634
+ return null;
635
+ }
636
+
637
+ if (typeof result.userAccount.firstName !== 'string') {
638
+ return String(result.userAccount.firstName);
639
+ }
640
+
641
+ return result.userAccount.firstName;
642
+ }();
643
+ } else {
644
+ userAccountObject.firstName = null;
645
+ }
646
+
647
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
648
+ userAccountObject.lastName = function () {
649
+ if (result.userAccount.lastName === null) {
650
+ return null;
651
+ }
652
+
653
+ if (typeof result.userAccount.lastName !== 'string') {
654
+ return String(result.userAccount.lastName);
655
+ }
656
+
657
+ return result.userAccount.lastName;
658
+ }();
659
+ } else {
660
+ userAccountObject.lastName = null;
661
+ }
662
+
663
+ return userAccountObject;
664
+ }();
665
+ } else {
666
+ resultObject.userAccount = function () {
667
+ var userAccountDefaultValue = {};
668
+ userAccountDefaultValue.id = null;
669
+ userAccountDefaultValue.firstName = null;
670
+ userAccountDefaultValue.lastName = null;
671
+ return userAccountDefaultValue;
672
+ }();
673
+ }
674
+
419
675
  if (_typeof(result) === 'object' && 'content' in result) {
420
676
  resultObject.content = function () {
421
677
  if (result.content === null) {
@@ -618,11 +874,22 @@ var _default = DowntimeEventController;
618
874
  * @memberof Controllers.Packhouse.Site
619
875
  */
620
876
 
877
+ /**
878
+ * A **UserAccount** Type
879
+ *
880
+ * @typedef {Object} DowntimeEventController.UserAccount
881
+ * @property {?string} id The User Account ID
882
+ * @property {?string} firstName The User's First Name
883
+ * @property {?string} lastName The User's Last Name
884
+ * @memberof Controllers.Packhouse.Site
885
+ */
886
+
621
887
  /**
622
888
  * A **CommentItem** Type
623
889
  *
624
890
  * @typedef {Object} DowntimeEventController.CommentItem
625
891
  * @property {string} id The Comment ID
892
+ * @property {DowntimeEventController.UserAccount} userAccount
626
893
  * @property {?string} content The Content of the Comment
627
894
  * @property {?Date} createdTimestamp When the Comment was Created
628
895
  * @property {?Date} updatedTimestamp When the Comment was last Updated
@@ -139,6 +139,70 @@ var FreshPackPackrunSummaryController = /*#__PURE__*/function () {
139
139
  resultItemObject.id = "";
140
140
  }
141
141
 
142
+ if (_typeof(resultItem) === 'object' && 'userAccount' in resultItem) {
143
+ resultItemObject.userAccount = function () {
144
+ var userAccountObject = {};
145
+
146
+ if (_typeof(resultItem.userAccount) === 'object' && 'id' in resultItem.userAccount) {
147
+ userAccountObject.id = function () {
148
+ if (resultItem.userAccount.id === null) {
149
+ return null;
150
+ }
151
+
152
+ if (typeof resultItem.userAccount.id !== 'string') {
153
+ return String(resultItem.userAccount.id);
154
+ }
155
+
156
+ return resultItem.userAccount.id;
157
+ }();
158
+ } else {
159
+ userAccountObject.id = null;
160
+ }
161
+
162
+ if (_typeof(resultItem.userAccount) === 'object' && 'firstName' in resultItem.userAccount) {
163
+ userAccountObject.firstName = function () {
164
+ if (resultItem.userAccount.firstName === null) {
165
+ return null;
166
+ }
167
+
168
+ if (typeof resultItem.userAccount.firstName !== 'string') {
169
+ return String(resultItem.userAccount.firstName);
170
+ }
171
+
172
+ return resultItem.userAccount.firstName;
173
+ }();
174
+ } else {
175
+ userAccountObject.firstName = null;
176
+ }
177
+
178
+ if (_typeof(resultItem.userAccount) === 'object' && 'lastName' in resultItem.userAccount) {
179
+ userAccountObject.lastName = function () {
180
+ if (resultItem.userAccount.lastName === null) {
181
+ return null;
182
+ }
183
+
184
+ if (typeof resultItem.userAccount.lastName !== 'string') {
185
+ return String(resultItem.userAccount.lastName);
186
+ }
187
+
188
+ return resultItem.userAccount.lastName;
189
+ }();
190
+ } else {
191
+ userAccountObject.lastName = null;
192
+ }
193
+
194
+ return userAccountObject;
195
+ }();
196
+ } else {
197
+ resultItemObject.userAccount = function () {
198
+ var userAccountDefaultValue = {};
199
+ userAccountDefaultValue.id = null;
200
+ userAccountDefaultValue.firstName = null;
201
+ userAccountDefaultValue.lastName = null;
202
+ return userAccountDefaultValue;
203
+ }();
204
+ }
205
+
142
206
  if (_typeof(resultItem) === 'object' && 'content' in resultItem) {
143
207
  resultItemObject.content = function () {
144
208
  if (resultItem.content === null) {
@@ -233,6 +297,70 @@ var FreshPackPackrunSummaryController = /*#__PURE__*/function () {
233
297
  resultObject.id = "";
234
298
  }
235
299
 
300
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
301
+ resultObject.userAccount = function () {
302
+ var userAccountObject = {};
303
+
304
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
305
+ userAccountObject.id = function () {
306
+ if (result.userAccount.id === null) {
307
+ return null;
308
+ }
309
+
310
+ if (typeof result.userAccount.id !== 'string') {
311
+ return String(result.userAccount.id);
312
+ }
313
+
314
+ return result.userAccount.id;
315
+ }();
316
+ } else {
317
+ userAccountObject.id = null;
318
+ }
319
+
320
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
321
+ userAccountObject.firstName = function () {
322
+ if (result.userAccount.firstName === null) {
323
+ return null;
324
+ }
325
+
326
+ if (typeof result.userAccount.firstName !== 'string') {
327
+ return String(result.userAccount.firstName);
328
+ }
329
+
330
+ return result.userAccount.firstName;
331
+ }();
332
+ } else {
333
+ userAccountObject.firstName = null;
334
+ }
335
+
336
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
337
+ userAccountObject.lastName = function () {
338
+ if (result.userAccount.lastName === null) {
339
+ return null;
340
+ }
341
+
342
+ if (typeof result.userAccount.lastName !== 'string') {
343
+ return String(result.userAccount.lastName);
344
+ }
345
+
346
+ return result.userAccount.lastName;
347
+ }();
348
+ } else {
349
+ userAccountObject.lastName = null;
350
+ }
351
+
352
+ return userAccountObject;
353
+ }();
354
+ } else {
355
+ resultObject.userAccount = function () {
356
+ var userAccountDefaultValue = {};
357
+ userAccountDefaultValue.id = null;
358
+ userAccountDefaultValue.firstName = null;
359
+ userAccountDefaultValue.lastName = null;
360
+ return userAccountDefaultValue;
361
+ }();
362
+ }
363
+
236
364
  if (_typeof(result) === 'object' && 'content' in result) {
237
365
  resultObject.content = function () {
238
366
  if (result.content === null) {
@@ -323,6 +451,70 @@ var FreshPackPackrunSummaryController = /*#__PURE__*/function () {
323
451
  resultObject.id = "";
324
452
  }
325
453
 
454
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
455
+ resultObject.userAccount = function () {
456
+ var userAccountObject = {};
457
+
458
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
459
+ userAccountObject.id = function () {
460
+ if (result.userAccount.id === null) {
461
+ return null;
462
+ }
463
+
464
+ if (typeof result.userAccount.id !== 'string') {
465
+ return String(result.userAccount.id);
466
+ }
467
+
468
+ return result.userAccount.id;
469
+ }();
470
+ } else {
471
+ userAccountObject.id = null;
472
+ }
473
+
474
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
475
+ userAccountObject.firstName = function () {
476
+ if (result.userAccount.firstName === null) {
477
+ return null;
478
+ }
479
+
480
+ if (typeof result.userAccount.firstName !== 'string') {
481
+ return String(result.userAccount.firstName);
482
+ }
483
+
484
+ return result.userAccount.firstName;
485
+ }();
486
+ } else {
487
+ userAccountObject.firstName = null;
488
+ }
489
+
490
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
491
+ userAccountObject.lastName = function () {
492
+ if (result.userAccount.lastName === null) {
493
+ return null;
494
+ }
495
+
496
+ if (typeof result.userAccount.lastName !== 'string') {
497
+ return String(result.userAccount.lastName);
498
+ }
499
+
500
+ return result.userAccount.lastName;
501
+ }();
502
+ } else {
503
+ userAccountObject.lastName = null;
504
+ }
505
+
506
+ return userAccountObject;
507
+ }();
508
+ } else {
509
+ resultObject.userAccount = function () {
510
+ var userAccountDefaultValue = {};
511
+ userAccountDefaultValue.id = null;
512
+ userAccountDefaultValue.firstName = null;
513
+ userAccountDefaultValue.lastName = null;
514
+ return userAccountDefaultValue;
515
+ }();
516
+ }
517
+
326
518
  if (_typeof(result) === 'object' && 'content' in result) {
327
519
  resultObject.content = function () {
328
520
  if (result.content === null) {
@@ -416,6 +608,70 @@ var FreshPackPackrunSummaryController = /*#__PURE__*/function () {
416
608
  resultObject.id = "";
417
609
  }
418
610
 
611
+ if (_typeof(result) === 'object' && 'userAccount' in result) {
612
+ resultObject.userAccount = function () {
613
+ var userAccountObject = {};
614
+
615
+ if (_typeof(result.userAccount) === 'object' && 'id' in result.userAccount) {
616
+ userAccountObject.id = function () {
617
+ if (result.userAccount.id === null) {
618
+ return null;
619
+ }
620
+
621
+ if (typeof result.userAccount.id !== 'string') {
622
+ return String(result.userAccount.id);
623
+ }
624
+
625
+ return result.userAccount.id;
626
+ }();
627
+ } else {
628
+ userAccountObject.id = null;
629
+ }
630
+
631
+ if (_typeof(result.userAccount) === 'object' && 'firstName' in result.userAccount) {
632
+ userAccountObject.firstName = function () {
633
+ if (result.userAccount.firstName === null) {
634
+ return null;
635
+ }
636
+
637
+ if (typeof result.userAccount.firstName !== 'string') {
638
+ return String(result.userAccount.firstName);
639
+ }
640
+
641
+ return result.userAccount.firstName;
642
+ }();
643
+ } else {
644
+ userAccountObject.firstName = null;
645
+ }
646
+
647
+ if (_typeof(result.userAccount) === 'object' && 'lastName' in result.userAccount) {
648
+ userAccountObject.lastName = function () {
649
+ if (result.userAccount.lastName === null) {
650
+ return null;
651
+ }
652
+
653
+ if (typeof result.userAccount.lastName !== 'string') {
654
+ return String(result.userAccount.lastName);
655
+ }
656
+
657
+ return result.userAccount.lastName;
658
+ }();
659
+ } else {
660
+ userAccountObject.lastName = null;
661
+ }
662
+
663
+ return userAccountObject;
664
+ }();
665
+ } else {
666
+ resultObject.userAccount = function () {
667
+ var userAccountDefaultValue = {};
668
+ userAccountDefaultValue.id = null;
669
+ userAccountDefaultValue.firstName = null;
670
+ userAccountDefaultValue.lastName = null;
671
+ return userAccountDefaultValue;
672
+ }();
673
+ }
674
+
419
675
  if (_typeof(result) === 'object' && 'content' in result) {
420
676
  resultObject.content = function () {
421
677
  if (result.content === null) {
@@ -597,11 +853,22 @@ var _default = FreshPackPackrunSummaryController;
597
853
  * @memberof Controllers.Packhouse.Site
598
854
  */
599
855
 
856
+ /**
857
+ * A **UserAccount** Type
858
+ *
859
+ * @typedef {Object} FreshPackPackrunSummaryController.UserAccount
860
+ * @property {?string} id The User Account ID
861
+ * @property {?string} firstName The User's First Name
862
+ * @property {?string} lastName The User's Last Name
863
+ * @memberof Controllers.Packhouse.Site
864
+ */
865
+
600
866
  /**
601
867
  * A **CommentItem** Type
602
868
  *
603
869
  * @typedef {Object} FreshPackPackrunSummaryController.CommentItem
604
870
  * @property {string} id The Comment ID
871
+ * @property {FreshPackPackrunSummaryController.UserAccount} userAccount
605
872
  * @property {?string} content The Content of the Comment
606
873
  * @property {?Date} createdTimestamp When the Comment was Created
607
874
  * @property {?Date} updatedTimestamp When the Comment was last Updated