@integraciones_doc24/sdk 1.15.12 → 1.15.13
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/baseSdk/index.js +3 -1
- package/lib/index.d.ts +2 -0
- package/lib/schemas.d.ts +6 -0
- package/lib/schemas.js +8 -3
- package/package.json +1 -1
package/lib/baseSdk/index.js
CHANGED
|
@@ -42,7 +42,9 @@ const getBaseSdk = async (url, credentials) => {
|
|
|
42
42
|
link: raw.resume_link,
|
|
43
43
|
brief: raw.resume_brief,
|
|
44
44
|
},
|
|
45
|
-
consultation_value: raw.consultation_value
|
|
45
|
+
consultation_value: raw.consultation_value,
|
|
46
|
+
hasAvailability: raw.hasAvailability,
|
|
47
|
+
status: raw.status,
|
|
46
48
|
};
|
|
47
49
|
}),
|
|
48
50
|
getAvailableScheduleClinics: validation_1.validateFunction(zod_1.tuple([]), schemas_1.doc24Schemas.availableScheduleClinics, async () => {
|
package/lib/index.d.ts
CHANGED
|
@@ -55,7 +55,9 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
55
55
|
}) => Promise<Doc24.UserSdk>;
|
|
56
56
|
getProfessional: (professionalId: number) => Promise<{
|
|
57
57
|
gender?: "m" | "f" | "o" | undefined;
|
|
58
|
+
status?: "active" | "deactivated" | undefined;
|
|
58
59
|
consultation_value?: string | null | undefined;
|
|
60
|
+
hasAvailability?: boolean | undefined;
|
|
59
61
|
firstName: string;
|
|
60
62
|
lastName: string;
|
|
61
63
|
birthdate: Date;
|
package/lib/schemas.d.ts
CHANGED
|
@@ -773,9 +773,13 @@ export declare const doc24Schemas: {
|
|
|
773
773
|
brief: string;
|
|
774
774
|
}>;
|
|
775
775
|
consultation_value: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
776
|
+
hasAvailability: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
777
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["active", "deactivated"]>>;
|
|
776
778
|
}, "strip", import("zod").ZodTypeAny, {
|
|
777
779
|
gender?: "m" | "f" | "o" | undefined;
|
|
780
|
+
status?: "active" | "deactivated" | undefined;
|
|
778
781
|
consultation_value?: string | null | undefined;
|
|
782
|
+
hasAvailability?: boolean | undefined;
|
|
779
783
|
firstName: string;
|
|
780
784
|
lastName: string;
|
|
781
785
|
birthdate: Date;
|
|
@@ -799,7 +803,9 @@ export declare const doc24Schemas: {
|
|
|
799
803
|
};
|
|
800
804
|
}, {
|
|
801
805
|
gender?: "m" | "f" | "o" | undefined;
|
|
806
|
+
status?: "active" | "deactivated" | undefined;
|
|
802
807
|
consultation_value?: string | null | undefined;
|
|
808
|
+
hasAvailability?: boolean | undefined;
|
|
803
809
|
firstName: string;
|
|
804
810
|
lastName: string;
|
|
805
811
|
birthdate: Date;
|
package/lib/schemas.js
CHANGED
|
@@ -15,7 +15,10 @@ const basePersonData = zod_1.object({
|
|
|
15
15
|
gender,
|
|
16
16
|
});
|
|
17
17
|
const patient = basePersonData;
|
|
18
|
-
const user = basePersonData.extend({
|
|
18
|
+
const user = basePersonData.extend({
|
|
19
|
+
phone: zod_1.string().optional(),
|
|
20
|
+
email: zod_1.string(),
|
|
21
|
+
});
|
|
19
22
|
const specialtyMode = zod_1.enum(['appointment', 'chat', 'instant']);
|
|
20
23
|
const specialty = zod_1.object({
|
|
21
24
|
id: zod_1.number(),
|
|
@@ -41,7 +44,7 @@ const availableAppointment = zod_1.object({
|
|
|
41
44
|
atentions: zod_1.number(),
|
|
42
45
|
ranking: zod_1.unknown(),
|
|
43
46
|
length: zod_1.number().nullish(),
|
|
44
|
-
consultation_value: zod_1.string().optional().nullish()
|
|
47
|
+
consultation_value: zod_1.string().optional().nullish(),
|
|
45
48
|
});
|
|
46
49
|
const appointment = zod_1.object({
|
|
47
50
|
id: zod_1.number(),
|
|
@@ -382,7 +385,9 @@ exports.doc24Schemas = {
|
|
|
382
385
|
link: zod_1.string(),
|
|
383
386
|
brief: zod_1.string(),
|
|
384
387
|
}),
|
|
385
|
-
consultation_value: zod_1.string().optional().nullish()
|
|
388
|
+
consultation_value: zod_1.string().optional().nullish(),
|
|
389
|
+
hasAvailability: zod_1.boolean().optional(),
|
|
390
|
+
status: zod_1.enum(['active', 'deactivated']).optional(),
|
|
386
391
|
}),
|
|
387
392
|
appointment,
|
|
388
393
|
chatroomAvailabilityFilter,
|