@dakkitor/api-contracts 1.1.126 → 1.1.127

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 (30) hide show
  1. package/dist/actives/actives.contract.d.ts +3851 -3851
  2. package/dist/agent-client-links/agent-client-links.contract.d.ts +538 -538
  3. package/dist/bookings/bookings.contract.d.ts +14861 -14861
  4. package/dist/call-history/call-history.contract.d.ts +183 -183
  5. package/dist/client-contacts/client-contacts.contract.d.ts +502 -502
  6. package/dist/clients/clients.contract.d.ts +172 -172
  7. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1558 -1558
  8. package/dist/collaborations/collaborations.contract.d.ts +1316 -1316
  9. package/dist/common/common-schemas.d.ts +8 -8
  10. package/dist/companies/companies.contract.d.ts +12 -12
  11. package/dist/cron-executions/cron-executions.contract.d.ts +6 -6
  12. package/dist/curated-workers/curated-workers.contract.d.ts +450 -450
  13. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  14. package/dist/curated-workers/curated-workers.contract.js +4 -2
  15. package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
  16. package/dist/dashboards/dashboard-widgets.contract.d.ts +54 -54
  17. package/dist/dashboards/dashboard.contract.d.ts +34 -34
  18. package/dist/files/files.contract.d.ts +24 -24
  19. package/dist/jobs/jobs.contract.d.ts +1717 -1717
  20. package/dist/lead-assignments/lead-assignments.contract.d.ts +66 -66
  21. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +53 -53
  22. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
  23. package/dist/leads/leads.contract.d.ts +161 -161
  24. package/dist/locations/locations.contract.d.ts +21 -21
  25. package/dist/postcodes/postcodes.contract.d.ts +18 -18
  26. package/dist/qualifications/qualifications.contract.d.ts +22 -22
  27. package/dist/trades/trades.contract.d.ts +16 -16
  28. package/dist/users/users.contract.d.ts +36 -36
  29. package/dist/workers/workers.contract.d.ts +651 -651
  30. package/package.json +1 -1
@@ -6,14 +6,14 @@ export declare const PerformanceMetricsSchema: z.ZodObject<{
6
6
  status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
9
+ conversionRate: number;
9
10
  score: number;
10
11
  tier: string;
11
- conversionRate: number;
12
12
  }, {
13
13
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
14
+ conversionRate: number;
14
15
  score: number;
15
16
  tier: string;
16
- conversionRate: number;
17
17
  }>;
18
18
  export declare const DashboardMetricsSchema: z.ZodObject<{
19
19
  totalJobs: z.ZodNumber;
@@ -29,14 +29,14 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
29
29
  status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
32
+ conversionRate: number;
32
33
  score: number;
33
34
  tier: string;
34
- conversionRate: number;
35
35
  }, {
36
36
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
37
+ conversionRate: number;
37
38
  score: number;
38
39
  tier: string;
39
- conversionRate: number;
40
40
  }>>;
41
41
  totalCollaborations: z.ZodNumber;
42
42
  collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -44,17 +44,17 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
44
44
  activesToday: z.ZodNumber;
45
45
  activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- totalBookings: number;
48
47
  totalJobs: number;
48
+ totalBookings: number;
49
49
  bookingsByStatus: Record<string, number>;
50
50
  totalClients: number;
51
51
  totalCollaborationCheckings: number;
52
52
  collaborationCheckingsByStatus: Record<string, number>;
53
53
  performance: {
54
54
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
55
+ conversionRate: number;
55
56
  score: number;
56
57
  tier: string;
57
- conversionRate: number;
58
58
  } | null;
59
59
  totalCollaborations: number;
60
60
  collaborationsByStatus: Record<string, number>;
@@ -62,17 +62,17 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
62
62
  activesToday: number;
63
63
  activesTodayByStatus: Record<string, number>;
64
64
  }, {
65
- totalBookings: number;
66
65
  totalJobs: number;
66
+ totalBookings: number;
67
67
  bookingsByStatus: Record<string, number>;
68
68
  totalClients: number;
69
69
  totalCollaborationCheckings: number;
70
70
  collaborationCheckingsByStatus: Record<string, number>;
71
71
  performance: {
72
72
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
73
+ conversionRate: number;
73
74
  score: number;
74
75
  tier: string;
75
- conversionRate: number;
76
76
  } | null;
77
77
  totalCollaborations: number;
78
78
  collaborationsByStatus: Record<string, number>;
@@ -86,12 +86,12 @@ export declare const AgentActivesMetricsSchema: z.ZodObject<{
86
86
  total: z.ZodNumber;
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  date: string;
89
- statusCounts: Record<string, number>;
90
89
  total: number;
90
+ statusCounts: Record<string, number>;
91
91
  }, {
92
92
  date: string;
93
- statusCounts: Record<string, number>;
94
93
  total: number;
94
+ statusCounts: Record<string, number>;
95
95
  }>;
96
96
  export declare const AgentBookingsMetricsSchema: z.ZodObject<{
97
97
  date: z.ZodString;
@@ -99,12 +99,12 @@ export declare const AgentBookingsMetricsSchema: z.ZodObject<{
99
99
  total: z.ZodNumber;
100
100
  }, "strip", z.ZodTypeAny, {
101
101
  date: string;
102
- statusCounts: Record<string, number>;
103
102
  total: number;
103
+ statusCounts: Record<string, number>;
104
104
  }, {
105
105
  date: string;
106
- statusCounts: Record<string, number>;
107
106
  total: number;
107
+ statusCounts: Record<string, number>;
108
108
  }>;
109
109
  export declare const AgentCallPerformanceMetricsSchema: z.ZodObject<{
110
110
  date: z.ZodString;
@@ -116,20 +116,20 @@ export declare const AgentCallPerformanceMetricsSchema: z.ZodObject<{
116
116
  performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
117
117
  }, "strip", z.ZodTypeAny, {
118
118
  date: string;
119
- totalCalls: number;
120
- averageRatingWeight: number;
121
119
  conversionRate: number;
122
- successVariance: number;
120
+ totalCalls: number;
123
121
  performanceScore: number;
124
122
  performanceTier: "high" | "medium" | "low" | "new";
123
+ averageRatingWeight: number;
124
+ successVariance: number;
125
125
  }, {
126
126
  date: string;
127
- totalCalls: number;
128
- averageRatingWeight: number;
129
127
  conversionRate: number;
130
- successVariance: number;
128
+ totalCalls: number;
131
129
  performanceScore: number;
132
130
  performanceTier: "high" | "medium" | "low" | "new";
131
+ averageRatingWeight: number;
132
+ successVariance: number;
133
133
  }>;
134
134
  export declare const DateRangeFilterSchema: z.ZodObject<{
135
135
  startDate: z.ZodOptional<z.ZodString>;
@@ -171,14 +171,14 @@ export declare const dashboardContract: {
171
171
  status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
172
172
  }, "strip", z.ZodTypeAny, {
173
173
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
174
+ conversionRate: number;
174
175
  score: number;
175
176
  tier: string;
176
- conversionRate: number;
177
177
  }, {
178
178
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
179
+ conversionRate: number;
179
180
  score: number;
180
181
  tier: string;
181
- conversionRate: number;
182
182
  }>>;
183
183
  totalCollaborations: z.ZodNumber;
184
184
  collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -186,17 +186,17 @@ export declare const dashboardContract: {
186
186
  activesToday: z.ZodNumber;
187
187
  activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
188
188
  }, "strip", z.ZodTypeAny, {
189
- totalBookings: number;
190
189
  totalJobs: number;
190
+ totalBookings: number;
191
191
  bookingsByStatus: Record<string, number>;
192
192
  totalClients: number;
193
193
  totalCollaborationCheckings: number;
194
194
  collaborationCheckingsByStatus: Record<string, number>;
195
195
  performance: {
196
196
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
197
+ conversionRate: number;
197
198
  score: number;
198
199
  tier: string;
199
- conversionRate: number;
200
200
  } | null;
201
201
  totalCollaborations: number;
202
202
  collaborationsByStatus: Record<string, number>;
@@ -204,17 +204,17 @@ export declare const dashboardContract: {
204
204
  activesToday: number;
205
205
  activesTodayByStatus: Record<string, number>;
206
206
  }, {
207
- totalBookings: number;
208
207
  totalJobs: number;
208
+ totalBookings: number;
209
209
  bookingsByStatus: Record<string, number>;
210
210
  totalClients: number;
211
211
  totalCollaborationCheckings: number;
212
212
  collaborationCheckingsByStatus: Record<string, number>;
213
213
  performance: {
214
214
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
215
+ conversionRate: number;
215
216
  score: number;
216
217
  tier: string;
217
- conversionRate: number;
218
218
  } | null;
219
219
  totalCollaborations: number;
220
220
  collaborationsByStatus: Record<string, number>;
@@ -235,12 +235,12 @@ export declare const dashboardContract: {
235
235
  total: z.ZodNumber;
236
236
  }, "strip", z.ZodTypeAny, {
237
237
  date: string;
238
- statusCounts: Record<string, number>;
239
238
  total: number;
239
+ statusCounts: Record<string, number>;
240
240
  }, {
241
241
  date: string;
242
- statusCounts: Record<string, number>;
243
242
  total: number;
243
+ statusCounts: Record<string, number>;
244
244
  }>>;
245
245
  };
246
246
  };
@@ -255,12 +255,12 @@ export declare const dashboardContract: {
255
255
  total: z.ZodNumber;
256
256
  }, "strip", z.ZodTypeAny, {
257
257
  date: string;
258
- statusCounts: Record<string, number>;
259
258
  total: number;
259
+ statusCounts: Record<string, number>;
260
260
  }, {
261
261
  date: string;
262
- statusCounts: Record<string, number>;
263
262
  total: number;
263
+ statusCounts: Record<string, number>;
264
264
  }>>;
265
265
  };
266
266
  };
@@ -279,20 +279,20 @@ export declare const dashboardContract: {
279
279
  performanceTier: z.ZodEnum<["high", "medium", "low", "new"]>;
280
280
  }, "strip", z.ZodTypeAny, {
281
281
  date: string;
282
- totalCalls: number;
283
- averageRatingWeight: number;
284
282
  conversionRate: number;
285
- successVariance: number;
283
+ totalCalls: number;
286
284
  performanceScore: number;
287
285
  performanceTier: "high" | "medium" | "low" | "new";
286
+ averageRatingWeight: number;
287
+ successVariance: number;
288
288
  }, {
289
289
  date: string;
290
- totalCalls: number;
291
- averageRatingWeight: number;
292
290
  conversionRate: number;
293
- successVariance: number;
291
+ totalCalls: number;
294
292
  performanceScore: number;
295
293
  performanceTier: "high" | "medium" | "low" | "new";
294
+ averageRatingWeight: number;
295
+ successVariance: number;
296
296
  }>>;
297
297
  };
298
298
  };
@@ -41,29 +41,29 @@ export declare const FileResponseSchema: z.ZodObject<{
41
41
  description: string | null;
42
42
  createdAt: string;
43
43
  updatedAt: string;
44
- userId: string;
45
- location: string;
46
44
  size: number;
47
45
  originalName: string;
48
46
  storageKey: string;
49
47
  mimeType: string;
48
+ location: string;
50
49
  storageProvider: string;
51
50
  entityType: string | null;
52
51
  entityId: string | null;
52
+ userId: string;
53
53
  }, {
54
54
  id: string;
55
55
  description: string | null;
56
56
  createdAt: string | Date;
57
57
  updatedAt: string | Date;
58
- userId: string;
59
- location: string;
60
58
  size: number;
61
59
  originalName: string;
62
60
  storageKey: string;
63
61
  mimeType: string;
62
+ location: string;
64
63
  storageProvider: string;
65
64
  entityType: string | null;
66
65
  entityId: string | null;
66
+ userId: string;
67
67
  }>;
68
68
  export declare const FileDownloadUrlResponseSchema: z.ZodObject<{
69
69
  url: z.ZodString;
@@ -101,29 +101,29 @@ export declare const FileResponseArraySchema: z.ZodArray<z.ZodObject<{
101
101
  description: string | null;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
- userId: string;
105
- location: string;
106
104
  size: number;
107
105
  originalName: string;
108
106
  storageKey: string;
109
107
  mimeType: string;
108
+ location: string;
110
109
  storageProvider: string;
111
110
  entityType: string | null;
112
111
  entityId: string | null;
112
+ userId: string;
113
113
  }, {
114
114
  id: string;
115
115
  description: string | null;
116
116
  createdAt: string | Date;
117
117
  updatedAt: string | Date;
118
- userId: string;
119
- location: string;
120
118
  size: number;
121
119
  originalName: string;
122
120
  storageKey: string;
123
121
  mimeType: string;
122
+ location: string;
124
123
  storageProvider: string;
125
124
  entityType: string | null;
126
125
  entityId: string | null;
126
+ userId: string;
127
127
  }>, "many">;
128
128
  export type GenerateUploadUrl = z.infer<typeof GenerateUploadUrlSchema>;
129
129
  export type GenerateUploadUrlResponse = z.infer<typeof GenerateUploadUrlResponseSchema>;
@@ -367,29 +367,29 @@ export declare const filesContract: {
367
367
  description: string | null;
368
368
  createdAt: string;
369
369
  updatedAt: string;
370
- userId: string;
371
- location: string;
372
370
  size: number;
373
371
  originalName: string;
374
372
  storageKey: string;
375
373
  mimeType: string;
374
+ location: string;
376
375
  storageProvider: string;
377
376
  entityType: string | null;
378
377
  entityId: string | null;
378
+ userId: string;
379
379
  }, {
380
380
  id: string;
381
381
  description: string | null;
382
382
  createdAt: string | Date;
383
383
  updatedAt: string | Date;
384
- userId: string;
385
- location: string;
386
384
  size: number;
387
385
  originalName: string;
388
386
  storageKey: string;
389
387
  mimeType: string;
388
+ location: string;
390
389
  storageProvider: string;
391
390
  entityType: string | null;
392
391
  entityId: string | null;
392
+ userId: string;
393
393
  }>, "many">;
394
394
  403: z.ZodObject<{
395
395
  statusCode: z.ZodNumber;
@@ -530,29 +530,29 @@ export declare const filesContract: {
530
530
  description: string | null;
531
531
  createdAt: string;
532
532
  updatedAt: string;
533
- userId: string;
534
- location: string;
535
533
  size: number;
536
534
  originalName: string;
537
535
  storageKey: string;
538
536
  mimeType: string;
537
+ location: string;
539
538
  storageProvider: string;
540
539
  entityType: string | null;
541
540
  entityId: string | null;
541
+ userId: string;
542
542
  }, {
543
543
  id: string;
544
544
  description: string | null;
545
545
  createdAt: string | Date;
546
546
  updatedAt: string | Date;
547
- userId: string;
548
- location: string;
549
547
  size: number;
550
548
  originalName: string;
551
549
  storageKey: string;
552
550
  mimeType: string;
551
+ location: string;
553
552
  storageProvider: string;
554
553
  entityType: string | null;
555
554
  entityId: string | null;
555
+ userId: string;
556
556
  }>, "many">;
557
557
  403: z.ZodObject<{
558
558
  statusCode: z.ZodNumber;
@@ -690,29 +690,29 @@ export declare const filesContract: {
690
690
  description: string | null;
691
691
  createdAt: string;
692
692
  updatedAt: string;
693
- userId: string;
694
- location: string;
695
693
  size: number;
696
694
  originalName: string;
697
695
  storageKey: string;
698
696
  mimeType: string;
697
+ location: string;
699
698
  storageProvider: string;
700
699
  entityType: string | null;
701
700
  entityId: string | null;
701
+ userId: string;
702
702
  }, {
703
703
  id: string;
704
704
  description: string | null;
705
705
  createdAt: string | Date;
706
706
  updatedAt: string | Date;
707
- userId: string;
708
- location: string;
709
707
  size: number;
710
708
  originalName: string;
711
709
  storageKey: string;
712
710
  mimeType: string;
711
+ location: string;
713
712
  storageProvider: string;
714
713
  entityType: string | null;
715
714
  entityId: string | null;
715
+ userId: string;
716
716
  }>;
717
717
  404: z.ZodObject<{
718
718
  statusCode: z.ZodNumber;
@@ -1034,29 +1034,29 @@ export declare const filesContract: {
1034
1034
  description: string | null;
1035
1035
  createdAt: string;
1036
1036
  updatedAt: string;
1037
- userId: string;
1038
- location: string;
1039
1037
  size: number;
1040
1038
  originalName: string;
1041
1039
  storageKey: string;
1042
1040
  mimeType: string;
1041
+ location: string;
1043
1042
  storageProvider: string;
1044
1043
  entityType: string | null;
1045
1044
  entityId: string | null;
1045
+ userId: string;
1046
1046
  }, {
1047
1047
  id: string;
1048
1048
  description: string | null;
1049
1049
  createdAt: string | Date;
1050
1050
  updatedAt: string | Date;
1051
- userId: string;
1052
- location: string;
1053
1051
  size: number;
1054
1052
  originalName: string;
1055
1053
  storageKey: string;
1056
1054
  mimeType: string;
1055
+ location: string;
1057
1056
  storageProvider: string;
1058
1057
  entityType: string | null;
1059
1058
  entityId: string | null;
1059
+ userId: string;
1060
1060
  }>;
1061
1061
  404: z.ZodObject<{
1062
1062
  statusCode: z.ZodNumber;