@dakkitor/api-contracts 1.1.146 → 1.1.147
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/abilities/first-agent.abilities.json +39 -0
- package/dist/abilities/second-agent.abilities.json +36 -0
- package/dist/abilities/team-leads.json +30 -0
- package/dist/actives/actives.contract.d.ts +8207 -7871
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
- package/dist/auth/auth.contract.d.ts +12 -12
- package/dist/bookings/bookings.contract.d.ts +12034 -11506
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +620 -620
- package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
- package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
- package/dist/common/common-schemas.d.ts +4 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +9 -7
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/crews/crews.contract.d.ts +2549 -0
- package/dist/crews/crews.contract.d.ts.map +1 -0
- package/dist/crews/crews.contract.js +203 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
- package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
- package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
- package/dist/dashboards/dashboard.contract.d.ts +26 -26
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/jobs/jobs.contract.d.ts +4309 -4309
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
- package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
- package/dist/leads/leads.contract.d.ts +184 -184
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +728 -728
- package/dist/users/users.contract.d.ts +154 -154
- package/dist/workers/workers.contract.d.ts +6476 -4566
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +217 -65
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@ export declare const ClientUserSchema: z.ZodObject<{
|
|
|
10
10
|
email: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
email: string;
|
|
14
13
|
firstName: string;
|
|
15
14
|
lastName: string;
|
|
15
|
+
email: string;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
|
-
email: string;
|
|
19
18
|
firstName: string;
|
|
20
19
|
lastName: string;
|
|
20
|
+
email: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const ClientSchema: z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
@@ -35,14 +35,14 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
35
35
|
email: z.ZodString;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
id: string;
|
|
38
|
-
email: string;
|
|
39
38
|
firstName: string;
|
|
40
39
|
lastName: string;
|
|
40
|
+
email: string;
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
43
|
-
email: string;
|
|
44
43
|
firstName: string;
|
|
45
44
|
lastName: string;
|
|
45
|
+
email: string;
|
|
46
46
|
}>>>;
|
|
47
47
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
48
48
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -55,43 +55,43 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
55
55
|
}>>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
58
59
|
name: string;
|
|
59
|
-
updatedAt: string;
|
|
60
60
|
createdAt: string;
|
|
61
|
-
|
|
61
|
+
updatedAt: string;
|
|
62
62
|
crn: string | null;
|
|
63
63
|
govLink: string | null;
|
|
64
|
-
director: string;
|
|
65
64
|
soleTrader: boolean;
|
|
65
|
+
director: string;
|
|
66
66
|
blacklistReason?: string | null | undefined;
|
|
67
|
-
agentClientLinks?: {
|
|
68
|
-
agentId: string;
|
|
69
|
-
} | null | undefined;
|
|
70
67
|
lastUpdatedBy?: {
|
|
71
68
|
id: string;
|
|
72
|
-
email: string;
|
|
73
69
|
firstName: string;
|
|
74
70
|
lastName: string;
|
|
71
|
+
email: string;
|
|
72
|
+
} | null | undefined;
|
|
73
|
+
agentClientLinks?: {
|
|
74
|
+
agentId: string;
|
|
75
75
|
} | null | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
id: string;
|
|
78
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
78
79
|
name: string;
|
|
79
|
-
updatedAt: string | Date;
|
|
80
80
|
createdAt: string | Date;
|
|
81
|
-
|
|
81
|
+
updatedAt: string | Date;
|
|
82
82
|
crn: string | null;
|
|
83
83
|
govLink: string | null;
|
|
84
|
-
director: string;
|
|
85
84
|
soleTrader: boolean;
|
|
85
|
+
director: string;
|
|
86
86
|
blacklistReason?: string | null | undefined;
|
|
87
|
-
agentClientLinks?: {
|
|
88
|
-
agentId: string;
|
|
89
|
-
} | null | undefined;
|
|
90
87
|
lastUpdatedBy?: {
|
|
91
88
|
id: string;
|
|
92
|
-
email: string;
|
|
93
89
|
firstName: string;
|
|
94
90
|
lastName: string;
|
|
91
|
+
email: string;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
agentClientLinks?: {
|
|
94
|
+
agentId: string;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
/**
|
|
@@ -105,8 +105,8 @@ export declare const CreateClientBaseSchema: z.ZodObject<{
|
|
|
105
105
|
director: z.ZodString;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
name: string;
|
|
108
|
-
director: string;
|
|
109
108
|
soleTrader: boolean;
|
|
109
|
+
director: string;
|
|
110
110
|
govLink?: string | null | undefined;
|
|
111
111
|
}, {
|
|
112
112
|
name: string;
|
|
@@ -146,8 +146,8 @@ export declare const CreateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
146
146
|
director: z.ZodString;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
name: string;
|
|
149
|
-
director: string;
|
|
150
149
|
soleTrader: boolean;
|
|
150
|
+
director: string;
|
|
151
151
|
govLink?: string | null | undefined;
|
|
152
152
|
}, {
|
|
153
153
|
name: string;
|
|
@@ -156,8 +156,8 @@ export declare const CreateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
soleTrader?: boolean | undefined;
|
|
157
157
|
}>, {
|
|
158
158
|
name: string;
|
|
159
|
-
director: string;
|
|
160
159
|
soleTrader: boolean;
|
|
160
|
+
director: string;
|
|
161
161
|
govLink?: string | null | undefined;
|
|
162
162
|
}, {
|
|
163
163
|
name: string;
|
|
@@ -176,17 +176,17 @@ export declare const UpdateClientBaseSchema: z.ZodObject<{
|
|
|
176
176
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
177
177
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
179
180
|
name?: string | undefined;
|
|
180
|
-
|
|
181
|
+
blacklistReason?: string | null | undefined;
|
|
181
182
|
govLink?: string | null | undefined;
|
|
182
183
|
director?: string | undefined;
|
|
183
|
-
blacklistReason?: string | null | undefined;
|
|
184
184
|
}, {
|
|
185
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
185
186
|
name?: string | undefined;
|
|
186
|
-
|
|
187
|
+
blacklistReason?: string | null | undefined;
|
|
187
188
|
govLink?: string | null | undefined;
|
|
188
189
|
director?: string | undefined;
|
|
189
|
-
blacklistReason?: string | null | undefined;
|
|
190
190
|
}>;
|
|
191
191
|
/**
|
|
192
192
|
* Conditional validation rules for UpdateClient.
|
|
@@ -220,29 +220,29 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
220
220
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
221
221
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
223
224
|
name?: string | undefined;
|
|
224
|
-
|
|
225
|
+
blacklistReason?: string | null | undefined;
|
|
225
226
|
govLink?: string | null | undefined;
|
|
226
227
|
director?: string | undefined;
|
|
227
|
-
blacklistReason?: string | null | undefined;
|
|
228
228
|
}, {
|
|
229
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
229
230
|
name?: string | undefined;
|
|
230
|
-
|
|
231
|
+
blacklistReason?: string | null | undefined;
|
|
231
232
|
govLink?: string | null | undefined;
|
|
232
233
|
director?: string | undefined;
|
|
233
|
-
blacklistReason?: string | null | undefined;
|
|
234
234
|
}>, {
|
|
235
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
235
236
|
name?: string | undefined;
|
|
236
|
-
|
|
237
|
+
blacklistReason?: string | null | undefined;
|
|
237
238
|
govLink?: string | null | undefined;
|
|
238
239
|
director?: string | undefined;
|
|
239
|
-
blacklistReason?: string | null | undefined;
|
|
240
240
|
}, {
|
|
241
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
241
242
|
name?: string | undefined;
|
|
242
|
-
|
|
243
|
+
blacklistReason?: string | null | undefined;
|
|
243
244
|
govLink?: string | null | undefined;
|
|
244
245
|
director?: string | undefined;
|
|
245
|
-
blacklistReason?: string | null | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
248
248
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -274,36 +274,36 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
274
274
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
275
275
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
page: number;
|
|
278
277
|
limit: number;
|
|
278
|
+
page: number;
|
|
279
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
279
280
|
name?: string | null | undefined;
|
|
280
|
-
|
|
281
|
+
createdAt?: {
|
|
281
282
|
from?: string | null | undefined;
|
|
282
283
|
to?: string | null | undefined;
|
|
283
284
|
} | null | undefined;
|
|
284
|
-
|
|
285
|
+
updatedAt?: {
|
|
285
286
|
from?: string | null | undefined;
|
|
286
287
|
to?: string | null | undefined;
|
|
287
288
|
} | null | undefined;
|
|
288
|
-
|
|
289
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "director" | null | undefined;
|
|
289
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
290
290
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
291
291
|
director?: string | null | undefined;
|
|
292
292
|
}, {
|
|
293
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
293
294
|
name?: string | null | undefined;
|
|
294
|
-
|
|
295
|
+
createdAt?: {
|
|
295
296
|
from?: string | null | undefined;
|
|
296
297
|
to?: string | null | undefined;
|
|
297
298
|
} | null | undefined;
|
|
298
|
-
|
|
299
|
+
updatedAt?: {
|
|
299
300
|
from?: string | null | undefined;
|
|
300
301
|
to?: string | null | undefined;
|
|
301
302
|
} | null | undefined;
|
|
302
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
303
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "director" | null | undefined;
|
|
304
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
305
|
-
page?: number | undefined;
|
|
306
303
|
limit?: number | undefined;
|
|
304
|
+
page?: number | undefined;
|
|
305
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
306
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
307
307
|
director?: string | null | undefined;
|
|
308
308
|
}>;
|
|
309
309
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
@@ -343,14 +343,14 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
343
343
|
email: z.ZodString;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
345
|
id: string;
|
|
346
|
-
email: string;
|
|
347
346
|
firstName: string;
|
|
348
347
|
lastName: string;
|
|
348
|
+
email: string;
|
|
349
349
|
}, {
|
|
350
350
|
id: string;
|
|
351
|
-
email: string;
|
|
352
351
|
firstName: string;
|
|
353
352
|
lastName: string;
|
|
353
|
+
email: string;
|
|
354
354
|
}>>>;
|
|
355
355
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
356
356
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -363,43 +363,43 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
363
363
|
}>>>;
|
|
364
364
|
}, "strip", z.ZodTypeAny, {
|
|
365
365
|
id: string;
|
|
366
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
366
367
|
name: string;
|
|
367
|
-
updatedAt: string;
|
|
368
368
|
createdAt: string;
|
|
369
|
-
|
|
369
|
+
updatedAt: string;
|
|
370
370
|
crn: string | null;
|
|
371
371
|
govLink: string | null;
|
|
372
|
-
director: string;
|
|
373
372
|
soleTrader: boolean;
|
|
373
|
+
director: string;
|
|
374
374
|
blacklistReason?: string | null | undefined;
|
|
375
|
-
agentClientLinks?: {
|
|
376
|
-
agentId: string;
|
|
377
|
-
} | null | undefined;
|
|
378
375
|
lastUpdatedBy?: {
|
|
379
376
|
id: string;
|
|
380
|
-
email: string;
|
|
381
377
|
firstName: string;
|
|
382
378
|
lastName: string;
|
|
379
|
+
email: string;
|
|
380
|
+
} | null | undefined;
|
|
381
|
+
agentClientLinks?: {
|
|
382
|
+
agentId: string;
|
|
383
383
|
} | null | undefined;
|
|
384
384
|
}, {
|
|
385
385
|
id: string;
|
|
386
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
386
387
|
name: string;
|
|
387
|
-
updatedAt: string | Date;
|
|
388
388
|
createdAt: string | Date;
|
|
389
|
-
|
|
389
|
+
updatedAt: string | Date;
|
|
390
390
|
crn: string | null;
|
|
391
391
|
govLink: string | null;
|
|
392
|
-
director: string;
|
|
393
392
|
soleTrader: boolean;
|
|
393
|
+
director: string;
|
|
394
394
|
blacklistReason?: string | null | undefined;
|
|
395
|
-
agentClientLinks?: {
|
|
396
|
-
agentId: string;
|
|
397
|
-
} | null | undefined;
|
|
398
395
|
lastUpdatedBy?: {
|
|
399
396
|
id: string;
|
|
400
|
-
email: string;
|
|
401
397
|
firstName: string;
|
|
402
398
|
lastName: string;
|
|
399
|
+
email: string;
|
|
400
|
+
} | null | undefined;
|
|
401
|
+
agentClientLinks?: {
|
|
402
|
+
agentId: string;
|
|
403
403
|
} | null | undefined;
|
|
404
404
|
}>, "many">;
|
|
405
405
|
totalCount: z.ZodNumber;
|
|
@@ -411,23 +411,23 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
411
411
|
limit: number;
|
|
412
412
|
items: {
|
|
413
413
|
id: string;
|
|
414
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
414
415
|
name: string;
|
|
415
|
-
updatedAt: string;
|
|
416
416
|
createdAt: string;
|
|
417
|
-
|
|
417
|
+
updatedAt: string;
|
|
418
418
|
crn: string | null;
|
|
419
419
|
govLink: string | null;
|
|
420
|
-
director: string;
|
|
421
420
|
soleTrader: boolean;
|
|
421
|
+
director: string;
|
|
422
422
|
blacklistReason?: string | null | undefined;
|
|
423
|
-
agentClientLinks?: {
|
|
424
|
-
agentId: string;
|
|
425
|
-
} | null | undefined;
|
|
426
423
|
lastUpdatedBy?: {
|
|
427
424
|
id: string;
|
|
428
|
-
email: string;
|
|
429
425
|
firstName: string;
|
|
430
426
|
lastName: string;
|
|
427
|
+
email: string;
|
|
428
|
+
} | null | undefined;
|
|
429
|
+
agentClientLinks?: {
|
|
430
|
+
agentId: string;
|
|
431
431
|
} | null | undefined;
|
|
432
432
|
}[];
|
|
433
433
|
totalCount: number;
|
|
@@ -438,23 +438,23 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
438
438
|
limit: number;
|
|
439
439
|
items: {
|
|
440
440
|
id: string;
|
|
441
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
441
442
|
name: string;
|
|
442
|
-
updatedAt: string | Date;
|
|
443
443
|
createdAt: string | Date;
|
|
444
|
-
|
|
444
|
+
updatedAt: string | Date;
|
|
445
445
|
crn: string | null;
|
|
446
446
|
govLink: string | null;
|
|
447
|
-
director: string;
|
|
448
447
|
soleTrader: boolean;
|
|
448
|
+
director: string;
|
|
449
449
|
blacklistReason?: string | null | undefined;
|
|
450
|
-
agentClientLinks?: {
|
|
451
|
-
agentId: string;
|
|
452
|
-
} | null | undefined;
|
|
453
450
|
lastUpdatedBy?: {
|
|
454
451
|
id: string;
|
|
455
|
-
email: string;
|
|
456
452
|
firstName: string;
|
|
457
453
|
lastName: string;
|
|
454
|
+
email: string;
|
|
455
|
+
} | null | undefined;
|
|
456
|
+
agentClientLinks?: {
|
|
457
|
+
agentId: string;
|
|
458
458
|
} | null | undefined;
|
|
459
459
|
}[];
|
|
460
460
|
totalCount: number;
|
|
@@ -489,8 +489,8 @@ export declare const clientsContractRouter: {
|
|
|
489
489
|
director: z.ZodString;
|
|
490
490
|
}, "strip", z.ZodTypeAny, {
|
|
491
491
|
name: string;
|
|
492
|
-
director: string;
|
|
493
492
|
soleTrader: boolean;
|
|
493
|
+
director: string;
|
|
494
494
|
govLink?: string | null | undefined;
|
|
495
495
|
}, {
|
|
496
496
|
name: string;
|
|
@@ -499,8 +499,8 @@ export declare const clientsContractRouter: {
|
|
|
499
499
|
soleTrader?: boolean | undefined;
|
|
500
500
|
}>, {
|
|
501
501
|
name: string;
|
|
502
|
-
director: string;
|
|
503
502
|
soleTrader: boolean;
|
|
503
|
+
director: string;
|
|
504
504
|
govLink?: string | null | undefined;
|
|
505
505
|
}, {
|
|
506
506
|
name: string;
|
|
@@ -626,14 +626,14 @@ export declare const clientsContractRouter: {
|
|
|
626
626
|
email: z.ZodString;
|
|
627
627
|
}, "strip", z.ZodTypeAny, {
|
|
628
628
|
id: string;
|
|
629
|
-
email: string;
|
|
630
629
|
firstName: string;
|
|
631
630
|
lastName: string;
|
|
631
|
+
email: string;
|
|
632
632
|
}, {
|
|
633
633
|
id: string;
|
|
634
|
-
email: string;
|
|
635
634
|
firstName: string;
|
|
636
635
|
lastName: string;
|
|
636
|
+
email: string;
|
|
637
637
|
}>>>;
|
|
638
638
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
639
639
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -646,43 +646,43 @@ export declare const clientsContractRouter: {
|
|
|
646
646
|
}>>>;
|
|
647
647
|
}, "strip", z.ZodTypeAny, {
|
|
648
648
|
id: string;
|
|
649
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
649
650
|
name: string;
|
|
650
|
-
updatedAt: string;
|
|
651
651
|
createdAt: string;
|
|
652
|
-
|
|
652
|
+
updatedAt: string;
|
|
653
653
|
crn: string | null;
|
|
654
654
|
govLink: string | null;
|
|
655
|
-
director: string;
|
|
656
655
|
soleTrader: boolean;
|
|
656
|
+
director: string;
|
|
657
657
|
blacklistReason?: string | null | undefined;
|
|
658
|
-
agentClientLinks?: {
|
|
659
|
-
agentId: string;
|
|
660
|
-
} | null | undefined;
|
|
661
658
|
lastUpdatedBy?: {
|
|
662
659
|
id: string;
|
|
663
|
-
email: string;
|
|
664
660
|
firstName: string;
|
|
665
661
|
lastName: string;
|
|
662
|
+
email: string;
|
|
663
|
+
} | null | undefined;
|
|
664
|
+
agentClientLinks?: {
|
|
665
|
+
agentId: string;
|
|
666
666
|
} | null | undefined;
|
|
667
667
|
}, {
|
|
668
668
|
id: string;
|
|
669
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
669
670
|
name: string;
|
|
670
|
-
updatedAt: string | Date;
|
|
671
671
|
createdAt: string | Date;
|
|
672
|
-
|
|
672
|
+
updatedAt: string | Date;
|
|
673
673
|
crn: string | null;
|
|
674
674
|
govLink: string | null;
|
|
675
|
-
director: string;
|
|
676
675
|
soleTrader: boolean;
|
|
676
|
+
director: string;
|
|
677
677
|
blacklistReason?: string | null | undefined;
|
|
678
|
-
agentClientLinks?: {
|
|
679
|
-
agentId: string;
|
|
680
|
-
} | null | undefined;
|
|
681
678
|
lastUpdatedBy?: {
|
|
682
679
|
id: string;
|
|
683
|
-
email: string;
|
|
684
680
|
firstName: string;
|
|
685
681
|
lastName: string;
|
|
682
|
+
email: string;
|
|
683
|
+
} | null | undefined;
|
|
684
|
+
agentClientLinks?: {
|
|
685
|
+
agentId: string;
|
|
686
686
|
} | null | undefined;
|
|
687
687
|
}>;
|
|
688
688
|
409: z.ZodObject<{
|
|
@@ -743,36 +743,36 @@ export declare const clientsContractRouter: {
|
|
|
743
743
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
744
744
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
745
745
|
}, "strip", z.ZodTypeAny, {
|
|
746
|
-
page: number;
|
|
747
746
|
limit: number;
|
|
747
|
+
page: number;
|
|
748
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
748
749
|
name?: string | null | undefined;
|
|
749
|
-
|
|
750
|
+
createdAt?: {
|
|
750
751
|
from?: string | null | undefined;
|
|
751
752
|
to?: string | null | undefined;
|
|
752
753
|
} | null | undefined;
|
|
753
|
-
|
|
754
|
+
updatedAt?: {
|
|
754
755
|
from?: string | null | undefined;
|
|
755
756
|
to?: string | null | undefined;
|
|
756
757
|
} | null | undefined;
|
|
757
|
-
|
|
758
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "director" | null | undefined;
|
|
758
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
759
759
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
760
760
|
director?: string | null | undefined;
|
|
761
761
|
}, {
|
|
762
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
762
763
|
name?: string | null | undefined;
|
|
763
|
-
|
|
764
|
+
createdAt?: {
|
|
764
765
|
from?: string | null | undefined;
|
|
765
766
|
to?: string | null | undefined;
|
|
766
767
|
} | null | undefined;
|
|
767
|
-
|
|
768
|
+
updatedAt?: {
|
|
768
769
|
from?: string | null | undefined;
|
|
769
770
|
to?: string | null | undefined;
|
|
770
771
|
} | null | undefined;
|
|
771
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
772
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "director" | null | undefined;
|
|
773
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
774
|
-
page?: number | undefined;
|
|
775
772
|
limit?: number | undefined;
|
|
773
|
+
page?: number | undefined;
|
|
774
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
775
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
776
776
|
director?: string | null | undefined;
|
|
777
777
|
}>;
|
|
778
778
|
metadata: {
|
|
@@ -902,14 +902,14 @@ export declare const clientsContractRouter: {
|
|
|
902
902
|
email: z.ZodString;
|
|
903
903
|
}, "strip", z.ZodTypeAny, {
|
|
904
904
|
id: string;
|
|
905
|
-
email: string;
|
|
906
905
|
firstName: string;
|
|
907
906
|
lastName: string;
|
|
907
|
+
email: string;
|
|
908
908
|
}, {
|
|
909
909
|
id: string;
|
|
910
|
-
email: string;
|
|
911
910
|
firstName: string;
|
|
912
911
|
lastName: string;
|
|
912
|
+
email: string;
|
|
913
913
|
}>>>;
|
|
914
914
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
915
915
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -922,43 +922,43 @@ export declare const clientsContractRouter: {
|
|
|
922
922
|
}>>>;
|
|
923
923
|
}, "strip", z.ZodTypeAny, {
|
|
924
924
|
id: string;
|
|
925
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
925
926
|
name: string;
|
|
926
|
-
updatedAt: string;
|
|
927
927
|
createdAt: string;
|
|
928
|
-
|
|
928
|
+
updatedAt: string;
|
|
929
929
|
crn: string | null;
|
|
930
930
|
govLink: string | null;
|
|
931
|
-
director: string;
|
|
932
931
|
soleTrader: boolean;
|
|
932
|
+
director: string;
|
|
933
933
|
blacklistReason?: string | null | undefined;
|
|
934
|
-
agentClientLinks?: {
|
|
935
|
-
agentId: string;
|
|
936
|
-
} | null | undefined;
|
|
937
934
|
lastUpdatedBy?: {
|
|
938
935
|
id: string;
|
|
939
|
-
email: string;
|
|
940
936
|
firstName: string;
|
|
941
937
|
lastName: string;
|
|
938
|
+
email: string;
|
|
939
|
+
} | null | undefined;
|
|
940
|
+
agentClientLinks?: {
|
|
941
|
+
agentId: string;
|
|
942
942
|
} | null | undefined;
|
|
943
943
|
}, {
|
|
944
944
|
id: string;
|
|
945
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
945
946
|
name: string;
|
|
946
|
-
updatedAt: string | Date;
|
|
947
947
|
createdAt: string | Date;
|
|
948
|
-
|
|
948
|
+
updatedAt: string | Date;
|
|
949
949
|
crn: string | null;
|
|
950
950
|
govLink: string | null;
|
|
951
|
-
director: string;
|
|
952
951
|
soleTrader: boolean;
|
|
952
|
+
director: string;
|
|
953
953
|
blacklistReason?: string | null | undefined;
|
|
954
|
-
agentClientLinks?: {
|
|
955
|
-
agentId: string;
|
|
956
|
-
} | null | undefined;
|
|
957
954
|
lastUpdatedBy?: {
|
|
958
955
|
id: string;
|
|
959
|
-
email: string;
|
|
960
956
|
firstName: string;
|
|
961
957
|
lastName: string;
|
|
958
|
+
email: string;
|
|
959
|
+
} | null | undefined;
|
|
960
|
+
agentClientLinks?: {
|
|
961
|
+
agentId: string;
|
|
962
962
|
} | null | undefined;
|
|
963
963
|
}>, "many">;
|
|
964
964
|
totalCount: z.ZodNumber;
|
|
@@ -970,23 +970,23 @@ export declare const clientsContractRouter: {
|
|
|
970
970
|
limit: number;
|
|
971
971
|
items: {
|
|
972
972
|
id: string;
|
|
973
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
973
974
|
name: string;
|
|
974
|
-
updatedAt: string;
|
|
975
975
|
createdAt: string;
|
|
976
|
-
|
|
976
|
+
updatedAt: string;
|
|
977
977
|
crn: string | null;
|
|
978
978
|
govLink: string | null;
|
|
979
|
-
director: string;
|
|
980
979
|
soleTrader: boolean;
|
|
980
|
+
director: string;
|
|
981
981
|
blacklistReason?: string | null | undefined;
|
|
982
|
-
agentClientLinks?: {
|
|
983
|
-
agentId: string;
|
|
984
|
-
} | null | undefined;
|
|
985
982
|
lastUpdatedBy?: {
|
|
986
983
|
id: string;
|
|
987
|
-
email: string;
|
|
988
984
|
firstName: string;
|
|
989
985
|
lastName: string;
|
|
986
|
+
email: string;
|
|
987
|
+
} | null | undefined;
|
|
988
|
+
agentClientLinks?: {
|
|
989
|
+
agentId: string;
|
|
990
990
|
} | null | undefined;
|
|
991
991
|
}[];
|
|
992
992
|
totalCount: number;
|
|
@@ -997,23 +997,23 @@ export declare const clientsContractRouter: {
|
|
|
997
997
|
limit: number;
|
|
998
998
|
items: {
|
|
999
999
|
id: string;
|
|
1000
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1000
1001
|
name: string;
|
|
1001
|
-
updatedAt: string | Date;
|
|
1002
1002
|
createdAt: string | Date;
|
|
1003
|
-
|
|
1003
|
+
updatedAt: string | Date;
|
|
1004
1004
|
crn: string | null;
|
|
1005
1005
|
govLink: string | null;
|
|
1006
|
-
director: string;
|
|
1007
1006
|
soleTrader: boolean;
|
|
1007
|
+
director: string;
|
|
1008
1008
|
blacklistReason?: string | null | undefined;
|
|
1009
|
-
agentClientLinks?: {
|
|
1010
|
-
agentId: string;
|
|
1011
|
-
} | null | undefined;
|
|
1012
1009
|
lastUpdatedBy?: {
|
|
1013
1010
|
id: string;
|
|
1014
|
-
email: string;
|
|
1015
1011
|
firstName: string;
|
|
1016
1012
|
lastName: string;
|
|
1013
|
+
email: string;
|
|
1014
|
+
} | null | undefined;
|
|
1015
|
+
agentClientLinks?: {
|
|
1016
|
+
agentId: string;
|
|
1017
1017
|
} | null | undefined;
|
|
1018
1018
|
}[];
|
|
1019
1019
|
totalCount: number;
|
|
@@ -1290,14 +1290,14 @@ export declare const clientsContractRouter: {
|
|
|
1290
1290
|
email: z.ZodString;
|
|
1291
1291
|
}, "strip", z.ZodTypeAny, {
|
|
1292
1292
|
id: string;
|
|
1293
|
-
email: string;
|
|
1294
1293
|
firstName: string;
|
|
1295
1294
|
lastName: string;
|
|
1295
|
+
email: string;
|
|
1296
1296
|
}, {
|
|
1297
1297
|
id: string;
|
|
1298
|
-
email: string;
|
|
1299
1298
|
firstName: string;
|
|
1300
1299
|
lastName: string;
|
|
1300
|
+
email: string;
|
|
1301
1301
|
}>>>;
|
|
1302
1302
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1303
1303
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1310,43 +1310,43 @@ export declare const clientsContractRouter: {
|
|
|
1310
1310
|
}>>>;
|
|
1311
1311
|
}, "strip", z.ZodTypeAny, {
|
|
1312
1312
|
id: string;
|
|
1313
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1313
1314
|
name: string;
|
|
1314
|
-
updatedAt: string;
|
|
1315
1315
|
createdAt: string;
|
|
1316
|
-
|
|
1316
|
+
updatedAt: string;
|
|
1317
1317
|
crn: string | null;
|
|
1318
1318
|
govLink: string | null;
|
|
1319
|
-
director: string;
|
|
1320
1319
|
soleTrader: boolean;
|
|
1320
|
+
director: string;
|
|
1321
1321
|
blacklistReason?: string | null | undefined;
|
|
1322
|
-
agentClientLinks?: {
|
|
1323
|
-
agentId: string;
|
|
1324
|
-
} | null | undefined;
|
|
1325
1322
|
lastUpdatedBy?: {
|
|
1326
1323
|
id: string;
|
|
1327
|
-
email: string;
|
|
1328
1324
|
firstName: string;
|
|
1329
1325
|
lastName: string;
|
|
1326
|
+
email: string;
|
|
1327
|
+
} | null | undefined;
|
|
1328
|
+
agentClientLinks?: {
|
|
1329
|
+
agentId: string;
|
|
1330
1330
|
} | null | undefined;
|
|
1331
1331
|
}, {
|
|
1332
1332
|
id: string;
|
|
1333
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1333
1334
|
name: string;
|
|
1334
|
-
updatedAt: string | Date;
|
|
1335
1335
|
createdAt: string | Date;
|
|
1336
|
-
|
|
1336
|
+
updatedAt: string | Date;
|
|
1337
1337
|
crn: string | null;
|
|
1338
1338
|
govLink: string | null;
|
|
1339
|
-
director: string;
|
|
1340
1339
|
soleTrader: boolean;
|
|
1340
|
+
director: string;
|
|
1341
1341
|
blacklistReason?: string | null | undefined;
|
|
1342
|
-
agentClientLinks?: {
|
|
1343
|
-
agentId: string;
|
|
1344
|
-
} | null | undefined;
|
|
1345
1342
|
lastUpdatedBy?: {
|
|
1346
1343
|
id: string;
|
|
1347
|
-
email: string;
|
|
1348
1344
|
firstName: string;
|
|
1349
1345
|
lastName: string;
|
|
1346
|
+
email: string;
|
|
1347
|
+
} | null | undefined;
|
|
1348
|
+
agentClientLinks?: {
|
|
1349
|
+
agentId: string;
|
|
1350
1350
|
} | null | undefined;
|
|
1351
1351
|
}>;
|
|
1352
1352
|
404: z.ZodObject<{
|
|
@@ -1399,29 +1399,29 @@ export declare const clientsContractRouter: {
|
|
|
1399
1399
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
1400
1400
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1401
1401
|
}, "strip", z.ZodTypeAny, {
|
|
1402
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1402
1403
|
name?: string | undefined;
|
|
1403
|
-
|
|
1404
|
+
blacklistReason?: string | null | undefined;
|
|
1404
1405
|
govLink?: string | null | undefined;
|
|
1405
1406
|
director?: string | undefined;
|
|
1406
|
-
blacklistReason?: string | null | undefined;
|
|
1407
1407
|
}, {
|
|
1408
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1408
1409
|
name?: string | undefined;
|
|
1409
|
-
|
|
1410
|
+
blacklistReason?: string | null | undefined;
|
|
1410
1411
|
govLink?: string | null | undefined;
|
|
1411
1412
|
director?: string | undefined;
|
|
1412
|
-
blacklistReason?: string | null | undefined;
|
|
1413
1413
|
}>, {
|
|
1414
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1414
1415
|
name?: string | undefined;
|
|
1415
|
-
|
|
1416
|
+
blacklistReason?: string | null | undefined;
|
|
1416
1417
|
govLink?: string | null | undefined;
|
|
1417
1418
|
director?: string | undefined;
|
|
1418
|
-
blacklistReason?: string | null | undefined;
|
|
1419
1419
|
}, {
|
|
1420
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1420
1421
|
name?: string | undefined;
|
|
1421
|
-
|
|
1422
|
+
blacklistReason?: string | null | undefined;
|
|
1422
1423
|
govLink?: string | null | undefined;
|
|
1423
1424
|
director?: string | undefined;
|
|
1424
|
-
blacklistReason?: string | null | undefined;
|
|
1425
1425
|
}>;
|
|
1426
1426
|
path: "/v2/clients/:id";
|
|
1427
1427
|
responses: {
|
|
@@ -1541,14 +1541,14 @@ export declare const clientsContractRouter: {
|
|
|
1541
1541
|
email: z.ZodString;
|
|
1542
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1543
|
id: string;
|
|
1544
|
-
email: string;
|
|
1545
1544
|
firstName: string;
|
|
1546
1545
|
lastName: string;
|
|
1546
|
+
email: string;
|
|
1547
1547
|
}, {
|
|
1548
1548
|
id: string;
|
|
1549
|
-
email: string;
|
|
1550
1549
|
firstName: string;
|
|
1551
1550
|
lastName: string;
|
|
1551
|
+
email: string;
|
|
1552
1552
|
}>>>;
|
|
1553
1553
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1554
1554
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1561,43 +1561,43 @@ export declare const clientsContractRouter: {
|
|
|
1561
1561
|
}>>>;
|
|
1562
1562
|
}, "strip", z.ZodTypeAny, {
|
|
1563
1563
|
id: string;
|
|
1564
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1564
1565
|
name: string;
|
|
1565
|
-
updatedAt: string;
|
|
1566
1566
|
createdAt: string;
|
|
1567
|
-
|
|
1567
|
+
updatedAt: string;
|
|
1568
1568
|
crn: string | null;
|
|
1569
1569
|
govLink: string | null;
|
|
1570
|
-
director: string;
|
|
1571
1570
|
soleTrader: boolean;
|
|
1571
|
+
director: string;
|
|
1572
1572
|
blacklistReason?: string | null | undefined;
|
|
1573
|
-
agentClientLinks?: {
|
|
1574
|
-
agentId: string;
|
|
1575
|
-
} | null | undefined;
|
|
1576
1573
|
lastUpdatedBy?: {
|
|
1577
1574
|
id: string;
|
|
1578
|
-
email: string;
|
|
1579
1575
|
firstName: string;
|
|
1580
1576
|
lastName: string;
|
|
1577
|
+
email: string;
|
|
1578
|
+
} | null | undefined;
|
|
1579
|
+
agentClientLinks?: {
|
|
1580
|
+
agentId: string;
|
|
1581
1581
|
} | null | undefined;
|
|
1582
1582
|
}, {
|
|
1583
1583
|
id: string;
|
|
1584
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1584
1585
|
name: string;
|
|
1585
|
-
updatedAt: string | Date;
|
|
1586
1586
|
createdAt: string | Date;
|
|
1587
|
-
|
|
1587
|
+
updatedAt: string | Date;
|
|
1588
1588
|
crn: string | null;
|
|
1589
1589
|
govLink: string | null;
|
|
1590
|
-
director: string;
|
|
1591
1590
|
soleTrader: boolean;
|
|
1591
|
+
director: string;
|
|
1592
1592
|
blacklistReason?: string | null | undefined;
|
|
1593
|
-
agentClientLinks?: {
|
|
1594
|
-
agentId: string;
|
|
1595
|
-
} | null | undefined;
|
|
1596
1593
|
lastUpdatedBy?: {
|
|
1597
1594
|
id: string;
|
|
1598
|
-
email: string;
|
|
1599
1595
|
firstName: string;
|
|
1600
1596
|
lastName: string;
|
|
1597
|
+
email: string;
|
|
1598
|
+
} | null | undefined;
|
|
1599
|
+
agentClientLinks?: {
|
|
1600
|
+
agentId: string;
|
|
1601
1601
|
} | null | undefined;
|
|
1602
1602
|
}>;
|
|
1603
1603
|
404: z.ZodObject<{
|