@integraciones_doc24/sdk 1.16.18 → 1.16.20

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
@@ -112,6 +112,12 @@ export declare namespace Doc24 {
112
112
  patientId: number;
113
113
  professionalId: number;
114
114
  appointmentId: number;
115
+ docPatientId: number;
116
+ idSharedVc: number;
117
+ identificationType: string;
118
+ identificationValue: string;
119
+ appointmentDate: string;
120
+ appointmentTime: string;
115
121
  };
116
122
  type ConsultationStatusChangeEvent = {
117
123
  id: number;
@@ -191,7 +191,7 @@ const getVideoVisitMethods = (makeRequest) => {
191
191
  const uploadFileConsultation = validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.uploadFileConsultationParams]), zod_1.any(), async (params) => {
192
192
  const form = new form_data_1.default();
193
193
  form.append('vc_token', params.vcToken);
194
- form.append('attached_file', fs_1.default.createReadStream(params.filePath));
194
+ form.append('attached_file', fs_1.default.createReadStream(params.attachedFile));
195
195
  if (params.fileName)
196
196
  form.append('file_name', params.fileName);
197
197
  const response = await makeRequest('POST', '/upload-file-consultation', form);
@@ -36,6 +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
+ docPatientId: body.id_paciente,
42
+ identificationType: body.tipo_identificacion,
43
+ identificationValue: body.valor_identificacion,
44
+ idSharedVc: body.id_shared_vc,
39
45
  });
40
46
  if (body.tipo === 'turno')
41
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.18",
3
+ "version": "1.16.20",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },