@dakkitor/api-contracts 1.1.4 → 1.1.5
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 +187 -187
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +12 -6
- package/dist/clients/clients.contract.d.ts +153 -93
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +67 -19
- package/dist/common/api-responses.d.ts +105 -0
- package/dist/common/api-responses.d.ts.map +1 -0
- package/dist/common/api-responses.js +107 -0
- package/dist/common/error-schemas.d.ts.map +1 -1
- package/dist/common/error-schemas.js +6 -2
- package/dist/common/openapi-metadata.d.ts +65 -0
- package/dist/common/openapi-metadata.d.ts.map +1 -0
- package/dist/common/openapi-metadata.js +155 -0
- package/dist/index.d.ts +212 -181
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/package.json +7 -5
|
@@ -51,19 +51,19 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
51
51
|
}>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
54
|
-
id: string;
|
|
55
54
|
name: string;
|
|
55
|
+
director: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
id: string;
|
|
56
59
|
crn: string;
|
|
57
60
|
govLink: string;
|
|
58
|
-
director: string;
|
|
59
61
|
lastUpdatedBy: {
|
|
60
62
|
id: string;
|
|
61
63
|
firstName: string;
|
|
62
64
|
lastName: string;
|
|
63
65
|
email: string;
|
|
64
66
|
};
|
|
65
|
-
createdAt: string;
|
|
66
|
-
updatedAt: string;
|
|
67
67
|
version: number;
|
|
68
68
|
agentClientLinks: {
|
|
69
69
|
agentId: string;
|
|
@@ -71,19 +71,19 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
71
71
|
blacklistReason?: string | null | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
74
|
-
id: string;
|
|
75
74
|
name: string;
|
|
75
|
+
director: string;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
id: string;
|
|
76
79
|
crn: string;
|
|
77
80
|
govLink: string;
|
|
78
|
-
director: string;
|
|
79
81
|
lastUpdatedBy: {
|
|
80
82
|
id: string;
|
|
81
83
|
firstName: string;
|
|
82
84
|
lastName: string;
|
|
83
85
|
email: string;
|
|
84
86
|
};
|
|
85
|
-
createdAt: string;
|
|
86
|
-
updatedAt: string;
|
|
87
87
|
version: number;
|
|
88
88
|
agentClientLinks: {
|
|
89
89
|
agentId: string;
|
|
@@ -96,12 +96,12 @@ export declare const CreateClientSchema: z.ZodObject<{
|
|
|
96
96
|
director: z.ZodString;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
name: string;
|
|
99
|
-
govLink: string;
|
|
100
99
|
director: string;
|
|
100
|
+
govLink: string;
|
|
101
101
|
}, {
|
|
102
102
|
name: string;
|
|
103
|
-
govLink: string;
|
|
104
103
|
director: string;
|
|
104
|
+
govLink: string;
|
|
105
105
|
}>;
|
|
106
106
|
export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
107
107
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -112,60 +112,90 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
113
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
114
114
|
name?: string | undefined;
|
|
115
|
-
govLink?: string | undefined;
|
|
116
115
|
director?: string | undefined;
|
|
116
|
+
govLink?: string | undefined;
|
|
117
117
|
blacklistReason?: string | null | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
120
120
|
name?: string | undefined;
|
|
121
|
-
govLink?: string | undefined;
|
|
122
121
|
director?: string | undefined;
|
|
122
|
+
govLink?: string | undefined;
|
|
123
123
|
blacklistReason?: string | null | undefined;
|
|
124
124
|
}>, {
|
|
125
125
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
126
126
|
name?: string | undefined;
|
|
127
|
-
govLink?: string | undefined;
|
|
128
127
|
director?: string | undefined;
|
|
128
|
+
govLink?: string | undefined;
|
|
129
129
|
blacklistReason?: string | null | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
132
132
|
name?: string | undefined;
|
|
133
|
-
govLink?: string | undefined;
|
|
134
133
|
director?: string | undefined;
|
|
134
|
+
govLink?: string | undefined;
|
|
135
135
|
blacklistReason?: string | null | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
138
138
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
139
139
|
page: z.ZodDefault<z.ZodNumber>;
|
|
140
|
-
|
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
|
141
141
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
142
|
+
director: z.ZodOptional<z.ZodString>;
|
|
143
|
+
createdAt: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
from: z.ZodOptional<z.ZodString>;
|
|
145
|
+
to: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
from?: string | undefined;
|
|
148
|
+
to?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
from?: string | undefined;
|
|
151
|
+
to?: string | undefined;
|
|
152
|
+
}>>;
|
|
153
|
+
sortBy: z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>;
|
|
154
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
142
155
|
}, "strip", z.ZodTypeAny, {
|
|
143
156
|
limit: number;
|
|
144
157
|
page: number;
|
|
145
158
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
146
|
-
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
director?: string | undefined;
|
|
161
|
+
createdAt?: {
|
|
162
|
+
from?: string | undefined;
|
|
163
|
+
to?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
|
|
166
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
147
167
|
}, {
|
|
148
168
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
149
169
|
limit?: number | undefined;
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
director?: string | undefined;
|
|
172
|
+
createdAt?: {
|
|
173
|
+
from?: string | undefined;
|
|
174
|
+
to?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
150
176
|
page?: number | undefined;
|
|
151
|
-
|
|
177
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
|
|
178
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
152
179
|
}>;
|
|
153
180
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
154
181
|
id: z.ZodString;
|
|
155
182
|
name: z.ZodString;
|
|
156
183
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
id: string;
|
|
158
184
|
name: string;
|
|
159
|
-
}, {
|
|
160
185
|
id: string;
|
|
186
|
+
}, {
|
|
161
187
|
name: string;
|
|
188
|
+
id: string;
|
|
162
189
|
}>;
|
|
163
190
|
export declare const AutocompleteQuerySchema: z.ZodObject<{
|
|
164
|
-
|
|
191
|
+
query: z.ZodOptional<z.ZodString>;
|
|
192
|
+
id: z.ZodOptional<z.ZodString>;
|
|
165
193
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
|
|
194
|
+
id?: string | undefined;
|
|
195
|
+
query?: string | undefined;
|
|
167
196
|
}, {
|
|
168
|
-
|
|
197
|
+
id?: string | undefined;
|
|
198
|
+
query?: string | undefined;
|
|
169
199
|
}>;
|
|
170
200
|
export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
171
201
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -204,19 +234,19 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
204
234
|
}>;
|
|
205
235
|
}, "strip", z.ZodTypeAny, {
|
|
206
236
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
207
|
-
id: string;
|
|
208
237
|
name: string;
|
|
238
|
+
director: string;
|
|
239
|
+
createdAt: string;
|
|
240
|
+
updatedAt: string;
|
|
241
|
+
id: string;
|
|
209
242
|
crn: string;
|
|
210
243
|
govLink: string;
|
|
211
|
-
director: string;
|
|
212
244
|
lastUpdatedBy: {
|
|
213
245
|
id: string;
|
|
214
246
|
firstName: string;
|
|
215
247
|
lastName: string;
|
|
216
248
|
email: string;
|
|
217
249
|
};
|
|
218
|
-
createdAt: string;
|
|
219
|
-
updatedAt: string;
|
|
220
250
|
version: number;
|
|
221
251
|
agentClientLinks: {
|
|
222
252
|
agentId: string;
|
|
@@ -224,19 +254,19 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
224
254
|
blacklistReason?: string | null | undefined;
|
|
225
255
|
}, {
|
|
226
256
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
227
|
-
id: string;
|
|
228
257
|
name: string;
|
|
258
|
+
director: string;
|
|
259
|
+
createdAt: string;
|
|
260
|
+
updatedAt: string;
|
|
261
|
+
id: string;
|
|
229
262
|
crn: string;
|
|
230
263
|
govLink: string;
|
|
231
|
-
director: string;
|
|
232
264
|
lastUpdatedBy: {
|
|
233
265
|
id: string;
|
|
234
266
|
firstName: string;
|
|
235
267
|
lastName: string;
|
|
236
268
|
email: string;
|
|
237
269
|
};
|
|
238
|
-
createdAt: string;
|
|
239
|
-
updatedAt: string;
|
|
240
270
|
version: number;
|
|
241
271
|
agentClientLinks: {
|
|
242
272
|
agentId: string;
|
|
@@ -251,19 +281,19 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
251
281
|
}, "strip", z.ZodTypeAny, {
|
|
252
282
|
items: {
|
|
253
283
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
254
|
-
id: string;
|
|
255
284
|
name: string;
|
|
285
|
+
director: string;
|
|
286
|
+
createdAt: string;
|
|
287
|
+
updatedAt: string;
|
|
288
|
+
id: string;
|
|
256
289
|
crn: string;
|
|
257
290
|
govLink: string;
|
|
258
|
-
director: string;
|
|
259
291
|
lastUpdatedBy: {
|
|
260
292
|
id: string;
|
|
261
293
|
firstName: string;
|
|
262
294
|
lastName: string;
|
|
263
295
|
email: string;
|
|
264
296
|
};
|
|
265
|
-
createdAt: string;
|
|
266
|
-
updatedAt: string;
|
|
267
297
|
version: number;
|
|
268
298
|
agentClientLinks: {
|
|
269
299
|
agentId: string;
|
|
@@ -278,19 +308,19 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
278
308
|
}, {
|
|
279
309
|
items: {
|
|
280
310
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
281
|
-
id: string;
|
|
282
311
|
name: string;
|
|
312
|
+
director: string;
|
|
313
|
+
createdAt: string;
|
|
314
|
+
updatedAt: string;
|
|
315
|
+
id: string;
|
|
283
316
|
crn: string;
|
|
284
317
|
govLink: string;
|
|
285
|
-
director: string;
|
|
286
318
|
lastUpdatedBy: {
|
|
287
319
|
id: string;
|
|
288
320
|
firstName: string;
|
|
289
321
|
lastName: string;
|
|
290
322
|
email: string;
|
|
291
323
|
};
|
|
292
|
-
createdAt: string;
|
|
293
|
-
updatedAt: string;
|
|
294
324
|
version: number;
|
|
295
325
|
agentClientLinks: {
|
|
296
326
|
agentId: string;
|
|
@@ -320,12 +350,12 @@ export declare const clientsContractRouter: {
|
|
|
320
350
|
director: z.ZodString;
|
|
321
351
|
}, "strip", z.ZodTypeAny, {
|
|
322
352
|
name: string;
|
|
323
|
-
govLink: string;
|
|
324
353
|
director: string;
|
|
354
|
+
govLink: string;
|
|
325
355
|
}, {
|
|
326
356
|
name: string;
|
|
327
|
-
govLink: string;
|
|
328
357
|
director: string;
|
|
358
|
+
govLink: string;
|
|
329
359
|
}>;
|
|
330
360
|
path: "/v2/clients";
|
|
331
361
|
responses: {
|
|
@@ -465,19 +495,19 @@ export declare const clientsContractRouter: {
|
|
|
465
495
|
}>;
|
|
466
496
|
}, "strip", z.ZodTypeAny, {
|
|
467
497
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
468
|
-
id: string;
|
|
469
498
|
name: string;
|
|
499
|
+
director: string;
|
|
500
|
+
createdAt: string;
|
|
501
|
+
updatedAt: string;
|
|
502
|
+
id: string;
|
|
470
503
|
crn: string;
|
|
471
504
|
govLink: string;
|
|
472
|
-
director: string;
|
|
473
505
|
lastUpdatedBy: {
|
|
474
506
|
id: string;
|
|
475
507
|
firstName: string;
|
|
476
508
|
lastName: string;
|
|
477
509
|
email: string;
|
|
478
510
|
};
|
|
479
|
-
createdAt: string;
|
|
480
|
-
updatedAt: string;
|
|
481
511
|
version: number;
|
|
482
512
|
agentClientLinks: {
|
|
483
513
|
agentId: string;
|
|
@@ -485,19 +515,19 @@ export declare const clientsContractRouter: {
|
|
|
485
515
|
blacklistReason?: string | null | undefined;
|
|
486
516
|
}, {
|
|
487
517
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
488
|
-
id: string;
|
|
489
518
|
name: string;
|
|
519
|
+
director: string;
|
|
520
|
+
createdAt: string;
|
|
521
|
+
updatedAt: string;
|
|
522
|
+
id: string;
|
|
490
523
|
crn: string;
|
|
491
524
|
govLink: string;
|
|
492
|
-
director: string;
|
|
493
525
|
lastUpdatedBy: {
|
|
494
526
|
id: string;
|
|
495
527
|
firstName: string;
|
|
496
528
|
lastName: string;
|
|
497
529
|
email: string;
|
|
498
530
|
};
|
|
499
|
-
createdAt: string;
|
|
500
|
-
updatedAt: string;
|
|
501
531
|
version: number;
|
|
502
532
|
agentClientLinks: {
|
|
503
533
|
agentId: string;
|
|
@@ -535,18 +565,45 @@ export declare const clientsContractRouter: {
|
|
|
535
565
|
query: z.ZodObject<{
|
|
536
566
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
537
567
|
page: z.ZodDefault<z.ZodNumber>;
|
|
538
|
-
|
|
568
|
+
name: z.ZodOptional<z.ZodString>;
|
|
539
569
|
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
570
|
+
director: z.ZodOptional<z.ZodString>;
|
|
571
|
+
createdAt: z.ZodOptional<z.ZodObject<{
|
|
572
|
+
from: z.ZodOptional<z.ZodString>;
|
|
573
|
+
to: z.ZodOptional<z.ZodString>;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
from?: string | undefined;
|
|
576
|
+
to?: string | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
from?: string | undefined;
|
|
579
|
+
to?: string | undefined;
|
|
580
|
+
}>>;
|
|
581
|
+
sortBy: z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>;
|
|
582
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
540
583
|
}, "strip", z.ZodTypeAny, {
|
|
541
584
|
limit: number;
|
|
542
585
|
page: number;
|
|
543
586
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
544
|
-
|
|
587
|
+
name?: string | undefined;
|
|
588
|
+
director?: string | undefined;
|
|
589
|
+
createdAt?: {
|
|
590
|
+
from?: string | undefined;
|
|
591
|
+
to?: string | undefined;
|
|
592
|
+
} | undefined;
|
|
593
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
|
|
594
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
545
595
|
}, {
|
|
546
596
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
547
597
|
limit?: number | undefined;
|
|
598
|
+
name?: string | undefined;
|
|
599
|
+
director?: string | undefined;
|
|
600
|
+
createdAt?: {
|
|
601
|
+
from?: string | undefined;
|
|
602
|
+
to?: string | undefined;
|
|
603
|
+
} | undefined;
|
|
548
604
|
page?: number | undefined;
|
|
549
|
-
|
|
605
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
|
|
606
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
550
607
|
}>;
|
|
551
608
|
summary: "Get all clients";
|
|
552
609
|
method: "GET";
|
|
@@ -689,19 +746,19 @@ export declare const clientsContractRouter: {
|
|
|
689
746
|
}>;
|
|
690
747
|
}, "strip", z.ZodTypeAny, {
|
|
691
748
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
692
|
-
id: string;
|
|
693
749
|
name: string;
|
|
750
|
+
director: string;
|
|
751
|
+
createdAt: string;
|
|
752
|
+
updatedAt: string;
|
|
753
|
+
id: string;
|
|
694
754
|
crn: string;
|
|
695
755
|
govLink: string;
|
|
696
|
-
director: string;
|
|
697
756
|
lastUpdatedBy: {
|
|
698
757
|
id: string;
|
|
699
758
|
firstName: string;
|
|
700
759
|
lastName: string;
|
|
701
760
|
email: string;
|
|
702
761
|
};
|
|
703
|
-
createdAt: string;
|
|
704
|
-
updatedAt: string;
|
|
705
762
|
version: number;
|
|
706
763
|
agentClientLinks: {
|
|
707
764
|
agentId: string;
|
|
@@ -709,19 +766,19 @@ export declare const clientsContractRouter: {
|
|
|
709
766
|
blacklistReason?: string | null | undefined;
|
|
710
767
|
}, {
|
|
711
768
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
712
|
-
id: string;
|
|
713
769
|
name: string;
|
|
770
|
+
director: string;
|
|
771
|
+
createdAt: string;
|
|
772
|
+
updatedAt: string;
|
|
773
|
+
id: string;
|
|
714
774
|
crn: string;
|
|
715
775
|
govLink: string;
|
|
716
|
-
director: string;
|
|
717
776
|
lastUpdatedBy: {
|
|
718
777
|
id: string;
|
|
719
778
|
firstName: string;
|
|
720
779
|
lastName: string;
|
|
721
780
|
email: string;
|
|
722
781
|
};
|
|
723
|
-
createdAt: string;
|
|
724
|
-
updatedAt: string;
|
|
725
782
|
version: number;
|
|
726
783
|
agentClientLinks: {
|
|
727
784
|
agentId: string;
|
|
@@ -736,19 +793,19 @@ export declare const clientsContractRouter: {
|
|
|
736
793
|
}, "strip", z.ZodTypeAny, {
|
|
737
794
|
items: {
|
|
738
795
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
739
|
-
id: string;
|
|
740
796
|
name: string;
|
|
797
|
+
director: string;
|
|
798
|
+
createdAt: string;
|
|
799
|
+
updatedAt: string;
|
|
800
|
+
id: string;
|
|
741
801
|
crn: string;
|
|
742
802
|
govLink: string;
|
|
743
|
-
director: string;
|
|
744
803
|
lastUpdatedBy: {
|
|
745
804
|
id: string;
|
|
746
805
|
firstName: string;
|
|
747
806
|
lastName: string;
|
|
748
807
|
email: string;
|
|
749
808
|
};
|
|
750
|
-
createdAt: string;
|
|
751
|
-
updatedAt: string;
|
|
752
809
|
version: number;
|
|
753
810
|
agentClientLinks: {
|
|
754
811
|
agentId: string;
|
|
@@ -763,19 +820,19 @@ export declare const clientsContractRouter: {
|
|
|
763
820
|
}, {
|
|
764
821
|
items: {
|
|
765
822
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
766
|
-
id: string;
|
|
767
823
|
name: string;
|
|
824
|
+
director: string;
|
|
825
|
+
createdAt: string;
|
|
826
|
+
updatedAt: string;
|
|
827
|
+
id: string;
|
|
768
828
|
crn: string;
|
|
769
829
|
govLink: string;
|
|
770
|
-
director: string;
|
|
771
830
|
lastUpdatedBy: {
|
|
772
831
|
id: string;
|
|
773
832
|
firstName: string;
|
|
774
833
|
lastName: string;
|
|
775
834
|
email: string;
|
|
776
835
|
};
|
|
777
|
-
createdAt: string;
|
|
778
|
-
updatedAt: string;
|
|
779
836
|
version: number;
|
|
780
837
|
agentClientLinks: {
|
|
781
838
|
agentId: string;
|
|
@@ -792,11 +849,14 @@ export declare const clientsContractRouter: {
|
|
|
792
849
|
};
|
|
793
850
|
autocomplete: {
|
|
794
851
|
query: z.ZodObject<{
|
|
795
|
-
|
|
852
|
+
query: z.ZodOptional<z.ZodString>;
|
|
853
|
+
id: z.ZodOptional<z.ZodString>;
|
|
796
854
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
|
|
855
|
+
id?: string | undefined;
|
|
856
|
+
query?: string | undefined;
|
|
798
857
|
}, {
|
|
799
|
-
|
|
858
|
+
id?: string | undefined;
|
|
859
|
+
query?: string | undefined;
|
|
800
860
|
}>;
|
|
801
861
|
summary: "Get clients for autocomplete";
|
|
802
862
|
method: "GET";
|
|
@@ -906,11 +966,11 @@ export declare const clientsContractRouter: {
|
|
|
906
966
|
id: z.ZodString;
|
|
907
967
|
name: z.ZodString;
|
|
908
968
|
}, "strip", z.ZodTypeAny, {
|
|
909
|
-
id: string;
|
|
910
969
|
name: string;
|
|
911
|
-
}, {
|
|
912
970
|
id: string;
|
|
971
|
+
}, {
|
|
913
972
|
name: string;
|
|
973
|
+
id: string;
|
|
914
974
|
}>, "many">;
|
|
915
975
|
};
|
|
916
976
|
};
|
|
@@ -1062,19 +1122,19 @@ export declare const clientsContractRouter: {
|
|
|
1062
1122
|
}>;
|
|
1063
1123
|
}, "strip", z.ZodTypeAny, {
|
|
1064
1124
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1065
|
-
id: string;
|
|
1066
1125
|
name: string;
|
|
1126
|
+
director: string;
|
|
1127
|
+
createdAt: string;
|
|
1128
|
+
updatedAt: string;
|
|
1129
|
+
id: string;
|
|
1067
1130
|
crn: string;
|
|
1068
1131
|
govLink: string;
|
|
1069
|
-
director: string;
|
|
1070
1132
|
lastUpdatedBy: {
|
|
1071
1133
|
id: string;
|
|
1072
1134
|
firstName: string;
|
|
1073
1135
|
lastName: string;
|
|
1074
1136
|
email: string;
|
|
1075
1137
|
};
|
|
1076
|
-
createdAt: string;
|
|
1077
|
-
updatedAt: string;
|
|
1078
1138
|
version: number;
|
|
1079
1139
|
agentClientLinks: {
|
|
1080
1140
|
agentId: string;
|
|
@@ -1082,19 +1142,19 @@ export declare const clientsContractRouter: {
|
|
|
1082
1142
|
blacklistReason?: string | null | undefined;
|
|
1083
1143
|
}, {
|
|
1084
1144
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1085
|
-
id: string;
|
|
1086
1145
|
name: string;
|
|
1146
|
+
director: string;
|
|
1147
|
+
createdAt: string;
|
|
1148
|
+
updatedAt: string;
|
|
1149
|
+
id: string;
|
|
1087
1150
|
crn: string;
|
|
1088
1151
|
govLink: string;
|
|
1089
|
-
director: string;
|
|
1090
1152
|
lastUpdatedBy: {
|
|
1091
1153
|
id: string;
|
|
1092
1154
|
firstName: string;
|
|
1093
1155
|
lastName: string;
|
|
1094
1156
|
email: string;
|
|
1095
1157
|
};
|
|
1096
|
-
createdAt: string;
|
|
1097
|
-
updatedAt: string;
|
|
1098
1158
|
version: number;
|
|
1099
1159
|
agentClientLinks: {
|
|
1100
1160
|
agentId: string;
|
|
@@ -1147,26 +1207,26 @@ export declare const clientsContractRouter: {
|
|
|
1147
1207
|
}, "strip", z.ZodTypeAny, {
|
|
1148
1208
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1149
1209
|
name?: string | undefined;
|
|
1150
|
-
govLink?: string | undefined;
|
|
1151
1210
|
director?: string | undefined;
|
|
1211
|
+
govLink?: string | undefined;
|
|
1152
1212
|
blacklistReason?: string | null | undefined;
|
|
1153
1213
|
}, {
|
|
1154
1214
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1155
1215
|
name?: string | undefined;
|
|
1156
|
-
govLink?: string | undefined;
|
|
1157
1216
|
director?: string | undefined;
|
|
1217
|
+
govLink?: string | undefined;
|
|
1158
1218
|
blacklistReason?: string | null | undefined;
|
|
1159
1219
|
}>, {
|
|
1160
1220
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1161
1221
|
name?: string | undefined;
|
|
1162
|
-
govLink?: string | undefined;
|
|
1163
1222
|
director?: string | undefined;
|
|
1223
|
+
govLink?: string | undefined;
|
|
1164
1224
|
blacklistReason?: string | null | undefined;
|
|
1165
1225
|
}, {
|
|
1166
1226
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1167
1227
|
name?: string | undefined;
|
|
1168
|
-
govLink?: string | undefined;
|
|
1169
1228
|
director?: string | undefined;
|
|
1229
|
+
govLink?: string | undefined;
|
|
1170
1230
|
blacklistReason?: string | null | undefined;
|
|
1171
1231
|
}>;
|
|
1172
1232
|
path: "/v2/clients/:id";
|
|
@@ -1307,19 +1367,19 @@ export declare const clientsContractRouter: {
|
|
|
1307
1367
|
}>;
|
|
1308
1368
|
}, "strip", z.ZodTypeAny, {
|
|
1309
1369
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1310
|
-
id: string;
|
|
1311
1370
|
name: string;
|
|
1371
|
+
director: string;
|
|
1372
|
+
createdAt: string;
|
|
1373
|
+
updatedAt: string;
|
|
1374
|
+
id: string;
|
|
1312
1375
|
crn: string;
|
|
1313
1376
|
govLink: string;
|
|
1314
|
-
director: string;
|
|
1315
1377
|
lastUpdatedBy: {
|
|
1316
1378
|
id: string;
|
|
1317
1379
|
firstName: string;
|
|
1318
1380
|
lastName: string;
|
|
1319
1381
|
email: string;
|
|
1320
1382
|
};
|
|
1321
|
-
createdAt: string;
|
|
1322
|
-
updatedAt: string;
|
|
1323
1383
|
version: number;
|
|
1324
1384
|
agentClientLinks: {
|
|
1325
1385
|
agentId: string;
|
|
@@ -1327,19 +1387,19 @@ export declare const clientsContractRouter: {
|
|
|
1327
1387
|
blacklistReason?: string | null | undefined;
|
|
1328
1388
|
}, {
|
|
1329
1389
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1330
|
-
id: string;
|
|
1331
1390
|
name: string;
|
|
1391
|
+
director: string;
|
|
1392
|
+
createdAt: string;
|
|
1393
|
+
updatedAt: string;
|
|
1394
|
+
id: string;
|
|
1332
1395
|
crn: string;
|
|
1333
1396
|
govLink: string;
|
|
1334
|
-
director: string;
|
|
1335
1397
|
lastUpdatedBy: {
|
|
1336
1398
|
id: string;
|
|
1337
1399
|
firstName: string;
|
|
1338
1400
|
lastName: string;
|
|
1339
1401
|
email: string;
|
|
1340
1402
|
};
|
|
1341
|
-
createdAt: string;
|
|
1342
|
-
updatedAt: string;
|
|
1343
1403
|
version: number;
|
|
1344
1404
|
agentClientLinks: {
|
|
1345
1405
|
agentId: string;
|
|
@@ -1511,7 +1571,7 @@ export declare const clientsContractRouter: {
|
|
|
1511
1571
|
details?: unknown;
|
|
1512
1572
|
correlationId?: string | undefined;
|
|
1513
1573
|
}>;
|
|
1514
|
-
204:
|
|
1574
|
+
204: z.ZodUndefined;
|
|
1515
1575
|
404: z.ZodObject<{
|
|
1516
1576
|
statusCode: z.ZodNumber;
|
|
1517
1577
|
message: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.contract.d.ts","sourceRoot":"","sources":["../../contracts/clients/clients.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clients.contract.d.ts","sourceRoot":"","sources":["../../contracts/clients/clients.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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