evo360-types 1.3.341 → 1.3.342

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.
@@ -245,8 +245,8 @@ export declare const zDepartmentSchema: z.ZodObject<{
245
245
  category?: string | null | undefined;
246
246
  color?: string | undefined;
247
247
  }>, "many">>>;
248
- chat_enabled: z.ZodOptional<z.ZodBoolean>;
249
- chat_color: z.ZodOptional<z.ZodString>;
248
+ chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
249
+ chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
250
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
251
251
  id: z.ZodString;
252
252
  ref: z.ZodAny;
@@ -282,8 +282,8 @@ export declare const zDepartmentSchema: z.ZodObject<{
282
282
  category?: string | null | undefined;
283
283
  color?: string | undefined;
284
284
  }>, "many">>>;
285
- chat_enabled: z.ZodOptional<z.ZodBoolean>;
286
- chat_color: z.ZodOptional<z.ZodString>;
285
+ chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
286
+ chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
287
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
288
288
  id: z.ZodString;
289
289
  ref: z.ZodAny;
@@ -319,8 +319,8 @@ export declare const zDepartmentSchema: z.ZodObject<{
319
319
  category?: string | null | undefined;
320
320
  color?: string | undefined;
321
321
  }>, "many">>>;
322
- chat_enabled: z.ZodOptional<z.ZodBoolean>;
323
- chat_color: z.ZodOptional<z.ZodString>;
322
+ chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
323
+ chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
324
  }, z.ZodTypeAny, "passthrough">>;
325
325
  export declare const zOfficeSchema: z.ZodObject<{
326
326
  id: z.ZodString;
@@ -86,8 +86,8 @@ exports.zDepartmentSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocS
86
86
  parent_departmentRef: zod_1.z.any(),
87
87
  employee_counters: zod_1.z.any().optional(),
88
88
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
89
- chat_enabled: zod_1.z.boolean().optional(),
90
- chat_color: zod_1.z.string().optional(),
89
+ chat_enabled: zod_1.z.boolean().nullable().optional(),
90
+ chat_color: zod_1.z.string().nullable().optional(),
91
91
  })
92
92
  .passthrough();
93
93
  exports.zOfficeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
@@ -88,8 +88,8 @@ export const zDepartmentSchema = zFireDocSchema // Extend from FireDocSchema
88
88
  parent_departmentRef: z.any(),
89
89
  employee_counters: z.any().optional(),
90
90
  tags: z.array(zTagSchema).nullable().optional(),
91
- chat_enabled: z.boolean().optional(),
92
- chat_color: z.string().optional(),
91
+ chat_enabled: z.boolean().nullable().optional(),
92
+ chat_color: z.string().nullable().optional(),
93
93
  })
94
94
  .passthrough();
95
95
 
@@ -8,6 +8,8 @@ export interface SearchThreadsParams {
8
8
  attendant_type?: SearchAttendantType;
9
9
  assigned_user_id?: string;
10
10
  tag_ids?: string[];
11
+ /** Free-text contains-match against contact_name (case-insensitive) OR contact_address (digits/email/etc). */
12
+ search?: string;
11
13
  cursor?: string;
12
14
  limit?: number;
13
15
  }
@@ -15,6 +15,8 @@ export interface SearchThreadsParams {
15
15
  attendant_type?: SearchAttendantType;
16
16
  assigned_user_id?: string;
17
17
  tag_ids?: string[];
18
+ /** Free-text contains-match against contact_name (case-insensitive) OR contact_address (digits/email/etc). */
19
+ search?: string;
18
20
  cursor?: string;
19
21
  limit?: number;
20
22
  }
@@ -120,9 +120,9 @@ export interface IDepartment extends IFireDoc {
120
120
  readonly employee_counters?: IEmployeeCounters;
121
121
  tags?: ITag[] | null;
122
122
  /** Must be explicitly true for the department to receive chat transfers and be used as channel default. */
123
- chat_enabled?: boolean;
123
+ chat_enabled?: boolean | null;
124
124
  /** Color for UI rendering in hub-omni (e.g., '#4CAF50'). */
125
- chat_color?: string;
125
+ chat_color?: string | null;
126
126
  }
127
127
  export interface IOffice extends IFireDoc {
128
128
  code: string;
@@ -185,9 +185,9 @@ export interface IDepartment extends IFireDoc {
185
185
  tags?: ITag[] | null;
186
186
 
187
187
  /** Must be explicitly true for the department to receive chat transfers and be used as channel default. */
188
- chat_enabled?: boolean;
188
+ chat_enabled?: boolean | null;
189
189
  /** Color for UI rendering in hub-omni (e.g., '#4CAF50'). */
190
- chat_color?: string;
190
+ chat_color?: string | null;
191
191
  }
192
192
 
193
193
  export interface IOffice extends IFireDoc {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.341",
3
+ "version": "1.3.342",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",