@ricado/api-client 2.7.5 → 2.7.7

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.
@@ -260,11 +260,16 @@ var _default = MAFSizerController;
260
260
  * A **MAFSizerIntegration** Type
261
261
  *
262
262
  * @typedef {Object} MAFSizerController.MAFSizerIntegration
263
- * @property {{stopBatchRequired: number}} points The Points used by this MAF Sizer Integration
263
+ * @property {{stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}} points The Points used by this MAF Sizer Integration
264
264
  * @property {boolean} enabled Whether this MAF Sizer Integration is Enabled
265
265
  * @property {number} sizerNumber The MAF Internal Number for this Sizer
266
266
  * @property {string} dumpSizerName The MAF Internal Name of this Sizer when interacting with the MAF Dump API
267
267
  * @property {string} statSizerName The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
268
+ * @property {?string} orpheaDatabaseHost The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
269
+ * @property {?number} orpheaDatabasePort The TCP Port of the MAF Orphea SQL Database for this Sizer
270
+ * @property {?string} orpheaDatabaseUsername The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
271
+ * @property {?string} orpheaDatabasePassword The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
272
+ * @property {?boolean} orpheaDatabaseEnabled Whether the MAF Orphea SQL Database Integration is Enabled
268
273
  * @memberof Controllers.Packhouse.Site
269
274
  */
270
275
 
@@ -2739,6 +2739,7 @@ var _default = PackrunController;
2739
2739
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
2740
2740
  * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
2741
2741
  * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
2742
+ * @property {?Date} [freshPackScheduledTimestamp] The FreshPack Scheduled Timestamp for this Packrun
2742
2743
  * @memberof Controllers.Packhouse.Site
2743
2744
  */
2744
2745
 
@@ -2765,6 +2766,7 @@ var _default = PackrunController;
2765
2766
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
2766
2767
  * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
2767
2768
  * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
2769
+ * @property {?Date} [freshPackScheduledTimestamp] The FreshPack Scheduled Timestamp for this Packrun
2768
2770
  * @memberof Controllers.Packhouse.Site
2769
2771
  */
2770
2772
 
@@ -173,7 +173,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
173
173
  /**
174
174
  * The MAF Integration Configuration for this MAF Sizer
175
175
  *
176
- * @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
176
+ * @type {?{points: {stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string, orpheaDatabaseHost: ?string, orpheaDatabasePort: ?number, orpheaDatabaseUsername: ?string, orpheaDatabasePassword: ?string, orpheaDatabaseEnabled: ?boolean}}
177
177
  * @public
178
178
  */
179
179
 
@@ -984,12 +984,63 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
984
984
  pointsObject.stopBatchRequired = 0;
985
985
  }
986
986
 
987
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationStatus' in jsonObject['mafIntegration'].points) {
988
+ pointsObject.orpheaDatabaseCommunicationStatus = function () {
989
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus === null) {
990
+ return null;
991
+ }
992
+
993
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus !== 'number') {
994
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus));
995
+ }
996
+
997
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus);
998
+ }();
999
+ } else {
1000
+ pointsObject.orpheaDatabaseCommunicationStatus = null;
1001
+ }
1002
+
1003
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationLastCheck' in jsonObject['mafIntegration'].points) {
1004
+ pointsObject.orpheaDatabaseCommunicationLastCheck = function () {
1005
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck === null) {
1006
+ return null;
1007
+ }
1008
+
1009
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck !== 'number') {
1010
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck));
1011
+ }
1012
+
1013
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck);
1014
+ }();
1015
+ } else {
1016
+ pointsObject.orpheaDatabaseCommunicationLastCheck = null;
1017
+ }
1018
+
1019
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationLastError' in jsonObject['mafIntegration'].points) {
1020
+ pointsObject.orpheaDatabaseCommunicationLastError = function () {
1021
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError === null) {
1022
+ return null;
1023
+ }
1024
+
1025
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError !== 'number') {
1026
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError));
1027
+ }
1028
+
1029
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError);
1030
+ }();
1031
+ } else {
1032
+ pointsObject.orpheaDatabaseCommunicationLastError = null;
1033
+ }
1034
+
987
1035
  return pointsObject;
988
1036
  }();
989
1037
  } else {
990
1038
  mafIntegrationObject.points = function () {
991
1039
  var pointsDefaultValue = {};
992
1040
  pointsDefaultValue.stopBatchRequired = 0;
1041
+ pointsDefaultValue.orpheaDatabaseCommunicationStatus = null;
1042
+ pointsDefaultValue.orpheaDatabaseCommunicationLastCheck = null;
1043
+ pointsDefaultValue.orpheaDatabaseCommunicationLastError = null;
993
1044
  return pointsDefaultValue;
994
1045
  }();
995
1046
  }
@@ -1009,10 +1060,10 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
1009
1060
  if (_typeof(jsonObject['mafIntegration']) === 'object' && 'sizerNumber' in jsonObject['mafIntegration']) {
1010
1061
  mafIntegrationObject.sizerNumber = function () {
1011
1062
  if (typeof jsonObject['mafIntegration'].sizerNumber !== 'number') {
1012
- return Number(jsonObject['mafIntegration'].sizerNumber);
1063
+ return Number.isInteger(Number(jsonObject['mafIntegration'].sizerNumber)) ? Number(jsonObject['mafIntegration'].sizerNumber) : Math.floor(Number(jsonObject['mafIntegration'].sizerNumber));
1013
1064
  }
1014
1065
 
1015
- return jsonObject['mafIntegration'].sizerNumber;
1066
+ return Number.isInteger(jsonObject['mafIntegration'].sizerNumber) ? jsonObject['mafIntegration'].sizerNumber : Math.floor(jsonObject['mafIntegration'].sizerNumber);
1016
1067
  }();
1017
1068
  } else {
1018
1069
  mafIntegrationObject.sizerNumber = 0;
@@ -1042,6 +1093,86 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
1042
1093
  mafIntegrationObject.statSizerName = "";
1043
1094
  }
1044
1095
 
1096
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseHost' in jsonObject['mafIntegration']) {
1097
+ mafIntegrationObject.orpheaDatabaseHost = function () {
1098
+ if (jsonObject['mafIntegration'].orpheaDatabaseHost === null) {
1099
+ return null;
1100
+ }
1101
+
1102
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseHost !== 'string') {
1103
+ return String(jsonObject['mafIntegration'].orpheaDatabaseHost);
1104
+ }
1105
+
1106
+ return jsonObject['mafIntegration'].orpheaDatabaseHost;
1107
+ }();
1108
+ } else {
1109
+ mafIntegrationObject.orpheaDatabaseHost = null;
1110
+ }
1111
+
1112
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabasePort' in jsonObject['mafIntegration']) {
1113
+ mafIntegrationObject.orpheaDatabasePort = function () {
1114
+ if (jsonObject['mafIntegration'].orpheaDatabasePort === null) {
1115
+ return null;
1116
+ }
1117
+
1118
+ if (typeof jsonObject['mafIntegration'].orpheaDatabasePort !== 'number') {
1119
+ return Number.isInteger(Number(jsonObject['mafIntegration'].orpheaDatabasePort)) ? Number(jsonObject['mafIntegration'].orpheaDatabasePort) : Math.floor(Number(jsonObject['mafIntegration'].orpheaDatabasePort));
1120
+ }
1121
+
1122
+ return Number.isInteger(jsonObject['mafIntegration'].orpheaDatabasePort) ? jsonObject['mafIntegration'].orpheaDatabasePort : Math.floor(jsonObject['mafIntegration'].orpheaDatabasePort);
1123
+ }();
1124
+ } else {
1125
+ mafIntegrationObject.orpheaDatabasePort = null;
1126
+ }
1127
+
1128
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseUsername' in jsonObject['mafIntegration']) {
1129
+ mafIntegrationObject.orpheaDatabaseUsername = function () {
1130
+ if (jsonObject['mafIntegration'].orpheaDatabaseUsername === null) {
1131
+ return null;
1132
+ }
1133
+
1134
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseUsername !== 'string') {
1135
+ return String(jsonObject['mafIntegration'].orpheaDatabaseUsername);
1136
+ }
1137
+
1138
+ return jsonObject['mafIntegration'].orpheaDatabaseUsername;
1139
+ }();
1140
+ } else {
1141
+ mafIntegrationObject.orpheaDatabaseUsername = null;
1142
+ }
1143
+
1144
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabasePassword' in jsonObject['mafIntegration']) {
1145
+ mafIntegrationObject.orpheaDatabasePassword = function () {
1146
+ if (jsonObject['mafIntegration'].orpheaDatabasePassword === null) {
1147
+ return null;
1148
+ }
1149
+
1150
+ if (typeof jsonObject['mafIntegration'].orpheaDatabasePassword !== 'string') {
1151
+ return String(jsonObject['mafIntegration'].orpheaDatabasePassword);
1152
+ }
1153
+
1154
+ return jsonObject['mafIntegration'].orpheaDatabasePassword;
1155
+ }();
1156
+ } else {
1157
+ mafIntegrationObject.orpheaDatabasePassword = null;
1158
+ }
1159
+
1160
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseEnabled' in jsonObject['mafIntegration']) {
1161
+ mafIntegrationObject.orpheaDatabaseEnabled = function () {
1162
+ if (jsonObject['mafIntegration'].orpheaDatabaseEnabled === null) {
1163
+ return null;
1164
+ }
1165
+
1166
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseEnabled !== 'boolean') {
1167
+ return Boolean(jsonObject['mafIntegration'].orpheaDatabaseEnabled);
1168
+ }
1169
+
1170
+ return jsonObject['mafIntegration'].orpheaDatabaseEnabled;
1171
+ }();
1172
+ } else {
1173
+ mafIntegrationObject.orpheaDatabaseEnabled = null;
1174
+ }
1175
+
1045
1176
  return mafIntegrationObject;
1046
1177
  }();
1047
1178
  }
@@ -223,6 +223,14 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
223
223
  */
224
224
 
225
225
  _this.freshPackInitialTippedBins = null;
226
+ /**
227
+ * The FreshPack Scheduled Timestamp for this Packrun
228
+ *
229
+ * @type {?Date}
230
+ * @public
231
+ */
232
+
233
+ _this.freshPackScheduledTimestamp = null;
226
234
  /**
227
235
  * Whether the Packrun has been deleted
228
236
  *
@@ -562,6 +570,20 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
562
570
  }();
563
571
  }
564
572
 
573
+ if ('freshPackScheduledTimestamp' in jsonObject) {
574
+ model.freshPackScheduledTimestamp = function () {
575
+ if (jsonObject['freshPackScheduledTimestamp'] === null) {
576
+ return null;
577
+ }
578
+
579
+ if (typeof jsonObject['freshPackScheduledTimestamp'] !== 'string') {
580
+ return new Date(String(jsonObject['freshPackScheduledTimestamp']));
581
+ }
582
+
583
+ return new Date(jsonObject['freshPackScheduledTimestamp']);
584
+ }();
585
+ }
586
+
565
587
  if ('deleted' in jsonObject) {
566
588
  model.deleted = function () {
567
589
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -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.7.5';
8
+ var version = '2.7.7';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -14950,6 +14950,9 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/MAFSizerController
14950
14950
  */
14951
14951
  points: {
14952
14952
  stopBatchRequired: number;
14953
+ orpheaDatabaseCommunicationStatus: number | null;
14954
+ orpheaDatabaseCommunicationLastCheck: number | null;
14955
+ orpheaDatabaseCommunicationLastError: number | null;
14953
14956
  };
14954
14957
  /**
14955
14958
  * Whether this MAF Sizer Integration is Enabled
@@ -14967,6 +14970,26 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/MAFSizerController
14967
14970
  * The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
14968
14971
  */
14969
14972
  statSizerName: string;
14973
+ /**
14974
+ * The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
14975
+ */
14976
+ orpheaDatabaseHost: string | null;
14977
+ /**
14978
+ * The TCP Port of the MAF Orphea SQL Database for this Sizer
14979
+ */
14980
+ orpheaDatabasePort: number | null;
14981
+ /**
14982
+ * The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
14983
+ */
14984
+ orpheaDatabaseUsername: string | null;
14985
+ /**
14986
+ * The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
14987
+ */
14988
+ orpheaDatabasePassword: string | null;
14989
+ /**
14990
+ * Whether the MAF Orphea SQL Database Integration is Enabled
14991
+ */
14992
+ orpheaDatabaseEnabled: boolean | null;
14970
14993
  };
14971
14994
  /**
14972
14995
  * A **RiserSource** Type
@@ -17506,6 +17529,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17506
17529
  * The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
17507
17530
  */
17508
17531
  freshPackInitialTippedBins?: number | null | undefined;
17532
+ /**
17533
+ * The FreshPack Scheduled Timestamp for this Packrun
17534
+ */
17535
+ freshPackScheduledTimestamp?: Date | null | undefined;
17509
17536
  };
17510
17537
  /**
17511
17538
  * The Update Data for a Packrun
@@ -17587,6 +17614,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17587
17614
  * The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
17588
17615
  */
17589
17616
  freshPackInitialTippedBins?: number | null | undefined;
17617
+ /**
17618
+ * The FreshPack Scheduled Timestamp for this Packrun
17619
+ */
17620
+ freshPackScheduledTimestamp?: Date | null | undefined;
17590
17621
  };
17591
17622
  /**
17592
17623
  * A **UserAccount** Type
@@ -28635,17 +28666,25 @@ declare module '@ricado/api-client/Models/Packhouse/Site/MAFSizerModel' {
28635
28666
  /**
28636
28667
  * The MAF Integration Configuration for this MAF Sizer
28637
28668
  *
28638
- * @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
28669
+ * @type {?{points: {stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string, orpheaDatabaseHost: ?string, orpheaDatabasePort: ?number, orpheaDatabaseUsername: ?string, orpheaDatabasePassword: ?string, orpheaDatabaseEnabled: ?boolean}}
28639
28670
  * @public
28640
28671
  */
28641
28672
  mafIntegration: {
28642
28673
  points: {
28643
28674
  stopBatchRequired: number;
28675
+ orpheaDatabaseCommunicationStatus: number | null;
28676
+ orpheaDatabaseCommunicationLastCheck: number | null;
28677
+ orpheaDatabaseCommunicationLastError: number | null;
28644
28678
  };
28645
28679
  enabled: boolean;
28646
28680
  sizerNumber: number;
28647
28681
  dumpSizerName: string;
28648
28682
  statSizerName: string;
28683
+ orpheaDatabaseHost: string | null;
28684
+ orpheaDatabasePort: number | null;
28685
+ orpheaDatabaseUsername: string | null;
28686
+ orpheaDatabasePassword: string | null;
28687
+ orpheaDatabaseEnabled: boolean | null;
28649
28688
  } | null;
28650
28689
  /**
28651
28690
  * An Array of Sources that deliver Fruit to this MAF Sizer
@@ -29829,6 +29868,13 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
29829
29868
  * @public
29830
29869
  */
29831
29870
  freshPackInitialTippedBins: number | null;
29871
+ /**
29872
+ * The FreshPack Scheduled Timestamp for this Packrun
29873
+ *
29874
+ * @type {?Date}
29875
+ * @public
29876
+ */
29877
+ freshPackScheduledTimestamp: Date | null;
29832
29878
  /**
29833
29879
  * Whether the Packrun has been deleted
29834
29880
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.7.5",
3
+ "version": "2.7.7",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -239,11 +239,16 @@ export default MAFSizerController;
239
239
  * A **MAFSizerIntegration** Type
240
240
  *
241
241
  * @typedef {Object} MAFSizerController.MAFSizerIntegration
242
- * @property {{stopBatchRequired: number}} points The Points used by this MAF Sizer Integration
242
+ * @property {{stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}} points The Points used by this MAF Sizer Integration
243
243
  * @property {boolean} enabled Whether this MAF Sizer Integration is Enabled
244
244
  * @property {number} sizerNumber The MAF Internal Number for this Sizer
245
245
  * @property {string} dumpSizerName The MAF Internal Name of this Sizer when interacting with the MAF Dump API
246
246
  * @property {string} statSizerName The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
247
+ * @property {?string} orpheaDatabaseHost The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
248
+ * @property {?number} orpheaDatabasePort The TCP Port of the MAF Orphea SQL Database for this Sizer
249
+ * @property {?string} orpheaDatabaseUsername The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
250
+ * @property {?string} orpheaDatabasePassword The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
251
+ * @property {?boolean} orpheaDatabaseEnabled Whether the MAF Orphea SQL Database Integration is Enabled
247
252
  * @memberof Controllers.Packhouse.Site
248
253
  */
249
254
 
@@ -3411,6 +3411,7 @@ export default PackrunController;
3411
3411
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
3412
3412
  * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
3413
3413
  * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
3414
+ * @property {?Date} [freshPackScheduledTimestamp] The FreshPack Scheduled Timestamp for this Packrun
3414
3415
  * @memberof Controllers.Packhouse.Site
3415
3416
  */
3416
3417
 
@@ -3437,6 +3438,7 @@ export default PackrunController;
3437
3438
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
3438
3439
  * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
3439
3440
  * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
3441
+ * @property {?Date} [freshPackScheduledTimestamp] The FreshPack Scheduled Timestamp for this Packrun
3440
3442
  * @memberof Controllers.Packhouse.Site
3441
3443
  */
3442
3444
 
@@ -166,7 +166,7 @@ class MAFSizerModel extends BaseModel
166
166
  /**
167
167
  * The MAF Integration Configuration for this MAF Sizer
168
168
  *
169
- * @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
169
+ * @type {?{points: {stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string, orpheaDatabaseHost: ?string, orpheaDatabasePort: ?number, orpheaDatabaseUsername: ?string, orpheaDatabasePassword: ?string, orpheaDatabaseEnabled: ?boolean}}
170
170
  * @public
171
171
  */
172
172
  this.mafIntegration = null;
@@ -1198,6 +1198,69 @@ class MAFSizerModel extends BaseModel
1198
1198
  {
1199
1199
  pointsObject.stopBatchRequired = 0;
1200
1200
  }
1201
+
1202
+ if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationStatus' in jsonObject['mafIntegration'].points)
1203
+ {
1204
+ pointsObject.orpheaDatabaseCommunicationStatus = (function(){
1205
+ if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus === null)
1206
+ {
1207
+ return null;
1208
+ }
1209
+
1210
+ if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus !== 'number')
1211
+ {
1212
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus));
1213
+ }
1214
+
1215
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus);
1216
+ }());
1217
+ }
1218
+ else
1219
+ {
1220
+ pointsObject.orpheaDatabaseCommunicationStatus = null;
1221
+ }
1222
+
1223
+ if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationLastCheck' in jsonObject['mafIntegration'].points)
1224
+ {
1225
+ pointsObject.orpheaDatabaseCommunicationLastCheck = (function(){
1226
+ if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck === null)
1227
+ {
1228
+ return null;
1229
+ }
1230
+
1231
+ if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck !== 'number')
1232
+ {
1233
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck));
1234
+ }
1235
+
1236
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck);
1237
+ }());
1238
+ }
1239
+ else
1240
+ {
1241
+ pointsObject.orpheaDatabaseCommunicationLastCheck = null;
1242
+ }
1243
+
1244
+ if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationLastError' in jsonObject['mafIntegration'].points)
1245
+ {
1246
+ pointsObject.orpheaDatabaseCommunicationLastError = (function(){
1247
+ if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError === null)
1248
+ {
1249
+ return null;
1250
+ }
1251
+
1252
+ if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError !== 'number')
1253
+ {
1254
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError));
1255
+ }
1256
+
1257
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError);
1258
+ }());
1259
+ }
1260
+ else
1261
+ {
1262
+ pointsObject.orpheaDatabaseCommunicationLastError = null;
1263
+ }
1201
1264
 
1202
1265
  return pointsObject;
1203
1266
  }());
@@ -1209,6 +1272,12 @@ class MAFSizerModel extends BaseModel
1209
1272
 
1210
1273
  pointsDefaultValue.stopBatchRequired = 0;
1211
1274
 
1275
+ pointsDefaultValue.orpheaDatabaseCommunicationStatus = null;
1276
+
1277
+ pointsDefaultValue.orpheaDatabaseCommunicationLastCheck = null;
1278
+
1279
+ pointsDefaultValue.orpheaDatabaseCommunicationLastError = null;
1280
+
1212
1281
  return pointsDefaultValue;
1213
1282
  }());
1214
1283
  }
@@ -1234,10 +1303,10 @@ class MAFSizerModel extends BaseModel
1234
1303
  mafIntegrationObject.sizerNumber = (function(){
1235
1304
  if(typeof jsonObject['mafIntegration'].sizerNumber !== 'number')
1236
1305
  {
1237
- return Number(jsonObject['mafIntegration'].sizerNumber);
1306
+ return Number.isInteger(Number(jsonObject['mafIntegration'].sizerNumber)) ? Number(jsonObject['mafIntegration'].sizerNumber) : Math.floor(Number(jsonObject['mafIntegration'].sizerNumber));
1238
1307
  }
1239
1308
 
1240
- return jsonObject['mafIntegration'].sizerNumber;
1309
+ return Number.isInteger(jsonObject['mafIntegration'].sizerNumber) ? jsonObject['mafIntegration'].sizerNumber : Math.floor(jsonObject['mafIntegration'].sizerNumber);
1241
1310
  }());
1242
1311
  }
1243
1312
  else
@@ -1276,6 +1345,111 @@ class MAFSizerModel extends BaseModel
1276
1345
  {
1277
1346
  mafIntegrationObject.statSizerName = "";
1278
1347
  }
1348
+
1349
+ if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseHost' in jsonObject['mafIntegration'])
1350
+ {
1351
+ mafIntegrationObject.orpheaDatabaseHost = (function(){
1352
+ if(jsonObject['mafIntegration'].orpheaDatabaseHost === null)
1353
+ {
1354
+ return null;
1355
+ }
1356
+
1357
+ if(typeof jsonObject['mafIntegration'].orpheaDatabaseHost !== 'string')
1358
+ {
1359
+ return String(jsonObject['mafIntegration'].orpheaDatabaseHost);
1360
+ }
1361
+
1362
+ return jsonObject['mafIntegration'].orpheaDatabaseHost;
1363
+ }());
1364
+ }
1365
+ else
1366
+ {
1367
+ mafIntegrationObject.orpheaDatabaseHost = null;
1368
+ }
1369
+
1370
+ if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabasePort' in jsonObject['mafIntegration'])
1371
+ {
1372
+ mafIntegrationObject.orpheaDatabasePort = (function(){
1373
+ if(jsonObject['mafIntegration'].orpheaDatabasePort === null)
1374
+ {
1375
+ return null;
1376
+ }
1377
+
1378
+ if(typeof jsonObject['mafIntegration'].orpheaDatabasePort !== 'number')
1379
+ {
1380
+ return Number.isInteger(Number(jsonObject['mafIntegration'].orpheaDatabasePort)) ? Number(jsonObject['mafIntegration'].orpheaDatabasePort) : Math.floor(Number(jsonObject['mafIntegration'].orpheaDatabasePort));
1381
+ }
1382
+
1383
+ return Number.isInteger(jsonObject['mafIntegration'].orpheaDatabasePort) ? jsonObject['mafIntegration'].orpheaDatabasePort : Math.floor(jsonObject['mafIntegration'].orpheaDatabasePort);
1384
+ }());
1385
+ }
1386
+ else
1387
+ {
1388
+ mafIntegrationObject.orpheaDatabasePort = null;
1389
+ }
1390
+
1391
+ if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseUsername' in jsonObject['mafIntegration'])
1392
+ {
1393
+ mafIntegrationObject.orpheaDatabaseUsername = (function(){
1394
+ if(jsonObject['mafIntegration'].orpheaDatabaseUsername === null)
1395
+ {
1396
+ return null;
1397
+ }
1398
+
1399
+ if(typeof jsonObject['mafIntegration'].orpheaDatabaseUsername !== 'string')
1400
+ {
1401
+ return String(jsonObject['mafIntegration'].orpheaDatabaseUsername);
1402
+ }
1403
+
1404
+ return jsonObject['mafIntegration'].orpheaDatabaseUsername;
1405
+ }());
1406
+ }
1407
+ else
1408
+ {
1409
+ mafIntegrationObject.orpheaDatabaseUsername = null;
1410
+ }
1411
+
1412
+ if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabasePassword' in jsonObject['mafIntegration'])
1413
+ {
1414
+ mafIntegrationObject.orpheaDatabasePassword = (function(){
1415
+ if(jsonObject['mafIntegration'].orpheaDatabasePassword === null)
1416
+ {
1417
+ return null;
1418
+ }
1419
+
1420
+ if(typeof jsonObject['mafIntegration'].orpheaDatabasePassword !== 'string')
1421
+ {
1422
+ return String(jsonObject['mafIntegration'].orpheaDatabasePassword);
1423
+ }
1424
+
1425
+ return jsonObject['mafIntegration'].orpheaDatabasePassword;
1426
+ }());
1427
+ }
1428
+ else
1429
+ {
1430
+ mafIntegrationObject.orpheaDatabasePassword = null;
1431
+ }
1432
+
1433
+ if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseEnabled' in jsonObject['mafIntegration'])
1434
+ {
1435
+ mafIntegrationObject.orpheaDatabaseEnabled = (function(){
1436
+ if(jsonObject['mafIntegration'].orpheaDatabaseEnabled === null)
1437
+ {
1438
+ return null;
1439
+ }
1440
+
1441
+ if(typeof jsonObject['mafIntegration'].orpheaDatabaseEnabled !== 'boolean')
1442
+ {
1443
+ return Boolean(jsonObject['mafIntegration'].orpheaDatabaseEnabled);
1444
+ }
1445
+
1446
+ return jsonObject['mafIntegration'].orpheaDatabaseEnabled;
1447
+ }());
1448
+ }
1449
+ else
1450
+ {
1451
+ mafIntegrationObject.orpheaDatabaseEnabled = null;
1452
+ }
1279
1453
 
1280
1454
  return mafIntegrationObject;
1281
1455
  }());
@@ -193,6 +193,14 @@ class PackrunModel extends BaseModel
193
193
  */
194
194
  this.freshPackInitialTippedBins = null;
195
195
 
196
+ /**
197
+ * The FreshPack Scheduled Timestamp for this Packrun
198
+ *
199
+ * @type {?Date}
200
+ * @public
201
+ */
202
+ this.freshPackScheduledTimestamp = null;
203
+
196
204
  /**
197
205
  * Whether the Packrun has been deleted
198
206
  *
@@ -592,6 +600,23 @@ class PackrunModel extends BaseModel
592
600
  }());
593
601
  }
594
602
 
603
+ if('freshPackScheduledTimestamp' in jsonObject)
604
+ {
605
+ model.freshPackScheduledTimestamp = (function(){
606
+ if(jsonObject['freshPackScheduledTimestamp'] === null)
607
+ {
608
+ return null;
609
+ }
610
+
611
+ if(typeof jsonObject['freshPackScheduledTimestamp'] !== 'string')
612
+ {
613
+ return new Date(String(jsonObject['freshPackScheduledTimestamp']));
614
+ }
615
+
616
+ return new Date(jsonObject['freshPackScheduledTimestamp']);
617
+ }());
618
+ }
619
+
595
620
  if('deleted' in jsonObject)
596
621
  {
597
622
  model.deleted = (function(){