@integraciones_doc24/sdk 1.4.1 → 1.4.2

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/README.md CHANGED
@@ -79,7 +79,7 @@ type BaseSdk = {
79
79
  getProfessional: (professionalId: number) => Promise<Professional>;
80
80
  getAvailableScheduleClinics: () => Promise<AvailableScheduleClinics>;
81
81
  enroll: (params: EnrollmentParams) => Promise<void>;
82
- getConverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
82
+ getCoverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
83
83
  getVerificationCode: (params: getVerificationCodeParams) => Promise<void>;
84
84
  getDiagnosticaHistory: (
85
85
  patient: DiagnosticaPatientFilter,
@@ -42,7 +42,7 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
42
42
  identificationType: "ndi" | "passport" | "credential";
43
43
  identificationValue: string;
44
44
  channel: "1" | "2";
45
- }) => Promise<any>;
45
+ }) => Promise<void>;
46
46
  getUserInstance: (user: number | {
47
47
  firstName: string;
48
48
  lastName: string;
@@ -64,7 +64,7 @@ export declare const getUserMethods: (makeRequest: RequestMaker, url: string, cr
64
64
  identificationNumber: string;
65
65
  plan: string;
66
66
  }) => Promise<void>;
67
- getConverageInfo: (identificationValue: string) => Promise<{
67
+ getCoverageInfo: (identificationValue: string) => Promise<{
68
68
  firstName: string | null;
69
69
  lastName: string | null;
70
70
  birthdate: Date;
@@ -83,7 +83,7 @@ const getUserMethods = (makeRequest, url, credentials) => {
83
83
  user_data: mappedUser,
84
84
  });
85
85
  };
86
- const getConverageInfo = async (identificationValue) => {
86
+ const getCoverageInfo = async (identificationValue) => {
87
87
  const path = `/info-coverage/${identificationValue}`;
88
88
  const response = await makeRequest('GET', path);
89
89
  const raw = response.data.info;
@@ -125,7 +125,7 @@ const getUserMethods = (makeRequest, url, credentials) => {
125
125
  // TODO: validate?
126
126
  zod_1.any(), getUserInstance),
127
127
  enroll: validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.enrollmentParams]), zod_1.void(), enroll),
128
- getConverageInfo: validation_1.validateFunction(zod_1.tuple([zod_1.string()]), schemas_1.doc24Schemas.coverageInfo, getConverageInfo),
128
+ getCoverageInfo: validation_1.validateFunction(zod_1.tuple([zod_1.string()]), schemas_1.doc24Schemas.coverageInfo, getCoverageInfo),
129
129
  };
130
130
  };
131
131
  exports.getUserMethods = getUserMethods;
package/lib/index.d.ts CHANGED
@@ -106,7 +106,7 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
106
106
  identificationNumber: string;
107
107
  plan: string;
108
108
  }) => Promise<void>;
109
- getConverageInfo: (identificationValue: string) => Promise<{
109
+ getCoverageInfo: (identificationValue: string) => Promise<{
110
110
  firstName: string | null;
111
111
  lastName: string | null;
112
112
  birthdate: Date;
@@ -134,7 +134,7 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
134
134
  identificationType: "ndi" | "passport" | "credential";
135
135
  identificationValue: string;
136
136
  channel: "1" | "2";
137
- }) => Promise<any>;
137
+ }) => Promise<void>;
138
138
  getDiagnosticaHistory: (patient: {
139
139
  identificationType: "ndi" | "passport" | "credential";
140
140
  identificationValue: string;
package/lib/types.d.ts CHANGED
@@ -43,8 +43,8 @@ export declare namespace Doc24 {
43
43
  getProfessional: (professionalId: number) => Promise<Professional>;
44
44
  getAvailableScheduleClinics: () => Promise<AvailableScheduleClinics>;
45
45
  enroll: (params: EnrollmentParams) => Promise<void>;
46
- getConverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
47
- getVerificationCode: (params: getVerificationCodeParams) => Promise<any>;
46
+ getCoverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
47
+ getVerificationCode: (params: getVerificationCodeParams) => Promise<void>;
48
48
  getDiagnosticaHistory: (patient: DiagnosticaPatientFilter, from: Date, to: Date) => Promise<DiagnosticaHistoryAppointment[]>;
49
49
  getDiagnosticaDeepLink: (kiosk: string, user: DiagnosticaUser, patient: DiagnosticaPatient) => Promise<DiagnosticaDeepLinkResponse>;
50
50
  getDiagnosticaAccess: (kiosk: string, user: DiagnosticaUser, patient: DiagnosticaPatient) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },