@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
@@ -125,6 +125,92 @@ class ShiftController
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 ShiftController
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 ShiftController
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 ShiftController
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(){
@@ -641,6 +985,8 @@ export default ShiftController;
641
985
  * @property {?Date} [finishTimestamp] When this Shift was Finished
642
986
  * @property {?Date} [publishTimestamp] When this Shift was Published
643
987
  * @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
988
+ * @property {?number} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
989
+ * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
644
990
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
645
991
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
646
992
  * @property {ShiftController.ShiftSchedule} schedule The Schedule for this Shift
@@ -663,17 +1009,30 @@ export default ShiftController;
663
1009
  * @property {?Date} [finishTimestamp] When this Shift was Finished
664
1010
  * @property {?Date} [publishTimestamp] When this Shift was Published
665
1011
  * @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
1012
+ * @property {?number} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
1013
+ * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
666
1014
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
667
1015
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
668
1016
  * @property {ShiftController.ShiftSchedule} [schedule] The Schedule for this Shift
669
1017
  * @memberof Controllers.Packhouse.Site
670
1018
  */
671
1019
 
1020
+ /**
1021
+ * A **UserAccount** Type
1022
+ *
1023
+ * @typedef {Object} ShiftController.UserAccount
1024
+ * @property {?string} id The User Account ID
1025
+ * @property {?string} firstName The User's First Name
1026
+ * @property {?string} lastName The User's Last Name
1027
+ * @memberof Controllers.Packhouse.Site
1028
+ */
1029
+
672
1030
  /**
673
1031
  * A **CommentItem** Type
674
1032
  *
675
1033
  * @typedef {Object} ShiftController.CommentItem
676
1034
  * @property {string} id The Comment ID
1035
+ * @property {ShiftController.UserAccount} userAccount
677
1036
  * @property {?string} content The Content of the Comment
678
1037
  * @property {?Date} createdTimestamp When the Comment was Created
679
1038
  * @property {?Date} updatedTimestamp When the Comment was last Updated