vineanova-redux-artifacts 1.119.418 → 1.119.419
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/dist/actions/commonActions.js +39 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/useFetchdataConnectionSearch.js +50 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +1492 -1448
- package/dist/selectors/dataConnectionSearchSelector.js +57 -0
- package/dist/selectors/index.js +11 -0
- package/dist/services/apiServices.js +1579 -1544
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchdataConnectionSearch.js +53 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +32 -0
- package/src/selectors/dataConnectionSearchSelector.js +62 -0
- package/src/selectors/index.js +1 -0
- package/src/services/apiServices.js +23 -0
|
@@ -3886,6 +3886,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
3886
3886
|
}]
|
|
3887
3887
|
}
|
|
3888
3888
|
},
|
|
3889
|
+
dataConnectionSearch: {
|
|
3890
|
+
get: {
|
|
3891
|
+
REQUEST: [function (payload) {
|
|
3892
|
+
return payload;
|
|
3893
|
+
}, function () {
|
|
3894
|
+
return {
|
|
3895
|
+
reducerName: 'dataConnectionSearch'
|
|
3896
|
+
};
|
|
3897
|
+
}],
|
|
3898
|
+
RECEIVE: [function (payload) {
|
|
3899
|
+
return payload;
|
|
3900
|
+
}, function () {
|
|
3901
|
+
return {
|
|
3902
|
+
reducerName: 'dataConnectionSearch'
|
|
3903
|
+
};
|
|
3904
|
+
}],
|
|
3905
|
+
ERROR: [function (payload) {
|
|
3906
|
+
return payload;
|
|
3907
|
+
}, function () {
|
|
3908
|
+
return {
|
|
3909
|
+
reducerName: 'dataConnectionSearch'
|
|
3910
|
+
};
|
|
3911
|
+
}],
|
|
3912
|
+
CLEARDATA: [function (payload) {
|
|
3913
|
+
return payload;
|
|
3914
|
+
}, function () {
|
|
3915
|
+
return {
|
|
3916
|
+
reducerName: 'dataConnectionSearch'
|
|
3917
|
+
};
|
|
3918
|
+
}],
|
|
3919
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
3920
|
+
return payload;
|
|
3921
|
+
}, function () {
|
|
3922
|
+
return {
|
|
3923
|
+
reducerName: 'dataConnectionSearch'
|
|
3924
|
+
};
|
|
3925
|
+
}]
|
|
3926
|
+
}
|
|
3927
|
+
},
|
|
3889
3928
|
identity: {
|
|
3890
3929
|
get: {
|
|
3891
3930
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -575,6 +575,17 @@ Object.keys(_useFetchallIdentityDataConnectors).forEach(function (key) {
|
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
});
|
|
578
|
+
var _useFetchdataConnectionSearch = require("./useFetchdataConnectionSearch");
|
|
579
|
+
Object.keys(_useFetchdataConnectionSearch).forEach(function (key) {
|
|
580
|
+
if (key === "default" || key === "__esModule") return;
|
|
581
|
+
if (key in exports && exports[key] === _useFetchdataConnectionSearch[key]) return;
|
|
582
|
+
Object.defineProperty(exports, key, {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
get: function get() {
|
|
585
|
+
return _useFetchdataConnectionSearch[key];
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
});
|
|
578
589
|
var _useFetchidentity = require("./useFetchidentity");
|
|
579
590
|
Object.keys(_useFetchidentity).forEach(function (key) {
|
|
580
591
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchDataConnectionSearch = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
10
|
+
var _actions = require("../actions");
|
|
11
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
12
|
+
var cache;
|
|
13
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
21
|
+
var useFetchDataConnectionSearch = exports.useFetchDataConnectionSearch = function useFetchDataConnectionSearch(props) {
|
|
22
|
+
// selectors
|
|
23
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getDataConnectionSearchEntityData);
|
|
24
|
+
var entity = (0, _reactRedux.useSelector)(VineaNovaSelectors.getDataConnectionSearchEntityMeta);
|
|
25
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
26
|
+
var _props$queryParams = props.queryParams,
|
|
27
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
28
|
+
|
|
29
|
+
// Determine if we need to fetch: not loaded, has error, or empty data
|
|
30
|
+
var shouldFetch = !(entity !== null && entity !== void 0 && entity.isLoaded) || (entity === null || entity === void 0 ? void 0 : entity.hasError) || (0, _isEmpty["default"])(entity.data);
|
|
31
|
+
(0, _react.useEffect)(function () {
|
|
32
|
+
if (shouldFetch) {
|
|
33
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.dataConnectionSearch.get.request({
|
|
34
|
+
queryParams: _objectSpread({}, queryParams)
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
}, [shouldFetch, JSON.stringify(queryParams)]);
|
|
38
|
+
var useQuery = function useQuery(queryParams) {
|
|
39
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.dataConnectionSearch.get.request({
|
|
40
|
+
queryParams: _objectSpread({}, queryParams)
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
data: data,
|
|
45
|
+
useQuery: useQuery,
|
|
46
|
+
isLoading: entity === null || entity === void 0 ? void 0 : entity.isLoading,
|
|
47
|
+
hasError: entity === null || entity === void 0 ? void 0 : entity.hasError,
|
|
48
|
+
error: entity === null || entity === void 0 ? void 0 : entity.error
|
|
49
|
+
};
|
|
50
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -61,6 +61,7 @@ var rootReducer = {
|
|
|
61
61
|
identityCourse: (0, _createNamedReducer["default"])('identityCourse'),
|
|
62
62
|
identityDataConnector: (0, _createNamedReducer["default"])('identityDataConnector'),
|
|
63
63
|
allIdentityDataConnectors: (0, _createNamedReducer["default"])('allIdentityDataConnectors'),
|
|
64
|
+
dataConnectionSearch: (0, _createNamedReducer["default"])('dataConnectionSearch'),
|
|
64
65
|
identity: (0, _createNamedReducer["default"])('identity'),
|
|
65
66
|
identityDetails: (0, _createNamedReducer["default"])('identityDetails'),
|
|
66
67
|
identityStatus: (0, _createNamedReducer["default"])('identityStatus'),
|