@dakkitor/api-contracts 1.1.34 → 1.1.35

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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>>;
2034
2034
  source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2035
2035
  }, "client">, "strip", z.ZodTypeAny, {
2036
2036
  name?: string | undefined;
@@ -54,7 +54,7 @@ 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.string().email().max(255).describe('Email Address'),
57
+ email: zod_1.z.string().email().max(255).optional().describe('Email Address'),
58
58
  source: zod_1.z.string().max(255).optional().describe('Source'),
59
59
  })
60
60
  .openapi({ title: 'CreateClientContact' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",