vineanova-redux-artifacts 1.119.280 → 1.119.282
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/useFetchworkRecordsPieceworkBulk.js +38 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +9788 -10173
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/workRecordsPieceworkBulkSelector.js +57 -0
- package/dist/services/apiServices.js +7157 -7547
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchworkRecordsPieceworkBulk.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +32 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/workRecordsPieceworkBulkSelector.js +62 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -12652,6 +12652,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
12652
12652
|
}]
|
|
12653
12653
|
}
|
|
12654
12654
|
},
|
|
12655
|
+
workRecordsPieceworkBulk: {
|
|
12656
|
+
post: {
|
|
12657
|
+
REQUEST: [function (payload) {
|
|
12658
|
+
return payload;
|
|
12659
|
+
}, function () {
|
|
12660
|
+
return {
|
|
12661
|
+
reducerName: 'workRecordsPieceworkBulk'
|
|
12662
|
+
};
|
|
12663
|
+
}],
|
|
12664
|
+
RECEIVE: [function (payload) {
|
|
12665
|
+
return payload;
|
|
12666
|
+
}, function () {
|
|
12667
|
+
return {
|
|
12668
|
+
reducerName: 'workRecordsPieceworkBulk'
|
|
12669
|
+
};
|
|
12670
|
+
}],
|
|
12671
|
+
ERROR: [function (payload) {
|
|
12672
|
+
return payload;
|
|
12673
|
+
}, function () {
|
|
12674
|
+
return {
|
|
12675
|
+
reducerName: 'workRecordsPieceworkBulk'
|
|
12676
|
+
};
|
|
12677
|
+
}],
|
|
12678
|
+
CLEARDATA: [function (payload) {
|
|
12679
|
+
return payload;
|
|
12680
|
+
}, function () {
|
|
12681
|
+
return {
|
|
12682
|
+
reducerName: 'workRecordsPieceworkBulk'
|
|
12683
|
+
};
|
|
12684
|
+
}],
|
|
12685
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
12686
|
+
return payload;
|
|
12687
|
+
}, function () {
|
|
12688
|
+
return {
|
|
12689
|
+
reducerName: 'workRecordsPieceworkBulk'
|
|
12690
|
+
};
|
|
12691
|
+
}]
|
|
12692
|
+
}
|
|
12693
|
+
},
|
|
12655
12694
|
lookupClassification: {
|
|
12656
12695
|
get: {
|
|
12657
12696
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -1983,6 +1983,17 @@ Object.keys(_useFetchworkRecordsPiecework).forEach(function (key) {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
1985
1985
|
});
|
|
1986
|
+
var _useFetchworkRecordsPieceworkBulk = require("./useFetchworkRecordsPieceworkBulk");
|
|
1987
|
+
Object.keys(_useFetchworkRecordsPieceworkBulk).forEach(function (key) {
|
|
1988
|
+
if (key === "default" || key === "__esModule") return;
|
|
1989
|
+
if (key in exports && exports[key] === _useFetchworkRecordsPieceworkBulk[key]) return;
|
|
1990
|
+
Object.defineProperty(exports, key, {
|
|
1991
|
+
enumerable: true,
|
|
1992
|
+
get: function get() {
|
|
1993
|
+
return _useFetchworkRecordsPieceworkBulk[key];
|
|
1994
|
+
}
|
|
1995
|
+
});
|
|
1996
|
+
});
|
|
1986
1997
|
var _useFetchlookupClassification = require("./useFetchlookupClassification");
|
|
1987
1998
|
Object.keys(_useFetchlookupClassification).forEach(function (key) {
|
|
1988
1999
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchWorkRecordsPieceworkBulk = 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 useFetchWorkRecordsPieceworkBulk = exports.useFetchWorkRecordsPieceworkBulk = function useFetchWorkRecordsPieceworkBulk(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getWorkRecordsPieceworkBulkEntityData);
|
|
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.workRecordsPieceworkBulk.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.workRecordsPieceworkBulk.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -189,6 +189,7 @@ var rootReducer = {
|
|
|
189
189
|
workRecordsPieceworkGroupWorkers: (0, _createNamedReducer["default"])('workRecordsPieceworkGroupWorkers'),
|
|
190
190
|
workRecordsPieceworkGroupRows: (0, _createNamedReducer["default"])('workRecordsPieceworkGroupRows'),
|
|
191
191
|
workRecordsPiecework: (0, _createNamedReducer["default"])('workRecordsPiecework'),
|
|
192
|
+
workRecordsPieceworkBulk: (0, _createNamedReducer["default"])('workRecordsPieceworkBulk'),
|
|
192
193
|
lookupClassification: (0, _createNamedReducer["default"])('lookupClassification'),
|
|
193
194
|
lookupClassificationGroup: (0, _createNamedReducer["default"])('lookupClassificationGroup'),
|
|
194
195
|
lookupClassificationGroupIdentityType: (0, _createNamedReducer["default"])('lookupClassificationGroupIdentityType'),
|