@dakkitor/api-contracts 1.1.109 → 1.1.111

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.
Files changed (31) hide show
  1. package/dist/actives/actives.contract.d.ts +3059 -3059
  2. package/dist/agent-client-links/agent-client-links.contract.d.ts +74 -74
  3. package/dist/bookings/bookings.contract.d.ts +11037 -11037
  4. package/dist/call-history/call-history.contract.d.ts +294 -294
  5. package/dist/client-contacts/client-contacts.contract.d.ts +186 -186
  6. package/dist/clients/clients.contract.d.ts +99 -99
  7. package/dist/clients/clients.contract.d.ts.map +1 -1
  8. package/dist/clients/clients.contract.js +5 -5
  9. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +440 -440
  10. package/dist/collaborations/collaborations.contract.d.ts +328 -328
  11. package/dist/companies/companies.contract.d.ts +22 -22
  12. package/dist/curated-workers/curated-workers.contract.d.ts +76 -76
  13. package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
  14. package/dist/dashboards/dashboard-widgets.contract.d.ts +224 -150
  15. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  16. package/dist/dashboards/dashboard-widgets.contract.js +124 -101
  17. package/dist/dashboards/dashboard.contract.d.ts +14 -14
  18. package/dist/files/files.contract.d.ts +24 -24
  19. package/dist/jobs/jobs.contract.d.ts +907 -907
  20. package/dist/lead-assignments/lead-assignments.contract.d.ts +160 -160
  21. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +34 -34
  22. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
  23. package/dist/leads/leads.contract.d.ts +136 -136
  24. package/dist/postcodes/postcodes.contract.d.ts +18 -18
  25. package/dist/qualifications/qualifications.contract.d.ts +22 -22
  26. package/dist/trades/trades.contract.d.ts +16 -16
  27. package/dist/users/users.contract.d.ts +6 -6
  28. package/dist/workers/workers.contract.d.ts +288 -288
  29. package/package.json +41 -41
  30. package/dist/abilities/interconnection.json +0 -370
  31. package/dist/abilities/second-agent.abilities copy.json +0 -370
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- declare const ClientStatusSchema: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
2
+ export declare const ClientStatusSchema: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
3
3
  declare const ClientSortableFieldsSchema: z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>;
4
4
  export type ClientStatus = z.infer<typeof ClientStatusSchema>;
5
5
  export type ClientSortableFields = z.infer<typeof ClientSortableFieldsSchema>;
@@ -55,14 +55,14 @@ export declare const ClientSchema: z.ZodObject<{
55
55
  }>>>;
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  id: string;
58
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
58
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
59
+ name: string;
60
+ director: string;
59
61
  createdAt: string;
60
62
  updatedAt: string;
61
- name: string;
62
63
  crn: string | null;
63
64
  govLink: string;
64
65
  soleTrader: boolean;
65
- director: string;
66
66
  blacklistReason?: string | null | undefined;
67
67
  lastUpdatedBy?: {
68
68
  id: string;
@@ -75,14 +75,14 @@ export declare const ClientSchema: z.ZodObject<{
75
75
  } | null | undefined;
76
76
  }, {
77
77
  id: string;
78
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
78
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
79
+ name: string;
80
+ director: string;
79
81
  createdAt: string | Date;
80
82
  updatedAt: string | Date;
81
- name: string;
82
83
  crn: string | null;
83
84
  govLink: string;
84
85
  soleTrader: boolean;
85
- director: string;
86
86
  blacklistReason?: string | null | undefined;
87
87
  lastUpdatedBy?: {
88
88
  id: string;
@@ -101,13 +101,13 @@ export declare const CreateClientSchema: z.ZodObject<{
101
101
  director: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  name: string;
104
+ director: string;
104
105
  govLink: string;
105
106
  soleTrader: boolean;
106
- director: string;
107
107
  }, {
108
108
  name: string;
109
- govLink: string;
110
109
  director: string;
110
+ govLink: string;
111
111
  soleTrader?: boolean | undefined;
112
112
  }>;
113
113
  /**
@@ -121,17 +121,17 @@ export declare const UpdateClientBaseSchema: z.ZodObject<{
121
121
  status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
122
122
  blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
124
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
125
125
  name?: string | undefined;
126
- blacklistReason?: string | null | undefined;
127
- govLink?: string | undefined;
128
126
  director?: string | undefined;
127
+ govLink?: string | undefined;
128
+ blacklistReason?: string | null | undefined;
129
129
  }, {
130
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
130
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
131
131
  name?: string | undefined;
132
- blacklistReason?: string | null | undefined;
133
- govLink?: string | undefined;
134
132
  director?: string | undefined;
133
+ govLink?: string | undefined;
134
+ blacklistReason?: string | null | undefined;
135
135
  }>;
136
136
  /**
137
137
  * Conditional validation rules for UpdateClient.
@@ -165,29 +165,29 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
165
165
  status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
166
166
  blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
167
  }, "strip", z.ZodTypeAny, {
168
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
168
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
169
169
  name?: string | undefined;
170
- blacklistReason?: string | null | undefined;
171
- govLink?: string | undefined;
172
170
  director?: string | undefined;
171
+ govLink?: string | undefined;
172
+ blacklistReason?: string | null | undefined;
173
173
  }, {
174
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
174
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
175
175
  name?: string | undefined;
176
- blacklistReason?: string | null | undefined;
177
- govLink?: string | undefined;
178
176
  director?: string | undefined;
177
+ govLink?: string | undefined;
178
+ blacklistReason?: string | null | undefined;
179
179
  }>, {
180
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
180
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
181
181
  name?: string | undefined;
182
- blacklistReason?: string | null | undefined;
183
- govLink?: string | undefined;
184
182
  director?: string | undefined;
183
+ govLink?: string | undefined;
184
+ blacklistReason?: string | null | undefined;
185
185
  }, {
186
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
186
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
187
187
  name?: string | undefined;
188
- blacklistReason?: string | null | undefined;
189
- govLink?: string | undefined;
190
188
  director?: string | undefined;
189
+ govLink?: string | undefined;
190
+ blacklistReason?: string | null | undefined;
191
191
  }>;
192
192
  export declare const FilterClientSchema: z.ZodObject<{
193
193
  limit: z.ZodDefault<z.ZodNumber>;
@@ -211,27 +211,27 @@ export declare const FilterClientSchema: z.ZodObject<{
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  limit: number;
213
213
  page: number;
214
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
214
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
215
+ name?: string | null | undefined;
216
+ director?: string | null | undefined;
215
217
  createdAt?: {
216
218
  from?: string | null | undefined;
217
219
  to?: string | null | undefined;
218
220
  } | null | undefined;
219
- name?: string | null | undefined;
220
- sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
221
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
221
222
  sortOrder?: "ASC" | "DESC" | null | undefined;
222
- director?: string | null | undefined;
223
223
  }, {
224
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
224
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
225
+ name?: string | null | undefined;
226
+ director?: string | null | undefined;
225
227
  createdAt?: {
226
228
  from?: string | null | undefined;
227
229
  to?: string | null | undefined;
228
230
  } | null | undefined;
229
231
  limit?: number | undefined;
230
232
  page?: number | undefined;
231
- name?: string | null | undefined;
232
- sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
233
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
233
234
  sortOrder?: "ASC" | "DESC" | null | undefined;
234
- director?: string | null | undefined;
235
235
  }>;
236
236
  export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
237
237
  id: z.ZodString;
@@ -290,14 +290,14 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
290
290
  }>>>;
291
291
  }, "strip", z.ZodTypeAny, {
292
292
  id: string;
293
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
293
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
294
+ name: string;
295
+ director: string;
294
296
  createdAt: string;
295
297
  updatedAt: string;
296
- name: string;
297
298
  crn: string | null;
298
299
  govLink: string;
299
300
  soleTrader: boolean;
300
- director: string;
301
301
  blacklistReason?: string | null | undefined;
302
302
  lastUpdatedBy?: {
303
303
  id: string;
@@ -310,14 +310,14 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
310
310
  } | null | undefined;
311
311
  }, {
312
312
  id: string;
313
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
313
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
314
+ name: string;
315
+ director: string;
314
316
  createdAt: string | Date;
315
317
  updatedAt: string | Date;
316
- name: string;
317
318
  crn: string | null;
318
319
  govLink: string;
319
320
  soleTrader: boolean;
320
- director: string;
321
321
  blacklistReason?: string | null | undefined;
322
322
  lastUpdatedBy?: {
323
323
  id: string;
@@ -338,14 +338,14 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
338
338
  limit: number;
339
339
  items: {
340
340
  id: string;
341
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
341
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
342
+ name: string;
343
+ director: string;
342
344
  createdAt: string;
343
345
  updatedAt: string;
344
- name: string;
345
346
  crn: string | null;
346
347
  govLink: string;
347
348
  soleTrader: boolean;
348
- director: string;
349
349
  blacklistReason?: string | null | undefined;
350
350
  lastUpdatedBy?: {
351
351
  id: string;
@@ -365,14 +365,14 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
365
365
  limit: number;
366
366
  items: {
367
367
  id: string;
368
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
368
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
369
+ name: string;
370
+ director: string;
369
371
  createdAt: string | Date;
370
372
  updatedAt: string | Date;
371
- name: string;
372
373
  crn: string | null;
373
374
  govLink: string;
374
375
  soleTrader: boolean;
375
- director: string;
376
376
  blacklistReason?: string | null | undefined;
377
377
  lastUpdatedBy?: {
378
378
  id: string;
@@ -415,13 +415,13 @@ export declare const clientsContractRouter: {
415
415
  director: z.ZodString;
416
416
  }, "strip", z.ZodTypeAny, {
417
417
  name: string;
418
+ director: string;
418
419
  govLink: string;
419
420
  soleTrader: boolean;
420
- director: string;
421
421
  }, {
422
422
  name: string;
423
- govLink: string;
424
423
  director: string;
424
+ govLink: string;
425
425
  soleTrader?: boolean | undefined;
426
426
  }>;
427
427
  path: "/v2/clients";
@@ -562,14 +562,14 @@ export declare const clientsContractRouter: {
562
562
  }>>>;
563
563
  }, "strip", z.ZodTypeAny, {
564
564
  id: string;
565
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
565
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
566
+ name: string;
567
+ director: string;
566
568
  createdAt: string;
567
569
  updatedAt: string;
568
- name: string;
569
570
  crn: string | null;
570
571
  govLink: string;
571
572
  soleTrader: boolean;
572
- director: string;
573
573
  blacklistReason?: string | null | undefined;
574
574
  lastUpdatedBy?: {
575
575
  id: string;
@@ -582,14 +582,14 @@ export declare const clientsContractRouter: {
582
582
  } | null | undefined;
583
583
  }, {
584
584
  id: string;
585
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
585
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
586
+ name: string;
587
+ director: string;
586
588
  createdAt: string | Date;
587
589
  updatedAt: string | Date;
588
- name: string;
589
590
  crn: string | null;
590
591
  govLink: string;
591
592
  soleTrader: boolean;
592
- director: string;
593
593
  blacklistReason?: string | null | undefined;
594
594
  lastUpdatedBy?: {
595
595
  id: string;
@@ -651,27 +651,27 @@ export declare const clientsContractRouter: {
651
651
  }, "strip", z.ZodTypeAny, {
652
652
  limit: number;
653
653
  page: number;
654
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
654
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
655
+ name?: string | null | undefined;
656
+ director?: string | null | undefined;
655
657
  createdAt?: {
656
658
  from?: string | null | undefined;
657
659
  to?: string | null | undefined;
658
660
  } | null | undefined;
659
- name?: string | null | undefined;
660
- sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
661
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
661
662
  sortOrder?: "ASC" | "DESC" | null | undefined;
662
- director?: string | null | undefined;
663
663
  }, {
664
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
664
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
665
+ name?: string | null | undefined;
666
+ director?: string | null | undefined;
665
667
  createdAt?: {
666
668
  from?: string | null | undefined;
667
669
  to?: string | null | undefined;
668
670
  } | null | undefined;
669
671
  limit?: number | undefined;
670
672
  page?: number | undefined;
671
- name?: string | null | undefined;
672
- sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
673
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
673
674
  sortOrder?: "ASC" | "DESC" | null | undefined;
674
- director?: string | null | undefined;
675
675
  }>;
676
676
  metadata: {
677
677
  tags: string[];
@@ -820,14 +820,14 @@ export declare const clientsContractRouter: {
820
820
  }>>>;
821
821
  }, "strip", z.ZodTypeAny, {
822
822
  id: string;
823
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
823
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
824
+ name: string;
825
+ director: string;
824
826
  createdAt: string;
825
827
  updatedAt: string;
826
- name: string;
827
828
  crn: string | null;
828
829
  govLink: string;
829
830
  soleTrader: boolean;
830
- director: string;
831
831
  blacklistReason?: string | null | undefined;
832
832
  lastUpdatedBy?: {
833
833
  id: string;
@@ -840,14 +840,14 @@ export declare const clientsContractRouter: {
840
840
  } | null | undefined;
841
841
  }, {
842
842
  id: string;
843
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
843
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
844
+ name: string;
845
+ director: string;
844
846
  createdAt: string | Date;
845
847
  updatedAt: string | Date;
846
- name: string;
847
848
  crn: string | null;
848
849
  govLink: string;
849
850
  soleTrader: boolean;
850
- director: string;
851
851
  blacklistReason?: string | null | undefined;
852
852
  lastUpdatedBy?: {
853
853
  id: string;
@@ -868,14 +868,14 @@ export declare const clientsContractRouter: {
868
868
  limit: number;
869
869
  items: {
870
870
  id: string;
871
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
871
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
872
+ name: string;
873
+ director: string;
872
874
  createdAt: string;
873
875
  updatedAt: string;
874
- name: string;
875
876
  crn: string | null;
876
877
  govLink: string;
877
878
  soleTrader: boolean;
878
- director: string;
879
879
  blacklistReason?: string | null | undefined;
880
880
  lastUpdatedBy?: {
881
881
  id: string;
@@ -895,14 +895,14 @@ export declare const clientsContractRouter: {
895
895
  limit: number;
896
896
  items: {
897
897
  id: string;
898
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
898
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
899
+ name: string;
900
+ director: string;
899
901
  createdAt: string | Date;
900
902
  updatedAt: string | Date;
901
- name: string;
902
903
  crn: string | null;
903
904
  govLink: string;
904
905
  soleTrader: boolean;
905
- director: string;
906
906
  blacklistReason?: string | null | undefined;
907
907
  lastUpdatedBy?: {
908
908
  id: string;
@@ -1208,14 +1208,14 @@ export declare const clientsContractRouter: {
1208
1208
  }>>>;
1209
1209
  }, "strip", z.ZodTypeAny, {
1210
1210
  id: string;
1211
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1211
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1212
+ name: string;
1213
+ director: string;
1212
1214
  createdAt: string;
1213
1215
  updatedAt: string;
1214
- name: string;
1215
1216
  crn: string | null;
1216
1217
  govLink: string;
1217
1218
  soleTrader: boolean;
1218
- director: string;
1219
1219
  blacklistReason?: string | null | undefined;
1220
1220
  lastUpdatedBy?: {
1221
1221
  id: string;
@@ -1228,14 +1228,14 @@ export declare const clientsContractRouter: {
1228
1228
  } | null | undefined;
1229
1229
  }, {
1230
1230
  id: string;
1231
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1231
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1232
+ name: string;
1233
+ director: string;
1232
1234
  createdAt: string | Date;
1233
1235
  updatedAt: string | Date;
1234
- name: string;
1235
1236
  crn: string | null;
1236
1237
  govLink: string;
1237
1238
  soleTrader: boolean;
1238
- director: string;
1239
1239
  blacklistReason?: string | null | undefined;
1240
1240
  lastUpdatedBy?: {
1241
1241
  id: string;
@@ -1297,29 +1297,29 @@ export declare const clientsContractRouter: {
1297
1297
  status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
1298
1298
  blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1299
1299
  }, "strip", z.ZodTypeAny, {
1300
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
1300
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1301
1301
  name?: string | undefined;
1302
- blacklistReason?: string | null | undefined;
1303
- govLink?: string | undefined;
1304
1302
  director?: string | undefined;
1303
+ govLink?: string | undefined;
1304
+ blacklistReason?: string | null | undefined;
1305
1305
  }, {
1306
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
1306
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1307
1307
  name?: string | undefined;
1308
- blacklistReason?: string | null | undefined;
1309
- govLink?: string | undefined;
1310
1308
  director?: string | undefined;
1309
+ govLink?: string | undefined;
1310
+ blacklistReason?: string | null | undefined;
1311
1311
  }>, {
1312
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
1312
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1313
1313
  name?: string | undefined;
1314
- blacklistReason?: string | null | undefined;
1315
- govLink?: string | undefined;
1316
1314
  director?: string | undefined;
1315
+ govLink?: string | undefined;
1316
+ blacklistReason?: string | null | undefined;
1317
1317
  }, {
1318
- status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
1318
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1319
1319
  name?: string | undefined;
1320
- blacklistReason?: string | null | undefined;
1321
- govLink?: string | undefined;
1322
1320
  director?: string | undefined;
1321
+ govLink?: string | undefined;
1322
+ blacklistReason?: string | null | undefined;
1323
1323
  }>;
1324
1324
  path: "/v2/clients/:id";
1325
1325
  responses: {
@@ -1459,14 +1459,14 @@ export declare const clientsContractRouter: {
1459
1459
  }>>>;
1460
1460
  }, "strip", z.ZodTypeAny, {
1461
1461
  id: string;
1462
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1462
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1463
+ name: string;
1464
+ director: string;
1463
1465
  createdAt: string;
1464
1466
  updatedAt: string;
1465
- name: string;
1466
1467
  crn: string | null;
1467
1468
  govLink: string;
1468
1469
  soleTrader: boolean;
1469
- director: string;
1470
1470
  blacklistReason?: string | null | undefined;
1471
1471
  lastUpdatedBy?: {
1472
1472
  id: string;
@@ -1479,14 +1479,14 @@ export declare const clientsContractRouter: {
1479
1479
  } | null | undefined;
1480
1480
  }, {
1481
1481
  id: string;
1482
- status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
1482
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1483
+ name: string;
1484
+ director: string;
1483
1485
  createdAt: string | Date;
1484
1486
  updatedAt: string | Date;
1485
- name: string;
1486
1487
  crn: string | null;
1487
1488
  govLink: string;
1488
1489
  soleTrader: boolean;
1489
- director: string;
1490
1490
  blacklistReason?: string | null | undefined;
1491
1491
  lastUpdatedBy?: {
1492
1492
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"clients.contract.d.ts","sourceRoot":"","sources":["../../contracts/clients/clients.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,QAAA,MAAM,kBAAkB,gE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__esModule", { value: true });
3
- exports.clientsContractRouter = exports.PaginatedClientResponseSchema = exports.ClientAutocompleteArraySchema = exports.ClientAutocompleteResponseSchema = exports.FilterClientSchema = exports.UpdateClientSchema = exports.UpdateClientRefinements = exports.UpdateClientBaseSchema = exports.CreateClientSchema = exports.ClientSchema = exports.ClientUserSchema = void 0;
3
+ exports.clientsContractRouter = exports.PaginatedClientResponseSchema = exports.ClientAutocompleteArraySchema = exports.ClientAutocompleteResponseSchema = exports.FilterClientSchema = exports.UpdateClientSchema = exports.UpdateClientRefinements = exports.UpdateClientBaseSchema = exports.CreateClientSchema = exports.ClientSchema = exports.ClientUserSchema = exports.ClientStatusSchema = void 0;
4
4
  const zod_openapi_1 = require("@anatine/zod-openapi");
5
5
  const core_1 = require("@ts-rest/core");
6
6
  const zod_1 = require("zod");
@@ -9,7 +9,7 @@ const error_schemas_1 = require("../common/error-schemas");
9
9
  const pagination_query_schema_1 = require("../common/pagination-query.schema");
10
10
  const pagination_schema_1 = require("../common/pagination.schema");
11
11
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
12
- const ClientStatusSchema = zod_1.z
12
+ exports.ClientStatusSchema = zod_1.z
13
13
  .enum(['APPROVED', 'PENDING_VERIFICATION', 'BLACKLISTED'])
14
14
  .openapi({ title: 'ClientStatus' });
15
15
  const ClientSortableFieldsSchema = zod_1.z
@@ -31,7 +31,7 @@ exports.ClientSchema = zod_1.z
31
31
  .describe('Company Registration Number (e.g., 12345678, NI678127, SC123456). Null for sole traders.'),
32
32
  govLink: zod_1.z.string().url().describe('Government Registration Link'),
33
33
  soleTrader: zod_1.z.boolean().describe('Whether the client is a sole trader'),
34
- status: ClientStatusSchema.describe('Client Status'),
34
+ status: exports.ClientStatusSchema.describe('Client Status'),
35
35
  director: zod_1.z.string().describe('Director Name'),
36
36
  blacklistReason: zod_1.z
37
37
  .string()
@@ -86,7 +86,7 @@ exports.UpdateClientBaseSchema = zod_1.z
86
86
  .optional()
87
87
  .describe('Government Registration Link'),
88
88
  director: zod_1.z.string().max(255).optional().describe('Director Name'),
89
- status: ClientStatusSchema.optional().describe('Client Status'),
89
+ status: exports.ClientStatusSchema.optional().describe('Client Status'),
90
90
  blacklistReason: zod_1.z
91
91
  .string()
92
92
  .nullable()
@@ -131,7 +131,7 @@ exports.FilterClientSchema = pagination_query_schema_1.PaginationQuerySchema.ext
131
131
  .optional()
132
132
  .nullable()
133
133
  .describe('Filter by client name (case-insensitive contains match)'),
134
- status: ClientStatusSchema.optional()
134
+ status: exports.ClientStatusSchema.optional()
135
135
  .nullable()
136
136
  .describe('Filter by client status'),
137
137
  director: zod_1.z