evo360-types 1.3.115 → 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,16 +196,16 @@ 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.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
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, {
203
+ is_group: boolean;
203
204
  name?: string | undefined;
204
205
  id?: string | undefined;
205
206
  type?: string | undefined;
206
207
  external_id?: string | null | undefined;
207
208
  address?: string | undefined;
208
- is_group?: boolean | undefined;
209
209
  }, {
210
210
  name?: string | undefined;
211
211
  id?: string | undefined;
@@ -41,14 +41,10 @@ exports.zChatbeeContactSchema = zod_1.z.object({
41
41
  is_group: zod_1.z.preprocess((val) => {
42
42
  if (typeof val === "boolean")
43
43
  return val;
44
- if (typeof val === "string") {
45
- if (val === "true")
46
- return true;
47
- if (val === "false")
48
- return false;
49
- }
50
- return val;
51
- }, zod_1.z.boolean().optional()),
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()),
52
48
  address: zod_1.z.string().optional(),
53
49
  type: zod_1.z.string().optional(),
54
50
  });
@@ -42,12 +42,9 @@ export const zChatbeeContactSchema = z.object({
42
42
  name: z.string().optional(),
43
43
  is_group: z.preprocess((val) => {
44
44
  if (typeof val === "boolean") return val;
45
- if (typeof val === "string") {
46
- if (val === "true") return true;
47
- if (val === "false") return false;
48
- }
49
- return val;
50
- }, z.boolean().optional()),
45
+ if (typeof val === "string") return val.toLowerCase() === "true";
46
+ return false; // fallback se vier indefinido ou outro tipo
47
+ }, z.boolean()),
51
48
  address: z.string().optional(),
52
49
  type: z.string().optional(),
53
50
  });
@@ -25,16 +25,16 @@ 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.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
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, {
32
+ is_group: boolean;
32
33
  name?: string | undefined;
33
34
  id?: string | undefined;
34
35
  type?: string | undefined;
35
36
  external_id?: string | null | undefined;
36
37
  address?: string | undefined;
37
- is_group?: boolean | undefined;
38
38
  }, {
39
39
  name?: string | undefined;
40
40
  id?: string | undefined;
@@ -243,16 +243,16 @@ 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.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
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, {
250
+ is_group: boolean;
250
251
  name?: string | undefined;
251
252
  id?: string | undefined;
252
253
  type?: string | undefined;
253
254
  external_id?: string | null | undefined;
254
255
  address?: string | undefined;
255
- is_group?: boolean | undefined;
256
256
  }, {
257
257
  name?: string | undefined;
258
258
  id?: string | undefined;
@@ -461,16 +461,16 @@ 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.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
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, {
468
+ is_group: boolean;
468
469
  name?: string | undefined;
469
470
  id?: string | undefined;
470
471
  type?: string | undefined;
471
472
  external_id?: string | null | undefined;
472
473
  address?: string | undefined;
473
- is_group?: boolean | undefined;
474
474
  }, {
475
475
  name?: string | undefined;
476
476
  id?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.115",
3
+ "version": "1.3.117",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",