@ricado/api-client 2.5.11 → 2.5.13
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/PackingLineController.js +2 -1
- package/lib/Controllers/Packhouse/Site/ShiftController.js +1784 -190
- package/lib/Models/Packhouse/Site/PackingLineModel.js +38 -1
- package/lib/Models/Packhouse/Site/ShiftModel.js +99 -1
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +5161 -4689
- package/package.json +2 -2
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -1
- package/src/Controllers/Packhouse/Site/ShiftController.js +2027 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +49 -1
- package/src/Models/Packhouse/Site/ShiftModel.js +124 -0
- package/src/PackageVersion.js +1 -1
- package/types/tslint.json +3 -1
|
@@ -9,6 +9,18 @@ var _RequestHelper = _interopRequireDefault(require("../../../RequestHelper"));
|
|
|
9
9
|
|
|
10
10
|
var _ShiftModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/ShiftModel"));
|
|
11
11
|
|
|
12
|
+
var _ShiftHourlyEntryModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/ShiftHourlyEntryModel"));
|
|
13
|
+
|
|
14
|
+
var _DowntimeEventModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/DowntimeEventModel"));
|
|
15
|
+
|
|
16
|
+
var _ShiftFocusMeetingModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/ShiftFocusMeetingModel"));
|
|
17
|
+
|
|
18
|
+
var _ShiftGrowerChangeMeetingModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/ShiftGrowerChangeMeetingModel"));
|
|
19
|
+
|
|
20
|
+
var _PackrunModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/PackrunModel"));
|
|
21
|
+
|
|
22
|
+
var _ShiftQualitySummaryModel = _interopRequireDefault(require("../../../Models/Packhouse/Site/ShiftQualitySummaryModel"));
|
|
23
|
+
|
|
12
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
25
|
|
|
14
26
|
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); }
|
|
@@ -754,289 +766,1740 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
754
766
|
});
|
|
755
767
|
}
|
|
756
768
|
/**
|
|
757
|
-
* Retrieve a Shift Summary Report
|
|
758
|
-
*
|
|
759
|
-
* Retrieves a Summary Report PDF for a Shift
|
|
760
|
-
*
|
|
761
|
-
* @static
|
|
762
|
-
* @public
|
|
763
|
-
* @param {number} siteId The Site ID
|
|
764
|
-
* @param {string} id The Shift ID
|
|
765
|
-
* @return {Promise<boolean>}
|
|
766
|
-
*/
|
|
767
|
-
|
|
768
|
-
}, {
|
|
769
|
-
key: "getSummaryReportPdf",
|
|
770
|
-
value: function getSummaryReportPdf(siteId, id) {
|
|
771
|
-
return new Promise(function (resolve, reject) {
|
|
772
|
-
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/summaryReportPdf")).then(function (result) {
|
|
773
|
-
resolve(result !== null && result !== void 0 ? result : true);
|
|
774
|
-
}).catch(function (error) {
|
|
775
|
-
return reject(error);
|
|
776
|
-
});
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* Retrieve a Shift's Score History [GET /packhouse/sites/{siteId}/shifts/{id}/scoreHistory]
|
|
769
|
+
* Retrieve a Shift Summary Report [GET /packhouse/sites/{siteId}/shifts/{id}/summaryReport]
|
|
781
770
|
*
|
|
782
|
-
* Retrieves
|
|
771
|
+
* Retrieves a Summary Report for a Shift
|
|
783
772
|
*
|
|
784
773
|
* @static
|
|
785
774
|
* @public
|
|
786
775
|
* @param {number} siteId The Site ID
|
|
787
776
|
* @param {string} id The Shift ID
|
|
788
|
-
* @return {Promise<
|
|
777
|
+
* @return {Promise<ShiftController.ShiftSummaryReport>}
|
|
789
778
|
*/
|
|
790
779
|
|
|
791
780
|
}, {
|
|
792
|
-
key: "
|
|
793
|
-
value: function
|
|
781
|
+
key: "getSummaryReport",
|
|
782
|
+
value: function getSummaryReport(siteId, id) {
|
|
794
783
|
return new Promise(function (resolve, reject) {
|
|
795
|
-
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/
|
|
784
|
+
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/summaryReport")).then(function (result) {
|
|
796
785
|
var resolveValue = function () {
|
|
797
|
-
|
|
798
|
-
return [];
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
return result.map(function (resultItem) {
|
|
802
|
-
return function () {
|
|
803
|
-
var resultItemObject = {};
|
|
804
|
-
|
|
805
|
-
if (_typeof(resultItem) === 'object' && 'timestamp' in resultItem) {
|
|
806
|
-
resultItemObject.timestamp = function () {
|
|
807
|
-
if (typeof resultItem.timestamp !== 'string') {
|
|
808
|
-
return new Date(String(resultItem.timestamp));
|
|
809
|
-
}
|
|
786
|
+
var resultObject = {};
|
|
810
787
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
788
|
+
if (_typeof(result) === 'object' && 'shiftId' in result) {
|
|
789
|
+
resultObject.shiftId = function () {
|
|
790
|
+
if (typeof result.shiftId !== 'string') {
|
|
791
|
+
return String(result.shiftId);
|
|
815
792
|
}
|
|
816
793
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
794
|
+
return result.shiftId;
|
|
795
|
+
}();
|
|
796
|
+
} else {
|
|
797
|
+
resultObject.shiftId = "";
|
|
798
|
+
}
|
|
822
799
|
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
800
|
+
if (_typeof(result) === 'object' && 'shiftType' in result) {
|
|
801
|
+
resultObject.shiftType = function () {
|
|
802
|
+
if (typeof result.shiftType !== 'string') {
|
|
803
|
+
return String(result.shiftType);
|
|
827
804
|
}
|
|
828
805
|
|
|
829
|
-
return
|
|
806
|
+
return result.shiftType;
|
|
830
807
|
}();
|
|
831
|
-
}
|
|
832
|
-
|
|
808
|
+
} else {
|
|
809
|
+
resultObject.shiftType = "";
|
|
810
|
+
}
|
|
833
811
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Retrieve a Shift Score Metrics [GET /packhouse/sites/{siteId}/shifts/{id}/scoreMetrics]
|
|
842
|
-
*
|
|
843
|
-
* Retrieves the Score Metrics for a Shift
|
|
844
|
-
*
|
|
845
|
-
* @static
|
|
846
|
-
* @public
|
|
847
|
-
* @param {number} siteId The Site ID
|
|
848
|
-
* @param {string} id The Shift ID
|
|
849
|
-
* @return {Promise<ShiftController.ShiftScoreMetrics>}
|
|
850
|
-
*/
|
|
812
|
+
if (_typeof(result) === 'object' && 'isoWeek' in result) {
|
|
813
|
+
resultObject.isoWeek = function () {
|
|
814
|
+
if (typeof result.isoWeek !== 'number') {
|
|
815
|
+
return Number(result.isoWeek);
|
|
816
|
+
}
|
|
851
817
|
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
var resolveValue = function () {
|
|
858
|
-
var resultObject = {};
|
|
818
|
+
return result.isoWeek;
|
|
819
|
+
}();
|
|
820
|
+
} else {
|
|
821
|
+
resultObject.isoWeek = 0;
|
|
822
|
+
}
|
|
859
823
|
|
|
860
|
-
if (_typeof(result) === 'object' && '
|
|
861
|
-
resultObject.
|
|
862
|
-
if (typeof result.
|
|
863
|
-
return
|
|
824
|
+
if (_typeof(result) === 'object' && 'startTimestamp' in result) {
|
|
825
|
+
resultObject.startTimestamp = function () {
|
|
826
|
+
if (typeof result.startTimestamp !== 'string') {
|
|
827
|
+
return new Date(String(result.startTimestamp));
|
|
864
828
|
}
|
|
865
829
|
|
|
866
|
-
return result.
|
|
830
|
+
return new Date(result.startTimestamp);
|
|
867
831
|
}();
|
|
868
832
|
} else {
|
|
869
|
-
resultObject.
|
|
833
|
+
resultObject.startTimestamp = new Date();
|
|
870
834
|
}
|
|
871
835
|
|
|
872
|
-
if (_typeof(result) === 'object' && '
|
|
873
|
-
resultObject.
|
|
874
|
-
if (
|
|
875
|
-
return
|
|
836
|
+
if (_typeof(result) === 'object' && 'finishTimestamp' in result) {
|
|
837
|
+
resultObject.finishTimestamp = function () {
|
|
838
|
+
if (result.finishTimestamp === null) {
|
|
839
|
+
return null;
|
|
876
840
|
}
|
|
877
841
|
|
|
878
|
-
|
|
842
|
+
if (typeof result.finishTimestamp !== 'string') {
|
|
843
|
+
return new Date(String(result.finishTimestamp));
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
return new Date(result.finishTimestamp);
|
|
879
847
|
}();
|
|
880
848
|
} else {
|
|
881
|
-
resultObject.
|
|
849
|
+
resultObject.finishTimestamp = null;
|
|
882
850
|
}
|
|
883
851
|
|
|
884
|
-
if (_typeof(result) === 'object' && '
|
|
885
|
-
resultObject.
|
|
886
|
-
if (result.
|
|
852
|
+
if (_typeof(result) === 'object' && 'lineManagerName' in result) {
|
|
853
|
+
resultObject.lineManagerName = function () {
|
|
854
|
+
if (result.lineManagerName === null) {
|
|
887
855
|
return null;
|
|
888
856
|
}
|
|
889
857
|
|
|
890
|
-
if (typeof result.
|
|
891
|
-
return
|
|
858
|
+
if (typeof result.lineManagerName !== 'string') {
|
|
859
|
+
return String(result.lineManagerName);
|
|
892
860
|
}
|
|
893
861
|
|
|
894
|
-
return
|
|
862
|
+
return result.lineManagerName;
|
|
895
863
|
}();
|
|
896
864
|
} else {
|
|
897
|
-
resultObject.
|
|
865
|
+
resultObject.lineManagerName = null;
|
|
898
866
|
}
|
|
899
867
|
|
|
900
|
-
if (_typeof(result) === 'object' && '
|
|
901
|
-
resultObject.
|
|
902
|
-
if (
|
|
903
|
-
return
|
|
868
|
+
if (_typeof(result) === 'object' && 'qualityManagerName' in result) {
|
|
869
|
+
resultObject.qualityManagerName = function () {
|
|
870
|
+
if (result.qualityManagerName === null) {
|
|
871
|
+
return null;
|
|
904
872
|
}
|
|
905
873
|
|
|
906
|
-
|
|
874
|
+
if (typeof result.qualityManagerName !== 'string') {
|
|
875
|
+
return String(result.qualityManagerName);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
return result.qualityManagerName;
|
|
907
879
|
}();
|
|
908
880
|
} else {
|
|
909
|
-
resultObject.
|
|
881
|
+
resultObject.qualityManagerName = null;
|
|
910
882
|
}
|
|
911
883
|
|
|
912
|
-
if (_typeof(result) === 'object' && '
|
|
913
|
-
resultObject.
|
|
914
|
-
if (result.
|
|
915
|
-
return
|
|
884
|
+
if (_typeof(result) === 'object' && 'hourlyEntries' in result) {
|
|
885
|
+
resultObject.hourlyEntries = function () {
|
|
886
|
+
if (Array.isArray(result.hourlyEntries) !== true) {
|
|
887
|
+
return [];
|
|
916
888
|
}
|
|
917
889
|
|
|
918
|
-
|
|
919
|
-
return
|
|
890
|
+
return result.hourlyEntries.map(function (hourlyEntriesItem) {
|
|
891
|
+
return function () {
|
|
892
|
+
return _ShiftHourlyEntryModel.default.fromJSON(hourlyEntriesItem, siteId);
|
|
893
|
+
}();
|
|
894
|
+
});
|
|
895
|
+
}();
|
|
896
|
+
} else {
|
|
897
|
+
resultObject.hourlyEntries = [];
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (_typeof(result) === 'object' && 'hourlyEntryInteractionActual' in result) {
|
|
901
|
+
resultObject.hourlyEntryInteractionActual = function () {
|
|
902
|
+
if (typeof result.hourlyEntryInteractionActual !== 'number') {
|
|
903
|
+
return Number.isInteger(Number(result.hourlyEntryInteractionActual)) ? Number(result.hourlyEntryInteractionActual) : Math.floor(Number(result.hourlyEntryInteractionActual));
|
|
920
904
|
}
|
|
921
905
|
|
|
922
|
-
return result.
|
|
906
|
+
return Number.isInteger(result.hourlyEntryInteractionActual) ? result.hourlyEntryInteractionActual : Math.floor(result.hourlyEntryInteractionActual);
|
|
923
907
|
}();
|
|
924
908
|
} else {
|
|
925
|
-
resultObject.
|
|
909
|
+
resultObject.hourlyEntryInteractionActual = 0;
|
|
926
910
|
}
|
|
927
911
|
|
|
928
|
-
if (_typeof(result) === 'object' && '
|
|
929
|
-
resultObject.
|
|
930
|
-
if (
|
|
931
|
-
return
|
|
912
|
+
if (_typeof(result) === 'object' && 'hourlyEntryInteractionExpected' in result) {
|
|
913
|
+
resultObject.hourlyEntryInteractionExpected = function () {
|
|
914
|
+
if (result.hourlyEntryInteractionExpected === null) {
|
|
915
|
+
return null;
|
|
932
916
|
}
|
|
933
917
|
|
|
934
|
-
|
|
918
|
+
if (typeof result.hourlyEntryInteractionExpected !== 'number') {
|
|
919
|
+
return Number.isInteger(Number(result.hourlyEntryInteractionExpected)) ? Number(result.hourlyEntryInteractionExpected) : Math.floor(Number(result.hourlyEntryInteractionExpected));
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
return Number.isInteger(result.hourlyEntryInteractionExpected) ? result.hourlyEntryInteractionExpected : Math.floor(result.hourlyEntryInteractionExpected);
|
|
935
923
|
}();
|
|
936
924
|
} else {
|
|
937
|
-
resultObject.
|
|
925
|
+
resultObject.hourlyEntryInteractionExpected = null;
|
|
938
926
|
}
|
|
939
927
|
|
|
940
|
-
if (_typeof(result) === 'object' && '
|
|
941
|
-
resultObject.
|
|
942
|
-
if (result.
|
|
928
|
+
if (_typeof(result) === 'object' && 'hourlyEntryInteractionScore' in result) {
|
|
929
|
+
resultObject.hourlyEntryInteractionScore = function () {
|
|
930
|
+
if (result.hourlyEntryInteractionScore === null) {
|
|
943
931
|
return null;
|
|
944
932
|
}
|
|
945
933
|
|
|
946
|
-
if (typeof result.
|
|
947
|
-
return Number(result.
|
|
934
|
+
if (typeof result.hourlyEntryInteractionScore !== 'number') {
|
|
935
|
+
return Number(result.hourlyEntryInteractionScore);
|
|
948
936
|
}
|
|
949
937
|
|
|
950
|
-
return result.
|
|
938
|
+
return result.hourlyEntryInteractionScore;
|
|
951
939
|
}();
|
|
952
940
|
} else {
|
|
953
|
-
resultObject.
|
|
941
|
+
resultObject.hourlyEntryInteractionScore = null;
|
|
954
942
|
}
|
|
955
943
|
|
|
956
|
-
if (_typeof(result) === 'object' && '
|
|
957
|
-
resultObject.
|
|
958
|
-
if (Array.isArray(result.
|
|
944
|
+
if (_typeof(result) === 'object' && 'downtimeEvents' in result) {
|
|
945
|
+
resultObject.downtimeEvents = function () {
|
|
946
|
+
if (Array.isArray(result.downtimeEvents) !== true) {
|
|
959
947
|
return [];
|
|
960
948
|
}
|
|
961
949
|
|
|
962
|
-
return result.
|
|
950
|
+
return result.downtimeEvents.map(function (downtimeEventsItem) {
|
|
963
951
|
return function () {
|
|
964
|
-
|
|
952
|
+
return _DowntimeEventModel.default.fromJSON(downtimeEventsItem, siteId);
|
|
953
|
+
}();
|
|
954
|
+
});
|
|
955
|
+
}();
|
|
956
|
+
} else {
|
|
957
|
+
resultObject.downtimeEvents = [];
|
|
958
|
+
}
|
|
965
959
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
960
|
+
if (_typeof(result) === 'object' && 'focusMeetings' in result) {
|
|
961
|
+
resultObject.focusMeetings = function () {
|
|
962
|
+
if (Array.isArray(result.focusMeetings) !== true) {
|
|
963
|
+
return [];
|
|
964
|
+
}
|
|
971
965
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
966
|
+
return result.focusMeetings.map(function (focusMeetingsItem) {
|
|
967
|
+
return function () {
|
|
968
|
+
return _ShiftFocusMeetingModel.default.fromJSON(focusMeetingsItem, siteId);
|
|
969
|
+
}();
|
|
970
|
+
});
|
|
971
|
+
}();
|
|
972
|
+
} else {
|
|
973
|
+
resultObject.focusMeetings = [];
|
|
974
|
+
}
|
|
977
975
|
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
976
|
+
if (_typeof(result) === 'object' && 'focusMeetingsHeld' in result) {
|
|
977
|
+
resultObject.focusMeetingsHeld = function () {
|
|
978
|
+
if (typeof result.focusMeetingsHeld !== 'number') {
|
|
979
|
+
return Number.isInteger(Number(result.focusMeetingsHeld)) ? Number(result.focusMeetingsHeld) : Math.floor(Number(result.focusMeetingsHeld));
|
|
980
|
+
}
|
|
983
981
|
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
982
|
+
return Number.isInteger(result.focusMeetingsHeld) ? result.focusMeetingsHeld : Math.floor(result.focusMeetingsHeld);
|
|
983
|
+
}();
|
|
984
|
+
} else {
|
|
985
|
+
resultObject.focusMeetingsHeld = 0;
|
|
986
|
+
}
|
|
989
987
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
988
|
+
if (_typeof(result) === 'object' && 'focusMeetingsExpected' in result) {
|
|
989
|
+
resultObject.focusMeetingsExpected = function () {
|
|
990
|
+
if (result.focusMeetingsExpected === null) {
|
|
991
|
+
return null;
|
|
992
|
+
}
|
|
995
993
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
customQualityMetricsItemObject.type = "";
|
|
1000
|
-
}
|
|
994
|
+
if (typeof result.focusMeetingsExpected !== 'number') {
|
|
995
|
+
return Number.isInteger(Number(result.focusMeetingsExpected)) ? Number(result.focusMeetingsExpected) : Math.floor(Number(result.focusMeetingsExpected));
|
|
996
|
+
}
|
|
1001
997
|
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
998
|
+
return Number.isInteger(result.focusMeetingsExpected) ? result.focusMeetingsExpected : Math.floor(result.focusMeetingsExpected);
|
|
999
|
+
}();
|
|
1000
|
+
} else {
|
|
1001
|
+
resultObject.focusMeetingsExpected = null;
|
|
1002
|
+
}
|
|
1007
1003
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1004
|
+
if (_typeof(result) === 'object' && 'focusMeetingsScore' in result) {
|
|
1005
|
+
resultObject.focusMeetingsScore = function () {
|
|
1006
|
+
if (result.focusMeetingsScore === null) {
|
|
1007
|
+
return null;
|
|
1008
|
+
}
|
|
1013
1009
|
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
return null;
|
|
1018
|
-
}
|
|
1010
|
+
if (typeof result.focusMeetingsScore !== 'number') {
|
|
1011
|
+
return Number(result.focusMeetingsScore);
|
|
1012
|
+
}
|
|
1019
1013
|
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1014
|
+
return result.focusMeetingsScore;
|
|
1015
|
+
}();
|
|
1016
|
+
} else {
|
|
1017
|
+
resultObject.focusMeetingsScore = null;
|
|
1018
|
+
}
|
|
1023
1019
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1020
|
+
if (_typeof(result) === 'object' && 'growerChangeMeetings' in result) {
|
|
1021
|
+
resultObject.growerChangeMeetings = function () {
|
|
1022
|
+
if (Array.isArray(result.growerChangeMeetings) !== true) {
|
|
1023
|
+
return [];
|
|
1024
|
+
}
|
|
1029
1025
|
|
|
1030
|
-
|
|
1026
|
+
return result.growerChangeMeetings.map(function (growerChangeMeetingsItem) {
|
|
1027
|
+
return function () {
|
|
1028
|
+
return _ShiftGrowerChangeMeetingModel.default.fromJSON(growerChangeMeetingsItem, siteId);
|
|
1031
1029
|
}();
|
|
1032
1030
|
});
|
|
1033
1031
|
}();
|
|
1034
1032
|
} else {
|
|
1035
|
-
resultObject.
|
|
1033
|
+
resultObject.growerChangeMeetings = [];
|
|
1036
1034
|
}
|
|
1037
1035
|
|
|
1038
|
-
|
|
1039
|
-
|
|
1036
|
+
if (_typeof(result) === 'object' && 'growerChangeMeetingsHeld' in result) {
|
|
1037
|
+
resultObject.growerChangeMeetingsHeld = function () {
|
|
1038
|
+
if (typeof result.growerChangeMeetingsHeld !== 'number') {
|
|
1039
|
+
return Number.isInteger(Number(result.growerChangeMeetingsHeld)) ? Number(result.growerChangeMeetingsHeld) : Math.floor(Number(result.growerChangeMeetingsHeld));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
return Number.isInteger(result.growerChangeMeetingsHeld) ? result.growerChangeMeetingsHeld : Math.floor(result.growerChangeMeetingsHeld);
|
|
1043
|
+
}();
|
|
1044
|
+
} else {
|
|
1045
|
+
resultObject.growerChangeMeetingsHeld = 0;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if (_typeof(result) === 'object' && 'growerChangeMeetingsExpected' in result) {
|
|
1049
|
+
resultObject.growerChangeMeetingsExpected = function () {
|
|
1050
|
+
if (result.growerChangeMeetingsExpected === null) {
|
|
1051
|
+
return null;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
if (typeof result.growerChangeMeetingsExpected !== 'number') {
|
|
1055
|
+
return Number.isInteger(Number(result.growerChangeMeetingsExpected)) ? Number(result.growerChangeMeetingsExpected) : Math.floor(Number(result.growerChangeMeetingsExpected));
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
return Number.isInteger(result.growerChangeMeetingsExpected) ? result.growerChangeMeetingsExpected : Math.floor(result.growerChangeMeetingsExpected);
|
|
1059
|
+
}();
|
|
1060
|
+
} else {
|
|
1061
|
+
resultObject.growerChangeMeetingsExpected = null;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
if (_typeof(result) === 'object' && 'growerChangeMeetingsScore' in result) {
|
|
1065
|
+
resultObject.growerChangeMeetingsScore = function () {
|
|
1066
|
+
if (result.growerChangeMeetingsScore === null) {
|
|
1067
|
+
return null;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if (typeof result.growerChangeMeetingsScore !== 'number') {
|
|
1071
|
+
return Number(result.growerChangeMeetingsScore);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
return result.growerChangeMeetingsScore;
|
|
1075
|
+
}();
|
|
1076
|
+
} else {
|
|
1077
|
+
resultObject.growerChangeMeetingsScore = null;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
if (_typeof(result) === 'object' && 'associatedPackruns' in result) {
|
|
1081
|
+
resultObject.associatedPackruns = function () {
|
|
1082
|
+
if (Array.isArray(result.associatedPackruns) !== true) {
|
|
1083
|
+
return [];
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return result.associatedPackruns.map(function (associatedPackrunsItem) {
|
|
1087
|
+
return function () {
|
|
1088
|
+
return _PackrunModel.default.fromJSON(associatedPackrunsItem, siteId);
|
|
1089
|
+
}();
|
|
1090
|
+
});
|
|
1091
|
+
}();
|
|
1092
|
+
} else {
|
|
1093
|
+
resultObject.associatedPackruns = [];
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (_typeof(result) === 'object' && 'associatedVarietyIds' in result) {
|
|
1097
|
+
resultObject.associatedVarietyIds = function () {
|
|
1098
|
+
if (Array.isArray(result.associatedVarietyIds) !== true) {
|
|
1099
|
+
return [];
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
return result.associatedVarietyIds.map(function (associatedVarietyIdsItem) {
|
|
1103
|
+
return function () {
|
|
1104
|
+
if (typeof associatedVarietyIdsItem !== 'string') {
|
|
1105
|
+
return String(associatedVarietyIdsItem);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
return associatedVarietyIdsItem;
|
|
1109
|
+
}();
|
|
1110
|
+
});
|
|
1111
|
+
}();
|
|
1112
|
+
} else {
|
|
1113
|
+
resultObject.associatedVarietyIds = [];
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (_typeof(result) === 'object' && 'associatedVarietyCodes' in result) {
|
|
1117
|
+
resultObject.associatedVarietyCodes = function () {
|
|
1118
|
+
if (Array.isArray(result.associatedVarietyCodes) !== true) {
|
|
1119
|
+
return [];
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
return result.associatedVarietyCodes.map(function (associatedVarietyCodesItem) {
|
|
1123
|
+
return function () {
|
|
1124
|
+
if (typeof associatedVarietyCodesItem !== 'string') {
|
|
1125
|
+
return String(associatedVarietyCodesItem);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
return associatedVarietyCodesItem;
|
|
1129
|
+
}();
|
|
1130
|
+
});
|
|
1131
|
+
}();
|
|
1132
|
+
} else {
|
|
1133
|
+
resultObject.associatedVarietyCodes = [];
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
if (_typeof(result) === 'object' && 'associatedGrowingMethodIds' in result) {
|
|
1137
|
+
resultObject.associatedGrowingMethodIds = function () {
|
|
1138
|
+
if (Array.isArray(result.associatedGrowingMethodIds) !== true) {
|
|
1139
|
+
return [];
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
return result.associatedGrowingMethodIds.map(function (associatedGrowingMethodIdsItem) {
|
|
1143
|
+
return function () {
|
|
1144
|
+
if (typeof associatedGrowingMethodIdsItem !== 'string') {
|
|
1145
|
+
return String(associatedGrowingMethodIdsItem);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
return associatedGrowingMethodIdsItem;
|
|
1149
|
+
}();
|
|
1150
|
+
});
|
|
1151
|
+
}();
|
|
1152
|
+
} else {
|
|
1153
|
+
resultObject.associatedGrowingMethodIds = [];
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
if (_typeof(result) === 'object' && 'associatedGrowingMethodCodes' in result) {
|
|
1157
|
+
resultObject.associatedGrowingMethodCodes = function () {
|
|
1158
|
+
if (Array.isArray(result.associatedGrowingMethodCodes) !== true) {
|
|
1159
|
+
return [];
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
return result.associatedGrowingMethodCodes.map(function (associatedGrowingMethodCodesItem) {
|
|
1163
|
+
return function () {
|
|
1164
|
+
if (typeof associatedGrowingMethodCodesItem !== 'string') {
|
|
1165
|
+
return String(associatedGrowingMethodCodesItem);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
return associatedGrowingMethodCodesItem;
|
|
1169
|
+
}();
|
|
1170
|
+
});
|
|
1171
|
+
}();
|
|
1172
|
+
} else {
|
|
1173
|
+
resultObject.associatedGrowingMethodCodes = [];
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
if (_typeof(result) === 'object' && 'qualitySummary' in result) {
|
|
1177
|
+
resultObject.qualitySummary = function () {
|
|
1178
|
+
if (result.qualitySummary === null) {
|
|
1179
|
+
return null;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
return _ShiftQualitySummaryModel.default.fromJSON(result.qualitySummary, siteId);
|
|
1183
|
+
}();
|
|
1184
|
+
} else {
|
|
1185
|
+
resultObject.qualitySummary = null;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
if (_typeof(result) === 'object' && 'binsTippedTarget' in result) {
|
|
1189
|
+
resultObject.binsTippedTarget = function () {
|
|
1190
|
+
if (typeof result.binsTippedTarget !== 'number') {
|
|
1191
|
+
return Number.isInteger(Number(result.binsTippedTarget)) ? Number(result.binsTippedTarget) : Math.floor(Number(result.binsTippedTarget));
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
return Number.isInteger(result.binsTippedTarget) ? result.binsTippedTarget : Math.floor(result.binsTippedTarget);
|
|
1195
|
+
}();
|
|
1196
|
+
} else {
|
|
1197
|
+
resultObject.binsTippedTarget = 0;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
if (_typeof(result) === 'object' && 'totalBinsTipped' in result) {
|
|
1201
|
+
resultObject.totalBinsTipped = function () {
|
|
1202
|
+
if (typeof result.totalBinsTipped !== 'number') {
|
|
1203
|
+
return Number.isInteger(Number(result.totalBinsTipped)) ? Number(result.totalBinsTipped) : Math.floor(Number(result.totalBinsTipped));
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
return Number.isInteger(result.totalBinsTipped) ? result.totalBinsTipped : Math.floor(result.totalBinsTipped);
|
|
1207
|
+
}();
|
|
1208
|
+
} else {
|
|
1209
|
+
resultObject.totalBinsTipped = 0;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
if (_typeof(result) === 'object' && 'binsTippedPerHour' in result) {
|
|
1213
|
+
resultObject.binsTippedPerHour = function () {
|
|
1214
|
+
if (typeof result.binsTippedPerHour !== 'number') {
|
|
1215
|
+
return Number.isInteger(Number(result.binsTippedPerHour)) ? Number(result.binsTippedPerHour) : Math.floor(Number(result.binsTippedPerHour));
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
return Number.isInteger(result.binsTippedPerHour) ? result.binsTippedPerHour : Math.floor(result.binsTippedPerHour);
|
|
1219
|
+
}();
|
|
1220
|
+
} else {
|
|
1221
|
+
resultObject.binsTippedPerHour = 0;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
if (_typeof(result) === 'object' && 'binsTippedPerHourExcludingDowntime' in result) {
|
|
1225
|
+
resultObject.binsTippedPerHourExcludingDowntime = function () {
|
|
1226
|
+
if (typeof result.binsTippedPerHourExcludingDowntime !== 'number') {
|
|
1227
|
+
return Number.isInteger(Number(result.binsTippedPerHourExcludingDowntime)) ? Number(result.binsTippedPerHourExcludingDowntime) : Math.floor(Number(result.binsTippedPerHourExcludingDowntime));
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
return Number.isInteger(result.binsTippedPerHourExcludingDowntime) ? result.binsTippedPerHourExcludingDowntime : Math.floor(result.binsTippedPerHourExcludingDowntime);
|
|
1231
|
+
}();
|
|
1232
|
+
} else {
|
|
1233
|
+
resultObject.binsTippedPerHourExcludingDowntime = 0;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
if (_typeof(result) === 'object' && 'totalProductionTime' in result) {
|
|
1237
|
+
resultObject.totalProductionTime = function () {
|
|
1238
|
+
if (typeof result.totalProductionTime !== 'number') {
|
|
1239
|
+
return Number.isInteger(Number(result.totalProductionTime)) ? Number(result.totalProductionTime) : Math.floor(Number(result.totalProductionTime));
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
return Number.isInteger(result.totalProductionTime) ? result.totalProductionTime : Math.floor(result.totalProductionTime);
|
|
1243
|
+
}();
|
|
1244
|
+
} else {
|
|
1245
|
+
resultObject.totalProductionTime = 0;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
if (_typeof(result) === 'object' && 'totalScheduledBreakTime' in result) {
|
|
1249
|
+
resultObject.totalScheduledBreakTime = function () {
|
|
1250
|
+
if (typeof result.totalScheduledBreakTime !== 'number') {
|
|
1251
|
+
return Number.isInteger(Number(result.totalScheduledBreakTime)) ? Number(result.totalScheduledBreakTime) : Math.floor(Number(result.totalScheduledBreakTime));
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
return Number.isInteger(result.totalScheduledBreakTime) ? result.totalScheduledBreakTime : Math.floor(result.totalScheduledBreakTime);
|
|
1255
|
+
}();
|
|
1256
|
+
} else {
|
|
1257
|
+
resultObject.totalScheduledBreakTime = 0;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
if (_typeof(result) === 'object' && 'totalDowntime' in result) {
|
|
1261
|
+
resultObject.totalDowntime = function () {
|
|
1262
|
+
if (typeof result.totalDowntime !== 'number') {
|
|
1263
|
+
return Number.isInteger(Number(result.totalDowntime)) ? Number(result.totalDowntime) : Math.floor(Number(result.totalDowntime));
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
return Number.isInteger(result.totalDowntime) ? result.totalDowntime : Math.floor(result.totalDowntime);
|
|
1267
|
+
}();
|
|
1268
|
+
} else {
|
|
1269
|
+
resultObject.totalDowntime = 0;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
if (_typeof(result) === 'object' && 'totalDowntimePercentage' in result) {
|
|
1273
|
+
resultObject.totalDowntimePercentage = function () {
|
|
1274
|
+
if (typeof result.totalDowntimePercentage !== 'number') {
|
|
1275
|
+
return Number(result.totalDowntimePercentage);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
return result.totalDowntimePercentage;
|
|
1279
|
+
}();
|
|
1280
|
+
} else {
|
|
1281
|
+
resultObject.totalDowntimePercentage = 0;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
if (_typeof(result) === 'object' && 'downtimeEventsCount' in result) {
|
|
1285
|
+
resultObject.downtimeEventsCount = function () {
|
|
1286
|
+
if (typeof result.downtimeEventsCount !== 'number') {
|
|
1287
|
+
return Number.isInteger(Number(result.downtimeEventsCount)) ? Number(result.downtimeEventsCount) : Math.floor(Number(result.downtimeEventsCount));
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
return Number.isInteger(result.downtimeEventsCount) ? result.downtimeEventsCount : Math.floor(result.downtimeEventsCount);
|
|
1291
|
+
}();
|
|
1292
|
+
} else {
|
|
1293
|
+
resultObject.downtimeEventsCount = 0;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
if (_typeof(result) === 'object' && 'downtimeEventsAverageDuration' in result) {
|
|
1297
|
+
resultObject.downtimeEventsAverageDuration = function () {
|
|
1298
|
+
if (result.downtimeEventsAverageDuration === null) {
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
if (typeof result.downtimeEventsAverageDuration !== 'number') {
|
|
1303
|
+
return Number.isInteger(Number(result.downtimeEventsAverageDuration)) ? Number(result.downtimeEventsAverageDuration) : Math.floor(Number(result.downtimeEventsAverageDuration));
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
return Number.isInteger(result.downtimeEventsAverageDuration) ? result.downtimeEventsAverageDuration : Math.floor(result.downtimeEventsAverageDuration);
|
|
1307
|
+
}();
|
|
1308
|
+
} else {
|
|
1309
|
+
resultObject.downtimeEventsAverageDuration = null;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
if (_typeof(result) === 'object' && 'class1ManningTarget' in result) {
|
|
1313
|
+
resultObject.class1ManningTarget = function () {
|
|
1314
|
+
if (result.class1ManningTarget === null) {
|
|
1315
|
+
return null;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
if (typeof result.class1ManningTarget !== 'number') {
|
|
1319
|
+
return Number.isInteger(Number(result.class1ManningTarget)) ? Number(result.class1ManningTarget) : Math.floor(Number(result.class1ManningTarget));
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
return Number.isInteger(result.class1ManningTarget) ? result.class1ManningTarget : Math.floor(result.class1ManningTarget);
|
|
1323
|
+
}();
|
|
1324
|
+
} else {
|
|
1325
|
+
resultObject.class1ManningTarget = null;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
if (_typeof(result) === 'object' && 'averageClass1Manning' in result) {
|
|
1329
|
+
resultObject.averageClass1Manning = function () {
|
|
1330
|
+
if (result.averageClass1Manning === null) {
|
|
1331
|
+
return null;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
if (typeof result.averageClass1Manning !== 'number') {
|
|
1335
|
+
return Number.isInteger(Number(result.averageClass1Manning)) ? Number(result.averageClass1Manning) : Math.floor(Number(result.averageClass1Manning));
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
return Number.isInteger(result.averageClass1Manning) ? result.averageClass1Manning : Math.floor(result.averageClass1Manning);
|
|
1339
|
+
}();
|
|
1340
|
+
} else {
|
|
1341
|
+
resultObject.averageClass1Manning = null;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
if (_typeof(result) === 'object' && 'class1ManningPercentage' in result) {
|
|
1345
|
+
resultObject.class1ManningPercentage = function () {
|
|
1346
|
+
if (result.class1ManningPercentage === null) {
|
|
1347
|
+
return null;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
if (typeof result.class1ManningPercentage !== 'number') {
|
|
1351
|
+
return Number(result.class1ManningPercentage);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
return result.class1ManningPercentage;
|
|
1355
|
+
}();
|
|
1356
|
+
} else {
|
|
1357
|
+
resultObject.class1ManningPercentage = null;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (_typeof(result) === 'object' && 'class2ManningTarget' in result) {
|
|
1361
|
+
resultObject.class2ManningTarget = function () {
|
|
1362
|
+
if (result.class2ManningTarget === null) {
|
|
1363
|
+
return null;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
if (typeof result.class2ManningTarget !== 'number') {
|
|
1367
|
+
return Number.isInteger(Number(result.class2ManningTarget)) ? Number(result.class2ManningTarget) : Math.floor(Number(result.class2ManningTarget));
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
return Number.isInteger(result.class2ManningTarget) ? result.class2ManningTarget : Math.floor(result.class2ManningTarget);
|
|
1371
|
+
}();
|
|
1372
|
+
} else {
|
|
1373
|
+
resultObject.class2ManningTarget = null;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
if (_typeof(result) === 'object' && 'averageClass2Manning' in result) {
|
|
1377
|
+
resultObject.averageClass2Manning = function () {
|
|
1378
|
+
if (result.averageClass2Manning === null) {
|
|
1379
|
+
return null;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
if (typeof result.averageClass2Manning !== 'number') {
|
|
1383
|
+
return Number.isInteger(Number(result.averageClass2Manning)) ? Number(result.averageClass2Manning) : Math.floor(Number(result.averageClass2Manning));
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
return Number.isInteger(result.averageClass2Manning) ? result.averageClass2Manning : Math.floor(result.averageClass2Manning);
|
|
1387
|
+
}();
|
|
1388
|
+
} else {
|
|
1389
|
+
resultObject.averageClass2Manning = null;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
if (_typeof(result) === 'object' && 'class2ManningPercentage' in result) {
|
|
1393
|
+
resultObject.class2ManningPercentage = function () {
|
|
1394
|
+
if (result.class2ManningPercentage === null) {
|
|
1395
|
+
return null;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
if (typeof result.class2ManningPercentage !== 'number') {
|
|
1399
|
+
return Number(result.class2ManningPercentage);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
return result.class2ManningPercentage;
|
|
1403
|
+
}();
|
|
1404
|
+
} else {
|
|
1405
|
+
resultObject.class2ManningPercentage = null;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
if (_typeof(result) === 'object' && 'totalManningTarget' in result) {
|
|
1409
|
+
resultObject.totalManningTarget = function () {
|
|
1410
|
+
if (result.totalManningTarget === null) {
|
|
1411
|
+
return null;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
if (typeof result.totalManningTarget !== 'number') {
|
|
1415
|
+
return Number.isInteger(Number(result.totalManningTarget)) ? Number(result.totalManningTarget) : Math.floor(Number(result.totalManningTarget));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
return Number.isInteger(result.totalManningTarget) ? result.totalManningTarget : Math.floor(result.totalManningTarget);
|
|
1419
|
+
}();
|
|
1420
|
+
} else {
|
|
1421
|
+
resultObject.totalManningTarget = null;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
if (_typeof(result) === 'object' && 'averageTotalManning' in result) {
|
|
1425
|
+
resultObject.averageTotalManning = function () {
|
|
1426
|
+
if (result.averageTotalManning === null) {
|
|
1427
|
+
return null;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
if (typeof result.averageTotalManning !== 'number') {
|
|
1431
|
+
return Number.isInteger(Number(result.averageTotalManning)) ? Number(result.averageTotalManning) : Math.floor(Number(result.averageTotalManning));
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
return Number.isInteger(result.averageTotalManning) ? result.averageTotalManning : Math.floor(result.averageTotalManning);
|
|
1435
|
+
}();
|
|
1436
|
+
} else {
|
|
1437
|
+
resultObject.averageTotalManning = null;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
if (_typeof(result) === 'object' && 'totalManningPercentage' in result) {
|
|
1441
|
+
resultObject.totalManningPercentage = function () {
|
|
1442
|
+
if (result.totalManningPercentage === null) {
|
|
1443
|
+
return null;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
if (typeof result.totalManningPercentage !== 'number') {
|
|
1447
|
+
return Number(result.totalManningPercentage);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
return result.totalManningPercentage;
|
|
1451
|
+
}();
|
|
1452
|
+
} else {
|
|
1453
|
+
resultObject.totalManningPercentage = null;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
if (_typeof(result) === 'object' && 'costPerManningUnitHour' in result) {
|
|
1457
|
+
resultObject.costPerManningUnitHour = function () {
|
|
1458
|
+
if (result.costPerManningUnitHour === null) {
|
|
1459
|
+
return null;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
if (typeof result.costPerManningUnitHour !== 'number') {
|
|
1463
|
+
return Number(result.costPerManningUnitHour);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
return result.costPerManningUnitHour;
|
|
1467
|
+
}();
|
|
1468
|
+
} else {
|
|
1469
|
+
resultObject.costPerManningUnitHour = null;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
if (_typeof(result) === 'object' && 'totalHoursWorked' in result) {
|
|
1473
|
+
resultObject.totalHoursWorked = function () {
|
|
1474
|
+
if (typeof result.totalHoursWorked !== 'number') {
|
|
1475
|
+
return Number(result.totalHoursWorked);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
return result.totalHoursWorked;
|
|
1479
|
+
}();
|
|
1480
|
+
} else {
|
|
1481
|
+
resultObject.totalHoursWorked = 0;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
if (_typeof(result) === 'object' && 'totalHoursWorkedExcludingDowntime' in result) {
|
|
1485
|
+
resultObject.totalHoursWorkedExcludingDowntime = function () {
|
|
1486
|
+
if (typeof result.totalHoursWorkedExcludingDowntime !== 'number') {
|
|
1487
|
+
return Number(result.totalHoursWorkedExcludingDowntime);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
return result.totalHoursWorkedExcludingDowntime;
|
|
1491
|
+
}();
|
|
1492
|
+
} else {
|
|
1493
|
+
resultObject.totalHoursWorkedExcludingDowntime = 0;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
if (_typeof(result) === 'object' && 'totalHoursPaid' in result) {
|
|
1497
|
+
resultObject.totalHoursPaid = function () {
|
|
1498
|
+
if (typeof result.totalHoursPaid !== 'number') {
|
|
1499
|
+
return Number(result.totalHoursPaid);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
return result.totalHoursPaid;
|
|
1503
|
+
}();
|
|
1504
|
+
} else {
|
|
1505
|
+
resultObject.totalHoursPaid = 0;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
if (_typeof(result) === 'object' && 'class1TotalManningCost' in result) {
|
|
1509
|
+
resultObject.class1TotalManningCost = function () {
|
|
1510
|
+
if (result.class1TotalManningCost === null) {
|
|
1511
|
+
return null;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
if (typeof result.class1TotalManningCost !== 'number') {
|
|
1515
|
+
return Number(result.class1TotalManningCost);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
return result.class1TotalManningCost;
|
|
1519
|
+
}();
|
|
1520
|
+
} else {
|
|
1521
|
+
resultObject.class1TotalManningCost = null;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
if (_typeof(result) === 'object' && 'class2TotalManningCost' in result) {
|
|
1525
|
+
resultObject.class2TotalManningCost = function () {
|
|
1526
|
+
if (result.class2TotalManningCost === null) {
|
|
1527
|
+
return null;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
if (typeof result.class2TotalManningCost !== 'number') {
|
|
1531
|
+
return Number(result.class2TotalManningCost);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
return result.class2TotalManningCost;
|
|
1535
|
+
}();
|
|
1536
|
+
} else {
|
|
1537
|
+
resultObject.class2TotalManningCost = null;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
if (_typeof(result) === 'object' && 'class1DowntimeManningCost' in result) {
|
|
1541
|
+
resultObject.class1DowntimeManningCost = function () {
|
|
1542
|
+
if (result.class1DowntimeManningCost === null) {
|
|
1543
|
+
return null;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
if (typeof result.class1DowntimeManningCost !== 'number') {
|
|
1547
|
+
return Number(result.class1DowntimeManningCost);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
return result.class1DowntimeManningCost;
|
|
1551
|
+
}();
|
|
1552
|
+
} else {
|
|
1553
|
+
resultObject.class1DowntimeManningCost = null;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
if (_typeof(result) === 'object' && 'class2DowntimeManningCost' in result) {
|
|
1557
|
+
resultObject.class2DowntimeManningCost = function () {
|
|
1558
|
+
if (result.class2DowntimeManningCost === null) {
|
|
1559
|
+
return null;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
if (typeof result.class2DowntimeManningCost !== 'number') {
|
|
1563
|
+
return Number(result.class2DowntimeManningCost);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
return result.class2DowntimeManningCost;
|
|
1567
|
+
}();
|
|
1568
|
+
} else {
|
|
1569
|
+
resultObject.class2DowntimeManningCost = null;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
if (_typeof(result) === 'object' && 'class1CostPerTrayTarget' in result) {
|
|
1573
|
+
resultObject.class1CostPerTrayTarget = function () {
|
|
1574
|
+
if (result.class1CostPerTrayTarget === null) {
|
|
1575
|
+
return null;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (typeof result.class1CostPerTrayTarget !== 'number') {
|
|
1579
|
+
return Number(result.class1CostPerTrayTarget);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
return result.class1CostPerTrayTarget;
|
|
1583
|
+
}();
|
|
1584
|
+
} else {
|
|
1585
|
+
resultObject.class1CostPerTrayTarget = null;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
if (_typeof(result) === 'object' && 'class1CostPerTrayActual' in result) {
|
|
1589
|
+
resultObject.class1CostPerTrayActual = function () {
|
|
1590
|
+
if (result.class1CostPerTrayActual === null) {
|
|
1591
|
+
return null;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
if (typeof result.class1CostPerTrayActual !== 'number') {
|
|
1595
|
+
return Number(result.class1CostPerTrayActual);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
return result.class1CostPerTrayActual;
|
|
1599
|
+
}();
|
|
1600
|
+
} else {
|
|
1601
|
+
resultObject.class1CostPerTrayActual = null;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
if (_typeof(result) === 'object' && 'class2CostPerTrayActual' in result) {
|
|
1605
|
+
resultObject.class2CostPerTrayActual = function () {
|
|
1606
|
+
if (result.class2CostPerTrayActual === null) {
|
|
1607
|
+
return null;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
if (typeof result.class2CostPerTrayActual !== 'number') {
|
|
1611
|
+
return Number(result.class2CostPerTrayActual);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
return result.class2CostPerTrayActual;
|
|
1615
|
+
}();
|
|
1616
|
+
} else {
|
|
1617
|
+
resultObject.class2CostPerTrayActual = null;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
if (_typeof(result) === 'object' && 'totalClass1Trays' in result) {
|
|
1621
|
+
resultObject.totalClass1Trays = function () {
|
|
1622
|
+
if (typeof result.totalClass1Trays !== 'number') {
|
|
1623
|
+
return Number.isInteger(Number(result.totalClass1Trays)) ? Number(result.totalClass1Trays) : Math.floor(Number(result.totalClass1Trays));
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
return Number.isInteger(result.totalClass1Trays) ? result.totalClass1Trays : Math.floor(result.totalClass1Trays);
|
|
1627
|
+
}();
|
|
1628
|
+
} else {
|
|
1629
|
+
resultObject.totalClass1Trays = 0;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
if (_typeof(result) === 'object' && 'totalClass2Trays' in result) {
|
|
1633
|
+
resultObject.totalClass2Trays = function () {
|
|
1634
|
+
if (typeof result.totalClass2Trays !== 'number') {
|
|
1635
|
+
return Number.isInteger(Number(result.totalClass2Trays)) ? Number(result.totalClass2Trays) : Math.floor(Number(result.totalClass2Trays));
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
return Number.isInteger(result.totalClass2Trays) ? result.totalClass2Trays : Math.floor(result.totalClass2Trays);
|
|
1639
|
+
}();
|
|
1640
|
+
} else {
|
|
1641
|
+
resultObject.totalClass2Trays = 0;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHour' in result) {
|
|
1645
|
+
resultObject.class1TraysPerHour = function () {
|
|
1646
|
+
if (result.class1TraysPerHour === null) {
|
|
1647
|
+
return null;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
if (typeof result.class1TraysPerHour !== 'number') {
|
|
1651
|
+
return Number.isInteger(Number(result.class1TraysPerHour)) ? Number(result.class1TraysPerHour) : Math.floor(Number(result.class1TraysPerHour));
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
return Number.isInteger(result.class1TraysPerHour) ? result.class1TraysPerHour : Math.floor(result.class1TraysPerHour);
|
|
1655
|
+
}();
|
|
1656
|
+
} else {
|
|
1657
|
+
resultObject.class1TraysPerHour = null;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHourExcludingDowntime' in result) {
|
|
1661
|
+
resultObject.class1TraysPerHourExcludingDowntime = function () {
|
|
1662
|
+
if (result.class1TraysPerHourExcludingDowntime === null) {
|
|
1663
|
+
return null;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
if (typeof result.class1TraysPerHourExcludingDowntime !== 'number') {
|
|
1667
|
+
return Number.isInteger(Number(result.class1TraysPerHourExcludingDowntime)) ? Number(result.class1TraysPerHourExcludingDowntime) : Math.floor(Number(result.class1TraysPerHourExcludingDowntime));
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
return Number.isInteger(result.class1TraysPerHourExcludingDowntime) ? result.class1TraysPerHourExcludingDowntime : Math.floor(result.class1TraysPerHourExcludingDowntime);
|
|
1671
|
+
}();
|
|
1672
|
+
} else {
|
|
1673
|
+
resultObject.class1TraysPerHourExcludingDowntime = null;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHourExcludingDowntimeTarget' in result) {
|
|
1677
|
+
resultObject.class1TraysPerHourExcludingDowntimeTarget = function () {
|
|
1678
|
+
if (result.class1TraysPerHourExcludingDowntimeTarget === null) {
|
|
1679
|
+
return null;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
if (typeof result.class1TraysPerHourExcludingDowntimeTarget !== 'number') {
|
|
1683
|
+
return Number.isInteger(Number(result.class1TraysPerHourExcludingDowntimeTarget)) ? Number(result.class1TraysPerHourExcludingDowntimeTarget) : Math.floor(Number(result.class1TraysPerHourExcludingDowntimeTarget));
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
return Number.isInteger(result.class1TraysPerHourExcludingDowntimeTarget) ? result.class1TraysPerHourExcludingDowntimeTarget : Math.floor(result.class1TraysPerHourExcludingDowntimeTarget);
|
|
1687
|
+
}();
|
|
1688
|
+
} else {
|
|
1689
|
+
resultObject.class1TraysPerHourExcludingDowntimeTarget = null;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
if (_typeof(result) === 'object' && 'class1TraysPerManHour' in result) {
|
|
1693
|
+
resultObject.class1TraysPerManHour = function () {
|
|
1694
|
+
if (result.class1TraysPerManHour === null) {
|
|
1695
|
+
return null;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
if (typeof result.class1TraysPerManHour !== 'number') {
|
|
1699
|
+
return Number(result.class1TraysPerManHour);
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
return result.class1TraysPerManHour;
|
|
1703
|
+
}();
|
|
1704
|
+
} else {
|
|
1705
|
+
resultObject.class1TraysPerManHour = null;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
if (_typeof(result) === 'object' && 'class1TraysPerManHourExcludingDowntime' in result) {
|
|
1709
|
+
resultObject.class1TraysPerManHourExcludingDowntime = function () {
|
|
1710
|
+
if (result.class1TraysPerManHourExcludingDowntime === null) {
|
|
1711
|
+
return null;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
if (typeof result.class1TraysPerManHourExcludingDowntime !== 'number') {
|
|
1715
|
+
return Number(result.class1TraysPerManHourExcludingDowntime);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
return result.class1TraysPerManHourExcludingDowntime;
|
|
1719
|
+
}();
|
|
1720
|
+
} else {
|
|
1721
|
+
resultObject.class1TraysPerManHourExcludingDowntime = null;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
if (_typeof(result) === 'object' && 'class2TraysPerHour' in result) {
|
|
1725
|
+
resultObject.class2TraysPerHour = function () {
|
|
1726
|
+
if (result.class2TraysPerHour === null) {
|
|
1727
|
+
return null;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
if (typeof result.class2TraysPerHour !== 'number') {
|
|
1731
|
+
return Number.isInteger(Number(result.class2TraysPerHour)) ? Number(result.class2TraysPerHour) : Math.floor(Number(result.class2TraysPerHour));
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
return Number.isInteger(result.class2TraysPerHour) ? result.class2TraysPerHour : Math.floor(result.class2TraysPerHour);
|
|
1735
|
+
}();
|
|
1736
|
+
} else {
|
|
1737
|
+
resultObject.class2TraysPerHour = null;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
if (_typeof(result) === 'object' && 'class2TraysPerHourExcludingDowntime' in result) {
|
|
1741
|
+
resultObject.class2TraysPerHourExcludingDowntime = function () {
|
|
1742
|
+
if (result.class2TraysPerHourExcludingDowntime === null) {
|
|
1743
|
+
return null;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
if (typeof result.class2TraysPerHourExcludingDowntime !== 'number') {
|
|
1747
|
+
return Number.isInteger(Number(result.class2TraysPerHourExcludingDowntime)) ? Number(result.class2TraysPerHourExcludingDowntime) : Math.floor(Number(result.class2TraysPerHourExcludingDowntime));
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
return Number.isInteger(result.class2TraysPerHourExcludingDowntime) ? result.class2TraysPerHourExcludingDowntime : Math.floor(result.class2TraysPerHourExcludingDowntime);
|
|
1751
|
+
}();
|
|
1752
|
+
} else {
|
|
1753
|
+
resultObject.class2TraysPerHourExcludingDowntime = null;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
if (_typeof(result) === 'object' && 'class2TraysPerManHour' in result) {
|
|
1757
|
+
resultObject.class2TraysPerManHour = function () {
|
|
1758
|
+
if (result.class2TraysPerManHour === null) {
|
|
1759
|
+
return null;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
if (typeof result.class2TraysPerManHour !== 'number') {
|
|
1763
|
+
return Number(result.class2TraysPerManHour);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
return result.class2TraysPerManHour;
|
|
1767
|
+
}();
|
|
1768
|
+
} else {
|
|
1769
|
+
resultObject.class2TraysPerManHour = null;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
if (_typeof(result) === 'object' && 'class2TraysPerManHourExcludingDowntime' in result) {
|
|
1773
|
+
resultObject.class2TraysPerManHourExcludingDowntime = function () {
|
|
1774
|
+
if (result.class2TraysPerManHourExcludingDowntime === null) {
|
|
1775
|
+
return null;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
if (typeof result.class2TraysPerManHourExcludingDowntime !== 'number') {
|
|
1779
|
+
return Number(result.class2TraysPerManHourExcludingDowntime);
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
return result.class2TraysPerManHourExcludingDowntime;
|
|
1783
|
+
}();
|
|
1784
|
+
} else {
|
|
1785
|
+
resultObject.class2TraysPerManHourExcludingDowntime = null;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
if (_typeof(result) === 'object' && 'class1LayeredPercentageTarget' in result) {
|
|
1789
|
+
resultObject.class1LayeredPercentageTarget = function () {
|
|
1790
|
+
if (result.class1LayeredPercentageTarget === null) {
|
|
1791
|
+
return null;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
if (typeof result.class1LayeredPercentageTarget !== 'number') {
|
|
1795
|
+
return Number(result.class1LayeredPercentageTarget);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
return result.class1LayeredPercentageTarget;
|
|
1799
|
+
}();
|
|
1800
|
+
} else {
|
|
1801
|
+
resultObject.class1LayeredPercentageTarget = null;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
if (_typeof(result) === 'object' && 'class1LayeredPercentage' in result) {
|
|
1805
|
+
resultObject.class1LayeredPercentage = function () {
|
|
1806
|
+
if (result.class1LayeredPercentage === null) {
|
|
1807
|
+
return null;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
if (typeof result.class1LayeredPercentage !== 'number') {
|
|
1811
|
+
return Number(result.class1LayeredPercentage);
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
return result.class1LayeredPercentage;
|
|
1815
|
+
}();
|
|
1816
|
+
} else {
|
|
1817
|
+
resultObject.class1LayeredPercentage = null;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
if (_typeof(result) === 'object' && 'class1BulkPercentage' in result) {
|
|
1821
|
+
resultObject.class1BulkPercentage = function () {
|
|
1822
|
+
if (result.class1BulkPercentage === null) {
|
|
1823
|
+
return null;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
if (typeof result.class1BulkPercentage !== 'number') {
|
|
1827
|
+
return Number(result.class1BulkPercentage);
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
return result.class1BulkPercentage;
|
|
1831
|
+
}();
|
|
1832
|
+
} else {
|
|
1833
|
+
resultObject.class1BulkPercentage = null;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
if (_typeof(result) === 'object' && 'averageClass1Percentage' in result) {
|
|
1837
|
+
resultObject.averageClass1Percentage = function () {
|
|
1838
|
+
if (result.averageClass1Percentage === null) {
|
|
1839
|
+
return null;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
if (typeof result.averageClass1Percentage !== 'number') {
|
|
1843
|
+
return Number(result.averageClass1Percentage);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
return result.averageClass1Percentage;
|
|
1847
|
+
}();
|
|
1848
|
+
} else {
|
|
1849
|
+
resultObject.averageClass1Percentage = null;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealSamplesTarget' in result) {
|
|
1853
|
+
resultObject.qualityR600IdealSamplesTarget = function () {
|
|
1854
|
+
if (result.qualityR600IdealSamplesTarget === null) {
|
|
1855
|
+
return null;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
if (typeof result.qualityR600IdealSamplesTarget !== 'number') {
|
|
1859
|
+
return Number(result.qualityR600IdealSamplesTarget);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
return result.qualityR600IdealSamplesTarget;
|
|
1863
|
+
}();
|
|
1864
|
+
} else {
|
|
1865
|
+
resultObject.qualityR600IdealSamplesTarget = null;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealSamplesActual' in result) {
|
|
1869
|
+
resultObject.qualityR600IdealSamplesActual = function () {
|
|
1870
|
+
if (result.qualityR600IdealSamplesActual === null) {
|
|
1871
|
+
return null;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
if (typeof result.qualityR600IdealSamplesActual !== 'number') {
|
|
1875
|
+
return Number(result.qualityR600IdealSamplesActual);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
return result.qualityR600IdealSamplesActual;
|
|
1879
|
+
}();
|
|
1880
|
+
} else {
|
|
1881
|
+
resultObject.qualityR600IdealSamplesActual = null;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
if (_typeof(result) === 'object' && 'customQualityData' in result) {
|
|
1885
|
+
resultObject.customQualityData = function () {
|
|
1886
|
+
if (Array.isArray(result.customQualityData) !== true) {
|
|
1887
|
+
return [];
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
return result.customQualityData.map(function (customQualityDataItem) {
|
|
1891
|
+
return function () {
|
|
1892
|
+
var customQualityDataItemObject = {};
|
|
1893
|
+
|
|
1894
|
+
if (_typeof(customQualityDataItem) === 'object' && 'id' in customQualityDataItem) {
|
|
1895
|
+
customQualityDataItemObject.id = function () {
|
|
1896
|
+
if (typeof customQualityDataItem.id !== 'string') {
|
|
1897
|
+
return String(customQualityDataItem.id);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
return customQualityDataItem.id;
|
|
1901
|
+
}();
|
|
1902
|
+
} else {
|
|
1903
|
+
customQualityDataItemObject.id = "";
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
if (_typeof(customQualityDataItem) === 'object' && 'name' in customQualityDataItem) {
|
|
1907
|
+
customQualityDataItemObject.name = function () {
|
|
1908
|
+
if (typeof customQualityDataItem.name !== 'string') {
|
|
1909
|
+
return String(customQualityDataItem.name);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
return customQualityDataItem.name;
|
|
1913
|
+
}();
|
|
1914
|
+
} else {
|
|
1915
|
+
customQualityDataItemObject.name = "";
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
if (_typeof(customQualityDataItem) === 'object' && 'type' in customQualityDataItem) {
|
|
1919
|
+
customQualityDataItemObject.type = function () {
|
|
1920
|
+
if (typeof customQualityDataItem.type !== 'string') {
|
|
1921
|
+
return String(customQualityDataItem.type);
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
return customQualityDataItem.type;
|
|
1925
|
+
}();
|
|
1926
|
+
} else {
|
|
1927
|
+
customQualityDataItemObject.type = "";
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
if (_typeof(customQualityDataItem) === 'object' && 'value' in customQualityDataItem) {
|
|
1931
|
+
customQualityDataItemObject.value = function () {
|
|
1932
|
+
if (customQualityDataItem.value === null) {
|
|
1933
|
+
return null;
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
if (typeof customQualityDataItem.value !== 'number') {
|
|
1937
|
+
return Number(customQualityDataItem.value);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
return customQualityDataItem.value;
|
|
1941
|
+
}();
|
|
1942
|
+
} else {
|
|
1943
|
+
customQualityDataItemObject.value = null;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
if (_typeof(customQualityDataItem) === 'object' && 'target' in customQualityDataItem) {
|
|
1947
|
+
customQualityDataItemObject.target = function () {
|
|
1948
|
+
if (customQualityDataItem.target === null) {
|
|
1949
|
+
return null;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
if (typeof customQualityDataItem.target !== 'number') {
|
|
1953
|
+
return Number(customQualityDataItem.target);
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
return customQualityDataItem.target;
|
|
1957
|
+
}();
|
|
1958
|
+
} else {
|
|
1959
|
+
customQualityDataItemObject.target = null;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
if (_typeof(customQualityDataItem) === 'object' && 'scorePercentage' in customQualityDataItem) {
|
|
1963
|
+
customQualityDataItemObject.scorePercentage = function () {
|
|
1964
|
+
if (customQualityDataItem.scorePercentage === null) {
|
|
1965
|
+
return null;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
if (typeof customQualityDataItem.scorePercentage !== 'number') {
|
|
1969
|
+
return Number(customQualityDataItem.scorePercentage);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
return customQualityDataItem.scorePercentage;
|
|
1973
|
+
}();
|
|
1974
|
+
} else {
|
|
1975
|
+
customQualityDataItemObject.scorePercentage = null;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
if (_typeof(customQualityDataItem) === 'object' && 'scoreWeighting' in customQualityDataItem) {
|
|
1979
|
+
customQualityDataItemObject.scoreWeighting = function () {
|
|
1980
|
+
if (customQualityDataItem.scoreWeighting === null) {
|
|
1981
|
+
return null;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
if (typeof customQualityDataItem.scoreWeighting !== 'number') {
|
|
1985
|
+
return Number(customQualityDataItem.scoreWeighting);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
return customQualityDataItem.scoreWeighting;
|
|
1989
|
+
}();
|
|
1990
|
+
} else {
|
|
1991
|
+
customQualityDataItemObject.scoreWeighting = null;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
if (_typeof(customQualityDataItem) === 'object' && 'targetMet' in customQualityDataItem) {
|
|
1995
|
+
customQualityDataItemObject.targetMet = function () {
|
|
1996
|
+
if (typeof customQualityDataItem.targetMet !== 'boolean') {
|
|
1997
|
+
return Boolean(customQualityDataItem.targetMet);
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
return customQualityDataItem.targetMet;
|
|
2001
|
+
}();
|
|
2002
|
+
} else {
|
|
2003
|
+
customQualityDataItemObject.targetMet = false;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
return customQualityDataItemObject;
|
|
2007
|
+
}();
|
|
2008
|
+
});
|
|
2009
|
+
}();
|
|
2010
|
+
} else {
|
|
2011
|
+
resultObject.customQualityData = [];
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
if (_typeof(result) === 'object' && 'satisfactionRating' in result) {
|
|
2015
|
+
resultObject.satisfactionRating = function () {
|
|
2016
|
+
if (result.satisfactionRating === null) {
|
|
2017
|
+
return null;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
if (typeof result.satisfactionRating !== 'number') {
|
|
2021
|
+
return Number.isInteger(Number(result.satisfactionRating)) ? Number(result.satisfactionRating) : Math.floor(Number(result.satisfactionRating));
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
return Number.isInteger(result.satisfactionRating) ? result.satisfactionRating : Math.floor(result.satisfactionRating);
|
|
2025
|
+
}();
|
|
2026
|
+
} else {
|
|
2027
|
+
resultObject.satisfactionRating = null;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
if (_typeof(result) === 'object' && 'keyCelebration' in result) {
|
|
2031
|
+
resultObject.keyCelebration = function () {
|
|
2032
|
+
if (result.keyCelebration === null) {
|
|
2033
|
+
return null;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
if (typeof result.keyCelebration !== 'string') {
|
|
2037
|
+
return String(result.keyCelebration);
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
return result.keyCelebration;
|
|
2041
|
+
}();
|
|
2042
|
+
} else {
|
|
2043
|
+
resultObject.keyCelebration = null;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
if (_typeof(result) === 'object' && 'keyChallenge' in result) {
|
|
2047
|
+
resultObject.keyChallenge = function () {
|
|
2048
|
+
if (result.keyChallenge === null) {
|
|
2049
|
+
return null;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
if (typeof result.keyChallenge !== 'string') {
|
|
2053
|
+
return String(result.keyChallenge);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
return result.keyChallenge;
|
|
2057
|
+
}();
|
|
2058
|
+
} else {
|
|
2059
|
+
resultObject.keyChallenge = null;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHourScorePercentage' in result) {
|
|
2063
|
+
resultObject.class1TraysPerHourScorePercentage = function () {
|
|
2064
|
+
if (result.class1TraysPerHourScorePercentage === null) {
|
|
2065
|
+
return null;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
if (typeof result.class1TraysPerHourScorePercentage !== 'number') {
|
|
2069
|
+
return Number(result.class1TraysPerHourScorePercentage);
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
return result.class1TraysPerHourScorePercentage;
|
|
2073
|
+
}();
|
|
2074
|
+
} else {
|
|
2075
|
+
resultObject.class1TraysPerHourScorePercentage = null;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHourScoreWeighting' in result) {
|
|
2079
|
+
resultObject.class1TraysPerHourScoreWeighting = function () {
|
|
2080
|
+
if (result.class1TraysPerHourScoreWeighting === null) {
|
|
2081
|
+
return null;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
if (typeof result.class1TraysPerHourScoreWeighting !== 'number') {
|
|
2085
|
+
return Number(result.class1TraysPerHourScoreWeighting);
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
return result.class1TraysPerHourScoreWeighting;
|
|
2089
|
+
}();
|
|
2090
|
+
} else {
|
|
2091
|
+
resultObject.class1TraysPerHourScoreWeighting = null;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
if (_typeof(result) === 'object' && 'class1TraysPerHourTargetMet' in result) {
|
|
2095
|
+
resultObject.class1TraysPerHourTargetMet = function () {
|
|
2096
|
+
if (typeof result.class1TraysPerHourTargetMet !== 'boolean') {
|
|
2097
|
+
return Boolean(result.class1TraysPerHourTargetMet);
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
return result.class1TraysPerHourTargetMet;
|
|
2101
|
+
}();
|
|
2102
|
+
} else {
|
|
2103
|
+
resultObject.class1TraysPerHourTargetMet = false;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
if (_typeof(result) === 'object' && 'class1CostPerTrayScorePercentage' in result) {
|
|
2107
|
+
resultObject.class1CostPerTrayScorePercentage = function () {
|
|
2108
|
+
if (result.class1CostPerTrayScorePercentage === null) {
|
|
2109
|
+
return null;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
if (typeof result.class1CostPerTrayScorePercentage !== 'number') {
|
|
2113
|
+
return Number(result.class1CostPerTrayScorePercentage);
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
return result.class1CostPerTrayScorePercentage;
|
|
2117
|
+
}();
|
|
2118
|
+
} else {
|
|
2119
|
+
resultObject.class1CostPerTrayScorePercentage = null;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
if (_typeof(result) === 'object' && 'class1CostPerTrayScoreWeighting' in result) {
|
|
2123
|
+
resultObject.class1CostPerTrayScoreWeighting = function () {
|
|
2124
|
+
if (result.class1CostPerTrayScoreWeighting === null) {
|
|
2125
|
+
return null;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
if (typeof result.class1CostPerTrayScoreWeighting !== 'number') {
|
|
2129
|
+
return Number(result.class1CostPerTrayScoreWeighting);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
return result.class1CostPerTrayScoreWeighting;
|
|
2133
|
+
}();
|
|
2134
|
+
} else {
|
|
2135
|
+
resultObject.class1CostPerTrayScoreWeighting = null;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
if (_typeof(result) === 'object' && 'class1CostPerTrayTargetMet' in result) {
|
|
2139
|
+
resultObject.class1CostPerTrayTargetMet = function () {
|
|
2140
|
+
if (typeof result.class1CostPerTrayTargetMet !== 'boolean') {
|
|
2141
|
+
return Boolean(result.class1CostPerTrayTargetMet);
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
return result.class1CostPerTrayTargetMet;
|
|
2145
|
+
}();
|
|
2146
|
+
} else {
|
|
2147
|
+
resultObject.class1CostPerTrayTargetMet = false;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealSamplesScorePercentage' in result) {
|
|
2151
|
+
resultObject.qualityR600IdealSamplesScorePercentage = function () {
|
|
2152
|
+
if (result.qualityR600IdealSamplesScorePercentage === null) {
|
|
2153
|
+
return null;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
if (typeof result.qualityR600IdealSamplesScorePercentage !== 'number') {
|
|
2157
|
+
return Number(result.qualityR600IdealSamplesScorePercentage);
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
return result.qualityR600IdealSamplesScorePercentage;
|
|
2161
|
+
}();
|
|
2162
|
+
} else {
|
|
2163
|
+
resultObject.qualityR600IdealSamplesScorePercentage = null;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealSamplesScoreWeighting' in result) {
|
|
2167
|
+
resultObject.qualityR600IdealSamplesScoreWeighting = function () {
|
|
2168
|
+
if (result.qualityR600IdealSamplesScoreWeighting === null) {
|
|
2169
|
+
return null;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
if (typeof result.qualityR600IdealSamplesScoreWeighting !== 'number') {
|
|
2173
|
+
return Number(result.qualityR600IdealSamplesScoreWeighting);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
return result.qualityR600IdealSamplesScoreWeighting;
|
|
2177
|
+
}();
|
|
2178
|
+
} else {
|
|
2179
|
+
resultObject.qualityR600IdealSamplesScoreWeighting = null;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealSamplesTargetMet' in result) {
|
|
2183
|
+
resultObject.qualityR600IdealSamplesTargetMet = function () {
|
|
2184
|
+
if (typeof result.qualityR600IdealSamplesTargetMet !== 'boolean') {
|
|
2185
|
+
return Boolean(result.qualityR600IdealSamplesTargetMet);
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
return result.qualityR600IdealSamplesTargetMet;
|
|
2189
|
+
}();
|
|
2190
|
+
} else {
|
|
2191
|
+
resultObject.qualityR600IdealSamplesTargetMet = false;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
if (_typeof(result) === 'object' && 'calculatedScore' in result) {
|
|
2195
|
+
resultObject.calculatedScore = function () {
|
|
2196
|
+
if (result.calculatedScore === null) {
|
|
2197
|
+
return null;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
if (typeof result.calculatedScore !== 'number') {
|
|
2201
|
+
return Number(result.calculatedScore);
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
return result.calculatedScore;
|
|
2205
|
+
}();
|
|
2206
|
+
} else {
|
|
2207
|
+
resultObject.calculatedScore = null;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
return resultObject;
|
|
2211
|
+
}();
|
|
2212
|
+
|
|
2213
|
+
resolve(resolveValue);
|
|
2214
|
+
}).catch(function (error) {
|
|
2215
|
+
return reject(error);
|
|
2216
|
+
});
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
/**
|
|
2220
|
+
* Retrieve a Shift Summary Report PDF [GET /packhouse/sites/{siteId}/shifts/{id}/summaryReportPdf]
|
|
2221
|
+
*
|
|
2222
|
+
* Retrieves a Summary Report PDF for a Shift
|
|
2223
|
+
*
|
|
2224
|
+
* @static
|
|
2225
|
+
* @public
|
|
2226
|
+
* @param {number} siteId The Site ID
|
|
2227
|
+
* @param {string} id The Shift ID
|
|
2228
|
+
* @return {Promise<boolean>}
|
|
2229
|
+
*/
|
|
2230
|
+
|
|
2231
|
+
}, {
|
|
2232
|
+
key: "getSummaryReportPdf",
|
|
2233
|
+
value: function getSummaryReportPdf(siteId, id) {
|
|
2234
|
+
return new Promise(function (resolve, reject) {
|
|
2235
|
+
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/summaryReportPdf")).then(function (result) {
|
|
2236
|
+
resolve(result !== null && result !== void 0 ? result : true);
|
|
2237
|
+
}).catch(function (error) {
|
|
2238
|
+
return reject(error);
|
|
2239
|
+
});
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Retrieve a Shift's Score History [GET /packhouse/sites/{siteId}/shifts/{id}/scoreHistory]
|
|
2244
|
+
*
|
|
2245
|
+
* Retrieves the Score History for a Shift
|
|
2246
|
+
*
|
|
2247
|
+
* @static
|
|
2248
|
+
* @public
|
|
2249
|
+
* @param {number} siteId The Site ID
|
|
2250
|
+
* @param {string} id The Shift ID
|
|
2251
|
+
* @return {Promise<Array<ShiftController.ScoreHistoryItem>>}
|
|
2252
|
+
*/
|
|
2253
|
+
|
|
2254
|
+
}, {
|
|
2255
|
+
key: "getScoreHistory",
|
|
2256
|
+
value: function getScoreHistory(siteId, id) {
|
|
2257
|
+
return new Promise(function (resolve, reject) {
|
|
2258
|
+
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/scoreHistory")).then(function (result) {
|
|
2259
|
+
var resolveValue = function () {
|
|
2260
|
+
if (Array.isArray(result) !== true) {
|
|
2261
|
+
return [];
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
return result.map(function (resultItem) {
|
|
2265
|
+
return function () {
|
|
2266
|
+
var resultItemObject = {};
|
|
2267
|
+
|
|
2268
|
+
if (_typeof(resultItem) === 'object' && 'timestamp' in resultItem) {
|
|
2269
|
+
resultItemObject.timestamp = function () {
|
|
2270
|
+
if (typeof resultItem.timestamp !== 'string') {
|
|
2271
|
+
return new Date(String(resultItem.timestamp));
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
return new Date(resultItem.timestamp);
|
|
2275
|
+
}();
|
|
2276
|
+
} else {
|
|
2277
|
+
resultItemObject.timestamp = new Date();
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
if (_typeof(resultItem) === 'object' && 'score' in resultItem) {
|
|
2281
|
+
resultItemObject.score = function () {
|
|
2282
|
+
if (typeof resultItem.score !== 'number') {
|
|
2283
|
+
return Number(resultItem.score);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
return resultItem.score;
|
|
2287
|
+
}();
|
|
2288
|
+
} else {
|
|
2289
|
+
resultItemObject.score = 0;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
return resultItemObject;
|
|
2293
|
+
}();
|
|
2294
|
+
});
|
|
2295
|
+
}();
|
|
2296
|
+
|
|
2297
|
+
resolve(resolveValue);
|
|
2298
|
+
}).catch(function (error) {
|
|
2299
|
+
return reject(error);
|
|
2300
|
+
});
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* Retrieve a Shift Score Metrics [GET /packhouse/sites/{siteId}/shifts/{id}/scoreMetrics]
|
|
2305
|
+
*
|
|
2306
|
+
* Retrieves the Score Metrics for a Shift
|
|
2307
|
+
*
|
|
2308
|
+
* @static
|
|
2309
|
+
* @public
|
|
2310
|
+
* @param {number} siteId The Site ID
|
|
2311
|
+
* @param {string} id The Shift ID
|
|
2312
|
+
* @return {Promise<ShiftController.ShiftScoreMetrics>}
|
|
2313
|
+
*/
|
|
2314
|
+
|
|
2315
|
+
}, {
|
|
2316
|
+
key: "getScoreMetrics",
|
|
2317
|
+
value: function getScoreMetrics(siteId, id) {
|
|
2318
|
+
return new Promise(function (resolve, reject) {
|
|
2319
|
+
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id, "/scoreMetrics")).then(function (result) {
|
|
2320
|
+
var resolveValue = function () {
|
|
2321
|
+
var resultObject = {};
|
|
2322
|
+
|
|
2323
|
+
if (_typeof(result) === 'object' && 'scoreActual' in result) {
|
|
2324
|
+
resultObject.scoreActual = function () {
|
|
2325
|
+
if (typeof result.scoreActual !== 'number') {
|
|
2326
|
+
return Number(result.scoreActual);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
return result.scoreActual;
|
|
2330
|
+
}();
|
|
2331
|
+
} else {
|
|
2332
|
+
resultObject.scoreActual = 0;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
if (_typeof(result) === 'object' && 'traysPerHourActual' in result) {
|
|
2336
|
+
resultObject.traysPerHourActual = function () {
|
|
2337
|
+
if (typeof result.traysPerHourActual !== 'number') {
|
|
2338
|
+
return Number.isInteger(Number(result.traysPerHourActual)) ? Number(result.traysPerHourActual) : Math.floor(Number(result.traysPerHourActual));
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
return Number.isInteger(result.traysPerHourActual) ? result.traysPerHourActual : Math.floor(result.traysPerHourActual);
|
|
2342
|
+
}();
|
|
2343
|
+
} else {
|
|
2344
|
+
resultObject.traysPerHourActual = 0;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
if (_typeof(result) === 'object' && 'traysPerHourTarget' in result) {
|
|
2348
|
+
resultObject.traysPerHourTarget = function () {
|
|
2349
|
+
if (result.traysPerHourTarget === null) {
|
|
2350
|
+
return null;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
if (typeof result.traysPerHourTarget !== 'number') {
|
|
2354
|
+
return Number.isInteger(Number(result.traysPerHourTarget)) ? Number(result.traysPerHourTarget) : Math.floor(Number(result.traysPerHourTarget));
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
return Number.isInteger(result.traysPerHourTarget) ? result.traysPerHourTarget : Math.floor(result.traysPerHourTarget);
|
|
2358
|
+
}();
|
|
2359
|
+
} else {
|
|
2360
|
+
resultObject.traysPerHourTarget = null;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
if (_typeof(result) === 'object' && 'costPerTrayActual' in result) {
|
|
2364
|
+
resultObject.costPerTrayActual = function () {
|
|
2365
|
+
if (typeof result.costPerTrayActual !== 'number') {
|
|
2366
|
+
return Number(result.costPerTrayActual);
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
return result.costPerTrayActual;
|
|
2370
|
+
}();
|
|
2371
|
+
} else {
|
|
2372
|
+
resultObject.costPerTrayActual = 0;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
if (_typeof(result) === 'object' && 'costPerTrayTarget' in result) {
|
|
2376
|
+
resultObject.costPerTrayTarget = function () {
|
|
2377
|
+
if (result.costPerTrayTarget === null) {
|
|
2378
|
+
return null;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
if (typeof result.costPerTrayTarget !== 'number') {
|
|
2382
|
+
return Number(result.costPerTrayTarget);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
return result.costPerTrayTarget;
|
|
2386
|
+
}();
|
|
2387
|
+
} else {
|
|
2388
|
+
resultObject.costPerTrayTarget = null;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealActual' in result) {
|
|
2392
|
+
resultObject.qualityR600IdealActual = function () {
|
|
2393
|
+
if (typeof result.qualityR600IdealActual !== 'number') {
|
|
2394
|
+
return Number(result.qualityR600IdealActual);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
return result.qualityR600IdealActual;
|
|
2398
|
+
}();
|
|
2399
|
+
} else {
|
|
2400
|
+
resultObject.qualityR600IdealActual = 0;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
if (_typeof(result) === 'object' && 'qualityR600IdealTarget' in result) {
|
|
2404
|
+
resultObject.qualityR600IdealTarget = function () {
|
|
2405
|
+
if (result.qualityR600IdealTarget === null) {
|
|
2406
|
+
return null;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
if (typeof result.qualityR600IdealTarget !== 'number') {
|
|
2410
|
+
return Number(result.qualityR600IdealTarget);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
return result.qualityR600IdealTarget;
|
|
2414
|
+
}();
|
|
2415
|
+
} else {
|
|
2416
|
+
resultObject.qualityR600IdealTarget = null;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
if (_typeof(result) === 'object' && 'customQualityMetrics' in result) {
|
|
2420
|
+
resultObject.customQualityMetrics = function () {
|
|
2421
|
+
if (Array.isArray(result.customQualityMetrics) !== true) {
|
|
2422
|
+
return [];
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
return result.customQualityMetrics.map(function (customQualityMetricsItem) {
|
|
2426
|
+
return function () {
|
|
2427
|
+
var customQualityMetricsItemObject = {};
|
|
2428
|
+
|
|
2429
|
+
if (_typeof(customQualityMetricsItem) === 'object' && 'id' in customQualityMetricsItem) {
|
|
2430
|
+
customQualityMetricsItemObject.id = function () {
|
|
2431
|
+
if (typeof customQualityMetricsItem.id !== 'string') {
|
|
2432
|
+
return String(customQualityMetricsItem.id);
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
return customQualityMetricsItem.id;
|
|
2436
|
+
}();
|
|
2437
|
+
} else {
|
|
2438
|
+
customQualityMetricsItemObject.id = "";
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
if (_typeof(customQualityMetricsItem) === 'object' && 'name' in customQualityMetricsItem) {
|
|
2442
|
+
customQualityMetricsItemObject.name = function () {
|
|
2443
|
+
if (typeof customQualityMetricsItem.name !== 'string') {
|
|
2444
|
+
return String(customQualityMetricsItem.name);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
return customQualityMetricsItem.name;
|
|
2448
|
+
}();
|
|
2449
|
+
} else {
|
|
2450
|
+
customQualityMetricsItemObject.name = "";
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
if (_typeof(customQualityMetricsItem) === 'object' && 'type' in customQualityMetricsItem) {
|
|
2454
|
+
customQualityMetricsItemObject.type = function () {
|
|
2455
|
+
if (typeof customQualityMetricsItem.type !== 'string') {
|
|
2456
|
+
return String(customQualityMetricsItem.type);
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
return customQualityMetricsItem.type;
|
|
2460
|
+
}();
|
|
2461
|
+
} else {
|
|
2462
|
+
customQualityMetricsItemObject.type = "";
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
if (_typeof(customQualityMetricsItem) === 'object' && 'value' in customQualityMetricsItem) {
|
|
2466
|
+
customQualityMetricsItemObject.value = function () {
|
|
2467
|
+
if (typeof customQualityMetricsItem.value !== 'number') {
|
|
2468
|
+
return Number(customQualityMetricsItem.value);
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
return customQualityMetricsItem.value;
|
|
2472
|
+
}();
|
|
2473
|
+
} else {
|
|
2474
|
+
customQualityMetricsItemObject.value = 0;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
if (_typeof(customQualityMetricsItem) === 'object' && 'target' in customQualityMetricsItem) {
|
|
2478
|
+
customQualityMetricsItemObject.target = function () {
|
|
2479
|
+
if (customQualityMetricsItem.target === null) {
|
|
2480
|
+
return null;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
if (typeof customQualityMetricsItem.target !== 'number') {
|
|
2484
|
+
return Number(customQualityMetricsItem.target);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
return customQualityMetricsItem.target;
|
|
2488
|
+
}();
|
|
2489
|
+
} else {
|
|
2490
|
+
customQualityMetricsItemObject.target = null;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
return customQualityMetricsItemObject;
|
|
2494
|
+
}();
|
|
2495
|
+
});
|
|
2496
|
+
}();
|
|
2497
|
+
} else {
|
|
2498
|
+
resultObject.customQualityMetrics = [];
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
return resultObject;
|
|
2502
|
+
}();
|
|
1040
2503
|
|
|
1041
2504
|
resolve(resolveValue);
|
|
1042
2505
|
}).catch(function (error) {
|
|
@@ -1148,6 +2611,7 @@ var _default = ShiftController;
|
|
|
1148
2611
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
1149
2612
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
1150
2613
|
* @property {ShiftController.ShiftSchedule} schedule The Schedule for this Shift
|
|
2614
|
+
* @property {?ShiftController.ShiftScoreWeightings} [scoreWeightings] The Score Weightings used for this Shift. Represented as a Number between 0.0 and 1.0
|
|
1151
2615
|
* @memberof Controllers.Packhouse.Site
|
|
1152
2616
|
*/
|
|
1153
2617
|
|
|
@@ -1172,6 +2636,7 @@ var _default = ShiftController;
|
|
|
1172
2636
|
* @property {Array<ShiftController.ShiftHandoverNote>} [handoverNotes] *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
1173
2637
|
* @property {Array<ShiftController.ShiftAreaNote>} [areaNotes] An Optional Array of Notes for this Shift
|
|
1174
2638
|
* @property {ShiftController.ShiftSchedule} [schedule] The Schedule for this Shift
|
|
2639
|
+
* @property {?ShiftController.ShiftScoreWeightings} [scoreWeightings] The Score Weightings used for this Shift. Represented as a Number between 0.0 and 1.0
|
|
1175
2640
|
* @memberof Controllers.Packhouse.Site
|
|
1176
2641
|
*/
|
|
1177
2642
|
|
|
@@ -1197,6 +2662,115 @@ var _default = ShiftController;
|
|
|
1197
2662
|
* @memberof Controllers.Packhouse.Site
|
|
1198
2663
|
*/
|
|
1199
2664
|
|
|
2665
|
+
/**
|
|
2666
|
+
* A **ShiftSummaryReportCustomQualityItem** Type
|
|
2667
|
+
*
|
|
2668
|
+
* @typedef {Object} ShiftController.ShiftSummaryReportCustomQualityItem
|
|
2669
|
+
* @property {string} id The ID of this Custom Quality Item
|
|
2670
|
+
* @property {string} name The Name of this Custom Quality Item
|
|
2671
|
+
* @property {string} type The Metric Type for this Custom Quality Item
|
|
2672
|
+
* @property {?number} value The Actual Value for this Custom Quality Data Item
|
|
2673
|
+
* @property {?number} target The Target for this Custom Quality Data Item
|
|
2674
|
+
* @property {?number} scorePercentage The Weighted Score Percentage for this Custom Quality Data Item
|
|
2675
|
+
* @property {?number} scoreWeighting The Score Weighting for this Custom Quality Data Item
|
|
2676
|
+
* @property {boolean} targetMet Whether the Target was Met for this Custom Quality Data Item
|
|
2677
|
+
* @memberof Controllers.Packhouse.Site
|
|
2678
|
+
*/
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* A **ShiftSummaryReport** Type
|
|
2682
|
+
*
|
|
2683
|
+
* @typedef {Object} ShiftController.ShiftSummaryReport
|
|
2684
|
+
* @property {string} shiftId The ID of this Shift
|
|
2685
|
+
* @property {string} shiftType The Type of Shift
|
|
2686
|
+
* @property {number} isoWeek The ISO Week when this Shift was Created
|
|
2687
|
+
* @property {Date} startTimestamp Start Timestamp of the Shift
|
|
2688
|
+
* @property {?Date} finishTimestamp Finish Timestamp of the Shift
|
|
2689
|
+
* @property {?string} lineManagerName Name of the Line Manager for the Shift
|
|
2690
|
+
* @property {?string} qualityManagerName Name of the Quality Manager for the Shift
|
|
2691
|
+
* @property {ShiftHourlyEntryModel[]} hourlyEntries An Array of Hourly Entries for the Shift
|
|
2692
|
+
* @property {number} hourlyEntryInteractionActual Actual Number of Hourly Entry Interactions
|
|
2693
|
+
* @property {?number} hourlyEntryInteractionExpected Expected Number of Hourly Entry Interactions
|
|
2694
|
+
* @property {?number} hourlyEntryInteractionScore Hourly Entry Interaction Score based on Expected vs Actual Interactions
|
|
2695
|
+
* @property {DowntimeEventModel[]} downtimeEvents An Array of Downtime Events that occurred during the Shift
|
|
2696
|
+
* @property {ShiftFocusMeetingModel[]} focusMeetings An Array of Focus Meetings held during the Shift
|
|
2697
|
+
* @property {number} focusMeetingsHeld Number of Focus Meetings Held
|
|
2698
|
+
* @property {?number} focusMeetingsExpected Expected Number of Focus Meetings to Hold
|
|
2699
|
+
* @property {?number} focusMeetingsScore Focus Meeting Score based on Expected vs Held
|
|
2700
|
+
* @property {ShiftGrowerChangeMeetingModel[]} growerChangeMeetings An Array of Grower Change Meetings held during the Shift
|
|
2701
|
+
* @property {number} growerChangeMeetingsHeld Number of Grower Change Meetings Held
|
|
2702
|
+
* @property {?number} growerChangeMeetingsExpected Expected Number of Grower Change Meetings to Hold
|
|
2703
|
+
* @property {?number} growerChangeMeetingsScore Grower Change Meeting Score based on Expected vs Held
|
|
2704
|
+
* @property {PackrunModel[]} associatedPackruns An Array of Packruns that were Active during the Shift
|
|
2705
|
+
* @property {string[]} associatedVarietyIds An Array of Variety IDs associated with this Shift
|
|
2706
|
+
* @property {string[]} associatedVarietyCodes An Array of Variety Codes associated with this Shift
|
|
2707
|
+
* @property {string[]} associatedGrowingMethodIds An Array of Growing Method IDs associated with this Shift
|
|
2708
|
+
* @property {string[]} associatedGrowingMethodCodes An Array of Growing Method Codes associated with this Shift
|
|
2709
|
+
* @property {?ShiftQualitySummaryModel} qualitySummary The Quality Summary for this Shift
|
|
2710
|
+
* @property {number} binsTippedTarget Target number of Bins to Tip for the Shift
|
|
2711
|
+
* @property {number} totalBinsTipped Total Bins Tipped for the Shift
|
|
2712
|
+
* @property {number} binsTippedPerHour Rate of Bins Tipped per Hour
|
|
2713
|
+
* @property {number} binsTippedPerHourExcludingDowntime Rate of Bins Tipped per Hour excluding Downtime
|
|
2714
|
+
* @property {number} totalProductionTime Total Production Time for the Shift (exludes Breaks) represented as Seconds
|
|
2715
|
+
* @property {number} totalScheduledBreakTime Total Scheduled Break Time for the Shift represented as Seconds
|
|
2716
|
+
* @property {number} totalDowntime Total Downtime for the Shift represented as Seconds
|
|
2717
|
+
* @property {number} totalDowntimePercentage Total Downtime Percentage for the Shift
|
|
2718
|
+
* @property {number} downtimeEventsCount Number of Downtime Events that occurred during the Shift
|
|
2719
|
+
* @property {?number} downtimeEventsAverageDuration Average Duration of all Downtime Events for the Shift represented as Seconds
|
|
2720
|
+
* @property {?number} class1ManningTarget Target Number of People that should be working in all Areas except Class 2 for the Shift
|
|
2721
|
+
* @property {?number} averageClass1Manning Average Number of People working in all Areas except Class 2 for the Shift
|
|
2722
|
+
* @property {?number} class1ManningPercentage The Manning Percentage of all Areas except Class 2 for the Shift
|
|
2723
|
+
* @property {?number} class2ManningTarget Target Number of People that should be working in the Class 2 Area for the Shift
|
|
2724
|
+
* @property {?number} averageClass2Manning Average Number of People working in the Class 2 Area for the Shift
|
|
2725
|
+
* @property {?number} class2ManningPercentage The Manning Percentage of the Class 2 Area for the Shift
|
|
2726
|
+
* @property {?number} totalManningTarget Overall Target Number of People that should be working for the Shift
|
|
2727
|
+
* @property {?number} averageTotalManning Overall Average Number of People working for the Shift
|
|
2728
|
+
* @property {?number} totalManningPercentage The Overall Manning Percentage for the Shift
|
|
2729
|
+
* @property {?number} costPerManningUnitHour The Average Cost per Person working in all Areas for the Shift
|
|
2730
|
+
* @property {number} totalHoursWorked Total Hours Worked for the Shift (excludes Breaks)
|
|
2731
|
+
* @property {number} totalHoursWorkedExcludingDowntime Total Hours Worked excluding Downtime for the Shift
|
|
2732
|
+
* @property {number} totalHoursPaid Total Hours Paid for the Shift (factors in Breaks)
|
|
2733
|
+
* @property {?number} class1TotalManningCost Total Cost to Staff all Areas except Class 2 for the Shift
|
|
2734
|
+
* @property {?number} class2TotalManningCost Total Cost to Staff the Class 2 Area for the Shift
|
|
2735
|
+
* @property {?number} class1DowntimeManningCost Total Cost of Staff consumed by Downtime in all Areas except Class 2 for the Shift
|
|
2736
|
+
* @property {?number} class2DowntimeManningCost Total Cost of Staff consumed by Downtime in the Class 2 Area for the Shift
|
|
2737
|
+
* @property {?number} class1CostPerTrayTarget The Target Cost per Class 1 Tray Equivalent after Adjustment (Class 1 %, Layered %, Soft-Sort %) for the Shift
|
|
2738
|
+
* @property {?number} class1CostPerTrayActual The Actual Cost per Class 1 Tray Equivalent for the Shift
|
|
2739
|
+
* @property {?number} class2CostPerTrayActual The Actual Cost per Class 2 Tray Equivalent for the Shift
|
|
2740
|
+
* @property {number} totalClass1Trays The Total Number of Class 1 Tray Equivalents Packed for the Shift
|
|
2741
|
+
* @property {number} totalClass2Trays The Total Number of Class 2 Tray Equivalents Packed for the Shift
|
|
2742
|
+
* @property {?number} class1TraysPerHour The Actual Number of Class 1 Tray Equivalents Packed per Hour including Downtime for the Shift
|
|
2743
|
+
* @property {?number} class1TraysPerHourExcludingDowntime The Actual Number of Class 1 Tray Equivalents Packed per Hour excluding Downtime for the Shift
|
|
2744
|
+
* @property {?number} class1TraysPerHourExcludingDowntimeTarget The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Layered %, Soft-Sort %) for the Shift
|
|
2745
|
+
* @property {?number} class1TraysPerManHour The Actual Number of Class 1 Tray Equivalents Packed per Person per Hour including Downtime for the Shift
|
|
2746
|
+
* @property {?number} class1TraysPerManHourExcludingDowntime The Actual Number of Class 1 Tray Equivalents Packed per Person per Hour excluding Downtime for the Shift
|
|
2747
|
+
* @property {?number} class2TraysPerHour The Actual Number of Class 2 Tray Equivalents Packed per Hour including Downtime for the Shift
|
|
2748
|
+
* @property {?number} class2TraysPerHourExcludingDowntime The Actual Number of Class 2 Tray Equivalents Packed per Hour excluding Downtime for the Shift
|
|
2749
|
+
* @property {?number} class2TraysPerManHour The Actual Number of Class 2 Tray Equivalents Packed per Person per Hour including Downtime for the Shift
|
|
2750
|
+
* @property {?number} class2TraysPerManHourExcludingDowntime The Actual Number of Class 2 Tray Equivalents Packed per Person per Hour excluding Downtime for the Shift
|
|
2751
|
+
* @property {?number} class1LayeredPercentageTarget The Target Percentage of Total Tray Equivalents that should be Layered for the Shift
|
|
2752
|
+
* @property {?number} class1LayeredPercentage The Actual Percentage of Total Tray Equivalents that are Layered for the Shift
|
|
2753
|
+
* @property {?number} class1BulkPercentage The Actual Percentage of Total Tray Equivalents that are Bulk for the Shift
|
|
2754
|
+
* @property {?number} averageClass1Percentage The Average Class 1 Percentage for all Packruns Active during this Shift
|
|
2755
|
+
* @property {?number} qualityR600IdealSamplesTarget The Target Percentage of Quality R600 Samples that should be Ideal for the Shift
|
|
2756
|
+
* @property {?number} qualityR600IdealSamplesActual The Actual Percentage of Quality R600 Samples that were Ideal for the Shift
|
|
2757
|
+
* @property {Array<ShiftController.ShiftSummaryReportCustomQualityItem>} customQualityData An Array of Custom Quality Data Items for the Shift
|
|
2758
|
+
* @property {?number} satisfactionRating An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
2759
|
+
* @property {?string} keyCelebration An Optional Key Celebration the Line Manager and Team experienced during this Shift
|
|
2760
|
+
* @property {?string} keyChallenge An Optional Key Challenge the Line Manager and Team experienced during this Shift
|
|
2761
|
+
* @property {?number} class1TraysPerHourScorePercentage The Weighted Score Percentage for Class 1 Tray Equivalents per Hour
|
|
2762
|
+
* @property {?number} class1TraysPerHourScoreWeighting The Score Weighting for Class 1 Tray Equivalents per Hour represented as a Number between 0.0 and 1.0
|
|
2763
|
+
* @property {boolean} class1TraysPerHourTargetMet Whether the Class 1 Tray Equivalents per Hour Target was Met for the Shift
|
|
2764
|
+
* @property {?number} class1CostPerTrayScorePercentage The Weighted Score Percentage for Class 1 Cost per Tray Equivalent
|
|
2765
|
+
* @property {?number} class1CostPerTrayScoreWeighting The Score Weighting for Class 1 Cost per Tray Equivalent represented as a Number between 0.0 and 1.0
|
|
2766
|
+
* @property {boolean} class1CostPerTrayTargetMet Whether the Class 1 Cost per Tray Equivalent Target was Met for the Shift
|
|
2767
|
+
* @property {?number} qualityR600IdealSamplesScorePercentage The Weighted Score Percentage for Quality R600 Ideal Samples
|
|
2768
|
+
* @property {?number} qualityR600IdealSamplesScoreWeighting The Score Weighting for Quality R600 Ideal Samples represented as a Number between 0.0 and 1.0
|
|
2769
|
+
* @property {boolean} qualityR600IdealSamplesTargetMet Whether the Percentage of R600 Ideal Samples Target was Met for the Shift
|
|
2770
|
+
* @property {?number} calculatedScore The Final Calculated Score for the Shift
|
|
2771
|
+
* @memberof Controllers.Packhouse.Site
|
|
2772
|
+
*/
|
|
2773
|
+
|
|
1200
2774
|
/**
|
|
1201
2775
|
* A **ScoreHistoryItem** Type
|
|
1202
2776
|
*
|
|
@@ -1271,4 +2845,24 @@ var _default = ShiftController;
|
|
|
1271
2845
|
* @memberof Controllers.Packhouse.Site
|
|
1272
2846
|
*/
|
|
1273
2847
|
|
|
2848
|
+
/**
|
|
2849
|
+
* A **ShiftScoreWeightingsCustomQuality** Type
|
|
2850
|
+
*
|
|
2851
|
+
* @typedef {Object} ShiftController.ShiftScoreWeightingsCustomQuality
|
|
2852
|
+
* @property {string} id The ID of the Custom Quality
|
|
2853
|
+
* @property {number} weighting The Score Weighting for the Custom Quality
|
|
2854
|
+
* @memberof Controllers.Packhouse.Site
|
|
2855
|
+
*/
|
|
2856
|
+
|
|
2857
|
+
/**
|
|
2858
|
+
* A **ShiftScoreWeightings** Type
|
|
2859
|
+
*
|
|
2860
|
+
* @typedef {Object} ShiftController.ShiftScoreWeightings
|
|
2861
|
+
* @property {number} class1TraysPerHour The Score Weighting for Class 1 Trays Per Hour
|
|
2862
|
+
* @property {number} costPerTray The Score Weighting for Cost per Tray
|
|
2863
|
+
* @property {number} qualityR600Ideal The Score Weighting for Quality R600 Ideal
|
|
2864
|
+
* @property {Array<ShiftController.ShiftScoreWeightingsCustomQuality>} customQualities An Array of Score Weightings for Custom Qualities
|
|
2865
|
+
* @memberof Controllers.Packhouse.Site
|
|
2866
|
+
*/
|
|
2867
|
+
|
|
1274
2868
|
exports.default = _default;
|