@dakkitor/api-contracts 1.1.2 → 1.1.4
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/client-contacts/client-contacts.contract.d.ts +2204 -361
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +29 -47
- package/dist/clients/clients.contract.d.ts +1273 -283
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +25 -43
- package/dist/common/error-schemas.d.ts +17 -1
- package/dist/common/error-schemas.d.ts.map +1 -1
- package/dist/common/pagination.schema.d.ts +19 -3
- package/dist/common/pagination.schema.d.ts.map +1 -1
- package/dist/common/pagination.schema.js +6 -4
- package/dist/index.d.ts +2635 -518
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -7
- package/package.json +2 -2
|
@@ -1,92 +1,308 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ClientUserSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
firstName: z.ZodString;
|
|
5
|
+
lastName: z.ZodString;
|
|
6
|
+
email: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
id: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
email: string;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
email: string;
|
|
17
|
+
}>;
|
|
2
18
|
export declare const ClientSchema: z.ZodObject<{
|
|
3
|
-
id: z.
|
|
19
|
+
id: z.ZodString;
|
|
4
20
|
name: z.ZodString;
|
|
5
21
|
crn: z.ZodString;
|
|
6
|
-
govLink: z.
|
|
7
|
-
status: z.ZodEnum<
|
|
8
|
-
APPROVED: "APPROVED";
|
|
9
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
10
|
-
BLACKLISTED: "BLACKLISTED";
|
|
11
|
-
}>;
|
|
22
|
+
govLink: z.ZodString;
|
|
23
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
12
24
|
director: z.ZodString;
|
|
13
25
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
26
|
lastUpdatedBy: z.ZodObject<{
|
|
15
|
-
id: z.
|
|
27
|
+
id: z.ZodString;
|
|
16
28
|
firstName: z.ZodString;
|
|
17
29
|
lastName: z.ZodString;
|
|
18
|
-
email: z.
|
|
19
|
-
}, z.
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
email: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: string;
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
email: string;
|
|
36
|
+
}, {
|
|
37
|
+
id: string;
|
|
38
|
+
firstName: string;
|
|
39
|
+
lastName: string;
|
|
40
|
+
email: string;
|
|
41
|
+
}>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
22
44
|
version: z.ZodNumber;
|
|
23
45
|
agentClientLinks: z.ZodObject<{
|
|
24
46
|
agentId: z.ZodString;
|
|
25
|
-
}, z.
|
|
26
|
-
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
agentId: string;
|
|
49
|
+
}, {
|
|
50
|
+
agentId: string;
|
|
51
|
+
}>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
crn: string;
|
|
57
|
+
govLink: string;
|
|
58
|
+
director: string;
|
|
59
|
+
lastUpdatedBy: {
|
|
60
|
+
id: string;
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
63
|
+
email: string;
|
|
64
|
+
};
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
version: number;
|
|
68
|
+
agentClientLinks: {
|
|
69
|
+
agentId: string;
|
|
70
|
+
};
|
|
71
|
+
blacklistReason?: string | null | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
crn: string;
|
|
77
|
+
govLink: string;
|
|
78
|
+
director: string;
|
|
79
|
+
lastUpdatedBy: {
|
|
80
|
+
id: string;
|
|
81
|
+
firstName: string;
|
|
82
|
+
lastName: string;
|
|
83
|
+
email: string;
|
|
84
|
+
};
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
version: number;
|
|
88
|
+
agentClientLinks: {
|
|
89
|
+
agentId: string;
|
|
90
|
+
};
|
|
91
|
+
blacklistReason?: string | null | undefined;
|
|
92
|
+
}>;
|
|
27
93
|
export declare const CreateClientSchema: z.ZodObject<{
|
|
28
94
|
name: z.ZodString;
|
|
29
|
-
govLink: z.
|
|
95
|
+
govLink: z.ZodString;
|
|
30
96
|
director: z.ZodString;
|
|
31
|
-
}, z.
|
|
32
|
-
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
name: string;
|
|
99
|
+
govLink: string;
|
|
100
|
+
director: string;
|
|
101
|
+
}, {
|
|
102
|
+
name: string;
|
|
103
|
+
govLink: string;
|
|
104
|
+
director: string;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
33
107
|
name: z.ZodOptional<z.ZodString>;
|
|
34
|
-
govLink: z.ZodOptional<z.
|
|
108
|
+
govLink: z.ZodOptional<z.ZodString>;
|
|
35
109
|
director: z.ZodOptional<z.ZodString>;
|
|
36
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
37
|
-
APPROVED: "APPROVED";
|
|
38
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
39
|
-
BLACKLISTED: "BLACKLISTED";
|
|
40
|
-
}>>;
|
|
110
|
+
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
41
111
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
govLink?: string | undefined;
|
|
116
|
+
director?: string | undefined;
|
|
117
|
+
blacklistReason?: string | null | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
govLink?: string | undefined;
|
|
122
|
+
director?: string | undefined;
|
|
123
|
+
blacklistReason?: string | null | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
126
|
+
name?: string | undefined;
|
|
127
|
+
govLink?: string | undefined;
|
|
128
|
+
director?: string | undefined;
|
|
129
|
+
blacklistReason?: string | null | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
govLink?: string | undefined;
|
|
134
|
+
director?: string | undefined;
|
|
135
|
+
blacklistReason?: string | null | undefined;
|
|
136
|
+
}>;
|
|
43
137
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
44
|
-
limit: z.ZodDefault<z.
|
|
45
|
-
page: z.ZodDefault<z.
|
|
138
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
139
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
46
140
|
search: z.ZodOptional<z.ZodString>;
|
|
47
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
141
|
+
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
limit: number;
|
|
144
|
+
page: number;
|
|
145
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
146
|
+
search?: string | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
149
|
+
limit?: number | undefined;
|
|
150
|
+
page?: number | undefined;
|
|
151
|
+
search?: string | undefined;
|
|
152
|
+
}>;
|
|
53
153
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
54
154
|
id: z.ZodString;
|
|
55
155
|
name: z.ZodString;
|
|
56
|
-
}, z.
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
id: string;
|
|
158
|
+
name: string;
|
|
159
|
+
}, {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
}>;
|
|
57
163
|
export declare const AutocompleteQuerySchema: z.ZodObject<{
|
|
58
164
|
search: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
search?: string | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
search?: string | undefined;
|
|
169
|
+
}>;
|
|
60
170
|
export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
61
|
-
|
|
62
|
-
id: z.
|
|
171
|
+
items: z.ZodArray<z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
63
173
|
name: z.ZodString;
|
|
64
174
|
crn: z.ZodString;
|
|
65
|
-
govLink: z.
|
|
66
|
-
status: z.ZodEnum<
|
|
67
|
-
APPROVED: "APPROVED";
|
|
68
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
69
|
-
BLACKLISTED: "BLACKLISTED";
|
|
70
|
-
}>;
|
|
175
|
+
govLink: z.ZodString;
|
|
176
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
71
177
|
director: z.ZodString;
|
|
72
178
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
179
|
lastUpdatedBy: z.ZodObject<{
|
|
74
|
-
id: z.
|
|
180
|
+
id: z.ZodString;
|
|
75
181
|
firstName: z.ZodString;
|
|
76
182
|
lastName: z.ZodString;
|
|
77
|
-
email: z.
|
|
78
|
-
}, z.
|
|
79
|
-
|
|
80
|
-
|
|
183
|
+
email: z.ZodString;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
id: string;
|
|
186
|
+
firstName: string;
|
|
187
|
+
lastName: string;
|
|
188
|
+
email: string;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
firstName: string;
|
|
192
|
+
lastName: string;
|
|
193
|
+
email: string;
|
|
194
|
+
}>;
|
|
195
|
+
createdAt: z.ZodString;
|
|
196
|
+
updatedAt: z.ZodString;
|
|
81
197
|
version: z.ZodNumber;
|
|
82
198
|
agentClientLinks: z.ZodObject<{
|
|
83
199
|
agentId: z.ZodString;
|
|
84
|
-
}, z.
|
|
85
|
-
|
|
86
|
-
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
agentId: string;
|
|
202
|
+
}, {
|
|
203
|
+
agentId: string;
|
|
204
|
+
}>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
207
|
+
id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
crn: string;
|
|
210
|
+
govLink: string;
|
|
211
|
+
director: string;
|
|
212
|
+
lastUpdatedBy: {
|
|
213
|
+
id: string;
|
|
214
|
+
firstName: string;
|
|
215
|
+
lastName: string;
|
|
216
|
+
email: string;
|
|
217
|
+
};
|
|
218
|
+
createdAt: string;
|
|
219
|
+
updatedAt: string;
|
|
220
|
+
version: number;
|
|
221
|
+
agentClientLinks: {
|
|
222
|
+
agentId: string;
|
|
223
|
+
};
|
|
224
|
+
blacklistReason?: string | null | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
crn: string;
|
|
230
|
+
govLink: string;
|
|
231
|
+
director: string;
|
|
232
|
+
lastUpdatedBy: {
|
|
233
|
+
id: string;
|
|
234
|
+
firstName: string;
|
|
235
|
+
lastName: string;
|
|
236
|
+
email: string;
|
|
237
|
+
};
|
|
238
|
+
createdAt: string;
|
|
239
|
+
updatedAt: string;
|
|
240
|
+
version: number;
|
|
241
|
+
agentClientLinks: {
|
|
242
|
+
agentId: string;
|
|
243
|
+
};
|
|
244
|
+
blacklistReason?: string | null | undefined;
|
|
245
|
+
}>, "many">;
|
|
246
|
+
totalCount: z.ZodNumber;
|
|
87
247
|
limit: z.ZodNumber;
|
|
88
248
|
skip: z.ZodNumber;
|
|
89
|
-
|
|
249
|
+
currentPage: z.ZodNumber;
|
|
250
|
+
totalPages: z.ZodNumber;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
items: {
|
|
253
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
254
|
+
id: string;
|
|
255
|
+
name: string;
|
|
256
|
+
crn: string;
|
|
257
|
+
govLink: string;
|
|
258
|
+
director: string;
|
|
259
|
+
lastUpdatedBy: {
|
|
260
|
+
id: string;
|
|
261
|
+
firstName: string;
|
|
262
|
+
lastName: string;
|
|
263
|
+
email: string;
|
|
264
|
+
};
|
|
265
|
+
createdAt: string;
|
|
266
|
+
updatedAt: string;
|
|
267
|
+
version: number;
|
|
268
|
+
agentClientLinks: {
|
|
269
|
+
agentId: string;
|
|
270
|
+
};
|
|
271
|
+
blacklistReason?: string | null | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
totalCount: number;
|
|
274
|
+
limit: number;
|
|
275
|
+
skip: number;
|
|
276
|
+
currentPage: number;
|
|
277
|
+
totalPages: number;
|
|
278
|
+
}, {
|
|
279
|
+
items: {
|
|
280
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
281
|
+
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
crn: string;
|
|
284
|
+
govLink: string;
|
|
285
|
+
director: string;
|
|
286
|
+
lastUpdatedBy: {
|
|
287
|
+
id: string;
|
|
288
|
+
firstName: string;
|
|
289
|
+
lastName: string;
|
|
290
|
+
email: string;
|
|
291
|
+
};
|
|
292
|
+
createdAt: string;
|
|
293
|
+
updatedAt: string;
|
|
294
|
+
version: number;
|
|
295
|
+
agentClientLinks: {
|
|
296
|
+
agentId: string;
|
|
297
|
+
};
|
|
298
|
+
blacklistReason?: string | null | undefined;
|
|
299
|
+
}[];
|
|
300
|
+
totalCount: number;
|
|
301
|
+
limit: number;
|
|
302
|
+
skip: number;
|
|
303
|
+
currentPage: number;
|
|
304
|
+
totalPages: number;
|
|
305
|
+
}>;
|
|
90
306
|
export type ClientV2 = z.infer<typeof ClientSchema>;
|
|
91
307
|
export type CreateClientV2 = z.infer<typeof CreateClientSchema>;
|
|
92
308
|
export type UpdateClientV2 = z.infer<typeof UpdateClientSchema>;
|
|
@@ -94,37 +310,201 @@ export type FilterClientV2 = z.infer<typeof FilterClientSchema>;
|
|
|
94
310
|
export type ClientAutocompleteResponseV2 = z.infer<typeof ClientAutocompleteResponseSchema>;
|
|
95
311
|
export type AutocompleteQueryV2 = z.infer<typeof AutocompleteQuerySchema>;
|
|
96
312
|
export type PaginatedResponseV2 = z.infer<typeof PaginatedResponseSchema>;
|
|
97
|
-
declare const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
313
|
+
export declare const clientsContractRouter: {
|
|
314
|
+
create: {
|
|
315
|
+
summary: "Create a new client";
|
|
316
|
+
method: "POST";
|
|
317
|
+
body: z.ZodObject<{
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
govLink: z.ZodString;
|
|
320
|
+
director: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
name: string;
|
|
323
|
+
govLink: string;
|
|
324
|
+
director: string;
|
|
325
|
+
}, {
|
|
326
|
+
name: string;
|
|
327
|
+
govLink: string;
|
|
328
|
+
director: string;
|
|
329
|
+
}>;
|
|
330
|
+
path: "/v2/clients";
|
|
331
|
+
responses: {
|
|
332
|
+
400: z.ZodObject<{
|
|
333
|
+
statusCode: z.ZodNumber;
|
|
334
|
+
message: z.ZodString;
|
|
335
|
+
code: z.ZodString;
|
|
336
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
337
|
+
timestamp: z.ZodString;
|
|
338
|
+
path: z.ZodString;
|
|
339
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
statusCode: number;
|
|
342
|
+
message: string;
|
|
343
|
+
code: string;
|
|
344
|
+
timestamp: string;
|
|
345
|
+
path: string;
|
|
346
|
+
details?: unknown;
|
|
347
|
+
correlationId?: string | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
statusCode: number;
|
|
350
|
+
message: string;
|
|
351
|
+
code: string;
|
|
352
|
+
timestamp: string;
|
|
353
|
+
path: string;
|
|
354
|
+
details?: unknown;
|
|
355
|
+
correlationId?: string | undefined;
|
|
356
|
+
}>;
|
|
357
|
+
401: z.ZodObject<{
|
|
358
|
+
statusCode: z.ZodNumber;
|
|
359
|
+
message: z.ZodString;
|
|
360
|
+
code: z.ZodString;
|
|
361
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
362
|
+
timestamp: z.ZodString;
|
|
363
|
+
path: z.ZodString;
|
|
364
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
statusCode: number;
|
|
367
|
+
message: string;
|
|
368
|
+
code: string;
|
|
369
|
+
timestamp: string;
|
|
370
|
+
path: string;
|
|
371
|
+
details?: unknown;
|
|
372
|
+
correlationId?: string | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
statusCode: number;
|
|
375
|
+
message: string;
|
|
376
|
+
code: string;
|
|
377
|
+
timestamp: string;
|
|
378
|
+
path: string;
|
|
379
|
+
details?: unknown;
|
|
380
|
+
correlationId?: string | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
403: z.ZodObject<{
|
|
383
|
+
statusCode: z.ZodNumber;
|
|
384
|
+
message: z.ZodString;
|
|
385
|
+
code: z.ZodString;
|
|
386
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
387
|
+
timestamp: z.ZodString;
|
|
388
|
+
path: z.ZodString;
|
|
389
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
statusCode: number;
|
|
392
|
+
message: string;
|
|
393
|
+
code: string;
|
|
394
|
+
timestamp: string;
|
|
395
|
+
path: string;
|
|
396
|
+
details?: unknown;
|
|
397
|
+
correlationId?: string | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
statusCode: number;
|
|
400
|
+
message: string;
|
|
401
|
+
code: string;
|
|
402
|
+
timestamp: string;
|
|
403
|
+
path: string;
|
|
404
|
+
details?: unknown;
|
|
405
|
+
correlationId?: string | undefined;
|
|
406
|
+
}>;
|
|
407
|
+
500: z.ZodObject<{
|
|
408
|
+
statusCode: z.ZodNumber;
|
|
409
|
+
message: z.ZodString;
|
|
410
|
+
code: z.ZodString;
|
|
411
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
412
|
+
timestamp: z.ZodString;
|
|
413
|
+
path: z.ZodString;
|
|
414
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
statusCode: number;
|
|
417
|
+
message: string;
|
|
418
|
+
code: string;
|
|
419
|
+
timestamp: string;
|
|
420
|
+
path: string;
|
|
421
|
+
details?: unknown;
|
|
422
|
+
correlationId?: string | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
statusCode: number;
|
|
425
|
+
message: string;
|
|
426
|
+
code: string;
|
|
427
|
+
timestamp: string;
|
|
428
|
+
path: string;
|
|
429
|
+
details?: unknown;
|
|
430
|
+
correlationId?: string | undefined;
|
|
431
|
+
}>;
|
|
432
|
+
201: z.ZodObject<{
|
|
433
|
+
id: z.ZodString;
|
|
104
434
|
name: z.ZodString;
|
|
105
435
|
crn: z.ZodString;
|
|
106
|
-
govLink: z.
|
|
107
|
-
status: z.ZodEnum<
|
|
108
|
-
APPROVED: "APPROVED";
|
|
109
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
110
|
-
BLACKLISTED: "BLACKLISTED";
|
|
111
|
-
}>;
|
|
436
|
+
govLink: z.ZodString;
|
|
437
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
112
438
|
director: z.ZodString;
|
|
113
439
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
440
|
lastUpdatedBy: z.ZodObject<{
|
|
115
|
-
id: z.
|
|
441
|
+
id: z.ZodString;
|
|
116
442
|
firstName: z.ZodString;
|
|
117
443
|
lastName: z.ZodString;
|
|
118
|
-
email: z.
|
|
119
|
-
}, z.
|
|
120
|
-
|
|
121
|
-
|
|
444
|
+
email: z.ZodString;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
id: string;
|
|
447
|
+
firstName: string;
|
|
448
|
+
lastName: string;
|
|
449
|
+
email: string;
|
|
450
|
+
}, {
|
|
451
|
+
id: string;
|
|
452
|
+
firstName: string;
|
|
453
|
+
lastName: string;
|
|
454
|
+
email: string;
|
|
455
|
+
}>;
|
|
456
|
+
createdAt: z.ZodString;
|
|
457
|
+
updatedAt: z.ZodString;
|
|
122
458
|
version: z.ZodNumber;
|
|
123
459
|
agentClientLinks: z.ZodObject<{
|
|
124
460
|
agentId: z.ZodString;
|
|
125
|
-
}, z.
|
|
126
|
-
|
|
127
|
-
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
agentId: string;
|
|
463
|
+
}, {
|
|
464
|
+
agentId: string;
|
|
465
|
+
}>;
|
|
466
|
+
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
crn: string;
|
|
471
|
+
govLink: string;
|
|
472
|
+
director: string;
|
|
473
|
+
lastUpdatedBy: {
|
|
474
|
+
id: string;
|
|
475
|
+
firstName: string;
|
|
476
|
+
lastName: string;
|
|
477
|
+
email: string;
|
|
478
|
+
};
|
|
479
|
+
createdAt: string;
|
|
480
|
+
updatedAt: string;
|
|
481
|
+
version: number;
|
|
482
|
+
agentClientLinks: {
|
|
483
|
+
agentId: string;
|
|
484
|
+
};
|
|
485
|
+
blacklistReason?: string | null | undefined;
|
|
486
|
+
}, {
|
|
487
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
488
|
+
id: string;
|
|
489
|
+
name: string;
|
|
490
|
+
crn: string;
|
|
491
|
+
govLink: string;
|
|
492
|
+
director: string;
|
|
493
|
+
lastUpdatedBy: {
|
|
494
|
+
id: string;
|
|
495
|
+
firstName: string;
|
|
496
|
+
lastName: string;
|
|
497
|
+
email: string;
|
|
498
|
+
};
|
|
499
|
+
createdAt: string;
|
|
500
|
+
updatedAt: string;
|
|
501
|
+
version: number;
|
|
502
|
+
agentClientLinks: {
|
|
503
|
+
agentId: string;
|
|
504
|
+
};
|
|
505
|
+
blacklistReason?: string | null | undefined;
|
|
506
|
+
}>;
|
|
507
|
+
409: z.ZodObject<{
|
|
128
508
|
statusCode: z.ZodNumber;
|
|
129
509
|
message: z.ZodString;
|
|
130
510
|
code: z.ZodString;
|
|
@@ -132,8 +512,47 @@ declare const clientsContractConfig: {
|
|
|
132
512
|
timestamp: z.ZodString;
|
|
133
513
|
path: z.ZodString;
|
|
134
514
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.
|
|
136
|
-
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
statusCode: number;
|
|
517
|
+
message: string;
|
|
518
|
+
code: string;
|
|
519
|
+
timestamp: string;
|
|
520
|
+
path: string;
|
|
521
|
+
details?: unknown;
|
|
522
|
+
correlationId?: string | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
statusCode: number;
|
|
525
|
+
message: string;
|
|
526
|
+
code: string;
|
|
527
|
+
timestamp: string;
|
|
528
|
+
path: string;
|
|
529
|
+
details?: unknown;
|
|
530
|
+
correlationId?: string | undefined;
|
|
531
|
+
}>;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
findAll: {
|
|
535
|
+
query: z.ZodObject<{
|
|
536
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
537
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
538
|
+
search: z.ZodOptional<z.ZodString>;
|
|
539
|
+
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
limit: number;
|
|
542
|
+
page: number;
|
|
543
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
544
|
+
search?: string | undefined;
|
|
545
|
+
}, {
|
|
546
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
547
|
+
limit?: number | undefined;
|
|
548
|
+
page?: number | undefined;
|
|
549
|
+
search?: string | undefined;
|
|
550
|
+
}>;
|
|
551
|
+
summary: "Get all clients";
|
|
552
|
+
method: "GET";
|
|
553
|
+
path: "/v2/clients";
|
|
554
|
+
responses: {
|
|
555
|
+
400: z.ZodObject<{
|
|
137
556
|
statusCode: z.ZodNumber;
|
|
138
557
|
message: z.ZodString;
|
|
139
558
|
code: z.ZodString;
|
|
@@ -141,8 +560,24 @@ declare const clientsContractConfig: {
|
|
|
141
560
|
timestamp: z.ZodString;
|
|
142
561
|
path: z.ZodString;
|
|
143
562
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
144
|
-
}, z.
|
|
145
|
-
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
statusCode: number;
|
|
565
|
+
message: string;
|
|
566
|
+
code: string;
|
|
567
|
+
timestamp: string;
|
|
568
|
+
path: string;
|
|
569
|
+
details?: unknown;
|
|
570
|
+
correlationId?: string | undefined;
|
|
571
|
+
}, {
|
|
572
|
+
statusCode: number;
|
|
573
|
+
message: string;
|
|
574
|
+
code: string;
|
|
575
|
+
timestamp: string;
|
|
576
|
+
path: string;
|
|
577
|
+
details?: unknown;
|
|
578
|
+
correlationId?: string | undefined;
|
|
579
|
+
}>;
|
|
580
|
+
401: z.ZodObject<{
|
|
146
581
|
statusCode: z.ZodNumber;
|
|
147
582
|
message: z.ZodString;
|
|
148
583
|
code: z.ZodString;
|
|
@@ -150,8 +585,24 @@ declare const clientsContractConfig: {
|
|
|
150
585
|
timestamp: z.ZodString;
|
|
151
586
|
path: z.ZodString;
|
|
152
587
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.
|
|
154
|
-
|
|
588
|
+
}, "strip", z.ZodTypeAny, {
|
|
589
|
+
statusCode: number;
|
|
590
|
+
message: string;
|
|
591
|
+
code: string;
|
|
592
|
+
timestamp: string;
|
|
593
|
+
path: string;
|
|
594
|
+
details?: unknown;
|
|
595
|
+
correlationId?: string | undefined;
|
|
596
|
+
}, {
|
|
597
|
+
statusCode: number;
|
|
598
|
+
message: string;
|
|
599
|
+
code: string;
|
|
600
|
+
timestamp: string;
|
|
601
|
+
path: string;
|
|
602
|
+
details?: unknown;
|
|
603
|
+
correlationId?: string | undefined;
|
|
604
|
+
}>;
|
|
605
|
+
403: z.ZodObject<{
|
|
155
606
|
statusCode: z.ZodNumber;
|
|
156
607
|
message: z.ZodString;
|
|
157
608
|
code: z.ZodString;
|
|
@@ -159,8 +610,24 @@ declare const clientsContractConfig: {
|
|
|
159
610
|
timestamp: z.ZodString;
|
|
160
611
|
path: z.ZodString;
|
|
161
612
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.
|
|
163
|
-
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
statusCode: number;
|
|
615
|
+
message: string;
|
|
616
|
+
code: string;
|
|
617
|
+
timestamp: string;
|
|
618
|
+
path: string;
|
|
619
|
+
details?: unknown;
|
|
620
|
+
correlationId?: string | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
statusCode: number;
|
|
623
|
+
message: string;
|
|
624
|
+
code: string;
|
|
625
|
+
timestamp: string;
|
|
626
|
+
path: string;
|
|
627
|
+
details?: unknown;
|
|
628
|
+
correlationId?: string | undefined;
|
|
629
|
+
}>;
|
|
630
|
+
500: z.ZodObject<{
|
|
164
631
|
statusCode: z.ZodNumber;
|
|
165
632
|
message: z.ZodString;
|
|
166
633
|
code: z.ZodString;
|
|
@@ -168,50 +635,174 @@ declare const clientsContractConfig: {
|
|
|
168
635
|
timestamp: z.ZodString;
|
|
169
636
|
path: z.ZodString;
|
|
170
637
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
171
|
-
}, z.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
statusCode: number;
|
|
640
|
+
message: string;
|
|
641
|
+
code: string;
|
|
642
|
+
timestamp: string;
|
|
643
|
+
path: string;
|
|
644
|
+
details?: unknown;
|
|
645
|
+
correlationId?: string | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
statusCode: number;
|
|
648
|
+
message: string;
|
|
649
|
+
code: string;
|
|
650
|
+
timestamp: string;
|
|
651
|
+
path: string;
|
|
652
|
+
details?: unknown;
|
|
653
|
+
correlationId?: string | undefined;
|
|
654
|
+
}>;
|
|
655
|
+
200: z.ZodObject<{
|
|
656
|
+
items: z.ZodArray<z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
187
658
|
name: z.ZodString;
|
|
188
659
|
crn: z.ZodString;
|
|
189
|
-
govLink: z.
|
|
190
|
-
status: z.ZodEnum<
|
|
191
|
-
APPROVED: "APPROVED";
|
|
192
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
193
|
-
BLACKLISTED: "BLACKLISTED";
|
|
194
|
-
}>;
|
|
660
|
+
govLink: z.ZodString;
|
|
661
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
195
662
|
director: z.ZodString;
|
|
196
663
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
664
|
lastUpdatedBy: z.ZodObject<{
|
|
198
|
-
id: z.
|
|
665
|
+
id: z.ZodString;
|
|
199
666
|
firstName: z.ZodString;
|
|
200
667
|
lastName: z.ZodString;
|
|
201
|
-
email: z.
|
|
202
|
-
}, z.
|
|
203
|
-
|
|
204
|
-
|
|
668
|
+
email: z.ZodString;
|
|
669
|
+
}, "strip", z.ZodTypeAny, {
|
|
670
|
+
id: string;
|
|
671
|
+
firstName: string;
|
|
672
|
+
lastName: string;
|
|
673
|
+
email: string;
|
|
674
|
+
}, {
|
|
675
|
+
id: string;
|
|
676
|
+
firstName: string;
|
|
677
|
+
lastName: string;
|
|
678
|
+
email: string;
|
|
679
|
+
}>;
|
|
680
|
+
createdAt: z.ZodString;
|
|
681
|
+
updatedAt: z.ZodString;
|
|
205
682
|
version: z.ZodNumber;
|
|
206
683
|
agentClientLinks: z.ZodObject<{
|
|
207
684
|
agentId: z.ZodString;
|
|
208
|
-
}, z.
|
|
209
|
-
|
|
210
|
-
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
agentId: string;
|
|
687
|
+
}, {
|
|
688
|
+
agentId: string;
|
|
689
|
+
}>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
crn: string;
|
|
695
|
+
govLink: string;
|
|
696
|
+
director: string;
|
|
697
|
+
lastUpdatedBy: {
|
|
698
|
+
id: string;
|
|
699
|
+
firstName: string;
|
|
700
|
+
lastName: string;
|
|
701
|
+
email: string;
|
|
702
|
+
};
|
|
703
|
+
createdAt: string;
|
|
704
|
+
updatedAt: string;
|
|
705
|
+
version: number;
|
|
706
|
+
agentClientLinks: {
|
|
707
|
+
agentId: string;
|
|
708
|
+
};
|
|
709
|
+
blacklistReason?: string | null | undefined;
|
|
710
|
+
}, {
|
|
711
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
crn: string;
|
|
715
|
+
govLink: string;
|
|
716
|
+
director: string;
|
|
717
|
+
lastUpdatedBy: {
|
|
718
|
+
id: string;
|
|
719
|
+
firstName: string;
|
|
720
|
+
lastName: string;
|
|
721
|
+
email: string;
|
|
722
|
+
};
|
|
723
|
+
createdAt: string;
|
|
724
|
+
updatedAt: string;
|
|
725
|
+
version: number;
|
|
726
|
+
agentClientLinks: {
|
|
727
|
+
agentId: string;
|
|
728
|
+
};
|
|
729
|
+
blacklistReason?: string | null | undefined;
|
|
730
|
+
}>, "many">;
|
|
731
|
+
totalCount: z.ZodNumber;
|
|
211
732
|
limit: z.ZodNumber;
|
|
212
733
|
skip: z.ZodNumber;
|
|
213
|
-
|
|
214
|
-
|
|
734
|
+
currentPage: z.ZodNumber;
|
|
735
|
+
totalPages: z.ZodNumber;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
items: {
|
|
738
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
crn: string;
|
|
742
|
+
govLink: string;
|
|
743
|
+
director: string;
|
|
744
|
+
lastUpdatedBy: {
|
|
745
|
+
id: string;
|
|
746
|
+
firstName: string;
|
|
747
|
+
lastName: string;
|
|
748
|
+
email: string;
|
|
749
|
+
};
|
|
750
|
+
createdAt: string;
|
|
751
|
+
updatedAt: string;
|
|
752
|
+
version: number;
|
|
753
|
+
agentClientLinks: {
|
|
754
|
+
agentId: string;
|
|
755
|
+
};
|
|
756
|
+
blacklistReason?: string | null | undefined;
|
|
757
|
+
}[];
|
|
758
|
+
totalCount: number;
|
|
759
|
+
limit: number;
|
|
760
|
+
skip: number;
|
|
761
|
+
currentPage: number;
|
|
762
|
+
totalPages: number;
|
|
763
|
+
}, {
|
|
764
|
+
items: {
|
|
765
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
766
|
+
id: string;
|
|
767
|
+
name: string;
|
|
768
|
+
crn: string;
|
|
769
|
+
govLink: string;
|
|
770
|
+
director: string;
|
|
771
|
+
lastUpdatedBy: {
|
|
772
|
+
id: string;
|
|
773
|
+
firstName: string;
|
|
774
|
+
lastName: string;
|
|
775
|
+
email: string;
|
|
776
|
+
};
|
|
777
|
+
createdAt: string;
|
|
778
|
+
updatedAt: string;
|
|
779
|
+
version: number;
|
|
780
|
+
agentClientLinks: {
|
|
781
|
+
agentId: string;
|
|
782
|
+
};
|
|
783
|
+
blacklistReason?: string | null | undefined;
|
|
784
|
+
}[];
|
|
785
|
+
totalCount: number;
|
|
786
|
+
limit: number;
|
|
787
|
+
skip: number;
|
|
788
|
+
currentPage: number;
|
|
789
|
+
totalPages: number;
|
|
790
|
+
}>;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
autocomplete: {
|
|
794
|
+
query: z.ZodObject<{
|
|
795
|
+
search: z.ZodOptional<z.ZodString>;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
search?: string | undefined;
|
|
798
|
+
}, {
|
|
799
|
+
search?: string | undefined;
|
|
800
|
+
}>;
|
|
801
|
+
summary: "Get clients for autocomplete";
|
|
802
|
+
method: "GET";
|
|
803
|
+
path: "/v2/clients/autocomplete";
|
|
804
|
+
responses: {
|
|
805
|
+
400: z.ZodObject<{
|
|
215
806
|
statusCode: z.ZodNumber;
|
|
216
807
|
message: z.ZodString;
|
|
217
808
|
code: z.ZodString;
|
|
@@ -219,8 +810,24 @@ declare const clientsContractConfig: {
|
|
|
219
810
|
timestamp: z.ZodString;
|
|
220
811
|
path: z.ZodString;
|
|
221
812
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
222
|
-
}, z.
|
|
223
|
-
|
|
813
|
+
}, "strip", z.ZodTypeAny, {
|
|
814
|
+
statusCode: number;
|
|
815
|
+
message: string;
|
|
816
|
+
code: string;
|
|
817
|
+
timestamp: string;
|
|
818
|
+
path: string;
|
|
819
|
+
details?: unknown;
|
|
820
|
+
correlationId?: string | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
statusCode: number;
|
|
823
|
+
message: string;
|
|
824
|
+
code: string;
|
|
825
|
+
timestamp: string;
|
|
826
|
+
path: string;
|
|
827
|
+
details?: unknown;
|
|
828
|
+
correlationId?: string | undefined;
|
|
829
|
+
}>;
|
|
830
|
+
401: z.ZodObject<{
|
|
224
831
|
statusCode: z.ZodNumber;
|
|
225
832
|
message: z.ZodString;
|
|
226
833
|
code: z.ZodString;
|
|
@@ -228,8 +835,24 @@ declare const clientsContractConfig: {
|
|
|
228
835
|
timestamp: z.ZodString;
|
|
229
836
|
path: z.ZodString;
|
|
230
837
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
231
|
-
}, z.
|
|
232
|
-
|
|
838
|
+
}, "strip", z.ZodTypeAny, {
|
|
839
|
+
statusCode: number;
|
|
840
|
+
message: string;
|
|
841
|
+
code: string;
|
|
842
|
+
timestamp: string;
|
|
843
|
+
path: string;
|
|
844
|
+
details?: unknown;
|
|
845
|
+
correlationId?: string | undefined;
|
|
846
|
+
}, {
|
|
847
|
+
statusCode: number;
|
|
848
|
+
message: string;
|
|
849
|
+
code: string;
|
|
850
|
+
timestamp: string;
|
|
851
|
+
path: string;
|
|
852
|
+
details?: unknown;
|
|
853
|
+
correlationId?: string | undefined;
|
|
854
|
+
}>;
|
|
855
|
+
403: z.ZodObject<{
|
|
233
856
|
statusCode: z.ZodNumber;
|
|
234
857
|
message: z.ZodString;
|
|
235
858
|
code: z.ZodString;
|
|
@@ -237,8 +860,24 @@ declare const clientsContractConfig: {
|
|
|
237
860
|
timestamp: z.ZodString;
|
|
238
861
|
path: z.ZodString;
|
|
239
862
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
240
|
-
}, z.
|
|
241
|
-
|
|
863
|
+
}, "strip", z.ZodTypeAny, {
|
|
864
|
+
statusCode: number;
|
|
865
|
+
message: string;
|
|
866
|
+
code: string;
|
|
867
|
+
timestamp: string;
|
|
868
|
+
path: string;
|
|
869
|
+
details?: unknown;
|
|
870
|
+
correlationId?: string | undefined;
|
|
871
|
+
}, {
|
|
872
|
+
statusCode: number;
|
|
873
|
+
message: string;
|
|
874
|
+
code: string;
|
|
875
|
+
timestamp: string;
|
|
876
|
+
path: string;
|
|
877
|
+
details?: unknown;
|
|
878
|
+
correlationId?: string | undefined;
|
|
879
|
+
}>;
|
|
880
|
+
500: z.ZodObject<{
|
|
242
881
|
statusCode: z.ZodNumber;
|
|
243
882
|
message: z.ZodString;
|
|
244
883
|
code: z.ZodString;
|
|
@@ -246,29 +885,48 @@ declare const clientsContractConfig: {
|
|
|
246
885
|
timestamp: z.ZodString;
|
|
247
886
|
path: z.ZodString;
|
|
248
887
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
249
|
-
}, z.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
readonly 200: z.ZodArray<z.ZodObject<{
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
|
+
statusCode: number;
|
|
890
|
+
message: string;
|
|
891
|
+
code: string;
|
|
892
|
+
timestamp: string;
|
|
893
|
+
path: string;
|
|
894
|
+
details?: unknown;
|
|
895
|
+
correlationId?: string | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
statusCode: number;
|
|
898
|
+
message: string;
|
|
899
|
+
code: string;
|
|
900
|
+
timestamp: string;
|
|
901
|
+
path: string;
|
|
902
|
+
details?: unknown;
|
|
903
|
+
correlationId?: string | undefined;
|
|
904
|
+
}>;
|
|
905
|
+
200: z.ZodArray<z.ZodObject<{
|
|
268
906
|
id: z.ZodString;
|
|
269
907
|
name: z.ZodString;
|
|
270
|
-
}, z.
|
|
271
|
-
|
|
908
|
+
}, "strip", z.ZodTypeAny, {
|
|
909
|
+
id: string;
|
|
910
|
+
name: string;
|
|
911
|
+
}, {
|
|
912
|
+
id: string;
|
|
913
|
+
name: string;
|
|
914
|
+
}>, "many">;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
findOne: {
|
|
918
|
+
pathParams: z.ZodObject<{
|
|
919
|
+
id: z.ZodString;
|
|
920
|
+
}, "strip", z.ZodTypeAny, {
|
|
921
|
+
id: string;
|
|
922
|
+
}, {
|
|
923
|
+
id: string;
|
|
924
|
+
}>;
|
|
925
|
+
summary: "Get a client by ID";
|
|
926
|
+
method: "GET";
|
|
927
|
+
path: "/v2/clients/:id";
|
|
928
|
+
responses: {
|
|
929
|
+
400: z.ZodObject<{
|
|
272
930
|
statusCode: z.ZodNumber;
|
|
273
931
|
message: z.ZodString;
|
|
274
932
|
code: z.ZodString;
|
|
@@ -276,8 +934,24 @@ declare const clientsContractConfig: {
|
|
|
276
934
|
timestamp: z.ZodString;
|
|
277
935
|
path: z.ZodString;
|
|
278
936
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
279
|
-
}, z.
|
|
280
|
-
|
|
937
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
statusCode: number;
|
|
939
|
+
message: string;
|
|
940
|
+
code: string;
|
|
941
|
+
timestamp: string;
|
|
942
|
+
path: string;
|
|
943
|
+
details?: unknown;
|
|
944
|
+
correlationId?: string | undefined;
|
|
945
|
+
}, {
|
|
946
|
+
statusCode: number;
|
|
947
|
+
message: string;
|
|
948
|
+
code: string;
|
|
949
|
+
timestamp: string;
|
|
950
|
+
path: string;
|
|
951
|
+
details?: unknown;
|
|
952
|
+
correlationId?: string | undefined;
|
|
953
|
+
}>;
|
|
954
|
+
401: z.ZodObject<{
|
|
281
955
|
statusCode: z.ZodNumber;
|
|
282
956
|
message: z.ZodString;
|
|
283
957
|
code: z.ZodString;
|
|
@@ -285,8 +959,24 @@ declare const clientsContractConfig: {
|
|
|
285
959
|
timestamp: z.ZodString;
|
|
286
960
|
path: z.ZodString;
|
|
287
961
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
288
|
-
}, z.
|
|
289
|
-
|
|
962
|
+
}, "strip", z.ZodTypeAny, {
|
|
963
|
+
statusCode: number;
|
|
964
|
+
message: string;
|
|
965
|
+
code: string;
|
|
966
|
+
timestamp: string;
|
|
967
|
+
path: string;
|
|
968
|
+
details?: unknown;
|
|
969
|
+
correlationId?: string | undefined;
|
|
970
|
+
}, {
|
|
971
|
+
statusCode: number;
|
|
972
|
+
message: string;
|
|
973
|
+
code: string;
|
|
974
|
+
timestamp: string;
|
|
975
|
+
path: string;
|
|
976
|
+
details?: unknown;
|
|
977
|
+
correlationId?: string | undefined;
|
|
978
|
+
}>;
|
|
979
|
+
403: z.ZodObject<{
|
|
290
980
|
statusCode: z.ZodNumber;
|
|
291
981
|
message: z.ZodString;
|
|
292
982
|
code: z.ZodString;
|
|
@@ -294,8 +984,24 @@ declare const clientsContractConfig: {
|
|
|
294
984
|
timestamp: z.ZodString;
|
|
295
985
|
path: z.ZodString;
|
|
296
986
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
297
|
-
}, z.
|
|
298
|
-
|
|
987
|
+
}, "strip", z.ZodTypeAny, {
|
|
988
|
+
statusCode: number;
|
|
989
|
+
message: string;
|
|
990
|
+
code: string;
|
|
991
|
+
timestamp: string;
|
|
992
|
+
path: string;
|
|
993
|
+
details?: unknown;
|
|
994
|
+
correlationId?: string | undefined;
|
|
995
|
+
}, {
|
|
996
|
+
statusCode: number;
|
|
997
|
+
message: string;
|
|
998
|
+
code: string;
|
|
999
|
+
timestamp: string;
|
|
1000
|
+
path: string;
|
|
1001
|
+
details?: unknown;
|
|
1002
|
+
correlationId?: string | undefined;
|
|
1003
|
+
}>;
|
|
1004
|
+
500: z.ZodObject<{
|
|
299
1005
|
statusCode: z.ZodNumber;
|
|
300
1006
|
message: z.ZodString;
|
|
301
1007
|
code: z.ZodString;
|
|
@@ -303,43 +1009,99 @@ declare const clientsContractConfig: {
|
|
|
303
1009
|
timestamp: z.ZodString;
|
|
304
1010
|
path: z.ZodString;
|
|
305
1011
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
306
|
-
}, z.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
1012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
statusCode: number;
|
|
1014
|
+
message: string;
|
|
1015
|
+
code: string;
|
|
1016
|
+
timestamp: string;
|
|
1017
|
+
path: string;
|
|
1018
|
+
details?: unknown;
|
|
1019
|
+
correlationId?: string | undefined;
|
|
1020
|
+
}, {
|
|
1021
|
+
statusCode: number;
|
|
1022
|
+
message: string;
|
|
1023
|
+
code: string;
|
|
1024
|
+
timestamp: string;
|
|
1025
|
+
path: string;
|
|
1026
|
+
details?: unknown;
|
|
1027
|
+
correlationId?: string | undefined;
|
|
1028
|
+
}>;
|
|
1029
|
+
200: z.ZodObject<{
|
|
1030
|
+
id: z.ZodString;
|
|
319
1031
|
name: z.ZodString;
|
|
320
1032
|
crn: z.ZodString;
|
|
321
|
-
govLink: z.
|
|
322
|
-
status: z.ZodEnum<
|
|
323
|
-
APPROVED: "APPROVED";
|
|
324
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
325
|
-
BLACKLISTED: "BLACKLISTED";
|
|
326
|
-
}>;
|
|
1033
|
+
govLink: z.ZodString;
|
|
1034
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
327
1035
|
director: z.ZodString;
|
|
328
1036
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
1037
|
lastUpdatedBy: z.ZodObject<{
|
|
330
|
-
id: z.
|
|
1038
|
+
id: z.ZodString;
|
|
331
1039
|
firstName: z.ZodString;
|
|
332
1040
|
lastName: z.ZodString;
|
|
333
|
-
email: z.
|
|
334
|
-
}, z.
|
|
335
|
-
|
|
336
|
-
|
|
1041
|
+
email: z.ZodString;
|
|
1042
|
+
}, "strip", z.ZodTypeAny, {
|
|
1043
|
+
id: string;
|
|
1044
|
+
firstName: string;
|
|
1045
|
+
lastName: string;
|
|
1046
|
+
email: string;
|
|
1047
|
+
}, {
|
|
1048
|
+
id: string;
|
|
1049
|
+
firstName: string;
|
|
1050
|
+
lastName: string;
|
|
1051
|
+
email: string;
|
|
1052
|
+
}>;
|
|
1053
|
+
createdAt: z.ZodString;
|
|
1054
|
+
updatedAt: z.ZodString;
|
|
337
1055
|
version: z.ZodNumber;
|
|
338
1056
|
agentClientLinks: z.ZodObject<{
|
|
339
1057
|
agentId: z.ZodString;
|
|
340
|
-
}, z.
|
|
341
|
-
|
|
342
|
-
|
|
1058
|
+
}, "strip", z.ZodTypeAny, {
|
|
1059
|
+
agentId: string;
|
|
1060
|
+
}, {
|
|
1061
|
+
agentId: string;
|
|
1062
|
+
}>;
|
|
1063
|
+
}, "strip", z.ZodTypeAny, {
|
|
1064
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
crn: string;
|
|
1068
|
+
govLink: string;
|
|
1069
|
+
director: string;
|
|
1070
|
+
lastUpdatedBy: {
|
|
1071
|
+
id: string;
|
|
1072
|
+
firstName: string;
|
|
1073
|
+
lastName: string;
|
|
1074
|
+
email: string;
|
|
1075
|
+
};
|
|
1076
|
+
createdAt: string;
|
|
1077
|
+
updatedAt: string;
|
|
1078
|
+
version: number;
|
|
1079
|
+
agentClientLinks: {
|
|
1080
|
+
agentId: string;
|
|
1081
|
+
};
|
|
1082
|
+
blacklistReason?: string | null | undefined;
|
|
1083
|
+
}, {
|
|
1084
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1085
|
+
id: string;
|
|
1086
|
+
name: string;
|
|
1087
|
+
crn: string;
|
|
1088
|
+
govLink: string;
|
|
1089
|
+
director: string;
|
|
1090
|
+
lastUpdatedBy: {
|
|
1091
|
+
id: string;
|
|
1092
|
+
firstName: string;
|
|
1093
|
+
lastName: string;
|
|
1094
|
+
email: string;
|
|
1095
|
+
};
|
|
1096
|
+
createdAt: string;
|
|
1097
|
+
updatedAt: string;
|
|
1098
|
+
version: number;
|
|
1099
|
+
agentClientLinks: {
|
|
1100
|
+
agentId: string;
|
|
1101
|
+
};
|
|
1102
|
+
blacklistReason?: string | null | undefined;
|
|
1103
|
+
}>;
|
|
1104
|
+
404: z.ZodObject<{
|
|
343
1105
|
statusCode: z.ZodNumber;
|
|
344
1106
|
message: z.ZodString;
|
|
345
1107
|
code: z.ZodString;
|
|
@@ -347,8 +1109,69 @@ declare const clientsContractConfig: {
|
|
|
347
1109
|
timestamp: z.ZodString;
|
|
348
1110
|
path: z.ZodString;
|
|
349
1111
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
350
|
-
}, z.
|
|
351
|
-
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
statusCode: number;
|
|
1114
|
+
message: string;
|
|
1115
|
+
code: string;
|
|
1116
|
+
timestamp: string;
|
|
1117
|
+
path: string;
|
|
1118
|
+
details?: unknown;
|
|
1119
|
+
correlationId?: string | undefined;
|
|
1120
|
+
}, {
|
|
1121
|
+
statusCode: number;
|
|
1122
|
+
message: string;
|
|
1123
|
+
code: string;
|
|
1124
|
+
timestamp: string;
|
|
1125
|
+
path: string;
|
|
1126
|
+
details?: unknown;
|
|
1127
|
+
correlationId?: string | undefined;
|
|
1128
|
+
}>;
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
update: {
|
|
1132
|
+
pathParams: z.ZodObject<{
|
|
1133
|
+
id: z.ZodString;
|
|
1134
|
+
}, "strip", z.ZodTypeAny, {
|
|
1135
|
+
id: string;
|
|
1136
|
+
}, {
|
|
1137
|
+
id: string;
|
|
1138
|
+
}>;
|
|
1139
|
+
summary: "Update a client";
|
|
1140
|
+
method: "PATCH";
|
|
1141
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
1142
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
govLink: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
director: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
1146
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1147
|
+
}, "strip", z.ZodTypeAny, {
|
|
1148
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1149
|
+
name?: string | undefined;
|
|
1150
|
+
govLink?: string | undefined;
|
|
1151
|
+
director?: string | undefined;
|
|
1152
|
+
blacklistReason?: string | null | undefined;
|
|
1153
|
+
}, {
|
|
1154
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1155
|
+
name?: string | undefined;
|
|
1156
|
+
govLink?: string | undefined;
|
|
1157
|
+
director?: string | undefined;
|
|
1158
|
+
blacklistReason?: string | null | undefined;
|
|
1159
|
+
}>, {
|
|
1160
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1161
|
+
name?: string | undefined;
|
|
1162
|
+
govLink?: string | undefined;
|
|
1163
|
+
director?: string | undefined;
|
|
1164
|
+
blacklistReason?: string | null | undefined;
|
|
1165
|
+
}, {
|
|
1166
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1167
|
+
name?: string | undefined;
|
|
1168
|
+
govLink?: string | undefined;
|
|
1169
|
+
director?: string | undefined;
|
|
1170
|
+
blacklistReason?: string | null | undefined;
|
|
1171
|
+
}>;
|
|
1172
|
+
path: "/v2/clients/:id";
|
|
1173
|
+
responses: {
|
|
1174
|
+
400: z.ZodObject<{
|
|
352
1175
|
statusCode: z.ZodNumber;
|
|
353
1176
|
message: z.ZodString;
|
|
354
1177
|
code: z.ZodString;
|
|
@@ -356,8 +1179,24 @@ declare const clientsContractConfig: {
|
|
|
356
1179
|
timestamp: z.ZodString;
|
|
357
1180
|
path: z.ZodString;
|
|
358
1181
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
359
|
-
}, z.
|
|
360
|
-
|
|
1182
|
+
}, "strip", z.ZodTypeAny, {
|
|
1183
|
+
statusCode: number;
|
|
1184
|
+
message: string;
|
|
1185
|
+
code: string;
|
|
1186
|
+
timestamp: string;
|
|
1187
|
+
path: string;
|
|
1188
|
+
details?: unknown;
|
|
1189
|
+
correlationId?: string | undefined;
|
|
1190
|
+
}, {
|
|
1191
|
+
statusCode: number;
|
|
1192
|
+
message: string;
|
|
1193
|
+
code: string;
|
|
1194
|
+
timestamp: string;
|
|
1195
|
+
path: string;
|
|
1196
|
+
details?: unknown;
|
|
1197
|
+
correlationId?: string | undefined;
|
|
1198
|
+
}>;
|
|
1199
|
+
401: z.ZodObject<{
|
|
361
1200
|
statusCode: z.ZodNumber;
|
|
362
1201
|
message: z.ZodString;
|
|
363
1202
|
code: z.ZodString;
|
|
@@ -365,8 +1204,24 @@ declare const clientsContractConfig: {
|
|
|
365
1204
|
timestamp: z.ZodString;
|
|
366
1205
|
path: z.ZodString;
|
|
367
1206
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
368
|
-
}, z.
|
|
369
|
-
|
|
1207
|
+
}, "strip", z.ZodTypeAny, {
|
|
1208
|
+
statusCode: number;
|
|
1209
|
+
message: string;
|
|
1210
|
+
code: string;
|
|
1211
|
+
timestamp: string;
|
|
1212
|
+
path: string;
|
|
1213
|
+
details?: unknown;
|
|
1214
|
+
correlationId?: string | undefined;
|
|
1215
|
+
}, {
|
|
1216
|
+
statusCode: number;
|
|
1217
|
+
message: string;
|
|
1218
|
+
code: string;
|
|
1219
|
+
timestamp: string;
|
|
1220
|
+
path: string;
|
|
1221
|
+
details?: unknown;
|
|
1222
|
+
correlationId?: string | undefined;
|
|
1223
|
+
}>;
|
|
1224
|
+
403: z.ZodObject<{
|
|
370
1225
|
statusCode: z.ZodNumber;
|
|
371
1226
|
message: z.ZodString;
|
|
372
1227
|
code: z.ZodString;
|
|
@@ -374,8 +1229,24 @@ declare const clientsContractConfig: {
|
|
|
374
1229
|
timestamp: z.ZodString;
|
|
375
1230
|
path: z.ZodString;
|
|
376
1231
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
377
|
-
}, z.
|
|
378
|
-
|
|
1232
|
+
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
statusCode: number;
|
|
1234
|
+
message: string;
|
|
1235
|
+
code: string;
|
|
1236
|
+
timestamp: string;
|
|
1237
|
+
path: string;
|
|
1238
|
+
details?: unknown;
|
|
1239
|
+
correlationId?: string | undefined;
|
|
1240
|
+
}, {
|
|
1241
|
+
statusCode: number;
|
|
1242
|
+
message: string;
|
|
1243
|
+
code: string;
|
|
1244
|
+
timestamp: string;
|
|
1245
|
+
path: string;
|
|
1246
|
+
details?: unknown;
|
|
1247
|
+
correlationId?: string | undefined;
|
|
1248
|
+
}>;
|
|
1249
|
+
500: z.ZodObject<{
|
|
379
1250
|
statusCode: z.ZodNumber;
|
|
380
1251
|
message: z.ZodString;
|
|
381
1252
|
code: z.ZodString;
|
|
@@ -383,79 +1254,99 @@ declare const clientsContractConfig: {
|
|
|
383
1254
|
timestamp: z.ZodString;
|
|
384
1255
|
path: z.ZodString;
|
|
385
1256
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
386
|
-
}, z.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
1257
|
+
}, "strip", z.ZodTypeAny, {
|
|
1258
|
+
statusCode: number;
|
|
1259
|
+
message: string;
|
|
1260
|
+
code: string;
|
|
1261
|
+
timestamp: string;
|
|
1262
|
+
path: string;
|
|
1263
|
+
details?: unknown;
|
|
1264
|
+
correlationId?: string | undefined;
|
|
1265
|
+
}, {
|
|
1266
|
+
statusCode: number;
|
|
1267
|
+
message: string;
|
|
1268
|
+
code: string;
|
|
1269
|
+
timestamp: string;
|
|
1270
|
+
path: string;
|
|
1271
|
+
details?: unknown;
|
|
1272
|
+
correlationId?: string | undefined;
|
|
1273
|
+
}>;
|
|
1274
|
+
200: z.ZodObject<{
|
|
1275
|
+
id: z.ZodString;
|
|
399
1276
|
name: z.ZodString;
|
|
400
1277
|
crn: z.ZodString;
|
|
401
|
-
govLink: z.
|
|
402
|
-
status: z.ZodEnum<
|
|
403
|
-
APPROVED: "APPROVED";
|
|
404
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
405
|
-
BLACKLISTED: "BLACKLISTED";
|
|
406
|
-
}>;
|
|
1278
|
+
govLink: z.ZodString;
|
|
1279
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
407
1280
|
director: z.ZodString;
|
|
408
1281
|
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
1282
|
lastUpdatedBy: z.ZodObject<{
|
|
410
|
-
id: z.
|
|
1283
|
+
id: z.ZodString;
|
|
411
1284
|
firstName: z.ZodString;
|
|
412
1285
|
lastName: z.ZodString;
|
|
413
|
-
email: z.
|
|
414
|
-
}, z.
|
|
415
|
-
|
|
416
|
-
|
|
1286
|
+
email: z.ZodString;
|
|
1287
|
+
}, "strip", z.ZodTypeAny, {
|
|
1288
|
+
id: string;
|
|
1289
|
+
firstName: string;
|
|
1290
|
+
lastName: string;
|
|
1291
|
+
email: string;
|
|
1292
|
+
}, {
|
|
1293
|
+
id: string;
|
|
1294
|
+
firstName: string;
|
|
1295
|
+
lastName: string;
|
|
1296
|
+
email: string;
|
|
1297
|
+
}>;
|
|
1298
|
+
createdAt: z.ZodString;
|
|
1299
|
+
updatedAt: z.ZodString;
|
|
417
1300
|
version: z.ZodNumber;
|
|
418
1301
|
agentClientLinks: z.ZodObject<{
|
|
419
1302
|
agentId: z.ZodString;
|
|
420
|
-
}, z.
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
1303
|
+
}, "strip", z.ZodTypeAny, {
|
|
1304
|
+
agentId: string;
|
|
1305
|
+
}, {
|
|
1306
|
+
agentId: string;
|
|
1307
|
+
}>;
|
|
1308
|
+
}, "strip", z.ZodTypeAny, {
|
|
1309
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1310
|
+
id: string;
|
|
1311
|
+
name: string;
|
|
1312
|
+
crn: string;
|
|
1313
|
+
govLink: string;
|
|
1314
|
+
director: string;
|
|
1315
|
+
lastUpdatedBy: {
|
|
1316
|
+
id: string;
|
|
1317
|
+
firstName: string;
|
|
1318
|
+
lastName: string;
|
|
1319
|
+
email: string;
|
|
1320
|
+
};
|
|
1321
|
+
createdAt: string;
|
|
1322
|
+
updatedAt: string;
|
|
1323
|
+
version: number;
|
|
1324
|
+
agentClientLinks: {
|
|
1325
|
+
agentId: string;
|
|
1326
|
+
};
|
|
1327
|
+
blacklistReason?: string | null | undefined;
|
|
1328
|
+
}, {
|
|
1329
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1330
|
+
id: string;
|
|
1331
|
+
name: string;
|
|
1332
|
+
crn: string;
|
|
1333
|
+
govLink: string;
|
|
1334
|
+
director: string;
|
|
1335
|
+
lastUpdatedBy: {
|
|
1336
|
+
id: string;
|
|
1337
|
+
firstName: string;
|
|
1338
|
+
lastName: string;
|
|
1339
|
+
email: string;
|
|
1340
|
+
};
|
|
1341
|
+
createdAt: string;
|
|
1342
|
+
updatedAt: string;
|
|
1343
|
+
version: number;
|
|
1344
|
+
agentClientLinks: {
|
|
1345
|
+
agentId: string;
|
|
1346
|
+
};
|
|
1347
|
+
blacklistReason?: string | null | undefined;
|
|
1348
|
+
}>;
|
|
1349
|
+
404: z.ZodObject<{
|
|
459
1350
|
statusCode: z.ZodNumber;
|
|
460
1351
|
message: z.ZodString;
|
|
461
1352
|
code: z.ZodString;
|
|
@@ -463,8 +1354,24 @@ declare const clientsContractConfig: {
|
|
|
463
1354
|
timestamp: z.ZodString;
|
|
464
1355
|
path: z.ZodString;
|
|
465
1356
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
466
|
-
}, z.
|
|
467
|
-
|
|
1357
|
+
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
statusCode: number;
|
|
1359
|
+
message: string;
|
|
1360
|
+
code: string;
|
|
1361
|
+
timestamp: string;
|
|
1362
|
+
path: string;
|
|
1363
|
+
details?: unknown;
|
|
1364
|
+
correlationId?: string | undefined;
|
|
1365
|
+
}, {
|
|
1366
|
+
statusCode: number;
|
|
1367
|
+
message: string;
|
|
1368
|
+
code: string;
|
|
1369
|
+
timestamp: string;
|
|
1370
|
+
path: string;
|
|
1371
|
+
details?: unknown;
|
|
1372
|
+
correlationId?: string | undefined;
|
|
1373
|
+
}>;
|
|
1374
|
+
409: z.ZodObject<{
|
|
468
1375
|
statusCode: z.ZodNumber;
|
|
469
1376
|
message: z.ZodString;
|
|
470
1377
|
code: z.ZodString;
|
|
@@ -472,30 +1379,39 @@ declare const clientsContractConfig: {
|
|
|
472
1379
|
timestamp: z.ZodString;
|
|
473
1380
|
path: z.ZodString;
|
|
474
1381
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
475
|
-
}, z.
|
|
1382
|
+
}, "strip", z.ZodTypeAny, {
|
|
1383
|
+
statusCode: number;
|
|
1384
|
+
message: string;
|
|
1385
|
+
code: string;
|
|
1386
|
+
timestamp: string;
|
|
1387
|
+
path: string;
|
|
1388
|
+
details?: unknown;
|
|
1389
|
+
correlationId?: string | undefined;
|
|
1390
|
+
}, {
|
|
1391
|
+
statusCode: number;
|
|
1392
|
+
message: string;
|
|
1393
|
+
code: string;
|
|
1394
|
+
timestamp: string;
|
|
1395
|
+
path: string;
|
|
1396
|
+
details?: unknown;
|
|
1397
|
+
correlationId?: string | undefined;
|
|
1398
|
+
}>;
|
|
476
1399
|
};
|
|
477
|
-
readonly pathParams: z.ZodObject<{
|
|
478
|
-
id: z.ZodUUID;
|
|
479
|
-
}, z.core.$strip>;
|
|
480
|
-
readonly body: z.ZodObject<{
|
|
481
|
-
name: z.ZodOptional<z.ZodString>;
|
|
482
|
-
govLink: z.ZodOptional<z.ZodURL>;
|
|
483
|
-
director: z.ZodOptional<z.ZodString>;
|
|
484
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
485
|
-
APPROVED: "APPROVED";
|
|
486
|
-
PENDING_VERIFICATION: "PENDING_VERIFICATION";
|
|
487
|
-
BLACKLISTED: "BLACKLISTED";
|
|
488
|
-
}>>;
|
|
489
|
-
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
|
-
}, z.core.$strip>;
|
|
491
|
-
readonly summary: "Update a client";
|
|
492
1400
|
};
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
1401
|
+
remove: {
|
|
1402
|
+
pathParams: z.ZodObject<{
|
|
1403
|
+
id: z.ZodString;
|
|
1404
|
+
}, "strip", z.ZodTypeAny, {
|
|
1405
|
+
id: string;
|
|
1406
|
+
}, {
|
|
1407
|
+
id: string;
|
|
1408
|
+
}>;
|
|
1409
|
+
summary: "Delete a client";
|
|
1410
|
+
method: "DELETE";
|
|
1411
|
+
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1412
|
+
path: "/v2/clients/:id";
|
|
1413
|
+
responses: {
|
|
1414
|
+
400: z.ZodObject<{
|
|
499
1415
|
statusCode: z.ZodNumber;
|
|
500
1416
|
message: z.ZodString;
|
|
501
1417
|
code: z.ZodString;
|
|
@@ -503,8 +1419,24 @@ declare const clientsContractConfig: {
|
|
|
503
1419
|
timestamp: z.ZodString;
|
|
504
1420
|
path: z.ZodString;
|
|
505
1421
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
506
|
-
}, z.
|
|
507
|
-
|
|
1422
|
+
}, "strip", z.ZodTypeAny, {
|
|
1423
|
+
statusCode: number;
|
|
1424
|
+
message: string;
|
|
1425
|
+
code: string;
|
|
1426
|
+
timestamp: string;
|
|
1427
|
+
path: string;
|
|
1428
|
+
details?: unknown;
|
|
1429
|
+
correlationId?: string | undefined;
|
|
1430
|
+
}, {
|
|
1431
|
+
statusCode: number;
|
|
1432
|
+
message: string;
|
|
1433
|
+
code: string;
|
|
1434
|
+
timestamp: string;
|
|
1435
|
+
path: string;
|
|
1436
|
+
details?: unknown;
|
|
1437
|
+
correlationId?: string | undefined;
|
|
1438
|
+
}>;
|
|
1439
|
+
401: z.ZodObject<{
|
|
508
1440
|
statusCode: z.ZodNumber;
|
|
509
1441
|
message: z.ZodString;
|
|
510
1442
|
code: z.ZodString;
|
|
@@ -512,8 +1444,24 @@ declare const clientsContractConfig: {
|
|
|
512
1444
|
timestamp: z.ZodString;
|
|
513
1445
|
path: z.ZodString;
|
|
514
1446
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
515
|
-
}, z.
|
|
516
|
-
|
|
1447
|
+
}, "strip", z.ZodTypeAny, {
|
|
1448
|
+
statusCode: number;
|
|
1449
|
+
message: string;
|
|
1450
|
+
code: string;
|
|
1451
|
+
timestamp: string;
|
|
1452
|
+
path: string;
|
|
1453
|
+
details?: unknown;
|
|
1454
|
+
correlationId?: string | undefined;
|
|
1455
|
+
}, {
|
|
1456
|
+
statusCode: number;
|
|
1457
|
+
message: string;
|
|
1458
|
+
code: string;
|
|
1459
|
+
timestamp: string;
|
|
1460
|
+
path: string;
|
|
1461
|
+
details?: unknown;
|
|
1462
|
+
correlationId?: string | undefined;
|
|
1463
|
+
}>;
|
|
1464
|
+
403: z.ZodObject<{
|
|
517
1465
|
statusCode: z.ZodNumber;
|
|
518
1466
|
message: z.ZodString;
|
|
519
1467
|
code: z.ZodString;
|
|
@@ -521,8 +1469,24 @@ declare const clientsContractConfig: {
|
|
|
521
1469
|
timestamp: z.ZodString;
|
|
522
1470
|
path: z.ZodString;
|
|
523
1471
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
524
|
-
}, z.
|
|
525
|
-
|
|
1472
|
+
}, "strip", z.ZodTypeAny, {
|
|
1473
|
+
statusCode: number;
|
|
1474
|
+
message: string;
|
|
1475
|
+
code: string;
|
|
1476
|
+
timestamp: string;
|
|
1477
|
+
path: string;
|
|
1478
|
+
details?: unknown;
|
|
1479
|
+
correlationId?: string | undefined;
|
|
1480
|
+
}, {
|
|
1481
|
+
statusCode: number;
|
|
1482
|
+
message: string;
|
|
1483
|
+
code: string;
|
|
1484
|
+
timestamp: string;
|
|
1485
|
+
path: string;
|
|
1486
|
+
details?: unknown;
|
|
1487
|
+
correlationId?: string | undefined;
|
|
1488
|
+
}>;
|
|
1489
|
+
500: z.ZodObject<{
|
|
526
1490
|
statusCode: z.ZodNumber;
|
|
527
1491
|
message: z.ZodString;
|
|
528
1492
|
code: z.ZodString;
|
|
@@ -530,8 +1494,25 @@ declare const clientsContractConfig: {
|
|
|
530
1494
|
timestamp: z.ZodString;
|
|
531
1495
|
path: z.ZodString;
|
|
532
1496
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
533
|
-
}, z.
|
|
534
|
-
|
|
1497
|
+
}, "strip", z.ZodTypeAny, {
|
|
1498
|
+
statusCode: number;
|
|
1499
|
+
message: string;
|
|
1500
|
+
code: string;
|
|
1501
|
+
timestamp: string;
|
|
1502
|
+
path: string;
|
|
1503
|
+
details?: unknown;
|
|
1504
|
+
correlationId?: string | undefined;
|
|
1505
|
+
}, {
|
|
1506
|
+
statusCode: number;
|
|
1507
|
+
message: string;
|
|
1508
|
+
code: string;
|
|
1509
|
+
timestamp: string;
|
|
1510
|
+
path: string;
|
|
1511
|
+
details?: unknown;
|
|
1512
|
+
correlationId?: string | undefined;
|
|
1513
|
+
}>;
|
|
1514
|
+
204: typeof import("@ts-rest/core").ContractNoBody;
|
|
1515
|
+
404: z.ZodObject<{
|
|
535
1516
|
statusCode: z.ZodNumber;
|
|
536
1517
|
message: z.ZodString;
|
|
537
1518
|
code: z.ZodString;
|
|
@@ -539,15 +1520,24 @@ declare const clientsContractConfig: {
|
|
|
539
1520
|
timestamp: z.ZodString;
|
|
540
1521
|
path: z.ZodString;
|
|
541
1522
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
542
|
-
}, z.
|
|
1523
|
+
}, "strip", z.ZodTypeAny, {
|
|
1524
|
+
statusCode: number;
|
|
1525
|
+
message: string;
|
|
1526
|
+
code: string;
|
|
1527
|
+
timestamp: string;
|
|
1528
|
+
path: string;
|
|
1529
|
+
details?: unknown;
|
|
1530
|
+
correlationId?: string | undefined;
|
|
1531
|
+
}, {
|
|
1532
|
+
statusCode: number;
|
|
1533
|
+
message: string;
|
|
1534
|
+
code: string;
|
|
1535
|
+
timestamp: string;
|
|
1536
|
+
path: string;
|
|
1537
|
+
details?: unknown;
|
|
1538
|
+
correlationId?: string | undefined;
|
|
1539
|
+
}>;
|
|
543
1540
|
};
|
|
544
|
-
readonly pathParams: z.ZodObject<{
|
|
545
|
-
id: z.ZodUUID;
|
|
546
|
-
}, z.core.$strip>;
|
|
547
|
-
readonly body: z.ZodUndefined;
|
|
548
|
-
readonly summary: "Delete a client";
|
|
549
1541
|
};
|
|
550
1542
|
};
|
|
551
|
-
export declare const clientsContract: typeof clientsContractConfig;
|
|
552
|
-
export {};
|
|
553
1543
|
//# sourceMappingURL=clients.contract.d.ts.map
|