@integraciones_doc24/sdk 0.33.0 → 0.33.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.
@@ -32,13 +32,13 @@ const getDiagnosticaMethods = (makeRequest) => {
32
32
  schemas_1.doc24Schemas.diagnosticaUser,
33
33
  schemas_1.doc24Schemas.diagnosticaPatient,
34
34
  ]), schemas_1.doc24Schemas.diagnosticaDeepLinkResponse, async (kiosk, user, patient) => {
35
- const path = 'deeplink-diagnostica';
35
+ const path = '/deeplink-diagnostica';
36
36
  const response = await makeRequest('POST', path, {
37
37
  kiosk,
38
38
  user: mapUserData(user),
39
39
  patient: mapPatientData(patient),
40
40
  });
41
- const data = response.data.data.info.data;
41
+ const data = response.data.info.data;
42
42
  if (data.forwarding_required)
43
43
  return { forwardingRequired: true, deepLink: data.deeplink };
44
44
  return { forwardingRequired: false };
@@ -48,7 +48,7 @@ const getDiagnosticaMethods = (makeRequest) => {
48
48
  schemas_1.doc24Schemas.diagnosticaUser,
49
49
  schemas_1.doc24Schemas.diagnosticaPatient,
50
50
  ]), zod_1.void(), async (kiosk, user, patient) => {
51
- const path = 'access-diagnostica';
51
+ const path = '/access-diagnostica';
52
52
  await makeRequest('POST', path, {
53
53
  kiosk,
54
54
  user: mapUserData(user),
@@ -1,6 +1,28 @@
1
1
  import { RequestMaker } from '../request';
2
2
  export declare const getExternalMethods: (makeRequest: RequestMaker) => {
3
- externalLogin: any;
4
- preExternalEnroll: any;
5
- externalEnroll: any;
3
+ externalLogin: (user: string, password: string) => Promise<{
4
+ firstName: string;
5
+ lastName: string;
6
+ phone: string;
7
+ identificationNumber: string;
8
+ email: string;
9
+ birthday: Date;
10
+ gender: "m" | "f";
11
+ countryId: string;
12
+ }>;
13
+ preExternalEnroll: (params: {
14
+ phone: string;
15
+ identificationNumber: string;
16
+ birthdate: Date;
17
+ email: string;
18
+ }) => Promise<void>;
19
+ externalEnroll: (params: {
20
+ phone: string;
21
+ identificationNumber: string;
22
+ birthdate: Date;
23
+ email: string;
24
+ password: string;
25
+ emailCode: string;
26
+ phoneCode: string;
27
+ }) => Promise<void>;
6
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "0.33.0",
3
+ "version": "0.33.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {