@ricado/api-client 2.7.5 → 2.7.6
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/MAFSizerController.js +6 -1
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +134 -3
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +32 -1
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +6 -1
- package/src/Models/Packhouse/Site/MAFSizerModel.js +177 -3
- package/src/PackageVersion.js +1 -1
|
@@ -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
|
|
|
@@ -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
|
}
|
package/lib/PackageVersion.js
CHANGED
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
|
|
@@ -28635,17 +28658,25 @@ declare module '@ricado/api-client/Models/Packhouse/Site/MAFSizerModel' {
|
|
|
28635
28658
|
/**
|
|
28636
28659
|
* The MAF Integration Configuration for this MAF Sizer
|
|
28637
28660
|
*
|
|
28638
|
-
* @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
|
|
28661
|
+
* @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
28662
|
* @public
|
|
28640
28663
|
*/
|
|
28641
28664
|
mafIntegration: {
|
|
28642
28665
|
points: {
|
|
28643
28666
|
stopBatchRequired: number;
|
|
28667
|
+
orpheaDatabaseCommunicationStatus: number | null;
|
|
28668
|
+
orpheaDatabaseCommunicationLastCheck: number | null;
|
|
28669
|
+
orpheaDatabaseCommunicationLastError: number | null;
|
|
28644
28670
|
};
|
|
28645
28671
|
enabled: boolean;
|
|
28646
28672
|
sizerNumber: number;
|
|
28647
28673
|
dumpSizerName: string;
|
|
28648
28674
|
statSizerName: string;
|
|
28675
|
+
orpheaDatabaseHost: string | null;
|
|
28676
|
+
orpheaDatabasePort: number | null;
|
|
28677
|
+
orpheaDatabaseUsername: string | null;
|
|
28678
|
+
orpheaDatabasePassword: string | null;
|
|
28679
|
+
orpheaDatabaseEnabled: boolean | null;
|
|
28649
28680
|
} | null;
|
|
28650
28681
|
/**
|
|
28651
28682
|
* An Array of Sources that deliver Fruit to this MAF Sizer
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -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
|
}());
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.7.
|
|
2
|
+
export const version = '2.7.6';
|