@ricado/api-client 2.3.2 → 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/PackrunController.js +2 -0
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +1 -0
- package/lib/Models/Packhouse/Site/ShiftModel.js +44 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +42 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +2 -0
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +1 -0
- package/src/Models/Packhouse/Site/ShiftModel.js +50 -0
- package/src/PackageVersion.js +1 -1
|
@@ -1920,6 +1920,8 @@ var _default = PackrunController;
|
|
|
1920
1920
|
* @property {string} [growerName] The Grower Name for this Packrun
|
|
1921
1921
|
* @property {string} [growerCode] The Grower Code for this Packrun
|
|
1922
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
|
|
1923
1925
|
* @property {string} [varietyId] The Variety for this Packrun
|
|
1924
1926
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
1925
1927
|
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
@@ -852,6 +852,8 @@ var _default = ShiftController;
|
|
|
852
852
|
* @property {?Date} [finishTimestamp] When this Shift was Finished
|
|
853
853
|
* @property {?Date} [publishTimestamp] When this Shift was Published
|
|
854
854
|
* @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
855
|
+
* @property {?number} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
856
|
+
* @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
855
857
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
856
858
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
857
859
|
* @property {ShiftController.ShiftSchedule} schedule The Schedule for this Shift
|
|
@@ -874,6 +876,8 @@ var _default = ShiftController;
|
|
|
874
876
|
* @property {?Date} [finishTimestamp] When this Shift was Finished
|
|
875
877
|
* @property {?Date} [publishTimestamp] When this Shift was Published
|
|
876
878
|
* @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
879
|
+
* @property {?number} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
880
|
+
* @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
877
881
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
878
882
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
879
883
|
* @property {ShiftController.ShiftSchedule} [schedule] The Schedule for this Shift
|
|
@@ -824,6 +824,7 @@ var _default = ShiftTaskController;
|
|
|
824
824
|
* @typedef {Object} ShiftTaskController.GetAllQueryParameters
|
|
825
825
|
* @property {string} [packingLineId] The Packing Line ID this Task is associated with
|
|
826
826
|
* @property {string} [shiftId] The Shift ID this Task is asssociated with
|
|
827
|
+
* @property {?Date} [completedTimestamp] When this Task was Completed
|
|
827
828
|
* @property {?string} [authorUserId] The User ID of the Author for this Task
|
|
828
829
|
* @property {string} [authorName] The Name of the Author for this Task
|
|
829
830
|
* @property {string} [type] The Task Type
|
|
@@ -159,6 +159,22 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
161
|
_this.satisfactionRating = null;
|
|
162
|
+
/**
|
|
163
|
+
* An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
164
|
+
*
|
|
165
|
+
* @type {?number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.keyCelebration = null;
|
|
170
|
+
/**
|
|
171
|
+
* An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
172
|
+
*
|
|
173
|
+
* @type {?string}
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
_this.keyChallenge = null;
|
|
162
178
|
/**
|
|
163
179
|
* *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
164
180
|
*
|
|
@@ -419,6 +435,34 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
419
435
|
}();
|
|
420
436
|
}
|
|
421
437
|
|
|
438
|
+
if ('keyCelebration' in jsonObject) {
|
|
439
|
+
model.keyCelebration = function () {
|
|
440
|
+
if (jsonObject['keyCelebration'] === null) {
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (typeof jsonObject['keyCelebration'] !== 'number') {
|
|
445
|
+
return Number.isInteger(Number(jsonObject['keyCelebration'])) ? Number(jsonObject['keyCelebration']) : Math.floor(Number(jsonObject['keyCelebration']));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return Number.isInteger(jsonObject['keyCelebration']) ? jsonObject['keyCelebration'] : Math.floor(jsonObject['keyCelebration']);
|
|
449
|
+
}();
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if ('keyChallenge' in jsonObject) {
|
|
453
|
+
model.keyChallenge = function () {
|
|
454
|
+
if (jsonObject['keyChallenge'] === null) {
|
|
455
|
+
return null;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
if (typeof jsonObject['keyChallenge'] !== 'string') {
|
|
459
|
+
return String(jsonObject['keyChallenge']);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
return jsonObject['keyChallenge'];
|
|
463
|
+
}();
|
|
464
|
+
}
|
|
465
|
+
|
|
422
466
|
if ('handoverNotes' in jsonObject) {
|
|
423
467
|
model.handoverNotes = function () {
|
|
424
468
|
if (Array.isArray(jsonObject['handoverNotes']) !== true) {
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -8969,6 +8969,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
8969
8969
|
* The Maturity Area for this Packrun
|
|
8970
8970
|
*/
|
|
8971
8971
|
maturityArea?: string;
|
|
8972
|
+
/**
|
|
8973
|
+
* When this Packrun was Started
|
|
8974
|
+
*/
|
|
8975
|
+
startTimestamp?: Date | null;
|
|
8976
|
+
/**
|
|
8977
|
+
* When this Packrun was Finished
|
|
8978
|
+
*/
|
|
8979
|
+
finishTimestamp?: Date | null;
|
|
8972
8980
|
/**
|
|
8973
8981
|
* The Variety for this Packrun
|
|
8974
8982
|
*/
|
|
@@ -10519,6 +10527,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftController' {
|
|
|
10519
10527
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
10520
10528
|
*/
|
|
10521
10529
|
satisfactionRating?: number | null;
|
|
10530
|
+
/**
|
|
10531
|
+
* An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
10532
|
+
*/
|
|
10533
|
+
keyCelebration?: number | null;
|
|
10534
|
+
/**
|
|
10535
|
+
* An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
10536
|
+
*/
|
|
10537
|
+
keyChallenge?: string | null;
|
|
10522
10538
|
/**
|
|
10523
10539
|
* DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
10524
10540
|
*/
|
|
@@ -10584,6 +10600,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftController' {
|
|
|
10584
10600
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
10585
10601
|
*/
|
|
10586
10602
|
satisfactionRating?: number | null;
|
|
10603
|
+
/**
|
|
10604
|
+
* An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
10605
|
+
*/
|
|
10606
|
+
keyCelebration?: number | null;
|
|
10607
|
+
/**
|
|
10608
|
+
* An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
10609
|
+
*/
|
|
10610
|
+
keyChallenge?: string | null;
|
|
10587
10611
|
/**
|
|
10588
10612
|
* DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
10589
10613
|
*/
|
|
@@ -12030,6 +12054,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskControlle
|
|
|
12030
12054
|
* The Shift ID this Task is asssociated with
|
|
12031
12055
|
*/
|
|
12032
12056
|
shiftId?: string;
|
|
12057
|
+
/**
|
|
12058
|
+
* When this Task was Completed
|
|
12059
|
+
*/
|
|
12060
|
+
completedTimestamp?: Date | null;
|
|
12033
12061
|
/**
|
|
12034
12062
|
* The User ID of the Author for this Task
|
|
12035
12063
|
*/
|
|
@@ -15391,6 +15419,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftModel' {
|
|
|
15391
15419
|
* @public
|
|
15392
15420
|
*/
|
|
15393
15421
|
satisfactionRating: number | null;
|
|
15422
|
+
/**
|
|
15423
|
+
* An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
15424
|
+
*
|
|
15425
|
+
* @type {?number}
|
|
15426
|
+
* @public
|
|
15427
|
+
*/
|
|
15428
|
+
keyCelebration: number | null;
|
|
15429
|
+
/**
|
|
15430
|
+
* An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
15431
|
+
*
|
|
15432
|
+
* @type {?string}
|
|
15433
|
+
* @public
|
|
15434
|
+
*/
|
|
15435
|
+
keyChallenge: string | null;
|
|
15394
15436
|
/**
|
|
15395
15437
|
* *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
15396
15438
|
*
|
package/package.json
CHANGED
|
@@ -2380,6 +2380,8 @@ export default PackrunController;
|
|
|
2380
2380
|
* @property {string} [growerName] The Grower Name for this Packrun
|
|
2381
2381
|
* @property {string} [growerCode] The Grower Code for this Packrun
|
|
2382
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
|
|
2383
2385
|
* @property {string} [varietyId] The Variety for this Packrun
|
|
2384
2386
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
2385
2387
|
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
@@ -985,6 +985,8 @@ export default ShiftController;
|
|
|
985
985
|
* @property {?Date} [finishTimestamp] When this Shift was Finished
|
|
986
986
|
* @property {?Date} [publishTimestamp] When this Shift was Published
|
|
987
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
|
|
988
990
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
989
991
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
990
992
|
* @property {ShiftController.ShiftSchedule} schedule The Schedule for this Shift
|
|
@@ -1007,6 +1009,8 @@ export default ShiftController;
|
|
|
1007
1009
|
* @property {?Date} [finishTimestamp] When this Shift was Finished
|
|
1008
1010
|
* @property {?Date} [publishTimestamp] When this Shift was Published
|
|
1009
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
|
|
1010
1014
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
1011
1015
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
1012
1016
|
* @property {ShiftController.ShiftSchedule} [schedule] The Schedule for this Shift
|
|
@@ -957,6 +957,7 @@ export default ShiftTaskController;
|
|
|
957
957
|
* @typedef {Object} ShiftTaskController.GetAllQueryParameters
|
|
958
958
|
* @property {string} [packingLineId] The Packing Line ID this Task is associated with
|
|
959
959
|
* @property {string} [shiftId] The Shift ID this Task is asssociated with
|
|
960
|
+
* @property {?Date} [completedTimestamp] When this Task was Completed
|
|
960
961
|
* @property {?string} [authorUserId] The User ID of the Author for this Task
|
|
961
962
|
* @property {string} [authorName] The Name of the Author for this Task
|
|
962
963
|
* @property {string} [type] The Task Type
|
|
@@ -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';
|