@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 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
- origin: import("zod").ZodOptional<import("zod").ZodString>;
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
- origin?: string | undefined;
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
- origin?: string | undefined;
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
- origin: import("zod").ZodOptional<import("zod").ZodString>;
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
- origin?: string | undefined;
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
- origin?: string | undefined;
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
- origin: zod_1.string().optional(),
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
- origin?: string | undefined;
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
- origin?: string | undefined;
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
- origin: params.origin,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },
@@ -1,6 +0,0 @@
1
- import { RequestMaker } from '../request';
2
- export declare const getSarasaMethods: (_makeRequest: RequestMaker) => {
3
- getSarasa: (userId: string) => Promise<{
4
- id: string;
5
- }>;
6
- };
@@ -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;