@integraciones_doc24/sdk 1.16.20 → 1.16.21

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/lib/types.d.ts CHANGED
@@ -116,8 +116,8 @@ export declare namespace Doc24 {
116
116
  idSharedVc: number;
117
117
  identificationType: string;
118
118
  identificationValue: string;
119
- appointmentDate: string;
120
- appointmentTime: string;
119
+ specialtyId: number;
120
+ date: Date;
121
121
  };
122
122
  type ConsultationStatusChangeEvent = {
123
123
  id: number;
@@ -36,12 +36,12 @@ const handleEvent = async (body, _baseSdk, eventHandlers) => {
36
36
  appointmentId: Number(body.id_turno),
37
37
  patientId: Number(body.id_persona),
38
38
  professionalId: Number(body.id_profesional),
39
- appointmentDate: body.fecha_turno,
40
- appointmentTime: body.hora_turno,
41
39
  docPatientId: body.id_paciente,
42
40
  identificationType: body.tipo_identificacion,
43
41
  identificationValue: body.valor_identificacion,
44
42
  idSharedVc: body.id_shared_vc,
43
+ specialtyId: body.id_especialidad,
44
+ date: utils_1.parseDateTime(`${body.fecha_turno} ${body.hora_turno}`, body.user_time_zone),
45
45
  });
46
46
  if (body.tipo === 'turno')
47
47
  return (_c = eventHandlers.onAppointmentStatusChange) === null || _c === void 0 ? void 0 : _c.call(eventHandlers, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.20",
3
+ "version": "1.16.21",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },