evo360-types 1.3.116 → 1.3.117

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.
@@ -196,7 +196,7 @@ export declare const zChatbeeContactSchema: z.ZodObject<{
196
196
  id: z.ZodOptional<z.ZodString>;
197
197
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
198
  name: z.ZodOptional<z.ZodString>;
199
- is_group: z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>;
199
+ is_group: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
200
200
  address: z.ZodOptional<z.ZodString>;
201
201
  type: z.ZodOptional<z.ZodString>;
202
202
  }, "strip", z.ZodTypeAny, {
@@ -207,12 +207,12 @@ export declare const zChatbeeContactSchema: z.ZodObject<{
207
207
  external_id?: string | null | undefined;
208
208
  address?: string | undefined;
209
209
  }, {
210
- is_group: string;
211
210
  name?: string | undefined;
212
211
  id?: string | undefined;
213
212
  type?: string | undefined;
214
213
  external_id?: string | null | undefined;
215
214
  address?: string | undefined;
215
+ is_group?: unknown;
216
216
  }>;
217
217
  export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
218
218
  department: z.ZodOptional<z.ZodObject<{
@@ -38,11 +38,13 @@ exports.zChatbeeContactSchema = zod_1.z.object({
38
38
  id: zod_1.z.string().optional(),
39
39
  external_id: zod_1.z.string().nullable().optional(),
40
40
  name: zod_1.z.string().optional(),
41
- is_group: zod_1.z
42
- .string()
43
- .toLowerCase()
44
- .transform((x) => x === "true")
45
- .pipe(zod_1.z.boolean()),
41
+ is_group: zod_1.z.preprocess((val) => {
42
+ if (typeof val === "boolean")
43
+ return val;
44
+ if (typeof val === "string")
45
+ return val.toLowerCase() === "true";
46
+ return false; // fallback se vier indefinido ou outro tipo
47
+ }, zod_1.z.boolean()),
46
48
  address: zod_1.z.string().optional(),
47
49
  type: zod_1.z.string().optional(),
48
50
  });
@@ -40,11 +40,11 @@ export const zChatbeeContactSchema = z.object({
40
40
  id: z.string().optional(),
41
41
  external_id: z.string().nullable().optional(),
42
42
  name: z.string().optional(),
43
- is_group: z
44
- .string()
45
- .toLowerCase()
46
- .transform((x) => x === "true")
47
- .pipe(z.boolean()),
43
+ is_group: z.preprocess((val) => {
44
+ if (typeof val === "boolean") return val;
45
+ if (typeof val === "string") return val.toLowerCase() === "true";
46
+ return false; // fallback se vier indefinido ou outro tipo
47
+ }, z.boolean()),
48
48
  address: z.string().optional(),
49
49
  type: z.string().optional(),
50
50
  });
@@ -25,7 +25,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
25
25
  id: z.ZodOptional<z.ZodString>;
26
26
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  name: z.ZodOptional<z.ZodString>;
28
- is_group: z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>;
28
+ is_group: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
29
29
  address: z.ZodOptional<z.ZodString>;
30
30
  type: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
@@ -36,12 +36,12 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
36
36
  external_id?: string | null | undefined;
37
37
  address?: string | undefined;
38
38
  }, {
39
- is_group: string;
40
39
  name?: string | undefined;
41
40
  id?: string | undefined;
42
41
  type?: string | undefined;
43
42
  external_id?: string | null | undefined;
44
43
  address?: string | undefined;
44
+ is_group?: unknown;
45
45
  }>>>;
46
46
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
@@ -243,7 +243,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
243
243
  id: z.ZodOptional<z.ZodString>;
244
244
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
245
  name: z.ZodOptional<z.ZodString>;
246
- is_group: z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>;
246
+ is_group: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
247
247
  address: z.ZodOptional<z.ZodString>;
248
248
  type: z.ZodOptional<z.ZodString>;
249
249
  }, "strip", z.ZodTypeAny, {
@@ -254,12 +254,12 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
254
254
  external_id?: string | null | undefined;
255
255
  address?: string | undefined;
256
256
  }, {
257
- is_group: string;
258
257
  name?: string | undefined;
259
258
  id?: string | undefined;
260
259
  type?: string | undefined;
261
260
  external_id?: string | null | undefined;
262
261
  address?: string | undefined;
262
+ is_group?: unknown;
263
263
  }>>>;
264
264
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
265
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
@@ -461,7 +461,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
461
461
  id: z.ZodOptional<z.ZodString>;
462
462
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
463
  name: z.ZodOptional<z.ZodString>;
464
- is_group: z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>;
464
+ is_group: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
465
465
  address: z.ZodOptional<z.ZodString>;
466
466
  type: z.ZodOptional<z.ZodString>;
467
467
  }, "strip", z.ZodTypeAny, {
@@ -472,12 +472,12 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
472
472
  external_id?: string | null | undefined;
473
473
  address?: string | undefined;
474
474
  }, {
475
- is_group: string;
476
475
  name?: string | undefined;
477
476
  id?: string | undefined;
478
477
  type?: string | undefined;
479
478
  external_id?: string | null | undefined;
480
479
  address?: string | undefined;
480
+ is_group?: unknown;
481
481
  }>>>;
482
482
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
483
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.116",
3
+ "version": "1.3.117",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",