@dakkitor/api-contracts 1.1.109 → 1.1.112

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
@@ -13,23 +13,23 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
13
13
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  id: string;
16
+ name: string;
16
17
  createdAt: string;
17
18
  updatedAt: string;
18
- name: string;
19
19
  }, {
20
20
  id: string;
21
+ name: string;
21
22
  createdAt: string | Date;
22
23
  updatedAt: string | Date;
23
- name: string;
24
24
  }>>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
27
27
  agentId: string;
28
28
  company?: {
29
29
  id: string;
30
+ name: string;
30
31
  createdAt: string;
31
32
  updatedAt: string;
32
- name: string;
33
33
  } | null | undefined;
34
34
  companyId?: string | null | undefined;
35
35
  leadDistributionConfigId?: string | null | undefined;
@@ -38,9 +38,9 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
38
38
  agentId: string;
39
39
  company?: {
40
40
  id: string;
41
+ name: string;
41
42
  createdAt: string | Date;
42
43
  updatedAt: string | Date;
43
- name: string;
44
44
  } | null | undefined;
45
45
  companyId?: string | null | undefined;
46
46
  leadDistributionConfigId?: string | null | undefined;
@@ -57,14 +57,14 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
57
57
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  id: string;
60
+ name: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
62
- name: string;
63
63
  }, {
64
64
  id: string;
65
+ name: string;
65
66
  createdAt: string | Date;
66
67
  updatedAt: string | Date;
67
- name: string;
68
68
  }>>>;
69
69
  } & {
70
70
  id: z.ZodString;
@@ -146,9 +146,9 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
146
146
  };
147
147
  company?: {
148
148
  id: string;
149
+ name: string;
149
150
  createdAt: string;
150
151
  updatedAt: string;
151
- name: string;
152
152
  } | null | undefined;
153
153
  companyId?: string | null | undefined;
154
154
  leadDistributionConfigId?: string | null | undefined;
@@ -174,9 +174,9 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
174
174
  };
175
175
  company?: {
176
176
  id: string;
177
+ name: string;
177
178
  createdAt: string | Date;
178
179
  updatedAt: string | Date;
179
- name: string;
180
180
  } | null | undefined;
181
181
  companyId?: string | null | undefined;
182
182
  leadDistributionConfigId?: string | null | undefined;
@@ -227,9 +227,9 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
227
227
  leadDistributionConfigId?: string | undefined;
228
228
  }, {
229
229
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
230
+ agentId?: string | undefined;
230
231
  limit?: number | undefined;
231
232
  page?: number | undefined;
232
- agentId?: string | undefined;
233
233
  companyId?: string | undefined;
234
234
  leadDistributionConfigId?: string | undefined;
235
235
  }>;
@@ -246,14 +246,14 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
246
246
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
247
247
  }, "strip", z.ZodTypeAny, {
248
248
  id: string;
249
+ name: string;
249
250
  createdAt: string;
250
251
  updatedAt: string;
251
- name: string;
252
252
  }, {
253
253
  id: string;
254
+ name: string;
254
255
  createdAt: string | Date;
255
256
  updatedAt: string | Date;
256
- name: string;
257
257
  }>>>;
258
258
  } & {
259
259
  id: z.ZodString;
@@ -335,9 +335,9 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
335
335
  };
336
336
  company?: {
337
337
  id: string;
338
+ name: string;
338
339
  createdAt: string;
339
340
  updatedAt: string;
340
- name: string;
341
341
  } | null | undefined;
342
342
  companyId?: string | null | undefined;
343
343
  leadDistributionConfigId?: string | null | undefined;
@@ -363,9 +363,9 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
363
363
  };
364
364
  company?: {
365
365
  id: string;
366
+ name: string;
366
367
  createdAt: string | Date;
367
368
  updatedAt: string | Date;
368
- name: string;
369
369
  } | null | undefined;
370
370
  companyId?: string | null | undefined;
371
371
  leadDistributionConfigId?: string | null | undefined;
@@ -399,9 +399,9 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
399
399
  };
400
400
  company?: {
401
401
  id: string;
402
+ name: string;
402
403
  createdAt: string;
403
404
  updatedAt: string;
404
- name: string;
405
405
  } | null | undefined;
406
406
  companyId?: string | null | undefined;
407
407
  leadDistributionConfigId?: string | null | undefined;
@@ -434,9 +434,9 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
434
434
  };
435
435
  company?: {
436
436
  id: string;
437
+ name: string;
437
438
  createdAt: string | Date;
438
439
  updatedAt: string | Date;
439
- name: string;
440
440
  } | null | undefined;
441
441
  companyId?: string | null | undefined;
442
442
  leadDistributionConfigId?: string | null | undefined;
@@ -471,9 +471,9 @@ export declare const agentLeadDistributionContract: {
471
471
  leadDistributionConfigId?: string | undefined;
472
472
  }, {
473
473
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
474
+ agentId?: string | undefined;
474
475
  limit?: number | undefined;
475
476
  page?: number | undefined;
476
- agentId?: string | undefined;
477
477
  companyId?: string | undefined;
478
478
  leadDistributionConfigId?: string | undefined;
479
479
  }>;
@@ -572,14 +572,14 @@ export declare const agentLeadDistributionContract: {
572
572
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
573
573
  }, "strip", z.ZodTypeAny, {
574
574
  id: string;
575
+ name: string;
575
576
  createdAt: string;
576
577
  updatedAt: string;
577
- name: string;
578
578
  }, {
579
579
  id: string;
580
+ name: string;
580
581
  createdAt: string | Date;
581
582
  updatedAt: string | Date;
582
- name: string;
583
583
  }>>>;
584
584
  } & {
585
585
  id: z.ZodString;
@@ -661,9 +661,9 @@ export declare const agentLeadDistributionContract: {
661
661
  };
662
662
  company?: {
663
663
  id: string;
664
+ name: string;
664
665
  createdAt: string;
665
666
  updatedAt: string;
666
- name: string;
667
667
  } | null | undefined;
668
668
  companyId?: string | null | undefined;
669
669
  leadDistributionConfigId?: string | null | undefined;
@@ -689,9 +689,9 @@ export declare const agentLeadDistributionContract: {
689
689
  };
690
690
  company?: {
691
691
  id: string;
692
+ name: string;
692
693
  createdAt: string | Date;
693
694
  updatedAt: string | Date;
694
- name: string;
695
695
  } | null | undefined;
696
696
  companyId?: string | null | undefined;
697
697
  leadDistributionConfigId?: string | null | undefined;
@@ -725,9 +725,9 @@ export declare const agentLeadDistributionContract: {
725
725
  };
726
726
  company?: {
727
727
  id: string;
728
+ name: string;
728
729
  createdAt: string;
729
730
  updatedAt: string;
730
- name: string;
731
731
  } | null | undefined;
732
732
  companyId?: string | null | undefined;
733
733
  leadDistributionConfigId?: string | null | undefined;
@@ -760,9 +760,9 @@ export declare const agentLeadDistributionContract: {
760
760
  };
761
761
  company?: {
762
762
  id: string;
763
+ name: string;
763
764
  createdAt: string | Date;
764
765
  updatedAt: string | Date;
765
- name: string;
766
766
  } | null | undefined;
767
767
  companyId?: string | null | undefined;
768
768
  leadDistributionConfigId?: string | null | undefined;
@@ -901,14 +901,14 @@ export declare const agentLeadDistributionContract: {
901
901
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
902
902
  }, "strip", z.ZodTypeAny, {
903
903
  id: string;
904
+ name: string;
904
905
  createdAt: string;
905
906
  updatedAt: string;
906
- name: string;
907
907
  }, {
908
908
  id: string;
909
+ name: string;
909
910
  createdAt: string | Date;
910
911
  updatedAt: string | Date;
911
- name: string;
912
912
  }>>>;
913
913
  } & {
914
914
  id: z.ZodString;
@@ -990,9 +990,9 @@ export declare const agentLeadDistributionContract: {
990
990
  };
991
991
  company?: {
992
992
  id: string;
993
+ name: string;
993
994
  createdAt: string;
994
995
  updatedAt: string;
995
- name: string;
996
996
  } | null | undefined;
997
997
  companyId?: string | null | undefined;
998
998
  leadDistributionConfigId?: string | null | undefined;
@@ -1018,9 +1018,9 @@ export declare const agentLeadDistributionContract: {
1018
1018
  };
1019
1019
  company?: {
1020
1020
  id: string;
1021
+ name: string;
1021
1022
  createdAt: string | Date;
1022
1023
  updatedAt: string | Date;
1023
- name: string;
1024
1024
  } | null | undefined;
1025
1025
  companyId?: string | null | undefined;
1026
1026
  leadDistributionConfigId?: string | null | undefined;
@@ -1188,23 +1188,23 @@ export declare const agentLeadDistributionContract: {
1188
1188
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1189
1189
  }, "strip", z.ZodTypeAny, {
1190
1190
  id: string;
1191
+ name: string;
1191
1192
  createdAt: string;
1192
1193
  updatedAt: string;
1193
- name: string;
1194
1194
  }, {
1195
1195
  id: string;
1196
+ name: string;
1196
1197
  createdAt: string | Date;
1197
1198
  updatedAt: string | Date;
1198
- name: string;
1199
1199
  }>>>;
1200
1200
  }, "strip", z.ZodTypeAny, {
1201
1201
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1202
1202
  agentId: string;
1203
1203
  company?: {
1204
1204
  id: string;
1205
+ name: string;
1205
1206
  createdAt: string;
1206
1207
  updatedAt: string;
1207
- name: string;
1208
1208
  } | null | undefined;
1209
1209
  companyId?: string | null | undefined;
1210
1210
  leadDistributionConfigId?: string | null | undefined;
@@ -1213,9 +1213,9 @@ export declare const agentLeadDistributionContract: {
1213
1213
  agentId: string;
1214
1214
  company?: {
1215
1215
  id: string;
1216
+ name: string;
1216
1217
  createdAt: string | Date;
1217
1218
  updatedAt: string | Date;
1218
- name: string;
1219
1219
  } | null | undefined;
1220
1220
  companyId?: string | null | undefined;
1221
1221
  leadDistributionConfigId?: string | null | undefined;
@@ -1362,23 +1362,23 @@ export declare const agentLeadDistributionContract: {
1362
1362
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1363
1363
  }, "strip", z.ZodTypeAny, {
1364
1364
  id: string;
1365
+ name: string;
1365
1366
  createdAt: string;
1366
1367
  updatedAt: string;
1367
- name: string;
1368
1368
  }, {
1369
1369
  id: string;
1370
+ name: string;
1370
1371
  createdAt: string | Date;
1371
1372
  updatedAt: string | Date;
1372
- name: string;
1373
1373
  }>>>;
1374
1374
  }, "strip", z.ZodTypeAny, {
1375
1375
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1376
1376
  agentId: string;
1377
1377
  company?: {
1378
1378
  id: string;
1379
+ name: string;
1379
1380
  createdAt: string;
1380
1381
  updatedAt: string;
1381
- name: string;
1382
1382
  } | null | undefined;
1383
1383
  companyId?: string | null | undefined;
1384
1384
  leadDistributionConfigId?: string | null | undefined;
@@ -1387,9 +1387,9 @@ export declare const agentLeadDistributionContract: {
1387
1387
  agentId: string;
1388
1388
  company?: {
1389
1389
  id: string;
1390
+ name: string;
1390
1391
  createdAt: string | Date;
1391
1392
  updatedAt: string | Date;
1392
- name: string;
1393
1393
  } | null | undefined;
1394
1394
  companyId?: string | null | undefined;
1395
1395
  leadDistributionConfigId?: string | null | undefined;
@@ -70,8 +70,8 @@ export declare const UpdateLeadDistributionConfigSchema: z.ZodObject<{
70
70
  highMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
71
71
  isActive: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
72
72
  }, "strip", z.ZodTypeAny, {
73
- name?: string | undefined;
74
73
  description?: string | undefined;
74
+ name?: string | undefined;
75
75
  isActive?: boolean | undefined;
76
76
  lowShare?: number | undefined;
77
77
  mediumShare?: number | undefined;
@@ -79,8 +79,8 @@ export declare const UpdateLeadDistributionConfigSchema: z.ZodObject<{
79
79
  mediumMinWeight?: number | undefined;
80
80
  highMinWeight?: number | undefined;
81
81
  }, {
82
- name?: string | undefined;
83
82
  description?: string | undefined;
83
+ name?: string | undefined;
84
84
  isActive?: boolean | undefined;
85
85
  lowShare?: number | undefined;
86
86
  mediumShare?: number | undefined;
@@ -190,9 +190,6 @@ export type FilterLeadDistributionConfig = z.infer<typeof FilterLeadDistribution
190
190
  export type PaginatedLeadDistributionConfigResponse = z.infer<typeof PaginatedLeadDistributionConfigResponseSchema>;
191
191
  export declare const leadDistributionConfigContract: {
192
192
  findAll: {
193
- metadata: {
194
- tags: string[];
195
- };
196
193
  query: z.ZodObject<{
197
194
  limit: z.ZodDefault<z.ZodNumber>;
198
195
  page: z.ZodDefault<z.ZodNumber>;
@@ -216,6 +213,9 @@ export declare const leadDistributionConfigContract: {
216
213
  sortOrder?: "ASC" | "DESC" | undefined;
217
214
  isActive?: boolean | undefined;
218
215
  }>;
216
+ metadata: {
217
+ tags: string[];
218
+ };
219
219
  summary: "List all lead distribution configs";
220
220
  method: "GET";
221
221
  path: "/v2/lead-distribution-configs";
@@ -759,8 +759,8 @@ export declare const leadDistributionConfigContract: {
759
759
  highMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
760
760
  isActive: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
761
761
  }, "strip", z.ZodTypeAny, {
762
- name?: string | undefined;
763
762
  description?: string | undefined;
763
+ name?: string | undefined;
764
764
  isActive?: boolean | undefined;
765
765
  lowShare?: number | undefined;
766
766
  mediumShare?: number | undefined;
@@ -768,8 +768,8 @@ export declare const leadDistributionConfigContract: {
768
768
  mediumMinWeight?: number | undefined;
769
769
  highMinWeight?: number | undefined;
770
770
  }, {
771
- name?: string | undefined;
772
771
  description?: string | undefined;
772
+ name?: string | undefined;
773
773
  isActive?: boolean | undefined;
774
774
  lowShare?: number | undefined;
775
775
  mediumShare?: number | undefined;