primary_care_admin_binder 0.1.149 → 0.1.150
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 +63 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15302,6 +15302,18 @@ var masterQuery$7 = {
|
|
|
15302
15302
|
activestatus: true
|
|
15303
15303
|
}
|
|
15304
15304
|
};
|
|
15305
|
+
},
|
|
15306
|
+
speciality_data: function speciality_data() {
|
|
15307
|
+
return {
|
|
15308
|
+
db_name: _dbName,
|
|
15309
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15310
|
+
filter: {
|
|
15311
|
+
type: "SPECIALTY",
|
|
15312
|
+
code: "",
|
|
15313
|
+
status: "true",
|
|
15314
|
+
sortField: "display"
|
|
15315
|
+
}
|
|
15316
|
+
};
|
|
15305
15317
|
}
|
|
15306
15318
|
};
|
|
15307
15319
|
|
|
@@ -16087,6 +16099,46 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
|
|
|
16087
16099
|
}
|
|
16088
16100
|
}, _callee10, null, [[1, 3]]);
|
|
16089
16101
|
})));
|
|
16102
|
+
var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
16103
|
+
var _ref24,
|
|
16104
|
+
rejectWithValue,
|
|
16105
|
+
data_arr,
|
|
16106
|
+
arry,
|
|
16107
|
+
_args11 = arguments,
|
|
16108
|
+
_t11;
|
|
16109
|
+
return _regenerator().w(function (_context11) {
|
|
16110
|
+
while (1) switch (_context11.p = _context11.n) {
|
|
16111
|
+
case 0:
|
|
16112
|
+
_ref24 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
16113
|
+
_context11.p = 1;
|
|
16114
|
+
_context11.n = 2;
|
|
16115
|
+
return fetchData({
|
|
16116
|
+
body: JSON.stringify(masterQuery$7.speciality_data())
|
|
16117
|
+
}, __baseUrl__$1);
|
|
16118
|
+
case 2:
|
|
16119
|
+
data_arr = _context11.v;
|
|
16120
|
+
arry = [];
|
|
16121
|
+
_context11.n = 3;
|
|
16122
|
+
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
16123
|
+
var _val$display2;
|
|
16124
|
+
arry.push(_objectSpread2({
|
|
16125
|
+
value: (_val$display2 = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display2 !== void 0 ? _val$display2 : "",
|
|
16126
|
+
label: val._id
|
|
16127
|
+
}, val));
|
|
16128
|
+
});
|
|
16129
|
+
case 3:
|
|
16130
|
+
return _context11.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16131
|
+
data: arry
|
|
16132
|
+
}));
|
|
16133
|
+
case 4:
|
|
16134
|
+
_context11.p = 4;
|
|
16135
|
+
_t11 = _context11.v;
|
|
16136
|
+
return _context11.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
16137
|
+
message: _t11.message
|
|
16138
|
+
})));
|
|
16139
|
+
}
|
|
16140
|
+
}, _callee11, null, [[1, 4]]);
|
|
16141
|
+
})));
|
|
16090
16142
|
var locationMasterSlice = createSlice({
|
|
16091
16143
|
name: "locationMasterAPISlice",
|
|
16092
16144
|
initialState: {
|
|
@@ -16101,7 +16153,8 @@ var locationMasterSlice = createSlice({
|
|
|
16101
16153
|
location_masters_isd: _objectSpread2({}, defaultState.List),
|
|
16102
16154
|
location_masters_use: _objectSpread2({}, defaultState.List),
|
|
16103
16155
|
location_masters_priority: _objectSpread2({}, defaultState.List),
|
|
16104
|
-
locationmasterbyid: _objectSpread2({}, defaultState.List)
|
|
16156
|
+
locationmasterbyid: _objectSpread2({}, defaultState.List),
|
|
16157
|
+
speciality_data: _objectSpread2({}, defaultState.List)
|
|
16105
16158
|
},
|
|
16106
16159
|
extraReducers: (_extraReducers$x = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTERS_ENTITYTYPE.fulfilled, function (state, action) {
|
|
16107
16160
|
state.location_masters_entitytype.loading = false, state.location_masters_entitytype.error = false, state.location_masters_entitytype = action.payload;
|
|
@@ -16163,7 +16216,7 @@ var locationMasterSlice = createSlice({
|
|
|
16163
16216
|
state.location_masters_use.loading = true, state.location_masters_use.error = false, state.location_masters_use.loading = true;
|
|
16164
16217
|
}), LOCATION_MASTER_USE.rejected, function (state, action) {
|
|
16165
16218
|
state.location_masters_use.loading = false, state.location_masters_use.error = true, state.location_masters_use = action.payload;
|
|
16166
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16219
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16167
16220
|
state.location_masters_priority.loading = false, state.location_masters_priority.error = false, state.location_masters_priority = action.payload;
|
|
16168
16221
|
}), LOCATION_MASTER_PRIORITY.pending, function (state, action) {
|
|
16169
16222
|
state.location_masters_priority.loading = true, state.location_masters_priority.error = false, state.location_masters_priority.loading = true;
|
|
@@ -16175,6 +16228,12 @@ var locationMasterSlice = createSlice({
|
|
|
16175
16228
|
state.locationmasterbyid.loading = true, state.locationmasterbyid.error = false, state.locationmasterbyid.loading = true;
|
|
16176
16229
|
}), LOCATION_MASTER_GET_BY_ID.rejected, function (state, action) {
|
|
16177
16230
|
state.locationmasterbyid.loading = false, state.locationmasterbyid.error = true, state.locationmasterbyid = action.payload;
|
|
16231
|
+
}), SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
16232
|
+
state.speciality_data.loading = false, state.speciality_data.error = false, state.speciality_data = action.payload;
|
|
16233
|
+
}), SPECIALITY_DATA.pending, function (state, action) {
|
|
16234
|
+
state.speciality_data.loading = true, state.speciality_data.error = false, state.speciality_data.loading = true;
|
|
16235
|
+
}), SPECIALITY_DATA.rejected, function (state, action) {
|
|
16236
|
+
state.speciality_data.loading = false, state.speciality_data.error = true, state.speciality_data = action.payload;
|
|
16178
16237
|
}))
|
|
16179
16238
|
});
|
|
16180
16239
|
var locationMasterActions = {
|
|
@@ -16189,7 +16248,8 @@ var locationMasterActions = {
|
|
|
16189
16248
|
LOCATION_MASTER_ISD: LOCATION_MASTER_ISD,
|
|
16190
16249
|
LOCATION_MASTER_USE: LOCATION_MASTER_USE,
|
|
16191
16250
|
LOCATION_MASTER_PRIORITY: LOCATION_MASTER_PRIORITY,
|
|
16192
|
-
LOCATION_MASTER_GET_BY_ID: LOCATION_MASTER_GET_BY_ID
|
|
16251
|
+
LOCATION_MASTER_GET_BY_ID: LOCATION_MASTER_GET_BY_ID,
|
|
16252
|
+
SPECIALITY_DATA: SPECIALITY_DATA
|
|
16193
16253
|
};
|
|
16194
16254
|
var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
16195
16255
|
|