@integraciones_doc24/sdk 1.16.15 → 1.16.17

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
@@ -928,16 +928,16 @@ export declare const doc24Schemas: {
928
928
  inPersonRequired: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
929
929
  referral: import("zod").ZodObject<{
930
930
  status: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
931
- specialtyId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
931
+ specialtyId: import("zod").ZodAny;
932
932
  inPersonRequired: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
933
933
  comments: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
934
934
  }, "strip", import("zod").ZodTypeAny, {
935
- specialtyId?: number | null | undefined;
935
+ specialtyId?: any;
936
936
  status?: string | null | undefined;
937
937
  inPersonRequired?: string | null | undefined;
938
938
  comments?: string | null | undefined;
939
939
  }, {
940
- specialtyId?: number | null | undefined;
940
+ specialtyId?: any;
941
941
  status?: string | null | undefined;
942
942
  inPersonRequired?: string | null | undefined;
943
943
  comments?: string | null | undefined;
@@ -964,7 +964,7 @@ export declare const doc24Schemas: {
964
964
  codigo?: number | null | undefined;
965
965
  };
966
966
  referral: {
967
- specialtyId?: number | null | undefined;
967
+ specialtyId?: any;
968
968
  status?: string | null | undefined;
969
969
  inPersonRequired?: string | null | undefined;
970
970
  comments?: string | null | undefined;
@@ -991,7 +991,7 @@ export declare const doc24Schemas: {
991
991
  codigo?: number | null | undefined;
992
992
  };
993
993
  referral: {
994
- specialtyId?: number | null | undefined;
994
+ specialtyId?: any;
995
995
  status?: string | null | undefined;
996
996
  inPersonRequired?: string | null | undefined;
997
997
  comments?: string | null | undefined;
@@ -1003,21 +1003,21 @@ export declare const doc24Schemas: {
1003
1003
  otherExams: import("zod").ZodAny;
1004
1004
  images: import("zod").ZodAny;
1005
1005
  medication: import("zod").ZodArray<import("zod").ZodAny, "many">;
1006
- certificate: import("zod").ZodArray<import("zod").ZodAny, "many">;
1006
+ certificate: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodArray<import("zod").ZodAny, "many">, import("zod").ZodString]>>>;
1007
1007
  }, "strip", import("zod").ZodTypeAny, {
1008
1008
  atention?: any;
1009
1009
  labs?: any;
1010
1010
  otherExams?: any;
1011
1011
  images?: any;
1012
+ certificate?: string | any[] | null | undefined;
1012
1013
  medication: any[];
1013
- certificate: any[];
1014
1014
  }, {
1015
1015
  atention?: any;
1016
1016
  labs?: any;
1017
1017
  otherExams?: any;
1018
1018
  images?: any;
1019
+ certificate?: string | any[] | null | undefined;
1019
1020
  medication: any[];
1020
- certificate: any[];
1021
1021
  }>;
1022
1022
  files: import("zod").ZodArray<import("zod").ZodObject<{
1023
1023
  name: import("zod").ZodString;
@@ -1064,7 +1064,7 @@ export declare const doc24Schemas: {
1064
1064
  codigo?: number | null | undefined;
1065
1065
  };
1066
1066
  referral: {
1067
- specialtyId?: number | null | undefined;
1067
+ specialtyId?: any;
1068
1068
  status?: string | null | undefined;
1069
1069
  inPersonRequired?: string | null | undefined;
1070
1070
  comments?: string | null | undefined;
@@ -1075,8 +1075,8 @@ export declare const doc24Schemas: {
1075
1075
  labs?: any;
1076
1076
  otherExams?: any;
1077
1077
  images?: any;
1078
+ certificate?: string | any[] | null | undefined;
1078
1079
  medication: any[];
1079
- certificate: any[];
1080
1080
  };
1081
1081
  files: {
1082
1082
  name: string;
@@ -1117,7 +1117,7 @@ export declare const doc24Schemas: {
1117
1117
  codigo?: number | null | undefined;
1118
1118
  };
1119
1119
  referral: {
1120
- specialtyId?: number | null | undefined;
1120
+ specialtyId?: any;
1121
1121
  status?: string | null | undefined;
1122
1122
  inPersonRequired?: string | null | undefined;
1123
1123
  comments?: string | null | undefined;
@@ -1128,8 +1128,8 @@ export declare const doc24Schemas: {
1128
1128
  labs?: any;
1129
1129
  otherExams?: any;
1130
1130
  images?: any;
1131
+ certificate?: string | any[] | null | undefined;
1131
1132
  medication: any[];
1132
- certificate: any[];
1133
1133
  };
1134
1134
  files: {
1135
1135
  name: string;
package/lib/schemas.js CHANGED
@@ -434,7 +434,7 @@ exports.doc24Schemas = {
434
434
  inPersonRequired: zod_1.string().nullish(),
435
435
  referral: zod_1.object({
436
436
  status: zod_1.string().nullish(),
437
- specialtyId: zod_1.number().nullish(),
437
+ specialtyId: zod_1.any(),
438
438
  inPersonRequired: zod_1.string().nullish(),
439
439
  comments: zod_1.string().nullish(),
440
440
  }),
@@ -445,7 +445,7 @@ exports.doc24Schemas = {
445
445
  otherExams: zod_1.any(),
446
446
  images: zod_1.any(),
447
447
  medication: zod_1.array(zod_1.any()),
448
- certificate: zod_1.array(zod_1.any()),
448
+ certificate: zod_1.array(zod_1.any()).or(zod_1.string()).nullish(),
449
449
  }),
450
450
  files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
451
451
  }),
package/lib/types.d.ts CHANGED
@@ -83,7 +83,7 @@ export declare namespace Doc24 {
83
83
  cancelVideoVisit: (vcToken: string) => Promise<void>;
84
84
  getVideoVisit: (vcToken: string, patientId: number) => Promise<VideoVisit>;
85
85
  getVideoVisitDetails: (vcId: number) => Promise<VideoVisitDetails>;
86
- getCompleteVideoVisitDetails: (vcId: number) => Promise<CompleteVideoVisitDetails>;
86
+ getCompleteVideoVisitDetails: (vcToken: string) => Promise<CompleteVideoVisitDetails>;
87
87
  getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
88
88
  getPatientVideoVisitHistory: (patientId: number) => Promise<HistoricalVideoVisit[]>;
89
89
  getActiveVideoVisits: () => Promise<ActiveVideoVisitData[]>;
@@ -112,7 +112,7 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
112
112
  vcToken: string;
113
113
  consultationId: number;
114
114
  }[]>;
115
- getCompleteVideoVisitDetails: (vcId: number) => Promise<{
115
+ getCompleteVideoVisitDetails: (vcToken: string) => Promise<{
116
116
  professional?: {
117
117
  id: number;
118
118
  fullName: string;
@@ -147,7 +147,7 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
147
147
  codigo?: number | null | undefined;
148
148
  };
149
149
  referral: {
150
- specialtyId?: number | null | undefined;
150
+ specialtyId?: any;
151
151
  status?: string | null | undefined;
152
152
  inPersonRequired?: string | null | undefined;
153
153
  comments?: string | null | undefined;
@@ -158,8 +158,8 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
158
158
  labs?: any;
159
159
  otherExams?: any;
160
160
  images?: any;
161
+ certificate?: string | any[] | null | undefined;
161
162
  medication: any[];
162
- certificate: any[];
163
163
  };
164
164
  files: {
165
165
  name: string;
@@ -113,8 +113,8 @@ const getVideoVisitMethods = (makeRequest) => {
113
113
  const response = await makeRequest('GET', path);
114
114
  return response.data.link;
115
115
  });
116
- const getCompleteVideoVisitDetails = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.completeVideoVisitDetails, async (vcId) => {
117
- const path = `/consultation/${vcId}`;
116
+ const getCompleteVideoVisitDetails = validation_1.validateFunction(zod_1.tuple([zod_1.string()]), schemas_1.doc24Schemas.completeVideoVisitDetails, async (vcToken) => {
117
+ const path = `/consultation/${vcToken}`;
118
118
  const response = await makeRequest('GET', path);
119
119
  return {
120
120
  id: response.data.id_consulta,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.16.15",
3
+ "version": "1.16.17",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },