@ricado/api-client 2.3.0 → 2.3.3

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 (47) 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 +269 -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 +271 -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 +268 -0
  20. package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
  21. package/lib/Models/Packhouse/Site/PackingLineModel.js +44 -0
  22. package/lib/Models/Packhouse/Site/ShiftModel.js +44 -0
  23. package/lib/PackageVersion.js +1 -1
  24. package/lib/index.d.ts +396 -0
  25. package/package.json +1 -1
  26. package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
  27. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
  28. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
  29. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
  30. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
  31. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
  32. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
  33. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
  34. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
  35. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -0
  36. package/src/Controllers/Packhouse/Site/PackrunController.js +357 -0
  37. package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
  38. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
  39. package/src/Controllers/Packhouse/Site/ShiftController.js +359 -0
  40. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
  41. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
  42. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
  43. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +356 -0
  44. package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
  45. package/src/Models/Packhouse/Site/PackingLineModel.js +50 -0
  46. package/src/Models/Packhouse/Site/ShiftModel.js +50 -0
  47. package/src/PackageVersion.js +1 -1
@@ -139,6 +139,70 @@ var FreshQualityPackrunSummaryController = /*#__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 FreshQualityPackrunSummaryController = /*#__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 FreshQualityPackrunSummaryController = /*#__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 FreshQualityPackrunSummaryController = /*#__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) {
@@ -601,11 +857,22 @@ var _default = FreshQualityPackrunSummaryController;
601
857
  * @memberof Controllers.Packhouse.Site
602
858
  */
603
859
 
860
+ /**
861
+ * A **UserAccount** Type
862
+ *
863
+ * @typedef {Object} FreshQualityPackrunSummaryController.UserAccount
864
+ * @property {?string} id The User Account ID
865
+ * @property {?string} firstName The User's First Name
866
+ * @property {?string} lastName The User's Last Name
867
+ * @memberof Controllers.Packhouse.Site
868
+ */
869
+
604
870
  /**
605
871
  * A **CommentItem** Type
606
872
  *
607
873
  * @typedef {Object} FreshQualityPackrunSummaryController.CommentItem
608
874
  * @property {string} id The Comment ID
875
+ * @property {FreshQualityPackrunSummaryController.UserAccount} userAccount
609
876
  * @property {?string} content The Content of the Comment
610
877
  * @property {?Date} createdTimestamp When the Comment was Created
611
878
  * @property {?Date} updatedTimestamp When the Comment was last Updated
@@ -188,6 +188,8 @@ var _default = PackingLineController;
188
188
  * @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
189
189
  * @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
190
190
  * @property {?PackingLineController.ShiftManagement} [shiftManagement] The Optional Shift Management Object for this Packing Line
191
+ * @property {?Object} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
192
+ * @property {?Object} [mafIntegration] The MAF Integration Configuration for this Packing Line
191
193
  * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
192
194
  * @property {?Object} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
193
195
  * @memberof Controllers.Packhouse.Site
@@ -207,6 +209,8 @@ var _default = PackingLineController;
207
209
  * @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
208
210
  * @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
209
211
  * @property {?PackingLineController.ShiftManagement} [shiftManagement] The Optional Shift Management Object for this Packing Line
212
+ * @property {?Object} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
213
+ * @property {?Object} [mafIntegration] The MAF Integration Configuration for this Packing Line
210
214
  * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
211
215
  * @property {?Object} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
212
216
  * @memberof Controllers.Packhouse.Site
@@ -139,6 +139,70 @@ var PackrunController = /*#__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 PackrunController = /*#__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 PackrunController = /*#__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 PackrunController = /*#__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) {
@@ -1664,6 +1920,8 @@ var _default = PackrunController;
1664
1920
  * @property {string} [growerName] The Grower Name for this Packrun
1665
1921
  * @property {string} [growerCode] The Grower Code for this Packrun
1666
1922
  * @property {string} [maturityArea] The Maturity Area for this Packrun
1923
+ * @property {?Date} [startTimestamp] When this Packrun was Started
1924
+ * @property {?Date} [finishTimestamp] When this Packrun was Finished
1667
1925
  * @property {string} [varietyId] The Variety for this Packrun
1668
1926
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
1669
1927
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
@@ -1720,11 +1978,22 @@ var _default = PackrunController;
1720
1978
  * @memberof Controllers.Packhouse.Site
1721
1979
  */
1722
1980
 
1981
+ /**
1982
+ * A **UserAccount** Type
1983
+ *
1984
+ * @typedef {Object} PackrunController.UserAccount
1985
+ * @property {?string} id The User Account ID
1986
+ * @property {?string} firstName The User's First Name
1987
+ * @property {?string} lastName The User's Last Name
1988
+ * @memberof Controllers.Packhouse.Site
1989
+ */
1990
+
1723
1991
  /**
1724
1992
  * A **CommentItem** Type
1725
1993
  *
1726
1994
  * @typedef {Object} PackrunController.CommentItem
1727
1995
  * @property {string} id The Comment ID
1996
+ * @property {PackrunController.UserAccount} userAccount
1728
1997
  * @property {?string} content The Content of the Comment
1729
1998
  * @property {?Date} createdTimestamp When the Comment was Created
1730
1999
  * @property {?Date} updatedTimestamp When the Comment was last Updated