@integraciones_doc24/sdk 1.16.20 → 1.16.22

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,11 @@ export declare namespace Doc24 {
116
116
  idSharedVc: number;
117
117
  identificationType: string;
118
118
  identificationValue: string;
119
- appointmentDate: string;
119
+ specialtyId: number;
120
+ date: any;
120
121
  appointmentTime: string;
122
+ appointmentDate: string;
123
+ userTimeZone: string;
121
124
  };
122
125
  type ConsultationStatusChangeEvent = {
123
126
  id: number;
@@ -36,12 +36,15 @@ 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
+ appointmentDate: body.fecha_turno,
46
+ appointmentTime: body.hora_turno,
47
+ userTimeZone: body.user_time_zone,
45
48
  });
46
49
  if (body.tipo === 'turno')
47
50
  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.22",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },