@integraciones_doc24/sdk 1.16.8 → 1.16.10

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.
Files changed (46) hide show
  1. package/README.md +203 -203
  2. package/lib/baseSdk/diagnostica.d.ts +54 -54
  3. package/lib/baseSdk/diagnostica.js +82 -82
  4. package/lib/baseSdk/external.d.ts +177 -177
  5. package/lib/baseSdk/external.js +96 -96
  6. package/lib/baseSdk/index.d.ts +2 -2
  7. package/lib/baseSdk/index.js +76 -76
  8. package/lib/baseSdk/user.d.ts +112 -91
  9. package/lib/baseSdk/user.js +136 -136
  10. package/lib/index.d.ts +396 -367
  11. package/lib/index.js +22 -22
  12. package/lib/request/index.d.ts +3 -3
  13. package/lib/request/index.js +26 -26
  14. package/lib/request/token.d.ts +2 -2
  15. package/lib/request/token.js +34 -34
  16. package/lib/request/validation.d.ts +10 -10
  17. package/lib/request/validation.js +28 -28
  18. package/lib/schemas.d.ts +2129 -1952
  19. package/lib/schemas.js +474 -464
  20. package/lib/types.d.ts +153 -153
  21. package/lib/types.js +2 -2
  22. package/lib/userSdk/binah.d.ts +21 -20
  23. package/lib/userSdk/binah.js +20 -20
  24. package/lib/userSdk/chat.d.ts +57 -57
  25. package/lib/userSdk/chat.js +98 -98
  26. package/lib/userSdk/external.d.ts +34 -34
  27. package/lib/userSdk/external.js +72 -72
  28. package/lib/userSdk/index.d.ts +2 -2
  29. package/lib/userSdk/index.js +33 -33
  30. package/lib/userSdk/patients.d.ts +53 -39
  31. package/lib/userSdk/patients.js +80 -73
  32. package/lib/userSdk/schedule.d.ts +51 -49
  33. package/lib/userSdk/schedule.js +83 -83
  34. package/lib/userSdk/specialties.d.ts +18 -16
  35. package/lib/userSdk/specialties.js +47 -45
  36. package/lib/userSdk/videoVisit.d.ts +115 -115
  37. package/lib/userSdk/videoVisit.js +155 -155
  38. package/lib/utils.d.ts +2 -2
  39. package/lib/utils.js +16 -16
  40. package/lib/webhook/index.d.ts +2 -2
  41. package/lib/webhook/index.js +56 -56
  42. package/lib/webhook/responses.d.ts +35 -35
  43. package/lib/webhook/responses.js +42 -42
  44. package/lib/webhook/token.d.ts +2 -2
  45. package/lib/webhook/token.js +23 -23
  46. package/package.json +36 -36
@@ -1,96 +1,96 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExternalMethods = void 0;
4
- const date_fns_1 = require("date-fns");
5
- const zod_1 = require("zod");
6
- const validation_1 = require("../request/validation");
7
- const schemas_1 = require("../schemas");
8
- const getExternalMethods = (makeRequest) => {
9
- const externalLogin = async ({ user, password, }) => {
10
- const path = '/external-login';
11
- const response = await makeRequest('POST', path, { user, password });
12
- const info = response.data.login_info;
13
- return {
14
- firstName: info.firstname,
15
- lastName: info.lastname,
16
- countryId: info.country_id,
17
- birthday: new Date(Date.parse(info.birthdate)),
18
- identificationNumber: info.identification_number,
19
- gender: info.gender.toLowerCase(),
20
- email: info.email,
21
- phone: info.telephone,
22
- };
23
- };
24
- const preExternalEnrollment = async (params) => {
25
- const path = '/pre-external-enrollment';
26
- await makeRequest('POST', path, {
27
- identification_number: params.identificationNumber,
28
- birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
29
- email: params.email,
30
- telephone: params.phone,
31
- });
32
- return;
33
- };
34
- const externalEnrollment = async (params) => {
35
- const path = '/external-enrollment';
36
- const response = await makeRequest('POST', path, {
37
- identification_number: params.identificationNumber,
38
- birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
39
- email: params.email,
40
- telephone: params.phone,
41
- password: params.password,
42
- email_code: params.emailCode,
43
- telephone_code: params.phoneCode,
44
- });
45
- const info = response.data.info;
46
- return {
47
- firstName: info.firstname,
48
- lastName: info.lastname,
49
- countryId: info.country_id,
50
- birthday: new Date(Date.parse(info.birthdate)),
51
- identificationNumber: info.identification_number,
52
- gender: info.gender.toLowerCase(),
53
- email: info.email,
54
- phone: info.telephone,
55
- };
56
- };
57
- const sendExternalVerificationCode = async (params) => {
58
- const path = '/send-external-verification-code';
59
- await makeRequest('POST', path, {
60
- identification_number: params.identificationNumber,
61
- birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
62
- channel: params.channel,
63
- });
64
- return;
65
- };
66
- const verifyExternalVerificationCode = async (params) => {
67
- const path = '/verify-external-verification-code';
68
- const response = await makeRequest('POST', path, {
69
- identification_number: params.identificationNumber,
70
- birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
71
- channel: params.channel,
72
- code: params.code,
73
- });
74
- return response.data;
75
- };
76
- const externalResetPassword = async (params) => {
77
- const path = '/external-reset';
78
- const response = await makeRequest('POST', path, {
79
- identification_number: params.identificationNumber,
80
- birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
81
- password: params.password,
82
- email_code: params.emailCode,
83
- telephone_code: params.phoneCode,
84
- });
85
- return response.data;
86
- };
87
- return {
88
- externalLogin: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalLoginParams]), schemas_1.doc24Schemas.externalLoginResponse, externalLogin),
89
- preExternalEnrollment: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.preExternalEnrollmentParams]), zod_1.void(), preExternalEnrollment),
90
- externalEnrollment: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalEnrollmentParams]), schemas_1.doc24Schemas.externalLoginResponse, externalEnrollment),
91
- sendExternalVerificationCode: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.sendExternalVerificationCodeParams]), zod_1.void(), sendExternalVerificationCode),
92
- verifyExternalVerificationCode: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.verifyExternalVerificationCodeParams]), zod_1.any(), verifyExternalVerificationCode),
93
- externalResetPassword: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalResetPasswordParams]), zod_1.any(), externalResetPassword),
94
- };
95
- };
96
- exports.getExternalMethods = getExternalMethods;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExternalMethods = void 0;
4
+ const date_fns_1 = require("date-fns");
5
+ const zod_1 = require("zod");
6
+ const validation_1 = require("../request/validation");
7
+ const schemas_1 = require("../schemas");
8
+ const getExternalMethods = (makeRequest) => {
9
+ const externalLogin = async ({ user, password, }) => {
10
+ const path = '/external-login';
11
+ const response = await makeRequest('POST', path, { user, password });
12
+ const info = response.data.login_info;
13
+ return {
14
+ firstName: info.firstname,
15
+ lastName: info.lastname,
16
+ countryId: info.country_id,
17
+ birthday: new Date(Date.parse(info.birthdate)),
18
+ identificationNumber: info.identification_number,
19
+ gender: info.gender.toLowerCase(),
20
+ email: info.email,
21
+ phone: info.telephone,
22
+ };
23
+ };
24
+ const preExternalEnrollment = async (params) => {
25
+ const path = '/pre-external-enrollment';
26
+ await makeRequest('POST', path, {
27
+ identification_number: params.identificationNumber,
28
+ birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
29
+ email: params.email,
30
+ telephone: params.phone,
31
+ });
32
+ return;
33
+ };
34
+ const externalEnrollment = async (params) => {
35
+ const path = '/external-enrollment';
36
+ const response = await makeRequest('POST', path, {
37
+ identification_number: params.identificationNumber,
38
+ birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
39
+ email: params.email,
40
+ telephone: params.phone,
41
+ password: params.password,
42
+ email_code: params.emailCode,
43
+ telephone_code: params.phoneCode,
44
+ });
45
+ const info = response.data.info;
46
+ return {
47
+ firstName: info.firstname,
48
+ lastName: info.lastname,
49
+ countryId: info.country_id,
50
+ birthday: new Date(Date.parse(info.birthdate)),
51
+ identificationNumber: info.identification_number,
52
+ gender: info.gender.toLowerCase(),
53
+ email: info.email,
54
+ phone: info.telephone,
55
+ };
56
+ };
57
+ const sendExternalVerificationCode = async (params) => {
58
+ const path = '/send-external-verification-code';
59
+ await makeRequest('POST', path, {
60
+ identification_number: params.identificationNumber,
61
+ birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
62
+ channel: params.channel,
63
+ });
64
+ return;
65
+ };
66
+ const verifyExternalVerificationCode = async (params) => {
67
+ const path = '/verify-external-verification-code';
68
+ const response = await makeRequest('POST', path, {
69
+ identification_number: params.identificationNumber,
70
+ birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
71
+ channel: params.channel,
72
+ code: params.code,
73
+ });
74
+ return response.data;
75
+ };
76
+ const externalResetPassword = async (params) => {
77
+ const path = '/external-reset';
78
+ const response = await makeRequest('POST', path, {
79
+ identification_number: params.identificationNumber,
80
+ birthdate: date_fns_1.format(params.birthdate, 'yyyy-MM-dd'),
81
+ password: params.password,
82
+ email_code: params.emailCode,
83
+ telephone_code: params.phoneCode,
84
+ });
85
+ return response.data;
86
+ };
87
+ return {
88
+ externalLogin: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalLoginParams]), schemas_1.doc24Schemas.externalLoginResponse, externalLogin),
89
+ preExternalEnrollment: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.preExternalEnrollmentParams]), zod_1.void(), preExternalEnrollment),
90
+ externalEnrollment: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalEnrollmentParams]), schemas_1.doc24Schemas.externalLoginResponse, externalEnrollment),
91
+ sendExternalVerificationCode: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.sendExternalVerificationCodeParams]), zod_1.void(), sendExternalVerificationCode),
92
+ verifyExternalVerificationCode: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.verifyExternalVerificationCodeParams]), zod_1.any(), verifyExternalVerificationCode),
93
+ externalResetPassword: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.externalResetPasswordParams]), zod_1.any(), externalResetPassword),
94
+ };
95
+ };
96
+ exports.getExternalMethods = getExternalMethods;
@@ -1,2 +1,2 @@
1
- import { Doc24 } from '../types';
2
- export declare const getBaseSdk: (url: string, credentials: Doc24.SdkCredentials) => Promise<Doc24.BaseSdk>;
1
+ import { Doc24 } from '../types';
2
+ export declare const getBaseSdk: (url: string, credentials: Doc24.SdkCredentials) => Promise<Doc24.BaseSdk>;
@@ -1,76 +1,76 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBaseSdk = void 0;
4
- const zod_1 = require("zod");
5
- const request_1 = require("../request");
6
- const validation_1 = require("../request/validation");
7
- const schemas_1 = require("../schemas");
8
- const utils_1 = require("../utils");
9
- const diagnostica_1 = require("./diagnostica");
10
- const user_1 = require("./user");
11
- const external_1 = require("./external");
12
- const getBaseSdk = async (url, credentials) => {
13
- const makeRequest = await request_1.getRequestFactory(url, credentials);
14
- const diagnosticaMethods = diagnostica_1.getDiagnosticaMethods(makeRequest);
15
- const externalMethods = external_1.getExternalMethods(makeRequest);
16
- const userMethods = user_1.getUserMethods(makeRequest, url, credentials);
17
- const baseSdk = {
18
- ...diagnosticaMethods,
19
- ...externalMethods,
20
- ...userMethods,
21
- getProfessional: validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.professional, async (professionalId) => {
22
- const path = `/professional/${professionalId}`;
23
- const response = await makeRequest('GET', path);
24
- const raw = response.data;
25
- return {
26
- id: raw.professional_id,
27
- firstName: raw.name,
28
- lastName: raw.lastname,
29
- birthdate: utils_1.parseDate(raw.birthdate),
30
- gender: raw.gender.toLowerCase(),
31
- email: raw.email,
32
- phone: raw.phone,
33
- logoUrl: raw.image,
34
- matriculation: raw.matriculation,
35
- specialties: raw.specialties.map((s) => ({
36
- id: s.specialty_id,
37
- description: s.specialty,
38
- })),
39
- degree: raw.degree,
40
- languages: raw.languages.map((l) => l.languages),
41
- resume: {
42
- link: raw.resume_link,
43
- brief: raw.resume_brief,
44
- },
45
- consultation_value: raw.consultation_value,
46
- hasAvailability: raw.hasAvailability,
47
- status: raw.status,
48
- };
49
- }),
50
- getAvailableScheduleClinics: validation_1.validateFunction(zod_1.tuple([]), schemas_1.doc24Schemas.availableScheduleClinics, async () => {
51
- const path = `/schedule/clinics`;
52
- const response = await makeRequest('GET', path);
53
- const mapSpeciality = (s) => ({
54
- id: s.id_especialidad,
55
- description: s.especialidad,
56
- });
57
- const mapSpecialityER = (s) => ({
58
- id: s.specialty_id,
59
- description: s.specialty,
60
- });
61
- const mapped = {
62
- specialties: response.data.specialties.map(mapSpeciality),
63
- specialtiesER: response.data.specialties_er.map(mapSpecialityER),
64
- professionals: response.data.professionals.map((p) => ({
65
- id: p.id_profesional,
66
- fullName: p.denominacion,
67
- clinicId: p.id_consultorio,
68
- specialties: p.especialidades.map(mapSpeciality),
69
- })),
70
- };
71
- return mapped;
72
- }),
73
- };
74
- return baseSdk;
75
- };
76
- exports.getBaseSdk = getBaseSdk;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBaseSdk = void 0;
4
+ const zod_1 = require("zod");
5
+ const request_1 = require("../request");
6
+ const validation_1 = require("../request/validation");
7
+ const schemas_1 = require("../schemas");
8
+ const utils_1 = require("../utils");
9
+ const diagnostica_1 = require("./diagnostica");
10
+ const user_1 = require("./user");
11
+ const external_1 = require("./external");
12
+ const getBaseSdk = async (url, credentials) => {
13
+ const makeRequest = await request_1.getRequestFactory(url, credentials);
14
+ const diagnosticaMethods = diagnostica_1.getDiagnosticaMethods(makeRequest);
15
+ const externalMethods = external_1.getExternalMethods(makeRequest);
16
+ const userMethods = user_1.getUserMethods(makeRequest, url, credentials);
17
+ const baseSdk = {
18
+ ...diagnosticaMethods,
19
+ ...externalMethods,
20
+ ...userMethods,
21
+ getProfessional: validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.professional, async (professionalId) => {
22
+ const path = `/professional/${professionalId}`;
23
+ const response = await makeRequest('GET', path);
24
+ const raw = response.data;
25
+ return {
26
+ id: raw.professional_id,
27
+ firstName: raw.name,
28
+ lastName: raw.lastname,
29
+ birthdate: utils_1.parseDate(raw.birthdate),
30
+ gender: raw.gender.toLowerCase(),
31
+ email: raw.email,
32
+ phone: raw.phone,
33
+ logoUrl: raw.image,
34
+ matriculation: raw.matriculation,
35
+ specialties: raw.specialties.map((s) => ({
36
+ id: s.specialty_id,
37
+ description: s.specialty,
38
+ })),
39
+ degree: raw.degree,
40
+ languages: raw.languages.map((l) => l.languages),
41
+ resume: {
42
+ link: raw.resume_link,
43
+ brief: raw.resume_brief,
44
+ },
45
+ consultation_value: raw.consultation_value,
46
+ hasAvailability: raw.hasAvailability,
47
+ status: raw.status,
48
+ };
49
+ }),
50
+ getAvailableScheduleClinics: validation_1.validateFunction(zod_1.tuple([]), schemas_1.doc24Schemas.availableScheduleClinics, async () => {
51
+ const path = `/schedule/clinics`;
52
+ const response = await makeRequest('GET', path);
53
+ const mapSpeciality = (s) => ({
54
+ id: s.id_especialidad,
55
+ description: s.especialidad,
56
+ });
57
+ const mapSpecialityER = (s) => ({
58
+ id: s.specialty_id,
59
+ description: s.specialty,
60
+ });
61
+ const mapped = {
62
+ specialties: response.data.specialties.map(mapSpeciality),
63
+ specialtiesER: response.data.specialties_er.map(mapSpecialityER),
64
+ professionals: response.data.professionals.map((p) => ({
65
+ id: p.id_profesional,
66
+ fullName: p.denominacion,
67
+ clinicId: p.id_consultorio,
68
+ specialties: p.especialidades.map(mapSpeciality),
69
+ })),
70
+ };
71
+ return mapped;
72
+ }),
73
+ };
74
+ return baseSdk;
75
+ };
76
+ exports.getBaseSdk = getBaseSdk;
@@ -1,91 +1,112 @@
1
- import { RequestMaker } from '../request';
2
- import { Doc24 } from '../types';
3
- export declare const getUserMethods: (makeRequest: RequestMaker, url: string, credentials: Doc24.SdkCredentials) => {
4
- declareUser: (params: {
5
- user: {
6
- identificationType?: number | undefined;
7
- identificationValue?: string | undefined;
8
- gender?: "m" | "f" | "o" | undefined;
9
- phone?: string | undefined;
10
- firstName: string;
11
- lastName: string;
12
- countryId: string;
13
- birthdate: Date;
14
- email: string;
15
- };
16
- } & {
17
- code?: string | undefined;
18
- channel?: "1" | "2" | undefined;
19
- }) => Promise<{
20
- askCode: true;
21
- userInfo: {
22
- phone: string;
23
- email: string;
24
- };
25
- } | {
26
- patientId: number | null;
27
- askCode: false;
28
- userId: number;
29
- }>;
30
- getUserId: (user: {
31
- identificationType?: number | undefined;
32
- identificationValue?: string | undefined;
33
- gender?: "m" | "f" | "o" | undefined;
34
- phone?: string | undefined;
35
- firstName: string;
36
- lastName: string;
37
- countryId: string;
38
- birthdate: Date;
39
- email: string;
40
- }) => Promise<number>;
41
- sendVerificationCode: (params: {
42
- identificationType: number;
43
- identificationValue: string;
44
- channel: "1" | "2";
45
- }) => Promise<void>;
46
- getUserInstance: (user: number | {
47
- identificationType?: number | undefined;
48
- identificationValue?: string | undefined;
49
- gender?: "m" | "f" | "o" | undefined;
50
- phone?: string | undefined;
51
- firstName: string;
52
- lastName: string;
53
- countryId: string;
54
- birthdate: Date;
55
- email: string;
56
- }) => Promise<any>;
57
- enroll: (params: {
58
- gender?: "m" | "f" | "o" | undefined;
59
- firstName: string;
60
- lastName: string;
61
- birthdate: Date;
62
- email: string;
63
- identificationNumber: string;
64
- startDate: Date;
65
- plan: string;
66
- }) => Promise<void>;
67
- getCoverageInfo: (identificationValue: string) => Promise<{
68
- gender?: "m" | "f" | "o" | undefined;
69
- firstName: string | null;
70
- lastName: string | null;
71
- birthdate: Date;
72
- email: string | null;
73
- identificationNumber: string;
74
- plan: string | null;
75
- financerId: number | null;
76
- defaultAffiliationId: number | null;
77
- credentialNumber: string | null;
78
- financerPlanId: number | null;
79
- brand: number | null;
80
- holderIdentificationNumber: string | null;
81
- copaymentValue: number | null;
82
- mobilePhone: string | null;
83
- company: string | null;
84
- dischargeDate: Date | null;
85
- leavingDate: Date | null;
86
- identificacion_tributaria: string | null;
87
- deregistrationDate: Date | null;
88
- authorizationCode: string | null;
89
- authorizationCodeExpiration: Date | null;
90
- } | null>;
91
- };
1
+ import { RequestMaker } from '../request';
2
+ import { Doc24 } from '../types';
3
+ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, credentials: Doc24.SdkCredentials) => {
4
+ declareUser: (params: {
5
+ user: {
6
+ identificationType?: number | undefined;
7
+ identificationValue?: string | undefined;
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;
16
+ phone?: string | undefined;
17
+ firstName: string;
18
+ lastName: string;
19
+ countryId: string;
20
+ birthdate: Date;
21
+ email: string;
22
+ };
23
+ } & {
24
+ code?: string | undefined;
25
+ channel?: "1" | "2" | undefined;
26
+ }) => Promise<{
27
+ askCode: true;
28
+ userInfo: {
29
+ phone: string;
30
+ email: string;
31
+ };
32
+ } | {
33
+ patientId: number | null;
34
+ askCode: false;
35
+ userId: number;
36
+ }>;
37
+ getUserId: (user: {
38
+ identificationType?: number | undefined;
39
+ identificationValue?: string | undefined;
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;
48
+ phone?: string | undefined;
49
+ firstName: string;
50
+ lastName: string;
51
+ countryId: string;
52
+ birthdate: Date;
53
+ email: string;
54
+ }) => Promise<number>;
55
+ sendVerificationCode: (params: {
56
+ identificationType: number;
57
+ identificationValue: string;
58
+ channel: "1" | "2";
59
+ }) => Promise<void>;
60
+ getUserInstance: (user: number | {
61
+ identificationType?: number | undefined;
62
+ identificationValue?: string | undefined;
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;
71
+ phone?: string | undefined;
72
+ firstName: string;
73
+ lastName: string;
74
+ countryId: string;
75
+ birthdate: Date;
76
+ email: string;
77
+ }) => Promise<any>;
78
+ enroll: (params: {
79
+ gender?: "m" | "f" | "o" | undefined;
80
+ firstName: string;
81
+ lastName: string;
82
+ birthdate: Date;
83
+ plan: string;
84
+ email: string;
85
+ identificationNumber: string;
86
+ startDate: Date;
87
+ }) => Promise<void>;
88
+ getCoverageInfo: (identificationValue: string) => Promise<{
89
+ gender?: "m" | "f" | "o" | undefined;
90
+ firstName: string | null;
91
+ lastName: string | null;
92
+ birthdate: Date;
93
+ plan: string | null;
94
+ email: string | null;
95
+ identificationNumber: string;
96
+ financerId: number | null;
97
+ defaultAffiliationId: number | null;
98
+ credentialNumber: string | null;
99
+ financerPlanId: number | null;
100
+ brand: number | null;
101
+ holderIdentificationNumber: string | null;
102
+ copaymentValue: number | null;
103
+ mobilePhone: string | null;
104
+ company: string | null;
105
+ dischargeDate: Date | null;
106
+ leavingDate: Date | null;
107
+ identificacion_tributaria: string | null;
108
+ deregistrationDate: Date | null;
109
+ authorizationCode: string | null;
110
+ authorizationCodeExpiration: Date | null;
111
+ } | null>;
112
+ };