@integraciones_doc24/sdk 1.12.6 → 1.13.1
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 +12 -0
- package/lib/schemas.js +2 -0
- package/lib/userSdk/videoVisit.d.ts +4 -0
- package/lib/userSdk/videoVisit.js +2 -0
- package/package.json +1 -1
package/lib/schemas.d.ts
CHANGED
|
@@ -307,11 +307,15 @@ export declare const doc24Schemas: {
|
|
|
307
307
|
language: import("zod").ZodString;
|
|
308
308
|
details: import("zod").ZodString;
|
|
309
309
|
extraInfo: import("zod").ZodAny;
|
|
310
|
+
kioskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
|
+
kioskName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
310
312
|
}, {
|
|
311
313
|
type: import("zod").ZodLiteral<"appointment">;
|
|
312
314
|
appointmentId: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
313
315
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
314
316
|
extraInfo?: any;
|
|
317
|
+
kioskId?: string | undefined;
|
|
318
|
+
kioskName?: string | undefined;
|
|
315
319
|
type: "appointment";
|
|
316
320
|
patientId: number;
|
|
317
321
|
specialtyId: number;
|
|
@@ -320,6 +324,8 @@ export declare const doc24Schemas: {
|
|
|
320
324
|
appointmentId: string | number;
|
|
321
325
|
}, {
|
|
322
326
|
extraInfo?: any;
|
|
327
|
+
kioskId?: string | undefined;
|
|
328
|
+
kioskName?: string | undefined;
|
|
323
329
|
type: "appointment";
|
|
324
330
|
patientId: number;
|
|
325
331
|
specialtyId: number;
|
|
@@ -332,10 +338,14 @@ export declare const doc24Schemas: {
|
|
|
332
338
|
language: import("zod").ZodString;
|
|
333
339
|
details: import("zod").ZodString;
|
|
334
340
|
extraInfo: import("zod").ZodAny;
|
|
341
|
+
kioskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
+
kioskName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
343
|
}, {
|
|
336
344
|
type: import("zod").ZodLiteral<"instant">;
|
|
337
345
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
338
346
|
extraInfo?: any;
|
|
347
|
+
kioskId?: string | undefined;
|
|
348
|
+
kioskName?: string | undefined;
|
|
339
349
|
type: "instant";
|
|
340
350
|
patientId: number;
|
|
341
351
|
specialtyId: number;
|
|
@@ -343,6 +353,8 @@ export declare const doc24Schemas: {
|
|
|
343
353
|
details: string;
|
|
344
354
|
}, {
|
|
345
355
|
extraInfo?: any;
|
|
356
|
+
kioskId?: string | undefined;
|
|
357
|
+
kioskName?: string | undefined;
|
|
346
358
|
type: "instant";
|
|
347
359
|
patientId: number;
|
|
348
360
|
specialtyId: number;
|
package/lib/schemas.js
CHANGED
|
@@ -63,6 +63,8 @@ const baseScheduleParameters = zod_1.object({
|
|
|
63
63
|
language: zod_1.string(),
|
|
64
64
|
details: zod_1.string(),
|
|
65
65
|
extraInfo: zod_1.any(),
|
|
66
|
+
kioskId: zod_1.string().optional(),
|
|
67
|
+
kioskName: zod_1.string().optional(),
|
|
66
68
|
});
|
|
67
69
|
const appointmentScheduleParameters = baseScheduleParameters.extend({
|
|
68
70
|
type: zod_1.literal('appointment'),
|
|
@@ -2,6 +2,8 @@ import { RequestMaker } from '../request';
|
|
|
2
2
|
export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
|
|
3
3
|
scheduleVideoVisit: (params: {
|
|
4
4
|
extraInfo?: any;
|
|
5
|
+
kioskId?: string | undefined;
|
|
6
|
+
kioskName?: string | undefined;
|
|
5
7
|
type: "appointment";
|
|
6
8
|
patientId: number;
|
|
7
9
|
specialtyId: number;
|
|
@@ -10,6 +12,8 @@ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
|
|
|
10
12
|
appointmentId: string | number;
|
|
11
13
|
} | {
|
|
12
14
|
extraInfo?: any;
|
|
15
|
+
kioskId?: string | undefined;
|
|
16
|
+
kioskName?: string | undefined;
|
|
13
17
|
type: "instant";
|
|
14
18
|
patientId: number;
|
|
15
19
|
specialtyId: number;
|
|
@@ -20,6 +20,8 @@ const getVideoVisitMethods = (makeRequest) => {
|
|
|
20
20
|
language: params.language.toUpperCase(),
|
|
21
21
|
details: params.details,
|
|
22
22
|
extra_info: params.extraInfo,
|
|
23
|
+
kioskId: params.kioskId,
|
|
24
|
+
kioskName: params.kioskName,
|
|
23
25
|
};
|
|
24
26
|
const response = await makeRequest('POST', '/video-visit', mappedParams);
|
|
25
27
|
return response.data.vc_token;
|