@ricado/api-client 1.4.0 → 2.0.2
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/AccountPolicyController.js +1 -1
- package/lib/Controllers/ApiAccountController.js +2 -2
- package/lib/Controllers/CompanyController.js +1 -1
- package/lib/Controllers/FirebaseTokenController.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +6 -6
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackrunController.js +292 -6
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +6 -6
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +5 -5
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/VarietyController.js +5 -5
- package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
- package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
- package/lib/Controllers/RTUController.js +1 -1
- package/lib/Controllers/RTUPluginController.js +1 -1
- package/lib/Controllers/Site/AlarmController.js +6 -6
- package/lib/Controllers/Site/AlarmGroupController.js +5 -5
- package/lib/Controllers/Site/DefinitionController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectDataController.js +6 -6
- package/lib/Controllers/Site/PointController.js +8 -6
- package/lib/Controllers/Site/TemporaryObjectController.js +5 -5
- package/lib/Controllers/SiteController.js +1 -1
- package/lib/Controllers/TokenController.js +2 -2
- package/lib/Controllers/ToolsController.js +1 -1
- package/lib/Controllers/UserAccountActionTokenController.js +2 -2
- package/lib/Controllers/UserAccountController.js +2 -2
- package/lib/DataItems/PointValueItem.js +2 -2
- package/lib/Errors/BadRequestError.js +7 -3
- package/lib/Errors/ForbiddenError.js +7 -3
- package/lib/Errors/NetworkError.js +7 -3
- package/lib/Errors/NotAllowedError.js +7 -3
- package/lib/Errors/NotFoundError.js +7 -3
- package/lib/Errors/ServerError.js +7 -3
- package/lib/Errors/UnauthorizedError.js +7 -3
- package/lib/Models/AccountPolicyModel.js +29 -133
- package/lib/Models/ApiAccountModel.js +29 -133
- package/lib/Models/BaseModel.js +6 -2
- package/lib/Models/CompanyModel.js +23 -101
- package/lib/Models/FirebaseTokenModel.js +32 -149
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -195
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -179
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -275
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -211
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -179
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -147
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -243
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -275
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -179
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -147
- package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -179
- package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -291
- package/lib/Models/Packhouse/Site/PackrunModel.js +61 -291
- package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -195
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -243
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -211
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -243
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -643
- package/lib/Models/Packhouse/Site/ShiftModel.js +73 -355
- package/lib/Models/Packhouse/Site/VarietyModel.js +40 -179
- package/lib/Models/RTUModel.js +26 -117
- package/lib/Models/RTUPluginModel.js +23 -101
- package/lib/Models/Site/AlarmGroupModel.js +37 -163
- package/lib/Models/Site/AlarmModel.js +67 -323
- package/lib/Models/Site/DefinitionModel.js +34 -147
- package/lib/Models/Site/PermanentObjectDataModel.js +40 -179
- package/lib/Models/Site/PermanentObjectModel.js +37 -163
- package/lib/Models/Site/PointModel.js +49 -227
- package/lib/Models/Site/TemporaryObjectModel.js +34 -147
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +26 -117
- package/lib/Models/TokenModel.js +38 -181
- package/lib/Models/UserAccountActionTokenModel.js +41 -197
- package/lib/Models/UserAccountModel.js +38 -181
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +1 -1
- package/lib/RequestHelper.js +2 -2
- package/lib/WebSocketHelper.js +1 -1
- package/lib/index.d.ts +931 -1589
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackrunController.js +365 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +6 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- package/src/Models/AccountPolicyModel.js +21 -117
- package/src/Models/ApiAccountModel.js +21 -117
- package/src/Models/CompanyModel.js +15 -87
- package/src/Models/FirebaseTokenModel.js +24 -132
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
- package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
- package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
- package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
- package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
- package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
- package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +27 -144
- package/src/Models/Site/AlarmModel.js +57 -294
- package/src/Models/Site/DefinitionModel.js +24 -129
- package/src/Models/Site/PermanentObjectDataModel.js +30 -159
- package/src/Models/Site/PermanentObjectModel.js +27 -144
- package/src/Models/Site/PointModel.js +39 -204
- package/src/Models/Site/TemporaryObjectModel.js +24 -129
- package/src/Models/Site/index.js +0 -2
- package/src/Models/SiteModel.js +18 -102
- package/src/Models/TokenModel.js +30 -162
- package/src/Models/UserAccountActionTokenModel.js +33 -177
- package/src/Models/UserAccountModel.js +30 -162
- package/src/PackageVersion.js +1 -1
- package/lib/Models/Site/BaseSiteModel.js +0 -58
- package/src/Models/Site/BaseSiteModel.js +0 -30
|
@@ -15,7 +15,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Controller Class for Packing Lines
|
|
@@ -43,7 +43,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/packing-lines/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _PackingLineModel.default.fromJSON(result
|
|
46
|
+
return _PackingLineModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/packing-lines/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _PackingLineModel.default.fromJSON(result
|
|
72
|
+
return _PackingLineModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _PackingLineModel.default.fromJSON(resultItem
|
|
125
|
+
return _PackingLineModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/packing-lines"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _PackingLineModel.default.fromJSON(result
|
|
152
|
+
return _PackingLineModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -11,13 +11,13 @@ var _PackrunModel = _interopRequireDefault(require("../../../Models/Packhouse/Si
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Controller Class for Packruns
|
|
@@ -45,7 +45,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/packruns/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _PackrunModel.default.fromJSON(result
|
|
48
|
+
return _PackrunModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/packruns/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _PackrunModel.default.fromJSON(result
|
|
74
|
+
return _PackrunModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -1297,6 +1297,267 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Retrieve a Packrun Infeed Report [GET /packhouse/sites/{siteId}/packruns/{id}/infeedReport]
|
|
1302
|
+
*
|
|
1303
|
+
* Retrieves an Infeed Report for a Packrun
|
|
1304
|
+
*
|
|
1305
|
+
* @static
|
|
1306
|
+
* @public
|
|
1307
|
+
* @param {number} siteId The Site ID
|
|
1308
|
+
* @param {string} id The Packrun ID
|
|
1309
|
+
* @return {Promise<PackrunController.PackrunInfeedReport>}
|
|
1310
|
+
*/
|
|
1311
|
+
|
|
1312
|
+
}, {
|
|
1313
|
+
key: "getInfeedReport",
|
|
1314
|
+
value: function getInfeedReport(siteId, id) {
|
|
1315
|
+
return new Promise(function (resolve, reject) {
|
|
1316
|
+
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/packruns/").concat(id, "/infeedReport")).then(function (result) {
|
|
1317
|
+
var resolveValue = function () {
|
|
1318
|
+
var resultObject = {};
|
|
1319
|
+
|
|
1320
|
+
if (_typeof(result) === 'object' && 'id' in result) {
|
|
1321
|
+
resultObject.id = function () {
|
|
1322
|
+
if (typeof result.id !== 'string') {
|
|
1323
|
+
return String(result.id);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
return result.id;
|
|
1327
|
+
}();
|
|
1328
|
+
} else {
|
|
1329
|
+
resultObject.id = "";
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (_typeof(result) === 'object' && 'name' in result) {
|
|
1333
|
+
resultObject.name = function () {
|
|
1334
|
+
if (typeof result.name !== 'string') {
|
|
1335
|
+
return String(result.name);
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
return result.name;
|
|
1339
|
+
}();
|
|
1340
|
+
} else {
|
|
1341
|
+
resultObject.name = "";
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
if (_typeof(result) === 'object' && 'createdTimestamp' in result) {
|
|
1345
|
+
resultObject.createdTimestamp = function () {
|
|
1346
|
+
if (typeof result.createdTimestamp !== 'string') {
|
|
1347
|
+
return new Date(String(result.createdTimestamp));
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
return new Date(result.createdTimestamp);
|
|
1351
|
+
}();
|
|
1352
|
+
} else {
|
|
1353
|
+
resultObject.createdTimestamp = new Date();
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (_typeof(result) === 'object' && 'startTimestamp' in result) {
|
|
1357
|
+
resultObject.startTimestamp = function () {
|
|
1358
|
+
if (result.startTimestamp === null) {
|
|
1359
|
+
return null;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
if (typeof result.startTimestamp !== 'string') {
|
|
1363
|
+
return new Date(String(result.startTimestamp));
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
return new Date(result.startTimestamp);
|
|
1367
|
+
}();
|
|
1368
|
+
} else {
|
|
1369
|
+
resultObject.startTimestamp = null;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (_typeof(result) === 'object' && 'finishTimestamp' in result) {
|
|
1373
|
+
resultObject.finishTimestamp = function () {
|
|
1374
|
+
if (result.finishTimestamp === null) {
|
|
1375
|
+
return null;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
if (typeof result.finishTimestamp !== 'string') {
|
|
1379
|
+
return new Date(String(result.finishTimestamp));
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
return new Date(result.finishTimestamp);
|
|
1383
|
+
}();
|
|
1384
|
+
} else {
|
|
1385
|
+
resultObject.finishTimestamp = null;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
if (_typeof(result) === 'object' && 'packingLineId' in result) {
|
|
1389
|
+
resultObject.packingLineId = function () {
|
|
1390
|
+
if (typeof result.packingLineId !== 'string') {
|
|
1391
|
+
return String(result.packingLineId);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
return result.packingLineId;
|
|
1395
|
+
}();
|
|
1396
|
+
} else {
|
|
1397
|
+
resultObject.packingLineId = "";
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
if (_typeof(result) === 'object' && 'packingLineName' in result) {
|
|
1401
|
+
resultObject.packingLineName = function () {
|
|
1402
|
+
if (result.packingLineName === null) {
|
|
1403
|
+
return null;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
if (typeof result.packingLineName !== 'string') {
|
|
1407
|
+
return String(result.packingLineName);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
return result.packingLineName;
|
|
1411
|
+
}();
|
|
1412
|
+
} else {
|
|
1413
|
+
resultObject.packingLineName = null;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
if (_typeof(result) === 'object' && 'growerName' in result) {
|
|
1417
|
+
resultObject.growerName = function () {
|
|
1418
|
+
if (typeof result.growerName !== 'string') {
|
|
1419
|
+
return String(result.growerName);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
return result.growerName;
|
|
1423
|
+
}();
|
|
1424
|
+
} else {
|
|
1425
|
+
resultObject.growerName = "";
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
if (_typeof(result) === 'object' && 'growerCode' in result) {
|
|
1429
|
+
resultObject.growerCode = function () {
|
|
1430
|
+
if (typeof result.growerCode !== 'string') {
|
|
1431
|
+
return String(result.growerCode);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
return result.growerCode;
|
|
1435
|
+
}();
|
|
1436
|
+
} else {
|
|
1437
|
+
resultObject.growerCode = "";
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
if (_typeof(result) === 'object' && 'maturityArea' in result) {
|
|
1441
|
+
resultObject.maturityArea = function () {
|
|
1442
|
+
if (result.maturityArea === null) {
|
|
1443
|
+
return null;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
if (typeof result.maturityArea !== 'string') {
|
|
1447
|
+
return String(result.maturityArea);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
return result.maturityArea;
|
|
1451
|
+
}();
|
|
1452
|
+
} else {
|
|
1453
|
+
resultObject.maturityArea = null;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
if (_typeof(result) === 'object' && 'allocatedBins' in result) {
|
|
1457
|
+
resultObject.allocatedBins = function () {
|
|
1458
|
+
if (typeof result.allocatedBins !== 'number') {
|
|
1459
|
+
return Number.isInteger(Number(result.allocatedBins)) ? Number(result.allocatedBins) : Math.floor(Number(result.allocatedBins));
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
return Number.isInteger(result.allocatedBins) ? result.allocatedBins : Math.floor(result.allocatedBins);
|
|
1463
|
+
}();
|
|
1464
|
+
} else {
|
|
1465
|
+
resultObject.allocatedBins = 0;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
if (_typeof(result) === 'object' && 'tippedBins' in result) {
|
|
1469
|
+
resultObject.tippedBins = function () {
|
|
1470
|
+
if (typeof result.tippedBins !== 'number') {
|
|
1471
|
+
return Number.isInteger(Number(result.tippedBins)) ? Number(result.tippedBins) : Math.floor(Number(result.tippedBins));
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
return Number.isInteger(result.tippedBins) ? result.tippedBins : Math.floor(result.tippedBins);
|
|
1475
|
+
}();
|
|
1476
|
+
} else {
|
|
1477
|
+
resultObject.tippedBins = 0;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
if (_typeof(result) === 'object' && 'softSortRejectWeight' in result) {
|
|
1481
|
+
resultObject.softSortRejectWeight = function () {
|
|
1482
|
+
if (typeof result.softSortRejectWeight !== 'number') {
|
|
1483
|
+
return Number(result.softSortRejectWeight);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
return result.softSortRejectWeight;
|
|
1487
|
+
}();
|
|
1488
|
+
} else {
|
|
1489
|
+
resultObject.softSortRejectWeight = 0;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
if (_typeof(result) === 'object' && 'softSortRejectPercentage' in result) {
|
|
1493
|
+
resultObject.softSortRejectPercentage = function () {
|
|
1494
|
+
if (typeof result.softSortRejectPercentage !== 'number') {
|
|
1495
|
+
return Number(result.softSortRejectPercentage);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
return result.softSortRejectPercentage;
|
|
1499
|
+
}();
|
|
1500
|
+
} else {
|
|
1501
|
+
resultObject.softSortRejectPercentage = 0;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if (_typeof(result) === 'object' && 'softSortEventsPerBin' in result) {
|
|
1505
|
+
resultObject.softSortEventsPerBin = function () {
|
|
1506
|
+
if (typeof result.softSortEventsPerBin !== 'number') {
|
|
1507
|
+
return Number(result.softSortEventsPerBin);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
return result.softSortEventsPerBin;
|
|
1511
|
+
}();
|
|
1512
|
+
} else {
|
|
1513
|
+
resultObject.softSortEventsPerBin = 0;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
if (_typeof(result) === 'object' && 'totalSoftSortEventsCount' in result) {
|
|
1517
|
+
resultObject.totalSoftSortEventsCount = function () {
|
|
1518
|
+
if (typeof result.totalSoftSortEventsCount !== 'number') {
|
|
1519
|
+
return Number.isInteger(Number(result.totalSoftSortEventsCount)) ? Number(result.totalSoftSortEventsCount) : Math.floor(Number(result.totalSoftSortEventsCount));
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
return Number.isInteger(result.totalSoftSortEventsCount) ? result.totalSoftSortEventsCount : Math.floor(result.totalSoftSortEventsCount);
|
|
1523
|
+
}();
|
|
1524
|
+
} else {
|
|
1525
|
+
resultObject.totalSoftSortEventsCount = 0;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
if (_typeof(result) === 'object' && 'averageSoftSortEventsDuration' in result) {
|
|
1529
|
+
resultObject.averageSoftSortEventsDuration = function () {
|
|
1530
|
+
if (typeof result.averageSoftSortEventsDuration !== 'number') {
|
|
1531
|
+
return Number(result.averageSoftSortEventsDuration);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
return result.averageSoftSortEventsDuration;
|
|
1535
|
+
}();
|
|
1536
|
+
} else {
|
|
1537
|
+
resultObject.averageSoftSortEventsDuration = 0;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
if (_typeof(result) === 'object' && 'totalSoftSortEventsDuration' in result) {
|
|
1541
|
+
resultObject.totalSoftSortEventsDuration = function () {
|
|
1542
|
+
if (typeof result.totalSoftSortEventsDuration !== 'number') {
|
|
1543
|
+
return Number(result.totalSoftSortEventsDuration);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
return result.totalSoftSortEventsDuration;
|
|
1547
|
+
}();
|
|
1548
|
+
} else {
|
|
1549
|
+
resultObject.totalSoftSortEventsDuration = 0;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
return resultObject;
|
|
1553
|
+
}();
|
|
1554
|
+
|
|
1555
|
+
resolve(resolveValue);
|
|
1556
|
+
}).catch(function (error) {
|
|
1557
|
+
return reject(error);
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1300
1561
|
/**
|
|
1301
1562
|
* List all Packruns [GET /packhouse/sites/{siteId}/packruns]
|
|
1302
1563
|
*
|
|
@@ -1320,7 +1581,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1320
1581
|
|
|
1321
1582
|
return result.map(function (resultItem) {
|
|
1322
1583
|
return function () {
|
|
1323
|
-
return _PackrunModel.default.fromJSON(resultItem
|
|
1584
|
+
return _PackrunModel.default.fromJSON(resultItem);
|
|
1324
1585
|
}();
|
|
1325
1586
|
});
|
|
1326
1587
|
}();
|
|
@@ -1347,7 +1608,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1347
1608
|
return new Promise(function (resolve, reject) {
|
|
1348
1609
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/packruns"), createData).then(function (result) {
|
|
1349
1610
|
var resolveValue = function () {
|
|
1350
|
-
return _PackrunModel.default.fromJSON(result
|
|
1611
|
+
return _PackrunModel.default.fromJSON(result);
|
|
1351
1612
|
}();
|
|
1352
1613
|
|
|
1353
1614
|
resolve(resolveValue);
|
|
@@ -1535,4 +1796,29 @@ var _default = PackrunController;
|
|
|
1535
1796
|
* @memberof Controllers.Packhouse.Site
|
|
1536
1797
|
*/
|
|
1537
1798
|
|
|
1799
|
+
/**
|
|
1800
|
+
* A **PackrunInfeedReport** Type
|
|
1801
|
+
*
|
|
1802
|
+
* @typedef {Object} PackrunController.PackrunInfeedReport
|
|
1803
|
+
* @property {string} id The Packrun ID
|
|
1804
|
+
* @property {string} name The Packrun Name
|
|
1805
|
+
* @property {Date} createdTimestamp When the Packrun was Created
|
|
1806
|
+
* @property {?Date} startTimestamp When the Packrun was Started
|
|
1807
|
+
* @property {?Date} finishTimestamp When the Packrun was Finished
|
|
1808
|
+
* @property {string} packingLineId The Packing Line ID
|
|
1809
|
+
* @property {?string} packingLineName The Packing Line Name
|
|
1810
|
+
* @property {string} growerName The Grower Name
|
|
1811
|
+
* @property {string} growerCode The Grower Code
|
|
1812
|
+
* @property {?string} maturityArea The Maturity Area
|
|
1813
|
+
* @property {number} allocatedBins The Number of Bins Allocated for the Packrun
|
|
1814
|
+
* @property {number} tippedBins The Number of Bins Tipped for the Packrun
|
|
1815
|
+
* @property {number} softSortRejectWeight The Total Reject Weight for the Soft-Sort category expressed in kilograms
|
|
1816
|
+
* @property {number} softSortRejectPercentage The Percentage of Packrun Weight categorized as Soft-Sort
|
|
1817
|
+
* @property {number} softSortEventsPerBin The Number of Soft-Sort Events per Bin
|
|
1818
|
+
* @property {number} totalSoftSortEventsCount The Number of Soft-Sort Events that occurred for the Packrun
|
|
1819
|
+
* @property {number} averageSoftSortEventsDuration The Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
|
|
1820
|
+
* @property {number} totalSoftSortEventsDuration The Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
|
|
1821
|
+
* @memberof Controllers.Packhouse.Site
|
|
1822
|
+
*/
|
|
1823
|
+
|
|
1538
1824
|
exports.default = _default;
|
|
@@ -11,13 +11,13 @@ var _RejectBinModel = _interopRequireDefault(require("../../../Models/Packhouse/
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Controller Class for Reject Bins
|
|
@@ -45,7 +45,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bins/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _RejectBinModel.default.fromJSON(result
|
|
48
|
+
return _RejectBinModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bins/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _RejectBinModel.default.fromJSON(result
|
|
74
|
+
return _RejectBinModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _RejectBinModel.default.fromJSON(resultItem
|
|
523
|
+
return _RejectBinModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bins"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _RejectBinModel.default.fromJSON(result
|
|
550
|
+
return _RejectBinModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -15,7 +15,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Controller Class for Reject Bin Scales
|
|
@@ -43,7 +43,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _RejectBinScaleModel.default.fromJSON(result
|
|
46
|
+
return _RejectBinScaleModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _RejectBinScaleModel.default.fromJSON(result
|
|
72
|
+
return _RejectBinScaleModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _RejectBinScaleModel.default.fromJSON(resultItem
|
|
125
|
+
return _RejectBinScaleModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _RejectBinScaleModel.default.fromJSON(result
|
|
152
|
+
return _RejectBinScaleModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -11,13 +11,13 @@ var _RejectBinWeightModel = _interopRequireDefault(require("../../../Models/Pack
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Controller Class for Reject Bin Weights
|
|
@@ -45,7 +45,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _RejectBinWeightModel.default.fromJSON(result
|
|
48
|
+
return _RejectBinWeightModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _RejectBinWeightModel.default.fromJSON(result
|
|
74
|
+
return _RejectBinWeightModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _RejectBinWeightModel.default.fromJSON(resultItem
|
|
523
|
+
return _RejectBinWeightModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _RejectBinWeightModel.default.fromJSON(result
|
|
550
|
+
return _RejectBinWeightModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -11,13 +11,13 @@ var _ShiftModel = _interopRequireDefault(require("../../../Models/Packhouse/Site
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Controller Class for Shifts
|
|
@@ -45,7 +45,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftModel.default.fromJSON(result
|
|
48
|
+
return _ShiftModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftModel.default.fromJSON(result
|
|
74
|
+
return _ShiftModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftModel.default.fromJSON(resultItem
|
|
523
|
+
return _ShiftModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shifts"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftModel.default.fromJSON(result
|
|
550
|
+
return _ShiftModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -11,13 +11,13 @@ var _ShiftFocusMeetingModel = _interopRequireDefault(require("../../../Models/Pa
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Controller Class for Shift Focus Meetings
|
|
@@ -45,7 +45,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
48
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
74
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftFocusMeetingModel.default.fromJSON(resultItem
|
|
523
|
+
return _ShiftFocusMeetingModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
550
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|