vineanova-redux-artifacts 1.119.68 → 1.119.69
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 +39 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/useFetchlookupSystemData.js +39 -0
- package/dist/reducers/index.js +2 -1
- package/dist/sagas/vineaNovaApi.sagas.js +172 -124
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/selectors/lookupSystemDataSelector.js +57 -0
- package/dist/services/apiServices.js +42 -3
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchlookupSystemData.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +35 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/selectors/lookupSystemDataSelector.js +62 -0
- package/src/services/apiServices.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -12355,6 +12355,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
12355
12355
|
}]
|
|
12356
12356
|
}
|
|
12357
12357
|
},
|
|
12358
|
+
lookupSystemData: {
|
|
12359
|
+
get: {
|
|
12360
|
+
REQUEST: [function (payload) {
|
|
12361
|
+
return payload;
|
|
12362
|
+
}, function () {
|
|
12363
|
+
return {
|
|
12364
|
+
reducerName: 'lookupSystemData'
|
|
12365
|
+
};
|
|
12366
|
+
}],
|
|
12367
|
+
RECEIVE: [function (payload) {
|
|
12368
|
+
return payload;
|
|
12369
|
+
}, function () {
|
|
12370
|
+
return {
|
|
12371
|
+
reducerName: 'lookupSystemData'
|
|
12372
|
+
};
|
|
12373
|
+
}],
|
|
12374
|
+
ERROR: [function (payload) {
|
|
12375
|
+
return payload;
|
|
12376
|
+
}, function () {
|
|
12377
|
+
return {
|
|
12378
|
+
reducerName: 'lookupSystemData'
|
|
12379
|
+
};
|
|
12380
|
+
}],
|
|
12381
|
+
CLEARDATA: [function (payload) {
|
|
12382
|
+
return payload;
|
|
12383
|
+
}, function () {
|
|
12384
|
+
return {
|
|
12385
|
+
reducerName: 'lookupSystemData'
|
|
12386
|
+
};
|
|
12387
|
+
}],
|
|
12388
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
12389
|
+
return payload;
|
|
12390
|
+
}, function () {
|
|
12391
|
+
return {
|
|
12392
|
+
reducerName: 'lookupSystemData'
|
|
12393
|
+
};
|
|
12394
|
+
}]
|
|
12395
|
+
}
|
|
12396
|
+
},
|
|
12358
12397
|
fetchAllLookups: {
|
|
12359
12398
|
REQUEST: [function (payload) {
|
|
12360
12399
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -2180,4 +2180,15 @@ Object.keys(_useFetchlookupIdentityActivity).forEach(function (key) {
|
|
|
2180
2180
|
return _useFetchlookupIdentityActivity[key];
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
2183
|
+
});
|
|
2184
|
+
var _useFetchlookupSystemData = require("./useFetchlookupSystemData");
|
|
2185
|
+
Object.keys(_useFetchlookupSystemData).forEach(function (key) {
|
|
2186
|
+
if (key === "default" || key === "__esModule") return;
|
|
2187
|
+
if (key in exports && exports[key] === _useFetchlookupSystemData[key]) return;
|
|
2188
|
+
Object.defineProperty(exports, key, {
|
|
2189
|
+
enumerable: true,
|
|
2190
|
+
get: function get() {
|
|
2191
|
+
return _useFetchlookupSystemData[key];
|
|
2192
|
+
}
|
|
2193
|
+
});
|
|
2183
2194
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupSystemData = 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 useFetchlookupSystemData = exports.useFetchlookupSystemData = function useFetchlookupSystemData(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupSystemDataEntityData);
|
|
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.lookupSystemData.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupSystemData.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -206,7 +206,8 @@ var rootReducer = {
|
|
|
206
206
|
lookupPayrollRecordType: (0, _createNamedReducer["default"])('lookupPayrollRecordType'),
|
|
207
207
|
lookupJobWorkUnit: (0, _createNamedReducer["default"])('lookupJobWorkUnit'),
|
|
208
208
|
lookupWorkRecordUnitType: (0, _createNamedReducer["default"])('lookupWorkRecordUnitType'),
|
|
209
|
-
lookupIdentityActivity: (0, _createNamedReducer["default"])('lookupIdentityActivity')
|
|
209
|
+
lookupIdentityActivity: (0, _createNamedReducer["default"])('lookupIdentityActivity'),
|
|
210
|
+
lookupSystemData: (0, _createNamedReducer["default"])('lookupSystemData')
|
|
210
211
|
})
|
|
211
212
|
};
|
|
212
213
|
var _default = exports["default"] = rootReducer;
|