@integraciones_doc24/sdk 1.16.21 → 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 +4 -1
- package/lib/webhook/index.js +3 -0
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -117,7 +117,10 @@ export declare namespace Doc24 {
|
|
|
117
117
|
identificationType: string;
|
|
118
118
|
identificationValue: string;
|
|
119
119
|
specialtyId: number;
|
|
120
|
-
date:
|
|
120
|
+
date: any;
|
|
121
|
+
appointmentTime: string;
|
|
122
|
+
appointmentDate: string;
|
|
123
|
+
userTimeZone: string;
|
|
121
124
|
};
|
|
122
125
|
type ConsultationStatusChangeEvent = {
|
|
123
126
|
id: number;
|
package/lib/webhook/index.js
CHANGED
|
@@ -42,6 +42,9 @@ const handleEvent = async (body, _baseSdk, eventHandlers) => {
|
|
|
42
42
|
idSharedVc: body.id_shared_vc,
|
|
43
43
|
specialtyId: body.id_especialidad,
|
|
44
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, {
|