@ricado/api-client 2.3.1 → 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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/PackrunController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +267 -0
- package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +324 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/PackrunController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +355 -0
- package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
- 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(){
|
|
@@ -669,11 +1013,22 @@ export default ShiftController;
|
|
|
669
1013
|
* @memberof Controllers.Packhouse.Site
|
|
670
1014
|
*/
|
|
671
1015
|
|
|
1016
|
+
/**
|
|
1017
|
+
* A **UserAccount** Type
|
|
1018
|
+
*
|
|
1019
|
+
* @typedef {Object} ShiftController.UserAccount
|
|
1020
|
+
* @property {?string} id The User Account ID
|
|
1021
|
+
* @property {?string} firstName The User's First Name
|
|
1022
|
+
* @property {?string} lastName The User's Last Name
|
|
1023
|
+
* @memberof Controllers.Packhouse.Site
|
|
1024
|
+
*/
|
|
1025
|
+
|
|
672
1026
|
/**
|
|
673
1027
|
* A **CommentItem** Type
|
|
674
1028
|
*
|
|
675
1029
|
* @typedef {Object} ShiftController.CommentItem
|
|
676
1030
|
* @property {string} id The Comment ID
|
|
1031
|
+
* @property {ShiftController.UserAccount} userAccount
|
|
677
1032
|
* @property {?string} content The Content of the Comment
|
|
678
1033
|
* @property {?Date} createdTimestamp When the Comment was Created
|
|
679
1034
|
* @property {?Date} updatedTimestamp When the Comment was last Updated
|