@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.
- 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/PackingLineController.js +4 -0
- package/lib/Controllers/Packhouse/Site/PackrunController.js +269 -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 +271 -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 +268 -0
- package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +44 -0
- package/lib/Models/Packhouse/Site/ShiftModel.js +44 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +396 -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/PackingLineController.js +4 -0
- package/src/Controllers/Packhouse/Site/PackrunController.js +357 -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 +359 -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 +356 -0
- package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +50 -0
- package/src/Models/Packhouse/Site/ShiftModel.js +50 -0
- package/src/PackageVersion.js +1 -1
|
@@ -125,6 +125,92 @@ class PermanentObjectDataController
|
|
|
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 PermanentObjectDataController
|
|
|
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 PermanentObjectDataController
|
|
|
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 PermanentObjectDataController
|
|
|
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(){
|
|
@@ -642,11 +986,22 @@ export default PermanentObjectDataController;
|
|
|
642
986
|
* @memberof Controllers.Site
|
|
643
987
|
*/
|
|
644
988
|
|
|
989
|
+
/**
|
|
990
|
+
* A **UserAccount** Type
|
|
991
|
+
*
|
|
992
|
+
* @typedef {Object} PermanentObjectDataController.UserAccount
|
|
993
|
+
* @property {?string} id The User Account ID
|
|
994
|
+
* @property {?string} firstName The User's First Name
|
|
995
|
+
* @property {?string} lastName The User's Last Name
|
|
996
|
+
* @memberof Controllers.Site
|
|
997
|
+
*/
|
|
998
|
+
|
|
645
999
|
/**
|
|
646
1000
|
* A **CommentItem** Type
|
|
647
1001
|
*
|
|
648
1002
|
* @typedef {Object} PermanentObjectDataController.CommentItem
|
|
649
1003
|
* @property {string} id The Comment ID
|
|
1004
|
+
* @property {PermanentObjectDataController.UserAccount} userAccount
|
|
650
1005
|
* @property {?string} content The Content of the Comment
|
|
651
1006
|
* @property {?Date} createdTimestamp When the Comment was Created
|
|
652
1007
|
* @property {?Date} updatedTimestamp When the Comment was last Updated
|
|
@@ -121,6 +121,22 @@ class PackingLineModel extends BaseModel
|
|
|
121
121
|
*/
|
|
122
122
|
this.shiftManagement = null;
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* The Advanced Packrun Management Configuration for this Packing Line
|
|
126
|
+
*
|
|
127
|
+
* @type {?Object}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.advancedPackrunManagement = null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The MAF Integration Configuration for this Packing Line
|
|
134
|
+
*
|
|
135
|
+
* @type {?Object}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.mafIntegration = null;
|
|
139
|
+
|
|
124
140
|
/**
|
|
125
141
|
* The FreshPack Integration Configuration for this Packing Line
|
|
126
142
|
*
|
|
@@ -1271,6 +1287,40 @@ class PackingLineModel extends BaseModel
|
|
|
1271
1287
|
}());
|
|
1272
1288
|
}
|
|
1273
1289
|
|
|
1290
|
+
if('advancedPackrunManagement' in jsonObject)
|
|
1291
|
+
{
|
|
1292
|
+
model.advancedPackrunManagement = (function(){
|
|
1293
|
+
if(jsonObject['advancedPackrunManagement'] === null)
|
|
1294
|
+
{
|
|
1295
|
+
return null;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if(typeof jsonObject['advancedPackrunManagement'] !== 'object')
|
|
1299
|
+
{
|
|
1300
|
+
return Object(jsonObject['advancedPackrunManagement']);
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
return jsonObject['advancedPackrunManagement'];
|
|
1304
|
+
}());
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
if('mafIntegration' in jsonObject)
|
|
1308
|
+
{
|
|
1309
|
+
model.mafIntegration = (function(){
|
|
1310
|
+
if(jsonObject['mafIntegration'] === null)
|
|
1311
|
+
{
|
|
1312
|
+
return null;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
if(typeof jsonObject['mafIntegration'] !== 'object')
|
|
1316
|
+
{
|
|
1317
|
+
return Object(jsonObject['mafIntegration']);
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
return jsonObject['mafIntegration'];
|
|
1321
|
+
}());
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1274
1324
|
if('freshPackIntegration' in jsonObject)
|
|
1275
1325
|
{
|
|
1276
1326
|
model.freshPackIntegration = (function(){
|
|
@@ -129,6 +129,22 @@ class ShiftModel extends BaseModel
|
|
|
129
129
|
*/
|
|
130
130
|
this.satisfactionRating = null;
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
134
|
+
*
|
|
135
|
+
* @type {?number}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.keyCelebration = null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
142
|
+
*
|
|
143
|
+
* @type {?string}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.keyChallenge = null;
|
|
147
|
+
|
|
132
148
|
/**
|
|
133
149
|
* *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
134
150
|
*
|
|
@@ -426,6 +442,40 @@ class ShiftModel extends BaseModel
|
|
|
426
442
|
}());
|
|
427
443
|
}
|
|
428
444
|
|
|
445
|
+
if('keyCelebration' in jsonObject)
|
|
446
|
+
{
|
|
447
|
+
model.keyCelebration = (function(){
|
|
448
|
+
if(jsonObject['keyCelebration'] === null)
|
|
449
|
+
{
|
|
450
|
+
return null;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if(typeof jsonObject['keyCelebration'] !== 'number')
|
|
454
|
+
{
|
|
455
|
+
return Number.isInteger(Number(jsonObject['keyCelebration'])) ? Number(jsonObject['keyCelebration']) : Math.floor(Number(jsonObject['keyCelebration']));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return Number.isInteger(jsonObject['keyCelebration']) ? jsonObject['keyCelebration'] : Math.floor(jsonObject['keyCelebration']);
|
|
459
|
+
}());
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if('keyChallenge' in jsonObject)
|
|
463
|
+
{
|
|
464
|
+
model.keyChallenge = (function(){
|
|
465
|
+
if(jsonObject['keyChallenge'] === null)
|
|
466
|
+
{
|
|
467
|
+
return null;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if(typeof jsonObject['keyChallenge'] !== 'string')
|
|
471
|
+
{
|
|
472
|
+
return String(jsonObject['keyChallenge']);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return jsonObject['keyChallenge'];
|
|
476
|
+
}());
|
|
477
|
+
}
|
|
478
|
+
|
|
429
479
|
if('handoverNotes' in jsonObject)
|
|
430
480
|
{
|
|
431
481
|
model.handoverNotes = (function(){
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.3.
|
|
2
|
+
export const version = '2.3.3';
|