vineanova-redux-artifacts 1.119.115 → 1.119.116
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 +150 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/useFetchwineryVintageBlockAllocations.js +39 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +643 -463
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/wineryVintageBlockAllocationsSelector.js +57 -0
- package/dist/services/apiServices.js +418 -271
- package/package.json +1 -1
- package/src/actions/commonActions.js +30 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchwineryVintageBlockAllocations.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +125 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/wineryVintageBlockAllocationsSelector.js +62 -0
- package/src/services/apiServices.js +92 -0
package/CHANGELOG.md
CHANGED
|
@@ -9929,6 +9929,156 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
9929
9929
|
}]
|
|
9930
9930
|
}
|
|
9931
9931
|
},
|
|
9932
|
+
wineryVintageBlockAllocations: {
|
|
9933
|
+
get: {
|
|
9934
|
+
REQUEST: [function (payload) {
|
|
9935
|
+
return payload;
|
|
9936
|
+
}, function () {
|
|
9937
|
+
return {
|
|
9938
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9939
|
+
};
|
|
9940
|
+
}],
|
|
9941
|
+
RECEIVE: [function (payload) {
|
|
9942
|
+
return payload;
|
|
9943
|
+
}, function () {
|
|
9944
|
+
return {
|
|
9945
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9946
|
+
};
|
|
9947
|
+
}],
|
|
9948
|
+
ERROR: [function (payload) {
|
|
9949
|
+
return payload;
|
|
9950
|
+
}, function () {
|
|
9951
|
+
return {
|
|
9952
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9953
|
+
};
|
|
9954
|
+
}],
|
|
9955
|
+
CLEARDATA: [function (payload) {
|
|
9956
|
+
return payload;
|
|
9957
|
+
}, function () {
|
|
9958
|
+
return {
|
|
9959
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9960
|
+
};
|
|
9961
|
+
}],
|
|
9962
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
9963
|
+
return payload;
|
|
9964
|
+
}, function () {
|
|
9965
|
+
return {
|
|
9966
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9967
|
+
};
|
|
9968
|
+
}]
|
|
9969
|
+
},
|
|
9970
|
+
post: {
|
|
9971
|
+
REQUEST: [function (payload) {
|
|
9972
|
+
return payload;
|
|
9973
|
+
}, function () {
|
|
9974
|
+
return {
|
|
9975
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9976
|
+
};
|
|
9977
|
+
}],
|
|
9978
|
+
RECEIVE: [function (payload) {
|
|
9979
|
+
return payload;
|
|
9980
|
+
}, function () {
|
|
9981
|
+
return {
|
|
9982
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9983
|
+
};
|
|
9984
|
+
}],
|
|
9985
|
+
ERROR: [function (payload) {
|
|
9986
|
+
return payload;
|
|
9987
|
+
}, function () {
|
|
9988
|
+
return {
|
|
9989
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9990
|
+
};
|
|
9991
|
+
}],
|
|
9992
|
+
CLEARDATA: [function (payload) {
|
|
9993
|
+
return payload;
|
|
9994
|
+
}, function () {
|
|
9995
|
+
return {
|
|
9996
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
9997
|
+
};
|
|
9998
|
+
}],
|
|
9999
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
10000
|
+
return payload;
|
|
10001
|
+
}, function () {
|
|
10002
|
+
return {
|
|
10003
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10004
|
+
};
|
|
10005
|
+
}]
|
|
10006
|
+
},
|
|
10007
|
+
put: {
|
|
10008
|
+
REQUEST: [function (payload) {
|
|
10009
|
+
return payload;
|
|
10010
|
+
}, function () {
|
|
10011
|
+
return {
|
|
10012
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10013
|
+
};
|
|
10014
|
+
}],
|
|
10015
|
+
RECEIVE: [function (payload) {
|
|
10016
|
+
return payload;
|
|
10017
|
+
}, function () {
|
|
10018
|
+
return {
|
|
10019
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10020
|
+
};
|
|
10021
|
+
}],
|
|
10022
|
+
ERROR: [function (payload) {
|
|
10023
|
+
return payload;
|
|
10024
|
+
}, function () {
|
|
10025
|
+
return {
|
|
10026
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10027
|
+
};
|
|
10028
|
+
}],
|
|
10029
|
+
CLEARDATA: [function (payload) {
|
|
10030
|
+
return payload;
|
|
10031
|
+
}, function () {
|
|
10032
|
+
return {
|
|
10033
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10034
|
+
};
|
|
10035
|
+
}],
|
|
10036
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
10037
|
+
return payload;
|
|
10038
|
+
}, function () {
|
|
10039
|
+
return {
|
|
10040
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10041
|
+
};
|
|
10042
|
+
}]
|
|
10043
|
+
},
|
|
10044
|
+
"delete": {
|
|
10045
|
+
REQUEST: [function (payload) {
|
|
10046
|
+
return payload;
|
|
10047
|
+
}, function () {
|
|
10048
|
+
return {
|
|
10049
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10050
|
+
};
|
|
10051
|
+
}],
|
|
10052
|
+
RECEIVE: [function (payload) {
|
|
10053
|
+
return payload;
|
|
10054
|
+
}, function () {
|
|
10055
|
+
return {
|
|
10056
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10057
|
+
};
|
|
10058
|
+
}],
|
|
10059
|
+
ERROR: [function (payload) {
|
|
10060
|
+
return payload;
|
|
10061
|
+
}, function () {
|
|
10062
|
+
return {
|
|
10063
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10064
|
+
};
|
|
10065
|
+
}],
|
|
10066
|
+
CLEARDATA: [function (payload) {
|
|
10067
|
+
return payload;
|
|
10068
|
+
}, function () {
|
|
10069
|
+
return {
|
|
10070
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10071
|
+
};
|
|
10072
|
+
}],
|
|
10073
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
10074
|
+
return payload;
|
|
10075
|
+
}, function () {
|
|
10076
|
+
return {
|
|
10077
|
+
reducerName: 'wineryVintageBlockAllocations'
|
|
10078
|
+
};
|
|
10079
|
+
}]
|
|
10080
|
+
}
|
|
10081
|
+
},
|
|
9932
10082
|
workers: {
|
|
9933
10083
|
get: {
|
|
9934
10084
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -1455,6 +1455,17 @@ Object.keys(_useFetchtriggerVintraceMetricDataSync).forEach(function (key) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
});
|
|
1457
1457
|
});
|
|
1458
|
+
var _useFetchwineryVintageBlockAllocations = require("./useFetchwineryVintageBlockAllocations");
|
|
1459
|
+
Object.keys(_useFetchwineryVintageBlockAllocations).forEach(function (key) {
|
|
1460
|
+
if (key === "default" || key === "__esModule") return;
|
|
1461
|
+
if (key in exports && exports[key] === _useFetchwineryVintageBlockAllocations[key]) return;
|
|
1462
|
+
Object.defineProperty(exports, key, {
|
|
1463
|
+
enumerable: true,
|
|
1464
|
+
get: function get() {
|
|
1465
|
+
return _useFetchwineryVintageBlockAllocations[key];
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
});
|
|
1458
1469
|
var _useFetchworkers = require("./useFetchworkers");
|
|
1459
1470
|
Object.keys(_useFetchworkers).forEach(function (key) {
|
|
1460
1471
|
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.useFetchWineryVintageBlockAllocations = 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 useFetchWineryVintageBlockAllocations = exports.useFetchWineryVintageBlockAllocations = function useFetchWineryVintageBlockAllocations(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getWineryVintageBlockAllocationsEntityData);
|
|
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.wineryVintageBlockAllocations.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.wineryVintageBlockAllocations.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -141,6 +141,7 @@ var rootReducer = {
|
|
|
141
141
|
identityVineyard: (0, _createNamedReducer["default"])('identityVineyard'),
|
|
142
142
|
identityVineyardTracking: (0, _createNamedReducer["default"])('identityVineyardTracking'),
|
|
143
143
|
triggerVintraceMetricDataSync: (0, _createNamedReducer["default"])('triggerVintraceMetricDataSync'),
|
|
144
|
+
wineryVintageBlockAllocations: (0, _createNamedReducer["default"])('wineryVintageBlockAllocations'),
|
|
144
145
|
workers: (0, _createNamedReducer["default"])('workers'),
|
|
145
146
|
workerPayPeriods: (0, _createNamedReducer["default"])('workerPayPeriods'),
|
|
146
147
|
workerWorkRecords: (0, _createNamedReducer["default"])('workerWorkRecords'),
|