@integraciones_doc24/sdk 0.37.0 → 0.37.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.
- 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
|
@@ -302,13 +302,15 @@ export declare const doc24Schemas: {
|
|
|
302
302
|
language: import("zod").ZodString;
|
|
303
303
|
details: import("zod").ZodString;
|
|
304
304
|
extraInfo: import("zod").ZodAny;
|
|
305
|
-
|
|
305
|
+
kioskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
+
kioskName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
307
|
}, {
|
|
307
308
|
type: import("zod").ZodLiteral<"appointment">;
|
|
308
309
|
appointmentId: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
309
310
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
310
311
|
extraInfo?: any;
|
|
311
|
-
|
|
312
|
+
kioskId?: string | undefined;
|
|
313
|
+
kioskName?: string | undefined;
|
|
312
314
|
type: "appointment";
|
|
313
315
|
patientId: number;
|
|
314
316
|
specialtyId: number;
|
|
@@ -317,7 +319,8 @@ export declare const doc24Schemas: {
|
|
|
317
319
|
appointmentId: string | number;
|
|
318
320
|
}, {
|
|
319
321
|
extraInfo?: any;
|
|
320
|
-
|
|
322
|
+
kioskId?: string | undefined;
|
|
323
|
+
kioskName?: string | undefined;
|
|
321
324
|
type: "appointment";
|
|
322
325
|
patientId: number;
|
|
323
326
|
specialtyId: number;
|
|
@@ -330,12 +333,14 @@ export declare const doc24Schemas: {
|
|
|
330
333
|
language: import("zod").ZodString;
|
|
331
334
|
details: import("zod").ZodString;
|
|
332
335
|
extraInfo: import("zod").ZodAny;
|
|
333
|
-
|
|
336
|
+
kioskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
337
|
+
kioskName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
334
338
|
}, {
|
|
335
339
|
type: import("zod").ZodLiteral<"instant">;
|
|
336
340
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
337
341
|
extraInfo?: any;
|
|
338
|
-
|
|
342
|
+
kioskId?: string | undefined;
|
|
343
|
+
kioskName?: string | undefined;
|
|
339
344
|
type: "instant";
|
|
340
345
|
patientId: number;
|
|
341
346
|
specialtyId: number;
|
|
@@ -343,7 +348,8 @@ export declare const doc24Schemas: {
|
|
|
343
348
|
details: string;
|
|
344
349
|
}, {
|
|
345
350
|
extraInfo?: any;
|
|
346
|
-
|
|
351
|
+
kioskId?: string | undefined;
|
|
352
|
+
kioskName?: string | undefined;
|
|
347
353
|
type: "instant";
|
|
348
354
|
patientId: number;
|
|
349
355
|
specialtyId: number;
|
package/lib/schemas.js
CHANGED
|
@@ -60,7 +60,8 @@ const baseScheduleParameters = zod_1.object({
|
|
|
60
60
|
language: zod_1.string(),
|
|
61
61
|
details: zod_1.string(),
|
|
62
62
|
extraInfo: zod_1.any(),
|
|
63
|
-
|
|
63
|
+
kioskId: zod_1.string().optional(),
|
|
64
|
+
kioskName: zod_1.string().optional(),
|
|
64
65
|
});
|
|
65
66
|
const appointmentScheduleParameters = baseScheduleParameters.extend({
|
|
66
67
|
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;
|