@integraciones_doc24/sdk 1.16.13 → 1.16.15

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/README.md CHANGED
@@ -179,6 +179,9 @@ export type UserSdk = {
179
179
  cancelVideoVisit: (vcToken: string) => Promise<void>;
180
180
  getVideoVisit: (vcToken: string, patientId: number) => Promise<VideoVisit>;
181
181
  getVideoVisitDetails: (vcId: number) => Promise<VideoVisitDetails>;
182
+ getCompleteVideoVisitDetails: (
183
+ vcId: number,
184
+ ) => Promise<CompleteVideoVisitDetails>;
182
185
  getVideoVisitLink: (
183
186
  vcToken: string,
184
187
  patientId: number,
package/lib/index.d.ts CHANGED
@@ -89,6 +89,7 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
89
89
  specialties: {
90
90
  start_age?: string | number | null | undefined;
91
91
  end_age?: string | number | null | undefined;
92
+ authorization_code?: string | null | undefined;
92
93
  id: number;
93
94
  description: string;
94
95
  }[];
@@ -107,12 +108,14 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
107
108
  specialties: {
108
109
  start_age?: string | number | null | undefined;
109
110
  end_age?: string | number | null | undefined;
111
+ authorization_code?: string | null | undefined;
110
112
  id: number;
111
113
  description: string;
112
114
  }[];
113
115
  specialtiesER: {
114
116
  start_age?: string | number | null | undefined;
115
117
  end_age?: string | number | null | undefined;
118
+ authorization_code?: string | null | undefined;
116
119
  id: number;
117
120
  description: string;
118
121
  }[];
@@ -123,6 +126,7 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
123
126
  specialties: {
124
127
  start_age?: string | number | null | undefined;
125
128
  end_age?: string | number | null | undefined;
129
+ authorization_code?: string | null | undefined;
126
130
  id: number;
127
131
  description: string;
128
132
  }[];
package/lib/schemas.d.ts CHANGED
@@ -139,14 +139,17 @@ export declare const doc24Schemas: {
139
139
  description: import("zod").ZodString;
140
140
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
141
141
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
142
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
142
143
  }, "strip", import("zod").ZodTypeAny, {
143
144
  start_age?: string | number | null | undefined;
144
145
  end_age?: string | number | null | undefined;
146
+ authorization_code?: string | null | undefined;
145
147
  id: number;
146
148
  description: string;
147
149
  }, {
148
150
  start_age?: string | number | null | undefined;
149
151
  end_age?: string | number | null | undefined;
152
+ authorization_code?: string | null | undefined;
150
153
  id: number;
151
154
  description: string;
152
155
  }>;
@@ -189,14 +192,17 @@ export declare const doc24Schemas: {
189
192
  description: import("zod").ZodString;
190
193
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
191
194
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
195
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
192
196
  }, "strip", import("zod").ZodTypeAny, {
193
197
  start_age?: string | number | null | undefined;
194
198
  end_age?: string | number | null | undefined;
199
+ authorization_code?: string | null | undefined;
195
200
  id: number;
196
201
  description: string;
197
202
  }, {
198
203
  start_age?: string | number | null | undefined;
199
204
  end_age?: string | number | null | undefined;
205
+ authorization_code?: string | null | undefined;
200
206
  id: number;
201
207
  description: string;
202
208
  }>;
@@ -220,6 +226,7 @@ export declare const doc24Schemas: {
220
226
  specialty: {
221
227
  start_age?: string | number | null | undefined;
222
228
  end_age?: string | number | null | undefined;
229
+ authorization_code?: string | null | undefined;
223
230
  id: number;
224
231
  description: string;
225
232
  };
@@ -241,6 +248,7 @@ export declare const doc24Schemas: {
241
248
  specialty: {
242
249
  start_age?: string | number | null | undefined;
243
250
  end_age?: string | number | null | undefined;
251
+ authorization_code?: string | null | undefined;
244
252
  id: number;
245
253
  description: string;
246
254
  };
@@ -254,14 +262,17 @@ export declare const doc24Schemas: {
254
262
  description: import("zod").ZodString;
255
263
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
256
264
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
265
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
257
266
  }, "strip", import("zod").ZodTypeAny, {
258
267
  start_age?: string | number | null | undefined;
259
268
  end_age?: string | number | null | undefined;
269
+ authorization_code?: string | null | undefined;
260
270
  id: number;
261
271
  description: string;
262
272
  }, {
263
273
  start_age?: string | number | null | undefined;
264
274
  end_age?: string | number | null | undefined;
275
+ authorization_code?: string | null | undefined;
265
276
  id: number;
266
277
  description: string;
267
278
  }>, "many">;
@@ -270,14 +281,17 @@ export declare const doc24Schemas: {
270
281
  description: import("zod").ZodString;
271
282
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
272
283
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
284
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
273
285
  }, "strip", import("zod").ZodTypeAny, {
274
286
  start_age?: string | number | null | undefined;
275
287
  end_age?: string | number | null | undefined;
288
+ authorization_code?: string | null | undefined;
276
289
  id: number;
277
290
  description: string;
278
291
  }, {
279
292
  start_age?: string | number | null | undefined;
280
293
  end_age?: string | number | null | undefined;
294
+ authorization_code?: string | null | undefined;
281
295
  id: number;
282
296
  description: string;
283
297
  }>, "many">;
@@ -290,14 +304,17 @@ export declare const doc24Schemas: {
290
304
  description: import("zod").ZodString;
291
305
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
292
306
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
307
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
293
308
  }, "strip", import("zod").ZodTypeAny, {
294
309
  start_age?: string | number | null | undefined;
295
310
  end_age?: string | number | null | undefined;
311
+ authorization_code?: string | null | undefined;
296
312
  id: number;
297
313
  description: string;
298
314
  }, {
299
315
  start_age?: string | number | null | undefined;
300
316
  end_age?: string | number | null | undefined;
317
+ authorization_code?: string | null | undefined;
301
318
  id: number;
302
319
  description: string;
303
320
  }>, "many">;
@@ -308,6 +325,7 @@ export declare const doc24Schemas: {
308
325
  specialties: {
309
326
  start_age?: string | number | null | undefined;
310
327
  end_age?: string | number | null | undefined;
328
+ authorization_code?: string | null | undefined;
311
329
  id: number;
312
330
  description: string;
313
331
  }[];
@@ -318,6 +336,7 @@ export declare const doc24Schemas: {
318
336
  specialties: {
319
337
  start_age?: string | number | null | undefined;
320
338
  end_age?: string | number | null | undefined;
339
+ authorization_code?: string | null | undefined;
321
340
  id: number;
322
341
  description: string;
323
342
  }[];
@@ -326,12 +345,14 @@ export declare const doc24Schemas: {
326
345
  specialties: {
327
346
  start_age?: string | number | null | undefined;
328
347
  end_age?: string | number | null | undefined;
348
+ authorization_code?: string | null | undefined;
329
349
  id: number;
330
350
  description: string;
331
351
  }[];
332
352
  specialtiesER: {
333
353
  start_age?: string | number | null | undefined;
334
354
  end_age?: string | number | null | undefined;
355
+ authorization_code?: string | null | undefined;
335
356
  id: number;
336
357
  description: string;
337
358
  }[];
@@ -342,6 +363,7 @@ export declare const doc24Schemas: {
342
363
  specialties: {
343
364
  start_age?: string | number | null | undefined;
344
365
  end_age?: string | number | null | undefined;
366
+ authorization_code?: string | null | undefined;
345
367
  id: number;
346
368
  description: string;
347
369
  }[];
@@ -350,12 +372,14 @@ export declare const doc24Schemas: {
350
372
  specialties: {
351
373
  start_age?: string | number | null | undefined;
352
374
  end_age?: string | number | null | undefined;
375
+ authorization_code?: string | null | undefined;
353
376
  id: number;
354
377
  description: string;
355
378
  }[];
356
379
  specialtiesER: {
357
380
  start_age?: string | number | null | undefined;
358
381
  end_age?: string | number | null | undefined;
382
+ authorization_code?: string | null | undefined;
359
383
  id: number;
360
384
  description: string;
361
385
  }[];
@@ -366,6 +390,7 @@ export declare const doc24Schemas: {
366
390
  specialties: {
367
391
  start_age?: string | number | null | undefined;
368
392
  end_age?: string | number | null | undefined;
393
+ authorization_code?: string | null | undefined;
369
394
  id: number;
370
395
  description: string;
371
396
  }[];
@@ -835,6 +860,282 @@ export declare const doc24Schemas: {
835
860
  url: string;
836
861
  }[];
837
862
  }>;
863
+ completeVideoVisitDetails: import("zod").ZodObject<{
864
+ id: import("zod").ZodNumber;
865
+ status: import("zod").ZodString;
866
+ paymentStatus: import("zod").ZodString;
867
+ professional: import("zod").ZodOptional<import("zod").ZodObject<{
868
+ id: import("zod").ZodNumber;
869
+ fullName: import("zod").ZodString;
870
+ specialtyId: import("zod").ZodNumber;
871
+ specialty: import("zod").ZodString;
872
+ }, "strip", import("zod").ZodTypeAny, {
873
+ id: number;
874
+ fullName: string;
875
+ specialtyId: number;
876
+ specialty: string;
877
+ }, {
878
+ id: number;
879
+ fullName: string;
880
+ specialtyId: number;
881
+ specialty: string;
882
+ }>>;
883
+ finishDate: import("zod").ZodNullable<import("zod").ZodDate>;
884
+ retries: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
885
+ language: import("zod").ZodString;
886
+ report: import("zod").ZodObject<{
887
+ motive: import("zod").ZodNullable<import("zod").ZodString>;
888
+ actualDesease: import("zod").ZodNullable<import("zod").ZodString>;
889
+ indications: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
890
+ alertSigns: import("zod").ZodNullable<import("zod").ZodString>;
891
+ extendedMotive: import("zod").ZodNullable<import("zod").ZodString>;
892
+ diagnose: import("zod").ZodArray<import("zod").ZodObject<{
893
+ description: import("zod").ZodString;
894
+ code: import("zod").ZodString;
895
+ }, "strip", import("zod").ZodTypeAny, {
896
+ code: string;
897
+ description: string;
898
+ }, {
899
+ code: string;
900
+ description: string;
901
+ }>, "many">;
902
+ medication: import("zod").ZodArray<import("zod").ZodObject<{
903
+ description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
904
+ quantity: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
905
+ dose: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
906
+ farmalinkId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
907
+ }, "strip", import("zod").ZodTypeAny, {
908
+ description?: string | null | undefined;
909
+ quantity?: number | null | undefined;
910
+ dose?: string | null | undefined;
911
+ farmalinkId?: number | null | undefined;
912
+ }, {
913
+ description?: string | null | undefined;
914
+ quantity?: number | null | undefined;
915
+ dose?: string | null | undefined;
916
+ farmalinkId?: number | null | undefined;
917
+ }>, "many">;
918
+ prescription: import("zod").ZodObject<{
919
+ link: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
920
+ codigo: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
921
+ }, "strip", import("zod").ZodTypeAny, {
922
+ link?: string | null | undefined;
923
+ codigo?: number | null | undefined;
924
+ }, {
925
+ link?: string | null | undefined;
926
+ codigo?: number | null | undefined;
927
+ }>;
928
+ inPersonRequired: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
929
+ referral: import("zod").ZodObject<{
930
+ status: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
931
+ specialtyId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
932
+ inPersonRequired: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
933
+ comments: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
934
+ }, "strip", import("zod").ZodTypeAny, {
935
+ specialtyId?: number | null | undefined;
936
+ status?: string | null | undefined;
937
+ inPersonRequired?: string | null | undefined;
938
+ comments?: string | null | undefined;
939
+ }, {
940
+ specialtyId?: number | null | undefined;
941
+ status?: string | null | undefined;
942
+ inPersonRequired?: string | null | undefined;
943
+ comments?: string | null | undefined;
944
+ }>;
945
+ }, "strip", import("zod").ZodTypeAny, {
946
+ indications?: string | null | undefined;
947
+ inPersonRequired?: string | null | undefined;
948
+ motive: string | null;
949
+ actualDesease: string | null;
950
+ alertSigns: string | null;
951
+ extendedMotive: string | null;
952
+ diagnose: {
953
+ code: string;
954
+ description: string;
955
+ }[];
956
+ medication: {
957
+ description?: string | null | undefined;
958
+ quantity?: number | null | undefined;
959
+ dose?: string | null | undefined;
960
+ farmalinkId?: number | null | undefined;
961
+ }[];
962
+ prescription: {
963
+ link?: string | null | undefined;
964
+ codigo?: number | null | undefined;
965
+ };
966
+ referral: {
967
+ specialtyId?: number | null | undefined;
968
+ status?: string | null | undefined;
969
+ inPersonRequired?: string | null | undefined;
970
+ comments?: string | null | undefined;
971
+ };
972
+ }, {
973
+ indications?: string | null | undefined;
974
+ inPersonRequired?: string | null | undefined;
975
+ motive: string | null;
976
+ actualDesease: string | null;
977
+ alertSigns: string | null;
978
+ extendedMotive: string | null;
979
+ diagnose: {
980
+ code: string;
981
+ description: string;
982
+ }[];
983
+ medication: {
984
+ description?: string | null | undefined;
985
+ quantity?: number | null | undefined;
986
+ dose?: string | null | undefined;
987
+ farmalinkId?: number | null | undefined;
988
+ }[];
989
+ prescription: {
990
+ link?: string | null | undefined;
991
+ codigo?: number | null | undefined;
992
+ };
993
+ referral: {
994
+ specialtyId?: number | null | undefined;
995
+ status?: string | null | undefined;
996
+ inPersonRequired?: string | null | undefined;
997
+ comments?: string | null | undefined;
998
+ };
999
+ }>;
1000
+ pdf: import("zod").ZodObject<{
1001
+ atention: import("zod").ZodAny;
1002
+ labs: import("zod").ZodAny;
1003
+ otherExams: import("zod").ZodAny;
1004
+ images: import("zod").ZodAny;
1005
+ medication: import("zod").ZodArray<import("zod").ZodAny, "many">;
1006
+ certificate: import("zod").ZodArray<import("zod").ZodAny, "many">;
1007
+ }, "strip", import("zod").ZodTypeAny, {
1008
+ atention?: any;
1009
+ labs?: any;
1010
+ otherExams?: any;
1011
+ images?: any;
1012
+ medication: any[];
1013
+ certificate: any[];
1014
+ }, {
1015
+ atention?: any;
1016
+ labs?: any;
1017
+ otherExams?: any;
1018
+ images?: any;
1019
+ medication: any[];
1020
+ certificate: any[];
1021
+ }>;
1022
+ files: import("zod").ZodArray<import("zod").ZodObject<{
1023
+ name: import("zod").ZodString;
1024
+ url: import("zod").ZodString;
1025
+ }, "strip", import("zod").ZodTypeAny, {
1026
+ name: string;
1027
+ url: string;
1028
+ }, {
1029
+ name: string;
1030
+ url: string;
1031
+ }>, "many">;
1032
+ }, "strip", import("zod").ZodTypeAny, {
1033
+ professional?: {
1034
+ id: number;
1035
+ fullName: string;
1036
+ specialtyId: number;
1037
+ specialty: string;
1038
+ } | undefined;
1039
+ retries?: number | null | undefined;
1040
+ id: number;
1041
+ language: string;
1042
+ status: string;
1043
+ paymentStatus: string;
1044
+ finishDate: Date | null;
1045
+ report: {
1046
+ indications?: string | null | undefined;
1047
+ inPersonRequired?: string | null | undefined;
1048
+ motive: string | null;
1049
+ actualDesease: string | null;
1050
+ alertSigns: string | null;
1051
+ extendedMotive: string | null;
1052
+ diagnose: {
1053
+ code: string;
1054
+ description: string;
1055
+ }[];
1056
+ medication: {
1057
+ description?: string | null | undefined;
1058
+ quantity?: number | null | undefined;
1059
+ dose?: string | null | undefined;
1060
+ farmalinkId?: number | null | undefined;
1061
+ }[];
1062
+ prescription: {
1063
+ link?: string | null | undefined;
1064
+ codigo?: number | null | undefined;
1065
+ };
1066
+ referral: {
1067
+ specialtyId?: number | null | undefined;
1068
+ status?: string | null | undefined;
1069
+ inPersonRequired?: string | null | undefined;
1070
+ comments?: string | null | undefined;
1071
+ };
1072
+ };
1073
+ pdf: {
1074
+ atention?: any;
1075
+ labs?: any;
1076
+ otherExams?: any;
1077
+ images?: any;
1078
+ medication: any[];
1079
+ certificate: any[];
1080
+ };
1081
+ files: {
1082
+ name: string;
1083
+ url: string;
1084
+ }[];
1085
+ }, {
1086
+ professional?: {
1087
+ id: number;
1088
+ fullName: string;
1089
+ specialtyId: number;
1090
+ specialty: string;
1091
+ } | undefined;
1092
+ retries?: number | null | undefined;
1093
+ id: number;
1094
+ language: string;
1095
+ status: string;
1096
+ paymentStatus: string;
1097
+ finishDate: Date | null;
1098
+ report: {
1099
+ indications?: string | null | undefined;
1100
+ inPersonRequired?: string | null | undefined;
1101
+ motive: string | null;
1102
+ actualDesease: string | null;
1103
+ alertSigns: string | null;
1104
+ extendedMotive: string | null;
1105
+ diagnose: {
1106
+ code: string;
1107
+ description: string;
1108
+ }[];
1109
+ medication: {
1110
+ description?: string | null | undefined;
1111
+ quantity?: number | null | undefined;
1112
+ dose?: string | null | undefined;
1113
+ farmalinkId?: number | null | undefined;
1114
+ }[];
1115
+ prescription: {
1116
+ link?: string | null | undefined;
1117
+ codigo?: number | null | undefined;
1118
+ };
1119
+ referral: {
1120
+ specialtyId?: number | null | undefined;
1121
+ status?: string | null | undefined;
1122
+ inPersonRequired?: string | null | undefined;
1123
+ comments?: string | null | undefined;
1124
+ };
1125
+ };
1126
+ pdf: {
1127
+ atention?: any;
1128
+ labs?: any;
1129
+ otherExams?: any;
1130
+ images?: any;
1131
+ medication: any[];
1132
+ certificate: any[];
1133
+ };
1134
+ files: {
1135
+ name: string;
1136
+ url: string;
1137
+ }[];
1138
+ }>;
838
1139
  activeVideoVisitData: import("zod").ZodObject<{
839
1140
  consultationId: import("zod").ZodNumber;
840
1141
  patientId: import("zod").ZodNumber;
@@ -872,14 +1173,17 @@ export declare const doc24Schemas: {
872
1173
  description: import("zod").ZodString;
873
1174
  start_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
874
1175
  end_age: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
1176
+ authorization_code: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
875
1177
  }, "strip", import("zod").ZodTypeAny, {
876
1178
  start_age?: string | number | null | undefined;
877
1179
  end_age?: string | number | null | undefined;
1180
+ authorization_code?: string | null | undefined;
878
1181
  id: number;
879
1182
  description: string;
880
1183
  }, {
881
1184
  start_age?: string | number | null | undefined;
882
1185
  end_age?: string | number | null | undefined;
1186
+ authorization_code?: string | null | undefined;
883
1187
  id: number;
884
1188
  description: string;
885
1189
  }>, "many">;
@@ -913,6 +1217,7 @@ export declare const doc24Schemas: {
913
1217
  specialties: {
914
1218
  start_age?: string | number | null | undefined;
915
1219
  end_age?: string | number | null | undefined;
1220
+ authorization_code?: string | null | undefined;
916
1221
  id: number;
917
1222
  description: string;
918
1223
  }[];
@@ -941,6 +1246,7 @@ export declare const doc24Schemas: {
941
1246
  specialties: {
942
1247
  start_age?: string | number | null | undefined;
943
1248
  end_age?: string | number | null | undefined;
1249
+ authorization_code?: string | null | undefined;
944
1250
  id: number;
945
1251
  description: string;
946
1252
  }[];
package/lib/schemas.js CHANGED
@@ -32,6 +32,7 @@ const specialty = zod_1.object({
32
32
  description: zod_1.string(),
33
33
  start_age: zod_1.number().or(zod_1.string()).nullish(),
34
34
  end_age: zod_1.number().or(zod_1.string()).nullish(),
35
+ authorization_code: zod_1.string().nullish(),
35
36
  });
36
37
  const scheduleAvailabilityFilter = zod_1.object({
37
38
  specialtyId: zod_1.number().optional(),
@@ -400,6 +401,54 @@ exports.doc24Schemas = {
400
401
  }),
401
402
  files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
402
403
  }),
404
+ completeVideoVisitDetails: zod_1.object({
405
+ id: zod_1.number(),
406
+ status: zod_1.string(),
407
+ paymentStatus: zod_1.string(),
408
+ professional: zod_1.object({
409
+ id: zod_1.number(),
410
+ fullName: zod_1.string(),
411
+ specialtyId: zod_1.number(),
412
+ specialty: zod_1.string(),
413
+ }).optional(),
414
+ finishDate: zod_1.date().nullable(),
415
+ retries: zod_1.number().nullish(),
416
+ language: zod_1.string(),
417
+ report: zod_1.object({
418
+ motive: zod_1.string().nullable(),
419
+ actualDesease: zod_1.string().nullable(),
420
+ indications: zod_1.string().nullish(),
421
+ alertSigns: zod_1.string().nullable(),
422
+ extendedMotive: zod_1.string().nullable(),
423
+ diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
424
+ medication: zod_1.array(zod_1.object({
425
+ description: zod_1.string().nullish(),
426
+ quantity: zod_1.number().nullish(),
427
+ dose: zod_1.string().nullish(),
428
+ farmalinkId: zod_1.number().nullish(),
429
+ })),
430
+ prescription: zod_1.object({
431
+ link: zod_1.string().nullish(),
432
+ codigo: zod_1.number().nullish(),
433
+ }),
434
+ inPersonRequired: zod_1.string().nullish(),
435
+ referral: zod_1.object({
436
+ status: zod_1.string().nullish(),
437
+ specialtyId: zod_1.number().nullish(),
438
+ inPersonRequired: zod_1.string().nullish(),
439
+ comments: zod_1.string().nullish(),
440
+ }),
441
+ }),
442
+ pdf: zod_1.object({
443
+ atention: zod_1.any(),
444
+ labs: zod_1.any(),
445
+ otherExams: zod_1.any(),
446
+ images: zod_1.any(),
447
+ medication: zod_1.array(zod_1.any()),
448
+ certificate: zod_1.array(zod_1.any()),
449
+ }),
450
+ files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
451
+ }),
403
452
  activeVideoVisitData: zod_1.object({
404
453
  consultationId: zod_1.number(),
405
454
  patientId: zod_1.number(),
package/lib/types.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare namespace Doc24 {
14
14
  type VideoVisit = TypeOf<typeof doc24Schemas.videoVisit>;
15
15
  type HistoricalVideoVisit = TypeOf<typeof doc24Schemas.historicalVideoVisit>;
16
16
  type VideoVisitDetails = TypeOf<typeof doc24Schemas.videoVisitDetails>;
17
+ type CompleteVideoVisitDetails = TypeOf<typeof doc24Schemas.completeVideoVisitDetails>;
17
18
  type ActiveVideoVisitData = TypeOf<typeof doc24Schemas.activeVideoVisitData>;
18
19
  type SpecialtyMode = TypeOf<typeof doc24Schemas.specialtyMode>;
19
20
  type Professional = TypeOf<typeof doc24Schemas.professional>;
@@ -82,6 +83,7 @@ export declare namespace Doc24 {
82
83
  cancelVideoVisit: (vcToken: string) => Promise<void>;
83
84
  getVideoVisit: (vcToken: string, patientId: number) => Promise<VideoVisit>;
84
85
  getVideoVisitDetails: (vcId: number) => Promise<VideoVisitDetails>;
86
+ getCompleteVideoVisitDetails: (vcId: number) => Promise<CompleteVideoVisitDetails>;
85
87
  getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
86
88
  getPatientVideoVisitHistory: (patientId: number) => Promise<HistoricalVideoVisit[]>;
87
89
  getActiveVideoVisits: () => Promise<ActiveVideoVisitData[]>;
@@ -25,6 +25,7 @@ export declare const getScheduleMethods: (makeRequest: RequestMaker) => {
25
25
  specialty: {
26
26
  start_age?: string | number | null | undefined;
27
27
  end_age?: string | number | null | undefined;
28
+ authorization_code?: string | null | undefined;
28
29
  id: number;
29
30
  description: string;
30
31
  };
@@ -3,6 +3,7 @@ export declare const getSpecialtiesMethods: (makeRequest: RequestMaker) => {
3
3
  getSpecialties: (mode: "appointment" | "chat" | "instant", language: string) => Promise<{
4
4
  start_age?: string | number | null | undefined;
5
5
  end_age?: string | number | null | undefined;
6
+ authorization_code?: string | null | undefined;
6
7
  id: number;
7
8
  description: string;
8
9
  }[]>;
@@ -14,6 +14,7 @@ const getSpecialtiesMethods = (makeRequest) => {
14
14
  description: s.specialty,
15
15
  start_age: s.start_age,
16
16
  end_age: s.end_age,
17
+ authorization_code: s.authorization_code,
17
18
  }));
18
19
  });
19
20
  return {
@@ -112,4 +112,58 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
112
112
  vcToken: string;
113
113
  consultationId: number;
114
114
  }[]>;
115
+ getCompleteVideoVisitDetails: (vcId: number) => Promise<{
116
+ professional?: {
117
+ id: number;
118
+ fullName: string;
119
+ specialtyId: number;
120
+ specialty: string;
121
+ } | undefined;
122
+ retries?: number | null | undefined;
123
+ id: number;
124
+ language: string;
125
+ status: string;
126
+ paymentStatus: string;
127
+ finishDate: Date | null;
128
+ report: {
129
+ indications?: string | null | undefined;
130
+ inPersonRequired?: string | null | undefined;
131
+ motive: string | null;
132
+ actualDesease: string | null;
133
+ alertSigns: string | null;
134
+ extendedMotive: string | null;
135
+ diagnose: {
136
+ code: string;
137
+ description: string;
138
+ }[];
139
+ medication: {
140
+ description?: string | null | undefined;
141
+ quantity?: number | null | undefined;
142
+ dose?: string | null | undefined;
143
+ farmalinkId?: number | null | undefined;
144
+ }[];
145
+ prescription: {
146
+ link?: string | null | undefined;
147
+ codigo?: number | null | undefined;
148
+ };
149
+ referral: {
150
+ specialtyId?: number | null | undefined;
151
+ status?: string | null | undefined;
152
+ inPersonRequired?: string | null | undefined;
153
+ comments?: string | null | undefined;
154
+ };
155
+ };
156
+ pdf: {
157
+ atention?: any;
158
+ labs?: any;
159
+ otherExams?: any;
160
+ images?: any;
161
+ medication: any[];
162
+ certificate: any[];
163
+ };
164
+ files: {
165
+ name: string;
166
+ url: string;
167
+ }[];
168
+ }>;
115
169
  };
@@ -113,6 +113,76 @@ const getVideoVisitMethods = (makeRequest) => {
113
113
  const response = await makeRequest('GET', path);
114
114
  return response.data.link;
115
115
  });
116
+ const getCompleteVideoVisitDetails = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.completeVideoVisitDetails, async (vcId) => {
117
+ const path = `/consultation/${vcId}`;
118
+ const response = await makeRequest('GET', path);
119
+ return {
120
+ id: response.data.id_consulta,
121
+ status: response.data.estado,
122
+ paymentStatus: response.data.estado_pago,
123
+ professional: response.data.id_profesional
124
+ ? {
125
+ id: response.data.id_profesional,
126
+ fullName: response.data.profesional,
127
+ specialtyId: response.data.id_especialidad,
128
+ specialty: response.data.especialidad,
129
+ }
130
+ : undefined,
131
+ finishDate: response.data.fecha_fin && utils_1.parseDateTime(response.data.fecha_fin),
132
+ retries: response.data.intentos_conexion,
133
+ language: response.data.tag_idioma,
134
+ report: {
135
+ motive: response.data.motivo,
136
+ actualDesease: response.data.enfermedad_actual,
137
+ indications: response.data.conducta_terapeutica,
138
+ alertSigns: response.data.signos_alerta,
139
+ extendedMotive: response.data.motivo_extendido_consulta,
140
+ diagnose: response.data.diagnostico.map((d) => ({
141
+ description: d.diagnostico,
142
+ code: d.codificacion,
143
+ })),
144
+ medication: response.data.medicacion.map((m) => ({
145
+ description: m.detalle_producto,
146
+ quantity: m.cantidad,
147
+ dose: m.dosificacion,
148
+ farmalinkId: m.id_prescripcion_farmalink,
149
+ })),
150
+ prescription: {
151
+ link: response.data.link_receta,
152
+ codigo: response.data.codigo_verificacion_receta,
153
+ },
154
+ inPersonRequired: response.data.presencial_requerida,
155
+ referral: {
156
+ status: response.data.derivada,
157
+ specialtyId: response.data.derivada_id_especialidad,
158
+ inPersonRequired: response.data.derivada_presencial_obligatoria,
159
+ comments: response.data.derivada_comentarios,
160
+ },
161
+ },
162
+ pdf: {
163
+ atention: response.data.pdf_atencion
164
+ ? response.data.pdf_atencion
165
+ : undefined,
166
+ medication: response.data.pdf_medicacion,
167
+ images: response.data.pdf_imagenes
168
+ ? response.data.pdf_imagenes
169
+ : undefined,
170
+ otherExams: response.data.pdf_otras
171
+ ? response.data.pdf_otras
172
+ : undefined,
173
+ labs: response.data.pdf_laboratorios
174
+ ? response.data.pdf_laboratorios
175
+ : undefined,
176
+ certificate: response.data.pdf_certificado
177
+ ? response.data.pdf_certificado
178
+ : undefined,
179
+ },
180
+ files: response.data.files_atencion.map((f) => ({
181
+ name: f.nombre_file,
182
+ url: f.file,
183
+ })),
184
+ };
185
+ });
116
186
  return {
117
187
  scheduleVideoVisit,
118
188
  cancelVideoVisit,
@@ -121,6 +191,7 @@ const getVideoVisitMethods = (makeRequest) => {
121
191
  getVideoVisitDetails,
122
192
  getVideoVisitLink,
123
193
  getActiveVideoVisits,
194
+ getCompleteVideoVisitDetails,
124
195
  };
125
196
  };
126
197
  exports.getVideoVisitMethods = getVideoVisitMethods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.13",
3
+ "version": "1.16.15",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },