primary_care_admin_binder 0.1.179 → 0.1.181

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 +242 -160
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8933,7 +8933,11 @@ var query_ids = {
8933
8933
  "geoCountryRead": "e2cb9d5c-3491-40da-8a5b-c8f90c39e286",
8934
8934
  "editGeoGraphicSingleRead": "be0b63d3-9d9a-46e3-8073-94a66c050541",
8935
8935
  "geoMasterParentCode": "063ee1f3-c2ea-4cb9-bcf5-75e434b7e583",
8936
- "schedule_line_day": "95931016-caf1-413c-8bf5-96f05c5709fb"
8936
+ "schedule_line_day": "95931016-caf1-413c-8bf5-96f05c5709fb",
8937
+ "holidaySinglereadqdm": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358",
8938
+ "holidayEntityreadqdm": "80ccd827-16da-42f5-ac4d-e94b25834229",
8939
+ "holidaySinglereadSelectedqdm": "184fb879-244f-495e-a1dd-31f5eae6faf7",
8940
+ "holiday_qdm": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f"
8937
8941
  };
8938
8942
 
8939
8943
  var codingMasterTypes = ["ALTERNATEIDTYPE", "RELATIONSHIP", "NAMEPREFIX", "NAMESUFFIX", "GENDER", "USE", "PRACTTYPE", "LANGUAGE", "SPECIALTY", "ORGTYPE", "CONTACTSYSTEM", "PRIORITY", "ADDRESSTYPE", "PRACTROLE", "POSITION", "EMPSTATUS", "MARITALSTATUS"];
@@ -8962,6 +8966,11 @@ var tables = {
8962
8966
  "GENERAL_MASTER": "CodingMaster",
8963
8967
  "ORGANIZATION_MASTER": "Organization"
8964
8968
  };
8969
+ var GMTYPE = {
8970
+ "HOLODAY_STATUS": "HOLIDAYSTATUS",
8971
+ "HOLIDAY_TYPE": "HOLIDAYTYPE",
8972
+ "HOLIDAY_WEEKDAYS": "WEEKDAYS"
8973
+ };
8965
8974
 
8966
8975
  var codingMasterFilter = function codingMasterFilter(type) {
8967
8976
  return {
@@ -12680,6 +12689,13 @@ var queries$n = {
12680
12689
  metadataId: metaDataId$1,
12681
12690
  metadata_dbname: metaDatadbName$1
12682
12691
  }, doc)];
12692
+ },
12693
+ locationtree: function locationtree() {
12694
+ return {
12695
+ appcode: dbName,
12696
+ requestid: "24f4da82-c4ae-40a4-b894-f7cf9dd398d1",
12697
+ filter: {}
12698
+ };
12683
12699
  }
12684
12700
  };
12685
12701
 
@@ -12701,12 +12717,27 @@ var dayslotlist = function dayslotlist(data) {
12701
12717
  var timeslotList = function timeslotList(data) {
12702
12718
  var timeslot_Lists = [];
12703
12719
  if (data && data.length > 0) {
12720
+ var hasValidTime = false;
12704
12721
  data.map(function (val) {
12705
- var timelot_obj = {
12706
- ovrOpeningtime: val.fromTime ? moment.utc(val.fromTime).valueOf() : null,
12707
- ovrClosingtime: val.toTime ? moment.utc(val.toTime).valueOf() : null
12708
- };
12709
- timeslot_Lists.push(timelot_obj);
12722
+ if (val.fromTime || val.toTime) {
12723
+ hasValidTime = true;
12724
+ var timelot_obj = {
12725
+ ovrOpeningtime: val.fromTime ? moment.utc(val.fromTime).valueOf() : null,
12726
+ ovrClosingtime: val.toTime ? moment.utc(val.toTime).valueOf() : null
12727
+ };
12728
+ timeslot_Lists.push(timelot_obj);
12729
+ }
12730
+ });
12731
+ if (!hasValidTime) {
12732
+ timeslot_Lists.push({
12733
+ ovrOpeningtime: moment().startOf("day").valueOf(),
12734
+ ovrClosingtime: moment().endOf("day").valueOf()
12735
+ });
12736
+ }
12737
+ } else {
12738
+ timeslot_Lists.push({
12739
+ ovrOpeningtime: moment().startOf("day").valueOf(),
12740
+ ovrClosingtime: moment().endOf("day").valueOf()
12710
12741
  });
12711
12742
  }
12712
12743
  return timeslot_Lists;
@@ -12796,6 +12827,7 @@ var generateJSON = function generateJSON(data, _key) {
12796
12827
  final_obj = {
12797
12828
  overridetype: "Single",
12798
12829
  ovrfromdate: val.selectDate ? getUtcTime(moment(val.selectDate)) : null,
12830
+ status: val.status || "Available",
12799
12831
  ovrtodate: 0,
12800
12832
  daysOfWeek: [{
12801
12833
  ovrDay: val.selectDate ? moment(val.selectDate).format("ddd") : "",
@@ -12807,6 +12839,7 @@ var generateJSON = function generateJSON(data, _key) {
12807
12839
  final_obj = {
12808
12840
  overridetype: "Multiple",
12809
12841
  ovrfromdate: val.fromDate ? getUtcTime(moment(val.fromDate)) : null,
12842
+ status: val.status || "Available",
12810
12843
  ovrtodate: val.toDate ? getUtcTime(moment(val.toDate)) : null,
12811
12844
  daysOfWeek: dayslotlist(val.daySlots)
12812
12845
  };
@@ -12852,7 +12885,7 @@ var generateJSON = function generateJSON(data, _key) {
12852
12885
  managingOrgEntityType: (_data$entityType$labe = data === null || data === void 0 || (_data$entityType = data.entityType) === null || _data$entityType === void 0 ? void 0 : _data$entityType.label) !== null && _data$entityType$labe !== void 0 ? _data$entityType$labe : null,
12853
12886
  formid: (_data$formid$label = (_data$formid = data.formid) === null || _data$formid === void 0 ? void 0 : _data$formid.label) !== null && _data$formid$label !== void 0 ? _data$formid$label : null,
12854
12887
  typeofcare: (_data$typeofcare$labe = (_data$typeofcare = data.typeofcare) === null || _data$typeofcare === void 0 ? void 0 : _data$typeofcare.label) !== null && _data$typeofcare$labe !== void 0 ? _data$typeofcare$labe : null,
12855
- clinicalInstruction: (_data$clinicalInstruc = data.clinicalInstruction) !== null && _data$clinicalInstruc !== void 0 ? _data$clinicalInstruc : "",
12888
+ clinicalInstruction: (_data$clinicalInstruc = data.clinicalInstruction) !== null && _data$clinicalInstruc !== void 0 ? _data$clinicalInstruc : [],
12856
12889
  workingdayyear: workingDayArr,
12857
12890
  workingdayyearoverride: overRideArr,
12858
12891
  clinicdetails: (_data$clinicDetails = data.clinicDetails) !== null && _data$clinicDetails !== void 0 ? _data$clinicDetails : "",
@@ -12901,14 +12934,14 @@ var LOCATION_READ = createAsyncThunk("locationApiSlice/locationlist", /*#__PURE_
12901
12934
  data = _context.v;
12902
12935
  arry = [];
12903
12936
  data.map(function (val) {
12904
- var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$managingOrgID, _val$managingOrgID2;
12937
+ var _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$locationType5, _val$locationType6, _val$managingOrgID, _val$managingOrgID2;
12905
12938
  arry.push({
12906
12939
  location_id: val.locationID,
12907
- location_type: val.locationType.length > 0 ? ((_val$locationType$ = val.locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.display) !== null ? (_val$locationType$2 = val.locationType[0]) === null || _val$locationType$2 === void 0 ? void 0 : _val$locationType$2.display : "-" : "-",
12908
- location_type_code: (_val$locationType = val.locationType) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType[0]) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType.coding) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType[0]) === null || _val$locationType === void 0 ? void 0 : _val$locationType.code,
12909
- location_type_name: (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2[0]) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2.coding) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2[0]) === null || _val$locationType2 === void 0 ? void 0 : _val$locationType2.Type,
12910
- location_type_id: (_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3[0]) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3.coding) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3[0]) === null || _val$locationType3 === void 0 ? void 0 : _val$locationType3._id,
12911
- location_type_key: (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4.coding) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 ? void 0 : _val$locationType4._key,
12940
+ location_type: val.locationType.length > 0 ? ((_val$locationType = val.locationType) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType[0]) === null || _val$locationType === void 0 ? void 0 : _val$locationType.display) !== null ? (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2[0]) === null || _val$locationType2 === void 0 ? void 0 : _val$locationType2.display : "-" : "-",
12941
+ location_type_code: (_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3[0]) === null || _val$locationType3 === void 0 ? void 0 : _val$locationType3.code,
12942
+ location_type_name: (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 ? void 0 : _val$locationType4.Type,
12943
+ location_type_id: (_val$locationType5 = val.locationType) === null || _val$locationType5 === void 0 || (_val$locationType5 = _val$locationType5[0]) === null || _val$locationType5 === void 0 ? void 0 : _val$locationType5._id,
12944
+ location_type_key: (_val$locationType6 = val.locationType) === null || _val$locationType6 === void 0 || (_val$locationType6 = _val$locationType6[0]) === null || _val$locationType6 === void 0 ? void 0 : _val$locationType6._key,
12912
12945
  long_description: val.longdesc,
12913
12946
  short_description: val.shortdesc,
12914
12947
  organization_name: (_val$managingOrgID = val.managingOrgID) === null || _val$managingOrgID === void 0 ? void 0 : _val$managingOrgID.name,
@@ -12916,7 +12949,7 @@ var LOCATION_READ = createAsyncThunk("locationApiSlice/locationlist", /*#__PURE_
12916
12949
  _key: val._key,
12917
12950
  id: val.id,
12918
12951
  _id: val._id,
12919
- status: val.status === "Active" ? true : false,
12952
+ status: val.status.toLowerCase() === "active" ? true : false,
12920
12953
  active_status: val.activestatus,
12921
12954
  totalCount: val === null || val === void 0 ? void 0 : val.TotalCount
12922
12955
  });
@@ -13008,10 +13041,40 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
13008
13041
  }
13009
13042
  }, _callee3, null, [[1, 3]]);
13010
13043
  })));
13044
+ var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
13045
+ var _ref8,
13046
+ rejectWithValue,
13047
+ data,
13048
+ _args4 = arguments,
13049
+ _t4;
13050
+ return _regenerator().w(function (_context4) {
13051
+ while (1) switch (_context4.p = _context4.n) {
13052
+ case 0:
13053
+ _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
13054
+ _context4.p = 1;
13055
+ _context4.n = 2;
13056
+ return fetchData({
13057
+ body: JSON.stringify(queries$n.locationtree())
13058
+ }, __baseUrl__$1);
13059
+ case 2:
13060
+ data = _context4.v;
13061
+ return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13062
+ data: data
13063
+ }));
13064
+ case 3:
13065
+ _context4.p = 3;
13066
+ _t4 = _context4.v;
13067
+ return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13068
+ message: _t4.message
13069
+ })));
13070
+ }
13071
+ }, _callee4, null, [[1, 3]]);
13072
+ })));
13011
13073
  var locationSlice = createSlice({
13012
13074
  name: "locationApiSlice",
13013
13075
  initialState: {
13014
13076
  location_list: _objectSpread2({}, defaultState.List),
13077
+ location_tree: _objectSpread2({}, defaultState.List),
13015
13078
  location_list_upsert: _objectSpread2({}, defaultState.List),
13016
13079
  location_insert: _objectSpread2({}, defaultState.List)
13017
13080
  },
@@ -13032,6 +13095,22 @@ var locationSlice = createSlice({
13032
13095
  state.location_list = action.payload;
13033
13096
  });
13034
13097
 
13098
+ // LOCATION MASTER TREE READ
13099
+ builder.addCase(LOCATION_TREE_READ.fulfilled, function (state, action) {
13100
+ state.location_tree.loading = false;
13101
+ state.location_tree.error = false;
13102
+ state.location_tree = action.payload;
13103
+ });
13104
+ builder.addCase(LOCATION_TREE_READ.pending, function (state) {
13105
+ state.location_tree.loading = true;
13106
+ state.location_tree.error = false;
13107
+ });
13108
+ builder.addCase(LOCATION_TREE_READ.rejected, function (state, action) {
13109
+ state.location_tree.loading = false;
13110
+ state.location_tree.error = true;
13111
+ state.location_tree = action.payload;
13112
+ });
13113
+
13035
13114
  // LOCATION MASTER STATUS CHANGE
13036
13115
  builder.addCase(LOCATION_LIST_UPSERT.fulfilled, function (state, action) {
13037
13116
  state.location_list_upsert.loading = false;
@@ -13067,6 +13146,7 @@ var locationSlice = createSlice({
13067
13146
  });
13068
13147
  var locationActions$1 = {
13069
13148
  LOCATION_READ: LOCATION_READ,
13149
+ LOCATION_TREE_READ: LOCATION_TREE_READ,
13070
13150
  LOCATION_LIST_UPSERT: LOCATION_LIST_UPSERT,
13071
13151
  LOCATION_MASTER_INSERT: LOCATION_MASTER_INSERT
13072
13152
  };
@@ -15949,7 +16029,8 @@ var overRideList = function overRideList(data) {
15949
16029
  over_ride_obj = {
15950
16030
  type: "singleDate",
15951
16031
  selectDate: val.ovrfromdate ? moment.unix(val.ovrfromdate) : "",
15952
- timeSlots: overRideTimeslot(val.daysOfWeek[0].operate_time)
16032
+ status: val.status || "Available",
16033
+ timeSlots: overRideTimeslot(val.daysOfWeek && val.daysOfWeek[0] ? val.daysOfWeek[0].operate_time : [])
15953
16034
  };
15954
16035
  overRideArr.push(over_ride_obj);
15955
16036
  } else if (val.overridetype === "Multiple") {
@@ -15957,6 +16038,7 @@ var overRideList = function overRideList(data) {
15957
16038
  type: "dateRange",
15958
16039
  fromDate: val.ovrfromdate ? moment.unix(val.ovrfromdate) : "",
15959
16040
  toDate: val.ovrtodate ? moment.unix(val.ovrtodate) : "",
16041
+ status: val.status || "Available",
15960
16042
  daySlots: overRideDayslot(val.daysOfWeek)
15961
16043
  }, overRideArr.push(over_ride_obj);
15962
16044
  }
@@ -16123,7 +16205,7 @@ var generateReadJSON$4 = function generateReadJSON(data, state) {
16123
16205
  label: "",
16124
16206
  value: ""
16125
16207
  },
16126
- clinicalInstruction: data.clinicalInstruction ? data.clinicalInstruction : "",
16208
+ clinicalInstruction: data.clinicalInstruction ? data.clinicalInstruction : [],
16127
16209
  clinicDetails: data.clinicdetails ? data.clinicdetails : "",
16128
16210
  locationAddress: (_data$address = data.address) !== null && _data$address !== void 0 && (_data$address = _data$address[0]) !== null && _data$address !== void 0 && _data$address.text ? (_data$address2 = data.address) === null || _data$address2 === void 0 || (_data$address2 = _data$address2[0]) === null || _data$address2 === void 0 ? void 0 : _data$address2.text : "",
16129
16211
  longitude: (_data$position = data.position) !== null && _data$position !== void 0 && (_data$position = _data$position[0]) !== null && _data$position !== void 0 && _data$position.longitude ? data.position[0].longitude : "",
@@ -18646,16 +18728,15 @@ var GET_HOLIDAY_TYPE = createAsyncThunk("holidaySlice/holidayTypeqdm", /*#__PURE
18646
18728
  case 0:
18647
18729
  _ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
18648
18730
  _context.p = 1;
18649
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
18650
18731
  body = {
18651
18732
  "appcode": dbName,
18652
18733
  "filter": {
18653
- "type": ["HOLIDAYTYPE"],
18734
+ "type": [GMTYPE.HOLIDAY_TYPE],
18654
18735
  "tenantid": "",
18655
18736
  "facilityid": "",
18656
18737
  "lang": ""
18657
18738
  },
18658
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
18739
+ "requestid": query_ids.gmLoadQuery
18659
18740
  };
18660
18741
  _context.n = 2;
18661
18742
  return fetchData({
@@ -18697,13 +18778,12 @@ var HOLIDAY_SINGLE_READ_QDM = createAsyncThunk("holidaySlice/holidaySinglereadqd
18697
18778
  payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
18698
18779
  _ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
18699
18780
  _context2.p = 1;
18700
- // const { holidayid ="" , allData = false } = _id;
18701
18781
  body = {
18702
18782
  "appcode": dbName,
18703
18783
  "filter": {
18704
18784
  "holidayid": payload
18705
18785
  },
18706
- "requestid": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358"
18786
+ "requestid": query_ids.holidaySinglereadqdm
18707
18787
  };
18708
18788
  _context2.n = 2;
18709
18789
  return fetchData({
@@ -18711,7 +18791,6 @@ var HOLIDAY_SINGLE_READ_QDM = createAsyncThunk("holidaySlice/holidaySinglereadqd
18711
18791
  }, __baseUrl__$1);
18712
18792
  case 2:
18713
18793
  data = _context2.v;
18714
- console.log(data);
18715
18794
  return _context2.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18716
18795
  data: data
18717
18796
  }));
@@ -18738,13 +18817,12 @@ var HOLIDAY_ENTITY_MASTERS_QDM = createAsyncThunk("holidaySlice/entity_read_qdm"
18738
18817
  payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : "";
18739
18818
  _ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
18740
18819
  _context3.p = 1;
18741
- // const { holidayid ="" , allData = false } = _id;
18742
18820
  body = {
18743
18821
  "appcode": dbName,
18744
18822
  "filter": {
18745
18823
  "holidayid": payload ? payload : ""
18746
18824
  },
18747
- "requestid": "80ccd827-16da-42f5-ac4d-e94b25834229"
18825
+ "requestid": query_ids.holidayEntityreadqdm
18748
18826
  };
18749
18827
  _context3.n = 2;
18750
18828
  return fetchData({
@@ -18785,7 +18863,7 @@ var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySin
18785
18863
  "filter": {
18786
18864
  "holidayid": _id
18787
18865
  },
18788
- "requestid": "184fb879-244f-495e-a1dd-31f5eae6faf7"
18866
+ "requestid": query_ids.holidaySinglereadSelectedqdm
18789
18867
  };
18790
18868
  _context4.n = 2;
18791
18869
  return fetchData({
@@ -18793,7 +18871,6 @@ var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySin
18793
18871
  }, __baseUrl__$1);
18794
18872
  case 2:
18795
18873
  data = _context4.v;
18796
- console.log(data);
18797
18874
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18798
18875
  data: data
18799
18876
  }));
@@ -18928,48 +19005,6 @@ var HOLIDAY_STATUS_CHANGE = createAsyncThunk("holidaySlice/holidayStatus", /*#__
18928
19005
  }
18929
19006
  }, _callee8, null, [[1, 3]]);
18930
19007
  })));
18931
-
18932
- // const HOLIDAY_READ = createAsyncThunk(
18933
- // `holidaySlice/holidy_list`,
18934
- // async (payload = {}, { rejectWithValue }) => {
18935
- // try {
18936
- // let readqueries = queries.holiday_read(payload);
18937
- // const data = await fetchData(
18938
- // { body: JSON.stringify(readqueries) },
18939
- // __readDocumentUrl__
18940
- // );
18941
-
18942
- // let arry = [];
18943
- // data?.result.map((val) => {
18944
- // if (val._key) {
18945
- // arry.push({
18946
- // total_count: val?.TotalCount,
18947
- // date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MMM") : null,
18948
- // CalYear: val.CalYear ? val.CalYear : null,
18949
- // day: val.CalDay ? val.CalDay?.display : "",
18950
- // holiday_reason: val.HolidayReason ? val.HolidayReason : "",
18951
- // holiday_type: val?.HolidayType ? val?.HolidayType?.display : "",
18952
- // _key: val._key ? val._key : "",
18953
- // status: val.status ? val.status : false,
18954
- // copyData: data?.result,
18955
- // });
18956
- // }
18957
- // });
18958
- //
18959
- // return {
18960
- // ...defaultState.List,
18961
- // data: arry,
18962
- // };
18963
- // } catch (error) {
18964
- // console.log(error, "error");
18965
- // return rejectWithValue({
18966
- // ...defaultReject.List,
18967
- // message: error.message,
18968
- // });
18969
- // }
18970
- // }
18971
- // );
18972
-
18973
19008
  var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
18974
19009
  var payload,
18975
19010
  _ref13,
@@ -18999,8 +19034,8 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
18999
19034
  "page": page,
19000
19035
  "perPage": perPage
19001
19036
  },
19002
- "requestid": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f"
19003
- }; // let readqueries = qdmQueries.holiday_read_qdm(payload);
19037
+ "requestid": query_ids.holiday_qdm
19038
+ };
19004
19039
  _context9.n = 2;
19005
19040
  return fetchData({
19006
19041
  body: JSON.stringify(body)
@@ -19010,9 +19045,9 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19010
19045
  arry = [];
19011
19046
  data === null || data === void 0 || data.map(function (val) {
19012
19047
  if (val._key) {
19013
- var _val$CalDay;
19048
+ var _ref14, _val$TotalCount, _val$CalDay;
19014
19049
  arry.push({
19015
- total_count: val === null || val === void 0 ? void 0 : val.total_count,
19050
+ total_count: (_ref14 = (_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : val === null || val === void 0 ? void 0 : val.total_count) !== null && _ref14 !== void 0 ? _ref14 : 0,
19016
19051
  date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YYYY") : null,
19017
19052
  CalYear: val.CalYear ? val.CalYear : null,
19018
19053
  day: val.CalDay ? (_val$CalDay = val.CalDay) === null || _val$CalDay === void 0 ? void 0 : _val$CalDay.display : "",
@@ -19020,7 +19055,7 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19020
19055
  holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : val.HolidayType : "",
19021
19056
  _id: val._id ? val._id : "",
19022
19057
  status: val.status ? val.status : false,
19023
- copyData: data === null || data === void 0 ? void 0 : data.result,
19058
+ copyData: data,
19024
19059
  TotalCountByYear: val === null || val === void 0 ? void 0 : val.TotalCountByYear
19025
19060
  });
19026
19061
  }
@@ -19031,7 +19066,6 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19031
19066
  case 3:
19032
19067
  _context9.p = 3;
19033
19068
  _t6 = _context9.v;
19034
- console.log(_t6, "error");
19035
19069
  return _context9.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19036
19070
  message: _t6.message
19037
19071
  })));
@@ -19040,7 +19074,7 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19040
19074
  })));
19041
19075
  var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
19042
19076
  var payload,
19043
- _ref15,
19077
+ _ref16,
19044
19078
  rejectWithValue,
19045
19079
  readqueries,
19046
19080
  data,
@@ -19051,8 +19085,7 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19051
19085
  while (1) switch (_context0.p = _context0.n) {
19052
19086
  case 0:
19053
19087
  payload = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : {};
19054
- _ref15 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
19055
- console.log(payload, "p-p");
19088
+ _ref16 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
19056
19089
  _context0.p = 1;
19057
19090
  readqueries = queries$j.holiday_single_read(payload);
19058
19091
  _context0.n = 2;
@@ -19083,7 +19116,6 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19083
19116
  case 3:
19084
19117
  _context0.p = 3;
19085
19118
  _t7 = _context0.v;
19086
- console.log(_t7, "error");
19087
19119
  return _context0.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19088
19120
  message: _t7.message
19089
19121
  })));
@@ -19092,7 +19124,7 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19092
19124
  })));
19093
19125
  var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_read_selected", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
19094
19126
  var payload,
19095
- _ref17,
19127
+ _ref18,
19096
19128
  rejectWithValue,
19097
19129
  readqueries,
19098
19130
  data,
@@ -19103,8 +19135,7 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19103
19135
  while (1) switch (_context1.p = _context1.n) {
19104
19136
  case 0:
19105
19137
  payload = _args1.length > 0 && _args1[0] !== undefined ? _args1[0] : {};
19106
- _ref17 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
19107
- console.log(payload, "p-p123");
19138
+ _ref18 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
19108
19139
  _context1.p = 1;
19109
19140
  readqueries = queries$j.holiday_single_read_selected(payload);
19110
19141
  _context1.n = 2;
@@ -19113,7 +19144,6 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19113
19144
  }, __readDocumentUrl__);
19114
19145
  case 2:
19115
19146
  data = _context1.v;
19116
- console.log(data, "kkdkkde");
19117
19147
  arry = [];
19118
19148
  data === null || data === void 0 || data.result.map(function (val) {
19119
19149
  if (val._key) {
@@ -19136,7 +19166,6 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19136
19166
  case 3:
19137
19167
  _context1.p = 3;
19138
19168
  _t8 = _context1.v;
19139
- console.log(_t8, "error");
19140
19169
  return _context1.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19141
19170
  message: _t8.message
19142
19171
  })));
@@ -19146,7 +19175,7 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19146
19175
  var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
19147
19176
  var _payload$data;
19148
19177
  var payload,
19149
- _ref19,
19178
+ _ref20,
19150
19179
  rejectWithValue,
19151
19180
  url,
19152
19181
  _payload$data2,
@@ -19157,8 +19186,7 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19157
19186
  while (1) switch (_context10.p = _context10.n) {
19158
19187
  case 0:
19159
19188
  payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
19160
- _ref19 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
19161
- console.log(payload, "testPayloadd");
19189
+ _ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
19162
19190
  if ((payload === null || payload === void 0 || (_payload$data = payload.data) === null || _payload$data === void 0 ? void 0 : _payload$data.length) > 0) {
19163
19191
  if (payload !== null && payload !== void 0 && (_payload$data2 = payload.data) !== null && _payload$data2 !== void 0 && (_payload$data2 = _payload$data2[0]) !== null && _payload$data2 !== void 0 && _payload$data2._id) {
19164
19192
  url = __holidayEditUrl__;
@@ -19173,7 +19201,6 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19173
19201
  }, url, payload === null || payload === void 0 ? void 0 : payload.jwtToken);
19174
19202
  case 2:
19175
19203
  data = _context10.v;
19176
- console.log(data, "sdkfsdkjasdfr");
19177
19204
  return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19178
19205
  data: data
19179
19206
  }));
@@ -19188,7 +19215,7 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19188
19215
  })));
19189
19216
  var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
19190
19217
  var payload,
19191
- _ref21,
19218
+ _ref22,
19192
19219
  rejectWithValue,
19193
19220
  data,
19194
19221
  _args11 = arguments,
@@ -19197,7 +19224,7 @@ var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE_
19197
19224
  while (1) switch (_context11.p = _context11.n) {
19198
19225
  case 0:
19199
19226
  payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
19200
- _ref21 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
19227
+ _ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
19201
19228
  _context11.p = 1;
19202
19229
  payload.type;
19203
19230
  _context11.n = 2;
@@ -19218,7 +19245,7 @@ var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE_
19218
19245
  })));
19219
19246
  var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
19220
19247
  var payload,
19221
- _ref23,
19248
+ _ref24,
19222
19249
  rejectWithValue,
19223
19250
  _payload$search,
19224
19251
  queriesjson,
@@ -19229,18 +19256,15 @@ var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_
19229
19256
  while (1) switch (_context12.p = _context12.n) {
19230
19257
  case 0:
19231
19258
  payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
19232
- _ref23 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
19259
+ _ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
19233
19260
  _context12.p = 1;
19234
19261
  queriesjson = queries$j.entity_read((_payload$search = payload === null || payload === void 0 ? void 0 : payload.search) !== null && _payload$search !== void 0 ? _payload$search : "");
19235
19262
  _context12.n = 2;
19236
19263
  return fetchData({
19237
19264
  body: JSON.stringify(queriesjson)
19238
- }, __baseUrl__$1
19239
- // __readDocumentUrl__
19240
- );
19265
+ }, __baseUrl__$1);
19241
19266
  case 2:
19242
19267
  data = _context12.v;
19243
- console.log(data, "datasst");
19244
19268
  return _context12.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19245
19269
  data: data
19246
19270
  }));
@@ -19253,53 +19277,9 @@ var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_
19253
19277
  }
19254
19278
  }, _callee12, null, [[1, 3]]);
19255
19279
  })));
19256
- // const HOLIDAY_STATUS_REASON = createAsyncThunk(
19257
- // `holidaySlice/holidy_status_reason`,
19258
- // async (payload = {}, { rejectWithValue }) => {
19259
- // // try {
19260
- // //
19261
- // // let readqueries = queries.holiday_status_reason(payload);
19262
- // // const data = await fetchData(
19263
- // // { body: JSON.stringify(readqueries) },
19264
- // // _readDocumentUrl_
19265
- // // );
19266
- // // console.log(readqueries, "skdfksdjirrtr");
19267
- // //
19268
- // // return {
19269
- // // ...defaultState.List,
19270
- // // data: data,
19271
- // // };
19272
- // // } catch (error) {
19273
- // // console.log(error, "error");
19274
- // // return rejectWithValue({
19275
- // // ...defaultReject.List,
19276
- // // message: error.message,
19277
- // // });
19278
- // // }
19279
- // try {
19280
- // let queriesjson = queries.holiday_status_reason(payload);
19281
- // const data = await fetchData(
19282
- // { body: JSON.stringify(queriesjson) },
19283
- // // __baseUrl__
19284
- // __readDocumentUrl__
19285
- // );
19286
- // console.log(data, "datass12t");
19287
- // return {
19288
- // ...defaultState.List,
19289
- // data: data,
19290
- // };
19291
- // } catch (error) {
19292
- // return rejectWithValue({
19293
- // ...defaultReject,
19294
- // message: error.message,
19295
- // });
19296
- // }
19297
- // }
19298
- // );
19299
-
19300
19280
  var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReasonqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13() {
19301
19281
  var payload,
19302
- _ref25,
19282
+ _ref26,
19303
19283
  rejectWithValue,
19304
19284
  _data$2,
19305
19285
  body,
@@ -19311,9 +19291,8 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19311
19291
  while (1) switch (_context13.p = _context13.n) {
19312
19292
  case 0:
19313
19293
  payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
19314
- _ref25 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
19294
+ _ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
19315
19295
  _context13.p = 1;
19316
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19317
19296
  body = {
19318
19297
  "appcode": dbName,
19319
19298
  "filter": {
@@ -19322,7 +19301,7 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19322
19301
  "facilityid": "",
19323
19302
  "lang": ""
19324
19303
  },
19325
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
19304
+ "requestid": query_ids.gmLoadQuery
19326
19305
  };
19327
19306
  _context13.n = 2;
19328
19307
  return fetchData({
@@ -19350,30 +19329,35 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19350
19329
  }
19351
19330
  }, _callee13, null, [[1, 3]]);
19352
19331
  })));
19353
- var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeekdayqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
19354
- var _ref27,
19332
+ var HOLIDAY_STATUS_MASTER_QDM = createAsyncThunk("holidaySlice/holidayStatusMasterqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
19333
+ var payload,
19334
+ _ref28,
19355
19335
  rejectWithValue,
19356
19336
  _data$3,
19337
+ _data$4,
19338
+ typeName,
19357
19339
  body,
19358
19340
  data,
19359
19341
  arry,
19342
+ rawList,
19360
19343
  _args14 = arguments,
19361
19344
  _t11;
19362
19345
  return _regenerator().w(function (_context14) {
19363
19346
  while (1) switch (_context14.p = _context14.n) {
19364
19347
  case 0:
19365
- _ref27 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
19348
+ payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : GMTYPE.HOLODAY_STATUS;
19349
+ _ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
19366
19350
  _context14.p = 1;
19367
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19351
+ typeName = typeof payload === "string" && payload ? payload : GMTYPE.HOLODAY_STATUS;
19368
19352
  body = {
19369
19353
  "appcode": dbName,
19370
19354
  "filter": {
19371
- "type": ["WEEKDAYS"],
19355
+ "type": [typeName],
19372
19356
  "tenantid": "",
19373
19357
  "facilityid": "",
19374
19358
  "lang": ""
19375
19359
  },
19376
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
19360
+ "requestid": query_ids.gmLoadQuery
19377
19361
  };
19378
19362
  _context14.n = 2;
19379
19363
  return fetchData({
@@ -19382,9 +19366,13 @@ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeek
19382
19366
  case 2:
19383
19367
  data = _context14.v;
19384
19368
  arry = [];
19385
- (_data$3 = data[0]) === null || _data$3 === void 0 || (_data$3 = _data$3.WEEKDAYS) === null || _data$3 === void 0 || (_data$3 = _data$3.Value) === null || _data$3 === void 0 || _data$3.map(function (item) {
19369
+ rawList = ((_data$3 = data[0]) === null || _data$3 === void 0 || (_data$3 = _data$3[typeName]) === null || _data$3 === void 0 ? void 0 : _data$3.Value) || ((_data$4 = data[0]) === null || _data$4 === void 0 || (_data$4 = _data$4.HOLIDAYSTATUS) === null || _data$4 === void 0 ? void 0 : _data$4.Value) || [];
19370
+ rawList.map(function (item) {
19386
19371
  return arry.push({
19387
19372
  _id: item._id,
19373
+ id: item.id,
19374
+ code: item.code,
19375
+ display: item.display,
19388
19376
  Value: item._id,
19389
19377
  label: item.display
19390
19378
  });
@@ -19401,6 +19389,57 @@ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeek
19401
19389
  }
19402
19390
  }, _callee14, null, [[1, 3]]);
19403
19391
  })));
19392
+ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeekdayqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
19393
+ var _ref30,
19394
+ rejectWithValue,
19395
+ _data$5,
19396
+ body,
19397
+ data,
19398
+ arry,
19399
+ _args15 = arguments,
19400
+ _t12;
19401
+ return _regenerator().w(function (_context15) {
19402
+ while (1) switch (_context15.p = _context15.n) {
19403
+ case 0:
19404
+ _ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
19405
+ _context15.p = 1;
19406
+ // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19407
+ body = {
19408
+ "appcode": dbName,
19409
+ "filter": {
19410
+ "type": [GMTYPE.HOLIDAY_WEEKDAYS],
19411
+ "tenantid": "",
19412
+ "facilityid": "",
19413
+ "lang": ""
19414
+ },
19415
+ "requestid": query_ids.gmLoadQuery
19416
+ };
19417
+ _context15.n = 2;
19418
+ return fetchData({
19419
+ body: JSON.stringify(body)
19420
+ }, __baseUrl__$1);
19421
+ case 2:
19422
+ data = _context15.v;
19423
+ arry = [];
19424
+ (_data$5 = data[0]) === null || _data$5 === void 0 || (_data$5 = _data$5.WEEKDAYS) === null || _data$5 === void 0 || (_data$5 = _data$5.Value) === null || _data$5 === void 0 || _data$5.map(function (item) {
19425
+ return arry.push({
19426
+ _id: item._id,
19427
+ Value: item._id,
19428
+ label: item.display
19429
+ });
19430
+ });
19431
+ return _context15.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19432
+ data: arry
19433
+ }));
19434
+ case 3:
19435
+ _context15.p = 3;
19436
+ _t12 = _context15.v;
19437
+ return _context15.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
19438
+ message: _t12.message
19439
+ })));
19440
+ }
19441
+ }, _callee15, null, [[1, 3]]);
19442
+ })));
19404
19443
  var holidaySlice = createSlice({
19405
19444
  name: "holidaySlice",
19406
19445
  initialState: {
@@ -19418,9 +19457,51 @@ var holidaySlice = createSlice({
19418
19457
  holiday_master: _objectSpread2({}, defaultState.List),
19419
19458
  entity_master: _objectSpread2({}, defaultState.List),
19420
19459
  holidy_status_reason: _objectSpread2({}, defaultState.List),
19421
- holidayAllWeekdayqdm: _objectSpread2({}, defaultState.List)
19460
+ holidayAllWeekdayqdm: _objectSpread2({}, defaultState.List),
19461
+ holidayStatusMasterqdm: _objectSpread2({}, defaultState.List),
19462
+ activeStatusObj: null,
19463
+ inActiveStatusObj: null
19422
19464
  },
19423
- extraReducers: (_extraReducers$t = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_CHANGE.fulfilled, function (state, action) {
19465
+ extraReducers: (_extraReducers$t = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_MASTER_QDM.fulfilled, function (state, action) {
19466
+ var _action$payload;
19467
+ state.holidayStatusMasterqdm.loading = false;
19468
+ state.holidayStatusMasterqdm.error = false;
19469
+ state.holidayStatusMasterqdm = action.payload;
19470
+ var list = ((_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.data) || [];
19471
+ var activeItem = list.find(function (item) {
19472
+ var _item$display;
19473
+ return item.code === "ACTIVE-HS" || ((_item$display = item.display) === null || _item$display === void 0 ? void 0 : _item$display.toLowerCase()) === "active";
19474
+ });
19475
+ var inActiveItem = list.find(function (item) {
19476
+ var _item$display2;
19477
+ return item.code === "INACTIVE" || ((_item$display2 = item.display) === null || _item$display2 === void 0 ? void 0 : _item$display2.toLowerCase()) === "inactive";
19478
+ });
19479
+ state.activeStatusObj = activeItem ? {
19480
+ id: activeItem.id,
19481
+ _id: activeItem._id,
19482
+ code: activeItem.code,
19483
+ display: activeItem.display || "Active"
19484
+ } : {
19485
+ code: "ACTIVE-HS",
19486
+ display: "Active"
19487
+ };
19488
+ state.inActiveStatusObj = inActiveItem ? {
19489
+ id: inActiveItem.id,
19490
+ _id: inActiveItem._id,
19491
+ code: inActiveItem.code,
19492
+ display: inActiveItem.display || "Inactive"
19493
+ } : {
19494
+ code: "INACTIVE",
19495
+ display: "Inactive"
19496
+ };
19497
+ }), HOLIDAY_STATUS_MASTER_QDM.pending, function (state, action) {
19498
+ state.holidayStatusMasterqdm.loading = true;
19499
+ state.holidayStatusMasterqdm.error = false;
19500
+ }), HOLIDAY_STATUS_MASTER_QDM.rejected, function (state, action) {
19501
+ state.holidayStatusMasterqdm.loading = false;
19502
+ state.holidayStatusMasterqdm.error = true;
19503
+ state.holidayStatusMasterqdm = action.payload;
19504
+ }), HOLIDAY_STATUS_CHANGE.fulfilled, function (state, action) {
19424
19505
  state.status_update.loading = false, state.status_update.error = false, state.status_update = action.payload;
19425
19506
  }), HOLIDAY_STATUS_CHANGE.pending, function (state, action) {
19426
19507
  state.status_update.loading = true, state.status_update.error = false, state.status_update.loading = true;
@@ -19434,13 +19515,13 @@ var holidaySlice = createSlice({
19434
19515
  state.holidayTypeqdm.loading = false, state.holidayTypeqdm.error = true, state.holidayTypeqdm = action.payload;
19435
19516
  }), HOLIDAY_STATUS_REASON_QDM.fulfilled, function (state, action) {
19436
19517
  state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm = action.payload;
19437
- }), HOLIDAY_STATUS_REASON_QDM.pending, function (state, action) {
19518
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_REASON_QDM.pending, function (state, action) {
19438
19519
  state.holidayStatusReasonqdm.loading = true, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm.loading = true;
19439
19520
  }), HOLIDAY_STATUS_REASON_QDM.rejected, function (state, action) {
19440
19521
  state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = true, state.holidayStatusReasonqdm = action.payload;
19441
19522
  }), HOLIDAY_READ_QDM.fulfilled, function (state, action) {
19442
19523
  state.holiday_qdm.loading = false, state.holiday_qdm.error = false, state.holiday_qdm = action.payload;
19443
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_READ_QDM.pending, function (state, action) {
19524
+ }), HOLIDAY_READ_QDM.pending, function (state, action) {
19444
19525
  state.holiday_qdm.loading = true, state.holiday_qdm.error = false, state.holiday_qdm.loading = true;
19445
19526
  }), HOLIDAY_READ_QDM.rejected, function (state, action) {
19446
19527
  state.holiday_qdm.loading = false, state.holiday_qdm.error = true, state.holiday_qdm = action.payload;
@@ -19454,13 +19535,13 @@ var holidaySlice = createSlice({
19454
19535
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected = action.payload;
19455
19536
  }), HOLIDAY_SINGLE_READ_SELECTED.pending, function (state, action) {
19456
19537
  state.holidy_single_list_selected.loading = true, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected.loading = true;
19457
- }), HOLIDAY_SINGLE_READ_SELECTED.rejected, function (state, action) {
19538
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_SELECTED.rejected, function (state, action) {
19458
19539
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = true, state.holidy_single_list_selected = action.payload;
19459
19540
  }), HOLIDAY_UPSERT.fulfilled, function (state, action) {
19460
19541
  state.holiday_upsert.loading = false, state.holiday_upsert.error = false, state.holiday_upsert = action.payload;
19461
19542
  }), HOLIDAY_UPSERT.pending, function (state, action) {
19462
19543
  state.holiday_upsert.loading = true, state.holiday_upsert.error = false, state.holiday_upsert.loading = true;
19463
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_UPSERT.rejected, function (state, action) {
19544
+ }), HOLIDAY_UPSERT.rejected, function (state, action) {
19464
19545
  state.holiday_upsert.loading = false, state.holiday_upsert.error = true, state.holiday_upsert = action.payload;
19465
19546
  }), HOLIDAY_MASTERS.fulfilled, function (state, action) {
19466
19547
  state.holiday_master.loading = false, state.holiday_master.error = false, state.holiday_master = action.payload;
@@ -19474,13 +19555,13 @@ var holidaySlice = createSlice({
19474
19555
  state.entity_master.loading = true, state.entity_master.error = false, state.entity_master.loading = true;
19475
19556
  }), ENTITY_MASTERS.rejected, function (state, action) {
19476
19557
  state.entity_master.loading = false, state.entity_master.error = true, state.entity_master = action.payload;
19477
- }), HOLIDAY_SINGLE_READ_QDM.fulfilled, function (state, action) {
19558
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_QDM.fulfilled, function (state, action) {
19478
19559
  state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm = action.payload;
19479
19560
  }), HOLIDAY_SINGLE_READ_QDM.pending, function (state, action) {
19480
19561
  state.holidaySinglereadqdm.loading = true, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm.loading = true;
19481
19562
  }), HOLIDAY_SINGLE_READ_QDM.rejected, function (state, action) {
19482
19563
  state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = true, state.holidaySinglereadqdm = action.payload;
19483
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_SELECTED.fulfilled, function (state, action) {
19564
+ }), HOLIDAY_SINGLE_READ_SELECTED.fulfilled, function (state, action) {
19484
19565
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected = action.payload;
19485
19566
  }), HOLIDAY_SINGLE_READ_SELECTED.pending, function (state, action) {
19486
19567
  state.holidy_single_list_selected.loading = true, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected.loading = true;
@@ -19494,13 +19575,13 @@ var holidaySlice = createSlice({
19494
19575
  state.holidaySinglereadSelectedqdm.loading = false, state.holidaySinglereadSelectedqdm.error = true, state.holidaySinglereadSelectedqdm = action.payload;
19495
19576
  }), HOLIDAY_ENTITY_MASTERS_QDM.fulfilled, function (state, action) {
19496
19577
  state.entity_read_qdm.loading = false, state.entity_read_qdm.error = false, state.entity_read_qdm = action.payload;
19497
- }), HOLIDAY_ENTITY_MASTERS_QDM.pending, function (state, action) {
19578
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_ENTITY_MASTERS_QDM.pending, function (state, action) {
19498
19579
  state.entity_read_qdm.loading = true, state.entity_read_qdm.error = false, state.entity_read_qdm.loading = true;
19499
19580
  }), HOLIDAY_ENTITY_MASTERS_QDM.rejected, function (state, action) {
19500
19581
  state.entity_read_qdm.loading = false, state.entity_read_qdm.error = true, state.entity_read_qdm = action.payload;
19501
19582
  }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.fulfilled, function (state, action) {
19502
19583
  state.holidayAllWeekdayqdm.loading = false, state.holidayAllWeekdayqdm.error = false, state.holidayAllWeekdayqdm = action.payload;
19503
- }), _defineProperty(_defineProperty(_extraReducers$t, GET_HOLIDAY_ALL_WEEKDAYS_QDM.pending, function (state, action) {
19584
+ }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.pending, function (state, action) {
19504
19585
  state.holidayAllWeekdayqdm.loading = true, state.holidayAllWeekdayqdm.error = false, state.holidayAllWeekdayqdm.loading = true;
19505
19586
  }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.rejected, function (state, action) {
19506
19587
  state.holidayAllWeekdayqdm.loading = false, state.holidayAllWeekdayqdm.error = true, state.holidayAllWeekdayqdm = action.payload;
@@ -19518,6 +19599,7 @@ var holidayActions = {
19518
19599
  HOLIDAY_SINGLE_READ_QDM: HOLIDAY_SINGLE_READ_QDM,
19519
19600
  HOLIDAY_SINGLE_READ_SELECTED_QDM: HOLIDAY_SINGLE_READ_SELECTED_QDM,
19520
19601
  HOLIDAY_STATUS_REASON_QDM: HOLIDAY_STATUS_REASON_QDM,
19602
+ HOLIDAY_STATUS_MASTER_QDM: HOLIDAY_STATUS_MASTER_QDM,
19521
19603
  HOLIDAY_ENTITY_MASTERS_QDM: HOLIDAY_ENTITY_MASTERS_QDM,
19522
19604
  GET_HOLIDAY_ALL_WEEKDAYS_QDM: GET_HOLIDAY_ALL_WEEKDAYS_QDM
19523
19605
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.179",
3
+ "version": "0.1.181",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",