@ricado/api-client 2.3.3 → 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.
@@ -852,7 +852,7 @@ 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
855
+ * @property {?string} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
856
856
  * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
857
857
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
858
858
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
@@ -876,7 +876,7 @@ var _default = ShiftController;
876
876
  * @property {?Date} [finishTimestamp] When this Shift was Finished
877
877
  * @property {?Date} [publishTimestamp] When this Shift was Published
878
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
879
+ * @property {?string} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
880
880
  * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
881
881
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
882
882
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
@@ -162,7 +162,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
162
162
  /**
163
163
  * An Optional Key Celebration the Line Manager and Team experienced during this Shift
164
164
  *
165
- * @type {?number}
165
+ * @type {?string}
166
166
  * @public
167
167
  */
168
168
 
@@ -441,11 +441,11 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
441
441
  return null;
442
442
  }
443
443
 
444
- if (typeof jsonObject['keyCelebration'] !== 'number') {
445
- return Number.isInteger(Number(jsonObject['keyCelebration'])) ? Number(jsonObject['keyCelebration']) : Math.floor(Number(jsonObject['keyCelebration']));
444
+ if (typeof jsonObject['keyCelebration'] !== 'string') {
445
+ return String(jsonObject['keyCelebration']);
446
446
  }
447
447
 
448
- return Number.isInteger(jsonObject['keyCelebration']) ? jsonObject['keyCelebration'] : Math.floor(jsonObject['keyCelebration']);
448
+ return jsonObject['keyCelebration'];
449
449
  }();
450
450
  }
451
451
 
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // generated by genversion
8
- var version = '2.3.3';
8
+ var version = '2.3.4';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -10530,7 +10530,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftController' {
10530
10530
  /**
10531
10531
  * An Optional Key Celebration the Line Manager and Team experienced during this Shift
10532
10532
  */
10533
- keyCelebration?: number | null;
10533
+ keyCelebration?: string | null;
10534
10534
  /**
10535
10535
  * An Optional Key Challenge the Line Manager and Team experienced during this Shift
10536
10536
  */
@@ -10603,7 +10603,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftController' {
10603
10603
  /**
10604
10604
  * An Optional Key Celebration the Line Manager and Team experienced during this Shift
10605
10605
  */
10606
- keyCelebration?: number | null;
10606
+ keyCelebration?: string | null;
10607
10607
  /**
10608
10608
  * An Optional Key Challenge the Line Manager and Team experienced during this Shift
10609
10609
  */
@@ -15422,10 +15422,10 @@ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftModel' {
15422
15422
  /**
15423
15423
  * An Optional Key Celebration the Line Manager and Team experienced during this Shift
15424
15424
  *
15425
- * @type {?number}
15425
+ * @type {?string}
15426
15426
  * @public
15427
15427
  */
15428
- keyCelebration: number | null;
15428
+ keyCelebration: string | null;
15429
15429
  /**
15430
15430
  * An Optional Key Challenge the Line Manager and Team experienced during this Shift
15431
15431
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -985,7 +985,7 @@ 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
988
+ * @property {?string} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
989
989
  * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
990
990
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
991
991
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
@@ -1009,7 +1009,7 @@ export default ShiftController;
1009
1009
  * @property {?Date} [finishTimestamp] When this Shift was Finished
1010
1010
  * @property {?Date} [publishTimestamp] When this Shift was Published
1011
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
1012
+ * @property {?string} [keyCelebration] An Optional Key Celebration the Line Manager and Team experienced during this Shift
1013
1013
  * @property {?string} [keyChallenge] An Optional Key Challenge the Line Manager and Team experienced during this Shift
1014
1014
  * @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
1015
1015
  * @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
@@ -132,7 +132,7 @@ class ShiftModel extends BaseModel
132
132
  /**
133
133
  * An Optional Key Celebration the Line Manager and Team experienced during this Shift
134
134
  *
135
- * @type {?number}
135
+ * @type {?string}
136
136
  * @public
137
137
  */
138
138
  this.keyCelebration = null;
@@ -450,12 +450,12 @@ class ShiftModel extends BaseModel
450
450
  return null;
451
451
  }
452
452
 
453
- if(typeof jsonObject['keyCelebration'] !== 'number')
453
+ if(typeof jsonObject['keyCelebration'] !== 'string')
454
454
  {
455
- return Number.isInteger(Number(jsonObject['keyCelebration'])) ? Number(jsonObject['keyCelebration']) : Math.floor(Number(jsonObject['keyCelebration']));
455
+ return String(jsonObject['keyCelebration']);
456
456
  }
457
457
 
458
- return Number.isInteger(jsonObject['keyCelebration']) ? jsonObject['keyCelebration'] : Math.floor(jsonObject['keyCelebration']);
458
+ return jsonObject['keyCelebration'];
459
459
  }());
460
460
  }
461
461
 
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '2.3.3';
2
+ export const version = '2.3.4';