@integraciones_doc24/sdk 1.16.27 → 1.16.29

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/schemas.d.ts CHANGED
@@ -218,13 +218,13 @@ export declare const doc24Schemas: {
218
218
  address: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
219
219
  }, "strip", import("zod").ZodTypeAny, {
220
220
  length?: number | null | undefined;
221
+ address?: string | null | undefined;
222
+ city?: string | null | undefined;
223
+ province?: string | null | undefined;
221
224
  ranking?: unknown;
222
225
  consultation_value?: string | null | undefined;
223
226
  inPerson?: boolean | null | undefined;
224
227
  virtual?: boolean | null | undefined;
225
- province?: string | null | undefined;
226
- city?: string | null | undefined;
227
- address?: string | null | undefined;
228
228
  date: Date;
229
229
  type: "appointment" | "chat" | "instant";
230
230
  id: string | number;
@@ -245,13 +245,13 @@ export declare const doc24Schemas: {
245
245
  atentions: number;
246
246
  }, {
247
247
  length?: number | null | undefined;
248
+ address?: string | null | undefined;
249
+ city?: string | null | undefined;
250
+ province?: string | null | undefined;
248
251
  ranking?: unknown;
249
252
  consultation_value?: string | null | undefined;
250
253
  inPerson?: boolean | null | undefined;
251
254
  virtual?: boolean | null | undefined;
252
- province?: string | null | undefined;
253
- city?: string | null | undefined;
254
- address?: string | null | undefined;
255
255
  date: Date;
256
256
  type: "appointment" | "chat" | "instant";
257
257
  id: string | number;
@@ -556,11 +556,16 @@ export declare const doc24Schemas: {
556
556
  paymentStatus: import("zod").ZodOptional<import("zod").ZodString>;
557
557
  atentionId: import("zod").ZodOptional<import("zod").ZodNumber>;
558
558
  waitingTime: import("zod").ZodOptional<import("zod").ZodString>;
559
+ address: import("zod").ZodOptional<import("zod").ZodString>;
560
+ city: import("zod").ZodOptional<import("zod").ZodString>;
561
+ province: import("zod").ZodOptional<import("zod").ZodString>;
562
+ modality: import("zod").ZodOptional<import("zod").ZodEnum<["P", "V"]>>;
559
563
  }, "strip", import("zod").ZodTypeAny, {
560
564
  appointment?: {
561
565
  date: Date;
562
566
  id: number;
563
567
  } | undefined;
568
+ modality?: "P" | "V" | undefined;
564
569
  videoVisit?: {
565
570
  id: number;
566
571
  status: string;
@@ -568,6 +573,9 @@ export declare const doc24Schemas: {
568
573
  paymentStatus?: string | undefined;
569
574
  atentionId?: number | undefined;
570
575
  waitingTime?: string | undefined;
576
+ address?: string | undefined;
577
+ city?: string | undefined;
578
+ province?: string | undefined;
571
579
  id: number | null;
572
580
  patientId: number;
573
581
  creationDate: Date;
@@ -582,6 +590,7 @@ export declare const doc24Schemas: {
582
590
  date: Date;
583
591
  id: number;
584
592
  } | undefined;
593
+ modality?: "P" | "V" | undefined;
585
594
  videoVisit?: {
586
595
  id: number;
587
596
  status: string;
@@ -589,6 +598,9 @@ export declare const doc24Schemas: {
589
598
  paymentStatus?: string | undefined;
590
599
  atentionId?: number | undefined;
591
600
  waitingTime?: string | undefined;
601
+ address?: string | undefined;
602
+ city?: string | undefined;
603
+ province?: string | undefined;
592
604
  id: number | null;
593
605
  patientId: number;
594
606
  creationDate: Date;
@@ -640,6 +652,10 @@ export declare const doc24Schemas: {
640
652
  paymentStatus: import("zod").ZodOptional<import("zod").ZodString>;
641
653
  atentionId: import("zod").ZodOptional<import("zod").ZodNumber>;
642
654
  waitingTime: import("zod").ZodOptional<import("zod").ZodString>;
655
+ address: import("zod").ZodOptional<import("zod").ZodString>;
656
+ city: import("zod").ZodOptional<import("zod").ZodString>;
657
+ province: import("zod").ZodOptional<import("zod").ZodString>;
658
+ modality: import("zod").ZodOptional<import("zod").ZodEnum<["P", "V"]>>;
643
659
  }, {
644
660
  specialty: import("zod").ZodString;
645
661
  professional: import("zod").ZodString;
@@ -648,6 +664,7 @@ export declare const doc24Schemas: {
648
664
  date: Date;
649
665
  id: number;
650
666
  } | undefined;
667
+ modality?: "P" | "V" | undefined;
651
668
  videoVisit?: {
652
669
  id: number;
653
670
  status: string;
@@ -655,6 +672,9 @@ export declare const doc24Schemas: {
655
672
  paymentStatus?: string | undefined;
656
673
  atentionId?: number | undefined;
657
674
  waitingTime?: string | undefined;
675
+ address?: string | undefined;
676
+ city?: string | undefined;
677
+ province?: string | undefined;
658
678
  id: number | null;
659
679
  patientId: number;
660
680
  professional: string;
@@ -671,6 +691,7 @@ export declare const doc24Schemas: {
671
691
  date: Date;
672
692
  id: number;
673
693
  } | undefined;
694
+ modality?: "P" | "V" | undefined;
674
695
  videoVisit?: {
675
696
  id: number;
676
697
  status: string;
@@ -678,6 +699,9 @@ export declare const doc24Schemas: {
678
699
  paymentStatus?: string | undefined;
679
700
  atentionId?: number | undefined;
680
701
  waitingTime?: string | undefined;
702
+ address?: string | undefined;
703
+ city?: string | undefined;
704
+ province?: string | undefined;
681
705
  id: number | null;
682
706
  patientId: number;
683
707
  professional: string;
@@ -885,6 +909,10 @@ export declare const doc24Schemas: {
885
909
  id: import("zod").ZodNumber;
886
910
  status: import("zod").ZodString;
887
911
  paymentStatus: import("zod").ZodString;
912
+ modality: import("zod").ZodOptional<import("zod").ZodEnum<["P", "V"]>>;
913
+ address: import("zod").ZodOptional<import("zod").ZodString>;
914
+ city: import("zod").ZodOptional<import("zod").ZodString>;
915
+ province: import("zod").ZodOptional<import("zod").ZodString>;
888
916
  professional: import("zod").ZodOptional<import("zod").ZodObject<{
889
917
  id: import("zod").ZodNumber;
890
918
  fullName: import("zod").ZodString;
@@ -1051,12 +1079,16 @@ export declare const doc24Schemas: {
1051
1079
  url: string;
1052
1080
  }>, "many">;
1053
1081
  }, "strip", import("zod").ZodTypeAny, {
1082
+ modality?: "P" | "V" | undefined;
1054
1083
  professional?: {
1055
1084
  id: number;
1056
1085
  fullName: string;
1057
1086
  specialtyId: number;
1058
1087
  specialty: string;
1059
1088
  } | undefined;
1089
+ address?: string | undefined;
1090
+ city?: string | undefined;
1091
+ province?: string | undefined;
1060
1092
  retries?: number | null | undefined;
1061
1093
  id: number;
1062
1094
  language: string;
@@ -1104,12 +1136,16 @@ export declare const doc24Schemas: {
1104
1136
  url: string;
1105
1137
  }[];
1106
1138
  }, {
1139
+ modality?: "P" | "V" | undefined;
1107
1140
  professional?: {
1108
1141
  id: number;
1109
1142
  fullName: string;
1110
1143
  specialtyId: number;
1111
1144
  specialty: string;
1112
1145
  } | undefined;
1146
+ address?: string | undefined;
1147
+ city?: string | undefined;
1148
+ province?: string | undefined;
1113
1149
  retries?: number | null | undefined;
1114
1150
  id: number;
1115
1151
  language: string;
package/lib/schemas.js CHANGED
@@ -193,6 +193,10 @@ const videoVisit = zod_1.object({
193
193
  paymentStatus: zod_1.string().optional(),
194
194
  atentionId: zod_1.number().optional(),
195
195
  waitingTime: zod_1.string().optional(),
196
+ address: zod_1.string().optional(),
197
+ city: zod_1.string().optional(),
198
+ province: zod_1.string().optional(),
199
+ modality: zod_1.enum(['P', 'V']).optional(),
196
200
  });
197
201
  const historicalVideoVisit = videoVisit.extend({
198
202
  specialty: zod_1.string(),
@@ -412,6 +416,10 @@ exports.doc24Schemas = {
412
416
  id: zod_1.number(),
413
417
  status: zod_1.string(),
414
418
  paymentStatus: zod_1.string(),
419
+ modality: zod_1.enum(['P', 'V']).optional(),
420
+ address: zod_1.string().optional(),
421
+ city: zod_1.string().optional(),
422
+ province: zod_1.string().optional(),
415
423
  professional: zod_1.object({
416
424
  id: zod_1.number(),
417
425
  fullName: zod_1.string(),
@@ -13,13 +13,13 @@ export declare const getScheduleMethods: (makeRequest: RequestMaker) => {
13
13
  showAppointmentConfiguration?: boolean | undefined;
14
14
  } | undefined) => Promise<{
15
15
  length?: number | null | undefined;
16
+ address?: string | null | undefined;
17
+ city?: string | null | undefined;
18
+ province?: string | null | undefined;
16
19
  ranking?: unknown;
17
20
  consultation_value?: string | null | undefined;
18
21
  inPerson?: boolean | null | undefined;
19
22
  virtual?: boolean | null | undefined;
20
- province?: string | null | undefined;
21
- city?: string | null | undefined;
22
- address?: string | null | undefined;
23
23
  date: Date;
24
24
  type: "appointment" | "chat" | "instant";
25
25
  id: string | number;
@@ -23,6 +23,7 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
23
23
  date: Date;
24
24
  id: number;
25
25
  } | undefined;
26
+ modality?: "P" | "V" | undefined;
26
27
  videoVisit?: {
27
28
  id: number;
28
29
  status: string;
@@ -30,6 +31,9 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
30
31
  paymentStatus?: string | undefined;
31
32
  atentionId?: number | undefined;
32
33
  waitingTime?: string | undefined;
34
+ address?: string | undefined;
35
+ city?: string | undefined;
36
+ province?: string | undefined;
33
37
  id: number | null;
34
38
  patientId: number;
35
39
  creationDate: Date;
@@ -45,6 +49,7 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
45
49
  date: Date;
46
50
  id: number;
47
51
  } | undefined;
52
+ modality?: "P" | "V" | undefined;
48
53
  videoVisit?: {
49
54
  id: number;
50
55
  status: string;
@@ -52,6 +57,9 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
52
57
  paymentStatus?: string | undefined;
53
58
  atentionId?: number | undefined;
54
59
  waitingTime?: string | undefined;
60
+ address?: string | undefined;
61
+ city?: string | undefined;
62
+ province?: string | undefined;
55
63
  id: number | null;
56
64
  patientId: number;
57
65
  professional: string;
@@ -114,12 +122,16 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
114
122
  consultationId: number;
115
123
  }[]>;
116
124
  getCompleteVideoVisitDetails: (vcToken: string) => Promise<{
125
+ modality?: "P" | "V" | undefined;
117
126
  professional?: {
118
127
  id: number;
119
128
  fullName: string;
120
129
  specialtyId: number;
121
130
  specialty: string;
122
131
  } | undefined;
132
+ address?: string | undefined;
133
+ city?: string | undefined;
134
+ province?: string | undefined;
123
135
  retries?: number | null | undefined;
124
136
  id: number;
125
137
  language: string;
@@ -16,7 +16,7 @@ const getVideoVisitMethods = (makeRequest) => {
16
16
  ? {
17
17
  type: 'P',
18
18
  appointment_id: params.appointmentId,
19
- modaility: params.modality || 'A',
19
+ modality: params.modality || 'A',
20
20
  }
21
21
  : { type: 'E' };
22
22
  const mappedParams = {
@@ -25,7 +25,7 @@ const getVideoVisitMethods = (makeRequest) => {
25
25
  specialty_id: params.specialtyId,
26
26
  language: params.language.toUpperCase(),
27
27
  details: params.details,
28
- extra_info: params.extraInfo,
28
+ extra_info: { ...params.extraInfo, modality: params.modality || 'A' },
29
29
  };
30
30
  const response = await makeRequest('POST', '/video-visit', mappedParams);
31
31
  return response.data.vc_token;
@@ -126,6 +126,10 @@ const getVideoVisitMethods = (makeRequest) => {
126
126
  id: response.data.id_consulta,
127
127
  status: response.data.estado,
128
128
  paymentStatus: response.data.estado_pago,
129
+ modality: response.data.modalidad,
130
+ address: response.data.direccion,
131
+ city: response.data.localidad,
132
+ province: response.data.provincia,
129
133
  professional: response.data.id_profesional
130
134
  ? {
131
135
  id: response.data.id_profesional,
@@ -212,7 +216,7 @@ const getVideoVisitMethods = (makeRequest) => {
212
216
  };
213
217
  exports.getVideoVisitMethods = getVideoVisitMethods;
214
218
  const mapVideoVisit = (raw) => {
215
- var _a, _b, _c;
219
+ var _a, _b, _c, _d, _e, _f, _g;
216
220
  return {
217
221
  id: raw.vc_id,
218
222
  creationDate: utils_1.parseDateTime(raw.creation_date),
@@ -231,6 +235,10 @@ const mapVideoVisit = (raw) => {
231
235
  paymentStatus: (_a = raw.payment_status) !== null && _a !== void 0 ? _a : undefined,
232
236
  atentionId: (_b = raw.atentionId) !== null && _b !== void 0 ? _b : undefined,
233
237
  waitingTime: (_c = raw.waiting_time) !== null && _c !== void 0 ? _c : undefined,
238
+ address: (_d = raw.direccion) !== null && _d !== void 0 ? _d : undefined,
239
+ city: (_e = raw.localidad) !== null && _e !== void 0 ? _e : undefined,
240
+ province: (_f = raw.provincia) !== null && _f !== void 0 ? _f : undefined,
241
+ modality: (_g = raw.modalidad) !== null && _g !== void 0 ? _g : undefined,
234
242
  };
235
243
  };
236
244
  const mapHistoricalVideoVisit = (raw) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.27",
3
+ "version": "1.16.29",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },