@integraciones_doc24/sdk 1.7.0 → 1.8.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
@@ -105,11 +105,14 @@ export declare const doc24Schemas: {
105
105
  scheduleAvailabilityFilter: import("zod").ZodObject<{
106
106
  specialtyId: import("zod").ZodOptional<import("zod").ZodNumber>;
107
107
  professionalId: import("zod").ZodOptional<import("zod").ZodNumber>;
108
+ language: import("zod").ZodOptional<import("zod").ZodString>;
108
109
  }, "strip", import("zod").ZodTypeAny, {
109
110
  specialtyId?: number | undefined;
111
+ language?: string | undefined;
110
112
  professionalId?: number | undefined;
111
113
  }, {
112
114
  specialtyId?: number | undefined;
115
+ language?: string | undefined;
113
116
  professionalId?: number | undefined;
114
117
  }>;
115
118
  availableAppointment: import("zod").ZodObject<{
package/lib/schemas.js CHANGED
@@ -24,6 +24,7 @@ const specialty = zod_1.object({
24
24
  const scheduleAvailabilityFilter = zod_1.object({
25
25
  specialtyId: zod_1.number().optional(),
26
26
  professionalId: zod_1.number().optional(),
27
+ language: zod_1.string().optional(),
27
28
  });
28
29
  const availableAppointment = zod_1.object({
29
30
  id: zod_1.number().or(zod_1.string()),
@@ -30,6 +30,7 @@ export declare const getScheduleMethods: (makeRequest: RequestMaker) => {
30
30
  }[]>;
31
31
  getScheduleDates: (patientId: number, filter?: {
32
32
  specialtyId?: number | undefined;
33
+ language?: string | undefined;
33
34
  professionalId?: number | undefined;
34
35
  } | undefined) => Promise<Date[]>;
35
36
  getAppointment: (appointmentId: number) => Promise<{
@@ -8,9 +8,11 @@ const schemas_1 = require("../schemas");
8
8
  const utils_1 = require("../utils");
9
9
  const getScheduleMethods = (makeRequest) => {
10
10
  const getScheduleDates = async (patientId, filter = {}) => {
11
+ var _a;
11
12
  const mappedFilter = {
12
13
  specialty_id: filter.specialtyId,
13
14
  professional_id: filter.professionalId,
15
+ language: (_a = filter.language) !== null && _a !== void 0 ? _a : 'ES',
14
16
  };
15
17
  const path = `/schedule/dates/${patientId}/${JSON.stringify(mappedFilter)}`;
16
18
  const response = await makeRequest('GET', path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },