evo360-types 1.3.114 → 1.3.115
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.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
200
200
|
address: z.ZodOptional<z.ZodString>;
|
|
201
201
|
type: z.ZodOptional<z.ZodString>;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -212,7 +212,7 @@ export declare const zChatbeeContactSchema: z.ZodObject<{
|
|
|
212
212
|
type?: string | undefined;
|
|
213
213
|
external_id?: string | null | undefined;
|
|
214
214
|
address?: string | undefined;
|
|
215
|
-
is_group?:
|
|
215
|
+
is_group?: unknown;
|
|
216
216
|
}>;
|
|
217
217
|
export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
|
|
218
218
|
department: z.ZodOptional<z.ZodObject<{
|
|
@@ -38,7 +38,17 @@ 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.
|
|
41
|
+
is_group: zod_1.z.preprocess((val) => {
|
|
42
|
+
if (typeof val === "boolean")
|
|
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()),
|
|
42
52
|
address: zod_1.z.string().optional(),
|
|
43
53
|
type: zod_1.z.string().optional(),
|
|
44
54
|
});
|
|
@@ -40,7 +40,14 @@ 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.
|
|
43
|
+
is_group: z.preprocess((val) => {
|
|
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()),
|
|
44
51
|
address: z.string().optional(),
|
|
45
52
|
type: z.string().optional(),
|
|
46
53
|
});
|
|
@@ -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.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
29
29
|
address: z.ZodOptional<z.ZodString>;
|
|
30
30
|
type: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -41,7 +41,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
41
41
|
type?: string | undefined;
|
|
42
42
|
external_id?: string | null | undefined;
|
|
43
43
|
address?: string | undefined;
|
|
44
|
-
is_group?:
|
|
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.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
247
247
|
address: z.ZodOptional<z.ZodString>;
|
|
248
248
|
type: z.ZodOptional<z.ZodString>;
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -259,7 +259,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
259
|
type?: string | undefined;
|
|
260
260
|
external_id?: string | null | undefined;
|
|
261
261
|
address?: string | undefined;
|
|
262
|
-
is_group?:
|
|
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.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
465
465
|
address: z.ZodOptional<z.ZodString>;
|
|
466
466
|
type: z.ZodOptional<z.ZodString>;
|
|
467
467
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -477,7 +477,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
477
477
|
type?: string | undefined;
|
|
478
478
|
external_id?: string | null | undefined;
|
|
479
479
|
address?: string | undefined;
|
|
480
|
-
is_group?:
|
|
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>>;
|