vineanova-redux-artifacts 1.119.310 → 1.119.312
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/useFetchidentityConsumableTransactions.js +38 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +1308 -1264
- package/dist/selectors/identityConsumableTransactionsSelector.js +57 -0
- package/dist/selectors/index.js +11 -0
- package/dist/services/apiServices.js +1287 -1252
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchidentityConsumableTransactions.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +32 -0
- package/src/selectors/identityConsumableTransactionsSelector.js +62 -0
- package/src/selectors/index.js +1 -0
- package/src/services/apiServices.js +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -2818,6 +2818,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
2818
2818
|
}]
|
|
2819
2819
|
}
|
|
2820
2820
|
},
|
|
2821
|
+
identityConsumableTransactions: {
|
|
2822
|
+
get: {
|
|
2823
|
+
REQUEST: [function (payload) {
|
|
2824
|
+
return payload;
|
|
2825
|
+
}, function () {
|
|
2826
|
+
return {
|
|
2827
|
+
reducerName: 'identityConsumableTransactions'
|
|
2828
|
+
};
|
|
2829
|
+
}],
|
|
2830
|
+
RECEIVE: [function (payload) {
|
|
2831
|
+
return payload;
|
|
2832
|
+
}, function () {
|
|
2833
|
+
return {
|
|
2834
|
+
reducerName: 'identityConsumableTransactions'
|
|
2835
|
+
};
|
|
2836
|
+
}],
|
|
2837
|
+
ERROR: [function (payload) {
|
|
2838
|
+
return payload;
|
|
2839
|
+
}, function () {
|
|
2840
|
+
return {
|
|
2841
|
+
reducerName: 'identityConsumableTransactions'
|
|
2842
|
+
};
|
|
2843
|
+
}],
|
|
2844
|
+
CLEARDATA: [function (payload) {
|
|
2845
|
+
return payload;
|
|
2846
|
+
}, function () {
|
|
2847
|
+
return {
|
|
2848
|
+
reducerName: 'identityConsumableTransactions'
|
|
2849
|
+
};
|
|
2850
|
+
}],
|
|
2851
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
2852
|
+
return payload;
|
|
2853
|
+
}, function () {
|
|
2854
|
+
return {
|
|
2855
|
+
reducerName: 'identityConsumableTransactions'
|
|
2856
|
+
};
|
|
2857
|
+
}]
|
|
2858
|
+
}
|
|
2859
|
+
},
|
|
2821
2860
|
identityContactMethod: {
|
|
2822
2861
|
get: {
|
|
2823
2862
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -399,6 +399,17 @@ Object.keys(_useFetchidentityConsumable).forEach(function (key) {
|
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
|
+
var _useFetchidentityConsumableTransactions = require("./useFetchidentityConsumableTransactions");
|
|
403
|
+
Object.keys(_useFetchidentityConsumableTransactions).forEach(function (key) {
|
|
404
|
+
if (key === "default" || key === "__esModule") return;
|
|
405
|
+
if (key in exports && exports[key] === _useFetchidentityConsumableTransactions[key]) return;
|
|
406
|
+
Object.defineProperty(exports, key, {
|
|
407
|
+
enumerable: true,
|
|
408
|
+
get: function get() {
|
|
409
|
+
return _useFetchidentityConsumableTransactions[key];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
402
413
|
var _useFetchidentityContactMethod = require("./useFetchidentityContactMethod");
|
|
403
414
|
Object.keys(_useFetchidentityContactMethod).forEach(function (key) {
|
|
404
415
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchIdentityConsumableTransactions = 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 _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); }
|
|
18
|
+
var useFetchIdentityConsumableTransactions = exports.useFetchIdentityConsumableTransactions = function useFetchIdentityConsumableTransactions(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIdentityConsumableTransactionsEntityData);
|
|
21
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
22
|
+
var _props$queryParams = props.queryParams,
|
|
23
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.identityConsumableTransactions.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.identityConsumableTransactions.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -45,6 +45,7 @@ var rootReducer = {
|
|
|
45
45
|
identityActivity: (0, _createNamedReducer["default"])('identityActivity'),
|
|
46
46
|
identityClassification: (0, _createNamedReducer["default"])('identityClassification'),
|
|
47
47
|
identityConsumable: (0, _createNamedReducer["default"])('identityConsumable'),
|
|
48
|
+
identityConsumableTransactions: (0, _createNamedReducer["default"])('identityConsumableTransactions'),
|
|
48
49
|
identityContactMethod: (0, _createNamedReducer["default"])('identityContactMethod'),
|
|
49
50
|
contactMethod: (0, _createNamedReducer["default"])('contactMethod'),
|
|
50
51
|
identityContactMethodAddress: (0, _createNamedReducer["default"])('identityContactMethodAddress'),
|