@integraciones_doc24/sdk 1.16.15 → 1.16.16

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/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;
@@ -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.16",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },