vineanova-redux-artifacts 1.119.321 → 1.119.323
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/useFetchlookupPlantStatus.js +38 -0
- package/dist/reducers/index.js +2 -1
- package/dist/sagas/vineaNovaApi.sagas.js +193 -146
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/lookupPlantStatusSelector.js +57 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/services/apiServices.js +40 -3
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchlookupPlantStatus.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/lookupPlantStatusSelector.js +62 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -16856,6 +16856,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
16856
16856
|
}]
|
|
16857
16857
|
}
|
|
16858
16858
|
},
|
|
16859
|
+
lookupPlantStatus: {
|
|
16860
|
+
get: {
|
|
16861
|
+
REQUEST: [function (payload) {
|
|
16862
|
+
return payload;
|
|
16863
|
+
}, function () {
|
|
16864
|
+
return {
|
|
16865
|
+
reducerName: 'lookupPlantStatus'
|
|
16866
|
+
};
|
|
16867
|
+
}],
|
|
16868
|
+
RECEIVE: [function (payload) {
|
|
16869
|
+
return payload;
|
|
16870
|
+
}, function () {
|
|
16871
|
+
return {
|
|
16872
|
+
reducerName: 'lookupPlantStatus'
|
|
16873
|
+
};
|
|
16874
|
+
}],
|
|
16875
|
+
ERROR: [function (payload) {
|
|
16876
|
+
return payload;
|
|
16877
|
+
}, function () {
|
|
16878
|
+
return {
|
|
16879
|
+
reducerName: 'lookupPlantStatus'
|
|
16880
|
+
};
|
|
16881
|
+
}],
|
|
16882
|
+
CLEARDATA: [function (payload) {
|
|
16883
|
+
return payload;
|
|
16884
|
+
}, function () {
|
|
16885
|
+
return {
|
|
16886
|
+
reducerName: 'lookupPlantStatus'
|
|
16887
|
+
};
|
|
16888
|
+
}],
|
|
16889
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
16890
|
+
return payload;
|
|
16891
|
+
}, function () {
|
|
16892
|
+
return {
|
|
16893
|
+
reducerName: 'lookupPlantStatus'
|
|
16894
|
+
};
|
|
16895
|
+
}]
|
|
16896
|
+
}
|
|
16897
|
+
},
|
|
16859
16898
|
fetchAllLookups: {
|
|
16860
16899
|
REQUEST: [function (payload) {
|
|
16861
16900
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -3126,4 +3126,15 @@ Object.keys(_useFetchlookupDashboardPage).forEach(function (key) {
|
|
|
3126
3126
|
return _useFetchlookupDashboardPage[key];
|
|
3127
3127
|
}
|
|
3128
3128
|
});
|
|
3129
|
+
});
|
|
3130
|
+
var _useFetchlookupPlantStatus = require("./useFetchlookupPlantStatus");
|
|
3131
|
+
Object.keys(_useFetchlookupPlantStatus).forEach(function (key) {
|
|
3132
|
+
if (key === "default" || key === "__esModule") return;
|
|
3133
|
+
if (key in exports && exports[key] === _useFetchlookupPlantStatus[key]) return;
|
|
3134
|
+
Object.defineProperty(exports, key, {
|
|
3135
|
+
enumerable: true,
|
|
3136
|
+
get: function get() {
|
|
3137
|
+
return _useFetchlookupPlantStatus[key];
|
|
3138
|
+
}
|
|
3139
|
+
});
|
|
3129
3140
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupPlantStatus = 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 _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); }
|
|
18
|
+
var useFetchlookupPlantStatus = exports.useFetchlookupPlantStatus = function useFetchlookupPlantStatus(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupPlantStatusEntityData);
|
|
21
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
22
|
+
var _props$queryParams = props.queryParams,
|
|
23
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupPlantStatus.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupPlantStatus.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -292,7 +292,8 @@ var rootReducer = {
|
|
|
292
292
|
lookupAbsenceReason: (0, _createNamedReducer["default"])('lookupAbsenceReason'),
|
|
293
293
|
lookupAccountSystemSettings: (0, _createNamedReducer["default"])('lookupAccountSystemSettings'),
|
|
294
294
|
lookupReportCategory: (0, _createNamedReducer["default"])('lookupReportCategory'),
|
|
295
|
-
lookupDashboardPage: (0, _createNamedReducer["default"])('lookupDashboardPage')
|
|
295
|
+
lookupDashboardPage: (0, _createNamedReducer["default"])('lookupDashboardPage'),
|
|
296
|
+
lookupPlantStatus: (0, _createNamedReducer["default"])('lookupPlantStatus')
|
|
296
297
|
})
|
|
297
298
|
};
|
|
298
299
|
var _default = exports["default"] = rootReducer;
|