vineanova-redux-artifacts 1.119.276 → 1.119.277
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/useFetchinvoiceLine.js +38 -0
- package/dist/hooks/useFetchinvoiceLines.js +38 -0
- package/dist/reducers/index.js +2 -0
- package/dist/sagas/vineaNovaApi.sagas.js +1303 -1213
- package/dist/selectors/index.js +22 -0
- package/dist/selectors/invoiceLineSelector.js +57 -0
- package/dist/selectors/invoiceLinesSelector.js +57 -0
- package/dist/services/apiServices.js +1017 -944
- package/package.json +1 -1
- package/src/actions/commonActions.js +18 -0
- package/src/hooks/index.js +2 -0
- package/src/hooks/useFetchinvoiceLine.js +38 -0
- package/src/hooks/useFetchinvoiceLines.js +38 -0
- package/src/reducers/index.js +2 -0
- package/src/sagas/vineaNovaApi.sagas.js +64 -0
- package/src/selectors/index.js +2 -0
- package/src/selectors/invoiceLineSelector.js +62 -0
- package/src/selectors/invoiceLinesSelector.js +62 -0
- package/src/services/apiServices.js +47 -0
package/CHANGELOG.md
CHANGED
|
@@ -5844,6 +5844,84 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5844
5844
|
}]
|
|
5845
5845
|
}
|
|
5846
5846
|
},
|
|
5847
|
+
invoiceLines: {
|
|
5848
|
+
get: {
|
|
5849
|
+
REQUEST: [function (payload) {
|
|
5850
|
+
return payload;
|
|
5851
|
+
}, function () {
|
|
5852
|
+
return {
|
|
5853
|
+
reducerName: 'invoiceLines'
|
|
5854
|
+
};
|
|
5855
|
+
}],
|
|
5856
|
+
RECEIVE: [function (payload) {
|
|
5857
|
+
return payload;
|
|
5858
|
+
}, function () {
|
|
5859
|
+
return {
|
|
5860
|
+
reducerName: 'invoiceLines'
|
|
5861
|
+
};
|
|
5862
|
+
}],
|
|
5863
|
+
ERROR: [function (payload) {
|
|
5864
|
+
return payload;
|
|
5865
|
+
}, function () {
|
|
5866
|
+
return {
|
|
5867
|
+
reducerName: 'invoiceLines'
|
|
5868
|
+
};
|
|
5869
|
+
}],
|
|
5870
|
+
CLEARDATA: [function (payload) {
|
|
5871
|
+
return payload;
|
|
5872
|
+
}, function () {
|
|
5873
|
+
return {
|
|
5874
|
+
reducerName: 'invoiceLines'
|
|
5875
|
+
};
|
|
5876
|
+
}],
|
|
5877
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5878
|
+
return payload;
|
|
5879
|
+
}, function () {
|
|
5880
|
+
return {
|
|
5881
|
+
reducerName: 'invoiceLines'
|
|
5882
|
+
};
|
|
5883
|
+
}]
|
|
5884
|
+
}
|
|
5885
|
+
},
|
|
5886
|
+
invoiceLine: {
|
|
5887
|
+
put: {
|
|
5888
|
+
REQUEST: [function (payload) {
|
|
5889
|
+
return payload;
|
|
5890
|
+
}, function () {
|
|
5891
|
+
return {
|
|
5892
|
+
reducerName: 'invoiceLine'
|
|
5893
|
+
};
|
|
5894
|
+
}],
|
|
5895
|
+
RECEIVE: [function (payload) {
|
|
5896
|
+
return payload;
|
|
5897
|
+
}, function () {
|
|
5898
|
+
return {
|
|
5899
|
+
reducerName: 'invoiceLine'
|
|
5900
|
+
};
|
|
5901
|
+
}],
|
|
5902
|
+
ERROR: [function (payload) {
|
|
5903
|
+
return payload;
|
|
5904
|
+
}, function () {
|
|
5905
|
+
return {
|
|
5906
|
+
reducerName: 'invoiceLine'
|
|
5907
|
+
};
|
|
5908
|
+
}],
|
|
5909
|
+
CLEARDATA: [function (payload) {
|
|
5910
|
+
return payload;
|
|
5911
|
+
}, function () {
|
|
5912
|
+
return {
|
|
5913
|
+
reducerName: 'invoiceLine'
|
|
5914
|
+
};
|
|
5915
|
+
}],
|
|
5916
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5917
|
+
return payload;
|
|
5918
|
+
}, function () {
|
|
5919
|
+
return {
|
|
5920
|
+
reducerName: 'invoiceLine'
|
|
5921
|
+
};
|
|
5922
|
+
}]
|
|
5923
|
+
}
|
|
5924
|
+
},
|
|
5847
5925
|
invoiceBatches: {
|
|
5848
5926
|
get: {
|
|
5849
5927
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -762,6 +762,28 @@ Object.keys(_useFetchimportSheets).forEach(function (key) {
|
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
});
|
|
765
|
+
var _useFetchinvoiceLines = require("./useFetchinvoiceLines");
|
|
766
|
+
Object.keys(_useFetchinvoiceLines).forEach(function (key) {
|
|
767
|
+
if (key === "default" || key === "__esModule") return;
|
|
768
|
+
if (key in exports && exports[key] === _useFetchinvoiceLines[key]) return;
|
|
769
|
+
Object.defineProperty(exports, key, {
|
|
770
|
+
enumerable: true,
|
|
771
|
+
get: function get() {
|
|
772
|
+
return _useFetchinvoiceLines[key];
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
});
|
|
776
|
+
var _useFetchinvoiceLine = require("./useFetchinvoiceLine");
|
|
777
|
+
Object.keys(_useFetchinvoiceLine).forEach(function (key) {
|
|
778
|
+
if (key === "default" || key === "__esModule") return;
|
|
779
|
+
if (key in exports && exports[key] === _useFetchinvoiceLine[key]) return;
|
|
780
|
+
Object.defineProperty(exports, key, {
|
|
781
|
+
enumerable: true,
|
|
782
|
+
get: function get() {
|
|
783
|
+
return _useFetchinvoiceLine[key];
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
});
|
|
765
787
|
var _useFetchinvoiceBatches = require("./useFetchinvoiceBatches");
|
|
766
788
|
Object.keys(_useFetchinvoiceBatches).forEach(function (key) {
|
|
767
789
|
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.useFetchInvoiceLine = 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 useFetchInvoiceLine = exports.useFetchInvoiceLine = function useFetchInvoiceLine(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getInvoiceLineEntityData);
|
|
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.invoiceLine.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLine.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchInvoiceLines = 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 useFetchInvoiceLines = exports.useFetchInvoiceLines = function useFetchInvoiceLines(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getInvoiceLinesEntityData);
|
|
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.invoiceLines.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLines.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -78,6 +78,8 @@ var rootReducer = {
|
|
|
78
78
|
identityVineyardBlockRow: (0, _createNamedReducer["default"])('identityVineyardBlockRow'),
|
|
79
79
|
importTypeFilters: (0, _createNamedReducer["default"])('importTypeFilters'),
|
|
80
80
|
importSheets: (0, _createNamedReducer["default"])('importSheets'),
|
|
81
|
+
invoiceLines: (0, _createNamedReducer["default"])('invoiceLines'),
|
|
82
|
+
invoiceLine: (0, _createNamedReducer["default"])('invoiceLine'),
|
|
81
83
|
invoiceBatches: (0, _createNamedReducer["default"])('invoiceBatches'),
|
|
82
84
|
invoiceJobs: (0, _createNamedReducer["default"])('invoiceJobs'),
|
|
83
85
|
draftInvoiceJobs: (0, _createNamedReducer["default"])('draftInvoiceJobs'),
|