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