@integraciones_doc24/sdk 0.37.0 → 0.37.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
@@ -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
- origin: import("zod").ZodOptional<import("zod").ZodString>;
305
+ kioskId: import("zod").ZodOptional<import("zod").ZodString>;
306
+ kioskLocation: 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
- origin?: string | undefined;
312
+ kioskId?: string | undefined;
313
+ kioskLocation?: 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
- origin?: string | undefined;
322
+ kioskId?: string | undefined;
323
+ kioskLocation?: 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
- origin: import("zod").ZodOptional<import("zod").ZodString>;
336
+ kioskId: import("zod").ZodOptional<import("zod").ZodString>;
337
+ kioskLocation: 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
- origin?: string | undefined;
342
+ kioskId?: string | undefined;
343
+ kioskLocation?: 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
- origin?: string | undefined;
351
+ kioskId?: string | undefined;
352
+ kioskLocation?: 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
- origin: zod_1.string().optional(),
63
+ kioskId: zod_1.string().optional(),
64
+ kioskLocation: 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
- origin?: string | undefined;
5
+ kioskId?: string | undefined;
6
+ kioskLocation?: 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
+ kioskLocation?: 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
+ kioskLocation: params.kioskLocation,
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": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "publishConfig": {
5
5
  "tag": "0.x"
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;