@integraciones_doc24/sdk 1.16.35 → 1.16.36

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 +206 -206
  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 +77 -77
  8. package/lib/baseSdk/user.d.ts +112 -112
  9. package/lib/baseSdk/user.js +136 -136
  10. package/lib/index.d.ts +400 -400
  11. package/lib/index.js +22 -22
  12. package/lib/request/index.d.ts +4 -4
  13. package/lib/request/index.js +32 -32
  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 +2549 -2543
  19. package/lib/schemas.js +559 -557
  20. package/lib/types.d.ts +173 -173
  21. package/lib/types.js +2 -2
  22. package/lib/userSdk/binah.d.ts +21 -21
  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 +58 -58
  31. package/lib/userSdk/patients.js +89 -89
  32. package/lib/userSdk/schedule.d.ts +59 -59
  33. package/lib/userSdk/schedule.js +90 -90
  34. package/lib/userSdk/specialties.d.ts +19 -19
  35. package/lib/userSdk/specialties.js +48 -48
  36. package/lib/userSdk/videoVisit.d.ts +196 -194
  37. package/lib/userSdk/videoVisit.js +266 -264
  38. package/lib/utils.d.ts +4 -4
  39. package/lib/utils.js +68 -68
  40. package/lib/webhook/index.d.ts +2 -2
  41. package/lib/webhook/index.js +67 -67
  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 +37 -37
@@ -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,77 +1,77 @@
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
- var _a;
23
- const path = `/professional/${professionalId}`;
24
- const response = await makeRequest('GET', path);
25
- const raw = response.data;
26
- return {
27
- id: raw.professional_id,
28
- firstName: raw.name,
29
- lastName: raw.lastname,
30
- birthdate: utils_1.parseDate(raw.birthdate),
31
- gender: (_a = raw.gender) === null || _a === void 0 ? void 0 : _a.toLowerCase(),
32
- email: raw.email,
33
- phone: raw.phone,
34
- logoUrl: raw.image,
35
- matriculation: raw.matriculation,
36
- specialties: raw.specialties.map((s) => ({
37
- id: s.specialty_id,
38
- description: s.specialty,
39
- })),
40
- degree: raw.degree,
41
- languages: raw.languages.map((l) => l.languages),
42
- resume: {
43
- link: raw.resume_link,
44
- brief: raw.resume_brief,
45
- },
46
- consultation_value: raw.consultation_value,
47
- hasAvailability: raw.hasAvailability,
48
- status: raw.status,
49
- };
50
- }),
51
- getAvailableScheduleClinics: validation_1.validateFunction(zod_1.tuple([]), schemas_1.doc24Schemas.availableScheduleClinics, async () => {
52
- const path = `/schedule/clinics`;
53
- const response = await makeRequest('GET', path);
54
- const mapSpeciality = (s) => ({
55
- id: s.id_especialidad,
56
- description: s.especialidad,
57
- });
58
- const mapSpecialityER = (s) => ({
59
- id: s.specialty_id,
60
- description: s.specialty,
61
- });
62
- const mapped = {
63
- specialties: response.data.specialties.map(mapSpeciality),
64
- specialtiesER: response.data.specialties_er.map(mapSpecialityER),
65
- professionals: response.data.professionals.map((p) => ({
66
- id: p.id_profesional,
67
- fullName: p.denominacion,
68
- clinicId: p.id_consultorio,
69
- specialties: p.especialidades.map(mapSpeciality),
70
- })),
71
- };
72
- return mapped;
73
- }),
74
- };
75
- return baseSdk;
76
- };
77
- 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
+ var _a;
23
+ const path = `/professional/${professionalId}`;
24
+ const response = await makeRequest('GET', path);
25
+ const raw = response.data;
26
+ return {
27
+ id: raw.professional_id,
28
+ firstName: raw.name,
29
+ lastName: raw.lastname,
30
+ birthdate: utils_1.parseDate(raw.birthdate),
31
+ gender: (_a = raw.gender) === null || _a === void 0 ? void 0 : _a.toLowerCase(),
32
+ email: raw.email,
33
+ phone: raw.phone,
34
+ logoUrl: raw.image,
35
+ matriculation: raw.matriculation,
36
+ specialties: raw.specialties.map((s) => ({
37
+ id: s.specialty_id,
38
+ description: s.specialty,
39
+ })),
40
+ degree: raw.degree,
41
+ languages: raw.languages.map((l) => l.languages),
42
+ resume: {
43
+ link: raw.resume_link,
44
+ brief: raw.resume_brief,
45
+ },
46
+ consultation_value: raw.consultation_value,
47
+ hasAvailability: raw.hasAvailability,
48
+ status: raw.status,
49
+ };
50
+ }),
51
+ getAvailableScheduleClinics: validation_1.validateFunction(zod_1.tuple([]), schemas_1.doc24Schemas.availableScheduleClinics, async () => {
52
+ const path = `/schedule/clinics`;
53
+ const response = await makeRequest('GET', path);
54
+ const mapSpeciality = (s) => ({
55
+ id: s.id_especialidad,
56
+ description: s.especialidad,
57
+ });
58
+ const mapSpecialityER = (s) => ({
59
+ id: s.specialty_id,
60
+ description: s.specialty,
61
+ });
62
+ const mapped = {
63
+ specialties: response.data.specialties.map(mapSpeciality),
64
+ specialtiesER: response.data.specialties_er.map(mapSpecialityER),
65
+ professionals: response.data.professionals.map((p) => ({
66
+ id: p.id_profesional,
67
+ fullName: p.denominacion,
68
+ clinicId: p.id_consultorio,
69
+ specialties: p.especialidades.map(mapSpeciality),
70
+ })),
71
+ };
72
+ return mapped;
73
+ }),
74
+ };
75
+ return baseSdk;
76
+ };
77
+ exports.getBaseSdk = getBaseSdk;
@@ -1,112 +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
- 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
- };
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
+ };