vineanova-redux-artifacts 1.119.201 → 1.119.203
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/useFetchsplitJobBlockRow.js +39 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +1005 -960
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/splitJobBlockRowSelector.js +57 -0
- package/dist/services/apiServices.js +727 -690
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchsplitJobBlockRow.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/splitJobBlockRowSelector.js +62 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -6411,6 +6411,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6411
6411
|
}]
|
|
6412
6412
|
}
|
|
6413
6413
|
},
|
|
6414
|
+
splitJobBlockRow: {
|
|
6415
|
+
post: {
|
|
6416
|
+
REQUEST: [function (payload) {
|
|
6417
|
+
return payload;
|
|
6418
|
+
}, function () {
|
|
6419
|
+
return {
|
|
6420
|
+
reducerName: 'splitJobBlockRow'
|
|
6421
|
+
};
|
|
6422
|
+
}],
|
|
6423
|
+
RECEIVE: [function (payload) {
|
|
6424
|
+
return payload;
|
|
6425
|
+
}, function () {
|
|
6426
|
+
return {
|
|
6427
|
+
reducerName: 'splitJobBlockRow'
|
|
6428
|
+
};
|
|
6429
|
+
}],
|
|
6430
|
+
ERROR: [function (payload) {
|
|
6431
|
+
return payload;
|
|
6432
|
+
}, function () {
|
|
6433
|
+
return {
|
|
6434
|
+
reducerName: 'splitJobBlockRow'
|
|
6435
|
+
};
|
|
6436
|
+
}],
|
|
6437
|
+
CLEARDATA: [function (payload) {
|
|
6438
|
+
return payload;
|
|
6439
|
+
}, function () {
|
|
6440
|
+
return {
|
|
6441
|
+
reducerName: 'splitJobBlockRow'
|
|
6442
|
+
};
|
|
6443
|
+
}],
|
|
6444
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6445
|
+
return payload;
|
|
6446
|
+
}, function () {
|
|
6447
|
+
return {
|
|
6448
|
+
reducerName: 'splitJobBlockRow'
|
|
6449
|
+
};
|
|
6450
|
+
}]
|
|
6451
|
+
}
|
|
6452
|
+
},
|
|
6414
6453
|
rowsByJobBlock: {
|
|
6415
6454
|
get: {
|
|
6416
6455
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -828,6 +828,17 @@ Object.keys(_useFetchjobBlockRows).forEach(function (key) {
|
|
|
828
828
|
}
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
|
+
var _useFetchsplitJobBlockRow = require("./useFetchsplitJobBlockRow");
|
|
832
|
+
Object.keys(_useFetchsplitJobBlockRow).forEach(function (key) {
|
|
833
|
+
if (key === "default" || key === "__esModule") return;
|
|
834
|
+
if (key in exports && exports[key] === _useFetchsplitJobBlockRow[key]) return;
|
|
835
|
+
Object.defineProperty(exports, key, {
|
|
836
|
+
enumerable: true,
|
|
837
|
+
get: function get() {
|
|
838
|
+
return _useFetchsplitJobBlockRow[key];
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
});
|
|
831
842
|
var _useFetchrowsByJobBlock = require("./useFetchrowsByJobBlock");
|
|
832
843
|
Object.keys(_useFetchrowsByJobBlock).forEach(function (key) {
|
|
833
844
|
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.useFetchSplitJobBlockRow = 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 useFetchSplitJobBlockRow = exports.useFetchSplitJobBlockRow = function useFetchSplitJobBlockRow(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getSplitJobBlockRowEntityData);
|
|
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.splitJobBlockRow.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.splitJobBlockRow.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -84,6 +84,7 @@ var rootReducer = {
|
|
|
84
84
|
blocksForJob: (0, _createNamedReducer["default"])('blocksForJob'),
|
|
85
85
|
jobBlocksBulk: (0, _createNamedReducer["default"])('jobBlocksBulk'),
|
|
86
86
|
jobBlockRows: (0, _createNamedReducer["default"])('jobBlockRows'),
|
|
87
|
+
splitJobBlockRow: (0, _createNamedReducer["default"])('splitJobBlockRow'),
|
|
87
88
|
rowsByJobBlock: (0, _createNamedReducer["default"])('rowsByJobBlock'),
|
|
88
89
|
jobEvents: (0, _createNamedReducer["default"])('jobEvents'),
|
|
89
90
|
jobSupervisor: (0, _createNamedReducer["default"])('jobSupervisor'),
|