@integraciones_doc24/sdk 0.27.1 → 0.28.0

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
@@ -144,9 +144,11 @@ export declare const doc24Schemas: {
144
144
  type: import("zod").ZodEnum<["appointment", "chat", "instant"]>;
145
145
  atentions: import("zod").ZodNumber;
146
146
  ranking: import("zod").ZodUnknown;
147
+ length: import("zod").ZodNullable<import("zod").ZodNumber>;
147
148
  }, "strip", import("zod").ZodTypeAny, {
148
149
  ranking?: unknown;
149
150
  date: Date;
151
+ length: number | null;
150
152
  type: "appointment" | "chat" | "instant";
151
153
  id: string | number;
152
154
  professional: {
@@ -164,6 +166,7 @@ export declare const doc24Schemas: {
164
166
  }, {
165
167
  ranking?: unknown;
166
168
  date: Date;
169
+ length: number | null;
167
170
  type: "appointment" | "chat" | "instant";
168
171
  id: string | number;
169
172
  professional: {
package/lib/schemas.js CHANGED
@@ -37,6 +37,7 @@ const availableAppointment = zod_1.object({
37
37
  type: specialtyMode,
38
38
  atentions: zod_1.number(),
39
39
  ranking: zod_1.unknown(),
40
+ length: zod_1.number().nullable(),
40
41
  });
41
42
  const appointment = zod_1.object({
42
43
  id: zod_1.number(),
@@ -11,6 +11,7 @@ export declare const getScheduleMethods: (makeRequest: RequestMaker) => {
11
11
  } | undefined) => Promise<{
12
12
  ranking?: unknown;
13
13
  date: Date;
14
+ length: number | null;
14
15
  type: "appointment" | "chat" | "instant";
15
16
  id: string | number;
16
17
  professional: {
@@ -45,6 +45,7 @@ const getScheduleMethods = (makeRequest) => {
45
45
  type: a.type === 'P' ? 'appointment' : a.type === 'T' ? 'chat' : 'instant',
46
46
  atentions: a.atentions,
47
47
  ranking: a.ranking,
48
+ length: a.length,
48
49
  }));
49
50
  });
50
51
  const getAppointment = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.appointment, async (appointmentId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integraciones_doc24/sdk",
3
- "version": "0.27.1",
3
+ "version": "0.28.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {