vineanova-redux-artifacts 1.119.80 → 1.119.81
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/useFetchvineyardBlockCropMeasurements.js +39 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +936 -891
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/vineyardBlockCropMeasurementsSelector.js +57 -0
- package/dist/services/apiServices.js +682 -645
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchvineyardBlockCropMeasurements.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/vineyardBlockCropMeasurementsSelector.js +62 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -5076,6 +5076,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5076
5076
|
}]
|
|
5077
5077
|
}
|
|
5078
5078
|
},
|
|
5079
|
+
vineyardBlockCropMeasurements: {
|
|
5080
|
+
get: {
|
|
5081
|
+
REQUEST: [function (payload) {
|
|
5082
|
+
return payload;
|
|
5083
|
+
}, function () {
|
|
5084
|
+
return {
|
|
5085
|
+
reducerName: 'vineyardBlockCropMeasurements'
|
|
5086
|
+
};
|
|
5087
|
+
}],
|
|
5088
|
+
RECEIVE: [function (payload) {
|
|
5089
|
+
return payload;
|
|
5090
|
+
}, function () {
|
|
5091
|
+
return {
|
|
5092
|
+
reducerName: 'vineyardBlockCropMeasurements'
|
|
5093
|
+
};
|
|
5094
|
+
}],
|
|
5095
|
+
ERROR: [function (payload) {
|
|
5096
|
+
return payload;
|
|
5097
|
+
}, function () {
|
|
5098
|
+
return {
|
|
5099
|
+
reducerName: 'vineyardBlockCropMeasurements'
|
|
5100
|
+
};
|
|
5101
|
+
}],
|
|
5102
|
+
CLEARDATA: [function (payload) {
|
|
5103
|
+
return payload;
|
|
5104
|
+
}, function () {
|
|
5105
|
+
return {
|
|
5106
|
+
reducerName: 'vineyardBlockCropMeasurements'
|
|
5107
|
+
};
|
|
5108
|
+
}],
|
|
5109
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5110
|
+
return payload;
|
|
5111
|
+
}, function () {
|
|
5112
|
+
return {
|
|
5113
|
+
reducerName: 'vineyardBlockCropMeasurements'
|
|
5114
|
+
};
|
|
5115
|
+
}]
|
|
5116
|
+
}
|
|
5117
|
+
},
|
|
5079
5118
|
identityVineyardBlockRows: {
|
|
5080
5119
|
get: {
|
|
5081
5120
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -608,6 +608,17 @@ Object.keys(_useFetchidentityVineyardBlock).forEach(function (key) {
|
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
});
|
|
611
|
+
var _useFetchvineyardBlockCropMeasurements = require("./useFetchvineyardBlockCropMeasurements");
|
|
612
|
+
Object.keys(_useFetchvineyardBlockCropMeasurements).forEach(function (key) {
|
|
613
|
+
if (key === "default" || key === "__esModule") return;
|
|
614
|
+
if (key in exports && exports[key] === _useFetchvineyardBlockCropMeasurements[key]) return;
|
|
615
|
+
Object.defineProperty(exports, key, {
|
|
616
|
+
enumerable: true,
|
|
617
|
+
get: function get() {
|
|
618
|
+
return _useFetchvineyardBlockCropMeasurements[key];
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
});
|
|
611
622
|
var _useFetchidentityVineyardBlockRows = require("./useFetchidentityVineyardBlockRows");
|
|
612
623
|
Object.keys(_useFetchidentityVineyardBlockRows).forEach(function (key) {
|
|
613
624
|
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.useFetchVineyardBlockCropMeasurements = 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 useFetchVineyardBlockCropMeasurements = exports.useFetchVineyardBlockCropMeasurements = function useFetchVineyardBlockCropMeasurements(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getVineyardBlockCropMeasurementsEntityData);
|
|
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.vineyardBlockCropMeasurements.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.vineyardBlockCropMeasurements.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -64,6 +64,7 @@ var rootReducer = {
|
|
|
64
64
|
gridVineyardBlocks: (0, _createNamedReducer["default"])('gridVineyardBlocks'),
|
|
65
65
|
identityVineyardBlocks: (0, _createNamedReducer["default"])('identityVineyardBlocks'),
|
|
66
66
|
identityVineyardBlock: (0, _createNamedReducer["default"])('identityVineyardBlock'),
|
|
67
|
+
vineyardBlockCropMeasurements: (0, _createNamedReducer["default"])('vineyardBlockCropMeasurements'),
|
|
67
68
|
identityVineyardBlockRows: (0, _createNamedReducer["default"])('identityVineyardBlockRows'),
|
|
68
69
|
identityVineyardBlockRow: (0, _createNamedReducer["default"])('identityVineyardBlockRow'),
|
|
69
70
|
jobActivity: (0, _createNamedReducer["default"])('jobActivity'),
|