@integraciones_doc24/sdk 0.42.3 → 0.42.4

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
@@ -43,6 +43,8 @@ export declare const doc24Schemas: {
43
43
  countryId: import("zod").ZodString;
44
44
  birthdate: import("zod").ZodDate;
45
45
  gender: import("zod").ZodEnum<["m", "f"]>;
46
+ email: import("zod").ZodString;
47
+ phone: import("zod").ZodString;
46
48
  }, {
47
49
  phone: import("zod").ZodString;
48
50
  email: import("zod").ZodString;
@@ -75,12 +77,16 @@ export declare const doc24Schemas: {
75
77
  countryId: import("zod").ZodString;
76
78
  birthdate: import("zod").ZodDate;
77
79
  gender: import("zod").ZodEnum<["m", "f"]>;
80
+ email: import("zod").ZodString;
81
+ phone: import("zod").ZodString;
78
82
  }, "strip", import("zod").ZodTypeAny, {
79
83
  firstName: string;
80
84
  lastName: string;
81
85
  identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg" | "rut" | "cuit";
82
86
  identificationValue: string;
83
87
  gender: "m" | "f";
88
+ phone: string;
89
+ email: string;
84
90
  countryId: string;
85
91
  birthdate: Date;
86
92
  }, {
@@ -89,6 +95,8 @@ export declare const doc24Schemas: {
89
95
  identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg" | "rut" | "cuit";
90
96
  identificationValue: string;
91
97
  gender: "m" | "f";
98
+ phone: string;
99
+ email: string;
92
100
  countryId: string;
93
101
  birthdate: Date;
94
102
  }>;
package/lib/schemas.js CHANGED
@@ -23,6 +23,8 @@ const basePersonData = zod_1.object({
23
23
  countryId: zod_1.string(),
24
24
  birthdate: zod_1.date(),
25
25
  gender,
26
+ email: zod_1.string().email(),
27
+ phone: zod_1.string(),
26
28
  });
27
29
  const specialtyMode = zod_1.enum(['appointment', 'chat', 'instant']);
28
30
  const specialty = zod_1.object({
@@ -6,6 +6,8 @@ export declare const getPatientMethods: (makeRequest: RequestMaker) => {
6
6
  identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg" | "rut" | "cuit";
7
7
  identificationValue: string;
8
8
  gender: "m" | "f";
9
+ phone: string;
10
+ email: string;
9
11
  countryId: string;
10
12
  birthdate: Date;
11
13
  }) => Promise<number>;
@@ -18,6 +20,8 @@ export declare const getPatientMethods: (makeRequest: RequestMaker) => {
18
20
  identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg" | "rut" | "cuit";
19
21
  identificationValue: string;
20
22
  gender: "m" | "f";
23
+ phone: string;
24
+ email: string;
21
25
  countryId: string;
22
26
  birthdate: Date;
23
27
  }) => Promise<number>;
@@ -30,6 +30,8 @@ const getPatientMethods = (makeRequest) => {
30
30
  identification_value: patient.identificationValue,
31
31
  birthdate: date_fns_1.format(patient.birthdate, 'yyyy-MM-dd'),
32
32
  gender: patient.gender.toUpperCase(),
33
+ email: patient.email,
34
+ phone: patient.phone,
33
35
  };
34
36
  const response = await makeRequest('POST', '/update-patient', {
35
37
  old_identification_type: utils_1.getIndetificationTypeId(oldIdentificaiton.identificationType),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "0.42.3",
3
+ "version": "0.42.4",
4
4
  "publishConfig": {
5
5
  "tag": "0.x"
6
6
  },