@integraciones_doc24/sdk 1.5.0 → 1.5.1
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 +10 -0
- package/lib/schemas.js +2 -0
- package/lib/userSdk/patients.d.ts +2 -0
- package/lib/userSdk/patients.js +6 -1
- package/package.json +1 -1
package/lib/schemas.d.ts
CHANGED
|
@@ -1286,12 +1286,18 @@ export declare const doc24Schemas: {
|
|
|
1286
1286
|
}>>;
|
|
1287
1287
|
declarePatientResponse: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1288
1288
|
userInfo: import("zod").ZodObject<{
|
|
1289
|
+
firstName: import("zod").ZodString;
|
|
1290
|
+
lastName: import("zod").ZodString;
|
|
1289
1291
|
email: import("zod").ZodString;
|
|
1290
1292
|
phone: import("zod").ZodString;
|
|
1291
1293
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1294
|
+
firstName: string;
|
|
1295
|
+
lastName: string;
|
|
1292
1296
|
phone: string;
|
|
1293
1297
|
email: string;
|
|
1294
1298
|
}, {
|
|
1299
|
+
firstName: string;
|
|
1300
|
+
lastName: string;
|
|
1295
1301
|
phone: string;
|
|
1296
1302
|
email: string;
|
|
1297
1303
|
}>;
|
|
@@ -1299,12 +1305,16 @@ export declare const doc24Schemas: {
|
|
|
1299
1305
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1300
1306
|
askCode: true;
|
|
1301
1307
|
userInfo: {
|
|
1308
|
+
firstName: string;
|
|
1309
|
+
lastName: string;
|
|
1302
1310
|
phone: string;
|
|
1303
1311
|
email: string;
|
|
1304
1312
|
};
|
|
1305
1313
|
}, {
|
|
1306
1314
|
askCode: true;
|
|
1307
1315
|
userInfo: {
|
|
1316
|
+
firstName: string;
|
|
1317
|
+
lastName: string;
|
|
1308
1318
|
phone: string;
|
|
1309
1319
|
email: string;
|
|
1310
1320
|
};
|
package/lib/schemas.js
CHANGED
|
@@ -191,6 +191,8 @@ const declarePatientParams = zod_1.object({
|
|
|
191
191
|
}).and(verificationParams);
|
|
192
192
|
const declarePatientResponse = zod_1.object({
|
|
193
193
|
userInfo: zod_1.object({
|
|
194
|
+
firstName: zod_1.string(),
|
|
195
|
+
lastName: zod_1.string(),
|
|
194
196
|
email: zod_1.string(),
|
|
195
197
|
phone: zod_1.string(),
|
|
196
198
|
}),
|
package/lib/userSdk/patients.js
CHANGED
|
@@ -26,7 +26,12 @@ const getPatientMethods = (makeRequest) => {
|
|
|
26
26
|
const data = response.data;
|
|
27
27
|
if (data.ask_code)
|
|
28
28
|
return {
|
|
29
|
-
userInfo:
|
|
29
|
+
userInfo: {
|
|
30
|
+
firstName: data.user_info.firstname,
|
|
31
|
+
lastName: data.user_info.lastname,
|
|
32
|
+
phone: data.user_info.phone,
|
|
33
|
+
email: data.user_info.email,
|
|
34
|
+
},
|
|
30
35
|
askCode: true,
|
|
31
36
|
};
|
|
32
37
|
return { askCode: false, patientId: data.patient_id };
|