@dakkitor/api-contracts 1.9.1 → 1.9.3
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/abilities.contract.d.ts +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +9230 -4114
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +362 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -11,13 +11,13 @@ export declare const ClientUserSchema: z.ZodObject<{
|
|
|
11
11
|
lastName: z.ZodString;
|
|
12
12
|
email: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
id: string;
|
|
15
14
|
email: string;
|
|
15
|
+
id: string;
|
|
16
16
|
lastName: string;
|
|
17
17
|
firstName: string;
|
|
18
18
|
}, {
|
|
19
|
-
id: string;
|
|
20
19
|
email: string;
|
|
20
|
+
id: string;
|
|
21
21
|
lastName: string;
|
|
22
22
|
firstName: string;
|
|
23
23
|
}>;
|
|
@@ -50,13 +50,13 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
50
50
|
lastName: z.ZodString;
|
|
51
51
|
email: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
id: string;
|
|
54
53
|
email: string;
|
|
54
|
+
id: string;
|
|
55
55
|
lastName: string;
|
|
56
56
|
firstName: string;
|
|
57
57
|
}, {
|
|
58
|
-
id: string;
|
|
59
58
|
email: string;
|
|
59
|
+
id: string;
|
|
60
60
|
lastName: string;
|
|
61
61
|
firstName: string;
|
|
62
62
|
}>>>;
|
|
@@ -70,45 +70,45 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
70
70
|
agentId: string;
|
|
71
71
|
}>>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
74
|
-
id: string;
|
|
75
73
|
name: string;
|
|
76
|
-
updatedAt: string;
|
|
77
74
|
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
id: string;
|
|
77
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
78
78
|
crn: string | null;
|
|
79
79
|
govLink: string | null;
|
|
80
|
-
director: string;
|
|
81
80
|
soleTrader: boolean;
|
|
81
|
+
director: string;
|
|
82
82
|
blacklistReason?: string | null | undefined;
|
|
83
|
-
agentClientLinks?: {
|
|
84
|
-
agentId: string;
|
|
85
|
-
} | null | undefined;
|
|
86
83
|
lastUpdatedBy?: {
|
|
87
|
-
id: string;
|
|
88
84
|
email: string;
|
|
85
|
+
id: string;
|
|
89
86
|
lastName: string;
|
|
90
87
|
firstName: string;
|
|
91
88
|
} | null | undefined;
|
|
89
|
+
agentClientLinks?: {
|
|
90
|
+
agentId: string;
|
|
91
|
+
} | null | undefined;
|
|
92
92
|
}, {
|
|
93
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
94
|
-
id: string;
|
|
95
93
|
name: string;
|
|
96
|
-
updatedAt: string | Date;
|
|
97
94
|
createdAt: string | Date;
|
|
95
|
+
updatedAt: string | Date;
|
|
96
|
+
id: string;
|
|
97
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
98
98
|
crn: string | null;
|
|
99
99
|
govLink: string | null;
|
|
100
|
-
director: string;
|
|
101
100
|
soleTrader: boolean;
|
|
101
|
+
director: string;
|
|
102
102
|
blacklistReason?: string | null | undefined;
|
|
103
|
-
agentClientLinks?: {
|
|
104
|
-
agentId: string;
|
|
105
|
-
} | null | undefined;
|
|
106
103
|
lastUpdatedBy?: {
|
|
107
|
-
id: string;
|
|
108
104
|
email: string;
|
|
105
|
+
id: string;
|
|
109
106
|
lastName: string;
|
|
110
107
|
firstName: string;
|
|
111
108
|
} | null | undefined;
|
|
109
|
+
agentClientLinks?: {
|
|
110
|
+
agentId: string;
|
|
111
|
+
} | null | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
/**
|
|
114
114
|
* Base schema for CreateClient without refinements.
|
|
@@ -121,8 +121,8 @@ export declare const CreateClientBaseSchema: z.ZodObject<{
|
|
|
121
121
|
govLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
name: string;
|
|
124
|
-
director: string;
|
|
125
124
|
soleTrader: boolean;
|
|
125
|
+
director: string;
|
|
126
126
|
govLink?: string | null | undefined;
|
|
127
127
|
}, {
|
|
128
128
|
name: string;
|
|
@@ -162,8 +162,8 @@ export declare const CreateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
162
162
|
govLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
name: string;
|
|
165
|
-
director: string;
|
|
166
165
|
soleTrader: boolean;
|
|
166
|
+
director: string;
|
|
167
167
|
govLink?: string | null | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
name: string;
|
|
@@ -172,8 +172,8 @@ export declare const CreateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
172
172
|
soleTrader?: boolean | undefined;
|
|
173
173
|
}>, {
|
|
174
174
|
name: string;
|
|
175
|
-
director: string;
|
|
176
175
|
soleTrader: boolean;
|
|
176
|
+
director: string;
|
|
177
177
|
govLink?: string | null | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
name: string;
|
|
@@ -192,17 +192,17 @@ export declare const UpdateClientBaseSchema: z.ZodObject<{
|
|
|
192
192
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
193
193
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
196
195
|
name?: string | undefined;
|
|
196
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
197
|
+
blacklistReason?: string | null | undefined;
|
|
197
198
|
govLink?: string | null | undefined;
|
|
198
199
|
director?: string | undefined;
|
|
199
|
-
blacklistReason?: string | null | undefined;
|
|
200
200
|
}, {
|
|
201
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
202
201
|
name?: string | undefined;
|
|
202
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
203
|
+
blacklistReason?: string | null | undefined;
|
|
203
204
|
govLink?: string | null | undefined;
|
|
204
205
|
director?: string | undefined;
|
|
205
|
-
blacklistReason?: string | null | undefined;
|
|
206
206
|
}>;
|
|
207
207
|
/**
|
|
208
208
|
* Conditional validation rules for UpdateClient.
|
|
@@ -236,29 +236,29 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
236
236
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
237
237
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
240
239
|
name?: string | undefined;
|
|
240
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
241
|
+
blacklistReason?: string | null | undefined;
|
|
241
242
|
govLink?: string | null | undefined;
|
|
242
243
|
director?: string | undefined;
|
|
243
|
-
blacklistReason?: string | null | undefined;
|
|
244
244
|
}, {
|
|
245
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
246
245
|
name?: string | undefined;
|
|
246
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
247
|
+
blacklistReason?: string | null | undefined;
|
|
247
248
|
govLink?: string | null | undefined;
|
|
248
249
|
director?: string | undefined;
|
|
249
|
-
blacklistReason?: string | null | undefined;
|
|
250
250
|
}>, {
|
|
251
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
252
251
|
name?: string | undefined;
|
|
252
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
253
|
+
blacklistReason?: string | null | undefined;
|
|
253
254
|
govLink?: string | null | undefined;
|
|
254
255
|
director?: string | undefined;
|
|
255
|
-
blacklistReason?: string | null | undefined;
|
|
256
256
|
}, {
|
|
257
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
258
257
|
name?: string | undefined;
|
|
258
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
259
|
+
blacklistReason?: string | null | undefined;
|
|
259
260
|
govLink?: string | null | undefined;
|
|
260
261
|
director?: string | undefined;
|
|
261
|
-
blacklistReason?: string | null | undefined;
|
|
262
262
|
}>;
|
|
263
263
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
264
264
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -291,68 +291,68 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
291
291
|
field: z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>;
|
|
292
292
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
field: "name" | "
|
|
294
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
295
295
|
order: "ASC" | "DESC";
|
|
296
296
|
}, {
|
|
297
|
-
field: "name" | "
|
|
297
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
298
298
|
order: "ASC" | "DESC";
|
|
299
299
|
}>, "many">>>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
page: number;
|
|
302
302
|
limit: number;
|
|
303
|
-
|
|
303
|
+
name?: string | null | undefined;
|
|
304
304
|
sort?: {
|
|
305
|
-
field: "name" | "
|
|
305
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
306
306
|
order: "ASC" | "DESC";
|
|
307
307
|
}[] | null | undefined;
|
|
308
|
-
|
|
309
|
-
updatedAt?: {
|
|
308
|
+
createdAt?: {
|
|
310
309
|
from?: string | null | undefined;
|
|
311
310
|
to?: string | null | undefined;
|
|
312
311
|
} | null | undefined;
|
|
313
|
-
|
|
312
|
+
updatedAt?: {
|
|
314
313
|
from?: string | null | undefined;
|
|
315
314
|
to?: string | null | undefined;
|
|
316
315
|
} | null | undefined;
|
|
316
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
317
317
|
director?: string | null | undefined;
|
|
318
318
|
}, {
|
|
319
|
-
|
|
319
|
+
name?: string | null | undefined;
|
|
320
320
|
sort?: {
|
|
321
|
-
field: "name" | "
|
|
321
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
322
322
|
order: "ASC" | "DESC";
|
|
323
323
|
}[] | null | undefined;
|
|
324
|
-
|
|
325
|
-
limit?: number | undefined;
|
|
326
|
-
name?: string | null | undefined;
|
|
327
|
-
updatedAt?: {
|
|
324
|
+
createdAt?: {
|
|
328
325
|
from?: string | null | undefined;
|
|
329
326
|
to?: string | null | undefined;
|
|
330
327
|
} | null | undefined;
|
|
331
|
-
|
|
328
|
+
updatedAt?: {
|
|
332
329
|
from?: string | null | undefined;
|
|
333
330
|
to?: string | null | undefined;
|
|
334
331
|
} | null | undefined;
|
|
332
|
+
page?: number | undefined;
|
|
333
|
+
limit?: number | undefined;
|
|
334
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
335
335
|
director?: string | null | undefined;
|
|
336
336
|
}>;
|
|
337
337
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
338
338
|
id: z.ZodString;
|
|
339
339
|
name: z.ZodString;
|
|
340
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
id: string;
|
|
342
341
|
name: string;
|
|
343
|
-
}, {
|
|
344
342
|
id: string;
|
|
343
|
+
}, {
|
|
345
344
|
name: string;
|
|
345
|
+
id: string;
|
|
346
346
|
}>;
|
|
347
347
|
export declare const ClientAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
348
348
|
id: z.ZodString;
|
|
349
349
|
name: z.ZodString;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
id: string;
|
|
352
351
|
name: string;
|
|
353
|
-
}, {
|
|
354
352
|
id: string;
|
|
353
|
+
}, {
|
|
355
354
|
name: string;
|
|
355
|
+
id: string;
|
|
356
356
|
}>, "many">;
|
|
357
357
|
/**
|
|
358
358
|
* Schema for client list items where govLink and lastUpdatedBy.email
|
|
@@ -373,13 +373,13 @@ export declare const ClientListItemSchema: z.ZodObject<Omit<{
|
|
|
373
373
|
lastName: z.ZodString;
|
|
374
374
|
email: z.ZodString;
|
|
375
375
|
}, "strip", z.ZodTypeAny, {
|
|
376
|
-
id: string;
|
|
377
376
|
email: string;
|
|
377
|
+
id: string;
|
|
378
378
|
lastName: string;
|
|
379
379
|
firstName: string;
|
|
380
380
|
}, {
|
|
381
|
-
id: string;
|
|
382
381
|
email: string;
|
|
382
|
+
id: string;
|
|
383
383
|
lastName: string;
|
|
384
384
|
firstName: string;
|
|
385
385
|
}>>>;
|
|
@@ -408,43 +408,43 @@ export declare const ClientListItemSchema: z.ZodObject<Omit<{
|
|
|
408
408
|
firstName: string;
|
|
409
409
|
}>>>;
|
|
410
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
412
|
-
id: string;
|
|
413
411
|
name: string;
|
|
414
|
-
updatedAt: string;
|
|
415
412
|
createdAt: string;
|
|
413
|
+
updatedAt: string;
|
|
414
|
+
id: string;
|
|
415
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
416
416
|
crn: string | null;
|
|
417
|
-
director: string;
|
|
418
417
|
soleTrader: boolean;
|
|
419
|
-
|
|
418
|
+
director: string;
|
|
420
419
|
blacklistReason?: string | null | undefined;
|
|
421
|
-
|
|
422
|
-
agentId: string;
|
|
423
|
-
} | null | undefined;
|
|
420
|
+
govLink?: string | null | undefined;
|
|
424
421
|
lastUpdatedBy?: {
|
|
425
422
|
id: string;
|
|
426
423
|
lastName: string;
|
|
427
424
|
firstName: string;
|
|
428
425
|
} | null | undefined;
|
|
426
|
+
agentClientLinks?: {
|
|
427
|
+
agentId: string;
|
|
428
|
+
} | null | undefined;
|
|
429
429
|
}, {
|
|
430
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
431
|
-
id: string;
|
|
432
430
|
name: string;
|
|
433
|
-
updatedAt: string | Date;
|
|
434
431
|
createdAt: string | Date;
|
|
432
|
+
updatedAt: string | Date;
|
|
433
|
+
id: string;
|
|
434
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
435
435
|
crn: string | null;
|
|
436
|
-
director: string;
|
|
437
436
|
soleTrader: boolean;
|
|
438
|
-
|
|
437
|
+
director: string;
|
|
439
438
|
blacklistReason?: string | null | undefined;
|
|
440
|
-
|
|
441
|
-
agentId: string;
|
|
442
|
-
} | null | undefined;
|
|
439
|
+
govLink?: string | null | undefined;
|
|
443
440
|
lastUpdatedBy?: {
|
|
444
441
|
id: string;
|
|
445
442
|
lastName: string;
|
|
446
443
|
firstName: string;
|
|
447
444
|
} | null | undefined;
|
|
445
|
+
agentClientLinks?: {
|
|
446
|
+
agentId: string;
|
|
447
|
+
} | null | undefined;
|
|
448
448
|
}>;
|
|
449
449
|
export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
450
450
|
items: z.ZodArray<z.ZodObject<Omit<{
|
|
@@ -462,13 +462,13 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
462
462
|
lastName: z.ZodString;
|
|
463
463
|
email: z.ZodString;
|
|
464
464
|
}, "strip", z.ZodTypeAny, {
|
|
465
|
-
id: string;
|
|
466
465
|
email: string;
|
|
466
|
+
id: string;
|
|
467
467
|
lastName: string;
|
|
468
468
|
firstName: string;
|
|
469
469
|
}, {
|
|
470
|
-
id: string;
|
|
471
470
|
email: string;
|
|
471
|
+
id: string;
|
|
472
472
|
lastName: string;
|
|
473
473
|
firstName: string;
|
|
474
474
|
}>>>;
|
|
@@ -497,43 +497,43 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
497
497
|
firstName: string;
|
|
498
498
|
}>>>;
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
501
|
-
id: string;
|
|
502
500
|
name: string;
|
|
503
|
-
updatedAt: string;
|
|
504
501
|
createdAt: string;
|
|
502
|
+
updatedAt: string;
|
|
503
|
+
id: string;
|
|
504
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
505
505
|
crn: string | null;
|
|
506
|
-
director: string;
|
|
507
506
|
soleTrader: boolean;
|
|
508
|
-
|
|
507
|
+
director: string;
|
|
509
508
|
blacklistReason?: string | null | undefined;
|
|
510
|
-
|
|
511
|
-
agentId: string;
|
|
512
|
-
} | null | undefined;
|
|
509
|
+
govLink?: string | null | undefined;
|
|
513
510
|
lastUpdatedBy?: {
|
|
514
511
|
id: string;
|
|
515
512
|
lastName: string;
|
|
516
513
|
firstName: string;
|
|
517
514
|
} | null | undefined;
|
|
515
|
+
agentClientLinks?: {
|
|
516
|
+
agentId: string;
|
|
517
|
+
} | null | undefined;
|
|
518
518
|
}, {
|
|
519
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
520
|
-
id: string;
|
|
521
519
|
name: string;
|
|
522
|
-
updatedAt: string | Date;
|
|
523
520
|
createdAt: string | Date;
|
|
521
|
+
updatedAt: string | Date;
|
|
522
|
+
id: string;
|
|
523
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
524
524
|
crn: string | null;
|
|
525
|
-
director: string;
|
|
526
525
|
soleTrader: boolean;
|
|
527
|
-
|
|
526
|
+
director: string;
|
|
528
527
|
blacklistReason?: string | null | undefined;
|
|
529
|
-
|
|
530
|
-
agentId: string;
|
|
531
|
-
} | null | undefined;
|
|
528
|
+
govLink?: string | null | undefined;
|
|
532
529
|
lastUpdatedBy?: {
|
|
533
530
|
id: string;
|
|
534
531
|
lastName: string;
|
|
535
532
|
firstName: string;
|
|
536
533
|
} | null | undefined;
|
|
534
|
+
agentClientLinks?: {
|
|
535
|
+
agentId: string;
|
|
536
|
+
} | null | undefined;
|
|
537
537
|
}>, "many">;
|
|
538
538
|
totalCount: z.ZodNumber;
|
|
539
539
|
limit: z.ZodNumber;
|
|
@@ -543,24 +543,24 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
543
543
|
}, "strip", z.ZodTypeAny, {
|
|
544
544
|
limit: number;
|
|
545
545
|
items: {
|
|
546
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
547
|
-
id: string;
|
|
548
546
|
name: string;
|
|
549
|
-
updatedAt: string;
|
|
550
547
|
createdAt: string;
|
|
548
|
+
updatedAt: string;
|
|
549
|
+
id: string;
|
|
550
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
551
551
|
crn: string | null;
|
|
552
|
-
director: string;
|
|
553
552
|
soleTrader: boolean;
|
|
554
|
-
|
|
553
|
+
director: string;
|
|
555
554
|
blacklistReason?: string | null | undefined;
|
|
556
|
-
|
|
557
|
-
agentId: string;
|
|
558
|
-
} | null | undefined;
|
|
555
|
+
govLink?: string | null | undefined;
|
|
559
556
|
lastUpdatedBy?: {
|
|
560
557
|
id: string;
|
|
561
558
|
lastName: string;
|
|
562
559
|
firstName: string;
|
|
563
560
|
} | null | undefined;
|
|
561
|
+
agentClientLinks?: {
|
|
562
|
+
agentId: string;
|
|
563
|
+
} | null | undefined;
|
|
564
564
|
}[];
|
|
565
565
|
totalCount: number;
|
|
566
566
|
skip: number;
|
|
@@ -569,24 +569,24 @@ export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
|
569
569
|
}, {
|
|
570
570
|
limit: number;
|
|
571
571
|
items: {
|
|
572
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
573
|
-
id: string;
|
|
574
572
|
name: string;
|
|
575
|
-
updatedAt: string | Date;
|
|
576
573
|
createdAt: string | Date;
|
|
574
|
+
updatedAt: string | Date;
|
|
575
|
+
id: string;
|
|
576
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
577
577
|
crn: string | null;
|
|
578
|
-
director: string;
|
|
579
578
|
soleTrader: boolean;
|
|
580
|
-
|
|
579
|
+
director: string;
|
|
581
580
|
blacklistReason?: string | null | undefined;
|
|
582
|
-
|
|
583
|
-
agentId: string;
|
|
584
|
-
} | null | undefined;
|
|
581
|
+
govLink?: string | null | undefined;
|
|
585
582
|
lastUpdatedBy?: {
|
|
586
583
|
id: string;
|
|
587
584
|
lastName: string;
|
|
588
585
|
firstName: string;
|
|
589
586
|
} | null | undefined;
|
|
587
|
+
agentClientLinks?: {
|
|
588
|
+
agentId: string;
|
|
589
|
+
} | null | undefined;
|
|
590
590
|
}[];
|
|
591
591
|
totalCount: number;
|
|
592
592
|
skip: number;
|
|
@@ -621,8 +621,8 @@ export declare const clientsContractRouter: {
|
|
|
621
621
|
govLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
622
|
}, "strip", z.ZodTypeAny, {
|
|
623
623
|
name: string;
|
|
624
|
-
director: string;
|
|
625
624
|
soleTrader: boolean;
|
|
625
|
+
director: string;
|
|
626
626
|
govLink?: string | null | undefined;
|
|
627
627
|
}, {
|
|
628
628
|
name: string;
|
|
@@ -631,8 +631,8 @@ export declare const clientsContractRouter: {
|
|
|
631
631
|
soleTrader?: boolean | undefined;
|
|
632
632
|
}>, {
|
|
633
633
|
name: string;
|
|
634
|
-
director: string;
|
|
635
634
|
soleTrader: boolean;
|
|
635
|
+
director: string;
|
|
636
636
|
govLink?: string | null | undefined;
|
|
637
637
|
}, {
|
|
638
638
|
name: string;
|
|
@@ -642,7 +642,7 @@ export declare const clientsContractRouter: {
|
|
|
642
642
|
}>;
|
|
643
643
|
path: "/v2/clients";
|
|
644
644
|
responses: {
|
|
645
|
-
|
|
645
|
+
401: z.ZodObject<{
|
|
646
646
|
statusCode: z.ZodNumber;
|
|
647
647
|
message: z.ZodString;
|
|
648
648
|
code: z.ZodString;
|
|
@@ -651,23 +651,23 @@ export declare const clientsContractRouter: {
|
|
|
651
651
|
path: z.ZodString;
|
|
652
652
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
653
653
|
}, "strip", z.ZodTypeAny, {
|
|
654
|
-
message: string;
|
|
655
654
|
code: string;
|
|
656
655
|
path: string;
|
|
656
|
+
message: string;
|
|
657
657
|
statusCode: number;
|
|
658
658
|
timestamp: string;
|
|
659
659
|
details?: unknown;
|
|
660
660
|
correlationId?: string | undefined;
|
|
661
661
|
}, {
|
|
662
|
-
message: string;
|
|
663
662
|
code: string;
|
|
664
663
|
path: string;
|
|
664
|
+
message: string;
|
|
665
665
|
statusCode: number;
|
|
666
666
|
timestamp: string;
|
|
667
667
|
details?: unknown;
|
|
668
668
|
correlationId?: string | undefined;
|
|
669
669
|
}>;
|
|
670
|
-
|
|
670
|
+
400: z.ZodObject<{
|
|
671
671
|
statusCode: z.ZodNumber;
|
|
672
672
|
message: z.ZodString;
|
|
673
673
|
code: z.ZodString;
|
|
@@ -676,17 +676,17 @@ export declare const clientsContractRouter: {
|
|
|
676
676
|
path: z.ZodString;
|
|
677
677
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
678
678
|
}, "strip", z.ZodTypeAny, {
|
|
679
|
-
message: string;
|
|
680
679
|
code: string;
|
|
681
680
|
path: string;
|
|
681
|
+
message: string;
|
|
682
682
|
statusCode: number;
|
|
683
683
|
timestamp: string;
|
|
684
684
|
details?: unknown;
|
|
685
685
|
correlationId?: string | undefined;
|
|
686
686
|
}, {
|
|
687
|
-
message: string;
|
|
688
687
|
code: string;
|
|
689
688
|
path: string;
|
|
689
|
+
message: string;
|
|
690
690
|
statusCode: number;
|
|
691
691
|
timestamp: string;
|
|
692
692
|
details?: unknown;
|
|
@@ -701,17 +701,17 @@ export declare const clientsContractRouter: {
|
|
|
701
701
|
path: z.ZodString;
|
|
702
702
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
|
-
message: string;
|
|
705
704
|
code: string;
|
|
706
705
|
path: string;
|
|
706
|
+
message: string;
|
|
707
707
|
statusCode: number;
|
|
708
708
|
timestamp: string;
|
|
709
709
|
details?: unknown;
|
|
710
710
|
correlationId?: string | undefined;
|
|
711
711
|
}, {
|
|
712
|
-
message: string;
|
|
713
712
|
code: string;
|
|
714
713
|
path: string;
|
|
714
|
+
message: string;
|
|
715
715
|
statusCode: number;
|
|
716
716
|
timestamp: string;
|
|
717
717
|
details?: unknown;
|
|
@@ -726,17 +726,17 @@ export declare const clientsContractRouter: {
|
|
|
726
726
|
path: z.ZodString;
|
|
727
727
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
message: string;
|
|
730
729
|
code: string;
|
|
731
730
|
path: string;
|
|
731
|
+
message: string;
|
|
732
732
|
statusCode: number;
|
|
733
733
|
timestamp: string;
|
|
734
734
|
details?: unknown;
|
|
735
735
|
correlationId?: string | undefined;
|
|
736
736
|
}, {
|
|
737
|
-
message: string;
|
|
738
737
|
code: string;
|
|
739
738
|
path: string;
|
|
739
|
+
message: string;
|
|
740
740
|
statusCode: number;
|
|
741
741
|
timestamp: string;
|
|
742
742
|
details?: unknown;
|
|
@@ -757,13 +757,13 @@ export declare const clientsContractRouter: {
|
|
|
757
757
|
lastName: z.ZodString;
|
|
758
758
|
email: z.ZodString;
|
|
759
759
|
}, "strip", z.ZodTypeAny, {
|
|
760
|
-
id: string;
|
|
761
760
|
email: string;
|
|
761
|
+
id: string;
|
|
762
762
|
lastName: string;
|
|
763
763
|
firstName: string;
|
|
764
764
|
}, {
|
|
765
|
-
id: string;
|
|
766
765
|
email: string;
|
|
766
|
+
id: string;
|
|
767
767
|
lastName: string;
|
|
768
768
|
firstName: string;
|
|
769
769
|
}>>>;
|
|
@@ -777,45 +777,45 @@ export declare const clientsContractRouter: {
|
|
|
777
777
|
agentId: string;
|
|
778
778
|
}>>>;
|
|
779
779
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
781
|
-
id: string;
|
|
782
780
|
name: string;
|
|
783
|
-
updatedAt: string;
|
|
784
781
|
createdAt: string;
|
|
782
|
+
updatedAt: string;
|
|
783
|
+
id: string;
|
|
784
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
785
785
|
crn: string | null;
|
|
786
786
|
govLink: string | null;
|
|
787
|
-
director: string;
|
|
788
787
|
soleTrader: boolean;
|
|
788
|
+
director: string;
|
|
789
789
|
blacklistReason?: string | null | undefined;
|
|
790
|
-
agentClientLinks?: {
|
|
791
|
-
agentId: string;
|
|
792
|
-
} | null | undefined;
|
|
793
790
|
lastUpdatedBy?: {
|
|
794
|
-
id: string;
|
|
795
791
|
email: string;
|
|
792
|
+
id: string;
|
|
796
793
|
lastName: string;
|
|
797
794
|
firstName: string;
|
|
798
795
|
} | null | undefined;
|
|
796
|
+
agentClientLinks?: {
|
|
797
|
+
agentId: string;
|
|
798
|
+
} | null | undefined;
|
|
799
799
|
}, {
|
|
800
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
801
|
-
id: string;
|
|
802
800
|
name: string;
|
|
803
|
-
updatedAt: string | Date;
|
|
804
801
|
createdAt: string | Date;
|
|
802
|
+
updatedAt: string | Date;
|
|
803
|
+
id: string;
|
|
804
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
805
805
|
crn: string | null;
|
|
806
806
|
govLink: string | null;
|
|
807
|
-
director: string;
|
|
808
807
|
soleTrader: boolean;
|
|
808
|
+
director: string;
|
|
809
809
|
blacklistReason?: string | null | undefined;
|
|
810
|
-
agentClientLinks?: {
|
|
811
|
-
agentId: string;
|
|
812
|
-
} | null | undefined;
|
|
813
810
|
lastUpdatedBy?: {
|
|
814
|
-
id: string;
|
|
815
811
|
email: string;
|
|
812
|
+
id: string;
|
|
816
813
|
lastName: string;
|
|
817
814
|
firstName: string;
|
|
818
815
|
} | null | undefined;
|
|
816
|
+
agentClientLinks?: {
|
|
817
|
+
agentId: string;
|
|
818
|
+
} | null | undefined;
|
|
819
819
|
}>;
|
|
820
820
|
409: z.ZodObject<{
|
|
821
821
|
statusCode: z.ZodNumber;
|
|
@@ -826,17 +826,17 @@ export declare const clientsContractRouter: {
|
|
|
826
826
|
path: z.ZodString;
|
|
827
827
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
828
828
|
}, "strip", z.ZodTypeAny, {
|
|
829
|
-
message: string;
|
|
830
829
|
code: string;
|
|
831
830
|
path: string;
|
|
831
|
+
message: string;
|
|
832
832
|
statusCode: number;
|
|
833
833
|
timestamp: string;
|
|
834
834
|
details?: unknown;
|
|
835
835
|
correlationId?: string | undefined;
|
|
836
836
|
}, {
|
|
837
|
-
message: string;
|
|
838
837
|
code: string;
|
|
839
838
|
path: string;
|
|
839
|
+
message: string;
|
|
840
840
|
statusCode: number;
|
|
841
841
|
timestamp: string;
|
|
842
842
|
details?: unknown;
|
|
@@ -876,47 +876,47 @@ export declare const clientsContractRouter: {
|
|
|
876
876
|
field: z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>;
|
|
877
877
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
878
878
|
}, "strip", z.ZodTypeAny, {
|
|
879
|
-
field: "name" | "
|
|
879
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
880
880
|
order: "ASC" | "DESC";
|
|
881
881
|
}, {
|
|
882
|
-
field: "name" | "
|
|
882
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
883
883
|
order: "ASC" | "DESC";
|
|
884
884
|
}>, "many">>>;
|
|
885
885
|
}, "strip", z.ZodTypeAny, {
|
|
886
886
|
page: number;
|
|
887
887
|
limit: number;
|
|
888
|
-
|
|
888
|
+
name?: string | null | undefined;
|
|
889
889
|
sort?: {
|
|
890
|
-
field: "name" | "
|
|
890
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
891
891
|
order: "ASC" | "DESC";
|
|
892
892
|
}[] | null | undefined;
|
|
893
|
-
|
|
894
|
-
updatedAt?: {
|
|
893
|
+
createdAt?: {
|
|
895
894
|
from?: string | null | undefined;
|
|
896
895
|
to?: string | null | undefined;
|
|
897
896
|
} | null | undefined;
|
|
898
|
-
|
|
897
|
+
updatedAt?: {
|
|
899
898
|
from?: string | null | undefined;
|
|
900
899
|
to?: string | null | undefined;
|
|
901
900
|
} | null | undefined;
|
|
901
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
902
902
|
director?: string | null | undefined;
|
|
903
903
|
}, {
|
|
904
|
-
|
|
904
|
+
name?: string | null | undefined;
|
|
905
905
|
sort?: {
|
|
906
|
-
field: "name" | "
|
|
906
|
+
field: "name" | "createdAt" | "updatedAt" | "director";
|
|
907
907
|
order: "ASC" | "DESC";
|
|
908
908
|
}[] | null | undefined;
|
|
909
|
-
|
|
910
|
-
limit?: number | undefined;
|
|
911
|
-
name?: string | null | undefined;
|
|
912
|
-
updatedAt?: {
|
|
909
|
+
createdAt?: {
|
|
913
910
|
from?: string | null | undefined;
|
|
914
911
|
to?: string | null | undefined;
|
|
915
912
|
} | null | undefined;
|
|
916
|
-
|
|
913
|
+
updatedAt?: {
|
|
917
914
|
from?: string | null | undefined;
|
|
918
915
|
to?: string | null | undefined;
|
|
919
916
|
} | null | undefined;
|
|
917
|
+
page?: number | undefined;
|
|
918
|
+
limit?: number | undefined;
|
|
919
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | null | undefined;
|
|
920
920
|
director?: string | null | undefined;
|
|
921
921
|
}>;
|
|
922
922
|
metadata: {
|
|
@@ -929,7 +929,7 @@ export declare const clientsContractRouter: {
|
|
|
929
929
|
method: "GET";
|
|
930
930
|
path: "/v2/clients";
|
|
931
931
|
responses: {
|
|
932
|
-
|
|
932
|
+
401: z.ZodObject<{
|
|
933
933
|
statusCode: z.ZodNumber;
|
|
934
934
|
message: z.ZodString;
|
|
935
935
|
code: z.ZodString;
|
|
@@ -938,23 +938,23 @@ export declare const clientsContractRouter: {
|
|
|
938
938
|
path: z.ZodString;
|
|
939
939
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
940
940
|
}, "strip", z.ZodTypeAny, {
|
|
941
|
-
message: string;
|
|
942
941
|
code: string;
|
|
943
942
|
path: string;
|
|
943
|
+
message: string;
|
|
944
944
|
statusCode: number;
|
|
945
945
|
timestamp: string;
|
|
946
946
|
details?: unknown;
|
|
947
947
|
correlationId?: string | undefined;
|
|
948
948
|
}, {
|
|
949
|
-
message: string;
|
|
950
949
|
code: string;
|
|
951
950
|
path: string;
|
|
951
|
+
message: string;
|
|
952
952
|
statusCode: number;
|
|
953
953
|
timestamp: string;
|
|
954
954
|
details?: unknown;
|
|
955
955
|
correlationId?: string | undefined;
|
|
956
956
|
}>;
|
|
957
|
-
|
|
957
|
+
400: z.ZodObject<{
|
|
958
958
|
statusCode: z.ZodNumber;
|
|
959
959
|
message: z.ZodString;
|
|
960
960
|
code: z.ZodString;
|
|
@@ -963,17 +963,17 @@ export declare const clientsContractRouter: {
|
|
|
963
963
|
path: z.ZodString;
|
|
964
964
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
965
965
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
-
message: string;
|
|
967
966
|
code: string;
|
|
968
967
|
path: string;
|
|
968
|
+
message: string;
|
|
969
969
|
statusCode: number;
|
|
970
970
|
timestamp: string;
|
|
971
971
|
details?: unknown;
|
|
972
972
|
correlationId?: string | undefined;
|
|
973
973
|
}, {
|
|
974
|
-
message: string;
|
|
975
974
|
code: string;
|
|
976
975
|
path: string;
|
|
976
|
+
message: string;
|
|
977
977
|
statusCode: number;
|
|
978
978
|
timestamp: string;
|
|
979
979
|
details?: unknown;
|
|
@@ -988,17 +988,17 @@ export declare const clientsContractRouter: {
|
|
|
988
988
|
path: z.ZodString;
|
|
989
989
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
990
990
|
}, "strip", z.ZodTypeAny, {
|
|
991
|
-
message: string;
|
|
992
991
|
code: string;
|
|
993
992
|
path: string;
|
|
993
|
+
message: string;
|
|
994
994
|
statusCode: number;
|
|
995
995
|
timestamp: string;
|
|
996
996
|
details?: unknown;
|
|
997
997
|
correlationId?: string | undefined;
|
|
998
998
|
}, {
|
|
999
|
-
message: string;
|
|
1000
999
|
code: string;
|
|
1001
1000
|
path: string;
|
|
1001
|
+
message: string;
|
|
1002
1002
|
statusCode: number;
|
|
1003
1003
|
timestamp: string;
|
|
1004
1004
|
details?: unknown;
|
|
@@ -1013,17 +1013,17 @@ export declare const clientsContractRouter: {
|
|
|
1013
1013
|
path: z.ZodString;
|
|
1014
1014
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1015
1015
|
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
message: string;
|
|
1017
1016
|
code: string;
|
|
1018
1017
|
path: string;
|
|
1018
|
+
message: string;
|
|
1019
1019
|
statusCode: number;
|
|
1020
1020
|
timestamp: string;
|
|
1021
1021
|
details?: unknown;
|
|
1022
1022
|
correlationId?: string | undefined;
|
|
1023
1023
|
}, {
|
|
1024
|
-
message: string;
|
|
1025
1024
|
code: string;
|
|
1026
1025
|
path: string;
|
|
1026
|
+
message: string;
|
|
1027
1027
|
statusCode: number;
|
|
1028
1028
|
timestamp: string;
|
|
1029
1029
|
details?: unknown;
|
|
@@ -1045,13 +1045,13 @@ export declare const clientsContractRouter: {
|
|
|
1045
1045
|
lastName: z.ZodString;
|
|
1046
1046
|
email: z.ZodString;
|
|
1047
1047
|
}, "strip", z.ZodTypeAny, {
|
|
1048
|
-
id: string;
|
|
1049
1048
|
email: string;
|
|
1049
|
+
id: string;
|
|
1050
1050
|
lastName: string;
|
|
1051
1051
|
firstName: string;
|
|
1052
1052
|
}, {
|
|
1053
|
-
id: string;
|
|
1054
1053
|
email: string;
|
|
1054
|
+
id: string;
|
|
1055
1055
|
lastName: string;
|
|
1056
1056
|
firstName: string;
|
|
1057
1057
|
}>>>;
|
|
@@ -1080,43 +1080,43 @@ export declare const clientsContractRouter: {
|
|
|
1080
1080
|
firstName: string;
|
|
1081
1081
|
}>>>;
|
|
1082
1082
|
}, "strip", z.ZodTypeAny, {
|
|
1083
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1084
|
-
id: string;
|
|
1085
1083
|
name: string;
|
|
1086
|
-
updatedAt: string;
|
|
1087
1084
|
createdAt: string;
|
|
1085
|
+
updatedAt: string;
|
|
1086
|
+
id: string;
|
|
1087
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1088
1088
|
crn: string | null;
|
|
1089
|
-
director: string;
|
|
1090
1089
|
soleTrader: boolean;
|
|
1091
|
-
|
|
1090
|
+
director: string;
|
|
1092
1091
|
blacklistReason?: string | null | undefined;
|
|
1093
|
-
|
|
1094
|
-
agentId: string;
|
|
1095
|
-
} | null | undefined;
|
|
1092
|
+
govLink?: string | null | undefined;
|
|
1096
1093
|
lastUpdatedBy?: {
|
|
1097
1094
|
id: string;
|
|
1098
1095
|
lastName: string;
|
|
1099
1096
|
firstName: string;
|
|
1100
1097
|
} | null | undefined;
|
|
1098
|
+
agentClientLinks?: {
|
|
1099
|
+
agentId: string;
|
|
1100
|
+
} | null | undefined;
|
|
1101
1101
|
}, {
|
|
1102
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1103
|
-
id: string;
|
|
1104
1102
|
name: string;
|
|
1105
|
-
updatedAt: string | Date;
|
|
1106
1103
|
createdAt: string | Date;
|
|
1104
|
+
updatedAt: string | Date;
|
|
1105
|
+
id: string;
|
|
1106
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1107
1107
|
crn: string | null;
|
|
1108
|
-
director: string;
|
|
1109
1108
|
soleTrader: boolean;
|
|
1110
|
-
|
|
1109
|
+
director: string;
|
|
1111
1110
|
blacklistReason?: string | null | undefined;
|
|
1112
|
-
|
|
1113
|
-
agentId: string;
|
|
1114
|
-
} | null | undefined;
|
|
1111
|
+
govLink?: string | null | undefined;
|
|
1115
1112
|
lastUpdatedBy?: {
|
|
1116
1113
|
id: string;
|
|
1117
1114
|
lastName: string;
|
|
1118
1115
|
firstName: string;
|
|
1119
1116
|
} | null | undefined;
|
|
1117
|
+
agentClientLinks?: {
|
|
1118
|
+
agentId: string;
|
|
1119
|
+
} | null | undefined;
|
|
1120
1120
|
}>, "many">;
|
|
1121
1121
|
totalCount: z.ZodNumber;
|
|
1122
1122
|
limit: z.ZodNumber;
|
|
@@ -1126,24 +1126,24 @@ export declare const clientsContractRouter: {
|
|
|
1126
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1127
1127
|
limit: number;
|
|
1128
1128
|
items: {
|
|
1129
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1130
|
-
id: string;
|
|
1131
1129
|
name: string;
|
|
1132
|
-
updatedAt: string;
|
|
1133
1130
|
createdAt: string;
|
|
1131
|
+
updatedAt: string;
|
|
1132
|
+
id: string;
|
|
1133
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1134
1134
|
crn: string | null;
|
|
1135
|
-
director: string;
|
|
1136
1135
|
soleTrader: boolean;
|
|
1137
|
-
|
|
1136
|
+
director: string;
|
|
1138
1137
|
blacklistReason?: string | null | undefined;
|
|
1139
|
-
|
|
1140
|
-
agentId: string;
|
|
1141
|
-
} | null | undefined;
|
|
1138
|
+
govLink?: string | null | undefined;
|
|
1142
1139
|
lastUpdatedBy?: {
|
|
1143
1140
|
id: string;
|
|
1144
1141
|
lastName: string;
|
|
1145
1142
|
firstName: string;
|
|
1146
1143
|
} | null | undefined;
|
|
1144
|
+
agentClientLinks?: {
|
|
1145
|
+
agentId: string;
|
|
1146
|
+
} | null | undefined;
|
|
1147
1147
|
}[];
|
|
1148
1148
|
totalCount: number;
|
|
1149
1149
|
skip: number;
|
|
@@ -1152,24 +1152,24 @@ export declare const clientsContractRouter: {
|
|
|
1152
1152
|
}, {
|
|
1153
1153
|
limit: number;
|
|
1154
1154
|
items: {
|
|
1155
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1156
|
-
id: string;
|
|
1157
1155
|
name: string;
|
|
1158
|
-
updatedAt: string | Date;
|
|
1159
1156
|
createdAt: string | Date;
|
|
1157
|
+
updatedAt: string | Date;
|
|
1158
|
+
id: string;
|
|
1159
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1160
1160
|
crn: string | null;
|
|
1161
|
-
director: string;
|
|
1162
1161
|
soleTrader: boolean;
|
|
1163
|
-
|
|
1162
|
+
director: string;
|
|
1164
1163
|
blacklistReason?: string | null | undefined;
|
|
1165
|
-
|
|
1166
|
-
agentId: string;
|
|
1167
|
-
} | null | undefined;
|
|
1164
|
+
govLink?: string | null | undefined;
|
|
1168
1165
|
lastUpdatedBy?: {
|
|
1169
1166
|
id: string;
|
|
1170
1167
|
lastName: string;
|
|
1171
1168
|
firstName: string;
|
|
1172
1169
|
} | null | undefined;
|
|
1170
|
+
agentClientLinks?: {
|
|
1171
|
+
agentId: string;
|
|
1172
|
+
} | null | undefined;
|
|
1173
1173
|
}[];
|
|
1174
1174
|
totalCount: number;
|
|
1175
1175
|
skip: number;
|
|
@@ -1199,7 +1199,7 @@ export declare const clientsContractRouter: {
|
|
|
1199
1199
|
method: "GET";
|
|
1200
1200
|
path: "/v2/clients/autocomplete";
|
|
1201
1201
|
responses: {
|
|
1202
|
-
|
|
1202
|
+
401: z.ZodObject<{
|
|
1203
1203
|
statusCode: z.ZodNumber;
|
|
1204
1204
|
message: z.ZodString;
|
|
1205
1205
|
code: z.ZodString;
|
|
@@ -1208,23 +1208,23 @@ export declare const clientsContractRouter: {
|
|
|
1208
1208
|
path: z.ZodString;
|
|
1209
1209
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1210
1210
|
}, "strip", z.ZodTypeAny, {
|
|
1211
|
-
message: string;
|
|
1212
1211
|
code: string;
|
|
1213
1212
|
path: string;
|
|
1213
|
+
message: string;
|
|
1214
1214
|
statusCode: number;
|
|
1215
1215
|
timestamp: string;
|
|
1216
1216
|
details?: unknown;
|
|
1217
1217
|
correlationId?: string | undefined;
|
|
1218
1218
|
}, {
|
|
1219
|
-
message: string;
|
|
1220
1219
|
code: string;
|
|
1221
1220
|
path: string;
|
|
1221
|
+
message: string;
|
|
1222
1222
|
statusCode: number;
|
|
1223
1223
|
timestamp: string;
|
|
1224
1224
|
details?: unknown;
|
|
1225
1225
|
correlationId?: string | undefined;
|
|
1226
1226
|
}>;
|
|
1227
|
-
|
|
1227
|
+
400: z.ZodObject<{
|
|
1228
1228
|
statusCode: z.ZodNumber;
|
|
1229
1229
|
message: z.ZodString;
|
|
1230
1230
|
code: z.ZodString;
|
|
@@ -1233,17 +1233,17 @@ export declare const clientsContractRouter: {
|
|
|
1233
1233
|
path: z.ZodString;
|
|
1234
1234
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
|
-
message: string;
|
|
1237
1236
|
code: string;
|
|
1238
1237
|
path: string;
|
|
1238
|
+
message: string;
|
|
1239
1239
|
statusCode: number;
|
|
1240
1240
|
timestamp: string;
|
|
1241
1241
|
details?: unknown;
|
|
1242
1242
|
correlationId?: string | undefined;
|
|
1243
1243
|
}, {
|
|
1244
|
-
message: string;
|
|
1245
1244
|
code: string;
|
|
1246
1245
|
path: string;
|
|
1246
|
+
message: string;
|
|
1247
1247
|
statusCode: number;
|
|
1248
1248
|
timestamp: string;
|
|
1249
1249
|
details?: unknown;
|
|
@@ -1258,17 +1258,17 @@ export declare const clientsContractRouter: {
|
|
|
1258
1258
|
path: z.ZodString;
|
|
1259
1259
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1260
1260
|
}, "strip", z.ZodTypeAny, {
|
|
1261
|
-
message: string;
|
|
1262
1261
|
code: string;
|
|
1263
1262
|
path: string;
|
|
1263
|
+
message: string;
|
|
1264
1264
|
statusCode: number;
|
|
1265
1265
|
timestamp: string;
|
|
1266
1266
|
details?: unknown;
|
|
1267
1267
|
correlationId?: string | undefined;
|
|
1268
1268
|
}, {
|
|
1269
|
-
message: string;
|
|
1270
1269
|
code: string;
|
|
1271
1270
|
path: string;
|
|
1271
|
+
message: string;
|
|
1272
1272
|
statusCode: number;
|
|
1273
1273
|
timestamp: string;
|
|
1274
1274
|
details?: unknown;
|
|
@@ -1283,17 +1283,17 @@ export declare const clientsContractRouter: {
|
|
|
1283
1283
|
path: z.ZodString;
|
|
1284
1284
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1285
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1286
|
-
message: string;
|
|
1287
1286
|
code: string;
|
|
1288
1287
|
path: string;
|
|
1288
|
+
message: string;
|
|
1289
1289
|
statusCode: number;
|
|
1290
1290
|
timestamp: string;
|
|
1291
1291
|
details?: unknown;
|
|
1292
1292
|
correlationId?: string | undefined;
|
|
1293
1293
|
}, {
|
|
1294
|
-
message: string;
|
|
1295
1294
|
code: string;
|
|
1296
1295
|
path: string;
|
|
1296
|
+
message: string;
|
|
1297
1297
|
statusCode: number;
|
|
1298
1298
|
timestamp: string;
|
|
1299
1299
|
details?: unknown;
|
|
@@ -1303,11 +1303,11 @@ export declare const clientsContractRouter: {
|
|
|
1303
1303
|
id: z.ZodString;
|
|
1304
1304
|
name: z.ZodString;
|
|
1305
1305
|
}, "strip", z.ZodTypeAny, {
|
|
1306
|
-
id: string;
|
|
1307
1306
|
name: string;
|
|
1308
|
-
}, {
|
|
1309
1307
|
id: string;
|
|
1308
|
+
}, {
|
|
1310
1309
|
name: string;
|
|
1310
|
+
id: string;
|
|
1311
1311
|
}>, "many">;
|
|
1312
1312
|
};
|
|
1313
1313
|
};
|
|
@@ -1329,7 +1329,7 @@ export declare const clientsContractRouter: {
|
|
|
1329
1329
|
method: "GET";
|
|
1330
1330
|
path: "/v2/clients/:id";
|
|
1331
1331
|
responses: {
|
|
1332
|
-
|
|
1332
|
+
401: z.ZodObject<{
|
|
1333
1333
|
statusCode: z.ZodNumber;
|
|
1334
1334
|
message: z.ZodString;
|
|
1335
1335
|
code: z.ZodString;
|
|
@@ -1338,23 +1338,23 @@ export declare const clientsContractRouter: {
|
|
|
1338
1338
|
path: z.ZodString;
|
|
1339
1339
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1340
1340
|
}, "strip", z.ZodTypeAny, {
|
|
1341
|
-
message: string;
|
|
1342
1341
|
code: string;
|
|
1343
1342
|
path: string;
|
|
1343
|
+
message: string;
|
|
1344
1344
|
statusCode: number;
|
|
1345
1345
|
timestamp: string;
|
|
1346
1346
|
details?: unknown;
|
|
1347
1347
|
correlationId?: string | undefined;
|
|
1348
1348
|
}, {
|
|
1349
|
-
message: string;
|
|
1350
1349
|
code: string;
|
|
1351
1350
|
path: string;
|
|
1351
|
+
message: string;
|
|
1352
1352
|
statusCode: number;
|
|
1353
1353
|
timestamp: string;
|
|
1354
1354
|
details?: unknown;
|
|
1355
1355
|
correlationId?: string | undefined;
|
|
1356
1356
|
}>;
|
|
1357
|
-
|
|
1357
|
+
400: z.ZodObject<{
|
|
1358
1358
|
statusCode: z.ZodNumber;
|
|
1359
1359
|
message: z.ZodString;
|
|
1360
1360
|
code: z.ZodString;
|
|
@@ -1363,17 +1363,17 @@ export declare const clientsContractRouter: {
|
|
|
1363
1363
|
path: z.ZodString;
|
|
1364
1364
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1365
1365
|
}, "strip", z.ZodTypeAny, {
|
|
1366
|
-
message: string;
|
|
1367
1366
|
code: string;
|
|
1368
1367
|
path: string;
|
|
1368
|
+
message: string;
|
|
1369
1369
|
statusCode: number;
|
|
1370
1370
|
timestamp: string;
|
|
1371
1371
|
details?: unknown;
|
|
1372
1372
|
correlationId?: string | undefined;
|
|
1373
1373
|
}, {
|
|
1374
|
-
message: string;
|
|
1375
1374
|
code: string;
|
|
1376
1375
|
path: string;
|
|
1376
|
+
message: string;
|
|
1377
1377
|
statusCode: number;
|
|
1378
1378
|
timestamp: string;
|
|
1379
1379
|
details?: unknown;
|
|
@@ -1388,17 +1388,17 @@ export declare const clientsContractRouter: {
|
|
|
1388
1388
|
path: z.ZodString;
|
|
1389
1389
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1390
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1391
|
-
message: string;
|
|
1392
1391
|
code: string;
|
|
1393
1392
|
path: string;
|
|
1393
|
+
message: string;
|
|
1394
1394
|
statusCode: number;
|
|
1395
1395
|
timestamp: string;
|
|
1396
1396
|
details?: unknown;
|
|
1397
1397
|
correlationId?: string | undefined;
|
|
1398
1398
|
}, {
|
|
1399
|
-
message: string;
|
|
1400
1399
|
code: string;
|
|
1401
1400
|
path: string;
|
|
1401
|
+
message: string;
|
|
1402
1402
|
statusCode: number;
|
|
1403
1403
|
timestamp: string;
|
|
1404
1404
|
details?: unknown;
|
|
@@ -1413,17 +1413,17 @@ export declare const clientsContractRouter: {
|
|
|
1413
1413
|
path: z.ZodString;
|
|
1414
1414
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1415
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1416
|
-
message: string;
|
|
1417
1416
|
code: string;
|
|
1418
1417
|
path: string;
|
|
1418
|
+
message: string;
|
|
1419
1419
|
statusCode: number;
|
|
1420
1420
|
timestamp: string;
|
|
1421
1421
|
details?: unknown;
|
|
1422
1422
|
correlationId?: string | undefined;
|
|
1423
1423
|
}, {
|
|
1424
|
-
message: string;
|
|
1425
1424
|
code: string;
|
|
1426
1425
|
path: string;
|
|
1426
|
+
message: string;
|
|
1427
1427
|
statusCode: number;
|
|
1428
1428
|
timestamp: string;
|
|
1429
1429
|
details?: unknown;
|
|
@@ -1444,13 +1444,13 @@ export declare const clientsContractRouter: {
|
|
|
1444
1444
|
lastName: z.ZodString;
|
|
1445
1445
|
email: z.ZodString;
|
|
1446
1446
|
}, "strip", z.ZodTypeAny, {
|
|
1447
|
-
id: string;
|
|
1448
1447
|
email: string;
|
|
1448
|
+
id: string;
|
|
1449
1449
|
lastName: string;
|
|
1450
1450
|
firstName: string;
|
|
1451
1451
|
}, {
|
|
1452
|
-
id: string;
|
|
1453
1452
|
email: string;
|
|
1453
|
+
id: string;
|
|
1454
1454
|
lastName: string;
|
|
1455
1455
|
firstName: string;
|
|
1456
1456
|
}>>>;
|
|
@@ -1464,45 +1464,45 @@ export declare const clientsContractRouter: {
|
|
|
1464
1464
|
agentId: string;
|
|
1465
1465
|
}>>>;
|
|
1466
1466
|
}, "strip", z.ZodTypeAny, {
|
|
1467
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1468
|
-
id: string;
|
|
1469
1467
|
name: string;
|
|
1470
|
-
updatedAt: string;
|
|
1471
1468
|
createdAt: string;
|
|
1469
|
+
updatedAt: string;
|
|
1470
|
+
id: string;
|
|
1471
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1472
1472
|
crn: string | null;
|
|
1473
1473
|
govLink: string | null;
|
|
1474
|
-
director: string;
|
|
1475
1474
|
soleTrader: boolean;
|
|
1475
|
+
director: string;
|
|
1476
1476
|
blacklistReason?: string | null | undefined;
|
|
1477
|
-
agentClientLinks?: {
|
|
1478
|
-
agentId: string;
|
|
1479
|
-
} | null | undefined;
|
|
1480
1477
|
lastUpdatedBy?: {
|
|
1481
|
-
id: string;
|
|
1482
1478
|
email: string;
|
|
1479
|
+
id: string;
|
|
1483
1480
|
lastName: string;
|
|
1484
1481
|
firstName: string;
|
|
1485
1482
|
} | null | undefined;
|
|
1483
|
+
agentClientLinks?: {
|
|
1484
|
+
agentId: string;
|
|
1485
|
+
} | null | undefined;
|
|
1486
1486
|
}, {
|
|
1487
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1488
|
-
id: string;
|
|
1489
1487
|
name: string;
|
|
1490
|
-
updatedAt: string | Date;
|
|
1491
1488
|
createdAt: string | Date;
|
|
1489
|
+
updatedAt: string | Date;
|
|
1490
|
+
id: string;
|
|
1491
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1492
1492
|
crn: string | null;
|
|
1493
1493
|
govLink: string | null;
|
|
1494
|
-
director: string;
|
|
1495
1494
|
soleTrader: boolean;
|
|
1495
|
+
director: string;
|
|
1496
1496
|
blacklistReason?: string | null | undefined;
|
|
1497
|
-
agentClientLinks?: {
|
|
1498
|
-
agentId: string;
|
|
1499
|
-
} | null | undefined;
|
|
1500
1497
|
lastUpdatedBy?: {
|
|
1501
|
-
id: string;
|
|
1502
1498
|
email: string;
|
|
1499
|
+
id: string;
|
|
1503
1500
|
lastName: string;
|
|
1504
1501
|
firstName: string;
|
|
1505
1502
|
} | null | undefined;
|
|
1503
|
+
agentClientLinks?: {
|
|
1504
|
+
agentId: string;
|
|
1505
|
+
} | null | undefined;
|
|
1506
1506
|
}>;
|
|
1507
1507
|
404: z.ZodObject<{
|
|
1508
1508
|
statusCode: z.ZodNumber;
|
|
@@ -1513,17 +1513,17 @@ export declare const clientsContractRouter: {
|
|
|
1513
1513
|
path: z.ZodString;
|
|
1514
1514
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1515
1515
|
}, "strip", z.ZodTypeAny, {
|
|
1516
|
-
message: string;
|
|
1517
1516
|
code: string;
|
|
1518
1517
|
path: string;
|
|
1518
|
+
message: string;
|
|
1519
1519
|
statusCode: number;
|
|
1520
1520
|
timestamp: string;
|
|
1521
1521
|
details?: unknown;
|
|
1522
1522
|
correlationId?: string | undefined;
|
|
1523
1523
|
}, {
|
|
1524
|
-
message: string;
|
|
1525
1524
|
code: string;
|
|
1526
1525
|
path: string;
|
|
1526
|
+
message: string;
|
|
1527
1527
|
statusCode: number;
|
|
1528
1528
|
timestamp: string;
|
|
1529
1529
|
details?: unknown;
|
|
@@ -1554,33 +1554,33 @@ export declare const clientsContractRouter: {
|
|
|
1554
1554
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
1555
1555
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1557
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1558
1557
|
name?: string | undefined;
|
|
1558
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1559
|
+
blacklistReason?: string | null | undefined;
|
|
1559
1560
|
govLink?: string | null | undefined;
|
|
1560
1561
|
director?: string | undefined;
|
|
1561
|
-
blacklistReason?: string | null | undefined;
|
|
1562
1562
|
}, {
|
|
1563
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1564
1563
|
name?: string | undefined;
|
|
1564
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1565
|
+
blacklistReason?: string | null | undefined;
|
|
1565
1566
|
govLink?: string | null | undefined;
|
|
1566
1567
|
director?: string | undefined;
|
|
1567
|
-
blacklistReason?: string | null | undefined;
|
|
1568
1568
|
}>, {
|
|
1569
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1570
1569
|
name?: string | undefined;
|
|
1570
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1571
|
+
blacklistReason?: string | null | undefined;
|
|
1571
1572
|
govLink?: string | null | undefined;
|
|
1572
1573
|
director?: string | undefined;
|
|
1573
|
-
blacklistReason?: string | null | undefined;
|
|
1574
1574
|
}, {
|
|
1575
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1576
1575
|
name?: string | undefined;
|
|
1576
|
+
status?: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION" | undefined;
|
|
1577
|
+
blacklistReason?: string | null | undefined;
|
|
1577
1578
|
govLink?: string | null | undefined;
|
|
1578
1579
|
director?: string | undefined;
|
|
1579
|
-
blacklistReason?: string | null | undefined;
|
|
1580
1580
|
}>;
|
|
1581
1581
|
path: "/v2/clients/:id";
|
|
1582
1582
|
responses: {
|
|
1583
|
-
|
|
1583
|
+
401: z.ZodObject<{
|
|
1584
1584
|
statusCode: z.ZodNumber;
|
|
1585
1585
|
message: z.ZodString;
|
|
1586
1586
|
code: z.ZodString;
|
|
@@ -1589,23 +1589,23 @@ export declare const clientsContractRouter: {
|
|
|
1589
1589
|
path: z.ZodString;
|
|
1590
1590
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1591
1591
|
}, "strip", z.ZodTypeAny, {
|
|
1592
|
-
message: string;
|
|
1593
1592
|
code: string;
|
|
1594
1593
|
path: string;
|
|
1594
|
+
message: string;
|
|
1595
1595
|
statusCode: number;
|
|
1596
1596
|
timestamp: string;
|
|
1597
1597
|
details?: unknown;
|
|
1598
1598
|
correlationId?: string | undefined;
|
|
1599
1599
|
}, {
|
|
1600
|
-
message: string;
|
|
1601
1600
|
code: string;
|
|
1602
1601
|
path: string;
|
|
1602
|
+
message: string;
|
|
1603
1603
|
statusCode: number;
|
|
1604
1604
|
timestamp: string;
|
|
1605
1605
|
details?: unknown;
|
|
1606
1606
|
correlationId?: string | undefined;
|
|
1607
1607
|
}>;
|
|
1608
|
-
|
|
1608
|
+
400: z.ZodObject<{
|
|
1609
1609
|
statusCode: z.ZodNumber;
|
|
1610
1610
|
message: z.ZodString;
|
|
1611
1611
|
code: z.ZodString;
|
|
@@ -1614,17 +1614,17 @@ export declare const clientsContractRouter: {
|
|
|
1614
1614
|
path: z.ZodString;
|
|
1615
1615
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1616
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1617
|
-
message: string;
|
|
1618
1617
|
code: string;
|
|
1619
1618
|
path: string;
|
|
1619
|
+
message: string;
|
|
1620
1620
|
statusCode: number;
|
|
1621
1621
|
timestamp: string;
|
|
1622
1622
|
details?: unknown;
|
|
1623
1623
|
correlationId?: string | undefined;
|
|
1624
1624
|
}, {
|
|
1625
|
-
message: string;
|
|
1626
1625
|
code: string;
|
|
1627
1626
|
path: string;
|
|
1627
|
+
message: string;
|
|
1628
1628
|
statusCode: number;
|
|
1629
1629
|
timestamp: string;
|
|
1630
1630
|
details?: unknown;
|
|
@@ -1639,17 +1639,17 @@ export declare const clientsContractRouter: {
|
|
|
1639
1639
|
path: z.ZodString;
|
|
1640
1640
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1641
1641
|
}, "strip", z.ZodTypeAny, {
|
|
1642
|
-
message: string;
|
|
1643
1642
|
code: string;
|
|
1644
1643
|
path: string;
|
|
1644
|
+
message: string;
|
|
1645
1645
|
statusCode: number;
|
|
1646
1646
|
timestamp: string;
|
|
1647
1647
|
details?: unknown;
|
|
1648
1648
|
correlationId?: string | undefined;
|
|
1649
1649
|
}, {
|
|
1650
|
-
message: string;
|
|
1651
1650
|
code: string;
|
|
1652
1651
|
path: string;
|
|
1652
|
+
message: string;
|
|
1653
1653
|
statusCode: number;
|
|
1654
1654
|
timestamp: string;
|
|
1655
1655
|
details?: unknown;
|
|
@@ -1664,17 +1664,17 @@ export declare const clientsContractRouter: {
|
|
|
1664
1664
|
path: z.ZodString;
|
|
1665
1665
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1666
1666
|
}, "strip", z.ZodTypeAny, {
|
|
1667
|
-
message: string;
|
|
1668
1667
|
code: string;
|
|
1669
1668
|
path: string;
|
|
1669
|
+
message: string;
|
|
1670
1670
|
statusCode: number;
|
|
1671
1671
|
timestamp: string;
|
|
1672
1672
|
details?: unknown;
|
|
1673
1673
|
correlationId?: string | undefined;
|
|
1674
1674
|
}, {
|
|
1675
|
-
message: string;
|
|
1676
1675
|
code: string;
|
|
1677
1676
|
path: string;
|
|
1677
|
+
message: string;
|
|
1678
1678
|
statusCode: number;
|
|
1679
1679
|
timestamp: string;
|
|
1680
1680
|
details?: unknown;
|
|
@@ -1695,13 +1695,13 @@ export declare const clientsContractRouter: {
|
|
|
1695
1695
|
lastName: z.ZodString;
|
|
1696
1696
|
email: z.ZodString;
|
|
1697
1697
|
}, "strip", z.ZodTypeAny, {
|
|
1698
|
-
id: string;
|
|
1699
1698
|
email: string;
|
|
1699
|
+
id: string;
|
|
1700
1700
|
lastName: string;
|
|
1701
1701
|
firstName: string;
|
|
1702
1702
|
}, {
|
|
1703
|
-
id: string;
|
|
1704
1703
|
email: string;
|
|
1704
|
+
id: string;
|
|
1705
1705
|
lastName: string;
|
|
1706
1706
|
firstName: string;
|
|
1707
1707
|
}>>>;
|
|
@@ -1715,45 +1715,45 @@ export declare const clientsContractRouter: {
|
|
|
1715
1715
|
agentId: string;
|
|
1716
1716
|
}>>>;
|
|
1717
1717
|
}, "strip", z.ZodTypeAny, {
|
|
1718
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1719
|
-
id: string;
|
|
1720
1718
|
name: string;
|
|
1721
|
-
updatedAt: string;
|
|
1722
1719
|
createdAt: string;
|
|
1720
|
+
updatedAt: string;
|
|
1721
|
+
id: string;
|
|
1722
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1723
1723
|
crn: string | null;
|
|
1724
1724
|
govLink: string | null;
|
|
1725
|
-
director: string;
|
|
1726
1725
|
soleTrader: boolean;
|
|
1726
|
+
director: string;
|
|
1727
1727
|
blacklistReason?: string | null | undefined;
|
|
1728
|
-
agentClientLinks?: {
|
|
1729
|
-
agentId: string;
|
|
1730
|
-
} | null | undefined;
|
|
1731
1728
|
lastUpdatedBy?: {
|
|
1732
|
-
id: string;
|
|
1733
1729
|
email: string;
|
|
1730
|
+
id: string;
|
|
1734
1731
|
lastName: string;
|
|
1735
1732
|
firstName: string;
|
|
1736
1733
|
} | null | undefined;
|
|
1734
|
+
agentClientLinks?: {
|
|
1735
|
+
agentId: string;
|
|
1736
|
+
} | null | undefined;
|
|
1737
1737
|
}, {
|
|
1738
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1739
|
-
id: string;
|
|
1740
1738
|
name: string;
|
|
1741
|
-
updatedAt: string | Date;
|
|
1742
1739
|
createdAt: string | Date;
|
|
1740
|
+
updatedAt: string | Date;
|
|
1741
|
+
id: string;
|
|
1742
|
+
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1743
1743
|
crn: string | null;
|
|
1744
1744
|
govLink: string | null;
|
|
1745
|
-
director: string;
|
|
1746
1745
|
soleTrader: boolean;
|
|
1746
|
+
director: string;
|
|
1747
1747
|
blacklistReason?: string | null | undefined;
|
|
1748
|
-
agentClientLinks?: {
|
|
1749
|
-
agentId: string;
|
|
1750
|
-
} | null | undefined;
|
|
1751
1748
|
lastUpdatedBy?: {
|
|
1752
|
-
id: string;
|
|
1753
1749
|
email: string;
|
|
1750
|
+
id: string;
|
|
1754
1751
|
lastName: string;
|
|
1755
1752
|
firstName: string;
|
|
1756
1753
|
} | null | undefined;
|
|
1754
|
+
agentClientLinks?: {
|
|
1755
|
+
agentId: string;
|
|
1756
|
+
} | null | undefined;
|
|
1757
1757
|
}>;
|
|
1758
1758
|
404: z.ZodObject<{
|
|
1759
1759
|
statusCode: z.ZodNumber;
|
|
@@ -1764,17 +1764,17 @@ export declare const clientsContractRouter: {
|
|
|
1764
1764
|
path: z.ZodString;
|
|
1765
1765
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1766
1766
|
}, "strip", z.ZodTypeAny, {
|
|
1767
|
-
message: string;
|
|
1768
1767
|
code: string;
|
|
1769
1768
|
path: string;
|
|
1769
|
+
message: string;
|
|
1770
1770
|
statusCode: number;
|
|
1771
1771
|
timestamp: string;
|
|
1772
1772
|
details?: unknown;
|
|
1773
1773
|
correlationId?: string | undefined;
|
|
1774
1774
|
}, {
|
|
1775
|
-
message: string;
|
|
1776
1775
|
code: string;
|
|
1777
1776
|
path: string;
|
|
1777
|
+
message: string;
|
|
1778
1778
|
statusCode: number;
|
|
1779
1779
|
timestamp: string;
|
|
1780
1780
|
details?: unknown;
|
|
@@ -1789,17 +1789,17 @@ export declare const clientsContractRouter: {
|
|
|
1789
1789
|
path: z.ZodString;
|
|
1790
1790
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1791
1791
|
}, "strip", z.ZodTypeAny, {
|
|
1792
|
-
message: string;
|
|
1793
1792
|
code: string;
|
|
1794
1793
|
path: string;
|
|
1794
|
+
message: string;
|
|
1795
1795
|
statusCode: number;
|
|
1796
1796
|
timestamp: string;
|
|
1797
1797
|
details?: unknown;
|
|
1798
1798
|
correlationId?: string | undefined;
|
|
1799
1799
|
}, {
|
|
1800
|
-
message: string;
|
|
1801
1800
|
code: string;
|
|
1802
1801
|
path: string;
|
|
1802
|
+
message: string;
|
|
1803
1803
|
statusCode: number;
|
|
1804
1804
|
timestamp: string;
|
|
1805
1805
|
details?: unknown;
|
|
@@ -1826,7 +1826,7 @@ export declare const clientsContractRouter: {
|
|
|
1826
1826
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1827
1827
|
path: "/v2/clients/:id";
|
|
1828
1828
|
responses: {
|
|
1829
|
-
|
|
1829
|
+
401: z.ZodObject<{
|
|
1830
1830
|
statusCode: z.ZodNumber;
|
|
1831
1831
|
message: z.ZodString;
|
|
1832
1832
|
code: z.ZodString;
|
|
@@ -1835,23 +1835,23 @@ export declare const clientsContractRouter: {
|
|
|
1835
1835
|
path: z.ZodString;
|
|
1836
1836
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1837
1837
|
}, "strip", z.ZodTypeAny, {
|
|
1838
|
-
message: string;
|
|
1839
1838
|
code: string;
|
|
1840
1839
|
path: string;
|
|
1840
|
+
message: string;
|
|
1841
1841
|
statusCode: number;
|
|
1842
1842
|
timestamp: string;
|
|
1843
1843
|
details?: unknown;
|
|
1844
1844
|
correlationId?: string | undefined;
|
|
1845
1845
|
}, {
|
|
1846
|
-
message: string;
|
|
1847
1846
|
code: string;
|
|
1848
1847
|
path: string;
|
|
1848
|
+
message: string;
|
|
1849
1849
|
statusCode: number;
|
|
1850
1850
|
timestamp: string;
|
|
1851
1851
|
details?: unknown;
|
|
1852
1852
|
correlationId?: string | undefined;
|
|
1853
1853
|
}>;
|
|
1854
|
-
|
|
1854
|
+
400: z.ZodObject<{
|
|
1855
1855
|
statusCode: z.ZodNumber;
|
|
1856
1856
|
message: z.ZodString;
|
|
1857
1857
|
code: z.ZodString;
|
|
@@ -1860,17 +1860,17 @@ export declare const clientsContractRouter: {
|
|
|
1860
1860
|
path: z.ZodString;
|
|
1861
1861
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1862
1862
|
}, "strip", z.ZodTypeAny, {
|
|
1863
|
-
message: string;
|
|
1864
1863
|
code: string;
|
|
1865
1864
|
path: string;
|
|
1865
|
+
message: string;
|
|
1866
1866
|
statusCode: number;
|
|
1867
1867
|
timestamp: string;
|
|
1868
1868
|
details?: unknown;
|
|
1869
1869
|
correlationId?: string | undefined;
|
|
1870
1870
|
}, {
|
|
1871
|
-
message: string;
|
|
1872
1871
|
code: string;
|
|
1873
1872
|
path: string;
|
|
1873
|
+
message: string;
|
|
1874
1874
|
statusCode: number;
|
|
1875
1875
|
timestamp: string;
|
|
1876
1876
|
details?: unknown;
|
|
@@ -1885,17 +1885,17 @@ export declare const clientsContractRouter: {
|
|
|
1885
1885
|
path: z.ZodString;
|
|
1886
1886
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1887
1887
|
}, "strip", z.ZodTypeAny, {
|
|
1888
|
-
message: string;
|
|
1889
1888
|
code: string;
|
|
1890
1889
|
path: string;
|
|
1890
|
+
message: string;
|
|
1891
1891
|
statusCode: number;
|
|
1892
1892
|
timestamp: string;
|
|
1893
1893
|
details?: unknown;
|
|
1894
1894
|
correlationId?: string | undefined;
|
|
1895
1895
|
}, {
|
|
1896
|
-
message: string;
|
|
1897
1896
|
code: string;
|
|
1898
1897
|
path: string;
|
|
1898
|
+
message: string;
|
|
1899
1899
|
statusCode: number;
|
|
1900
1900
|
timestamp: string;
|
|
1901
1901
|
details?: unknown;
|
|
@@ -1910,17 +1910,17 @@ export declare const clientsContractRouter: {
|
|
|
1910
1910
|
path: z.ZodString;
|
|
1911
1911
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1912
1912
|
}, "strip", z.ZodTypeAny, {
|
|
1913
|
-
message: string;
|
|
1914
1913
|
code: string;
|
|
1915
1914
|
path: string;
|
|
1915
|
+
message: string;
|
|
1916
1916
|
statusCode: number;
|
|
1917
1917
|
timestamp: string;
|
|
1918
1918
|
details?: unknown;
|
|
1919
1919
|
correlationId?: string | undefined;
|
|
1920
1920
|
}, {
|
|
1921
|
-
message: string;
|
|
1922
1921
|
code: string;
|
|
1923
1922
|
path: string;
|
|
1923
|
+
message: string;
|
|
1924
1924
|
statusCode: number;
|
|
1925
1925
|
timestamp: string;
|
|
1926
1926
|
details?: unknown;
|
|
@@ -1936,17 +1936,17 @@ export declare const clientsContractRouter: {
|
|
|
1936
1936
|
path: z.ZodString;
|
|
1937
1937
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1938
1938
|
}, "strip", z.ZodTypeAny, {
|
|
1939
|
-
message: string;
|
|
1940
1939
|
code: string;
|
|
1941
1940
|
path: string;
|
|
1941
|
+
message: string;
|
|
1942
1942
|
statusCode: number;
|
|
1943
1943
|
timestamp: string;
|
|
1944
1944
|
details?: unknown;
|
|
1945
1945
|
correlationId?: string | undefined;
|
|
1946
1946
|
}, {
|
|
1947
|
-
message: string;
|
|
1948
1947
|
code: string;
|
|
1949
1948
|
path: string;
|
|
1949
|
+
message: string;
|
|
1950
1950
|
statusCode: number;
|
|
1951
1951
|
timestamp: string;
|
|
1952
1952
|
details?: unknown;
|