evo360-types 1.3.317 → 1.3.318

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.
@@ -70,6 +70,8 @@ export declare const zMedCalendarSchema: z.ZodObject<{
70
70
  total: z.ZodOptional<z.ZodNumber>;
71
71
  deleted: z.ZodOptional<z.ZodNumber>;
72
72
  }, z.ZodTypeAny, "passthrough">>>>;
73
+ available_weekdays: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>>;
74
+ available_for_hubia: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
73
75
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
74
76
  id: z.ZodString;
75
77
  ref: z.ZodAny;
@@ -141,6 +143,8 @@ export declare const zMedCalendarSchema: z.ZodObject<{
141
143
  total: z.ZodOptional<z.ZodNumber>;
142
144
  deleted: z.ZodOptional<z.ZodNumber>;
143
145
  }, z.ZodTypeAny, "passthrough">>>>;
146
+ available_weekdays: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>>;
147
+ available_for_hubia: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
144
148
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
145
149
  id: z.ZodString;
146
150
  ref: z.ZodAny;
@@ -212,4 +216,6 @@ export declare const zMedCalendarSchema: z.ZodObject<{
212
216
  total: z.ZodOptional<z.ZodNumber>;
213
217
  deleted: z.ZodOptional<z.ZodNumber>;
214
218
  }, z.ZodTypeAny, "passthrough">>>>;
219
+ available_weekdays: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>>;
220
+ available_for_hubia: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
215
221
  }, z.ZodTypeAny, "passthrough">>;
@@ -37,5 +37,10 @@ exports.zMedCalendarSchema = zod_schemas_1.zFireDocSchema
37
37
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
38
38
  userRef: zod_1.z.any(),
39
39
  appointmentCounters: zod_schemas_2.zAppointmentCountersSchema.nullable().optional(),
40
+ available_weekdays: zod_1.z
41
+ .array(zod_1.z.number().min(0).max(6))
42
+ .default([1, 2, 3, 4, 5])
43
+ .optional(),
44
+ available_for_hubia: zod_1.z.boolean().default(false).optional(),
40
45
  })
41
46
  .passthrough();
@@ -35,5 +35,10 @@ export const zMedCalendarSchema = zFireDocSchema
35
35
  tags: z.array(zTagSchema).nullable().optional(),
36
36
  userRef: z.any(),
37
37
  appointmentCounters: zAppointmentCountersSchema.nullable().optional(),
38
+ available_weekdays: z
39
+ .array(z.number().min(0).max(6))
40
+ .default([1, 2, 3, 4, 5])
41
+ .optional(),
42
+ available_for_hubia: z.boolean().default(false).optional(),
38
43
  })
39
44
  .passthrough();
@@ -32,6 +32,8 @@ export interface IInboxItem {
32
32
  department_id: string;
33
33
  status: 'open' | 'closed';
34
34
  assigned_user_id?: string | null;
35
+ /** Who is currently attending: 'ai', 'human', or null (unassigned) */
36
+ attendant_type?: 'ai' | 'human' | null;
35
37
  last_message_at?: Date;
36
38
  last_inbound_at?: Date;
37
39
  last_message_preview?: string;
@@ -45,6 +45,8 @@ export interface IInboxItem {
45
45
  department_id: string;
46
46
  status: 'open' | 'closed';
47
47
  assigned_user_id?: string | null;
48
+ /** Who is currently attending: 'ai', 'human', or null (unassigned) */
49
+ attendant_type?: 'ai' | 'human' | null;
48
50
  last_message_at?: Date;
49
51
  last_inbound_at?: Date;
50
52
  last_message_preview?: string;
@@ -33,5 +33,7 @@ export interface IMedCalendar extends IFireDoc {
33
33
  tags?: ITag[] | null;
34
34
  userRef?: FirestoreDocumentReference;
35
35
  appointmentCounters?: IAppointmentCounters | null;
36
+ available_weekdays?: number[];
37
+ available_for_hubia?: boolean;
36
38
  [key: string]: unknown;
37
39
  }
@@ -40,5 +40,9 @@ export interface IMedCalendar extends IFireDoc {
40
40
  userRef?: FirestoreDocumentReference;
41
41
  // Contadores de appointments
42
42
  appointmentCounters?: IAppointmentCounters | null;
43
+ // Dias da semana em que a agenda atende (0=domingo ... 6=sábado)
44
+ available_weekdays?: number[];
45
+ // Se true, a agenda é elegível para oferecer horários via HubIA
46
+ available_for_hubia?: boolean;
43
47
  [key: string]: unknown; // index signature
44
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.317",
3
+ "version": "1.3.318",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",