primarycare-binder 1.1.61 → 1.1.62

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 +15 -37
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -12309,6 +12309,7 @@ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApooi
12309
12309
  appBody,
12310
12310
  appData,
12311
12311
  appInfo,
12312
+ insertObject,
12312
12313
  body,
12313
12314
  data,
12314
12315
  _args15 = arguments;
@@ -12338,78 +12339,55 @@ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApooi
12338
12339
  appInfo = (appData === null || appData === void 0 ? void 0 : (_appData$ = appData[0]) === null || _appData$ === void 0 ? void 0 : _appData$[0]) || {};
12339
12340
 
12340
12341
  if (!(Object.keys(appInfo).length > 0)) {
12341
- _context15.next = 31;
12342
+ _context15.next = 19;
12342
12343
  break;
12343
12344
  }
12344
12345
 
12345
- appInfo["requestedPeriod"] = [{
12346
+ insertObject = {};
12347
+ insertObject["requestedPeriod"] = [{
12346
12348
  start: new Date(appInfo.start).getTime(),
12347
12349
  end: new Date(appInfo.end).getTime()
12348
12350
  }];
12349
- appInfo["status"] = false;
12350
- appInfo["cancelationReason"] = [{
12351
- coding: [{
12352
- system: "string",
12353
- code: "string",
12354
- userSelected: true,
12355
- display: reason || "Others",
12356
- id: Math.floor(Date.now() / 1000),
12357
- version: "string"
12358
- }],
12359
- text: reason || "Others",
12360
- id: Math.floor(Date.now() / 1000)
12361
- }];
12362
- delete appInfo["Speciality"];
12363
- delete appInfo["Person"];
12364
- delete appInfo["Practioner"];
12365
- delete appInfo["Slots"];
12366
- delete appInfo["healthservice"];
12367
- delete appInfo["updatedate"];
12368
- delete appInfo["updatedby"];
12369
- delete appInfo["createddate"];
12370
- delete appInfo["createdby"];
12371
- delete appInfo["activestatus"];
12372
- delete appInfo["_rev"];
12373
- delete appInfo["_id"];
12374
- delete appInfo["_key"];
12351
+ insertObject["status"] = false;
12352
+ insertObject["cancelationReason"] = [reason];
12375
12353
  body = [{
12376
12354
  db_name: dbName,
12377
12355
  entity: "Appointment",
12378
12356
  is_metadata: true,
12379
12357
  metadataId: query_ids["appointmentReducer/upsertAppointment"],
12380
- doc: _objectSpread2({}, appInfo),
12358
+ doc: _objectSpread2({}, insertObject),
12381
12359
  filter: {
12382
12360
  id: appointmentId
12383
12361
  }
12384
12362
  }];
12385
- _context15.next = 29;
12363
+ _context15.next = 17;
12386
12364
  return fetchData$3({
12387
12365
  body: JSON.stringify(body)
12388
12366
  }, __uspsertUrl__);
12389
12367
 
12390
- case 29:
12368
+ case 17:
12391
12369
  data = _context15.sent;
12392
12370
  return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12393
12371
  data: data
12394
12372
  }));
12395
12373
 
12396
- case 31:
12397
- _context15.next = 36;
12374
+ case 19:
12375
+ _context15.next = 24;
12398
12376
  break;
12399
12377
 
12400
- case 33:
12401
- _context15.prev = 33;
12378
+ case 21:
12379
+ _context15.prev = 21;
12402
12380
  _context15.t0 = _context15["catch"](2);
12403
12381
  return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12404
12382
  message: _context15.t0.message
12405
12383
  })));
12406
12384
 
12407
- case 36:
12385
+ case 24:
12408
12386
  case "end":
12409
12387
  return _context15.stop();
12410
12388
  }
12411
12389
  }
12412
- }, _callee15, null, [[2, 33]]);
12390
+ }, _callee15, null, [[2, 21]]);
12413
12391
  }))); // REASON_FOR_APPT_CANCEL_MODIFY
12414
12392
 
12415
12393
  var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonForApptCancelModify", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",