vineanova-redux-artifacts 1.119.104 → 1.119.106
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/useFetchnewLoginEventLog.js +39 -0
- package/dist/reducers/index.js +1 -0
- package/dist/sagas/vineaNovaApi.sagas.js +1386 -1341
- package/dist/selectors/index.js +11 -0
- package/dist/selectors/newLoginEventLogSelector.js +57 -0
- package/dist/services/apiServices.js +1059 -1022
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useFetchnewLoginEventLog.js +38 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +32 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/newLoginEventLogSelector.js +62 -0
- package/src/services/apiServices.js +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -1641,6 +1641,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
1641
1641
|
}]
|
|
1642
1642
|
}
|
|
1643
1643
|
},
|
|
1644
|
+
newLoginEventLog: {
|
|
1645
|
+
post: {
|
|
1646
|
+
REQUEST: [function (payload) {
|
|
1647
|
+
return payload;
|
|
1648
|
+
}, function () {
|
|
1649
|
+
return {
|
|
1650
|
+
reducerName: 'newLoginEventLog'
|
|
1651
|
+
};
|
|
1652
|
+
}],
|
|
1653
|
+
RECEIVE: [function (payload) {
|
|
1654
|
+
return payload;
|
|
1655
|
+
}, function () {
|
|
1656
|
+
return {
|
|
1657
|
+
reducerName: 'newLoginEventLog'
|
|
1658
|
+
};
|
|
1659
|
+
}],
|
|
1660
|
+
ERROR: [function (payload) {
|
|
1661
|
+
return payload;
|
|
1662
|
+
}, function () {
|
|
1663
|
+
return {
|
|
1664
|
+
reducerName: 'newLoginEventLog'
|
|
1665
|
+
};
|
|
1666
|
+
}],
|
|
1667
|
+
CLEARDATA: [function (payload) {
|
|
1668
|
+
return payload;
|
|
1669
|
+
}, function () {
|
|
1670
|
+
return {
|
|
1671
|
+
reducerName: 'newLoginEventLog'
|
|
1672
|
+
};
|
|
1673
|
+
}],
|
|
1674
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
1675
|
+
return payload;
|
|
1676
|
+
}, function () {
|
|
1677
|
+
return {
|
|
1678
|
+
reducerName: 'newLoginEventLog'
|
|
1679
|
+
};
|
|
1680
|
+
}]
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1644
1683
|
demoExcelData: {
|
|
1645
1684
|
get: {
|
|
1646
1685
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -234,6 +234,17 @@ Object.keys(_useFetcheventLogStatus).forEach(function (key) {
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
+
var _useFetchnewLoginEventLog = require("./useFetchnewLoginEventLog");
|
|
238
|
+
Object.keys(_useFetchnewLoginEventLog).forEach(function (key) {
|
|
239
|
+
if (key === "default" || key === "__esModule") return;
|
|
240
|
+
if (key in exports && exports[key] === _useFetchnewLoginEventLog[key]) return;
|
|
241
|
+
Object.defineProperty(exports, key, {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function get() {
|
|
244
|
+
return _useFetchnewLoginEventLog[key];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
237
248
|
var _useFetchdemoExcelData = require("./useFetchdemoExcelData");
|
|
238
249
|
Object.keys(_useFetchdemoExcelData).forEach(function (key) {
|
|
239
250
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchNewLoginEventLog = 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 useFetchNewLoginEventLog = exports.useFetchNewLoginEventLog = function useFetchNewLoginEventLog(props) {
|
|
20
|
+
// selectors
|
|
21
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getNewLoginEventLogEntityData);
|
|
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.newLoginEventLog.get.request({
|
|
27
|
+
queryParams: _objectSpread({}, queryParams)
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
var useQuery = function useQuery(queryParams) {
|
|
31
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.newLoginEventLog.get.request({
|
|
32
|
+
queryParams: _objectSpread({}, queryParams)
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
data: data,
|
|
37
|
+
useQuery: useQuery
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var rootReducer = {
|
|
|
30
30
|
triggerSensorSummaryDataSync: (0, _createNamedReducer["default"])('triggerSensorSummaryDataSync'),
|
|
31
31
|
eventLog: (0, _createNamedReducer["default"])('eventLog'),
|
|
32
32
|
eventLogStatus: (0, _createNamedReducer["default"])('eventLogStatus'),
|
|
33
|
+
newLoginEventLog: (0, _createNamedReducer["default"])('newLoginEventLog'),
|
|
33
34
|
demoExcelData: (0, _createNamedReducer["default"])('demoExcelData'),
|
|
34
35
|
healthcheck: (0, _createNamedReducer["default"])('healthcheck'),
|
|
35
36
|
identity: (0, _createNamedReducer["default"])('identity'),
|