vineanova-redux-artifacts 1.119.165 → 1.119.167
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/CHANGELOG.md +1 -1
- package/dist/actions/commonActions.js +113 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/useFetchworkRecordsGeneric.js +39 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +974 -839
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/workRecordsGenericSelector.js +57 -0
- package/dist/services/apiServices.js +735 -625
- package/package.json +1 -1
- package/src/actions/commonActions.js +23 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchworkRecordsGeneric.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +94 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/workRecordsGenericSelector.js +62 -0
- package/src/services/apiServices.js +69 -0
package/CHANGELOG.md
CHANGED
|
@@ -6863,6 +6863,119 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6863
6863
|
}]
|
|
6864
6864
|
}
|
|
6865
6865
|
},
|
|
6866
|
+
workRecordsGeneric: {
|
|
6867
|
+
get: {
|
|
6868
|
+
REQUEST: [function (payload) {
|
|
6869
|
+
return payload;
|
|
6870
|
+
}, function () {
|
|
6871
|
+
return {
|
|
6872
|
+
reducerName: 'workRecordsGeneric'
|
|
6873
|
+
};
|
|
6874
|
+
}],
|
|
6875
|
+
RECEIVE: [function (payload) {
|
|
6876
|
+
return payload;
|
|
6877
|
+
}, function () {
|
|
6878
|
+
return {
|
|
6879
|
+
reducerName: 'workRecordsGeneric'
|
|
6880
|
+
};
|
|
6881
|
+
}],
|
|
6882
|
+
ERROR: [function (payload) {
|
|
6883
|
+
return payload;
|
|
6884
|
+
}, function () {
|
|
6885
|
+
return {
|
|
6886
|
+
reducerName: 'workRecordsGeneric'
|
|
6887
|
+
};
|
|
6888
|
+
}],
|
|
6889
|
+
CLEARDATA: [function (payload) {
|
|
6890
|
+
return payload;
|
|
6891
|
+
}, function () {
|
|
6892
|
+
return {
|
|
6893
|
+
reducerName: 'workRecordsGeneric'
|
|
6894
|
+
};
|
|
6895
|
+
}],
|
|
6896
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6897
|
+
return payload;
|
|
6898
|
+
}, function () {
|
|
6899
|
+
return {
|
|
6900
|
+
reducerName: 'workRecordsGeneric'
|
|
6901
|
+
};
|
|
6902
|
+
}]
|
|
6903
|
+
},
|
|
6904
|
+
put: {
|
|
6905
|
+
REQUEST: [function (payload) {
|
|
6906
|
+
return payload;
|
|
6907
|
+
}, function () {
|
|
6908
|
+
return {
|
|
6909
|
+
reducerName: 'workRecordsGeneric'
|
|
6910
|
+
};
|
|
6911
|
+
}],
|
|
6912
|
+
RECEIVE: [function (payload) {
|
|
6913
|
+
return payload;
|
|
6914
|
+
}, function () {
|
|
6915
|
+
return {
|
|
6916
|
+
reducerName: 'workRecordsGeneric'
|
|
6917
|
+
};
|
|
6918
|
+
}],
|
|
6919
|
+
ERROR: [function (payload) {
|
|
6920
|
+
return payload;
|
|
6921
|
+
}, function () {
|
|
6922
|
+
return {
|
|
6923
|
+
reducerName: 'workRecordsGeneric'
|
|
6924
|
+
};
|
|
6925
|
+
}],
|
|
6926
|
+
CLEARDATA: [function (payload) {
|
|
6927
|
+
return payload;
|
|
6928
|
+
}, function () {
|
|
6929
|
+
return {
|
|
6930
|
+
reducerName: 'workRecordsGeneric'
|
|
6931
|
+
};
|
|
6932
|
+
}],
|
|
6933
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6934
|
+
return payload;
|
|
6935
|
+
}, function () {
|
|
6936
|
+
return {
|
|
6937
|
+
reducerName: 'workRecordsGeneric'
|
|
6938
|
+
};
|
|
6939
|
+
}]
|
|
6940
|
+
},
|
|
6941
|
+
post: {
|
|
6942
|
+
REQUEST: [function (payload) {
|
|
6943
|
+
return payload;
|
|
6944
|
+
}, function () {
|
|
6945
|
+
return {
|
|
6946
|
+
reducerName: 'workRecordsGeneric'
|
|
6947
|
+
};
|
|
6948
|
+
}],
|
|
6949
|
+
RECEIVE: [function (payload) {
|
|
6950
|
+
return payload;
|
|
6951
|
+
}, function () {
|
|
6952
|
+
return {
|
|
6953
|
+
reducerName: 'workRecordsGeneric'
|
|
6954
|
+
};
|
|
6955
|
+
}],
|
|
6956
|
+
ERROR: [function (payload) {
|
|
6957
|
+
return payload;
|
|
6958
|
+
}, function () {
|
|
6959
|
+
return {
|
|
6960
|
+
reducerName: 'workRecordsGeneric'
|
|
6961
|
+
};
|
|
6962
|
+
}],
|
|
6963
|
+
CLEARDATA: [function (payload) {
|
|
6964
|
+
return payload;
|
|
6965
|
+
}, function () {
|
|
6966
|
+
return {
|
|
6967
|
+
reducerName: 'workRecordsGeneric'
|
|
6968
|
+
};
|
|
6969
|
+
}],
|
|
6970
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6971
|
+
return payload;
|
|
6972
|
+
}, function () {
|
|
6973
|
+
return {
|
|
6974
|
+
reducerName: 'workRecordsGeneric'
|
|
6975
|
+
};
|
|
6976
|
+
}]
|
|
6977
|
+
}
|
|
6978
|
+
},
|
|
6866
6979
|
workRecordsHourly: {
|
|
6867
6980
|
get: {
|
|
6868
6981
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -872,6 +872,17 @@ Object.keys(_useFetchjobWorkRecords).forEach(function (key) {
|
|
|
872
872
|
}
|
|
873
873
|
});
|
|
874
874
|
});
|
|
875
|
+
var _useFetchworkRecordsGeneric = require("./useFetchworkRecordsGeneric");
|
|
876
|
+
Object.keys(_useFetchworkRecordsGeneric).forEach(function (key) {
|
|
877
|
+
if (key === "default" || key === "__esModule") return;
|
|
878
|
+
if (key in exports && exports[key] === _useFetchworkRecordsGeneric[key]) return;
|
|
879
|
+
Object.defineProperty(exports, key, {
|
|
880
|
+
enumerable: true,
|
|
881
|
+
get: function get() {
|
|
882
|
+
return _useFetchworkRecordsGeneric[key];
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
});
|
|
875
886
|
var _useFetchworkRecordsHourly = require("./useFetchworkRecordsHourly");
|
|
876
887
|
Object.keys(_useFetchworkRecordsHourly).forEach(function (key) {
|
|
877
888
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchWorkRecordsGeneric = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _actions = require("../actions");
|
|
10
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
var useFetchWorkRecordsGeneric = exports.useFetchWorkRecordsGeneric = function useFetchWorkRecordsGeneric(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getWorkRecordsGenericEntityData);
|
|
22
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
23
|
+
var _props$queryParams = props.queryParams,
|
|
24
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
25
|
+
(0, _react.useEffect)(function () {
|
|
26
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.workRecordsGeneric.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.workRecordsGeneric.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -88,6 +88,7 @@ var rootReducer = {
|
|
|
88
88
|
jobEvents: (0, _createNamedReducer["default"])('jobEvents'),
|
|
89
89
|
jobSupervisor: (0, _createNamedReducer["default"])('jobSupervisor'),
|
|
90
90
|
jobWorkRecords: (0, _createNamedReducer["default"])('jobWorkRecords'),
|
|
91
|
+
workRecordsGeneric: (0, _createNamedReducer["default"])('workRecordsGeneric'),
|
|
91
92
|
workRecordsHourly: (0, _createNamedReducer["default"])('workRecordsHourly'),
|
|
92
93
|
linkedDocument: (0, _createNamedReducer["default"])('linkedDocument'),
|
|
93
94
|
linkedDocuments: (0, _createNamedReducer["default"])('linkedDocuments'),
|