@dakkitor/api-contracts 1.1.35 → 1.1.36
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.
|
@@ -201,7 +201,7 @@ export declare const CreateClientContactSchema: z.ZodObject<{
|
|
|
201
201
|
name: z.ZodString;
|
|
202
202
|
position: z.ZodOptional<z.ZodString>;
|
|
203
203
|
phone: z.ZodString;
|
|
204
|
-
email: z.ZodOptional<z.ZodString>;
|
|
204
|
+
email: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
205
205
|
source: z.ZodOptional<z.ZodString>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
name: string;
|
|
@@ -233,7 +233,7 @@ export declare const CreateClientContactBodySchema: z.ZodObject<Omit<{
|
|
|
233
233
|
name: z.ZodString;
|
|
234
234
|
position: z.ZodOptional<z.ZodString>;
|
|
235
235
|
phone: z.ZodString;
|
|
236
|
-
email: z.ZodOptional<z.ZodString>;
|
|
236
|
+
email: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
237
237
|
source: z.ZodOptional<z.ZodString>;
|
|
238
238
|
}, "client">, "strip", z.ZodTypeAny, {
|
|
239
239
|
name: string;
|
|
@@ -259,7 +259,7 @@ export declare const UpdateClientContactSchema: z.ZodObject<Omit<{
|
|
|
259
259
|
name: z.ZodOptional<z.ZodString>;
|
|
260
260
|
position: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
261
261
|
phone: z.ZodOptional<z.ZodString>;
|
|
262
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
262
|
+
email: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>>;
|
|
263
263
|
source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
264
264
|
}, "client">, "strip", z.ZodTypeAny, {
|
|
265
265
|
name?: string | undefined;
|
|
@@ -607,7 +607,7 @@ export declare const clientContactsContractRouter: {
|
|
|
607
607
|
name: z.ZodString;
|
|
608
608
|
position: z.ZodOptional<z.ZodString>;
|
|
609
609
|
phone: z.ZodString;
|
|
610
|
-
email: z.ZodOptional<z.ZodString>;
|
|
610
|
+
email: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
611
611
|
source: z.ZodOptional<z.ZodString>;
|
|
612
612
|
}, "strip", z.ZodTypeAny, {
|
|
613
613
|
name: string;
|
|
@@ -955,7 +955,7 @@ export declare const clientContactsContractRouter: {
|
|
|
955
955
|
name: z.ZodString;
|
|
956
956
|
position: z.ZodOptional<z.ZodString>;
|
|
957
957
|
phone: z.ZodString;
|
|
958
|
-
email: z.ZodOptional<z.ZodString>;
|
|
958
|
+
email: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
959
959
|
source: z.ZodOptional<z.ZodString>;
|
|
960
960
|
}, "client">, "strip", z.ZodTypeAny, {
|
|
961
961
|
name: string;
|
|
@@ -2030,7 +2030,7 @@ export declare const clientContactsContractRouter: {
|
|
|
2030
2030
|
name: z.ZodOptional<z.ZodString>;
|
|
2031
2031
|
position: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2032
2032
|
phone: z.ZodOptional<z.ZodString>;
|
|
2033
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2033
|
+
email: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>>;
|
|
2034
2034
|
source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2035
2035
|
}, "client">, "strip", z.ZodTypeAny, {
|
|
2036
2036
|
name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-contacts.contract.d.ts","sourceRoot":"","sources":["../../contracts/client-contacts/client-contacts.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,iCAAiC,oEAM5C,CAAC;AAQH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"client-contacts.contract.d.ts","sourceRoot":"","sources":["../../contracts/client-contacts/client-contacts.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,iCAAiC,oEAM5C,CAAC;AAQH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBM,CAAC;AAE7C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGxC,CAAC"}
|
|
@@ -54,7 +54,15 @@ exports.CreateClientContactSchema = zod_1.z
|
|
|
54
54
|
name: zod_1.z.string().max(255).describe('Full Name'),
|
|
55
55
|
position: zod_1.z.string().max(255).optional().describe('Job Position'),
|
|
56
56
|
phone: zod_1.z.string().max(50).describe('Phone Number'),
|
|
57
|
-
email: zod_1.z
|
|
57
|
+
email: zod_1.z
|
|
58
|
+
.string()
|
|
59
|
+
.max(255)
|
|
60
|
+
.optional()
|
|
61
|
+
.transform((val) => val?.trim() || undefined)
|
|
62
|
+
.refine((val) => !val || zod_1.z.string().email().safeParse(val).success, {
|
|
63
|
+
message: 'Invalid email format',
|
|
64
|
+
})
|
|
65
|
+
.describe('Email Address'),
|
|
58
66
|
source: zod_1.z.string().max(255).optional().describe('Source'),
|
|
59
67
|
})
|
|
60
68
|
.openapi({ title: 'CreateClientContact' });
|