@ricado/api-client 2.3.1 → 2.3.4

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 (43) 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/PackrunController.js +269 -0
  12. package/lib/Controllers/Packhouse/Site/RejectBinController.js +267 -0
  13. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +267 -0
  14. package/lib/Controllers/Packhouse/Site/ShiftController.js +271 -0
  15. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +267 -0
  16. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +267 -0
  17. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +267 -0
  18. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +268 -0
  19. package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
  20. package/lib/Models/Packhouse/Site/ShiftModel.js +44 -0
  21. package/lib/PackageVersion.js +1 -1
  22. package/lib/index.d.ts +366 -0
  23. package/package.json +1 -1
  24. package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
  25. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
  26. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
  27. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
  28. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
  29. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
  30. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
  31. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
  32. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
  33. package/src/Controllers/Packhouse/Site/PackrunController.js +357 -0
  34. package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
  35. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
  36. package/src/Controllers/Packhouse/Site/ShiftController.js +359 -0
  37. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
  38. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
  39. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
  40. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +356 -0
  41. package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
  42. package/src/Models/Packhouse/Site/ShiftModel.js +50 -0
  43. package/src/PackageVersion.js +1 -1
@@ -125,6 +125,92 @@ class PackrunController
125
125
  resultItemObject.id = "";
126
126
  }
127
127
 
128
+ if(typeof resultItem === 'object' && 'userAccount' in resultItem)
129
+ {
130
+ resultItemObject.userAccount = (function(){
131
+ let userAccountObject = {};
132
+
133
+ if(typeof resultItem.userAccount === 'object' && 'id' in resultItem.userAccount)
134
+ {
135
+ userAccountObject.id = (function(){
136
+ if(resultItem.userAccount.id === null)
137
+ {
138
+ return null;
139
+ }
140
+
141
+ if(typeof resultItem.userAccount.id !== 'string')
142
+ {
143
+ return String(resultItem.userAccount.id);
144
+ }
145
+
146
+ return resultItem.userAccount.id;
147
+ }());
148
+ }
149
+ else
150
+ {
151
+ userAccountObject.id = null;
152
+ }
153
+
154
+ if(typeof resultItem.userAccount === 'object' && 'firstName' in resultItem.userAccount)
155
+ {
156
+ userAccountObject.firstName = (function(){
157
+ if(resultItem.userAccount.firstName === null)
158
+ {
159
+ return null;
160
+ }
161
+
162
+ if(typeof resultItem.userAccount.firstName !== 'string')
163
+ {
164
+ return String(resultItem.userAccount.firstName);
165
+ }
166
+
167
+ return resultItem.userAccount.firstName;
168
+ }());
169
+ }
170
+ else
171
+ {
172
+ userAccountObject.firstName = null;
173
+ }
174
+
175
+ if(typeof resultItem.userAccount === 'object' && 'lastName' in resultItem.userAccount)
176
+ {
177
+ userAccountObject.lastName = (function(){
178
+ if(resultItem.userAccount.lastName === null)
179
+ {
180
+ return null;
181
+ }
182
+
183
+ if(typeof resultItem.userAccount.lastName !== 'string')
184
+ {
185
+ return String(resultItem.userAccount.lastName);
186
+ }
187
+
188
+ return resultItem.userAccount.lastName;
189
+ }());
190
+ }
191
+ else
192
+ {
193
+ userAccountObject.lastName = null;
194
+ }
195
+
196
+ return userAccountObject;
197
+ }());
198
+ }
199
+ else
200
+ {
201
+ resultItemObject.userAccount = (function(){
202
+ let userAccountDefaultValue = {};
203
+
204
+ userAccountDefaultValue.id = null;
205
+
206
+ userAccountDefaultValue.firstName = null;
207
+
208
+ userAccountDefaultValue.lastName = null;
209
+
210
+ return userAccountDefaultValue;
211
+ }());
212
+ }
213
+
128
214
  if(typeof resultItem === 'object' && 'content' in resultItem)
129
215
  {
130
216
  resultItemObject.content = (function(){
@@ -235,6 +321,92 @@ class PackrunController
235
321
  resultObject.id = "";
236
322
  }
237
323
 
324
+ if(typeof result === 'object' && 'userAccount' in result)
325
+ {
326
+ resultObject.userAccount = (function(){
327
+ let userAccountObject = {};
328
+
329
+ if(typeof result.userAccount === 'object' && 'id' in result.userAccount)
330
+ {
331
+ userAccountObject.id = (function(){
332
+ if(result.userAccount.id === null)
333
+ {
334
+ return null;
335
+ }
336
+
337
+ if(typeof result.userAccount.id !== 'string')
338
+ {
339
+ return String(result.userAccount.id);
340
+ }
341
+
342
+ return result.userAccount.id;
343
+ }());
344
+ }
345
+ else
346
+ {
347
+ userAccountObject.id = null;
348
+ }
349
+
350
+ if(typeof result.userAccount === 'object' && 'firstName' in result.userAccount)
351
+ {
352
+ userAccountObject.firstName = (function(){
353
+ if(result.userAccount.firstName === null)
354
+ {
355
+ return null;
356
+ }
357
+
358
+ if(typeof result.userAccount.firstName !== 'string')
359
+ {
360
+ return String(result.userAccount.firstName);
361
+ }
362
+
363
+ return result.userAccount.firstName;
364
+ }());
365
+ }
366
+ else
367
+ {
368
+ userAccountObject.firstName = null;
369
+ }
370
+
371
+ if(typeof result.userAccount === 'object' && 'lastName' in result.userAccount)
372
+ {
373
+ userAccountObject.lastName = (function(){
374
+ if(result.userAccount.lastName === null)
375
+ {
376
+ return null;
377
+ }
378
+
379
+ if(typeof result.userAccount.lastName !== 'string')
380
+ {
381
+ return String(result.userAccount.lastName);
382
+ }
383
+
384
+ return result.userAccount.lastName;
385
+ }());
386
+ }
387
+ else
388
+ {
389
+ userAccountObject.lastName = null;
390
+ }
391
+
392
+ return userAccountObject;
393
+ }());
394
+ }
395
+ else
396
+ {
397
+ resultObject.userAccount = (function(){
398
+ let userAccountDefaultValue = {};
399
+
400
+ userAccountDefaultValue.id = null;
401
+
402
+ userAccountDefaultValue.firstName = null;
403
+
404
+ userAccountDefaultValue.lastName = null;
405
+
406
+ return userAccountDefaultValue;
407
+ }());
408
+ }
409
+
238
410
  if(typeof result === 'object' && 'content' in result)
239
411
  {
240
412
  resultObject.content = (function(){
@@ -343,6 +515,92 @@ class PackrunController
343
515
  resultObject.id = "";
344
516
  }
345
517
 
518
+ if(typeof result === 'object' && 'userAccount' in result)
519
+ {
520
+ resultObject.userAccount = (function(){
521
+ let userAccountObject = {};
522
+
523
+ if(typeof result.userAccount === 'object' && 'id' in result.userAccount)
524
+ {
525
+ userAccountObject.id = (function(){
526
+ if(result.userAccount.id === null)
527
+ {
528
+ return null;
529
+ }
530
+
531
+ if(typeof result.userAccount.id !== 'string')
532
+ {
533
+ return String(result.userAccount.id);
534
+ }
535
+
536
+ return result.userAccount.id;
537
+ }());
538
+ }
539
+ else
540
+ {
541
+ userAccountObject.id = null;
542
+ }
543
+
544
+ if(typeof result.userAccount === 'object' && 'firstName' in result.userAccount)
545
+ {
546
+ userAccountObject.firstName = (function(){
547
+ if(result.userAccount.firstName === null)
548
+ {
549
+ return null;
550
+ }
551
+
552
+ if(typeof result.userAccount.firstName !== 'string')
553
+ {
554
+ return String(result.userAccount.firstName);
555
+ }
556
+
557
+ return result.userAccount.firstName;
558
+ }());
559
+ }
560
+ else
561
+ {
562
+ userAccountObject.firstName = null;
563
+ }
564
+
565
+ if(typeof result.userAccount === 'object' && 'lastName' in result.userAccount)
566
+ {
567
+ userAccountObject.lastName = (function(){
568
+ if(result.userAccount.lastName === null)
569
+ {
570
+ return null;
571
+ }
572
+
573
+ if(typeof result.userAccount.lastName !== 'string')
574
+ {
575
+ return String(result.userAccount.lastName);
576
+ }
577
+
578
+ return result.userAccount.lastName;
579
+ }());
580
+ }
581
+ else
582
+ {
583
+ userAccountObject.lastName = null;
584
+ }
585
+
586
+ return userAccountObject;
587
+ }());
588
+ }
589
+ else
590
+ {
591
+ resultObject.userAccount = (function(){
592
+ let userAccountDefaultValue = {};
593
+
594
+ userAccountDefaultValue.id = null;
595
+
596
+ userAccountDefaultValue.firstName = null;
597
+
598
+ userAccountDefaultValue.lastName = null;
599
+
600
+ return userAccountDefaultValue;
601
+ }());
602
+ }
603
+
346
604
  if(typeof result === 'object' && 'content' in result)
347
605
  {
348
606
  resultObject.content = (function(){
@@ -452,6 +710,92 @@ class PackrunController
452
710
  resultObject.id = "";
453
711
  }
454
712
 
713
+ if(typeof result === 'object' && 'userAccount' in result)
714
+ {
715
+ resultObject.userAccount = (function(){
716
+ let userAccountObject = {};
717
+
718
+ if(typeof result.userAccount === 'object' && 'id' in result.userAccount)
719
+ {
720
+ userAccountObject.id = (function(){
721
+ if(result.userAccount.id === null)
722
+ {
723
+ return null;
724
+ }
725
+
726
+ if(typeof result.userAccount.id !== 'string')
727
+ {
728
+ return String(result.userAccount.id);
729
+ }
730
+
731
+ return result.userAccount.id;
732
+ }());
733
+ }
734
+ else
735
+ {
736
+ userAccountObject.id = null;
737
+ }
738
+
739
+ if(typeof result.userAccount === 'object' && 'firstName' in result.userAccount)
740
+ {
741
+ userAccountObject.firstName = (function(){
742
+ if(result.userAccount.firstName === null)
743
+ {
744
+ return null;
745
+ }
746
+
747
+ if(typeof result.userAccount.firstName !== 'string')
748
+ {
749
+ return String(result.userAccount.firstName);
750
+ }
751
+
752
+ return result.userAccount.firstName;
753
+ }());
754
+ }
755
+ else
756
+ {
757
+ userAccountObject.firstName = null;
758
+ }
759
+
760
+ if(typeof result.userAccount === 'object' && 'lastName' in result.userAccount)
761
+ {
762
+ userAccountObject.lastName = (function(){
763
+ if(result.userAccount.lastName === null)
764
+ {
765
+ return null;
766
+ }
767
+
768
+ if(typeof result.userAccount.lastName !== 'string')
769
+ {
770
+ return String(result.userAccount.lastName);
771
+ }
772
+
773
+ return result.userAccount.lastName;
774
+ }());
775
+ }
776
+ else
777
+ {
778
+ userAccountObject.lastName = null;
779
+ }
780
+
781
+ return userAccountObject;
782
+ }());
783
+ }
784
+ else
785
+ {
786
+ resultObject.userAccount = (function(){
787
+ let userAccountDefaultValue = {};
788
+
789
+ userAccountDefaultValue.id = null;
790
+
791
+ userAccountDefaultValue.firstName = null;
792
+
793
+ userAccountDefaultValue.lastName = null;
794
+
795
+ return userAccountDefaultValue;
796
+ }());
797
+ }
798
+
455
799
  if(typeof result === 'object' && 'content' in result)
456
800
  {
457
801
  resultObject.content = (function(){
@@ -2036,6 +2380,8 @@ export default PackrunController;
2036
2380
  * @property {string} [growerName] The Grower Name for this Packrun
2037
2381
  * @property {string} [growerCode] The Grower Code for this Packrun
2038
2382
  * @property {string} [maturityArea] The Maturity Area for this Packrun
2383
+ * @property {?Date} [startTimestamp] When this Packrun was Started
2384
+ * @property {?Date} [finishTimestamp] When this Packrun was Finished
2039
2385
  * @property {string} [varietyId] The Variety for this Packrun
2040
2386
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
2041
2387
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
@@ -2092,11 +2438,22 @@ export default PackrunController;
2092
2438
  * @memberof Controllers.Packhouse.Site
2093
2439
  */
2094
2440
 
2441
+ /**
2442
+ * A **UserAccount** Type
2443
+ *
2444
+ * @typedef {Object} PackrunController.UserAccount
2445
+ * @property {?string} id The User Account ID
2446
+ * @property {?string} firstName The User's First Name
2447
+ * @property {?string} lastName The User's Last Name
2448
+ * @memberof Controllers.Packhouse.Site
2449
+ */
2450
+
2095
2451
  /**
2096
2452
  * A **CommentItem** Type
2097
2453
  *
2098
2454
  * @typedef {Object} PackrunController.CommentItem
2099
2455
  * @property {string} id The Comment ID
2456
+ * @property {PackrunController.UserAccount} userAccount
2100
2457
  * @property {?string} content The Content of the Comment
2101
2458
  * @property {?Date} createdTimestamp When the Comment was Created
2102
2459
  * @property {?Date} updatedTimestamp When the Comment was last Updated