@dakkitor/api-contracts 1.1.42 → 1.1.44
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 +1 -0
- package/dist/actives/actives.contract.d.ts +3661 -3509
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +484 -455
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +3248 -3100
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +316 -277
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.d.ts +148 -120
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +10 -1
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1135 -1031
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +918 -826
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.d.ts +1116 -1012
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-contacts.contract.d.ts","sourceRoot":"","sources":["../../contracts/client-contacts/client-contacts.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,iCAAiC,oEAM5C,CAAC;AAQH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"client-contacts.contract.d.ts","sourceRoot":"","sources":["../../contracts/client-contacts/client-contacts.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGxC,CAAC"}
|
|
@@ -22,8 +22,9 @@ export declare const ClientUserSchema: z.ZodObject<{
|
|
|
22
22
|
export declare const ClientSchema: z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
name: z.ZodString;
|
|
25
|
-
crn: z.ZodString
|
|
25
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
26
26
|
govLink: z.ZodString;
|
|
27
|
+
soleTrader: z.ZodBoolean;
|
|
27
28
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
28
29
|
director: z.ZodString;
|
|
29
30
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -53,14 +54,15 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
53
54
|
agentId: string;
|
|
54
55
|
}>>>;
|
|
55
56
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
57
57
|
id: string;
|
|
58
|
-
|
|
59
|
-
updatedAt: string;
|
|
58
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
60
59
|
name: string;
|
|
61
|
-
crn: string;
|
|
60
|
+
crn: string | null;
|
|
62
61
|
govLink: string;
|
|
62
|
+
soleTrader: boolean;
|
|
63
63
|
director: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
64
66
|
blacklistReason?: string | null | undefined;
|
|
65
67
|
lastUpdatedBy?: {
|
|
66
68
|
id: string;
|
|
@@ -72,14 +74,15 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
72
74
|
agentId: string;
|
|
73
75
|
} | null | undefined;
|
|
74
76
|
}, {
|
|
75
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
76
77
|
id: string;
|
|
77
|
-
|
|
78
|
-
updatedAt: string | Date;
|
|
78
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
79
79
|
name: string;
|
|
80
|
-
crn: string;
|
|
80
|
+
crn: string | null;
|
|
81
81
|
govLink: string;
|
|
82
|
+
soleTrader: boolean;
|
|
82
83
|
director: string;
|
|
84
|
+
createdAt: string | Date;
|
|
85
|
+
updatedAt: string | Date;
|
|
83
86
|
blacklistReason?: string | null | undefined;
|
|
84
87
|
lastUpdatedBy?: {
|
|
85
88
|
id: string;
|
|
@@ -94,15 +97,18 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
94
97
|
export declare const CreateClientSchema: z.ZodObject<{
|
|
95
98
|
name: z.ZodString;
|
|
96
99
|
govLink: z.ZodString;
|
|
100
|
+
soleTrader: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
97
101
|
director: z.ZodString;
|
|
98
102
|
}, "strip", z.ZodTypeAny, {
|
|
99
103
|
name: string;
|
|
100
104
|
govLink: string;
|
|
105
|
+
soleTrader: boolean;
|
|
101
106
|
director: string;
|
|
102
107
|
}, {
|
|
103
108
|
name: string;
|
|
104
109
|
govLink: string;
|
|
105
110
|
director: string;
|
|
111
|
+
soleTrader?: boolean | undefined;
|
|
106
112
|
}>;
|
|
107
113
|
/**
|
|
108
114
|
* Base schema for UpdateClient without refinements.
|
|
@@ -115,17 +121,17 @@ export declare const UpdateClientBaseSchema: z.ZodObject<{
|
|
|
115
121
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
116
122
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
123
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
status?: "
|
|
124
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
119
125
|
name?: string | undefined;
|
|
120
|
-
blacklistReason?: string | null | undefined;
|
|
121
126
|
govLink?: string | undefined;
|
|
122
127
|
director?: string | undefined;
|
|
128
|
+
blacklistReason?: string | null | undefined;
|
|
123
129
|
}, {
|
|
124
|
-
status?: "
|
|
130
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
125
131
|
name?: string | undefined;
|
|
126
|
-
blacklistReason?: string | null | undefined;
|
|
127
132
|
govLink?: string | undefined;
|
|
128
133
|
director?: string | undefined;
|
|
134
|
+
blacklistReason?: string | null | undefined;
|
|
129
135
|
}>;
|
|
130
136
|
/**
|
|
131
137
|
* Conditional validation rules for UpdateClient.
|
|
@@ -159,29 +165,29 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
165
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
160
166
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
167
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
status?: "
|
|
168
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
163
169
|
name?: string | undefined;
|
|
164
|
-
blacklistReason?: string | null | undefined;
|
|
165
170
|
govLink?: string | undefined;
|
|
166
171
|
director?: string | undefined;
|
|
172
|
+
blacklistReason?: string | null | undefined;
|
|
167
173
|
}, {
|
|
168
|
-
status?: "
|
|
174
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
169
175
|
name?: string | undefined;
|
|
170
|
-
blacklistReason?: string | null | undefined;
|
|
171
176
|
govLink?: string | undefined;
|
|
172
177
|
director?: string | undefined;
|
|
178
|
+
blacklistReason?: string | null | undefined;
|
|
173
179
|
}>, {
|
|
174
|
-
status?: "
|
|
180
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
175
181
|
name?: string | undefined;
|
|
176
|
-
blacklistReason?: string | null | undefined;
|
|
177
182
|
govLink?: string | undefined;
|
|
178
183
|
director?: string | undefined;
|
|
184
|
+
blacklistReason?: string | null | undefined;
|
|
179
185
|
}, {
|
|
180
|
-
status?: "
|
|
186
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
181
187
|
name?: string | undefined;
|
|
182
|
-
blacklistReason?: string | null | undefined;
|
|
183
188
|
govLink?: string | undefined;
|
|
184
189
|
director?: string | undefined;
|
|
190
|
+
blacklistReason?: string | null | undefined;
|
|
185
191
|
}>;
|
|
186
192
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
187
193
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -205,27 +211,27 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
205
211
|
}, "strip", z.ZodTypeAny, {
|
|
206
212
|
limit: number;
|
|
207
213
|
page: number;
|
|
208
|
-
status?: "
|
|
214
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
215
|
+
name?: string | null | undefined;
|
|
216
|
+
director?: string | null | undefined;
|
|
209
217
|
createdAt?: {
|
|
210
218
|
from?: string | null | undefined;
|
|
211
219
|
to?: string | null | undefined;
|
|
212
220
|
} | null | undefined;
|
|
213
|
-
|
|
214
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
221
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
215
222
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
216
|
-
director?: string | null | undefined;
|
|
217
223
|
}, {
|
|
218
|
-
status?: "
|
|
224
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
225
|
+
name?: string | null | undefined;
|
|
226
|
+
director?: string | null | undefined;
|
|
219
227
|
createdAt?: {
|
|
220
228
|
from?: string | null | undefined;
|
|
221
229
|
to?: string | null | undefined;
|
|
222
230
|
} | null | undefined;
|
|
223
231
|
limit?: number | undefined;
|
|
224
232
|
page?: number | undefined;
|
|
225
|
-
|
|
226
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
233
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
227
234
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
228
|
-
director?: string | null | undefined;
|
|
229
235
|
}>;
|
|
230
236
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
231
237
|
id: z.ZodString;
|
|
@@ -251,8 +257,9 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
251
257
|
items: z.ZodArray<z.ZodObject<{
|
|
252
258
|
id: z.ZodString;
|
|
253
259
|
name: z.ZodString;
|
|
254
|
-
crn: z.ZodString
|
|
260
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
255
261
|
govLink: z.ZodString;
|
|
262
|
+
soleTrader: z.ZodBoolean;
|
|
256
263
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
257
264
|
director: z.ZodString;
|
|
258
265
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -282,14 +289,15 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
282
289
|
agentId: string;
|
|
283
290
|
}>>>;
|
|
284
291
|
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
286
292
|
id: string;
|
|
287
|
-
|
|
288
|
-
updatedAt: string;
|
|
293
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
289
294
|
name: string;
|
|
290
|
-
crn: string;
|
|
295
|
+
crn: string | null;
|
|
291
296
|
govLink: string;
|
|
297
|
+
soleTrader: boolean;
|
|
292
298
|
director: string;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
updatedAt: string;
|
|
293
301
|
blacklistReason?: string | null | undefined;
|
|
294
302
|
lastUpdatedBy?: {
|
|
295
303
|
id: string;
|
|
@@ -301,14 +309,15 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
301
309
|
agentId: string;
|
|
302
310
|
} | null | undefined;
|
|
303
311
|
}, {
|
|
304
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
305
312
|
id: string;
|
|
306
|
-
|
|
307
|
-
updatedAt: string | Date;
|
|
313
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
308
314
|
name: string;
|
|
309
|
-
crn: string;
|
|
315
|
+
crn: string | null;
|
|
310
316
|
govLink: string;
|
|
317
|
+
soleTrader: boolean;
|
|
311
318
|
director: string;
|
|
319
|
+
createdAt: string | Date;
|
|
320
|
+
updatedAt: string | Date;
|
|
312
321
|
blacklistReason?: string | null | undefined;
|
|
313
322
|
lastUpdatedBy?: {
|
|
314
323
|
id: string;
|
|
@@ -328,14 +337,15 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
328
337
|
}, "strip", z.ZodTypeAny, {
|
|
329
338
|
limit: number;
|
|
330
339
|
items: {
|
|
331
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
332
340
|
id: string;
|
|
333
|
-
|
|
334
|
-
updatedAt: string;
|
|
341
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
335
342
|
name: string;
|
|
336
|
-
crn: string;
|
|
343
|
+
crn: string | null;
|
|
337
344
|
govLink: string;
|
|
345
|
+
soleTrader: boolean;
|
|
338
346
|
director: string;
|
|
347
|
+
createdAt: string;
|
|
348
|
+
updatedAt: string;
|
|
339
349
|
blacklistReason?: string | null | undefined;
|
|
340
350
|
lastUpdatedBy?: {
|
|
341
351
|
id: string;
|
|
@@ -354,14 +364,15 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
354
364
|
}, {
|
|
355
365
|
limit: number;
|
|
356
366
|
items: {
|
|
357
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
358
367
|
id: string;
|
|
359
|
-
|
|
360
|
-
updatedAt: string | Date;
|
|
368
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
361
369
|
name: string;
|
|
362
|
-
crn: string;
|
|
370
|
+
crn: string | null;
|
|
363
371
|
govLink: string;
|
|
372
|
+
soleTrader: boolean;
|
|
364
373
|
director: string;
|
|
374
|
+
createdAt: string | Date;
|
|
375
|
+
updatedAt: string | Date;
|
|
365
376
|
blacklistReason?: string | null | undefined;
|
|
366
377
|
lastUpdatedBy?: {
|
|
367
378
|
id: string;
|
|
@@ -400,15 +411,18 @@ export declare const clientsContractRouter: {
|
|
|
400
411
|
body: z.ZodObject<{
|
|
401
412
|
name: z.ZodString;
|
|
402
413
|
govLink: z.ZodString;
|
|
414
|
+
soleTrader: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
403
415
|
director: z.ZodString;
|
|
404
416
|
}, "strip", z.ZodTypeAny, {
|
|
405
417
|
name: string;
|
|
406
418
|
govLink: string;
|
|
419
|
+
soleTrader: boolean;
|
|
407
420
|
director: string;
|
|
408
421
|
}, {
|
|
409
422
|
name: string;
|
|
410
423
|
govLink: string;
|
|
411
424
|
director: string;
|
|
425
|
+
soleTrader?: boolean | undefined;
|
|
412
426
|
}>;
|
|
413
427
|
path: "/v2/clients";
|
|
414
428
|
responses: {
|
|
@@ -515,8 +529,9 @@ export declare const clientsContractRouter: {
|
|
|
515
529
|
201: z.ZodObject<{
|
|
516
530
|
id: z.ZodString;
|
|
517
531
|
name: z.ZodString;
|
|
518
|
-
crn: z.ZodString
|
|
532
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
519
533
|
govLink: z.ZodString;
|
|
534
|
+
soleTrader: z.ZodBoolean;
|
|
520
535
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
521
536
|
director: z.ZodString;
|
|
522
537
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -546,14 +561,15 @@ export declare const clientsContractRouter: {
|
|
|
546
561
|
agentId: string;
|
|
547
562
|
}>>>;
|
|
548
563
|
}, "strip", z.ZodTypeAny, {
|
|
549
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
550
564
|
id: string;
|
|
551
|
-
|
|
552
|
-
updatedAt: string;
|
|
565
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
553
566
|
name: string;
|
|
554
|
-
crn: string;
|
|
567
|
+
crn: string | null;
|
|
555
568
|
govLink: string;
|
|
569
|
+
soleTrader: boolean;
|
|
556
570
|
director: string;
|
|
571
|
+
createdAt: string;
|
|
572
|
+
updatedAt: string;
|
|
557
573
|
blacklistReason?: string | null | undefined;
|
|
558
574
|
lastUpdatedBy?: {
|
|
559
575
|
id: string;
|
|
@@ -565,14 +581,15 @@ export declare const clientsContractRouter: {
|
|
|
565
581
|
agentId: string;
|
|
566
582
|
} | null | undefined;
|
|
567
583
|
}, {
|
|
568
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
569
584
|
id: string;
|
|
570
|
-
|
|
571
|
-
updatedAt: string | Date;
|
|
585
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
572
586
|
name: string;
|
|
573
|
-
crn: string;
|
|
587
|
+
crn: string | null;
|
|
574
588
|
govLink: string;
|
|
589
|
+
soleTrader: boolean;
|
|
575
590
|
director: string;
|
|
591
|
+
createdAt: string | Date;
|
|
592
|
+
updatedAt: string | Date;
|
|
576
593
|
blacklistReason?: string | null | undefined;
|
|
577
594
|
lastUpdatedBy?: {
|
|
578
595
|
id: string;
|
|
@@ -612,6 +629,12 @@ export declare const clientsContractRouter: {
|
|
|
612
629
|
};
|
|
613
630
|
};
|
|
614
631
|
findAll: {
|
|
632
|
+
metadata: {
|
|
633
|
+
tags: string[];
|
|
634
|
+
openApi: {
|
|
635
|
+
operationId: string;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
615
638
|
query: z.ZodObject<{
|
|
616
639
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
617
640
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -634,34 +657,28 @@ export declare const clientsContractRouter: {
|
|
|
634
657
|
}, "strip", z.ZodTypeAny, {
|
|
635
658
|
limit: number;
|
|
636
659
|
page: number;
|
|
637
|
-
status?: "
|
|
660
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
661
|
+
name?: string | null | undefined;
|
|
662
|
+
director?: string | null | undefined;
|
|
638
663
|
createdAt?: {
|
|
639
664
|
from?: string | null | undefined;
|
|
640
665
|
to?: string | null | undefined;
|
|
641
666
|
} | null | undefined;
|
|
642
|
-
|
|
643
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
667
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
644
668
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
645
|
-
director?: string | null | undefined;
|
|
646
669
|
}, {
|
|
647
|
-
status?: "
|
|
670
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
671
|
+
name?: string | null | undefined;
|
|
672
|
+
director?: string | null | undefined;
|
|
648
673
|
createdAt?: {
|
|
649
674
|
from?: string | null | undefined;
|
|
650
675
|
to?: string | null | undefined;
|
|
651
676
|
} | null | undefined;
|
|
652
677
|
limit?: number | undefined;
|
|
653
678
|
page?: number | undefined;
|
|
654
|
-
|
|
655
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
679
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
656
680
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
657
|
-
director?: string | null | undefined;
|
|
658
681
|
}>;
|
|
659
|
-
metadata: {
|
|
660
|
-
tags: string[];
|
|
661
|
-
openApi: {
|
|
662
|
-
operationId: string;
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
682
|
summary: "Get all clients";
|
|
666
683
|
method: "GET";
|
|
667
684
|
path: "/v2/clients";
|
|
@@ -770,8 +787,9 @@ export declare const clientsContractRouter: {
|
|
|
770
787
|
items: z.ZodArray<z.ZodObject<{
|
|
771
788
|
id: z.ZodString;
|
|
772
789
|
name: z.ZodString;
|
|
773
|
-
crn: z.ZodString
|
|
790
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
774
791
|
govLink: z.ZodString;
|
|
792
|
+
soleTrader: z.ZodBoolean;
|
|
775
793
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
776
794
|
director: z.ZodString;
|
|
777
795
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -801,14 +819,15 @@ export declare const clientsContractRouter: {
|
|
|
801
819
|
agentId: string;
|
|
802
820
|
}>>>;
|
|
803
821
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
805
822
|
id: string;
|
|
806
|
-
|
|
807
|
-
updatedAt: string;
|
|
823
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
808
824
|
name: string;
|
|
809
|
-
crn: string;
|
|
825
|
+
crn: string | null;
|
|
810
826
|
govLink: string;
|
|
827
|
+
soleTrader: boolean;
|
|
811
828
|
director: string;
|
|
829
|
+
createdAt: string;
|
|
830
|
+
updatedAt: string;
|
|
812
831
|
blacklistReason?: string | null | undefined;
|
|
813
832
|
lastUpdatedBy?: {
|
|
814
833
|
id: string;
|
|
@@ -820,14 +839,15 @@ export declare const clientsContractRouter: {
|
|
|
820
839
|
agentId: string;
|
|
821
840
|
} | null | undefined;
|
|
822
841
|
}, {
|
|
823
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
824
842
|
id: string;
|
|
825
|
-
|
|
826
|
-
updatedAt: string | Date;
|
|
843
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
827
844
|
name: string;
|
|
828
|
-
crn: string;
|
|
845
|
+
crn: string | null;
|
|
829
846
|
govLink: string;
|
|
847
|
+
soleTrader: boolean;
|
|
830
848
|
director: string;
|
|
849
|
+
createdAt: string | Date;
|
|
850
|
+
updatedAt: string | Date;
|
|
831
851
|
blacklistReason?: string | null | undefined;
|
|
832
852
|
lastUpdatedBy?: {
|
|
833
853
|
id: string;
|
|
@@ -847,14 +867,15 @@ export declare const clientsContractRouter: {
|
|
|
847
867
|
}, "strip", z.ZodTypeAny, {
|
|
848
868
|
limit: number;
|
|
849
869
|
items: {
|
|
850
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
851
870
|
id: string;
|
|
852
|
-
|
|
853
|
-
updatedAt: string;
|
|
871
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
854
872
|
name: string;
|
|
855
|
-
crn: string;
|
|
873
|
+
crn: string | null;
|
|
856
874
|
govLink: string;
|
|
875
|
+
soleTrader: boolean;
|
|
857
876
|
director: string;
|
|
877
|
+
createdAt: string;
|
|
878
|
+
updatedAt: string;
|
|
858
879
|
blacklistReason?: string | null | undefined;
|
|
859
880
|
lastUpdatedBy?: {
|
|
860
881
|
id: string;
|
|
@@ -873,14 +894,15 @@ export declare const clientsContractRouter: {
|
|
|
873
894
|
}, {
|
|
874
895
|
limit: number;
|
|
875
896
|
items: {
|
|
876
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
877
897
|
id: string;
|
|
878
|
-
|
|
879
|
-
updatedAt: string | Date;
|
|
898
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
880
899
|
name: string;
|
|
881
|
-
crn: string;
|
|
900
|
+
crn: string | null;
|
|
882
901
|
govLink: string;
|
|
902
|
+
soleTrader: boolean;
|
|
883
903
|
director: string;
|
|
904
|
+
createdAt: string | Date;
|
|
905
|
+
updatedAt: string | Date;
|
|
884
906
|
blacklistReason?: string | null | undefined;
|
|
885
907
|
lastUpdatedBy?: {
|
|
886
908
|
id: string;
|
|
@@ -900,22 +922,22 @@ export declare const clientsContractRouter: {
|
|
|
900
922
|
};
|
|
901
923
|
};
|
|
902
924
|
autocomplete: {
|
|
925
|
+
metadata: {
|
|
926
|
+
tags: string[];
|
|
927
|
+
openApi: {
|
|
928
|
+
operationId: string;
|
|
929
|
+
};
|
|
930
|
+
};
|
|
903
931
|
query: z.ZodObject<{
|
|
904
932
|
query: z.ZodOptional<z.ZodString>;
|
|
905
933
|
id: z.ZodOptional<z.ZodString>;
|
|
906
934
|
}, "strip", z.ZodTypeAny, {
|
|
907
|
-
query?: string | undefined;
|
|
908
935
|
id?: string | undefined;
|
|
909
|
-
}, {
|
|
910
936
|
query?: string | undefined;
|
|
937
|
+
}, {
|
|
911
938
|
id?: string | undefined;
|
|
939
|
+
query?: string | undefined;
|
|
912
940
|
}>;
|
|
913
|
-
metadata: {
|
|
914
|
-
tags: string[];
|
|
915
|
-
openApi: {
|
|
916
|
-
operationId: string;
|
|
917
|
-
};
|
|
918
|
-
};
|
|
919
941
|
summary: "Get clients for autocomplete";
|
|
920
942
|
method: "GET";
|
|
921
943
|
path: "/v2/clients/autocomplete";
|
|
@@ -1153,8 +1175,9 @@ export declare const clientsContractRouter: {
|
|
|
1153
1175
|
200: z.ZodObject<{
|
|
1154
1176
|
id: z.ZodString;
|
|
1155
1177
|
name: z.ZodString;
|
|
1156
|
-
crn: z.ZodString
|
|
1178
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
1157
1179
|
govLink: z.ZodString;
|
|
1180
|
+
soleTrader: z.ZodBoolean;
|
|
1158
1181
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
1159
1182
|
director: z.ZodString;
|
|
1160
1183
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1184,14 +1207,15 @@ export declare const clientsContractRouter: {
|
|
|
1184
1207
|
agentId: string;
|
|
1185
1208
|
}>>>;
|
|
1186
1209
|
}, "strip", z.ZodTypeAny, {
|
|
1187
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1188
1210
|
id: string;
|
|
1189
|
-
|
|
1190
|
-
updatedAt: string;
|
|
1211
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1191
1212
|
name: string;
|
|
1192
|
-
crn: string;
|
|
1213
|
+
crn: string | null;
|
|
1193
1214
|
govLink: string;
|
|
1215
|
+
soleTrader: boolean;
|
|
1194
1216
|
director: string;
|
|
1217
|
+
createdAt: string;
|
|
1218
|
+
updatedAt: string;
|
|
1195
1219
|
blacklistReason?: string | null | undefined;
|
|
1196
1220
|
lastUpdatedBy?: {
|
|
1197
1221
|
id: string;
|
|
@@ -1203,14 +1227,15 @@ export declare const clientsContractRouter: {
|
|
|
1203
1227
|
agentId: string;
|
|
1204
1228
|
} | null | undefined;
|
|
1205
1229
|
}, {
|
|
1206
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1207
1230
|
id: string;
|
|
1208
|
-
|
|
1209
|
-
updatedAt: string | Date;
|
|
1231
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1210
1232
|
name: string;
|
|
1211
|
-
crn: string;
|
|
1233
|
+
crn: string | null;
|
|
1212
1234
|
govLink: string;
|
|
1235
|
+
soleTrader: boolean;
|
|
1213
1236
|
director: string;
|
|
1237
|
+
createdAt: string | Date;
|
|
1238
|
+
updatedAt: string | Date;
|
|
1214
1239
|
blacklistReason?: string | null | undefined;
|
|
1215
1240
|
lastUpdatedBy?: {
|
|
1216
1241
|
id: string;
|
|
@@ -1272,29 +1297,29 @@ export declare const clientsContractRouter: {
|
|
|
1272
1297
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
1273
1298
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1274
1299
|
}, "strip", z.ZodTypeAny, {
|
|
1275
|
-
status?: "
|
|
1300
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1276
1301
|
name?: string | undefined;
|
|
1277
|
-
blacklistReason?: string | null | undefined;
|
|
1278
1302
|
govLink?: string | undefined;
|
|
1279
1303
|
director?: string | undefined;
|
|
1304
|
+
blacklistReason?: string | null | undefined;
|
|
1280
1305
|
}, {
|
|
1281
|
-
status?: "
|
|
1306
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1282
1307
|
name?: string | undefined;
|
|
1283
|
-
blacklistReason?: string | null | undefined;
|
|
1284
1308
|
govLink?: string | undefined;
|
|
1285
1309
|
director?: string | undefined;
|
|
1310
|
+
blacklistReason?: string | null | undefined;
|
|
1286
1311
|
}>, {
|
|
1287
|
-
status?: "
|
|
1312
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1288
1313
|
name?: string | undefined;
|
|
1289
|
-
blacklistReason?: string | null | undefined;
|
|
1290
1314
|
govLink?: string | undefined;
|
|
1291
1315
|
director?: string | undefined;
|
|
1316
|
+
blacklistReason?: string | null | undefined;
|
|
1292
1317
|
}, {
|
|
1293
|
-
status?: "
|
|
1318
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1294
1319
|
name?: string | undefined;
|
|
1295
|
-
blacklistReason?: string | null | undefined;
|
|
1296
1320
|
govLink?: string | undefined;
|
|
1297
1321
|
director?: string | undefined;
|
|
1322
|
+
blacklistReason?: string | null | undefined;
|
|
1298
1323
|
}>;
|
|
1299
1324
|
path: "/v2/clients/:id";
|
|
1300
1325
|
responses: {
|
|
@@ -1401,8 +1426,9 @@ export declare const clientsContractRouter: {
|
|
|
1401
1426
|
200: z.ZodObject<{
|
|
1402
1427
|
id: z.ZodString;
|
|
1403
1428
|
name: z.ZodString;
|
|
1404
|
-
crn: z.ZodString
|
|
1429
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
1405
1430
|
govLink: z.ZodString;
|
|
1431
|
+
soleTrader: z.ZodBoolean;
|
|
1406
1432
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
1407
1433
|
director: z.ZodString;
|
|
1408
1434
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1432,14 +1458,15 @@ export declare const clientsContractRouter: {
|
|
|
1432
1458
|
agentId: string;
|
|
1433
1459
|
}>>>;
|
|
1434
1460
|
}, "strip", z.ZodTypeAny, {
|
|
1435
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1436
1461
|
id: string;
|
|
1437
|
-
|
|
1438
|
-
updatedAt: string;
|
|
1462
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1439
1463
|
name: string;
|
|
1440
|
-
crn: string;
|
|
1464
|
+
crn: string | null;
|
|
1441
1465
|
govLink: string;
|
|
1466
|
+
soleTrader: boolean;
|
|
1442
1467
|
director: string;
|
|
1468
|
+
createdAt: string;
|
|
1469
|
+
updatedAt: string;
|
|
1443
1470
|
blacklistReason?: string | null | undefined;
|
|
1444
1471
|
lastUpdatedBy?: {
|
|
1445
1472
|
id: string;
|
|
@@ -1451,14 +1478,15 @@ export declare const clientsContractRouter: {
|
|
|
1451
1478
|
agentId: string;
|
|
1452
1479
|
} | null | undefined;
|
|
1453
1480
|
}, {
|
|
1454
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1455
1481
|
id: string;
|
|
1456
|
-
|
|
1457
|
-
updatedAt: string | Date;
|
|
1482
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1458
1483
|
name: string;
|
|
1459
|
-
crn: string;
|
|
1484
|
+
crn: string | null;
|
|
1460
1485
|
govLink: string;
|
|
1486
|
+
soleTrader: boolean;
|
|
1461
1487
|
director: string;
|
|
1488
|
+
createdAt: string | Date;
|
|
1489
|
+
updatedAt: string | Date;
|
|
1462
1490
|
blacklistReason?: string | null | undefined;
|
|
1463
1491
|
lastUpdatedBy?: {
|
|
1464
1492
|
id: string;
|