primarycare-binder 1.1.92 → 1.1.93
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/index.cjs.js +2 -137
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9695,117 +9695,6 @@ var GET_COUNTRY_CODE_LIST = createAsyncThunk("authSlice/country_code_list", /*#_
|
|
|
9695
9695
|
}
|
|
9696
9696
|
}, _callee16, null, [[2, 12]]);
|
|
9697
9697
|
})));
|
|
9698
|
-
var GET_FACILITY_BY_USERID = createAsyncThunk("authSlice/getFacilityByUserid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
9699
|
-
var payload,
|
|
9700
|
-
_ref29,
|
|
9701
|
-
rejectWithValue,
|
|
9702
|
-
_data$result$0$OrgID$,
|
|
9703
|
-
_data$result,
|
|
9704
|
-
_data$result$,
|
|
9705
|
-
_data$result$$OrgID,
|
|
9706
|
-
_payload$username3,
|
|
9707
|
-
username,
|
|
9708
|
-
queries,
|
|
9709
|
-
data,
|
|
9710
|
-
dat,
|
|
9711
|
-
_args17 = arguments;
|
|
9712
|
-
|
|
9713
|
-
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
9714
|
-
while (1) {
|
|
9715
|
-
switch (_context17.prev = _context17.next) {
|
|
9716
|
-
case 0:
|
|
9717
|
-
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
9718
|
-
_ref29 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
|
|
9719
|
-
_context17.prev = 2;
|
|
9720
|
-
_payload$username3 = payload.username, username = _payload$username3 === void 0 ? "" : _payload$username3;
|
|
9721
|
-
queries = {
|
|
9722
|
-
"db_name": dbName,
|
|
9723
|
-
"entity": "Person",
|
|
9724
|
-
"filter": "document(document(Person.telecom)[*].system)[*].code == to_Array('email') && document(Person.telecom)[*].value==to_array('".concat(username, "') && Person.activestatus==true"),
|
|
9725
|
-
"return_fields": "keep(Person,'_id','_key','OrgID','Id')"
|
|
9726
|
-
};
|
|
9727
|
-
_context17.next = 7;
|
|
9728
|
-
return fetchData$3({
|
|
9729
|
-
body: JSON.stringify(queries)
|
|
9730
|
-
}, __readDocumentUrl__);
|
|
9731
|
-
|
|
9732
|
-
case 7:
|
|
9733
|
-
data = _context17.sent;
|
|
9734
|
-
dat = (_data$result$0$OrgID$ = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : (_data$result$ = _data$result[0]) === null || _data$result$ === void 0 ? void 0 : (_data$result$$OrgID = _data$result$.OrgID) === null || _data$result$$OrgID === void 0 ? void 0 : _data$result$$OrgID[0]) !== null && _data$result$0$OrgID$ !== void 0 ? _data$result$0$OrgID$ : "";
|
|
9735
|
-
debugger;
|
|
9736
|
-
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9737
|
-
data: dat
|
|
9738
|
-
}));
|
|
9739
|
-
|
|
9740
|
-
case 13:
|
|
9741
|
-
_context17.prev = 13;
|
|
9742
|
-
_context17.t0 = _context17["catch"](2);
|
|
9743
|
-
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9744
|
-
message: _context17.t0.message
|
|
9745
|
-
})));
|
|
9746
|
-
|
|
9747
|
-
case 16:
|
|
9748
|
-
case "end":
|
|
9749
|
-
return _context17.stop();
|
|
9750
|
-
}
|
|
9751
|
-
}
|
|
9752
|
-
}, _callee17, null, [[2, 13]]);
|
|
9753
|
-
})));
|
|
9754
|
-
var GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY = createAsyncThunk("authSlice/getIsNurseTriageRequiredByFacility", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
9755
|
-
var payload,
|
|
9756
|
-
_ref31,
|
|
9757
|
-
rejectWithValue,
|
|
9758
|
-
_data$result2,
|
|
9759
|
-
_data$result2$,
|
|
9760
|
-
_payload$facilityId,
|
|
9761
|
-
facilityId,
|
|
9762
|
-
queries,
|
|
9763
|
-
data,
|
|
9764
|
-
res,
|
|
9765
|
-
_args18 = arguments;
|
|
9766
|
-
|
|
9767
|
-
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
9768
|
-
while (1) {
|
|
9769
|
-
switch (_context18.prev = _context18.next) {
|
|
9770
|
-
case 0:
|
|
9771
|
-
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
9772
|
-
_ref31 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
|
|
9773
|
-
_context18.prev = 2;
|
|
9774
|
-
_payload$facilityId = payload.facilityId, facilityId = _payload$facilityId === void 0 ? "" : _payload$facilityId;
|
|
9775
|
-
debugger;
|
|
9776
|
-
queries = {
|
|
9777
|
-
"db_name": dbName,
|
|
9778
|
-
"entity": "EntityParametersSetup",
|
|
9779
|
-
"filter": "EntityParametersSetup.entityid=='".concat(facilityId, "' && document(EntityParametersSetup.parameterid).code=='ISNURSETRIAGEREQD'"),
|
|
9780
|
-
"return_fields": "EntityParametersSetup"
|
|
9781
|
-
};
|
|
9782
|
-
_context18.next = 8;
|
|
9783
|
-
return fetchData$3({
|
|
9784
|
-
body: JSON.stringify(queries)
|
|
9785
|
-
}, __readDocumentUrl__);
|
|
9786
|
-
|
|
9787
|
-
case 8:
|
|
9788
|
-
data = _context18.sent;
|
|
9789
|
-
res = (data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : (_data$result2$ = _data$result2[0]) === null || _data$result2$ === void 0 ? void 0 : _data$result2$.parametervalue) === "N" ? false : true;
|
|
9790
|
-
debugger;
|
|
9791
|
-
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9792
|
-
data: res
|
|
9793
|
-
}));
|
|
9794
|
-
|
|
9795
|
-
case 14:
|
|
9796
|
-
_context18.prev = 14;
|
|
9797
|
-
_context18.t0 = _context18["catch"](2);
|
|
9798
|
-
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9799
|
-
message: _context18.t0.message
|
|
9800
|
-
})));
|
|
9801
|
-
|
|
9802
|
-
case 17:
|
|
9803
|
-
case "end":
|
|
9804
|
-
return _context18.stop();
|
|
9805
|
-
}
|
|
9806
|
-
}
|
|
9807
|
-
}, _callee18, null, [[2, 14]]);
|
|
9808
|
-
})));
|
|
9809
9698
|
var authSlice = createSlice({
|
|
9810
9699
|
name: "authSlice",
|
|
9811
9700
|
initialState: {
|
|
@@ -9825,9 +9714,7 @@ var authSlice = createSlice({
|
|
|
9825
9714
|
changePassword: _objectSpread2({}, defaultState.Info),
|
|
9826
9715
|
tokenValidate: _objectSpread2({}, defaultState.Info),
|
|
9827
9716
|
refreshToken: _objectSpread2({}, defaultState.Info),
|
|
9828
|
-
country_code_list: _objectSpread2({}, defaultState.Info)
|
|
9829
|
-
getFacilityByUserid: _objectSpread2({}, defaultState.Info),
|
|
9830
|
-
getIsNurseTriageRequiredByFacility: _objectSpread2({}, defaultState.Info)
|
|
9717
|
+
country_code_list: _objectSpread2({}, defaultState.Info)
|
|
9831
9718
|
},
|
|
9832
9719
|
extraReducers: (_extraReducers$G = {}, _defineProperty(_extraReducers$G, REGISTER_USERS.fulfilled, function (state, action) {
|
|
9833
9720
|
var _action$payload;
|
|
@@ -9979,26 +9866,6 @@ var authSlice = createSlice({
|
|
|
9979
9866
|
var _action$payload30;
|
|
9980
9867
|
|
|
9981
9868
|
state.country_code_list = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
9982
|
-
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.fulfilled, function (state, action) {
|
|
9983
|
-
var _action$payload31;
|
|
9984
|
-
|
|
9985
|
-
state.getFacilityByUserid = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
9986
|
-
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.pending, function (state, action) {
|
|
9987
|
-
state.getFacilityByUserid.loading = true;
|
|
9988
|
-
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.rejected, function (state, action) {
|
|
9989
|
-
var _action$payload32;
|
|
9990
|
-
|
|
9991
|
-
state.getFacilityByUserid = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
9992
|
-
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.fulfilled, function (state, action) {
|
|
9993
|
-
var _action$payload33;
|
|
9994
|
-
|
|
9995
|
-
state.getIsNurseTriageRequiredByFacility = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
9996
|
-
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.pending, function (state, action) {
|
|
9997
|
-
state.getIsNurseTriageRequiredByFacility.loading = true;
|
|
9998
|
-
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.rejected, function (state, action) {
|
|
9999
|
-
var _action$payload34;
|
|
10000
|
-
|
|
10001
|
-
state.getIsNurseTriageRequiredByFacility = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
10002
9869
|
}), _extraReducers$G)
|
|
10003
9870
|
});
|
|
10004
9871
|
var authActions = {
|
|
@@ -10016,9 +9883,7 @@ var authActions = {
|
|
|
10016
9883
|
CHANGE_PASSWORD: CHANGE_PASSWORD,
|
|
10017
9884
|
TOKEN_VALIDATE: TOKEN_VALIDATE,
|
|
10018
9885
|
REFRESH_TOKEN: REFRESH_TOKEN,
|
|
10019
|
-
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST
|
|
10020
|
-
GET_FACILITY_BY_USERID: GET_FACILITY_BY_USERID,
|
|
10021
|
-
GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY: GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY
|
|
9886
|
+
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST
|
|
10022
9887
|
};
|
|
10023
9888
|
var authSlice$1 = authSlice.reducer;
|
|
10024
9889
|
|