@dakkitor/api-contracts 1.1.125 → 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.
- package/dist/abilities/second-agent.abilities.json +4 -10
- package/dist/actives/actives.contract.d.ts +4114 -4056
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +538 -538
- package/dist/bookings/bookings.contract.d.ts +15340 -15116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +183 -183
- package/dist/client-contacts/client-contacts.contract.d.ts +502 -502
- package/dist/clients/clients.contract.d.ts +172 -172
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1558 -1558
- package/dist/collaborations/collaborations.contract.d.ts +1316 -1316
- package/dist/common/common-schemas.d.ts +8 -8
- package/dist/companies/companies.contract.d.ts +12 -12
- package/dist/cron-executions/cron-executions.contract.d.ts +6 -6
- package/dist/curated-workers/curated-workers.contract.d.ts +450 -450
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +4 -2
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
- package/dist/dashboards/dashboard-widgets.contract.d.ts +60 -60
- package/dist/dashboards/dashboard.contract.d.ts +34 -34
- package/dist/files/files.contract.d.ts +24 -24
- package/dist/jobs/jobs.contract.d.ts +3327 -3135
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +198 -148
- package/dist/lead-assignments/lead-assignments.contract.d.ts +66 -66
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +53 -53
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
- package/dist/leads/leads.contract.d.ts +161 -161
- package/dist/locations/locations.contract.d.ts +21 -21
- package/dist/postcodes/postcodes.contract.d.ts +18 -18
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/users/users.contract.d.ts +36 -36
- package/dist/workers/workers.contract.d.ts +651 -651
- package/package.json +1 -1
|
@@ -9,15 +9,15 @@ export declare const ClientUserSchema: z.ZodObject<{
|
|
|
9
9
|
lastName: z.ZodString;
|
|
10
10
|
email: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
email: string;
|
|
13
12
|
id: string;
|
|
14
13
|
firstName: string;
|
|
15
14
|
lastName: string;
|
|
16
|
-
}, {
|
|
17
15
|
email: string;
|
|
16
|
+
}, {
|
|
18
17
|
id: 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;
|
|
@@ -34,15 +34,15 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
34
34
|
lastName: z.ZodString;
|
|
35
35
|
email: z.ZodString;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
email: string;
|
|
38
37
|
id: string;
|
|
39
38
|
firstName: string;
|
|
40
39
|
lastName: string;
|
|
41
|
-
}, {
|
|
42
40
|
email: string;
|
|
41
|
+
}, {
|
|
43
42
|
id: 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>;
|
|
@@ -54,44 +54,44 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
54
54
|
agentId: string;
|
|
55
55
|
}>>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
id: string;
|
|
57
58
|
name: string;
|
|
59
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
58
60
|
createdAt: string;
|
|
59
61
|
updatedAt: string;
|
|
60
|
-
id: string;
|
|
61
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
62
62
|
crn: string | null;
|
|
63
63
|
govLink: string;
|
|
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
|
-
email: string;
|
|
72
68
|
id: 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
|
+
id: string;
|
|
77
78
|
name: string;
|
|
79
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
78
80
|
createdAt: string | Date;
|
|
79
81
|
updatedAt: string | Date;
|
|
80
|
-
id: string;
|
|
81
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
82
82
|
crn: string | null;
|
|
83
83
|
govLink: string;
|
|
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
|
-
email: string;
|
|
92
88
|
id: 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
|
export declare const CreateClientSchema: z.ZodObject<{
|
|
@@ -102,8 +102,8 @@ export declare const CreateClientSchema: z.ZodObject<{
|
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
name: string;
|
|
104
104
|
govLink: string;
|
|
105
|
-
director: string;
|
|
106
105
|
soleTrader: boolean;
|
|
106
|
+
director: string;
|
|
107
107
|
}, {
|
|
108
108
|
name: string;
|
|
109
109
|
govLink: string;
|
|
@@ -122,16 +122,16 @@ export declare const UpdateClientBaseSchema: z.ZodObject<{
|
|
|
122
122
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
name?: string | undefined;
|
|
125
|
-
status?: "
|
|
125
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
126
|
+
blacklistReason?: string | null | undefined;
|
|
126
127
|
govLink?: string | undefined;
|
|
127
128
|
director?: string | undefined;
|
|
128
|
-
blacklistReason?: string | null | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
name?: string | undefined;
|
|
131
|
-
status?: "
|
|
131
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
132
|
+
blacklistReason?: string | null | undefined;
|
|
132
133
|
govLink?: string | undefined;
|
|
133
134
|
director?: string | undefined;
|
|
134
|
-
blacklistReason?: string | null | undefined;
|
|
135
135
|
}>;
|
|
136
136
|
/**
|
|
137
137
|
* Conditional validation rules for UpdateClient.
|
|
@@ -166,28 +166,28 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
166
166
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
168
|
name?: string | undefined;
|
|
169
|
-
status?: "
|
|
169
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
170
|
+
blacklistReason?: string | null | undefined;
|
|
170
171
|
govLink?: string | undefined;
|
|
171
172
|
director?: string | undefined;
|
|
172
|
-
blacklistReason?: string | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
name?: string | undefined;
|
|
175
|
-
status?: "
|
|
175
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
176
|
+
blacklistReason?: string | null | undefined;
|
|
176
177
|
govLink?: string | undefined;
|
|
177
178
|
director?: string | undefined;
|
|
178
|
-
blacklistReason?: string | null | undefined;
|
|
179
179
|
}>, {
|
|
180
180
|
name?: string | undefined;
|
|
181
|
-
status?: "
|
|
181
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
182
|
+
blacklistReason?: string | null | undefined;
|
|
182
183
|
govLink?: string | undefined;
|
|
183
184
|
director?: string | undefined;
|
|
184
|
-
blacklistReason?: string | null | undefined;
|
|
185
185
|
}, {
|
|
186
186
|
name?: string | undefined;
|
|
187
|
-
status?: "
|
|
187
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
188
|
+
blacklistReason?: string | null | undefined;
|
|
188
189
|
govLink?: string | undefined;
|
|
189
190
|
director?: string | undefined;
|
|
190
|
-
blacklistReason?: string | null | undefined;
|
|
191
191
|
}>;
|
|
192
192
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
193
193
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -219,11 +219,10 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
219
219
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
220
220
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
page: number;
|
|
223
222
|
limit: number;
|
|
223
|
+
page: number;
|
|
224
224
|
name?: string | null | undefined;
|
|
225
|
-
|
|
226
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
225
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
227
226
|
createdAt?: {
|
|
228
227
|
from?: string | null | undefined;
|
|
229
228
|
to?: string | null | undefined;
|
|
@@ -232,12 +231,14 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
232
231
|
from?: string | null | undefined;
|
|
233
232
|
to?: string | null | undefined;
|
|
234
233
|
} | null | undefined;
|
|
235
|
-
|
|
234
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
235
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
236
236
|
director?: string | null | undefined;
|
|
237
237
|
}, {
|
|
238
238
|
name?: string | null | undefined;
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
240
|
+
limit?: number | undefined;
|
|
241
|
+
page?: number | undefined;
|
|
241
242
|
createdAt?: {
|
|
242
243
|
from?: string | null | undefined;
|
|
243
244
|
to?: string | null | undefined;
|
|
@@ -246,30 +247,29 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
246
247
|
from?: string | null | undefined;
|
|
247
248
|
to?: string | null | undefined;
|
|
248
249
|
} | null | undefined;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
250
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
251
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
252
252
|
director?: string | null | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
255
255
|
id: z.ZodString;
|
|
256
256
|
name: z.ZodString;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
name: string;
|
|
259
258
|
id: string;
|
|
260
|
-
}, {
|
|
261
259
|
name: string;
|
|
260
|
+
}, {
|
|
262
261
|
id: string;
|
|
262
|
+
name: string;
|
|
263
263
|
}>;
|
|
264
264
|
export declare const ClientAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
265
265
|
id: z.ZodString;
|
|
266
266
|
name: z.ZodString;
|
|
267
267
|
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
name: string;
|
|
269
268
|
id: string;
|
|
270
|
-
}, {
|
|
271
269
|
name: string;
|
|
270
|
+
}, {
|
|
272
271
|
id: string;
|
|
272
|
+
name: string;
|
|
273
273
|
}>, "many">;
|
|
274
274
|
export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
275
275
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -287,15 +287,15 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
287
287
|
lastName: z.ZodString;
|
|
288
288
|
email: z.ZodString;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
|
-
email: string;
|
|
291
290
|
id: string;
|
|
292
291
|
firstName: string;
|
|
293
292
|
lastName: string;
|
|
294
|
-
}, {
|
|
295
293
|
email: string;
|
|
294
|
+
}, {
|
|
296
295
|
id: string;
|
|
297
296
|
firstName: string;
|
|
298
297
|
lastName: string;
|
|
298
|
+
email: string;
|
|
299
299
|
}>>>;
|
|
300
300
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
301
301
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -307,44 +307,44 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
307
307
|
agentId: string;
|
|
308
308
|
}>>>;
|
|
309
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
id: string;
|
|
310
311
|
name: string;
|
|
312
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
311
313
|
createdAt: string;
|
|
312
314
|
updatedAt: string;
|
|
313
|
-
id: string;
|
|
314
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
315
315
|
crn: string | null;
|
|
316
316
|
govLink: string;
|
|
317
|
-
director: string;
|
|
318
317
|
soleTrader: boolean;
|
|
318
|
+
director: string;
|
|
319
319
|
blacklistReason?: string | null | undefined;
|
|
320
|
-
agentClientLinks?: {
|
|
321
|
-
agentId: string;
|
|
322
|
-
} | null | undefined;
|
|
323
320
|
lastUpdatedBy?: {
|
|
324
|
-
email: string;
|
|
325
321
|
id: string;
|
|
326
322
|
firstName: string;
|
|
327
323
|
lastName: string;
|
|
324
|
+
email: string;
|
|
325
|
+
} | null | undefined;
|
|
326
|
+
agentClientLinks?: {
|
|
327
|
+
agentId: string;
|
|
328
328
|
} | null | undefined;
|
|
329
329
|
}, {
|
|
330
|
+
id: string;
|
|
330
331
|
name: string;
|
|
332
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
331
333
|
createdAt: string | Date;
|
|
332
334
|
updatedAt: string | Date;
|
|
333
|
-
id: string;
|
|
334
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
335
335
|
crn: string | null;
|
|
336
336
|
govLink: string;
|
|
337
|
-
director: string;
|
|
338
337
|
soleTrader: boolean;
|
|
338
|
+
director: string;
|
|
339
339
|
blacklistReason?: string | null | undefined;
|
|
340
|
-
agentClientLinks?: {
|
|
341
|
-
agentId: string;
|
|
342
|
-
} | null | undefined;
|
|
343
340
|
lastUpdatedBy?: {
|
|
344
|
-
email: string;
|
|
345
341
|
id: string;
|
|
346
342
|
firstName: string;
|
|
347
343
|
lastName: string;
|
|
344
|
+
email: string;
|
|
345
|
+
} | null | undefined;
|
|
346
|
+
agentClientLinks?: {
|
|
347
|
+
agentId: string;
|
|
348
348
|
} | null | undefined;
|
|
349
349
|
}>, "many">;
|
|
350
350
|
totalCount: z.ZodNumber;
|
|
@@ -355,24 +355,24 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
355
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
356
|
limit: number;
|
|
357
357
|
items: {
|
|
358
|
+
id: string;
|
|
358
359
|
name: string;
|
|
360
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
359
361
|
createdAt: string;
|
|
360
362
|
updatedAt: string;
|
|
361
|
-
id: string;
|
|
362
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
363
363
|
crn: string | null;
|
|
364
364
|
govLink: string;
|
|
365
|
-
director: string;
|
|
366
365
|
soleTrader: boolean;
|
|
366
|
+
director: string;
|
|
367
367
|
blacklistReason?: string | null | undefined;
|
|
368
|
-
agentClientLinks?: {
|
|
369
|
-
agentId: string;
|
|
370
|
-
} | null | undefined;
|
|
371
368
|
lastUpdatedBy?: {
|
|
372
|
-
email: string;
|
|
373
369
|
id: string;
|
|
374
370
|
firstName: string;
|
|
375
371
|
lastName: string;
|
|
372
|
+
email: string;
|
|
373
|
+
} | null | undefined;
|
|
374
|
+
agentClientLinks?: {
|
|
375
|
+
agentId: string;
|
|
376
376
|
} | null | undefined;
|
|
377
377
|
}[];
|
|
378
378
|
totalCount: number;
|
|
@@ -382,24 +382,24 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
382
382
|
}, {
|
|
383
383
|
limit: number;
|
|
384
384
|
items: {
|
|
385
|
+
id: string;
|
|
385
386
|
name: string;
|
|
387
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
386
388
|
createdAt: string | Date;
|
|
387
389
|
updatedAt: string | Date;
|
|
388
|
-
id: string;
|
|
389
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
390
390
|
crn: string | null;
|
|
391
391
|
govLink: string;
|
|
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
|
-
email: string;
|
|
400
396
|
id: 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
|
}[];
|
|
405
405
|
totalCount: number;
|
|
@@ -434,8 +434,8 @@ export declare const clientsContractRouter: {
|
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
435
|
name: string;
|
|
436
436
|
govLink: string;
|
|
437
|
-
director: string;
|
|
438
437
|
soleTrader: boolean;
|
|
438
|
+
director: string;
|
|
439
439
|
}, {
|
|
440
440
|
name: string;
|
|
441
441
|
govLink: string;
|
|
@@ -559,15 +559,15 @@ export declare const clientsContractRouter: {
|
|
|
559
559
|
lastName: z.ZodString;
|
|
560
560
|
email: z.ZodString;
|
|
561
561
|
}, "strip", z.ZodTypeAny, {
|
|
562
|
-
email: string;
|
|
563
562
|
id: string;
|
|
564
563
|
firstName: string;
|
|
565
564
|
lastName: string;
|
|
566
|
-
}, {
|
|
567
565
|
email: string;
|
|
566
|
+
}, {
|
|
568
567
|
id: string;
|
|
569
568
|
firstName: string;
|
|
570
569
|
lastName: string;
|
|
570
|
+
email: string;
|
|
571
571
|
}>>>;
|
|
572
572
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
573
573
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -579,44 +579,44 @@ export declare const clientsContractRouter: {
|
|
|
579
579
|
agentId: string;
|
|
580
580
|
}>>>;
|
|
581
581
|
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
id: string;
|
|
582
583
|
name: string;
|
|
584
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
583
585
|
createdAt: string;
|
|
584
586
|
updatedAt: string;
|
|
585
|
-
id: string;
|
|
586
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
587
587
|
crn: string | null;
|
|
588
588
|
govLink: string;
|
|
589
|
-
director: string;
|
|
590
589
|
soleTrader: boolean;
|
|
590
|
+
director: string;
|
|
591
591
|
blacklistReason?: string | null | undefined;
|
|
592
|
-
agentClientLinks?: {
|
|
593
|
-
agentId: string;
|
|
594
|
-
} | null | undefined;
|
|
595
592
|
lastUpdatedBy?: {
|
|
596
|
-
email: string;
|
|
597
593
|
id: string;
|
|
598
594
|
firstName: string;
|
|
599
595
|
lastName: string;
|
|
596
|
+
email: string;
|
|
597
|
+
} | null | undefined;
|
|
598
|
+
agentClientLinks?: {
|
|
599
|
+
agentId: string;
|
|
600
600
|
} | null | undefined;
|
|
601
601
|
}, {
|
|
602
|
+
id: string;
|
|
602
603
|
name: string;
|
|
604
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
603
605
|
createdAt: string | Date;
|
|
604
606
|
updatedAt: string | Date;
|
|
605
|
-
id: string;
|
|
606
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
607
607
|
crn: string | null;
|
|
608
608
|
govLink: string;
|
|
609
|
-
director: string;
|
|
610
609
|
soleTrader: boolean;
|
|
610
|
+
director: string;
|
|
611
611
|
blacklistReason?: string | null | undefined;
|
|
612
|
-
agentClientLinks?: {
|
|
613
|
-
agentId: string;
|
|
614
|
-
} | null | undefined;
|
|
615
612
|
lastUpdatedBy?: {
|
|
616
|
-
email: string;
|
|
617
613
|
id: string;
|
|
618
614
|
firstName: string;
|
|
619
615
|
lastName: string;
|
|
616
|
+
email: string;
|
|
617
|
+
} | null | undefined;
|
|
618
|
+
agentClientLinks?: {
|
|
619
|
+
agentId: string;
|
|
620
620
|
} | null | undefined;
|
|
621
621
|
}>;
|
|
622
622
|
409: z.ZodObject<{
|
|
@@ -683,11 +683,10 @@ export declare const clientsContractRouter: {
|
|
|
683
683
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
684
684
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
-
page: number;
|
|
687
686
|
limit: number;
|
|
687
|
+
page: number;
|
|
688
688
|
name?: string | null | undefined;
|
|
689
|
-
|
|
690
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
689
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
691
690
|
createdAt?: {
|
|
692
691
|
from?: string | null | undefined;
|
|
693
692
|
to?: string | null | undefined;
|
|
@@ -696,12 +695,14 @@ export declare const clientsContractRouter: {
|
|
|
696
695
|
from?: string | null | undefined;
|
|
697
696
|
to?: string | null | undefined;
|
|
698
697
|
} | null | undefined;
|
|
699
|
-
|
|
698
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
699
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
700
700
|
director?: string | null | undefined;
|
|
701
701
|
}, {
|
|
702
702
|
name?: string | null | undefined;
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
704
|
+
limit?: number | undefined;
|
|
705
|
+
page?: number | undefined;
|
|
705
706
|
createdAt?: {
|
|
706
707
|
from?: string | null | undefined;
|
|
707
708
|
to?: string | null | undefined;
|
|
@@ -710,9 +711,8 @@ export declare const clientsContractRouter: {
|
|
|
710
711
|
from?: string | null | undefined;
|
|
711
712
|
to?: string | null | undefined;
|
|
712
713
|
} | null | undefined;
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
714
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "director" | null | undefined;
|
|
715
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
716
716
|
director?: string | null | undefined;
|
|
717
717
|
}>;
|
|
718
718
|
summary: "Get all clients";
|
|
@@ -835,15 +835,15 @@ export declare const clientsContractRouter: {
|
|
|
835
835
|
lastName: z.ZodString;
|
|
836
836
|
email: z.ZodString;
|
|
837
837
|
}, "strip", z.ZodTypeAny, {
|
|
838
|
-
email: string;
|
|
839
838
|
id: string;
|
|
840
839
|
firstName: string;
|
|
841
840
|
lastName: string;
|
|
842
|
-
}, {
|
|
843
841
|
email: string;
|
|
842
|
+
}, {
|
|
844
843
|
id: string;
|
|
845
844
|
firstName: string;
|
|
846
845
|
lastName: string;
|
|
846
|
+
email: string;
|
|
847
847
|
}>>>;
|
|
848
848
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
849
849
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -855,44 +855,44 @@ export declare const clientsContractRouter: {
|
|
|
855
855
|
agentId: string;
|
|
856
856
|
}>>>;
|
|
857
857
|
}, "strip", z.ZodTypeAny, {
|
|
858
|
+
id: string;
|
|
858
859
|
name: string;
|
|
860
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
859
861
|
createdAt: string;
|
|
860
862
|
updatedAt: string;
|
|
861
|
-
id: string;
|
|
862
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
863
863
|
crn: string | null;
|
|
864
864
|
govLink: string;
|
|
865
|
-
director: string;
|
|
866
865
|
soleTrader: boolean;
|
|
866
|
+
director: string;
|
|
867
867
|
blacklistReason?: string | null | undefined;
|
|
868
|
-
agentClientLinks?: {
|
|
869
|
-
agentId: string;
|
|
870
|
-
} | null | undefined;
|
|
871
868
|
lastUpdatedBy?: {
|
|
872
|
-
email: string;
|
|
873
869
|
id: string;
|
|
874
870
|
firstName: string;
|
|
875
871
|
lastName: string;
|
|
872
|
+
email: string;
|
|
873
|
+
} | null | undefined;
|
|
874
|
+
agentClientLinks?: {
|
|
875
|
+
agentId: string;
|
|
876
876
|
} | null | undefined;
|
|
877
877
|
}, {
|
|
878
|
+
id: string;
|
|
878
879
|
name: string;
|
|
880
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
879
881
|
createdAt: string | Date;
|
|
880
882
|
updatedAt: string | Date;
|
|
881
|
-
id: string;
|
|
882
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
883
883
|
crn: string | null;
|
|
884
884
|
govLink: string;
|
|
885
|
-
director: string;
|
|
886
885
|
soleTrader: boolean;
|
|
886
|
+
director: string;
|
|
887
887
|
blacklistReason?: string | null | undefined;
|
|
888
|
-
agentClientLinks?: {
|
|
889
|
-
agentId: string;
|
|
890
|
-
} | null | undefined;
|
|
891
888
|
lastUpdatedBy?: {
|
|
892
|
-
email: string;
|
|
893
889
|
id: string;
|
|
894
890
|
firstName: string;
|
|
895
891
|
lastName: string;
|
|
892
|
+
email: string;
|
|
893
|
+
} | null | undefined;
|
|
894
|
+
agentClientLinks?: {
|
|
895
|
+
agentId: string;
|
|
896
896
|
} | null | undefined;
|
|
897
897
|
}>, "many">;
|
|
898
898
|
totalCount: z.ZodNumber;
|
|
@@ -903,24 +903,24 @@ export declare const clientsContractRouter: {
|
|
|
903
903
|
}, "strip", z.ZodTypeAny, {
|
|
904
904
|
limit: number;
|
|
905
905
|
items: {
|
|
906
|
+
id: string;
|
|
906
907
|
name: string;
|
|
908
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
907
909
|
createdAt: string;
|
|
908
910
|
updatedAt: string;
|
|
909
|
-
id: string;
|
|
910
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
911
911
|
crn: string | null;
|
|
912
912
|
govLink: string;
|
|
913
|
-
director: string;
|
|
914
913
|
soleTrader: boolean;
|
|
914
|
+
director: string;
|
|
915
915
|
blacklistReason?: string | null | undefined;
|
|
916
|
-
agentClientLinks?: {
|
|
917
|
-
agentId: string;
|
|
918
|
-
} | null | undefined;
|
|
919
916
|
lastUpdatedBy?: {
|
|
920
|
-
email: string;
|
|
921
917
|
id: string;
|
|
922
918
|
firstName: string;
|
|
923
919
|
lastName: string;
|
|
920
|
+
email: string;
|
|
921
|
+
} | null | undefined;
|
|
922
|
+
agentClientLinks?: {
|
|
923
|
+
agentId: string;
|
|
924
924
|
} | null | undefined;
|
|
925
925
|
}[];
|
|
926
926
|
totalCount: number;
|
|
@@ -930,24 +930,24 @@ export declare const clientsContractRouter: {
|
|
|
930
930
|
}, {
|
|
931
931
|
limit: number;
|
|
932
932
|
items: {
|
|
933
|
+
id: string;
|
|
933
934
|
name: string;
|
|
935
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
934
936
|
createdAt: string | Date;
|
|
935
937
|
updatedAt: string | Date;
|
|
936
|
-
id: string;
|
|
937
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
938
938
|
crn: string | null;
|
|
939
939
|
govLink: string;
|
|
940
|
-
director: string;
|
|
941
940
|
soleTrader: boolean;
|
|
941
|
+
director: string;
|
|
942
942
|
blacklistReason?: string | null | undefined;
|
|
943
|
-
agentClientLinks?: {
|
|
944
|
-
agentId: string;
|
|
945
|
-
} | null | undefined;
|
|
946
943
|
lastUpdatedBy?: {
|
|
947
|
-
email: string;
|
|
948
944
|
id: string;
|
|
949
945
|
firstName: string;
|
|
950
946
|
lastName: string;
|
|
947
|
+
email: string;
|
|
948
|
+
} | null | undefined;
|
|
949
|
+
agentClientLinks?: {
|
|
950
|
+
agentId: string;
|
|
951
951
|
} | null | undefined;
|
|
952
952
|
}[];
|
|
953
953
|
totalCount: number;
|
|
@@ -1082,11 +1082,11 @@ export declare const clientsContractRouter: {
|
|
|
1082
1082
|
id: z.ZodString;
|
|
1083
1083
|
name: z.ZodString;
|
|
1084
1084
|
}, "strip", z.ZodTypeAny, {
|
|
1085
|
-
name: string;
|
|
1086
1085
|
id: string;
|
|
1087
|
-
}, {
|
|
1088
1086
|
name: string;
|
|
1087
|
+
}, {
|
|
1089
1088
|
id: string;
|
|
1089
|
+
name: string;
|
|
1090
1090
|
}>, "many">;
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
@@ -1223,15 +1223,15 @@ export declare const clientsContractRouter: {
|
|
|
1223
1223
|
lastName: z.ZodString;
|
|
1224
1224
|
email: z.ZodString;
|
|
1225
1225
|
}, "strip", z.ZodTypeAny, {
|
|
1226
|
-
email: string;
|
|
1227
1226
|
id: string;
|
|
1228
1227
|
firstName: string;
|
|
1229
1228
|
lastName: string;
|
|
1230
|
-
}, {
|
|
1231
1229
|
email: string;
|
|
1230
|
+
}, {
|
|
1232
1231
|
id: string;
|
|
1233
1232
|
firstName: string;
|
|
1234
1233
|
lastName: string;
|
|
1234
|
+
email: string;
|
|
1235
1235
|
}>>>;
|
|
1236
1236
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1237
1237
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1243,44 +1243,44 @@ export declare const clientsContractRouter: {
|
|
|
1243
1243
|
agentId: string;
|
|
1244
1244
|
}>>>;
|
|
1245
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1246
|
+
id: string;
|
|
1246
1247
|
name: string;
|
|
1248
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1247
1249
|
createdAt: string;
|
|
1248
1250
|
updatedAt: string;
|
|
1249
|
-
id: string;
|
|
1250
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1251
1251
|
crn: string | null;
|
|
1252
1252
|
govLink: string;
|
|
1253
|
-
director: string;
|
|
1254
1253
|
soleTrader: boolean;
|
|
1254
|
+
director: string;
|
|
1255
1255
|
blacklistReason?: string | null | undefined;
|
|
1256
|
-
agentClientLinks?: {
|
|
1257
|
-
agentId: string;
|
|
1258
|
-
} | null | undefined;
|
|
1259
1256
|
lastUpdatedBy?: {
|
|
1260
|
-
email: string;
|
|
1261
1257
|
id: string;
|
|
1262
1258
|
firstName: string;
|
|
1263
1259
|
lastName: string;
|
|
1260
|
+
email: string;
|
|
1261
|
+
} | null | undefined;
|
|
1262
|
+
agentClientLinks?: {
|
|
1263
|
+
agentId: string;
|
|
1264
1264
|
} | null | undefined;
|
|
1265
1265
|
}, {
|
|
1266
|
+
id: string;
|
|
1266
1267
|
name: string;
|
|
1268
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1267
1269
|
createdAt: string | Date;
|
|
1268
1270
|
updatedAt: string | Date;
|
|
1269
|
-
id: string;
|
|
1270
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1271
1271
|
crn: string | null;
|
|
1272
1272
|
govLink: string;
|
|
1273
|
-
director: string;
|
|
1274
1273
|
soleTrader: boolean;
|
|
1274
|
+
director: string;
|
|
1275
1275
|
blacklistReason?: string | null | undefined;
|
|
1276
|
-
agentClientLinks?: {
|
|
1277
|
-
agentId: string;
|
|
1278
|
-
} | null | undefined;
|
|
1279
1276
|
lastUpdatedBy?: {
|
|
1280
|
-
email: string;
|
|
1281
1277
|
id: string;
|
|
1282
1278
|
firstName: string;
|
|
1283
1279
|
lastName: string;
|
|
1280
|
+
email: string;
|
|
1281
|
+
} | null | undefined;
|
|
1282
|
+
agentClientLinks?: {
|
|
1283
|
+
agentId: string;
|
|
1284
1284
|
} | null | undefined;
|
|
1285
1285
|
}>;
|
|
1286
1286
|
404: z.ZodObject<{
|
|
@@ -1334,28 +1334,28 @@ export declare const clientsContractRouter: {
|
|
|
1334
1334
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1335
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1336
|
name?: string | undefined;
|
|
1337
|
-
status?: "
|
|
1337
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1338
|
+
blacklistReason?: string | null | undefined;
|
|
1338
1339
|
govLink?: string | undefined;
|
|
1339
1340
|
director?: string | undefined;
|
|
1340
|
-
blacklistReason?: string | null | undefined;
|
|
1341
1341
|
}, {
|
|
1342
1342
|
name?: string | undefined;
|
|
1343
|
-
status?: "
|
|
1343
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1344
|
+
blacklistReason?: string | null | undefined;
|
|
1344
1345
|
govLink?: string | undefined;
|
|
1345
1346
|
director?: string | undefined;
|
|
1346
|
-
blacklistReason?: string | null | undefined;
|
|
1347
1347
|
}>, {
|
|
1348
1348
|
name?: string | undefined;
|
|
1349
|
-
status?: "
|
|
1349
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1350
|
+
blacklistReason?: string | null | undefined;
|
|
1350
1351
|
govLink?: string | undefined;
|
|
1351
1352
|
director?: string | undefined;
|
|
1352
|
-
blacklistReason?: string | null | undefined;
|
|
1353
1353
|
}, {
|
|
1354
1354
|
name?: string | undefined;
|
|
1355
|
-
status?: "
|
|
1355
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1356
|
+
blacklistReason?: string | null | undefined;
|
|
1356
1357
|
govLink?: string | undefined;
|
|
1357
1358
|
director?: string | undefined;
|
|
1358
|
-
blacklistReason?: string | null | undefined;
|
|
1359
1359
|
}>;
|
|
1360
1360
|
path: "/v2/clients/:id";
|
|
1361
1361
|
responses: {
|
|
@@ -1474,15 +1474,15 @@ export declare const clientsContractRouter: {
|
|
|
1474
1474
|
lastName: z.ZodString;
|
|
1475
1475
|
email: z.ZodString;
|
|
1476
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1477
|
-
email: string;
|
|
1478
1477
|
id: string;
|
|
1479
1478
|
firstName: string;
|
|
1480
1479
|
lastName: string;
|
|
1481
|
-
}, {
|
|
1482
1480
|
email: string;
|
|
1481
|
+
}, {
|
|
1483
1482
|
id: string;
|
|
1484
1483
|
firstName: string;
|
|
1485
1484
|
lastName: string;
|
|
1485
|
+
email: string;
|
|
1486
1486
|
}>>>;
|
|
1487
1487
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1488
1488
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1494,44 +1494,44 @@ export declare const clientsContractRouter: {
|
|
|
1494
1494
|
agentId: string;
|
|
1495
1495
|
}>>>;
|
|
1496
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
id: string;
|
|
1497
1498
|
name: string;
|
|
1499
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1498
1500
|
createdAt: string;
|
|
1499
1501
|
updatedAt: string;
|
|
1500
|
-
id: string;
|
|
1501
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1502
1502
|
crn: string | null;
|
|
1503
1503
|
govLink: string;
|
|
1504
|
-
director: string;
|
|
1505
1504
|
soleTrader: boolean;
|
|
1505
|
+
director: string;
|
|
1506
1506
|
blacklistReason?: string | null | undefined;
|
|
1507
|
-
agentClientLinks?: {
|
|
1508
|
-
agentId: string;
|
|
1509
|
-
} | null | undefined;
|
|
1510
1507
|
lastUpdatedBy?: {
|
|
1511
|
-
email: string;
|
|
1512
1508
|
id: string;
|
|
1513
1509
|
firstName: string;
|
|
1514
1510
|
lastName: string;
|
|
1511
|
+
email: string;
|
|
1512
|
+
} | null | undefined;
|
|
1513
|
+
agentClientLinks?: {
|
|
1514
|
+
agentId: string;
|
|
1515
1515
|
} | null | undefined;
|
|
1516
1516
|
}, {
|
|
1517
|
+
id: string;
|
|
1517
1518
|
name: string;
|
|
1519
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1518
1520
|
createdAt: string | Date;
|
|
1519
1521
|
updatedAt: string | Date;
|
|
1520
|
-
id: string;
|
|
1521
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1522
1522
|
crn: string | null;
|
|
1523
1523
|
govLink: string;
|
|
1524
|
-
director: string;
|
|
1525
1524
|
soleTrader: boolean;
|
|
1525
|
+
director: string;
|
|
1526
1526
|
blacklistReason?: string | null | undefined;
|
|
1527
|
-
agentClientLinks?: {
|
|
1528
|
-
agentId: string;
|
|
1529
|
-
} | null | undefined;
|
|
1530
1527
|
lastUpdatedBy?: {
|
|
1531
|
-
email: string;
|
|
1532
1528
|
id: string;
|
|
1533
1529
|
firstName: string;
|
|
1534
1530
|
lastName: string;
|
|
1531
|
+
email: string;
|
|
1532
|
+
} | null | undefined;
|
|
1533
|
+
agentClientLinks?: {
|
|
1534
|
+
agentId: string;
|
|
1535
1535
|
} | null | undefined;
|
|
1536
1536
|
}>;
|
|
1537
1537
|
404: z.ZodObject<{
|