@dakkitor/api-contracts 1.1.3 → 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 +619 -322
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +14 -32
- package/dist/clients/clients.contract.d.ts +294 -268
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +14 -33
- package/dist/common/pagination.schema.d.ts +12 -6
- package/dist/common/pagination.schema.d.ts.map +1 -1
- package/dist/common/pagination.schema.js +6 -4
- package/dist/index.d.ts +507 -496
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -7
- package/package.json +1 -1
|
@@ -1,4 +1,20 @@
|
|
|
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
19
|
id: z.ZodString;
|
|
4
20
|
name: z.ZodString;
|
|
@@ -152,7 +168,7 @@ export declare const AutocompleteQuerySchema: z.ZodObject<{
|
|
|
152
168
|
search?: string | undefined;
|
|
153
169
|
}>;
|
|
154
170
|
export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
155
|
-
|
|
171
|
+
items: z.ZodArray<z.ZodObject<{
|
|
156
172
|
id: z.ZodString;
|
|
157
173
|
name: z.ZodString;
|
|
158
174
|
crn: z.ZodString;
|
|
@@ -227,11 +243,13 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
227
243
|
};
|
|
228
244
|
blacklistReason?: string | null | undefined;
|
|
229
245
|
}>, "many">;
|
|
230
|
-
|
|
246
|
+
totalCount: z.ZodNumber;
|
|
231
247
|
limit: z.ZodNumber;
|
|
232
248
|
skip: z.ZodNumber;
|
|
249
|
+
currentPage: z.ZodNumber;
|
|
250
|
+
totalPages: z.ZodNumber;
|
|
233
251
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
|
|
252
|
+
items: {
|
|
235
253
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
236
254
|
id: string;
|
|
237
255
|
name: string;
|
|
@@ -252,11 +270,13 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
252
270
|
};
|
|
253
271
|
blacklistReason?: string | null | undefined;
|
|
254
272
|
}[];
|
|
255
|
-
|
|
273
|
+
totalCount: number;
|
|
256
274
|
limit: number;
|
|
257
275
|
skip: number;
|
|
276
|
+
currentPage: number;
|
|
277
|
+
totalPages: number;
|
|
258
278
|
}, {
|
|
259
|
-
|
|
279
|
+
items: {
|
|
260
280
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
261
281
|
id: string;
|
|
262
282
|
name: string;
|
|
@@ -277,9 +297,11 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
277
297
|
};
|
|
278
298
|
blacklistReason?: string | null | undefined;
|
|
279
299
|
}[];
|
|
280
|
-
|
|
300
|
+
totalCount: number;
|
|
281
301
|
limit: number;
|
|
282
302
|
skip: number;
|
|
303
|
+
currentPage: number;
|
|
304
|
+
totalPages: number;
|
|
283
305
|
}>;
|
|
284
306
|
export type ClientV2 = z.infer<typeof ClientSchema>;
|
|
285
307
|
export type CreateClientV2 = z.infer<typeof CreateClientSchema>;
|
|
@@ -288,12 +310,126 @@ export type FilterClientV2 = z.infer<typeof FilterClientSchema>;
|
|
|
288
310
|
export type ClientAutocompleteResponseV2 = z.infer<typeof ClientAutocompleteResponseSchema>;
|
|
289
311
|
export type AutocompleteQueryV2 = z.infer<typeof AutocompleteQuerySchema>;
|
|
290
312
|
export type PaginatedResponseV2 = z.infer<typeof PaginatedResponseSchema>;
|
|
291
|
-
declare const
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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<{
|
|
297
433
|
id: z.ZodString;
|
|
298
434
|
name: z.ZodString;
|
|
299
435
|
crn: z.ZodString;
|
|
@@ -368,7 +504,7 @@ declare const clientsContractConfig: {
|
|
|
368
504
|
};
|
|
369
505
|
blacklistReason?: string | null | undefined;
|
|
370
506
|
}>;
|
|
371
|
-
|
|
507
|
+
409: z.ZodObject<{
|
|
372
508
|
statusCode: z.ZodNumber;
|
|
373
509
|
message: z.ZodString;
|
|
374
510
|
code: z.ZodString;
|
|
@@ -393,7 +529,30 @@ declare const clientsContractConfig: {
|
|
|
393
529
|
details?: unknown;
|
|
394
530
|
correlationId?: string | undefined;
|
|
395
531
|
}>;
|
|
396
|
-
|
|
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<{
|
|
397
556
|
statusCode: z.ZodNumber;
|
|
398
557
|
message: z.ZodString;
|
|
399
558
|
code: z.ZodString;
|
|
@@ -418,7 +577,7 @@ declare const clientsContractConfig: {
|
|
|
418
577
|
details?: unknown;
|
|
419
578
|
correlationId?: string | undefined;
|
|
420
579
|
}>;
|
|
421
|
-
|
|
580
|
+
401: z.ZodObject<{
|
|
422
581
|
statusCode: z.ZodNumber;
|
|
423
582
|
message: z.ZodString;
|
|
424
583
|
code: z.ZodString;
|
|
@@ -443,7 +602,7 @@ declare const clientsContractConfig: {
|
|
|
443
602
|
details?: unknown;
|
|
444
603
|
correlationId?: string | undefined;
|
|
445
604
|
}>;
|
|
446
|
-
|
|
605
|
+
403: z.ZodObject<{
|
|
447
606
|
statusCode: z.ZodNumber;
|
|
448
607
|
message: z.ZodString;
|
|
449
608
|
code: z.ZodString;
|
|
@@ -468,7 +627,7 @@ declare const clientsContractConfig: {
|
|
|
468
627
|
details?: unknown;
|
|
469
628
|
correlationId?: string | undefined;
|
|
470
629
|
}>;
|
|
471
|
-
|
|
630
|
+
500: z.ZodObject<{
|
|
472
631
|
statusCode: z.ZodNumber;
|
|
473
632
|
message: z.ZodString;
|
|
474
633
|
code: z.ZodString;
|
|
@@ -493,28 +652,8 @@ declare const clientsContractConfig: {
|
|
|
493
652
|
details?: unknown;
|
|
494
653
|
correlationId?: string | undefined;
|
|
495
654
|
}>;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
name: z.ZodString;
|
|
499
|
-
govLink: z.ZodString;
|
|
500
|
-
director: z.ZodString;
|
|
501
|
-
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
name: string;
|
|
503
|
-
govLink: string;
|
|
504
|
-
director: string;
|
|
505
|
-
}, {
|
|
506
|
-
name: string;
|
|
507
|
-
govLink: string;
|
|
508
|
-
director: string;
|
|
509
|
-
}>;
|
|
510
|
-
readonly summary: "Create a new client";
|
|
511
|
-
};
|
|
512
|
-
readonly findAll: {
|
|
513
|
-
readonly method: "GET";
|
|
514
|
-
readonly path: "/v2/clients";
|
|
515
|
-
readonly responses: {
|
|
516
|
-
readonly 200: z.ZodObject<{
|
|
517
|
-
data: z.ZodArray<z.ZodObject<{
|
|
655
|
+
200: z.ZodObject<{
|
|
656
|
+
items: z.ZodArray<z.ZodObject<{
|
|
518
657
|
id: z.ZodString;
|
|
519
658
|
name: z.ZodString;
|
|
520
659
|
crn: z.ZodString;
|
|
@@ -589,11 +728,13 @@ declare const clientsContractConfig: {
|
|
|
589
728
|
};
|
|
590
729
|
blacklistReason?: string | null | undefined;
|
|
591
730
|
}>, "many">;
|
|
592
|
-
|
|
731
|
+
totalCount: z.ZodNumber;
|
|
593
732
|
limit: z.ZodNumber;
|
|
594
733
|
skip: z.ZodNumber;
|
|
734
|
+
currentPage: z.ZodNumber;
|
|
735
|
+
totalPages: z.ZodNumber;
|
|
595
736
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
|
|
737
|
+
items: {
|
|
597
738
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
598
739
|
id: string;
|
|
599
740
|
name: string;
|
|
@@ -614,11 +755,13 @@ declare const clientsContractConfig: {
|
|
|
614
755
|
};
|
|
615
756
|
blacklistReason?: string | null | undefined;
|
|
616
757
|
}[];
|
|
617
|
-
|
|
758
|
+
totalCount: number;
|
|
618
759
|
limit: number;
|
|
619
760
|
skip: number;
|
|
761
|
+
currentPage: number;
|
|
762
|
+
totalPages: number;
|
|
620
763
|
}, {
|
|
621
|
-
|
|
764
|
+
items: {
|
|
622
765
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
623
766
|
id: string;
|
|
624
767
|
name: string;
|
|
@@ -639,11 +782,27 @@ declare const clientsContractConfig: {
|
|
|
639
782
|
};
|
|
640
783
|
blacklistReason?: string | null | undefined;
|
|
641
784
|
}[];
|
|
642
|
-
|
|
785
|
+
totalCount: number;
|
|
643
786
|
limit: number;
|
|
644
787
|
skip: number;
|
|
788
|
+
currentPage: number;
|
|
789
|
+
totalPages: number;
|
|
645
790
|
}>;
|
|
646
|
-
|
|
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<{
|
|
647
806
|
statusCode: z.ZodNumber;
|
|
648
807
|
message: z.ZodString;
|
|
649
808
|
code: z.ZodString;
|
|
@@ -668,7 +827,7 @@ declare const clientsContractConfig: {
|
|
|
668
827
|
details?: unknown;
|
|
669
828
|
correlationId?: string | undefined;
|
|
670
829
|
}>;
|
|
671
|
-
|
|
830
|
+
401: z.ZodObject<{
|
|
672
831
|
statusCode: z.ZodNumber;
|
|
673
832
|
message: z.ZodString;
|
|
674
833
|
code: z.ZodString;
|
|
@@ -693,7 +852,7 @@ declare const clientsContractConfig: {
|
|
|
693
852
|
details?: unknown;
|
|
694
853
|
correlationId?: string | undefined;
|
|
695
854
|
}>;
|
|
696
|
-
|
|
855
|
+
403: z.ZodObject<{
|
|
697
856
|
statusCode: z.ZodNumber;
|
|
698
857
|
message: z.ZodString;
|
|
699
858
|
code: z.ZodString;
|
|
@@ -718,7 +877,7 @@ declare const clientsContractConfig: {
|
|
|
718
877
|
details?: unknown;
|
|
719
878
|
correlationId?: string | undefined;
|
|
720
879
|
}>;
|
|
721
|
-
|
|
880
|
+
500: z.ZodObject<{
|
|
722
881
|
statusCode: z.ZodNumber;
|
|
723
882
|
message: z.ZodString;
|
|
724
883
|
code: z.ZodString;
|
|
@@ -743,30 +902,7 @@ declare const clientsContractConfig: {
|
|
|
743
902
|
details?: unknown;
|
|
744
903
|
correlationId?: string | undefined;
|
|
745
904
|
}>;
|
|
746
|
-
|
|
747
|
-
readonly query: z.ZodObject<{
|
|
748
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
749
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
750
|
-
search: z.ZodOptional<z.ZodString>;
|
|
751
|
-
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
752
|
-
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
limit: number;
|
|
754
|
-
page: number;
|
|
755
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
756
|
-
search?: string | undefined;
|
|
757
|
-
}, {
|
|
758
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
759
|
-
limit?: number | undefined;
|
|
760
|
-
page?: number | undefined;
|
|
761
|
-
search?: string | undefined;
|
|
762
|
-
}>;
|
|
763
|
-
readonly summary: "Get all clients";
|
|
764
|
-
};
|
|
765
|
-
readonly autocomplete: {
|
|
766
|
-
readonly method: "GET";
|
|
767
|
-
readonly path: "/v2/clients/autocomplete";
|
|
768
|
-
readonly responses: {
|
|
769
|
-
readonly 200: z.ZodArray<z.ZodObject<{
|
|
905
|
+
200: z.ZodArray<z.ZodObject<{
|
|
770
906
|
id: z.ZodString;
|
|
771
907
|
name: z.ZodString;
|
|
772
908
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -776,7 +912,21 @@ declare const clientsContractConfig: {
|
|
|
776
912
|
id: string;
|
|
777
913
|
name: string;
|
|
778
914
|
}>, "many">;
|
|
779
|
-
|
|
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<{
|
|
780
930
|
statusCode: z.ZodNumber;
|
|
781
931
|
message: z.ZodString;
|
|
782
932
|
code: z.ZodString;
|
|
@@ -801,7 +951,7 @@ declare const clientsContractConfig: {
|
|
|
801
951
|
details?: unknown;
|
|
802
952
|
correlationId?: string | undefined;
|
|
803
953
|
}>;
|
|
804
|
-
|
|
954
|
+
401: z.ZodObject<{
|
|
805
955
|
statusCode: z.ZodNumber;
|
|
806
956
|
message: z.ZodString;
|
|
807
957
|
code: z.ZodString;
|
|
@@ -826,7 +976,7 @@ declare const clientsContractConfig: {
|
|
|
826
976
|
details?: unknown;
|
|
827
977
|
correlationId?: string | undefined;
|
|
828
978
|
}>;
|
|
829
|
-
|
|
979
|
+
403: z.ZodObject<{
|
|
830
980
|
statusCode: z.ZodNumber;
|
|
831
981
|
message: z.ZodString;
|
|
832
982
|
code: z.ZodString;
|
|
@@ -851,7 +1001,7 @@ declare const clientsContractConfig: {
|
|
|
851
1001
|
details?: unknown;
|
|
852
1002
|
correlationId?: string | undefined;
|
|
853
1003
|
}>;
|
|
854
|
-
|
|
1004
|
+
500: z.ZodObject<{
|
|
855
1005
|
statusCode: z.ZodNumber;
|
|
856
1006
|
message: z.ZodString;
|
|
857
1007
|
code: z.ZodString;
|
|
@@ -876,21 +1026,7 @@ declare const clientsContractConfig: {
|
|
|
876
1026
|
details?: unknown;
|
|
877
1027
|
correlationId?: string | undefined;
|
|
878
1028
|
}>;
|
|
879
|
-
|
|
880
|
-
readonly query: z.ZodObject<{
|
|
881
|
-
search: z.ZodOptional<z.ZodString>;
|
|
882
|
-
}, "strip", z.ZodTypeAny, {
|
|
883
|
-
search?: string | undefined;
|
|
884
|
-
}, {
|
|
885
|
-
search?: string | undefined;
|
|
886
|
-
}>;
|
|
887
|
-
readonly summary: "Get clients for autocomplete";
|
|
888
|
-
};
|
|
889
|
-
readonly findOne: {
|
|
890
|
-
readonly method: "GET";
|
|
891
|
-
readonly path: "/v2/clients/:id";
|
|
892
|
-
readonly responses: {
|
|
893
|
-
readonly 200: z.ZodObject<{
|
|
1029
|
+
200: z.ZodObject<{
|
|
894
1030
|
id: z.ZodString;
|
|
895
1031
|
name: z.ZodString;
|
|
896
1032
|
crn: z.ZodString;
|
|
@@ -965,7 +1101,7 @@ declare const clientsContractConfig: {
|
|
|
965
1101
|
};
|
|
966
1102
|
blacklistReason?: string | null | undefined;
|
|
967
1103
|
}>;
|
|
968
|
-
|
|
1104
|
+
404: z.ZodObject<{
|
|
969
1105
|
statusCode: z.ZodNumber;
|
|
970
1106
|
message: z.ZodString;
|
|
971
1107
|
code: z.ZodString;
|
|
@@ -990,7 +1126,52 @@ declare const clientsContractConfig: {
|
|
|
990
1126
|
details?: unknown;
|
|
991
1127
|
correlationId?: string | undefined;
|
|
992
1128
|
}>;
|
|
993
|
-
|
|
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<{
|
|
994
1175
|
statusCode: z.ZodNumber;
|
|
995
1176
|
message: z.ZodString;
|
|
996
1177
|
code: z.ZodString;
|
|
@@ -1015,7 +1196,7 @@ declare const clientsContractConfig: {
|
|
|
1015
1196
|
details?: unknown;
|
|
1016
1197
|
correlationId?: string | undefined;
|
|
1017
1198
|
}>;
|
|
1018
|
-
|
|
1199
|
+
401: z.ZodObject<{
|
|
1019
1200
|
statusCode: z.ZodNumber;
|
|
1020
1201
|
message: z.ZodString;
|
|
1021
1202
|
code: z.ZodString;
|
|
@@ -1040,7 +1221,7 @@ declare const clientsContractConfig: {
|
|
|
1040
1221
|
details?: unknown;
|
|
1041
1222
|
correlationId?: string | undefined;
|
|
1042
1223
|
}>;
|
|
1043
|
-
|
|
1224
|
+
403: z.ZodObject<{
|
|
1044
1225
|
statusCode: z.ZodNumber;
|
|
1045
1226
|
message: z.ZodString;
|
|
1046
1227
|
code: z.ZodString;
|
|
@@ -1065,7 +1246,7 @@ declare const clientsContractConfig: {
|
|
|
1065
1246
|
details?: unknown;
|
|
1066
1247
|
correlationId?: string | undefined;
|
|
1067
1248
|
}>;
|
|
1068
|
-
|
|
1249
|
+
500: z.ZodObject<{
|
|
1069
1250
|
statusCode: z.ZodNumber;
|
|
1070
1251
|
message: z.ZodString;
|
|
1071
1252
|
code: z.ZodString;
|
|
@@ -1090,21 +1271,7 @@ declare const clientsContractConfig: {
|
|
|
1090
1271
|
details?: unknown;
|
|
1091
1272
|
correlationId?: string | undefined;
|
|
1092
1273
|
}>;
|
|
1093
|
-
|
|
1094
|
-
readonly pathParams: z.ZodObject<{
|
|
1095
|
-
id: z.ZodString;
|
|
1096
|
-
}, "strip", z.ZodTypeAny, {
|
|
1097
|
-
id: string;
|
|
1098
|
-
}, {
|
|
1099
|
-
id: string;
|
|
1100
|
-
}>;
|
|
1101
|
-
readonly summary: "Get a client by ID";
|
|
1102
|
-
};
|
|
1103
|
-
readonly update: {
|
|
1104
|
-
readonly method: "PATCH";
|
|
1105
|
-
readonly path: "/v2/clients/:id";
|
|
1106
|
-
readonly responses: {
|
|
1107
|
-
readonly 200: z.ZodObject<{
|
|
1274
|
+
200: z.ZodObject<{
|
|
1108
1275
|
id: z.ZodString;
|
|
1109
1276
|
name: z.ZodString;
|
|
1110
1277
|
crn: z.ZodString;
|
|
@@ -1179,32 +1346,7 @@ declare const clientsContractConfig: {
|
|
|
1179
1346
|
};
|
|
1180
1347
|
blacklistReason?: string | null | undefined;
|
|
1181
1348
|
}>;
|
|
1182
|
-
|
|
1183
|
-
statusCode: z.ZodNumber;
|
|
1184
|
-
message: z.ZodString;
|
|
1185
|
-
code: z.ZodString;
|
|
1186
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
1187
|
-
timestamp: z.ZodString;
|
|
1188
|
-
path: z.ZodString;
|
|
1189
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1190
|
-
}, "strip", z.ZodTypeAny, {
|
|
1191
|
-
statusCode: number;
|
|
1192
|
-
message: string;
|
|
1193
|
-
code: string;
|
|
1194
|
-
timestamp: string;
|
|
1195
|
-
path: string;
|
|
1196
|
-
details?: unknown;
|
|
1197
|
-
correlationId?: string | undefined;
|
|
1198
|
-
}, {
|
|
1199
|
-
statusCode: number;
|
|
1200
|
-
message: string;
|
|
1201
|
-
code: string;
|
|
1202
|
-
timestamp: string;
|
|
1203
|
-
path: string;
|
|
1204
|
-
details?: unknown;
|
|
1205
|
-
correlationId?: string | undefined;
|
|
1206
|
-
}>;
|
|
1207
|
-
readonly 401: z.ZodObject<{
|
|
1349
|
+
404: z.ZodObject<{
|
|
1208
1350
|
statusCode: z.ZodNumber;
|
|
1209
1351
|
message: z.ZodString;
|
|
1210
1352
|
code: z.ZodString;
|
|
@@ -1229,82 +1371,7 @@ declare const clientsContractConfig: {
|
|
|
1229
1371
|
details?: unknown;
|
|
1230
1372
|
correlationId?: string | undefined;
|
|
1231
1373
|
}>;
|
|
1232
|
-
|
|
1233
|
-
statusCode: z.ZodNumber;
|
|
1234
|
-
message: z.ZodString;
|
|
1235
|
-
code: z.ZodString;
|
|
1236
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
1237
|
-
timestamp: z.ZodString;
|
|
1238
|
-
path: z.ZodString;
|
|
1239
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1240
|
-
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
statusCode: number;
|
|
1242
|
-
message: string;
|
|
1243
|
-
code: string;
|
|
1244
|
-
timestamp: string;
|
|
1245
|
-
path: string;
|
|
1246
|
-
details?: unknown;
|
|
1247
|
-
correlationId?: string | undefined;
|
|
1248
|
-
}, {
|
|
1249
|
-
statusCode: number;
|
|
1250
|
-
message: string;
|
|
1251
|
-
code: string;
|
|
1252
|
-
timestamp: string;
|
|
1253
|
-
path: string;
|
|
1254
|
-
details?: unknown;
|
|
1255
|
-
correlationId?: string | undefined;
|
|
1256
|
-
}>;
|
|
1257
|
-
readonly 404: z.ZodObject<{
|
|
1258
|
-
statusCode: z.ZodNumber;
|
|
1259
|
-
message: z.ZodString;
|
|
1260
|
-
code: z.ZodString;
|
|
1261
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
1262
|
-
timestamp: z.ZodString;
|
|
1263
|
-
path: z.ZodString;
|
|
1264
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
}, "strip", z.ZodTypeAny, {
|
|
1266
|
-
statusCode: number;
|
|
1267
|
-
message: string;
|
|
1268
|
-
code: string;
|
|
1269
|
-
timestamp: string;
|
|
1270
|
-
path: string;
|
|
1271
|
-
details?: unknown;
|
|
1272
|
-
correlationId?: string | undefined;
|
|
1273
|
-
}, {
|
|
1274
|
-
statusCode: number;
|
|
1275
|
-
message: string;
|
|
1276
|
-
code: string;
|
|
1277
|
-
timestamp: string;
|
|
1278
|
-
path: string;
|
|
1279
|
-
details?: unknown;
|
|
1280
|
-
correlationId?: string | undefined;
|
|
1281
|
-
}>;
|
|
1282
|
-
readonly 409: z.ZodObject<{
|
|
1283
|
-
statusCode: z.ZodNumber;
|
|
1284
|
-
message: z.ZodString;
|
|
1285
|
-
code: z.ZodString;
|
|
1286
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
1287
|
-
timestamp: z.ZodString;
|
|
1288
|
-
path: z.ZodString;
|
|
1289
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1290
|
-
}, "strip", z.ZodTypeAny, {
|
|
1291
|
-
statusCode: number;
|
|
1292
|
-
message: string;
|
|
1293
|
-
code: string;
|
|
1294
|
-
timestamp: string;
|
|
1295
|
-
path: string;
|
|
1296
|
-
details?: unknown;
|
|
1297
|
-
correlationId?: string | undefined;
|
|
1298
|
-
}, {
|
|
1299
|
-
statusCode: number;
|
|
1300
|
-
message: string;
|
|
1301
|
-
code: string;
|
|
1302
|
-
timestamp: string;
|
|
1303
|
-
path: string;
|
|
1304
|
-
details?: unknown;
|
|
1305
|
-
correlationId?: string | undefined;
|
|
1306
|
-
}>;
|
|
1307
|
-
readonly 500: z.ZodObject<{
|
|
1374
|
+
409: z.ZodObject<{
|
|
1308
1375
|
statusCode: z.ZodNumber;
|
|
1309
1376
|
message: z.ZodString;
|
|
1310
1377
|
code: z.ZodString;
|
|
@@ -1330,52 +1397,21 @@ declare const clientsContractConfig: {
|
|
|
1330
1397
|
correlationId?: string | undefined;
|
|
1331
1398
|
}>;
|
|
1332
1399
|
};
|
|
1333
|
-
|
|
1400
|
+
};
|
|
1401
|
+
remove: {
|
|
1402
|
+
pathParams: z.ZodObject<{
|
|
1334
1403
|
id: z.ZodString;
|
|
1335
1404
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1405
|
id: string;
|
|
1337
1406
|
}, {
|
|
1338
1407
|
id: string;
|
|
1339
1408
|
}>;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}, "strip", z.ZodTypeAny, {
|
|
1347
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1348
|
-
name?: string | undefined;
|
|
1349
|
-
govLink?: string | undefined;
|
|
1350
|
-
director?: string | undefined;
|
|
1351
|
-
blacklistReason?: string | null | undefined;
|
|
1352
|
-
}, {
|
|
1353
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1354
|
-
name?: string | undefined;
|
|
1355
|
-
govLink?: string | undefined;
|
|
1356
|
-
director?: string | undefined;
|
|
1357
|
-
blacklistReason?: string | null | undefined;
|
|
1358
|
-
}>, {
|
|
1359
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1360
|
-
name?: string | undefined;
|
|
1361
|
-
govLink?: string | undefined;
|
|
1362
|
-
director?: string | undefined;
|
|
1363
|
-
blacklistReason?: string | null | undefined;
|
|
1364
|
-
}, {
|
|
1365
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1366
|
-
name?: string | undefined;
|
|
1367
|
-
govLink?: string | undefined;
|
|
1368
|
-
director?: string | undefined;
|
|
1369
|
-
blacklistReason?: string | null | undefined;
|
|
1370
|
-
}>;
|
|
1371
|
-
readonly summary: "Update a client";
|
|
1372
|
-
};
|
|
1373
|
-
readonly remove: {
|
|
1374
|
-
readonly method: "DELETE";
|
|
1375
|
-
readonly path: "/v2/clients/:id";
|
|
1376
|
-
readonly responses: {
|
|
1377
|
-
readonly 204: z.ZodNull;
|
|
1378
|
-
readonly 400: z.ZodObject<{
|
|
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<{
|
|
1379
1415
|
statusCode: z.ZodNumber;
|
|
1380
1416
|
message: z.ZodString;
|
|
1381
1417
|
code: z.ZodString;
|
|
@@ -1400,7 +1436,7 @@ declare const clientsContractConfig: {
|
|
|
1400
1436
|
details?: unknown;
|
|
1401
1437
|
correlationId?: string | undefined;
|
|
1402
1438
|
}>;
|
|
1403
|
-
|
|
1439
|
+
401: z.ZodObject<{
|
|
1404
1440
|
statusCode: z.ZodNumber;
|
|
1405
1441
|
message: z.ZodString;
|
|
1406
1442
|
code: z.ZodString;
|
|
@@ -1425,7 +1461,7 @@ declare const clientsContractConfig: {
|
|
|
1425
1461
|
details?: unknown;
|
|
1426
1462
|
correlationId?: string | undefined;
|
|
1427
1463
|
}>;
|
|
1428
|
-
|
|
1464
|
+
403: z.ZodObject<{
|
|
1429
1465
|
statusCode: z.ZodNumber;
|
|
1430
1466
|
message: z.ZodString;
|
|
1431
1467
|
code: z.ZodString;
|
|
@@ -1450,7 +1486,7 @@ declare const clientsContractConfig: {
|
|
|
1450
1486
|
details?: unknown;
|
|
1451
1487
|
correlationId?: string | undefined;
|
|
1452
1488
|
}>;
|
|
1453
|
-
|
|
1489
|
+
500: z.ZodObject<{
|
|
1454
1490
|
statusCode: z.ZodNumber;
|
|
1455
1491
|
message: z.ZodString;
|
|
1456
1492
|
code: z.ZodString;
|
|
@@ -1475,7 +1511,8 @@ declare const clientsContractConfig: {
|
|
|
1475
1511
|
details?: unknown;
|
|
1476
1512
|
correlationId?: string | undefined;
|
|
1477
1513
|
}>;
|
|
1478
|
-
|
|
1514
|
+
204: typeof import("@ts-rest/core").ContractNoBody;
|
|
1515
|
+
404: z.ZodObject<{
|
|
1479
1516
|
statusCode: z.ZodNumber;
|
|
1480
1517
|
message: z.ZodString;
|
|
1481
1518
|
code: z.ZodString;
|
|
@@ -1501,17 +1538,6 @@ declare const clientsContractConfig: {
|
|
|
1501
1538
|
correlationId?: string | undefined;
|
|
1502
1539
|
}>;
|
|
1503
1540
|
};
|
|
1504
|
-
readonly pathParams: z.ZodObject<{
|
|
1505
|
-
id: z.ZodString;
|
|
1506
|
-
}, "strip", z.ZodTypeAny, {
|
|
1507
|
-
id: string;
|
|
1508
|
-
}, {
|
|
1509
|
-
id: string;
|
|
1510
|
-
}>;
|
|
1511
|
-
readonly body: z.ZodUndefined;
|
|
1512
|
-
readonly summary: "Delete a client";
|
|
1513
1541
|
};
|
|
1514
1542
|
};
|
|
1515
|
-
export declare const clientsContract: typeof clientsContractConfig;
|
|
1516
|
-
export {};
|
|
1517
1543
|
//# sourceMappingURL=clients.contract.d.ts.map
|