@dakkitor/api-contracts 1.1.34 → 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,25 +201,25 @@ 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.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;
|
|
208
|
-
email: string;
|
|
209
208
|
client: {
|
|
210
209
|
id: string;
|
|
211
210
|
};
|
|
212
211
|
phone: string;
|
|
213
212
|
position?: string | undefined;
|
|
213
|
+
email?: string | undefined;
|
|
214
214
|
source?: string | undefined;
|
|
215
215
|
}, {
|
|
216
216
|
name: string;
|
|
217
|
-
email: string;
|
|
218
217
|
client: {
|
|
219
218
|
id: string;
|
|
220
219
|
};
|
|
221
220
|
phone: string;
|
|
222
221
|
position?: string | undefined;
|
|
222
|
+
email?: string | undefined;
|
|
223
223
|
source?: string | undefined;
|
|
224
224
|
}>;
|
|
225
225
|
export declare const CreateClientContactBodySchema: z.ZodObject<Omit<{
|
|
@@ -233,19 +233,19 @@ 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.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;
|
|
240
|
-
email: string;
|
|
241
240
|
phone: string;
|
|
242
241
|
position?: string | undefined;
|
|
242
|
+
email?: string | undefined;
|
|
243
243
|
source?: string | undefined;
|
|
244
244
|
}, {
|
|
245
245
|
name: string;
|
|
246
|
-
email: string;
|
|
247
246
|
phone: string;
|
|
248
247
|
position?: string | undefined;
|
|
248
|
+
email?: string | undefined;
|
|
249
249
|
source?: string | undefined;
|
|
250
250
|
}>;
|
|
251
251
|
export declare const UpdateClientContactSchema: z.ZodObject<Omit<{
|
|
@@ -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.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,25 +607,25 @@ export declare const clientContactsContractRouter: {
|
|
|
607
607
|
name: z.ZodString;
|
|
608
608
|
position: z.ZodOptional<z.ZodString>;
|
|
609
609
|
phone: z.ZodString;
|
|
610
|
-
email: 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;
|
|
614
|
-
email: string;
|
|
615
614
|
client: {
|
|
616
615
|
id: string;
|
|
617
616
|
};
|
|
618
617
|
phone: string;
|
|
619
618
|
position?: string | undefined;
|
|
619
|
+
email?: string | undefined;
|
|
620
620
|
source?: string | undefined;
|
|
621
621
|
}, {
|
|
622
622
|
name: string;
|
|
623
|
-
email: string;
|
|
624
623
|
client: {
|
|
625
624
|
id: string;
|
|
626
625
|
};
|
|
627
626
|
phone: string;
|
|
628
627
|
position?: string | undefined;
|
|
628
|
+
email?: string | undefined;
|
|
629
629
|
source?: string | undefined;
|
|
630
630
|
}>;
|
|
631
631
|
path: "/v2/client-contacts";
|
|
@@ -955,19 +955,19 @@ export declare const clientContactsContractRouter: {
|
|
|
955
955
|
name: z.ZodString;
|
|
956
956
|
position: z.ZodOptional<z.ZodString>;
|
|
957
957
|
phone: z.ZodString;
|
|
958
|
-
email: 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;
|
|
962
|
-
email: string;
|
|
963
962
|
phone: string;
|
|
964
963
|
position?: string | undefined;
|
|
964
|
+
email?: string | undefined;
|
|
965
965
|
source?: string | undefined;
|
|
966
966
|
}, {
|
|
967
967
|
name: string;
|
|
968
|
-
email: string;
|
|
969
968
|
phone: string;
|
|
970
969
|
position?: string | undefined;
|
|
970
|
+
email?: string | undefined;
|
|
971
971
|
source?: string | undefined;
|
|
972
972
|
}>;
|
|
973
973
|
path: "/v2/client-contacts/client/:clientId";
|
|
@@ -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.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB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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' });
|