@integraciones_doc24/sdk 1.16.7 → 1.16.9

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.
@@ -6,6 +6,13 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
6
6
  identificationType?: number | undefined;
7
7
  identificationValue?: string | undefined;
8
8
  gender?: "m" | "f" | "o" | undefined;
9
+ emergencyContact?: string | null | undefined;
10
+ emergencyContactPhone?: string | number | null | undefined;
11
+ credential?: string | null | undefined;
12
+ plan?: string | null | undefined;
13
+ affiliationStatus?: string | null | undefined;
14
+ localidad?: string | null | undefined;
15
+ codPostal?: string | null | undefined;
9
16
  phone?: string | undefined;
10
17
  firstName: string;
11
18
  lastName: string;
@@ -31,6 +38,13 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
31
38
  identificationType?: number | undefined;
32
39
  identificationValue?: string | undefined;
33
40
  gender?: "m" | "f" | "o" | undefined;
41
+ emergencyContact?: string | null | undefined;
42
+ emergencyContactPhone?: string | number | null | undefined;
43
+ credential?: string | null | undefined;
44
+ plan?: string | null | undefined;
45
+ affiliationStatus?: string | null | undefined;
46
+ localidad?: string | null | undefined;
47
+ codPostal?: string | null | undefined;
34
48
  phone?: string | undefined;
35
49
  firstName: string;
36
50
  lastName: string;
@@ -47,6 +61,13 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
47
61
  identificationType?: number | undefined;
48
62
  identificationValue?: string | undefined;
49
63
  gender?: "m" | "f" | "o" | undefined;
64
+ emergencyContact?: string | null | undefined;
65
+ emergencyContactPhone?: string | number | null | undefined;
66
+ credential?: string | null | undefined;
67
+ plan?: string | null | undefined;
68
+ affiliationStatus?: string | null | undefined;
69
+ localidad?: string | null | undefined;
70
+ codPostal?: string | null | undefined;
50
71
  phone?: string | undefined;
51
72
  firstName: string;
52
73
  lastName: string;
@@ -59,19 +80,19 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
59
80
  firstName: string;
60
81
  lastName: string;
61
82
  birthdate: Date;
83
+ plan: string;
62
84
  email: string;
63
85
  identificationNumber: string;
64
86
  startDate: Date;
65
- plan: string;
66
87
  }) => Promise<void>;
67
88
  getCoverageInfo: (identificationValue: string) => Promise<{
68
89
  gender?: "m" | "f" | "o" | undefined;
69
90
  firstName: string | null;
70
91
  lastName: string | null;
71
92
  birthdate: Date;
93
+ plan: string | null;
72
94
  email: string | null;
73
95
  identificationNumber: string;
74
- plan: string | null;
75
96
  financerId: number | null;
76
97
  defaultAffiliationId: number | null;
77
98
  credentialNumber: string | null;
package/lib/index.d.ts CHANGED
@@ -10,6 +10,13 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
10
10
  identificationType?: number | undefined;
11
11
  identificationValue?: string | undefined;
12
12
  gender?: "m" | "f" | "o" | undefined;
13
+ emergencyContact?: string | null | undefined;
14
+ emergencyContactPhone?: string | number | null | undefined;
15
+ credential?: string | null | undefined;
16
+ plan?: string | null | undefined;
17
+ affiliationStatus?: string | null | undefined;
18
+ localidad?: string | null | undefined;
19
+ codPostal?: string | null | undefined;
13
20
  phone?: string | undefined;
14
21
  firstName: string;
15
22
  lastName: string;
@@ -35,6 +42,13 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
35
42
  identificationType?: number | undefined;
36
43
  identificationValue?: string | undefined;
37
44
  gender?: "m" | "f" | "o" | undefined;
45
+ emergencyContact?: string | null | undefined;
46
+ emergencyContactPhone?: string | number | null | undefined;
47
+ credential?: string | null | undefined;
48
+ plan?: string | null | undefined;
49
+ affiliationStatus?: string | null | undefined;
50
+ localidad?: string | null | undefined;
51
+ codPostal?: string | null | undefined;
38
52
  phone?: string | undefined;
39
53
  firstName: string;
40
54
  lastName: string;
@@ -46,6 +60,13 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
46
60
  identificationType?: number | undefined;
47
61
  identificationValue?: string | undefined;
48
62
  gender?: "m" | "f" | "o" | undefined;
63
+ emergencyContact?: string | null | undefined;
64
+ emergencyContactPhone?: string | number | null | undefined;
65
+ credential?: string | null | undefined;
66
+ plan?: string | null | undefined;
67
+ affiliationStatus?: string | null | undefined;
68
+ localidad?: string | null | undefined;
69
+ codPostal?: string | null | undefined;
49
70
  phone?: string | undefined;
50
71
  firstName: string;
51
72
  lastName: string;
@@ -104,19 +125,19 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
104
125
  firstName: string;
105
126
  lastName: string;
106
127
  birthdate: Date;
128
+ plan: string;
107
129
  email: string;
108
130
  identificationNumber: string;
109
131
  startDate: Date;
110
- plan: string;
111
132
  }) => Promise<void>;
112
133
  getCoverageInfo: (identificationValue: string) => Promise<{
113
134
  gender?: "m" | "f" | "o" | undefined;
114
135
  firstName: string | null;
115
136
  lastName: string | null;
116
137
  birthdate: Date;
138
+ plan: string | null;
117
139
  email: string | null;
118
140
  identificationNumber: string;
119
- plan: string | null;
120
141
  financerId: number | null;
121
142
  defaultAffiliationId: number | null;
122
143
  credentialNumber: string | null;
package/lib/schemas.d.ts CHANGED
@@ -42,6 +42,13 @@ export declare const doc24Schemas: {
42
42
  countryId: import("zod").ZodString;
43
43
  birthdate: import("zod").ZodDate;
44
44
  gender: import("zod").ZodOptional<import("zod").ZodEnum<["m", "f", "o"]>>;
45
+ emergencyContact: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
46
+ emergencyContactPhone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
47
+ credential: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
48
+ plan: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
49
+ affiliationStatus: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
50
+ localidad: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
51
+ codPostal: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
45
52
  }, {
46
53
  phone: import("zod").ZodOptional<import("zod").ZodString>;
47
54
  email: import("zod").ZodString;
@@ -49,6 +56,13 @@ export declare const doc24Schemas: {
49
56
  identificationType?: number | undefined;
50
57
  identificationValue?: string | undefined;
51
58
  gender?: "m" | "f" | "o" | undefined;
59
+ emergencyContact?: string | null | undefined;
60
+ emergencyContactPhone?: string | number | null | undefined;
61
+ credential?: string | null | undefined;
62
+ plan?: string | null | undefined;
63
+ affiliationStatus?: string | null | undefined;
64
+ localidad?: string | null | undefined;
65
+ codPostal?: string | null | undefined;
52
66
  phone?: string | undefined;
53
67
  firstName: string;
54
68
  lastName: string;
@@ -59,6 +73,13 @@ export declare const doc24Schemas: {
59
73
  identificationType?: number | undefined;
60
74
  identificationValue?: string | undefined;
61
75
  gender?: "m" | "f" | "o" | undefined;
76
+ emergencyContact?: string | null | undefined;
77
+ emergencyContactPhone?: string | number | null | undefined;
78
+ credential?: string | null | undefined;
79
+ plan?: string | null | undefined;
80
+ affiliationStatus?: string | null | undefined;
81
+ localidad?: string | null | undefined;
82
+ codPostal?: string | null | undefined;
62
83
  phone?: string | undefined;
63
84
  firstName: string;
64
85
  lastName: string;
@@ -74,10 +95,24 @@ export declare const doc24Schemas: {
74
95
  countryId: import("zod").ZodString;
75
96
  birthdate: import("zod").ZodDate;
76
97
  gender: import("zod").ZodOptional<import("zod").ZodEnum<["m", "f", "o"]>>;
98
+ emergencyContact: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
99
+ emergencyContactPhone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
100
+ credential: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
101
+ plan: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
102
+ affiliationStatus: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
103
+ localidad: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
104
+ codPostal: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
77
105
  }, "strip", import("zod").ZodTypeAny, {
78
106
  identificationType?: number | undefined;
79
107
  identificationValue?: string | undefined;
80
108
  gender?: "m" | "f" | "o" | undefined;
109
+ emergencyContact?: string | null | undefined;
110
+ emergencyContactPhone?: string | number | null | undefined;
111
+ credential?: string | null | undefined;
112
+ plan?: string | null | undefined;
113
+ affiliationStatus?: string | null | undefined;
114
+ localidad?: string | null | undefined;
115
+ codPostal?: string | null | undefined;
81
116
  firstName: string;
82
117
  lastName: string;
83
118
  countryId: string;
@@ -86,6 +121,13 @@ export declare const doc24Schemas: {
86
121
  identificationType?: number | undefined;
87
122
  identificationValue?: string | undefined;
88
123
  gender?: "m" | "f" | "o" | undefined;
124
+ emergencyContact?: string | null | undefined;
125
+ emergencyContactPhone?: string | number | null | undefined;
126
+ credential?: string | null | undefined;
127
+ plan?: string | null | undefined;
128
+ affiliationStatus?: string | null | undefined;
129
+ localidad?: string | null | undefined;
130
+ codPostal?: string | null | undefined;
89
131
  firstName: string;
90
132
  lastName: string;
91
133
  countryId: string;
@@ -1090,19 +1132,19 @@ export declare const doc24Schemas: {
1090
1132
  firstName: string;
1091
1133
  lastName: string;
1092
1134
  birthdate: Date;
1135
+ plan: string;
1093
1136
  email: string;
1094
1137
  identificationNumber: string;
1095
1138
  startDate: Date;
1096
- plan: string;
1097
1139
  }, {
1098
1140
  gender?: "m" | "f" | "o" | undefined;
1099
1141
  firstName: string;
1100
1142
  lastName: string;
1101
1143
  birthdate: Date;
1144
+ plan: string;
1102
1145
  email: string;
1103
1146
  identificationNumber: string;
1104
1147
  startDate: Date;
1105
- plan: string;
1106
1148
  }>;
1107
1149
  diagnosticaPatientFilter: import("zod").ZodObject<{
1108
1150
  gender: import("zod").ZodOptional<import("zod").ZodEnum<["m", "f", "o"]>>;
@@ -1231,9 +1273,9 @@ export declare const doc24Schemas: {
1231
1273
  firstName: string | null;
1232
1274
  lastName: string | null;
1233
1275
  birthdate: Date;
1276
+ plan: string | null;
1234
1277
  email: string | null;
1235
1278
  identificationNumber: string;
1236
- plan: string | null;
1237
1279
  financerId: number | null;
1238
1280
  defaultAffiliationId: number | null;
1239
1281
  credentialNumber: string | null;
@@ -1254,9 +1296,9 @@ export declare const doc24Schemas: {
1254
1296
  firstName: string | null;
1255
1297
  lastName: string | null;
1256
1298
  birthdate: Date;
1299
+ plan: string | null;
1257
1300
  email: string | null;
1258
1301
  identificationNumber: string;
1259
- plan: string | null;
1260
1302
  financerId: number | null;
1261
1303
  defaultAffiliationId: number | null;
1262
1304
  credentialNumber: string | null;
@@ -1295,6 +1337,13 @@ export declare const doc24Schemas: {
1295
1337
  countryId: import("zod").ZodString;
1296
1338
  birthdate: import("zod").ZodDate;
1297
1339
  gender: import("zod").ZodOptional<import("zod").ZodEnum<["m", "f", "o"]>>;
1340
+ emergencyContact: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1341
+ emergencyContactPhone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
1342
+ credential: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1343
+ plan: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1344
+ affiliationStatus: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1345
+ localidad: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1346
+ codPostal: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1298
1347
  }, {
1299
1348
  phone: import("zod").ZodOptional<import("zod").ZodString>;
1300
1349
  email: import("zod").ZodString;
@@ -1302,6 +1351,13 @@ export declare const doc24Schemas: {
1302
1351
  identificationType?: number | undefined;
1303
1352
  identificationValue?: string | undefined;
1304
1353
  gender?: "m" | "f" | "o" | undefined;
1354
+ emergencyContact?: string | null | undefined;
1355
+ emergencyContactPhone?: string | number | null | undefined;
1356
+ credential?: string | null | undefined;
1357
+ plan?: string | null | undefined;
1358
+ affiliationStatus?: string | null | undefined;
1359
+ localidad?: string | null | undefined;
1360
+ codPostal?: string | null | undefined;
1305
1361
  phone?: string | undefined;
1306
1362
  firstName: string;
1307
1363
  lastName: string;
@@ -1312,6 +1368,13 @@ export declare const doc24Schemas: {
1312
1368
  identificationType?: number | undefined;
1313
1369
  identificationValue?: string | undefined;
1314
1370
  gender?: "m" | "f" | "o" | undefined;
1371
+ emergencyContact?: string | null | undefined;
1372
+ emergencyContactPhone?: string | number | null | undefined;
1373
+ credential?: string | null | undefined;
1374
+ plan?: string | null | undefined;
1375
+ affiliationStatus?: string | null | undefined;
1376
+ localidad?: string | null | undefined;
1377
+ codPostal?: string | null | undefined;
1315
1378
  phone?: string | undefined;
1316
1379
  firstName: string;
1317
1380
  lastName: string;
@@ -1324,6 +1387,13 @@ export declare const doc24Schemas: {
1324
1387
  identificationType?: number | undefined;
1325
1388
  identificationValue?: string | undefined;
1326
1389
  gender?: "m" | "f" | "o" | undefined;
1390
+ emergencyContact?: string | null | undefined;
1391
+ emergencyContactPhone?: string | number | null | undefined;
1392
+ credential?: string | null | undefined;
1393
+ plan?: string | null | undefined;
1394
+ affiliationStatus?: string | null | undefined;
1395
+ localidad?: string | null | undefined;
1396
+ codPostal?: string | null | undefined;
1327
1397
  phone?: string | undefined;
1328
1398
  firstName: string;
1329
1399
  lastName: string;
@@ -1336,6 +1406,13 @@ export declare const doc24Schemas: {
1336
1406
  identificationType?: number | undefined;
1337
1407
  identificationValue?: string | undefined;
1338
1408
  gender?: "m" | "f" | "o" | undefined;
1409
+ emergencyContact?: string | null | undefined;
1410
+ emergencyContactPhone?: string | number | null | undefined;
1411
+ credential?: string | null | undefined;
1412
+ plan?: string | null | undefined;
1413
+ affiliationStatus?: string | null | undefined;
1414
+ localidad?: string | null | undefined;
1415
+ codPostal?: string | null | undefined;
1339
1416
  phone?: string | undefined;
1340
1417
  firstName: string;
1341
1418
  lastName: string;
@@ -1399,10 +1476,24 @@ export declare const doc24Schemas: {
1399
1476
  countryId: import("zod").ZodString;
1400
1477
  birthdate: import("zod").ZodDate;
1401
1478
  gender: import("zod").ZodOptional<import("zod").ZodEnum<["m", "f", "o"]>>;
1479
+ emergencyContact: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1480
+ emergencyContactPhone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>>>;
1481
+ credential: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1482
+ plan: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1483
+ affiliationStatus: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1484
+ localidad: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1485
+ codPostal: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
1402
1486
  }, "strip", import("zod").ZodTypeAny, {
1403
1487
  identificationType?: number | undefined;
1404
1488
  identificationValue?: string | undefined;
1405
1489
  gender?: "m" | "f" | "o" | undefined;
1490
+ emergencyContact?: string | null | undefined;
1491
+ emergencyContactPhone?: string | number | null | undefined;
1492
+ credential?: string | null | undefined;
1493
+ plan?: string | null | undefined;
1494
+ affiliationStatus?: string | null | undefined;
1495
+ localidad?: string | null | undefined;
1496
+ codPostal?: string | null | undefined;
1406
1497
  firstName: string;
1407
1498
  lastName: string;
1408
1499
  countryId: string;
@@ -1411,6 +1502,13 @@ export declare const doc24Schemas: {
1411
1502
  identificationType?: number | undefined;
1412
1503
  identificationValue?: string | undefined;
1413
1504
  gender?: "m" | "f" | "o" | undefined;
1505
+ emergencyContact?: string | null | undefined;
1506
+ emergencyContactPhone?: string | number | null | undefined;
1507
+ credential?: string | null | undefined;
1508
+ plan?: string | null | undefined;
1509
+ affiliationStatus?: string | null | undefined;
1510
+ localidad?: string | null | undefined;
1511
+ codPostal?: string | null | undefined;
1414
1512
  firstName: string;
1415
1513
  lastName: string;
1416
1514
  countryId: string;
@@ -1421,6 +1519,13 @@ export declare const doc24Schemas: {
1421
1519
  identificationType?: number | undefined;
1422
1520
  identificationValue?: string | undefined;
1423
1521
  gender?: "m" | "f" | "o" | undefined;
1522
+ emergencyContact?: string | null | undefined;
1523
+ emergencyContactPhone?: string | number | null | undefined;
1524
+ credential?: string | null | undefined;
1525
+ plan?: string | null | undefined;
1526
+ affiliationStatus?: string | null | undefined;
1527
+ localidad?: string | null | undefined;
1528
+ codPostal?: string | null | undefined;
1424
1529
  firstName: string;
1425
1530
  lastName: string;
1426
1531
  countryId: string;
@@ -1431,6 +1536,13 @@ export declare const doc24Schemas: {
1431
1536
  identificationType?: number | undefined;
1432
1537
  identificationValue?: string | undefined;
1433
1538
  gender?: "m" | "f" | "o" | undefined;
1539
+ emergencyContact?: string | null | undefined;
1540
+ emergencyContactPhone?: string | number | null | undefined;
1541
+ credential?: string | null | undefined;
1542
+ plan?: string | null | undefined;
1543
+ affiliationStatus?: string | null | undefined;
1544
+ localidad?: string | null | undefined;
1545
+ codPostal?: string | null | undefined;
1434
1546
  firstName: string;
1435
1547
  lastName: string;
1436
1548
  countryId: string;
@@ -1841,20 +1953,44 @@ export declare const doc24Schemas: {
1841
1953
  signature: string;
1842
1954
  }>;
1843
1955
  binahWellnessGetLinkParams: import("zod").ZodObject<{
1844
- provider: import("zod").ZodString;
1956
+ socket: import("zod").ZodObject<{
1957
+ device: import("zod").ZodString;
1958
+ provider: import("zod").ZodString;
1959
+ socketUrl: import("zod").ZodString;
1960
+ callbackUrl: import("zod").ZodString;
1961
+ socketAuthToken: import("zod").ZodString;
1962
+ }, "strip", import("zod").ZodTypeAny, {
1963
+ device: string;
1964
+ provider: string;
1965
+ socketUrl: string;
1966
+ callbackUrl: string;
1967
+ socketAuthToken: string;
1968
+ }, {
1969
+ device: string;
1970
+ provider: string;
1971
+ socketUrl: string;
1972
+ callbackUrl: string;
1973
+ socketAuthToken: string;
1974
+ }>;
1845
1975
  patientId: import("zod").ZodNumber;
1846
- socketUrl: import("zod").ZodString;
1847
- socketAuthToken: import("zod").ZodString;
1848
1976
  }, "strip", import("zod").ZodTypeAny, {
1849
1977
  patientId: number;
1850
- provider: string;
1851
- socketUrl: string;
1852
- socketAuthToken: string;
1978
+ socket: {
1979
+ device: string;
1980
+ provider: string;
1981
+ socketUrl: string;
1982
+ callbackUrl: string;
1983
+ socketAuthToken: string;
1984
+ };
1853
1985
  }, {
1854
1986
  patientId: number;
1855
- provider: string;
1856
- socketUrl: string;
1857
- socketAuthToken: string;
1987
+ socket: {
1988
+ device: string;
1989
+ provider: string;
1990
+ socketUrl: string;
1991
+ callbackUrl: string;
1992
+ socketAuthToken: string;
1993
+ };
1858
1994
  }>;
1859
1995
  emailOrPhone: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodObject<{
1860
1996
  email: import("zod").ZodString;
package/lib/schemas.js CHANGED
@@ -13,6 +13,13 @@ const basePersonData = zod_1.object({
13
13
  countryId: zod_1.string(),
14
14
  birthdate: zod_1.date(),
15
15
  gender,
16
+ emergencyContact: zod_1.string().nullish(),
17
+ emergencyContactPhone: zod_1.number().or(zod_1.string()).nullish(),
18
+ credential: zod_1.string().nullish(),
19
+ plan: zod_1.string().nullish(),
20
+ affiliationStatus: zod_1.string().nullish(),
21
+ localidad: zod_1.string().nullish(),
22
+ codPostal: zod_1.string().nullish(),
16
23
  });
17
24
  const patient = basePersonData;
18
25
  const user = basePersonData.extend({
@@ -305,10 +312,14 @@ const externalAppointment = zod_1.object({
305
312
  modality: zod_1.string(),
306
313
  });
307
314
  const binahWellnessGetLinkParams = zod_1.object({
308
- provider: zod_1.string(),
315
+ socket: zod_1.object({
316
+ device: zod_1.string(),
317
+ provider: zod_1.string(),
318
+ socketUrl: zod_1.string(),
319
+ callbackUrl: zod_1.string(),
320
+ socketAuthToken: zod_1.string(),
321
+ }),
309
322
  patientId: zod_1.number(),
310
- socketUrl: zod_1.string(),
311
- socketAuthToken: zod_1.string(),
312
323
  });
313
324
  const binahWellnessResponse = zod_1.object({
314
325
  data: zod_1.object({
@@ -2,9 +2,13 @@ import { RequestMaker } from '../request';
2
2
  export declare const getBinahWellnessMethods: (makeRequest: RequestMaker) => {
3
3
  getBinahWellnessLink: (body: {
4
4
  patientId: number;
5
- provider: string;
6
- socketUrl: string;
7
- socketAuthToken: string;
5
+ socket: {
6
+ device: string;
7
+ provider: string;
8
+ socketUrl: string;
9
+ callbackUrl: string;
10
+ socketAuthToken: string;
11
+ };
8
12
  }) => Promise<{
9
13
  data: {
10
14
  info: {
@@ -9,11 +9,7 @@ const getBinahWellnessMethods = (makeRequest) => {
9
9
  const path = `/wellness-test`;
10
10
  const response = await makeRequest('POST', path, {
11
11
  patient_id: body.patientId,
12
- socket: {
13
- provider: body.provider,
14
- socketUrl: body.socketUrl,
15
- socketAuthToken: body.socketAuthToken,
16
- },
12
+ socket: body.socket,
17
13
  });
18
14
  return response;
19
15
  };
@@ -5,6 +5,13 @@ export declare const getPatientMethods: (makeRequest: RequestMaker) => {
5
5
  identificationType?: number | undefined;
6
6
  identificationValue?: string | undefined;
7
7
  gender?: "m" | "f" | "o" | undefined;
8
+ emergencyContact?: string | null | undefined;
9
+ emergencyContactPhone?: string | number | null | undefined;
10
+ credential?: string | null | undefined;
11
+ plan?: string | null | undefined;
12
+ affiliationStatus?: string | null | undefined;
13
+ localidad?: string | null | undefined;
14
+ codPostal?: string | null | undefined;
8
15
  firstName: string;
9
16
  lastName: string;
10
17
  countryId: string;
@@ -29,6 +36,13 @@ export declare const getPatientMethods: (makeRequest: RequestMaker) => {
29
36
  identificationType?: number | undefined;
30
37
  identificationValue?: string | undefined;
31
38
  gender?: "m" | "f" | "o" | undefined;
39
+ emergencyContact?: string | null | undefined;
40
+ emergencyContactPhone?: string | number | null | undefined;
41
+ credential?: string | null | undefined;
42
+ plan?: string | null | undefined;
43
+ affiliationStatus?: string | null | undefined;
44
+ localidad?: string | null | undefined;
45
+ codPostal?: string | null | undefined;
32
46
  firstName: string;
33
47
  lastName: string;
34
48
  countryId: string;
@@ -17,6 +17,13 @@ const getPatientMethods = (makeRequest) => {
17
17
  birthdate: date_fns_1.format(patient.birthdate, 'yyyy-MM-dd'),
18
18
  gender: (_a = patient.gender) === null || _a === void 0 ? void 0 : _a.toUpperCase(),
19
19
  country_id: patient.countryId,
20
+ emergency_contact: patient.emergencyContact,
21
+ emergency_contact_phone: patient.emergencyContactPhone,
22
+ credential: patient.credential,
23
+ plan: patient.plan,
24
+ affiliation_status: patient.affiliationStatus,
25
+ localidad: patient.localidad,
26
+ cod_postal: patient.codPostal,
20
27
  };
21
28
  const parsedChannel = channel ? parseInt(channel) : channel;
22
29
  const response = await makeRequest('POST', path, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.7",
3
+ "version": "1.16.9",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },