vineanova-redux-artifacts 1.119.95 → 1.119.97
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 +115 -0
- package/dist/hooks/index.js +22 -0
- package/dist/hooks/useFetchadHocBlockVintageAllocation.js +39 -0
- package/dist/hooks/useFetchlookupCostAllocationFactor.js +39 -0
- package/dist/reducers/index.js +3 -1
- package/dist/sagas/vineaNovaApi.sagas.js +1062 -924
- package/dist/selectors/adHocBlockVintageAllocationSelector.js +57 -0
- package/dist/selectors/index.js +22 -0
- package/dist/selectors/lookupCostAllocationFactorSelector.js +57 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/services/apiServices.js +806 -692
- package/package.json +1 -1
- package/src/actions/commonActions.js +25 -0
- package/src/hooks/index.js +2 -0
- package/src/hooks/useFetchadHocBlockVintageAllocation.js +38 -0
- package/src/hooks/useFetchlookupCostAllocationFactor.js +38 -0
- package/src/reducers/index.js +2 -0
- package/src/sagas/vineaNovaApi.sagas.js +98 -0
- package/src/selectors/adHocBlockVintageAllocationSelector.js +62 -0
- package/src/selectors/index.js +2 -0
- package/src/selectors/lookupCostAllocationFactorSelector.js +62 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/services/apiServices.js +73 -0
package/CHANGELOG.md
CHANGED
|
@@ -5232,6 +5232,82 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5232
5232
|
}]
|
|
5233
5233
|
}
|
|
5234
5234
|
},
|
|
5235
|
+
adHocBlockVintageAllocation: {
|
|
5236
|
+
get: {
|
|
5237
|
+
REQUEST: [function (payload) {
|
|
5238
|
+
return payload;
|
|
5239
|
+
}, function () {
|
|
5240
|
+
return {
|
|
5241
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5242
|
+
};
|
|
5243
|
+
}],
|
|
5244
|
+
RECEIVE: [function (payload) {
|
|
5245
|
+
return payload;
|
|
5246
|
+
}, function () {
|
|
5247
|
+
return {
|
|
5248
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5249
|
+
};
|
|
5250
|
+
}],
|
|
5251
|
+
ERROR: [function (payload) {
|
|
5252
|
+
return payload;
|
|
5253
|
+
}, function () {
|
|
5254
|
+
return {
|
|
5255
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5256
|
+
};
|
|
5257
|
+
}],
|
|
5258
|
+
CLEARDATA: [function (payload) {
|
|
5259
|
+
return payload;
|
|
5260
|
+
}, function () {
|
|
5261
|
+
return {
|
|
5262
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5263
|
+
};
|
|
5264
|
+
}],
|
|
5265
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5266
|
+
return payload;
|
|
5267
|
+
}, function () {
|
|
5268
|
+
return {
|
|
5269
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5270
|
+
};
|
|
5271
|
+
}]
|
|
5272
|
+
},
|
|
5273
|
+
put: {
|
|
5274
|
+
REQUEST: [function (payload) {
|
|
5275
|
+
return payload;
|
|
5276
|
+
}, function () {
|
|
5277
|
+
return {
|
|
5278
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5279
|
+
};
|
|
5280
|
+
}],
|
|
5281
|
+
RECEIVE: [function (payload) {
|
|
5282
|
+
return payload;
|
|
5283
|
+
}, function () {
|
|
5284
|
+
return {
|
|
5285
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5286
|
+
};
|
|
5287
|
+
}],
|
|
5288
|
+
ERROR: [function (payload) {
|
|
5289
|
+
return payload;
|
|
5290
|
+
}, function () {
|
|
5291
|
+
return {
|
|
5292
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5293
|
+
};
|
|
5294
|
+
}],
|
|
5295
|
+
CLEARDATA: [function (payload) {
|
|
5296
|
+
return payload;
|
|
5297
|
+
}, function () {
|
|
5298
|
+
return {
|
|
5299
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5300
|
+
};
|
|
5301
|
+
}],
|
|
5302
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5303
|
+
return payload;
|
|
5304
|
+
}, function () {
|
|
5305
|
+
return {
|
|
5306
|
+
reducerName: 'adHocBlockVintageAllocation'
|
|
5307
|
+
};
|
|
5308
|
+
}]
|
|
5309
|
+
}
|
|
5310
|
+
},
|
|
5235
5311
|
identityVineyardBlockRows: {
|
|
5236
5312
|
get: {
|
|
5237
5313
|
REQUEST: [function (payload) {
|
|
@@ -12897,6 +12973,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
12897
12973
|
}]
|
|
12898
12974
|
}
|
|
12899
12975
|
},
|
|
12976
|
+
lookupCostAllocationFactor: {
|
|
12977
|
+
get: {
|
|
12978
|
+
REQUEST: [function (payload) {
|
|
12979
|
+
return payload;
|
|
12980
|
+
}, function () {
|
|
12981
|
+
return {
|
|
12982
|
+
reducerName: 'lookupCostAllocationFactor'
|
|
12983
|
+
};
|
|
12984
|
+
}],
|
|
12985
|
+
RECEIVE: [function (payload) {
|
|
12986
|
+
return payload;
|
|
12987
|
+
}, function () {
|
|
12988
|
+
return {
|
|
12989
|
+
reducerName: 'lookupCostAllocationFactor'
|
|
12990
|
+
};
|
|
12991
|
+
}],
|
|
12992
|
+
ERROR: [function (payload) {
|
|
12993
|
+
return payload;
|
|
12994
|
+
}, function () {
|
|
12995
|
+
return {
|
|
12996
|
+
reducerName: 'lookupCostAllocationFactor'
|
|
12997
|
+
};
|
|
12998
|
+
}],
|
|
12999
|
+
CLEARDATA: [function (payload) {
|
|
13000
|
+
return payload;
|
|
13001
|
+
}, function () {
|
|
13002
|
+
return {
|
|
13003
|
+
reducerName: 'lookupCostAllocationFactor'
|
|
13004
|
+
};
|
|
13005
|
+
}],
|
|
13006
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
13007
|
+
return payload;
|
|
13008
|
+
}, function () {
|
|
13009
|
+
return {
|
|
13010
|
+
reducerName: 'lookupCostAllocationFactor'
|
|
13011
|
+
};
|
|
13012
|
+
}]
|
|
13013
|
+
}
|
|
13014
|
+
},
|
|
12900
13015
|
fetchAllLookups: {
|
|
12901
13016
|
REQUEST: [function (payload) {
|
|
12902
13017
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -652,6 +652,17 @@ Object.keys(_useFetchvineyardBlockCropMeasurements).forEach(function (key) {
|
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
});
|
|
655
|
+
var _useFetchadHocBlockVintageAllocation = require("./useFetchadHocBlockVintageAllocation");
|
|
656
|
+
Object.keys(_useFetchadHocBlockVintageAllocation).forEach(function (key) {
|
|
657
|
+
if (key === "default" || key === "__esModule") return;
|
|
658
|
+
if (key in exports && exports[key] === _useFetchadHocBlockVintageAllocation[key]) return;
|
|
659
|
+
Object.defineProperty(exports, key, {
|
|
660
|
+
enumerable: true,
|
|
661
|
+
get: function get() {
|
|
662
|
+
return _useFetchadHocBlockVintageAllocation[key];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
655
666
|
var _useFetchidentityVineyardBlockRows = require("./useFetchidentityVineyardBlockRows");
|
|
656
667
|
Object.keys(_useFetchidentityVineyardBlockRows).forEach(function (key) {
|
|
657
668
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -2312,4 +2323,15 @@ Object.keys(_useFetchlookupEventLogStatus).forEach(function (key) {
|
|
|
2312
2323
|
return _useFetchlookupEventLogStatus[key];
|
|
2313
2324
|
}
|
|
2314
2325
|
});
|
|
2326
|
+
});
|
|
2327
|
+
var _useFetchlookupCostAllocationFactor = require("./useFetchlookupCostAllocationFactor");
|
|
2328
|
+
Object.keys(_useFetchlookupCostAllocationFactor).forEach(function (key) {
|
|
2329
|
+
if (key === "default" || key === "__esModule") return;
|
|
2330
|
+
if (key in exports && exports[key] === _useFetchlookupCostAllocationFactor[key]) return;
|
|
2331
|
+
Object.defineProperty(exports, key, {
|
|
2332
|
+
enumerable: true,
|
|
2333
|
+
get: function get() {
|
|
2334
|
+
return _useFetchlookupCostAllocationFactor[key];
|
|
2335
|
+
}
|
|
2336
|
+
});
|
|
2315
2337
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchAdHocBlockVintageAllocation = 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 useFetchAdHocBlockVintageAllocation = exports.useFetchAdHocBlockVintageAllocation = function useFetchAdHocBlockVintageAllocation(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getAdHocBlockVintageAllocationEntityData);
|
|
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.adHocBlockVintageAllocation.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.adHocBlockVintageAllocation.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupCostAllocationFactor = 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 useFetchlookupCostAllocationFactor = exports.useFetchlookupCostAllocationFactor = function useFetchlookupCostAllocationFactor(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupCostAllocationFactorEntityData);
|
|
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.lookupCostAllocationFactor.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupCostAllocationFactor.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var rootReducer = {
|
|
|
68
68
|
identityVineyardBlocks: (0, _createNamedReducer["default"])('identityVineyardBlocks'),
|
|
69
69
|
identityVineyardBlock: (0, _createNamedReducer["default"])('identityVineyardBlock'),
|
|
70
70
|
vineyardBlockCropMeasurements: (0, _createNamedReducer["default"])('vineyardBlockCropMeasurements'),
|
|
71
|
+
adHocBlockVintageAllocation: (0, _createNamedReducer["default"])('adHocBlockVintageAllocation'),
|
|
71
72
|
identityVineyardBlockRows: (0, _createNamedReducer["default"])('identityVineyardBlockRows'),
|
|
72
73
|
identityVineyardBlockRow: (0, _createNamedReducer["default"])('identityVineyardBlockRow'),
|
|
73
74
|
importTypeFilters: (0, _createNamedReducer["default"])('importTypeFilters'),
|
|
@@ -218,7 +219,8 @@ var rootReducer = {
|
|
|
218
219
|
lookupSystemData: (0, _createNamedReducer["default"])('lookupSystemData'),
|
|
219
220
|
lookupSiteType: (0, _createNamedReducer["default"])('lookupSiteType'),
|
|
220
221
|
lookupImportType: (0, _createNamedReducer["default"])('lookupImportType'),
|
|
221
|
-
lookupEventLogStatus: (0, _createNamedReducer["default"])('lookupEventLogStatus')
|
|
222
|
+
lookupEventLogStatus: (0, _createNamedReducer["default"])('lookupEventLogStatus'),
|
|
223
|
+
lookupCostAllocationFactor: (0, _createNamedReducer["default"])('lookupCostAllocationFactor')
|
|
222
224
|
})
|
|
223
225
|
};
|
|
224
226
|
var _default = exports["default"] = rootReducer;
|