primary_care_admin_binder 0.0.53 → 0.0.54

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +78 -6
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -28190,7 +28190,7 @@ var slotAvailabilityApiActions = {
28190
28190
  READ_SLOT: READ_SLOT,
28191
28191
  SLOT_AVAILABILITY: SLOT_AVAILABILITY
28192
28192
  };
28193
- var appointmentApiSlice = slotAvailabilityApiSlice.reducer;
28193
+ var slotAvailabilityApiSlice$1 = slotAvailabilityApiSlice.reducer;
28194
28194
 
28195
28195
  var query = {
28196
28196
  modifyStatusAppointment: function modifyStatusAppointment(data) {
@@ -28417,14 +28417,78 @@ var APPOINTMENT_MODIFY_STATUS = createAsyncThunk("appointmentApiSlice/modifyStat
28417
28417
  }
28418
28418
  }
28419
28419
  }, _callee4, null, [[2, 9]]);
28420
+ }))); // REASON_FOR_APPT_CANCEL_MODIFY
28421
+
28422
+ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/getReasonForApptCancelModify", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
28423
+ var payload,
28424
+ _ref10,
28425
+ rejectWithValue,
28426
+ body,
28427
+ data,
28428
+ returnData,
28429
+ _data$result,
28430
+ _args5 = arguments;
28431
+
28432
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
28433
+ while (1) {
28434
+ switch (_context5.prev = _context5.next) {
28435
+ case 0:
28436
+ payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
28437
+ _ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
28438
+ _context5.prev = 2;
28439
+ body = {
28440
+ db_name: dbName,
28441
+ entity: "CodingMaster",
28442
+ filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
28443
+ return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
28444
+ };
28445
+ _context5.next = 6;
28446
+ return fetchData({
28447
+ body: JSON.stringify(body)
28448
+ }, __readDocumentUrl__);
28449
+
28450
+ case 6:
28451
+ data = _context5.sent;
28452
+ returnData = [];
28453
+
28454
+ if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
28455
+ data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
28456
+ returnData.push({
28457
+ label: _ === null || _ === void 0 ? void 0 : _.display,
28458
+ value: _ === null || _ === void 0 ? void 0 : _.id,
28459
+ id: _ === null || _ === void 0 ? void 0 : _.id,
28460
+ code: _ === null || _ === void 0 ? void 0 : _.code,
28461
+ _id: _ === null || _ === void 0 ? void 0 : _._id
28462
+ });
28463
+ });
28464
+ }
28465
+
28466
+ return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
28467
+ data: returnData
28468
+ }));
28469
+
28470
+ case 12:
28471
+ _context5.prev = 12;
28472
+ _context5.t0 = _context5["catch"](2);
28473
+ return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
28474
+ message: _context5.t0.message
28475
+ })));
28476
+
28477
+ case 15:
28478
+ case "end":
28479
+ return _context5.stop();
28480
+ }
28481
+ }
28482
+ }, _callee5, null, [[2, 12]]);
28420
28483
  })));
28421
- createSlice({
28484
+ var appointmentApiSlice = createSlice({
28422
28485
  name: "appointmentApiSlice",
28423
28486
  initialState: {
28424
28487
  readAppointment: _objectSpread2({}, defaultState.List),
28425
28488
  deleteAppointment: _objectSpread2({}, defaultState.List),
28426
28489
  updateAppointment: _objectSpread2({}, defaultState.List),
28427
- modifyStatusAppoinment: _objectSpread2({}, defaultState.List)
28490
+ modifyStatusAppoinment: _objectSpread2({}, defaultState.List),
28491
+ reasonForApptCancelModify: _objectSpread2({}, defaultState.List)
28428
28492
  },
28429
28493
  extraReducers: (_extraReducers = {}, _defineProperty(_extraReducers, APPOINTMENT_READ.fulfilled, function (state, action) {
28430
28494
  state.readAppointment.loading = false, state.readAppointment.error = false, state.readAppointment = action.payload;
@@ -28450,14 +28514,22 @@ createSlice({
28450
28514
  state.modifyStatusAppoinment.loading = true, state.modifyStatusAppoinment.error = false, state.modifyStatusAppoinment.loading = true;
28451
28515
  }), _defineProperty(_extraReducers, APPOINTMENT_MODIFY_STATUS.rejected, function (state, action) {
28452
28516
  state.modifyStatusAppoinment.loading = false, state.modifyStatusAppoinment.error = true, state.modifyStatusAppoinment = action.payload;
28517
+ }), _defineProperty(_extraReducers, REASON_FOR_APPT_CANCEL_MODIFY.fulfilled, function (state, action) {
28518
+ state.reasonForApptCancelModify.loading = false, state.reasonForApptCancelModify.error = false, state.reasonForApptCancelModify = action.payload;
28519
+ }), _defineProperty(_extraReducers, REASON_FOR_APPT_CANCEL_MODIFY.pending, function (state, action) {
28520
+ state.reasonForApptCancelModify.loading = true, state.reasonForApptCancelModify.error = false, state.reasonForApptCancelModify.loading = true;
28521
+ }), _defineProperty(_extraReducers, REASON_FOR_APPT_CANCEL_MODIFY.rejected, function (state, action) {
28522
+ state.reasonForApptCancelModify.loading = false, state.reasonForApptCancelModify.error = true, state.reasonForApptCancelModify = action.payload;
28453
28523
  }), _extraReducers)
28454
28524
  });
28455
28525
  var appointmentApiActions = {
28456
28526
  APPOINTMENT_READ: APPOINTMENT_READ,
28457
28527
  APPOINTMENT_DELETE: APPOINTMENT_DELETE,
28458
28528
  APPOINTMENT_UPDATE: APPOINTMENT_UPDATE,
28459
- APPOINTMENT_MODIFY_STATUS: APPOINTMENT_MODIFY_STATUS
28529
+ APPOINTMENT_MODIFY_STATUS: APPOINTMENT_MODIFY_STATUS,
28530
+ REASON_FOR_APPT_CANCEL_MODIFY: REASON_FOR_APPT_CANCEL_MODIFY
28460
28531
  };
28532
+ var appointmentApiSlice$1 = appointmentApiSlice.reducer;
28461
28533
 
28462
28534
  var practitionerActions = _objectSpread2({}, practitioner_role_actions);
28463
28535
  var locationActions = _objectSpread2({}, location_master_actions);
@@ -28503,8 +28575,8 @@ var index = combineReducers({
28503
28575
  scheduleManagementSlice: scheduleManagementSlice$1,
28504
28576
  organizationConfigSlice: organizationConfigSlice$1,
28505
28577
  organizationConfigMasterSlice: organizationConfigMasterSlice$1,
28506
- slotAvailabilityApiSlice: appointmentApiSlice,
28507
- appointmentApiSlice: appointmentApiSlice
28578
+ slotAvailabilityApiSlice: slotAvailabilityApiSlice$1,
28579
+ appointmentApiSlice: appointmentApiSlice$1
28508
28580
  });
28509
28581
 
28510
28582
  var actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, practitionerActions), locationActions), consultActions), ordertypeActions), ordernatureActions), availabilityManagementActions), pendingRescheduleListMasters), organizationMasterActions), signInActionsCall), slotAvailabilityApiActions), appointmentApiActions), organizationConfiActions), organizationConfigMasterAction);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",