vineanova-redux-artifacts 1.119.234 → 1.119.236
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/useFetchlookupTeamType.js +39 -0
- package/dist/reducers/index.js +2 -1
- package/dist/sagas/vineaNovaApi.sagas.js +184 -136
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/selectors/lookupTeamTypeSelector.js +57 -0
- package/dist/services/apiServices.js +41 -2
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchlookupTeamType.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/lookupTeamTypeSelector.js +62 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -15320,6 +15320,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
15320
15320
|
}]
|
|
15321
15321
|
}
|
|
15322
15322
|
},
|
|
15323
|
+
lookupTeamType: {
|
|
15324
|
+
get: {
|
|
15325
|
+
REQUEST: [function (payload) {
|
|
15326
|
+
return payload;
|
|
15327
|
+
}, function () {
|
|
15328
|
+
return {
|
|
15329
|
+
reducerName: 'lookupTeamType'
|
|
15330
|
+
};
|
|
15331
|
+
}],
|
|
15332
|
+
RECEIVE: [function (payload) {
|
|
15333
|
+
return payload;
|
|
15334
|
+
}, function () {
|
|
15335
|
+
return {
|
|
15336
|
+
reducerName: 'lookupTeamType'
|
|
15337
|
+
};
|
|
15338
|
+
}],
|
|
15339
|
+
ERROR: [function (payload) {
|
|
15340
|
+
return payload;
|
|
15341
|
+
}, function () {
|
|
15342
|
+
return {
|
|
15343
|
+
reducerName: 'lookupTeamType'
|
|
15344
|
+
};
|
|
15345
|
+
}],
|
|
15346
|
+
CLEARDATA: [function (payload) {
|
|
15347
|
+
return payload;
|
|
15348
|
+
}, function () {
|
|
15349
|
+
return {
|
|
15350
|
+
reducerName: 'lookupTeamType'
|
|
15351
|
+
};
|
|
15352
|
+
}],
|
|
15353
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
15354
|
+
return payload;
|
|
15355
|
+
}, function () {
|
|
15356
|
+
return {
|
|
15357
|
+
reducerName: 'lookupTeamType'
|
|
15358
|
+
};
|
|
15359
|
+
}]
|
|
15360
|
+
}
|
|
15361
|
+
},
|
|
15323
15362
|
fetchAllLookups: {
|
|
15324
15363
|
REQUEST: [function (payload) {
|
|
15325
15364
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -2818,4 +2818,15 @@ Object.keys(_useFetchlookupBatchStatus).forEach(function (key) {
|
|
|
2818
2818
|
return _useFetchlookupBatchStatus[key];
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
|
+
});
|
|
2822
|
+
var _useFetchlookupTeamType = require("./useFetchlookupTeamType");
|
|
2823
|
+
Object.keys(_useFetchlookupTeamType).forEach(function (key) {
|
|
2824
|
+
if (key === "default" || key === "__esModule") return;
|
|
2825
|
+
if (key in exports && exports[key] === _useFetchlookupTeamType[key]) return;
|
|
2826
|
+
Object.defineProperty(exports, key, {
|
|
2827
|
+
enumerable: true,
|
|
2828
|
+
get: function get() {
|
|
2829
|
+
return _useFetchlookupTeamType[key];
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2821
2832
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupTeamType = 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 useFetchlookupTeamType = exports.useFetchlookupTeamType = function useFetchlookupTeamType(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupTeamTypeEntityData);
|
|
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.lookupTeamType.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupTeamType.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -264,7 +264,8 @@ var rootReducer = {
|
|
|
264
264
|
lookupPayLoading: (0, _createNamedReducer["default"])('lookupPayLoading'),
|
|
265
265
|
lookupSplitType: (0, _createNamedReducer["default"])('lookupSplitType'),
|
|
266
266
|
lookupPayrollStatus: (0, _createNamedReducer["default"])('lookupPayrollStatus'),
|
|
267
|
-
lookupBatchStatus: (0, _createNamedReducer["default"])('lookupBatchStatus')
|
|
267
|
+
lookupBatchStatus: (0, _createNamedReducer["default"])('lookupBatchStatus'),
|
|
268
|
+
lookupTeamType: (0, _createNamedReducer["default"])('lookupTeamType')
|
|
268
269
|
})
|
|
269
270
|
};
|
|
270
271
|
var _default = exports["default"] = rootReducer;
|