@dakkitor/api-contracts 1.1.26 → 1.1.28
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.
- package/dist/actives/actives.contract.d.ts +4899 -597
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +0 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +487 -487
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +2 -0
- package/dist/auth/auth.contract.d.ts +4 -4
- package/dist/bookings/bookings.contract.d.ts +5657 -1430
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +6 -6
- package/dist/call-history/call-history.contract.d.ts +1188 -262
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +3 -4
- package/dist/client-contacts/client-contacts.contract.d.ts +515 -515
- package/dist/clients/clients.contract.d.ts +380 -380
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +8 -2
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3349 -1023
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaboration-checkings/collaboration-checkings.contract.js +3 -10
- package/dist/collaborations/collaborations.contract.d.ts +2934 -219
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +19 -33
- package/dist/common/common-schemas.d.ts +6 -6
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +3 -5
- package/dist/common/error-schemas.d.ts +6 -6
- package/dist/companies/companies.contract.d.ts +212 -212
- package/dist/cron-executions/cron-executions.contract.d.ts +228 -228
- package/dist/curated-workers/curated-workers.contract.d.ts +366 -366
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +4 -10
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +120 -120
- package/dist/files/files.contract.d.ts +228 -228
- package/dist/health/health.contract.d.ts +22 -22
- package/dist/jobs/jobs.contract.d.ts +3517 -511
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +36 -17
- package/dist/lead-assignments/lead-assignments.contract.d.ts +272 -272
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +146 -146
- package/dist/leads/leads.contract.d.ts +316 -316
- package/dist/locations/locations.contract.d.ts +161 -161
- package/dist/postcodes/postcodes.contract.d.ts +66 -66
- package/dist/qualifications/qualifications.contract.d.ts +256 -256
- package/dist/trades/trades.contract.d.ts +160 -160
- package/dist/users/users.contract.d.ts +100 -100
- package/dist/workers/workers.contract.d.ts +129 -75
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +20 -13
- package/package.json +1 -1
- package/dist/common/api-responses.d.ts +0 -105
- package/dist/common/api-responses.d.ts.map +0 -1
- package/dist/common/api-responses.js +0 -107
|
@@ -30,22 +30,22 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
30
30
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
31
31
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
|
|
33
|
+
id: string;
|
|
34
34
|
firstName: string;
|
|
35
|
+
lastName: string;
|
|
35
36
|
email: string;
|
|
36
|
-
phone: string;
|
|
37
37
|
createdAt: string;
|
|
38
|
-
id: string;
|
|
39
38
|
updatedAt: string;
|
|
39
|
+
phone: string;
|
|
40
40
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
|
|
42
|
+
id: string;
|
|
43
43
|
firstName: string;
|
|
44
|
+
lastName: string;
|
|
44
45
|
email: string;
|
|
45
|
-
phone: string;
|
|
46
46
|
createdAt: string | Date;
|
|
47
|
-
id: string;
|
|
48
47
|
updatedAt: string | Date;
|
|
48
|
+
phone: string;
|
|
49
49
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -53,13 +53,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
53
53
|
id: string;
|
|
54
54
|
agentId: string;
|
|
55
55
|
agent: {
|
|
56
|
-
|
|
56
|
+
id: string;
|
|
57
57
|
firstName: string;
|
|
58
|
+
lastName: string;
|
|
58
59
|
email: string;
|
|
59
|
-
phone: string;
|
|
60
60
|
createdAt: string;
|
|
61
|
-
id: string;
|
|
62
61
|
updatedAt: string;
|
|
62
|
+
phone: string;
|
|
63
63
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
64
64
|
};
|
|
65
65
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -68,13 +68,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
|
|
|
68
68
|
id: string;
|
|
69
69
|
agentId: string;
|
|
70
70
|
agent: {
|
|
71
|
-
|
|
71
|
+
id: string;
|
|
72
72
|
firstName: string;
|
|
73
|
+
lastName: string;
|
|
73
74
|
email: string;
|
|
74
|
-
phone: string;
|
|
75
75
|
createdAt: string | Date;
|
|
76
|
-
id: string;
|
|
77
76
|
updatedAt: string | Date;
|
|
77
|
+
phone: string;
|
|
78
78
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
79
79
|
};
|
|
80
80
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -139,22 +139,22 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
139
139
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
140
140
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
|
|
142
|
+
id: string;
|
|
143
143
|
firstName: string;
|
|
144
|
+
lastName: string;
|
|
144
145
|
email: string;
|
|
145
|
-
phone: string;
|
|
146
146
|
createdAt: string;
|
|
147
|
-
id: string;
|
|
148
147
|
updatedAt: string;
|
|
148
|
+
phone: string;
|
|
149
149
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
150
150
|
}, {
|
|
151
|
-
|
|
151
|
+
id: string;
|
|
152
152
|
firstName: string;
|
|
153
|
+
lastName: string;
|
|
153
154
|
email: string;
|
|
154
|
-
phone: string;
|
|
155
155
|
createdAt: string | Date;
|
|
156
|
-
id: string;
|
|
157
156
|
updatedAt: string | Date;
|
|
157
|
+
phone: string;
|
|
158
158
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -162,13 +162,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
162
162
|
id: string;
|
|
163
163
|
agentId: string;
|
|
164
164
|
agent: {
|
|
165
|
-
|
|
165
|
+
id: string;
|
|
166
166
|
firstName: string;
|
|
167
|
+
lastName: string;
|
|
167
168
|
email: string;
|
|
168
|
-
phone: string;
|
|
169
169
|
createdAt: string;
|
|
170
|
-
id: string;
|
|
171
170
|
updatedAt: string;
|
|
171
|
+
phone: string;
|
|
172
172
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
173
173
|
};
|
|
174
174
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -177,13 +177,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
177
177
|
id: string;
|
|
178
178
|
agentId: string;
|
|
179
179
|
agent: {
|
|
180
|
-
|
|
180
|
+
id: string;
|
|
181
181
|
firstName: string;
|
|
182
|
+
lastName: string;
|
|
182
183
|
email: string;
|
|
183
|
-
phone: string;
|
|
184
184
|
createdAt: string | Date;
|
|
185
|
-
id: string;
|
|
186
185
|
updatedAt: string | Date;
|
|
186
|
+
phone: string;
|
|
187
187
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
188
188
|
};
|
|
189
189
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -200,13 +200,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
200
200
|
id: string;
|
|
201
201
|
agentId: string;
|
|
202
202
|
agent: {
|
|
203
|
-
|
|
203
|
+
id: string;
|
|
204
204
|
firstName: string;
|
|
205
|
+
lastName: string;
|
|
205
206
|
email: string;
|
|
206
|
-
phone: string;
|
|
207
207
|
createdAt: string;
|
|
208
|
-
id: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
phone: string;
|
|
210
210
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
211
211
|
};
|
|
212
212
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -222,13 +222,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
|
|
|
222
222
|
id: string;
|
|
223
223
|
agentId: string;
|
|
224
224
|
agent: {
|
|
225
|
-
|
|
225
|
+
id: string;
|
|
226
226
|
firstName: string;
|
|
227
|
+
lastName: string;
|
|
227
228
|
email: string;
|
|
228
|
-
phone: string;
|
|
229
229
|
createdAt: string | Date;
|
|
230
|
-
id: string;
|
|
231
230
|
updatedAt: string | Date;
|
|
231
|
+
phone: string;
|
|
232
232
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
233
233
|
};
|
|
234
234
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -246,9 +246,6 @@ export type FilterAgentLeadDistribution = z.infer<typeof FilterAgentLeadDistribu
|
|
|
246
246
|
export type PaginatedAgentLeadDistributionResponse = z.infer<typeof PaginatedAgentLeadDistributionResponseSchema>;
|
|
247
247
|
export declare const agentLeadDistributionContract: {
|
|
248
248
|
findAll: {
|
|
249
|
-
metadata: {
|
|
250
|
-
tags: string[];
|
|
251
|
-
};
|
|
252
249
|
query: z.ZodObject<{
|
|
253
250
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
254
251
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -269,6 +266,9 @@ export declare const agentLeadDistributionContract: {
|
|
|
269
266
|
agentId?: string | undefined;
|
|
270
267
|
leadDistributionConfigId?: string | undefined;
|
|
271
268
|
}>;
|
|
269
|
+
metadata: {
|
|
270
|
+
tags: string[];
|
|
271
|
+
};
|
|
272
272
|
summary: "List all agent lead distribution records";
|
|
273
273
|
method: "GET";
|
|
274
274
|
path: "/v2/agent-lead-distribution";
|
|
@@ -365,22 +365,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
365
365
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
366
366
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
|
|
368
|
+
id: string;
|
|
369
369
|
firstName: string;
|
|
370
|
+
lastName: string;
|
|
370
371
|
email: string;
|
|
371
|
-
phone: string;
|
|
372
372
|
createdAt: string;
|
|
373
|
-
id: string;
|
|
374
373
|
updatedAt: string;
|
|
374
|
+
phone: string;
|
|
375
375
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
376
376
|
}, {
|
|
377
|
-
|
|
377
|
+
id: string;
|
|
378
378
|
firstName: string;
|
|
379
|
+
lastName: string;
|
|
379
380
|
email: string;
|
|
380
|
-
phone: string;
|
|
381
381
|
createdAt: string | Date;
|
|
382
|
-
id: string;
|
|
383
382
|
updatedAt: string | Date;
|
|
383
|
+
phone: string;
|
|
384
384
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
385
385
|
}>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -388,13 +388,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
388
388
|
id: string;
|
|
389
389
|
agentId: string;
|
|
390
390
|
agent: {
|
|
391
|
-
|
|
391
|
+
id: string;
|
|
392
392
|
firstName: string;
|
|
393
|
+
lastName: string;
|
|
393
394
|
email: string;
|
|
394
|
-
phone: string;
|
|
395
395
|
createdAt: string;
|
|
396
|
-
id: string;
|
|
397
396
|
updatedAt: string;
|
|
397
|
+
phone: string;
|
|
398
398
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
399
399
|
};
|
|
400
400
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -403,13 +403,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
403
403
|
id: string;
|
|
404
404
|
agentId: string;
|
|
405
405
|
agent: {
|
|
406
|
-
|
|
406
|
+
id: string;
|
|
407
407
|
firstName: string;
|
|
408
|
+
lastName: string;
|
|
408
409
|
email: string;
|
|
409
|
-
phone: string;
|
|
410
410
|
createdAt: string | Date;
|
|
411
|
-
id: string;
|
|
412
411
|
updatedAt: string | Date;
|
|
412
|
+
phone: string;
|
|
413
413
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
414
414
|
};
|
|
415
415
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -426,13 +426,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
426
426
|
id: string;
|
|
427
427
|
agentId: string;
|
|
428
428
|
agent: {
|
|
429
|
-
|
|
429
|
+
id: string;
|
|
430
430
|
firstName: string;
|
|
431
|
+
lastName: string;
|
|
431
432
|
email: string;
|
|
432
|
-
phone: string;
|
|
433
433
|
createdAt: string;
|
|
434
|
-
id: string;
|
|
435
434
|
updatedAt: string;
|
|
435
|
+
phone: string;
|
|
436
436
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
437
437
|
};
|
|
438
438
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -448,13 +448,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
448
448
|
id: string;
|
|
449
449
|
agentId: string;
|
|
450
450
|
agent: {
|
|
451
|
-
|
|
451
|
+
id: string;
|
|
452
452
|
firstName: string;
|
|
453
|
+
lastName: string;
|
|
453
454
|
email: string;
|
|
454
|
-
phone: string;
|
|
455
455
|
createdAt: string | Date;
|
|
456
|
-
id: string;
|
|
457
456
|
updatedAt: string | Date;
|
|
457
|
+
phone: string;
|
|
458
458
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
459
459
|
};
|
|
460
460
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -597,22 +597,22 @@ export declare const agentLeadDistributionContract: {
|
|
|
597
597
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
598
598
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
|
|
600
|
+
id: string;
|
|
601
601
|
firstName: string;
|
|
602
|
+
lastName: string;
|
|
602
603
|
email: string;
|
|
603
|
-
phone: string;
|
|
604
604
|
createdAt: string;
|
|
605
|
-
id: string;
|
|
606
605
|
updatedAt: string;
|
|
606
|
+
phone: string;
|
|
607
607
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
608
608
|
}, {
|
|
609
|
-
|
|
609
|
+
id: string;
|
|
610
610
|
firstName: string;
|
|
611
|
+
lastName: string;
|
|
611
612
|
email: string;
|
|
612
|
-
phone: string;
|
|
613
613
|
createdAt: string | Date;
|
|
614
|
-
id: string;
|
|
615
614
|
updatedAt: string | Date;
|
|
615
|
+
phone: string;
|
|
616
616
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
617
617
|
}>;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -620,13 +620,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
620
620
|
id: string;
|
|
621
621
|
agentId: string;
|
|
622
622
|
agent: {
|
|
623
|
-
|
|
623
|
+
id: string;
|
|
624
624
|
firstName: string;
|
|
625
|
+
lastName: string;
|
|
625
626
|
email: string;
|
|
626
|
-
phone: string;
|
|
627
627
|
createdAt: string;
|
|
628
|
-
id: string;
|
|
629
628
|
updatedAt: string;
|
|
629
|
+
phone: string;
|
|
630
630
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
631
631
|
};
|
|
632
632
|
leadDistributionConfigId?: string | null | undefined;
|
|
@@ -635,13 +635,13 @@ export declare const agentLeadDistributionContract: {
|
|
|
635
635
|
id: string;
|
|
636
636
|
agentId: string;
|
|
637
637
|
agent: {
|
|
638
|
-
|
|
638
|
+
id: string;
|
|
639
639
|
firstName: string;
|
|
640
|
+
lastName: string;
|
|
640
641
|
email: string;
|
|
641
|
-
phone: string;
|
|
642
642
|
createdAt: string | Date;
|
|
643
|
-
id: string;
|
|
644
643
|
updatedAt: string | Date;
|
|
644
|
+
phone: string;
|
|
645
645
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
646
646
|
};
|
|
647
647
|
leadDistributionConfigId?: string | null | undefined;
|