vineanova-redux-artifacts 1.119.136 → 1.119.137
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 +113 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/useFetchlookupWorkRecordType.js +39 -0
- package/dist/reducers/index.js +2 -1
- package/dist/sagas/vineaNovaApi.sagas.js +961 -823
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/lookupStatusSelector.js +9 -4
- package/dist/selectors/lookupWorkRecordTypeSelector.js +57 -0
- package/dist/services/apiServices.js +706 -594
- package/package.json +1 -1
- package/src/actions/commonActions.js +23 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchlookupWorkRecordType.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +97 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/selectors/lookupWorkRecordTypeSelector.js +62 -0
- package/src/services/apiServices.js +70 -0
package/CHANGELOG.md
CHANGED
|
@@ -6825,6 +6825,80 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6825
6825
|
};
|
|
6826
6826
|
}]
|
|
6827
6827
|
},
|
|
6828
|
+
post: {
|
|
6829
|
+
REQUEST: [function (payload) {
|
|
6830
|
+
return payload;
|
|
6831
|
+
}, function () {
|
|
6832
|
+
return {
|
|
6833
|
+
reducerName: 'jobWorkRecords'
|
|
6834
|
+
};
|
|
6835
|
+
}],
|
|
6836
|
+
RECEIVE: [function (payload) {
|
|
6837
|
+
return payload;
|
|
6838
|
+
}, function () {
|
|
6839
|
+
return {
|
|
6840
|
+
reducerName: 'jobWorkRecords'
|
|
6841
|
+
};
|
|
6842
|
+
}],
|
|
6843
|
+
ERROR: [function (payload) {
|
|
6844
|
+
return payload;
|
|
6845
|
+
}, function () {
|
|
6846
|
+
return {
|
|
6847
|
+
reducerName: 'jobWorkRecords'
|
|
6848
|
+
};
|
|
6849
|
+
}],
|
|
6850
|
+
CLEARDATA: [function (payload) {
|
|
6851
|
+
return payload;
|
|
6852
|
+
}, function () {
|
|
6853
|
+
return {
|
|
6854
|
+
reducerName: 'jobWorkRecords'
|
|
6855
|
+
};
|
|
6856
|
+
}],
|
|
6857
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6858
|
+
return payload;
|
|
6859
|
+
}, function () {
|
|
6860
|
+
return {
|
|
6861
|
+
reducerName: 'jobWorkRecords'
|
|
6862
|
+
};
|
|
6863
|
+
}]
|
|
6864
|
+
},
|
|
6865
|
+
put: {
|
|
6866
|
+
REQUEST: [function (payload) {
|
|
6867
|
+
return payload;
|
|
6868
|
+
}, function () {
|
|
6869
|
+
return {
|
|
6870
|
+
reducerName: 'jobWorkRecords'
|
|
6871
|
+
};
|
|
6872
|
+
}],
|
|
6873
|
+
RECEIVE: [function (payload) {
|
|
6874
|
+
return payload;
|
|
6875
|
+
}, function () {
|
|
6876
|
+
return {
|
|
6877
|
+
reducerName: 'jobWorkRecords'
|
|
6878
|
+
};
|
|
6879
|
+
}],
|
|
6880
|
+
ERROR: [function (payload) {
|
|
6881
|
+
return payload;
|
|
6882
|
+
}, function () {
|
|
6883
|
+
return {
|
|
6884
|
+
reducerName: 'jobWorkRecords'
|
|
6885
|
+
};
|
|
6886
|
+
}],
|
|
6887
|
+
CLEARDATA: [function (payload) {
|
|
6888
|
+
return payload;
|
|
6889
|
+
}, function () {
|
|
6890
|
+
return {
|
|
6891
|
+
reducerName: 'jobWorkRecords'
|
|
6892
|
+
};
|
|
6893
|
+
}],
|
|
6894
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6895
|
+
return payload;
|
|
6896
|
+
}, function () {
|
|
6897
|
+
return {
|
|
6898
|
+
reducerName: 'jobWorkRecords'
|
|
6899
|
+
};
|
|
6900
|
+
}]
|
|
6901
|
+
},
|
|
6828
6902
|
"delete": {
|
|
6829
6903
|
REQUEST: [function (payload) {
|
|
6830
6904
|
return payload;
|
|
@@ -13509,6 +13583,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
13509
13583
|
}]
|
|
13510
13584
|
}
|
|
13511
13585
|
},
|
|
13586
|
+
lookupWorkRecordType: {
|
|
13587
|
+
get: {
|
|
13588
|
+
REQUEST: [function (payload) {
|
|
13589
|
+
return payload;
|
|
13590
|
+
}, function () {
|
|
13591
|
+
return {
|
|
13592
|
+
reducerName: 'lookupWorkRecordType'
|
|
13593
|
+
};
|
|
13594
|
+
}],
|
|
13595
|
+
RECEIVE: [function (payload) {
|
|
13596
|
+
return payload;
|
|
13597
|
+
}, function () {
|
|
13598
|
+
return {
|
|
13599
|
+
reducerName: 'lookupWorkRecordType'
|
|
13600
|
+
};
|
|
13601
|
+
}],
|
|
13602
|
+
ERROR: [function (payload) {
|
|
13603
|
+
return payload;
|
|
13604
|
+
}, function () {
|
|
13605
|
+
return {
|
|
13606
|
+
reducerName: 'lookupWorkRecordType'
|
|
13607
|
+
};
|
|
13608
|
+
}],
|
|
13609
|
+
CLEARDATA: [function (payload) {
|
|
13610
|
+
return payload;
|
|
13611
|
+
}, function () {
|
|
13612
|
+
return {
|
|
13613
|
+
reducerName: 'lookupWorkRecordType'
|
|
13614
|
+
};
|
|
13615
|
+
}],
|
|
13616
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
13617
|
+
return payload;
|
|
13618
|
+
}, function () {
|
|
13619
|
+
return {
|
|
13620
|
+
reducerName: 'lookupWorkRecordType'
|
|
13621
|
+
};
|
|
13622
|
+
}]
|
|
13623
|
+
}
|
|
13624
|
+
},
|
|
13512
13625
|
fetchAllLookups: {
|
|
13513
13626
|
REQUEST: [function (payload) {
|
|
13514
13627
|
return payload;
|
package/dist/hooks/index.js
CHANGED
|
@@ -2422,4 +2422,15 @@ Object.keys(_useFetchlookupWineryDataAllocationRule).forEach(function (key) {
|
|
|
2422
2422
|
return _useFetchlookupWineryDataAllocationRule[key];
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
|
+
});
|
|
2426
|
+
var _useFetchlookupWorkRecordType = require("./useFetchlookupWorkRecordType");
|
|
2427
|
+
Object.keys(_useFetchlookupWorkRecordType).forEach(function (key) {
|
|
2428
|
+
if (key === "default" || key === "__esModule") return;
|
|
2429
|
+
if (key in exports && exports[key] === _useFetchlookupWorkRecordType[key]) return;
|
|
2430
|
+
Object.defineProperty(exports, key, {
|
|
2431
|
+
enumerable: true,
|
|
2432
|
+
get: function get() {
|
|
2433
|
+
return _useFetchlookupWorkRecordType[key];
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2425
2436
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchlookupWorkRecordType = 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 useFetchlookupWorkRecordType = exports.useFetchlookupWorkRecordType = function useFetchlookupWorkRecordType(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getlookupWorkRecordTypeEntityData);
|
|
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.lookupWorkRecordType.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.lookupWorkRecordType.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -228,7 +228,8 @@ var rootReducer = {
|
|
|
228
228
|
lookupCostAllocationFactor: (0, _createNamedReducer["default"])('lookupCostAllocationFactor'),
|
|
229
229
|
lookupReportType: (0, _createNamedReducer["default"])('lookupReportType'),
|
|
230
230
|
lookupWineryDataType: (0, _createNamedReducer["default"])('lookupWineryDataType'),
|
|
231
|
-
lookupWineryDataAllocationRule: (0, _createNamedReducer["default"])('lookupWineryDataAllocationRule')
|
|
231
|
+
lookupWineryDataAllocationRule: (0, _createNamedReducer["default"])('lookupWineryDataAllocationRule'),
|
|
232
|
+
lookupWorkRecordType: (0, _createNamedReducer["default"])('lookupWorkRecordType')
|
|
232
233
|
})
|
|
233
234
|
};
|
|
234
235
|
var _default = exports["default"] = rootReducer;
|