vineanova-redux-artifacts 1.119.67 → 1.119.69
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 +78 -0
- package/dist/hooks/index.js +22 -0
- package/dist/hooks/useFetchlookupSystemData.js +39 -0
- package/dist/hooks/useFetchsubRegionActivityProgress.js +39 -0
- package/dist/reducers/index.js +3 -1
- package/dist/sagas/vineaNovaApi.sagas.js +585 -492
- package/dist/selectors/index.js +22 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/selectors/lookupSystemDataSelector.js +57 -0
- package/dist/selectors/subRegionActivityProgressSelector.js +57 -0
- package/dist/services/apiServices.js +364 -288
- package/package.json +1 -1
- package/src/actions/commonActions.js +18 -0
- package/src/hooks/index.js +2 -0
- package/src/hooks/useFetchlookupSystemData.js +38 -0
- package/src/hooks/useFetchsubRegionActivityProgress.js +38 -0
- package/src/reducers/index.js +2 -0
- package/src/sagas/vineaNovaApi.sagas.js +67 -0
- package/src/selectors/index.js +2 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/selectors/lookupSystemDataSelector.js +62 -0
- package/src/selectors/subRegionActivityProgressSelector.js +62 -0
- package/src/services/apiServices.js +49 -0
package/CHANGELOG.md
CHANGED
|
@@ -8742,6 +8742,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
8742
8742
|
}]
|
|
8743
8743
|
}
|
|
8744
8744
|
},
|
|
8745
|
+
subRegionActivityProgress: {
|
|
8746
|
+
get: {
|
|
8747
|
+
REQUEST: [function (payload) {
|
|
8748
|
+
return payload;
|
|
8749
|
+
}, function () {
|
|
8750
|
+
return {
|
|
8751
|
+
reducerName: 'subRegionActivityProgress'
|
|
8752
|
+
};
|
|
8753
|
+
}],
|
|
8754
|
+
RECEIVE: [function (payload) {
|
|
8755
|
+
return payload;
|
|
8756
|
+
}, function () {
|
|
8757
|
+
return {
|
|
8758
|
+
reducerName: 'subRegionActivityProgress'
|
|
8759
|
+
};
|
|
8760
|
+
}],
|
|
8761
|
+
ERROR: [function (payload) {
|
|
8762
|
+
return payload;
|
|
8763
|
+
}, function () {
|
|
8764
|
+
return {
|
|
8765
|
+
reducerName: 'subRegionActivityProgress'
|
|
8766
|
+
};
|
|
8767
|
+
}],
|
|
8768
|
+
CLEARDATA: [function (payload) {
|
|
8769
|
+
return payload;
|
|
8770
|
+
}, function () {
|
|
8771
|
+
return {
|
|
8772
|
+
reducerName: 'subRegionActivityProgress'
|
|
8773
|
+
};
|
|
8774
|
+
}],
|
|
8775
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
8776
|
+
return payload;
|
|
8777
|
+
}, function () {
|
|
8778
|
+
return {
|
|
8779
|
+
reducerName: 'subRegionActivityProgress'
|
|
8780
|
+
};
|
|
8781
|
+
}]
|
|
8782
|
+
}
|
|
8783
|
+
},
|
|
8745
8784
|
syncVineyardGeometry: {
|
|
8746
8785
|
get: {
|
|
8747
8786
|
REQUEST: [function (payload) {
|
|
@@ -12316,6 +12355,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
12316
12355
|
}]
|
|
12317
12356
|
}
|
|
12318
12357
|
},
|
|
12358
|
+
lookupSystemData: {
|
|
12359
|
+
get: {
|
|
12360
|
+
REQUEST: [function (payload) {
|
|
12361
|
+
return payload;
|
|
12362
|
+
}, function () {
|
|
12363
|
+
return {
|
|
12364
|
+
reducerName: 'lookupSystemData'
|
|
12365
|
+
};
|
|
12366
|
+
}],
|
|
12367
|
+
RECEIVE: [function (payload) {
|
|
12368
|
+
return payload;
|
|
12369
|
+
}, function () {
|
|
12370
|
+
return {
|
|
12371
|
+
reducerName: 'lookupSystemData'
|
|
12372
|
+
};
|
|
12373
|
+
}],
|
|
12374
|
+
ERROR: [function (payload) {
|
|
12375
|
+
return payload;
|
|
12376
|
+
}, function () {
|
|
12377
|
+
return {
|
|
12378
|
+
reducerName: 'lookupSystemData'
|
|
12379
|
+
};
|
|
12380
|
+
}],
|
|
12381
|
+
CLEARDATA: [function (payload) {
|
|
12382
|
+
return payload;
|
|
12383
|
+
}, function () {
|
|
12384
|
+
return {
|
|
12385
|
+
reducerName: 'lookupSystemData'
|
|
12386
|
+
};
|
|
12387
|
+
}],
|
|
12388
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
12389
|
+
return payload;
|
|
12390
|
+
}, function () {
|
|
12391
|
+
return {
|
|
12392
|
+
reducerName: 'lookupSystemData'
|
|
12393
|
+
};
|
|
12394
|
+
}]
|
|
12395
|
+
}
|
|
12396
|
+
},
|
|
12319
12397
|
fetchAllLookups: {
|
|
12320
12398
|
REQUEST: [function (payload) {
|
|
12321
12399
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1235,6 +1235,17 @@ Object.keys(_useFetchregionActivityProgress).forEach(function (key) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
});
|
|
1238
|
+
var _useFetchsubRegionActivityProgress = require("./useFetchsubRegionActivityProgress");
|
|
1239
|
+
Object.keys(_useFetchsubRegionActivityProgress).forEach(function (key) {
|
|
1240
|
+
if (key === "default" || key === "__esModule") return;
|
|
1241
|
+
if (key in exports && exports[key] === _useFetchsubRegionActivityProgress[key]) return;
|
|
1242
|
+
Object.defineProperty(exports, key, {
|
|
1243
|
+
enumerable: true,
|
|
1244
|
+
get: function get() {
|
|
1245
|
+
return _useFetchsubRegionActivityProgress[key];
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
});
|
|
1238
1249
|
var _useFetchsyncVineyardGeometry = require("./useFetchsyncVineyardGeometry");
|
|
1239
1250
|
Object.keys(_useFetchsyncVineyardGeometry).forEach(function (key) {
|
|
1240
1251
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -2169,4 +2180,15 @@ Object.keys(_useFetchlookupIdentityActivity).forEach(function (key) {
|
|
|
2169
2180
|
return _useFetchlookupIdentityActivity[key];
|
|
2170
2181
|
}
|
|
2171
2182
|
});
|
|
2183
|
+
});
|
|
2184
|
+
var _useFetchlookupSystemData = require("./useFetchlookupSystemData");
|
|
2185
|
+
Object.keys(_useFetchlookupSystemData).forEach(function (key) {
|
|
2186
|
+
if (key === "default" || key === "__esModule") return;
|
|
2187
|
+
if (key in exports && exports[key] === _useFetchlookupSystemData[key]) return;
|
|
2188
|
+
Object.defineProperty(exports, key, {
|
|
2189
|
+
enumerable: true,
|
|
2190
|
+
get: function get() {
|
|
2191
|
+
return _useFetchlookupSystemData[key];
|
|
2192
|
+
}
|
|
2193
|
+
});
|
|
2172
2194
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupSystemData = 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 useFetchlookupSystemData = exports.useFetchlookupSystemData = function useFetchlookupSystemData(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupSystemDataEntityData);
|
|
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.lookupSystemData.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupSystemData.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.useFetchSubRegionActivityProgress = 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 useFetchSubRegionActivityProgress = exports.useFetchSubRegionActivityProgress = function useFetchSubRegionActivityProgress(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getSubRegionActivityProgressEntityData);
|
|
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.subRegionActivityProgress.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.subRegionActivityProgress.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -121,6 +121,7 @@ var rootReducer = {
|
|
|
121
121
|
regionVineyardGeometry: (0, _createNamedReducer["default"])('regionVineyardGeometry'),
|
|
122
122
|
vineyardBlockActivityProgress: (0, _createNamedReducer["default"])('vineyardBlockActivityProgress'),
|
|
123
123
|
regionActivityProgress: (0, _createNamedReducer["default"])('regionActivityProgress'),
|
|
124
|
+
subRegionActivityProgress: (0, _createNamedReducer["default"])('subRegionActivityProgress'),
|
|
124
125
|
syncVineyardGeometry: (0, _createNamedReducer["default"])('syncVineyardGeometry'),
|
|
125
126
|
supplyContractBlocksGeometry: (0, _createNamedReducer["default"])('supplyContractBlocksGeometry'),
|
|
126
127
|
supplyContractBlock: (0, _createNamedReducer["default"])('supplyContractBlock'),
|
|
@@ -205,7 +206,8 @@ var rootReducer = {
|
|
|
205
206
|
lookupPayrollRecordType: (0, _createNamedReducer["default"])('lookupPayrollRecordType'),
|
|
206
207
|
lookupJobWorkUnit: (0, _createNamedReducer["default"])('lookupJobWorkUnit'),
|
|
207
208
|
lookupWorkRecordUnitType: (0, _createNamedReducer["default"])('lookupWorkRecordUnitType'),
|
|
208
|
-
lookupIdentityActivity: (0, _createNamedReducer["default"])('lookupIdentityActivity')
|
|
209
|
+
lookupIdentityActivity: (0, _createNamedReducer["default"])('lookupIdentityActivity'),
|
|
210
|
+
lookupSystemData: (0, _createNamedReducer["default"])('lookupSystemData')
|
|
209
211
|
})
|
|
210
212
|
};
|
|
211
213
|
var _default = exports["default"] = rootReducer;
|