@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
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,127 @@ export * from './client-contacts/client-contacts.contract';
|
|
|
2
2
|
export * from './clients/clients.contract';
|
|
3
3
|
export * from './common/error-schemas';
|
|
4
4
|
export * from './common/pagination.schema';
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export declare const apiContractRouter: {
|
|
6
|
+
clients: {
|
|
7
|
+
create: {
|
|
8
|
+
summary: "Create a new client";
|
|
9
|
+
method: "POST";
|
|
10
|
+
body: import("zod").ZodObject<{
|
|
11
|
+
name: import("zod").ZodString;
|
|
12
|
+
govLink: import("zod").ZodString;
|
|
13
|
+
director: import("zod").ZodString;
|
|
14
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
15
|
+
name: string;
|
|
16
|
+
govLink: string;
|
|
17
|
+
director: string;
|
|
18
|
+
}, {
|
|
19
|
+
name: string;
|
|
20
|
+
govLink: string;
|
|
21
|
+
director: string;
|
|
22
|
+
}>;
|
|
23
|
+
path: "/v2/clients";
|
|
24
|
+
responses: {
|
|
25
|
+
400: import("zod").ZodObject<{
|
|
26
|
+
statusCode: import("zod").ZodNumber;
|
|
27
|
+
message: import("zod").ZodString;
|
|
28
|
+
code: import("zod").ZodString;
|
|
29
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
30
|
+
timestamp: import("zod").ZodString;
|
|
31
|
+
path: import("zod").ZodString;
|
|
32
|
+
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
34
|
+
statusCode: number;
|
|
35
|
+
message: string;
|
|
36
|
+
code: string;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
path: string;
|
|
39
|
+
details?: unknown;
|
|
40
|
+
correlationId?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
statusCode: number;
|
|
43
|
+
message: string;
|
|
44
|
+
code: string;
|
|
45
|
+
timestamp: string;
|
|
46
|
+
path: string;
|
|
47
|
+
details?: unknown;
|
|
48
|
+
correlationId?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
401: import("zod").ZodObject<{
|
|
51
|
+
statusCode: import("zod").ZodNumber;
|
|
52
|
+
message: import("zod").ZodString;
|
|
53
|
+
code: import("zod").ZodString;
|
|
54
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
55
|
+
timestamp: import("zod").ZodString;
|
|
56
|
+
path: import("zod").ZodString;
|
|
57
|
+
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
|
+
statusCode: number;
|
|
60
|
+
message: string;
|
|
61
|
+
code: string;
|
|
62
|
+
timestamp: string;
|
|
63
|
+
path: string;
|
|
64
|
+
details?: unknown;
|
|
65
|
+
correlationId?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
statusCode: number;
|
|
68
|
+
message: string;
|
|
69
|
+
code: string;
|
|
70
|
+
timestamp: string;
|
|
71
|
+
path: string;
|
|
72
|
+
details?: unknown;
|
|
73
|
+
correlationId?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
403: import("zod").ZodObject<{
|
|
76
|
+
statusCode: import("zod").ZodNumber;
|
|
77
|
+
message: import("zod").ZodString;
|
|
78
|
+
code: import("zod").ZodString;
|
|
79
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
80
|
+
timestamp: import("zod").ZodString;
|
|
81
|
+
path: import("zod").ZodString;
|
|
82
|
+
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
84
|
+
statusCode: number;
|
|
85
|
+
message: string;
|
|
86
|
+
code: string;
|
|
87
|
+
timestamp: string;
|
|
88
|
+
path: string;
|
|
89
|
+
details?: unknown;
|
|
90
|
+
correlationId?: string | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
statusCode: number;
|
|
93
|
+
message: string;
|
|
94
|
+
code: string;
|
|
95
|
+
timestamp: string;
|
|
96
|
+
path: string;
|
|
97
|
+
details?: unknown;
|
|
98
|
+
correlationId?: string | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
500: import("zod").ZodObject<{
|
|
101
|
+
statusCode: import("zod").ZodNumber;
|
|
102
|
+
message: import("zod").ZodString;
|
|
103
|
+
code: import("zod").ZodString;
|
|
104
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
105
|
+
timestamp: import("zod").ZodString;
|
|
106
|
+
path: import("zod").ZodString;
|
|
107
|
+
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
109
|
+
statusCode: number;
|
|
110
|
+
message: string;
|
|
111
|
+
code: string;
|
|
112
|
+
timestamp: string;
|
|
113
|
+
path: string;
|
|
114
|
+
details?: unknown;
|
|
115
|
+
correlationId?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
statusCode: number;
|
|
118
|
+
message: string;
|
|
119
|
+
code: string;
|
|
120
|
+
timestamp: string;
|
|
121
|
+
path: string;
|
|
122
|
+
details?: unknown;
|
|
123
|
+
correlationId?: string | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
201: import("zod").ZodObject<{
|
|
12
126
|
id: import("zod").ZodString;
|
|
13
127
|
name: import("zod").ZodString;
|
|
14
128
|
crn: import("zod").ZodString;
|
|
@@ -83,7 +197,7 @@ declare const apiContractConfig: {
|
|
|
83
197
|
};
|
|
84
198
|
blacklistReason?: string | null | undefined;
|
|
85
199
|
}>;
|
|
86
|
-
|
|
200
|
+
409: import("zod").ZodObject<{
|
|
87
201
|
statusCode: import("zod").ZodNumber;
|
|
88
202
|
message: import("zod").ZodString;
|
|
89
203
|
code: import("zod").ZodString;
|
|
@@ -108,7 +222,30 @@ declare const apiContractConfig: {
|
|
|
108
222
|
details?: unknown;
|
|
109
223
|
correlationId?: string | undefined;
|
|
110
224
|
}>;
|
|
111
|
-
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
findAll: {
|
|
228
|
+
query: import("zod").ZodObject<{
|
|
229
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
230
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
231
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
232
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
233
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
234
|
+
limit: number;
|
|
235
|
+
page: number;
|
|
236
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
237
|
+
search?: string | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
240
|
+
limit?: number | undefined;
|
|
241
|
+
page?: number | undefined;
|
|
242
|
+
search?: string | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
summary: "Get all clients";
|
|
245
|
+
method: "GET";
|
|
246
|
+
path: "/v2/clients";
|
|
247
|
+
responses: {
|
|
248
|
+
400: import("zod").ZodObject<{
|
|
112
249
|
statusCode: import("zod").ZodNumber;
|
|
113
250
|
message: import("zod").ZodString;
|
|
114
251
|
code: import("zod").ZodString;
|
|
@@ -133,7 +270,7 @@ declare const apiContractConfig: {
|
|
|
133
270
|
details?: unknown;
|
|
134
271
|
correlationId?: string | undefined;
|
|
135
272
|
}>;
|
|
136
|
-
|
|
273
|
+
401: import("zod").ZodObject<{
|
|
137
274
|
statusCode: import("zod").ZodNumber;
|
|
138
275
|
message: import("zod").ZodString;
|
|
139
276
|
code: import("zod").ZodString;
|
|
@@ -158,7 +295,7 @@ declare const apiContractConfig: {
|
|
|
158
295
|
details?: unknown;
|
|
159
296
|
correlationId?: string | undefined;
|
|
160
297
|
}>;
|
|
161
|
-
|
|
298
|
+
403: import("zod").ZodObject<{
|
|
162
299
|
statusCode: import("zod").ZodNumber;
|
|
163
300
|
message: import("zod").ZodString;
|
|
164
301
|
code: import("zod").ZodString;
|
|
@@ -183,7 +320,7 @@ declare const apiContractConfig: {
|
|
|
183
320
|
details?: unknown;
|
|
184
321
|
correlationId?: string | undefined;
|
|
185
322
|
}>;
|
|
186
|
-
|
|
323
|
+
500: import("zod").ZodObject<{
|
|
187
324
|
statusCode: import("zod").ZodNumber;
|
|
188
325
|
message: import("zod").ZodString;
|
|
189
326
|
code: import("zod").ZodString;
|
|
@@ -208,28 +345,8 @@ declare const apiContractConfig: {
|
|
|
208
345
|
details?: unknown;
|
|
209
346
|
correlationId?: string | undefined;
|
|
210
347
|
}>;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
name: import("zod").ZodString;
|
|
214
|
-
govLink: import("zod").ZodString;
|
|
215
|
-
director: import("zod").ZodString;
|
|
216
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
217
|
-
name: string;
|
|
218
|
-
govLink: string;
|
|
219
|
-
director: string;
|
|
220
|
-
}, {
|
|
221
|
-
name: string;
|
|
222
|
-
govLink: string;
|
|
223
|
-
director: string;
|
|
224
|
-
}>;
|
|
225
|
-
readonly summary: "Create a new client";
|
|
226
|
-
};
|
|
227
|
-
readonly findAll: {
|
|
228
|
-
readonly method: "GET";
|
|
229
|
-
readonly path: "/v2/clients";
|
|
230
|
-
readonly responses: {
|
|
231
|
-
readonly 200: import("zod").ZodObject<{
|
|
232
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
348
|
+
200: import("zod").ZodObject<{
|
|
349
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
233
350
|
id: import("zod").ZodString;
|
|
234
351
|
name: import("zod").ZodString;
|
|
235
352
|
crn: import("zod").ZodString;
|
|
@@ -304,11 +421,13 @@ declare const apiContractConfig: {
|
|
|
304
421
|
};
|
|
305
422
|
blacklistReason?: string | null | undefined;
|
|
306
423
|
}>, "many">;
|
|
307
|
-
|
|
424
|
+
totalCount: import("zod").ZodNumber;
|
|
308
425
|
limit: import("zod").ZodNumber;
|
|
309
426
|
skip: import("zod").ZodNumber;
|
|
427
|
+
currentPage: import("zod").ZodNumber;
|
|
428
|
+
totalPages: import("zod").ZodNumber;
|
|
310
429
|
}, "strip", import("zod").ZodTypeAny, {
|
|
311
|
-
|
|
430
|
+
items: {
|
|
312
431
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
313
432
|
id: string;
|
|
314
433
|
name: string;
|
|
@@ -329,11 +448,13 @@ declare const apiContractConfig: {
|
|
|
329
448
|
};
|
|
330
449
|
blacklistReason?: string | null | undefined;
|
|
331
450
|
}[];
|
|
332
|
-
|
|
451
|
+
totalCount: number;
|
|
333
452
|
limit: number;
|
|
334
453
|
skip: number;
|
|
454
|
+
currentPage: number;
|
|
455
|
+
totalPages: number;
|
|
335
456
|
}, {
|
|
336
|
-
|
|
457
|
+
items: {
|
|
337
458
|
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
338
459
|
id: string;
|
|
339
460
|
name: string;
|
|
@@ -354,11 +475,27 @@ declare const apiContractConfig: {
|
|
|
354
475
|
};
|
|
355
476
|
blacklistReason?: string | null | undefined;
|
|
356
477
|
}[];
|
|
357
|
-
|
|
478
|
+
totalCount: number;
|
|
358
479
|
limit: number;
|
|
359
480
|
skip: number;
|
|
481
|
+
currentPage: number;
|
|
482
|
+
totalPages: number;
|
|
360
483
|
}>;
|
|
361
|
-
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
autocomplete: {
|
|
487
|
+
query: import("zod").ZodObject<{
|
|
488
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
489
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
490
|
+
search?: string | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
search?: string | undefined;
|
|
493
|
+
}>;
|
|
494
|
+
summary: "Get clients for autocomplete";
|
|
495
|
+
method: "GET";
|
|
496
|
+
path: "/v2/clients/autocomplete";
|
|
497
|
+
responses: {
|
|
498
|
+
400: import("zod").ZodObject<{
|
|
362
499
|
statusCode: import("zod").ZodNumber;
|
|
363
500
|
message: import("zod").ZodString;
|
|
364
501
|
code: import("zod").ZodString;
|
|
@@ -383,7 +520,7 @@ declare const apiContractConfig: {
|
|
|
383
520
|
details?: unknown;
|
|
384
521
|
correlationId?: string | undefined;
|
|
385
522
|
}>;
|
|
386
|
-
|
|
523
|
+
401: import("zod").ZodObject<{
|
|
387
524
|
statusCode: import("zod").ZodNumber;
|
|
388
525
|
message: import("zod").ZodString;
|
|
389
526
|
code: import("zod").ZodString;
|
|
@@ -408,7 +545,7 @@ declare const apiContractConfig: {
|
|
|
408
545
|
details?: unknown;
|
|
409
546
|
correlationId?: string | undefined;
|
|
410
547
|
}>;
|
|
411
|
-
|
|
548
|
+
403: import("zod").ZodObject<{
|
|
412
549
|
statusCode: import("zod").ZodNumber;
|
|
413
550
|
message: import("zod").ZodString;
|
|
414
551
|
code: import("zod").ZodString;
|
|
@@ -433,7 +570,7 @@ declare const apiContractConfig: {
|
|
|
433
570
|
details?: unknown;
|
|
434
571
|
correlationId?: string | undefined;
|
|
435
572
|
}>;
|
|
436
|
-
|
|
573
|
+
500: import("zod").ZodObject<{
|
|
437
574
|
statusCode: import("zod").ZodNumber;
|
|
438
575
|
message: import("zod").ZodString;
|
|
439
576
|
code: import("zod").ZodString;
|
|
@@ -458,30 +595,7 @@ declare const apiContractConfig: {
|
|
|
458
595
|
details?: unknown;
|
|
459
596
|
correlationId?: string | undefined;
|
|
460
597
|
}>;
|
|
461
|
-
|
|
462
|
-
readonly query: import("zod").ZodObject<{
|
|
463
|
-
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
464
|
-
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
465
|
-
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
466
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
467
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
468
|
-
limit: number;
|
|
469
|
-
page: number;
|
|
470
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
471
|
-
search?: string | undefined;
|
|
472
|
-
}, {
|
|
473
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
474
|
-
limit?: number | undefined;
|
|
475
|
-
page?: number | undefined;
|
|
476
|
-
search?: string | undefined;
|
|
477
|
-
}>;
|
|
478
|
-
readonly summary: "Get all clients";
|
|
479
|
-
};
|
|
480
|
-
readonly autocomplete: {
|
|
481
|
-
readonly method: "GET";
|
|
482
|
-
readonly path: "/v2/clients/autocomplete";
|
|
483
|
-
readonly responses: {
|
|
484
|
-
readonly 200: import("zod").ZodArray<import("zod").ZodObject<{
|
|
598
|
+
200: import("zod").ZodArray<import("zod").ZodObject<{
|
|
485
599
|
id: import("zod").ZodString;
|
|
486
600
|
name: import("zod").ZodString;
|
|
487
601
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -491,7 +605,21 @@ declare const apiContractConfig: {
|
|
|
491
605
|
id: string;
|
|
492
606
|
name: string;
|
|
493
607
|
}>, "many">;
|
|
494
|
-
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
findOne: {
|
|
611
|
+
pathParams: import("zod").ZodObject<{
|
|
612
|
+
id: import("zod").ZodString;
|
|
613
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
614
|
+
id: string;
|
|
615
|
+
}, {
|
|
616
|
+
id: string;
|
|
617
|
+
}>;
|
|
618
|
+
summary: "Get a client by ID";
|
|
619
|
+
method: "GET";
|
|
620
|
+
path: "/v2/clients/:id";
|
|
621
|
+
responses: {
|
|
622
|
+
400: import("zod").ZodObject<{
|
|
495
623
|
statusCode: import("zod").ZodNumber;
|
|
496
624
|
message: import("zod").ZodString;
|
|
497
625
|
code: import("zod").ZodString;
|
|
@@ -516,7 +644,7 @@ declare const apiContractConfig: {
|
|
|
516
644
|
details?: unknown;
|
|
517
645
|
correlationId?: string | undefined;
|
|
518
646
|
}>;
|
|
519
|
-
|
|
647
|
+
401: import("zod").ZodObject<{
|
|
520
648
|
statusCode: import("zod").ZodNumber;
|
|
521
649
|
message: import("zod").ZodString;
|
|
522
650
|
code: import("zod").ZodString;
|
|
@@ -541,7 +669,7 @@ declare const apiContractConfig: {
|
|
|
541
669
|
details?: unknown;
|
|
542
670
|
correlationId?: string | undefined;
|
|
543
671
|
}>;
|
|
544
|
-
|
|
672
|
+
403: import("zod").ZodObject<{
|
|
545
673
|
statusCode: import("zod").ZodNumber;
|
|
546
674
|
message: import("zod").ZodString;
|
|
547
675
|
code: import("zod").ZodString;
|
|
@@ -566,7 +694,7 @@ declare const apiContractConfig: {
|
|
|
566
694
|
details?: unknown;
|
|
567
695
|
correlationId?: string | undefined;
|
|
568
696
|
}>;
|
|
569
|
-
|
|
697
|
+
500: import("zod").ZodObject<{
|
|
570
698
|
statusCode: import("zod").ZodNumber;
|
|
571
699
|
message: import("zod").ZodString;
|
|
572
700
|
code: import("zod").ZodString;
|
|
@@ -591,21 +719,7 @@ declare const apiContractConfig: {
|
|
|
591
719
|
details?: unknown;
|
|
592
720
|
correlationId?: string | undefined;
|
|
593
721
|
}>;
|
|
594
|
-
|
|
595
|
-
readonly query: import("zod").ZodObject<{
|
|
596
|
-
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
597
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
598
|
-
search?: string | undefined;
|
|
599
|
-
}, {
|
|
600
|
-
search?: string | undefined;
|
|
601
|
-
}>;
|
|
602
|
-
readonly summary: "Get clients for autocomplete";
|
|
603
|
-
};
|
|
604
|
-
readonly findOne: {
|
|
605
|
-
readonly method: "GET";
|
|
606
|
-
readonly path: "/v2/clients/:id";
|
|
607
|
-
readonly responses: {
|
|
608
|
-
readonly 200: import("zod").ZodObject<{
|
|
722
|
+
200: import("zod").ZodObject<{
|
|
609
723
|
id: import("zod").ZodString;
|
|
610
724
|
name: import("zod").ZodString;
|
|
611
725
|
crn: import("zod").ZodString;
|
|
@@ -680,7 +794,7 @@ declare const apiContractConfig: {
|
|
|
680
794
|
};
|
|
681
795
|
blacklistReason?: string | null | undefined;
|
|
682
796
|
}>;
|
|
683
|
-
|
|
797
|
+
404: import("zod").ZodObject<{
|
|
684
798
|
statusCode: import("zod").ZodNumber;
|
|
685
799
|
message: import("zod").ZodString;
|
|
686
800
|
code: import("zod").ZodString;
|
|
@@ -705,7 +819,52 @@ declare const apiContractConfig: {
|
|
|
705
819
|
details?: unknown;
|
|
706
820
|
correlationId?: string | undefined;
|
|
707
821
|
}>;
|
|
708
|
-
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
update: {
|
|
825
|
+
pathParams: import("zod").ZodObject<{
|
|
826
|
+
id: import("zod").ZodString;
|
|
827
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
828
|
+
id: string;
|
|
829
|
+
}, {
|
|
830
|
+
id: string;
|
|
831
|
+
}>;
|
|
832
|
+
summary: "Update a client";
|
|
833
|
+
method: "PATCH";
|
|
834
|
+
body: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
835
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
836
|
+
govLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
837
|
+
director: import("zod").ZodOptional<import("zod").ZodString>;
|
|
838
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
839
|
+
blacklistReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
840
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
841
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
842
|
+
name?: string | undefined;
|
|
843
|
+
govLink?: string | undefined;
|
|
844
|
+
director?: string | undefined;
|
|
845
|
+
blacklistReason?: string | null | undefined;
|
|
846
|
+
}, {
|
|
847
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
848
|
+
name?: string | undefined;
|
|
849
|
+
govLink?: string | undefined;
|
|
850
|
+
director?: string | undefined;
|
|
851
|
+
blacklistReason?: string | null | undefined;
|
|
852
|
+
}>, {
|
|
853
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
854
|
+
name?: string | undefined;
|
|
855
|
+
govLink?: string | undefined;
|
|
856
|
+
director?: string | undefined;
|
|
857
|
+
blacklistReason?: string | null | undefined;
|
|
858
|
+
}, {
|
|
859
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
860
|
+
name?: string | undefined;
|
|
861
|
+
govLink?: string | undefined;
|
|
862
|
+
director?: string | undefined;
|
|
863
|
+
blacklistReason?: string | null | undefined;
|
|
864
|
+
}>;
|
|
865
|
+
path: "/v2/clients/:id";
|
|
866
|
+
responses: {
|
|
867
|
+
400: import("zod").ZodObject<{
|
|
709
868
|
statusCode: import("zod").ZodNumber;
|
|
710
869
|
message: import("zod").ZodString;
|
|
711
870
|
code: import("zod").ZodString;
|
|
@@ -730,7 +889,7 @@ declare const apiContractConfig: {
|
|
|
730
889
|
details?: unknown;
|
|
731
890
|
correlationId?: string | undefined;
|
|
732
891
|
}>;
|
|
733
|
-
|
|
892
|
+
401: import("zod").ZodObject<{
|
|
734
893
|
statusCode: import("zod").ZodNumber;
|
|
735
894
|
message: import("zod").ZodString;
|
|
736
895
|
code: import("zod").ZodString;
|
|
@@ -755,7 +914,7 @@ declare const apiContractConfig: {
|
|
|
755
914
|
details?: unknown;
|
|
756
915
|
correlationId?: string | undefined;
|
|
757
916
|
}>;
|
|
758
|
-
|
|
917
|
+
403: import("zod").ZodObject<{
|
|
759
918
|
statusCode: import("zod").ZodNumber;
|
|
760
919
|
message: import("zod").ZodString;
|
|
761
920
|
code: import("zod").ZodString;
|
|
@@ -780,7 +939,7 @@ declare const apiContractConfig: {
|
|
|
780
939
|
details?: unknown;
|
|
781
940
|
correlationId?: string | undefined;
|
|
782
941
|
}>;
|
|
783
|
-
|
|
942
|
+
500: import("zod").ZodObject<{
|
|
784
943
|
statusCode: import("zod").ZodNumber;
|
|
785
944
|
message: import("zod").ZodString;
|
|
786
945
|
code: import("zod").ZodString;
|
|
@@ -805,21 +964,7 @@ declare const apiContractConfig: {
|
|
|
805
964
|
details?: unknown;
|
|
806
965
|
correlationId?: string | undefined;
|
|
807
966
|
}>;
|
|
808
|
-
|
|
809
|
-
readonly pathParams: import("zod").ZodObject<{
|
|
810
|
-
id: import("zod").ZodString;
|
|
811
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
812
|
-
id: string;
|
|
813
|
-
}, {
|
|
814
|
-
id: string;
|
|
815
|
-
}>;
|
|
816
|
-
readonly summary: "Get a client by ID";
|
|
817
|
-
};
|
|
818
|
-
readonly update: {
|
|
819
|
-
readonly method: "PATCH";
|
|
820
|
-
readonly path: "/v2/clients/:id";
|
|
821
|
-
readonly responses: {
|
|
822
|
-
readonly 200: import("zod").ZodObject<{
|
|
967
|
+
200: import("zod").ZodObject<{
|
|
823
968
|
id: import("zod").ZodString;
|
|
824
969
|
name: import("zod").ZodString;
|
|
825
970
|
crn: import("zod").ZodString;
|
|
@@ -894,7 +1039,7 @@ declare const apiContractConfig: {
|
|
|
894
1039
|
};
|
|
895
1040
|
blacklistReason?: string | null | undefined;
|
|
896
1041
|
}>;
|
|
897
|
-
|
|
1042
|
+
404: import("zod").ZodObject<{
|
|
898
1043
|
statusCode: import("zod").ZodNumber;
|
|
899
1044
|
message: import("zod").ZodString;
|
|
900
1045
|
code: import("zod").ZodString;
|
|
@@ -919,7 +1064,7 @@ declare const apiContractConfig: {
|
|
|
919
1064
|
details?: unknown;
|
|
920
1065
|
correlationId?: string | undefined;
|
|
921
1066
|
}>;
|
|
922
|
-
|
|
1067
|
+
409: import("zod").ZodObject<{
|
|
923
1068
|
statusCode: import("zod").ZodNumber;
|
|
924
1069
|
message: import("zod").ZodString;
|
|
925
1070
|
code: import("zod").ZodString;
|
|
@@ -944,7 +1089,22 @@ declare const apiContractConfig: {
|
|
|
944
1089
|
details?: unknown;
|
|
945
1090
|
correlationId?: string | undefined;
|
|
946
1091
|
}>;
|
|
947
|
-
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
remove: {
|
|
1095
|
+
pathParams: import("zod").ZodObject<{
|
|
1096
|
+
id: import("zod").ZodString;
|
|
1097
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1098
|
+
id: string;
|
|
1099
|
+
}, {
|
|
1100
|
+
id: string;
|
|
1101
|
+
}>;
|
|
1102
|
+
summary: "Delete a client";
|
|
1103
|
+
method: "DELETE";
|
|
1104
|
+
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1105
|
+
path: "/v2/clients/:id";
|
|
1106
|
+
responses: {
|
|
1107
|
+
400: import("zod").ZodObject<{
|
|
948
1108
|
statusCode: import("zod").ZodNumber;
|
|
949
1109
|
message: import("zod").ZodString;
|
|
950
1110
|
code: import("zod").ZodString;
|
|
@@ -969,7 +1129,7 @@ declare const apiContractConfig: {
|
|
|
969
1129
|
details?: unknown;
|
|
970
1130
|
correlationId?: string | undefined;
|
|
971
1131
|
}>;
|
|
972
|
-
|
|
1132
|
+
401: import("zod").ZodObject<{
|
|
973
1133
|
statusCode: import("zod").ZodNumber;
|
|
974
1134
|
message: import("zod").ZodString;
|
|
975
1135
|
code: import("zod").ZodString;
|
|
@@ -994,7 +1154,7 @@ declare const apiContractConfig: {
|
|
|
994
1154
|
details?: unknown;
|
|
995
1155
|
correlationId?: string | undefined;
|
|
996
1156
|
}>;
|
|
997
|
-
|
|
1157
|
+
403: import("zod").ZodObject<{
|
|
998
1158
|
statusCode: import("zod").ZodNumber;
|
|
999
1159
|
message: import("zod").ZodString;
|
|
1000
1160
|
code: import("zod").ZodString;
|
|
@@ -1019,7 +1179,7 @@ declare const apiContractConfig: {
|
|
|
1019
1179
|
details?: unknown;
|
|
1020
1180
|
correlationId?: string | undefined;
|
|
1021
1181
|
}>;
|
|
1022
|
-
|
|
1182
|
+
500: import("zod").ZodObject<{
|
|
1023
1183
|
statusCode: import("zod").ZodNumber;
|
|
1024
1184
|
message: import("zod").ZodString;
|
|
1025
1185
|
code: import("zod").ZodString;
|
|
@@ -1044,53 +1204,8 @@ declare const apiContractConfig: {
|
|
|
1044
1204
|
details?: unknown;
|
|
1045
1205
|
correlationId?: string | undefined;
|
|
1046
1206
|
}>;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
id: import("zod").ZodString;
|
|
1050
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1051
|
-
id: string;
|
|
1052
|
-
}, {
|
|
1053
|
-
id: string;
|
|
1054
|
-
}>;
|
|
1055
|
-
readonly body: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
1056
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1057
|
-
govLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1058
|
-
director: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1059
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
1060
|
-
blacklistReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1061
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1062
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1063
|
-
name?: string | undefined;
|
|
1064
|
-
govLink?: string | undefined;
|
|
1065
|
-
director?: string | undefined;
|
|
1066
|
-
blacklistReason?: string | null | undefined;
|
|
1067
|
-
}, {
|
|
1068
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1069
|
-
name?: string | undefined;
|
|
1070
|
-
govLink?: string | undefined;
|
|
1071
|
-
director?: string | undefined;
|
|
1072
|
-
blacklistReason?: string | null | undefined;
|
|
1073
|
-
}>, {
|
|
1074
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1075
|
-
name?: string | undefined;
|
|
1076
|
-
govLink?: string | undefined;
|
|
1077
|
-
director?: string | undefined;
|
|
1078
|
-
blacklistReason?: string | null | undefined;
|
|
1079
|
-
}, {
|
|
1080
|
-
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1081
|
-
name?: string | undefined;
|
|
1082
|
-
govLink?: string | undefined;
|
|
1083
|
-
director?: string | undefined;
|
|
1084
|
-
blacklistReason?: string | null | undefined;
|
|
1085
|
-
}>;
|
|
1086
|
-
readonly summary: "Update a client";
|
|
1087
|
-
};
|
|
1088
|
-
readonly remove: {
|
|
1089
|
-
readonly method: "DELETE";
|
|
1090
|
-
readonly path: "/v2/clients/:id";
|
|
1091
|
-
readonly responses: {
|
|
1092
|
-
readonly 204: import("zod").ZodNull;
|
|
1093
|
-
readonly 400: import("zod").ZodObject<{
|
|
1207
|
+
204: typeof import("@ts-rest/core").ContractNoBody;
|
|
1208
|
+
404: import("zod").ZodObject<{
|
|
1094
1209
|
statusCode: import("zod").ZodNumber;
|
|
1095
1210
|
message: import("zod").ZodString;
|
|
1096
1211
|
code: import("zod").ZodString;
|
|
@@ -1115,7 +1230,48 @@ declare const apiContractConfig: {
|
|
|
1115
1230
|
details?: unknown;
|
|
1116
1231
|
correlationId?: string | undefined;
|
|
1117
1232
|
}>;
|
|
1118
|
-
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
clientContacts: {
|
|
1237
|
+
create: {
|
|
1238
|
+
summary: "Create a new client contact";
|
|
1239
|
+
method: "POST";
|
|
1240
|
+
body: import("zod").ZodObject<{
|
|
1241
|
+
client: import("zod").ZodObject<{
|
|
1242
|
+
id: import("zod").ZodString;
|
|
1243
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1244
|
+
id: string;
|
|
1245
|
+
}, {
|
|
1246
|
+
id: string;
|
|
1247
|
+
}>;
|
|
1248
|
+
name: import("zod").ZodString;
|
|
1249
|
+
position: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1250
|
+
phone: import("zod").ZodString;
|
|
1251
|
+
email: import("zod").ZodString;
|
|
1252
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1253
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1254
|
+
email: string;
|
|
1255
|
+
name: string;
|
|
1256
|
+
client: {
|
|
1257
|
+
id: string;
|
|
1258
|
+
};
|
|
1259
|
+
phone: string;
|
|
1260
|
+
position?: string | undefined;
|
|
1261
|
+
source?: string | undefined;
|
|
1262
|
+
}, {
|
|
1263
|
+
email: string;
|
|
1264
|
+
name: string;
|
|
1265
|
+
client: {
|
|
1266
|
+
id: string;
|
|
1267
|
+
};
|
|
1268
|
+
phone: string;
|
|
1269
|
+
position?: string | undefined;
|
|
1270
|
+
source?: string | undefined;
|
|
1271
|
+
}>;
|
|
1272
|
+
path: "/v2/client-contacts";
|
|
1273
|
+
responses: {
|
|
1274
|
+
400: import("zod").ZodObject<{
|
|
1119
1275
|
statusCode: import("zod").ZodNumber;
|
|
1120
1276
|
message: import("zod").ZodString;
|
|
1121
1277
|
code: import("zod").ZodString;
|
|
@@ -1140,7 +1296,7 @@ declare const apiContractConfig: {
|
|
|
1140
1296
|
details?: unknown;
|
|
1141
1297
|
correlationId?: string | undefined;
|
|
1142
1298
|
}>;
|
|
1143
|
-
|
|
1299
|
+
401: import("zod").ZodObject<{
|
|
1144
1300
|
statusCode: import("zod").ZodNumber;
|
|
1145
1301
|
message: import("zod").ZodString;
|
|
1146
1302
|
code: import("zod").ZodString;
|
|
@@ -1165,7 +1321,7 @@ declare const apiContractConfig: {
|
|
|
1165
1321
|
details?: unknown;
|
|
1166
1322
|
correlationId?: string | undefined;
|
|
1167
1323
|
}>;
|
|
1168
|
-
|
|
1324
|
+
403: import("zod").ZodObject<{
|
|
1169
1325
|
statusCode: import("zod").ZodNumber;
|
|
1170
1326
|
message: import("zod").ZodString;
|
|
1171
1327
|
code: import("zod").ZodString;
|
|
@@ -1190,7 +1346,7 @@ declare const apiContractConfig: {
|
|
|
1190
1346
|
details?: unknown;
|
|
1191
1347
|
correlationId?: string | undefined;
|
|
1192
1348
|
}>;
|
|
1193
|
-
|
|
1349
|
+
500: import("zod").ZodObject<{
|
|
1194
1350
|
statusCode: import("zod").ZodNumber;
|
|
1195
1351
|
message: import("zod").ZodString;
|
|
1196
1352
|
code: import("zod").ZodString;
|
|
@@ -1215,24 +1371,7 @@ declare const apiContractConfig: {
|
|
|
1215
1371
|
details?: unknown;
|
|
1216
1372
|
correlationId?: string | undefined;
|
|
1217
1373
|
}>;
|
|
1218
|
-
|
|
1219
|
-
readonly pathParams: import("zod").ZodObject<{
|
|
1220
|
-
id: import("zod").ZodString;
|
|
1221
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1222
|
-
id: string;
|
|
1223
|
-
}, {
|
|
1224
|
-
id: string;
|
|
1225
|
-
}>;
|
|
1226
|
-
readonly body: import("zod").ZodUndefined;
|
|
1227
|
-
readonly summary: "Delete a client";
|
|
1228
|
-
};
|
|
1229
|
-
};
|
|
1230
|
-
readonly clientContacts: {
|
|
1231
|
-
readonly create: {
|
|
1232
|
-
readonly method: "POST";
|
|
1233
|
-
readonly path: "/v2/client-contacts";
|
|
1234
|
-
readonly responses: {
|
|
1235
|
-
readonly 201: import("zod").ZodObject<{
|
|
1374
|
+
201: import("zod").ZodObject<{
|
|
1236
1375
|
id: import("zod").ZodString;
|
|
1237
1376
|
clientId: import("zod").ZodString;
|
|
1238
1377
|
client: import("zod").ZodObject<{
|
|
@@ -1411,7 +1550,7 @@ declare const apiContractConfig: {
|
|
|
1411
1550
|
position?: string | undefined;
|
|
1412
1551
|
source?: string | undefined;
|
|
1413
1552
|
}>;
|
|
1414
|
-
|
|
1553
|
+
409: import("zod").ZodObject<{
|
|
1415
1554
|
statusCode: import("zod").ZodNumber;
|
|
1416
1555
|
message: import("zod").ZodString;
|
|
1417
1556
|
code: import("zod").ZodString;
|
|
@@ -1436,7 +1575,47 @@ declare const apiContractConfig: {
|
|
|
1436
1575
|
details?: unknown;
|
|
1437
1576
|
correlationId?: string | undefined;
|
|
1438
1577
|
}>;
|
|
1439
|
-
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
createByClientId: {
|
|
1581
|
+
pathParams: import("zod").ZodObject<{
|
|
1582
|
+
clientId: import("zod").ZodString;
|
|
1583
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1584
|
+
clientId: string;
|
|
1585
|
+
}, {
|
|
1586
|
+
clientId: string;
|
|
1587
|
+
}>;
|
|
1588
|
+
summary: "Create a new contact for a specific client";
|
|
1589
|
+
method: "POST";
|
|
1590
|
+
body: import("zod").ZodObject<Omit<{
|
|
1591
|
+
client: import("zod").ZodObject<{
|
|
1592
|
+
id: import("zod").ZodString;
|
|
1593
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1594
|
+
id: string;
|
|
1595
|
+
}, {
|
|
1596
|
+
id: string;
|
|
1597
|
+
}>;
|
|
1598
|
+
name: import("zod").ZodString;
|
|
1599
|
+
position: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1600
|
+
phone: import("zod").ZodString;
|
|
1601
|
+
email: import("zod").ZodString;
|
|
1602
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1603
|
+
}, "client">, "strip", import("zod").ZodTypeAny, {
|
|
1604
|
+
email: string;
|
|
1605
|
+
name: string;
|
|
1606
|
+
phone: string;
|
|
1607
|
+
position?: string | undefined;
|
|
1608
|
+
source?: string | undefined;
|
|
1609
|
+
}, {
|
|
1610
|
+
email: string;
|
|
1611
|
+
name: string;
|
|
1612
|
+
phone: string;
|
|
1613
|
+
position?: string | undefined;
|
|
1614
|
+
source?: string | undefined;
|
|
1615
|
+
}>;
|
|
1616
|
+
path: "/v2/client-contacts/client/:clientId";
|
|
1617
|
+
responses: {
|
|
1618
|
+
400: import("zod").ZodObject<{
|
|
1440
1619
|
statusCode: import("zod").ZodNumber;
|
|
1441
1620
|
message: import("zod").ZodString;
|
|
1442
1621
|
code: import("zod").ZodString;
|
|
@@ -1461,7 +1640,7 @@ declare const apiContractConfig: {
|
|
|
1461
1640
|
details?: unknown;
|
|
1462
1641
|
correlationId?: string | undefined;
|
|
1463
1642
|
}>;
|
|
1464
|
-
|
|
1643
|
+
401: import("zod").ZodObject<{
|
|
1465
1644
|
statusCode: import("zod").ZodNumber;
|
|
1466
1645
|
message: import("zod").ZodString;
|
|
1467
1646
|
code: import("zod").ZodString;
|
|
@@ -1486,7 +1665,7 @@ declare const apiContractConfig: {
|
|
|
1486
1665
|
details?: unknown;
|
|
1487
1666
|
correlationId?: string | undefined;
|
|
1488
1667
|
}>;
|
|
1489
|
-
|
|
1668
|
+
403: import("zod").ZodObject<{
|
|
1490
1669
|
statusCode: import("zod").ZodNumber;
|
|
1491
1670
|
message: import("zod").ZodString;
|
|
1492
1671
|
code: import("zod").ZodString;
|
|
@@ -1511,7 +1690,7 @@ declare const apiContractConfig: {
|
|
|
1511
1690
|
details?: unknown;
|
|
1512
1691
|
correlationId?: string | undefined;
|
|
1513
1692
|
}>;
|
|
1514
|
-
|
|
1693
|
+
500: import("zod").ZodObject<{
|
|
1515
1694
|
statusCode: import("zod").ZodNumber;
|
|
1516
1695
|
message: import("zod").ZodString;
|
|
1517
1696
|
code: import("zod").ZodString;
|
|
@@ -1536,46 +1715,7 @@ declare const apiContractConfig: {
|
|
|
1536
1715
|
details?: unknown;
|
|
1537
1716
|
correlationId?: string | undefined;
|
|
1538
1717
|
}>;
|
|
1539
|
-
|
|
1540
|
-
readonly body: import("zod").ZodObject<{
|
|
1541
|
-
client: import("zod").ZodObject<{
|
|
1542
|
-
id: import("zod").ZodString;
|
|
1543
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1544
|
-
id: string;
|
|
1545
|
-
}, {
|
|
1546
|
-
id: string;
|
|
1547
|
-
}>;
|
|
1548
|
-
name: import("zod").ZodString;
|
|
1549
|
-
position: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1550
|
-
phone: import("zod").ZodString;
|
|
1551
|
-
email: import("zod").ZodString;
|
|
1552
|
-
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1553
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1554
|
-
email: string;
|
|
1555
|
-
name: string;
|
|
1556
|
-
client: {
|
|
1557
|
-
id: string;
|
|
1558
|
-
};
|
|
1559
|
-
phone: string;
|
|
1560
|
-
position?: string | undefined;
|
|
1561
|
-
source?: string | undefined;
|
|
1562
|
-
}, {
|
|
1563
|
-
email: string;
|
|
1564
|
-
name: string;
|
|
1565
|
-
client: {
|
|
1566
|
-
id: string;
|
|
1567
|
-
};
|
|
1568
|
-
phone: string;
|
|
1569
|
-
position?: string | undefined;
|
|
1570
|
-
source?: string | undefined;
|
|
1571
|
-
}>;
|
|
1572
|
-
readonly summary: "Create a new client contact";
|
|
1573
|
-
};
|
|
1574
|
-
readonly createByClientId: {
|
|
1575
|
-
readonly method: "POST";
|
|
1576
|
-
readonly path: "/v2/client-contacts/client/:clientId";
|
|
1577
|
-
readonly responses: {
|
|
1578
|
-
readonly 201: import("zod").ZodObject<{
|
|
1718
|
+
201: import("zod").ZodObject<{
|
|
1579
1719
|
id: import("zod").ZodString;
|
|
1580
1720
|
clientId: import("zod").ZodString;
|
|
1581
1721
|
client: import("zod").ZodObject<{
|
|
@@ -1754,7 +1894,7 @@ declare const apiContractConfig: {
|
|
|
1754
1894
|
position?: string | undefined;
|
|
1755
1895
|
source?: string | undefined;
|
|
1756
1896
|
}>;
|
|
1757
|
-
|
|
1897
|
+
409: import("zod").ZodObject<{
|
|
1758
1898
|
statusCode: import("zod").ZodNumber;
|
|
1759
1899
|
message: import("zod").ZodString;
|
|
1760
1900
|
code: import("zod").ZodString;
|
|
@@ -1779,7 +1919,45 @@ declare const apiContractConfig: {
|
|
|
1779
1919
|
details?: unknown;
|
|
1780
1920
|
correlationId?: string | undefined;
|
|
1781
1921
|
}>;
|
|
1782
|
-
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
findAll: {
|
|
1925
|
+
query: import("zod").ZodObject<{
|
|
1926
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1927
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1928
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1929
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1930
|
+
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1931
|
+
clientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1932
|
+
createdById: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1933
|
+
sortBy: import("zod").ZodDefault<import("zod").ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
|
|
1934
|
+
sortOrder: import("zod").ZodDefault<import("zod").ZodEnum<["ASC", "DESC"]>>;
|
|
1935
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1936
|
+
limit: number;
|
|
1937
|
+
page: number;
|
|
1938
|
+
sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
|
|
1939
|
+
sortOrder: "ASC" | "DESC";
|
|
1940
|
+
email?: string | undefined;
|
|
1941
|
+
name?: string | undefined;
|
|
1942
|
+
clientId?: string | undefined;
|
|
1943
|
+
phone?: string | undefined;
|
|
1944
|
+
createdById?: string | undefined;
|
|
1945
|
+
}, {
|
|
1946
|
+
limit?: number | undefined;
|
|
1947
|
+
email?: string | undefined;
|
|
1948
|
+
name?: string | undefined;
|
|
1949
|
+
page?: number | undefined;
|
|
1950
|
+
clientId?: string | undefined;
|
|
1951
|
+
phone?: string | undefined;
|
|
1952
|
+
createdById?: string | undefined;
|
|
1953
|
+
sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
|
|
1954
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1955
|
+
}>;
|
|
1956
|
+
summary: "Get all client contacts";
|
|
1957
|
+
method: "GET";
|
|
1958
|
+
path: "/v2/client-contacts";
|
|
1959
|
+
responses: {
|
|
1960
|
+
400: import("zod").ZodObject<{
|
|
1783
1961
|
statusCode: import("zod").ZodNumber;
|
|
1784
1962
|
message: import("zod").ZodString;
|
|
1785
1963
|
code: import("zod").ZodString;
|
|
@@ -1804,7 +1982,7 @@ declare const apiContractConfig: {
|
|
|
1804
1982
|
details?: unknown;
|
|
1805
1983
|
correlationId?: string | undefined;
|
|
1806
1984
|
}>;
|
|
1807
|
-
|
|
1985
|
+
401: import("zod").ZodObject<{
|
|
1808
1986
|
statusCode: import("zod").ZodNumber;
|
|
1809
1987
|
message: import("zod").ZodString;
|
|
1810
1988
|
code: import("zod").ZodString;
|
|
@@ -1829,7 +2007,7 @@ declare const apiContractConfig: {
|
|
|
1829
2007
|
details?: unknown;
|
|
1830
2008
|
correlationId?: string | undefined;
|
|
1831
2009
|
}>;
|
|
1832
|
-
|
|
2010
|
+
403: import("zod").ZodObject<{
|
|
1833
2011
|
statusCode: import("zod").ZodNumber;
|
|
1834
2012
|
message: import("zod").ZodString;
|
|
1835
2013
|
code: import("zod").ZodString;
|
|
@@ -1854,7 +2032,7 @@ declare const apiContractConfig: {
|
|
|
1854
2032
|
details?: unknown;
|
|
1855
2033
|
correlationId?: string | undefined;
|
|
1856
2034
|
}>;
|
|
1857
|
-
|
|
2035
|
+
500: import("zod").ZodObject<{
|
|
1858
2036
|
statusCode: import("zod").ZodNumber;
|
|
1859
2037
|
message: import("zod").ZodString;
|
|
1860
2038
|
code: import("zod").ZodString;
|
|
@@ -1879,48 +2057,8 @@ declare const apiContractConfig: {
|
|
|
1879
2057
|
details?: unknown;
|
|
1880
2058
|
correlationId?: string | undefined;
|
|
1881
2059
|
}>;
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
clientId: import("zod").ZodString;
|
|
1885
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1886
|
-
clientId: string;
|
|
1887
|
-
}, {
|
|
1888
|
-
clientId: string;
|
|
1889
|
-
}>;
|
|
1890
|
-
readonly body: import("zod").ZodObject<Omit<{
|
|
1891
|
-
client: import("zod").ZodObject<{
|
|
1892
|
-
id: import("zod").ZodString;
|
|
1893
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1894
|
-
id: string;
|
|
1895
|
-
}, {
|
|
1896
|
-
id: string;
|
|
1897
|
-
}>;
|
|
1898
|
-
name: import("zod").ZodString;
|
|
1899
|
-
position: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1900
|
-
phone: import("zod").ZodString;
|
|
1901
|
-
email: import("zod").ZodString;
|
|
1902
|
-
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1903
|
-
}, "client">, "strip", import("zod").ZodTypeAny, {
|
|
1904
|
-
email: string;
|
|
1905
|
-
name: string;
|
|
1906
|
-
phone: string;
|
|
1907
|
-
position?: string | undefined;
|
|
1908
|
-
source?: string | undefined;
|
|
1909
|
-
}, {
|
|
1910
|
-
email: string;
|
|
1911
|
-
name: string;
|
|
1912
|
-
phone: string;
|
|
1913
|
-
position?: string | undefined;
|
|
1914
|
-
source?: string | undefined;
|
|
1915
|
-
}>;
|
|
1916
|
-
readonly summary: "Create a new contact for a specific client";
|
|
1917
|
-
};
|
|
1918
|
-
readonly findAll: {
|
|
1919
|
-
readonly method: "GET";
|
|
1920
|
-
readonly path: "/v2/client-contacts";
|
|
1921
|
-
readonly responses: {
|
|
1922
|
-
readonly 200: import("zod").ZodObject<{
|
|
1923
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2060
|
+
200: import("zod").ZodObject<{
|
|
2061
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1924
2062
|
id: import("zod").ZodString;
|
|
1925
2063
|
clientId: import("zod").ZodString;
|
|
1926
2064
|
client: import("zod").ZodObject<{
|
|
@@ -2099,11 +2237,13 @@ declare const apiContractConfig: {
|
|
|
2099
2237
|
position?: string | undefined;
|
|
2100
2238
|
source?: string | undefined;
|
|
2101
2239
|
}>, "many">;
|
|
2102
|
-
|
|
2240
|
+
totalCount: import("zod").ZodNumber;
|
|
2103
2241
|
limit: import("zod").ZodNumber;
|
|
2104
2242
|
skip: import("zod").ZodNumber;
|
|
2243
|
+
currentPage: import("zod").ZodNumber;
|
|
2244
|
+
totalPages: import("zod").ZodNumber;
|
|
2105
2245
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2106
|
-
|
|
2246
|
+
items: {
|
|
2107
2247
|
id: string;
|
|
2108
2248
|
email: string;
|
|
2109
2249
|
name: string;
|
|
@@ -2142,11 +2282,13 @@ declare const apiContractConfig: {
|
|
|
2142
2282
|
position?: string | undefined;
|
|
2143
2283
|
source?: string | undefined;
|
|
2144
2284
|
}[];
|
|
2145
|
-
|
|
2285
|
+
totalCount: number;
|
|
2146
2286
|
limit: number;
|
|
2147
2287
|
skip: number;
|
|
2288
|
+
currentPage: number;
|
|
2289
|
+
totalPages: number;
|
|
2148
2290
|
}, {
|
|
2149
|
-
|
|
2291
|
+
items: {
|
|
2150
2292
|
id: string;
|
|
2151
2293
|
email: string;
|
|
2152
2294
|
name: string;
|
|
@@ -2185,11 +2327,27 @@ declare const apiContractConfig: {
|
|
|
2185
2327
|
position?: string | undefined;
|
|
2186
2328
|
source?: string | undefined;
|
|
2187
2329
|
}[];
|
|
2188
|
-
|
|
2330
|
+
totalCount: number;
|
|
2189
2331
|
limit: number;
|
|
2190
2332
|
skip: number;
|
|
2333
|
+
currentPage: number;
|
|
2334
|
+
totalPages: number;
|
|
2191
2335
|
}>;
|
|
2192
|
-
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
findOne: {
|
|
2339
|
+
pathParams: import("zod").ZodObject<{
|
|
2340
|
+
contactId: import("zod").ZodString;
|
|
2341
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2342
|
+
contactId: string;
|
|
2343
|
+
}, {
|
|
2344
|
+
contactId: string;
|
|
2345
|
+
}>;
|
|
2346
|
+
summary: "Get a client contact by ID";
|
|
2347
|
+
method: "GET";
|
|
2348
|
+
path: "/v2/client-contacts/:contactId";
|
|
2349
|
+
responses: {
|
|
2350
|
+
400: import("zod").ZodObject<{
|
|
2193
2351
|
statusCode: import("zod").ZodNumber;
|
|
2194
2352
|
message: import("zod").ZodString;
|
|
2195
2353
|
code: import("zod").ZodString;
|
|
@@ -2214,7 +2372,7 @@ declare const apiContractConfig: {
|
|
|
2214
2372
|
details?: unknown;
|
|
2215
2373
|
correlationId?: string | undefined;
|
|
2216
2374
|
}>;
|
|
2217
|
-
|
|
2375
|
+
401: import("zod").ZodObject<{
|
|
2218
2376
|
statusCode: import("zod").ZodNumber;
|
|
2219
2377
|
message: import("zod").ZodString;
|
|
2220
2378
|
code: import("zod").ZodString;
|
|
@@ -2239,7 +2397,7 @@ declare const apiContractConfig: {
|
|
|
2239
2397
|
details?: unknown;
|
|
2240
2398
|
correlationId?: string | undefined;
|
|
2241
2399
|
}>;
|
|
2242
|
-
|
|
2400
|
+
403: import("zod").ZodObject<{
|
|
2243
2401
|
statusCode: import("zod").ZodNumber;
|
|
2244
2402
|
message: import("zod").ZodString;
|
|
2245
2403
|
code: import("zod").ZodString;
|
|
@@ -2264,7 +2422,7 @@ declare const apiContractConfig: {
|
|
|
2264
2422
|
details?: unknown;
|
|
2265
2423
|
correlationId?: string | undefined;
|
|
2266
2424
|
}>;
|
|
2267
|
-
|
|
2425
|
+
500: import("zod").ZodObject<{
|
|
2268
2426
|
statusCode: import("zod").ZodNumber;
|
|
2269
2427
|
message: import("zod").ZodString;
|
|
2270
2428
|
code: import("zod").ZodString;
|
|
@@ -2289,45 +2447,7 @@ declare const apiContractConfig: {
|
|
|
2289
2447
|
details?: unknown;
|
|
2290
2448
|
correlationId?: string | undefined;
|
|
2291
2449
|
}>;
|
|
2292
|
-
|
|
2293
|
-
readonly query: import("zod").ZodObject<{
|
|
2294
|
-
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
2295
|
-
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
2296
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2297
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2298
|
-
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2299
|
-
clientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2300
|
-
createdById: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2301
|
-
sortBy: import("zod").ZodDefault<import("zod").ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
|
|
2302
|
-
sortOrder: import("zod").ZodDefault<import("zod").ZodEnum<["ASC", "DESC"]>>;
|
|
2303
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2304
|
-
limit: number;
|
|
2305
|
-
page: number;
|
|
2306
|
-
sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
|
|
2307
|
-
sortOrder: "ASC" | "DESC";
|
|
2308
|
-
email?: string | undefined;
|
|
2309
|
-
name?: string | undefined;
|
|
2310
|
-
clientId?: string | undefined;
|
|
2311
|
-
phone?: string | undefined;
|
|
2312
|
-
createdById?: string | undefined;
|
|
2313
|
-
}, {
|
|
2314
|
-
limit?: number | undefined;
|
|
2315
|
-
email?: string | undefined;
|
|
2316
|
-
name?: string | undefined;
|
|
2317
|
-
page?: number | undefined;
|
|
2318
|
-
clientId?: string | undefined;
|
|
2319
|
-
phone?: string | undefined;
|
|
2320
|
-
createdById?: string | undefined;
|
|
2321
|
-
sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
|
|
2322
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2323
|
-
}>;
|
|
2324
|
-
readonly summary: "Get all client contacts";
|
|
2325
|
-
};
|
|
2326
|
-
readonly findOne: {
|
|
2327
|
-
readonly method: "GET";
|
|
2328
|
-
readonly path: "/v2/client-contacts/:contactId";
|
|
2329
|
-
readonly responses: {
|
|
2330
|
-
readonly 200: import("zod").ZodObject<{
|
|
2450
|
+
200: import("zod").ZodObject<{
|
|
2331
2451
|
id: import("zod").ZodString;
|
|
2332
2452
|
clientId: import("zod").ZodString;
|
|
2333
2453
|
client: import("zod").ZodObject<{
|
|
@@ -2506,7 +2626,7 @@ declare const apiContractConfig: {
|
|
|
2506
2626
|
position?: string | undefined;
|
|
2507
2627
|
source?: string | undefined;
|
|
2508
2628
|
}>;
|
|
2509
|
-
|
|
2629
|
+
404: import("zod").ZodObject<{
|
|
2510
2630
|
statusCode: import("zod").ZodNumber;
|
|
2511
2631
|
message: import("zod").ZodString;
|
|
2512
2632
|
code: import("zod").ZodString;
|
|
@@ -2531,7 +2651,51 @@ declare const apiContractConfig: {
|
|
|
2531
2651
|
details?: unknown;
|
|
2532
2652
|
correlationId?: string | undefined;
|
|
2533
2653
|
}>;
|
|
2534
|
-
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
update: {
|
|
2657
|
+
pathParams: import("zod").ZodObject<{
|
|
2658
|
+
contactId: import("zod").ZodString;
|
|
2659
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2660
|
+
contactId: string;
|
|
2661
|
+
}, {
|
|
2662
|
+
contactId: string;
|
|
2663
|
+
}>;
|
|
2664
|
+
summary: "Update a client contact";
|
|
2665
|
+
method: "PATCH";
|
|
2666
|
+
body: import("zod").ZodObject<Omit<{
|
|
2667
|
+
client: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2668
|
+
id: import("zod").ZodString;
|
|
2669
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2670
|
+
id: string;
|
|
2671
|
+
}, {
|
|
2672
|
+
id: string;
|
|
2673
|
+
}>>;
|
|
2674
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2675
|
+
position: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
2676
|
+
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2677
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2678
|
+
source: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
2679
|
+
} & {
|
|
2680
|
+
version: import("zod").ZodNumber;
|
|
2681
|
+
}, "client">, "strip", import("zod").ZodTypeAny, {
|
|
2682
|
+
version: number;
|
|
2683
|
+
email?: string | undefined;
|
|
2684
|
+
name?: string | undefined;
|
|
2685
|
+
position?: string | undefined;
|
|
2686
|
+
phone?: string | undefined;
|
|
2687
|
+
source?: string | undefined;
|
|
2688
|
+
}, {
|
|
2689
|
+
version: number;
|
|
2690
|
+
email?: string | undefined;
|
|
2691
|
+
name?: string | undefined;
|
|
2692
|
+
position?: string | undefined;
|
|
2693
|
+
phone?: string | undefined;
|
|
2694
|
+
source?: string | undefined;
|
|
2695
|
+
}>;
|
|
2696
|
+
path: "/v2/client-contacts/:contactId";
|
|
2697
|
+
responses: {
|
|
2698
|
+
400: import("zod").ZodObject<{
|
|
2535
2699
|
statusCode: import("zod").ZodNumber;
|
|
2536
2700
|
message: import("zod").ZodString;
|
|
2537
2701
|
code: import("zod").ZodString;
|
|
@@ -2556,7 +2720,7 @@ declare const apiContractConfig: {
|
|
|
2556
2720
|
details?: unknown;
|
|
2557
2721
|
correlationId?: string | undefined;
|
|
2558
2722
|
}>;
|
|
2559
|
-
|
|
2723
|
+
401: import("zod").ZodObject<{
|
|
2560
2724
|
statusCode: import("zod").ZodNumber;
|
|
2561
2725
|
message: import("zod").ZodString;
|
|
2562
2726
|
code: import("zod").ZodString;
|
|
@@ -2581,7 +2745,7 @@ declare const apiContractConfig: {
|
|
|
2581
2745
|
details?: unknown;
|
|
2582
2746
|
correlationId?: string | undefined;
|
|
2583
2747
|
}>;
|
|
2584
|
-
|
|
2748
|
+
403: import("zod").ZodObject<{
|
|
2585
2749
|
statusCode: import("zod").ZodNumber;
|
|
2586
2750
|
message: import("zod").ZodString;
|
|
2587
2751
|
code: import("zod").ZodString;
|
|
@@ -2606,7 +2770,7 @@ declare const apiContractConfig: {
|
|
|
2606
2770
|
details?: unknown;
|
|
2607
2771
|
correlationId?: string | undefined;
|
|
2608
2772
|
}>;
|
|
2609
|
-
|
|
2773
|
+
500: import("zod").ZodObject<{
|
|
2610
2774
|
statusCode: import("zod").ZodNumber;
|
|
2611
2775
|
message: import("zod").ZodString;
|
|
2612
2776
|
code: import("zod").ZodString;
|
|
@@ -2631,21 +2795,7 @@ declare const apiContractConfig: {
|
|
|
2631
2795
|
details?: unknown;
|
|
2632
2796
|
correlationId?: string | undefined;
|
|
2633
2797
|
}>;
|
|
2634
|
-
|
|
2635
|
-
readonly pathParams: import("zod").ZodObject<{
|
|
2636
|
-
contactId: import("zod").ZodString;
|
|
2637
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2638
|
-
contactId: string;
|
|
2639
|
-
}, {
|
|
2640
|
-
contactId: string;
|
|
2641
|
-
}>;
|
|
2642
|
-
readonly summary: "Get a client contact by ID";
|
|
2643
|
-
};
|
|
2644
|
-
readonly update: {
|
|
2645
|
-
readonly method: "PATCH";
|
|
2646
|
-
readonly path: "/v2/client-contacts/:contactId";
|
|
2647
|
-
readonly responses: {
|
|
2648
|
-
readonly 200: import("zod").ZodObject<{
|
|
2798
|
+
200: import("zod").ZodObject<{
|
|
2649
2799
|
id: import("zod").ZodString;
|
|
2650
2800
|
clientId: import("zod").ZodString;
|
|
2651
2801
|
client: import("zod").ZodObject<{
|
|
@@ -2824,107 +2974,7 @@ declare const apiContractConfig: {
|
|
|
2824
2974
|
position?: string | undefined;
|
|
2825
2975
|
source?: string | undefined;
|
|
2826
2976
|
}>;
|
|
2827
|
-
|
|
2828
|
-
statusCode: import("zod").ZodNumber;
|
|
2829
|
-
message: import("zod").ZodString;
|
|
2830
|
-
code: import("zod").ZodString;
|
|
2831
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
2832
|
-
timestamp: import("zod").ZodString;
|
|
2833
|
-
path: import("zod").ZodString;
|
|
2834
|
-
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2835
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2836
|
-
statusCode: number;
|
|
2837
|
-
message: string;
|
|
2838
|
-
code: string;
|
|
2839
|
-
timestamp: string;
|
|
2840
|
-
path: string;
|
|
2841
|
-
details?: unknown;
|
|
2842
|
-
correlationId?: string | undefined;
|
|
2843
|
-
}, {
|
|
2844
|
-
statusCode: number;
|
|
2845
|
-
message: string;
|
|
2846
|
-
code: string;
|
|
2847
|
-
timestamp: string;
|
|
2848
|
-
path: string;
|
|
2849
|
-
details?: unknown;
|
|
2850
|
-
correlationId?: string | undefined;
|
|
2851
|
-
}>;
|
|
2852
|
-
readonly 401: import("zod").ZodObject<{
|
|
2853
|
-
statusCode: import("zod").ZodNumber;
|
|
2854
|
-
message: import("zod").ZodString;
|
|
2855
|
-
code: import("zod").ZodString;
|
|
2856
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
2857
|
-
timestamp: import("zod").ZodString;
|
|
2858
|
-
path: import("zod").ZodString;
|
|
2859
|
-
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2860
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2861
|
-
statusCode: number;
|
|
2862
|
-
message: string;
|
|
2863
|
-
code: string;
|
|
2864
|
-
timestamp: string;
|
|
2865
|
-
path: string;
|
|
2866
|
-
details?: unknown;
|
|
2867
|
-
correlationId?: string | undefined;
|
|
2868
|
-
}, {
|
|
2869
|
-
statusCode: number;
|
|
2870
|
-
message: string;
|
|
2871
|
-
code: string;
|
|
2872
|
-
timestamp: string;
|
|
2873
|
-
path: string;
|
|
2874
|
-
details?: unknown;
|
|
2875
|
-
correlationId?: string | undefined;
|
|
2876
|
-
}>;
|
|
2877
|
-
readonly 403: import("zod").ZodObject<{
|
|
2878
|
-
statusCode: import("zod").ZodNumber;
|
|
2879
|
-
message: import("zod").ZodString;
|
|
2880
|
-
code: import("zod").ZodString;
|
|
2881
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
2882
|
-
timestamp: import("zod").ZodString;
|
|
2883
|
-
path: import("zod").ZodString;
|
|
2884
|
-
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2885
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2886
|
-
statusCode: number;
|
|
2887
|
-
message: string;
|
|
2888
|
-
code: string;
|
|
2889
|
-
timestamp: string;
|
|
2890
|
-
path: string;
|
|
2891
|
-
details?: unknown;
|
|
2892
|
-
correlationId?: string | undefined;
|
|
2893
|
-
}, {
|
|
2894
|
-
statusCode: number;
|
|
2895
|
-
message: string;
|
|
2896
|
-
code: string;
|
|
2897
|
-
timestamp: string;
|
|
2898
|
-
path: string;
|
|
2899
|
-
details?: unknown;
|
|
2900
|
-
correlationId?: string | undefined;
|
|
2901
|
-
}>;
|
|
2902
|
-
readonly 404: import("zod").ZodObject<{
|
|
2903
|
-
statusCode: import("zod").ZodNumber;
|
|
2904
|
-
message: import("zod").ZodString;
|
|
2905
|
-
code: import("zod").ZodString;
|
|
2906
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
2907
|
-
timestamp: import("zod").ZodString;
|
|
2908
|
-
path: import("zod").ZodString;
|
|
2909
|
-
correlationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2910
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2911
|
-
statusCode: number;
|
|
2912
|
-
message: string;
|
|
2913
|
-
code: string;
|
|
2914
|
-
timestamp: string;
|
|
2915
|
-
path: string;
|
|
2916
|
-
details?: unknown;
|
|
2917
|
-
correlationId?: string | undefined;
|
|
2918
|
-
}, {
|
|
2919
|
-
statusCode: number;
|
|
2920
|
-
message: string;
|
|
2921
|
-
code: string;
|
|
2922
|
-
timestamp: string;
|
|
2923
|
-
path: string;
|
|
2924
|
-
details?: unknown;
|
|
2925
|
-
correlationId?: string | undefined;
|
|
2926
|
-
}>;
|
|
2927
|
-
readonly 409: import("zod").ZodObject<{
|
|
2977
|
+
404: import("zod").ZodObject<{
|
|
2928
2978
|
statusCode: import("zod").ZodNumber;
|
|
2929
2979
|
message: import("zod").ZodString;
|
|
2930
2980
|
code: import("zod").ZodString;
|
|
@@ -2949,7 +2999,7 @@ declare const apiContractConfig: {
|
|
|
2949
2999
|
details?: unknown;
|
|
2950
3000
|
correlationId?: string | undefined;
|
|
2951
3001
|
}>;
|
|
2952
|
-
|
|
3002
|
+
409: import("zod").ZodObject<{
|
|
2953
3003
|
statusCode: import("zod").ZodNumber;
|
|
2954
3004
|
message: import("zod").ZodString;
|
|
2955
3005
|
code: import("zod").ZodString;
|
|
@@ -2975,51 +3025,21 @@ declare const apiContractConfig: {
|
|
|
2975
3025
|
correlationId?: string | undefined;
|
|
2976
3026
|
}>;
|
|
2977
3027
|
};
|
|
2978
|
-
|
|
3028
|
+
};
|
|
3029
|
+
remove: {
|
|
3030
|
+
pathParams: import("zod").ZodObject<{
|
|
2979
3031
|
contactId: import("zod").ZodString;
|
|
2980
3032
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2981
3033
|
contactId: string;
|
|
2982
3034
|
}, {
|
|
2983
3035
|
contactId: string;
|
|
2984
3036
|
}>;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
id: string;
|
|
2992
|
-
}>>;
|
|
2993
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2994
|
-
position: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
2995
|
-
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2996
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2997
|
-
source: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
2998
|
-
} & {
|
|
2999
|
-
version: import("zod").ZodNumber;
|
|
3000
|
-
}, "client">, "strip", import("zod").ZodTypeAny, {
|
|
3001
|
-
version: number;
|
|
3002
|
-
email?: string | undefined;
|
|
3003
|
-
name?: string | undefined;
|
|
3004
|
-
position?: string | undefined;
|
|
3005
|
-
phone?: string | undefined;
|
|
3006
|
-
source?: string | undefined;
|
|
3007
|
-
}, {
|
|
3008
|
-
version: number;
|
|
3009
|
-
email?: string | undefined;
|
|
3010
|
-
name?: string | undefined;
|
|
3011
|
-
position?: string | undefined;
|
|
3012
|
-
phone?: string | undefined;
|
|
3013
|
-
source?: string | undefined;
|
|
3014
|
-
}>;
|
|
3015
|
-
readonly summary: "Update a client contact";
|
|
3016
|
-
};
|
|
3017
|
-
readonly remove: {
|
|
3018
|
-
readonly method: "DELETE";
|
|
3019
|
-
readonly path: "/v2/client-contacts/:contactId";
|
|
3020
|
-
readonly responses: {
|
|
3021
|
-
readonly 204: typeof import("@ts-rest/core").ContractNoBody;
|
|
3022
|
-
readonly 400: import("zod").ZodObject<{
|
|
3037
|
+
summary: "Delete a client contact";
|
|
3038
|
+
method: "DELETE";
|
|
3039
|
+
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
3040
|
+
path: "/v2/client-contacts/:contactId";
|
|
3041
|
+
responses: {
|
|
3042
|
+
400: import("zod").ZodObject<{
|
|
3023
3043
|
statusCode: import("zod").ZodNumber;
|
|
3024
3044
|
message: import("zod").ZodString;
|
|
3025
3045
|
code: import("zod").ZodString;
|
|
@@ -3044,7 +3064,7 @@ declare const apiContractConfig: {
|
|
|
3044
3064
|
details?: unknown;
|
|
3045
3065
|
correlationId?: string | undefined;
|
|
3046
3066
|
}>;
|
|
3047
|
-
|
|
3067
|
+
401: import("zod").ZodObject<{
|
|
3048
3068
|
statusCode: import("zod").ZodNumber;
|
|
3049
3069
|
message: import("zod").ZodString;
|
|
3050
3070
|
code: import("zod").ZodString;
|
|
@@ -3069,7 +3089,7 @@ declare const apiContractConfig: {
|
|
|
3069
3089
|
details?: unknown;
|
|
3070
3090
|
correlationId?: string | undefined;
|
|
3071
3091
|
}>;
|
|
3072
|
-
|
|
3092
|
+
403: import("zod").ZodObject<{
|
|
3073
3093
|
statusCode: import("zod").ZodNumber;
|
|
3074
3094
|
message: import("zod").ZodString;
|
|
3075
3095
|
code: import("zod").ZodString;
|
|
@@ -3094,7 +3114,7 @@ declare const apiContractConfig: {
|
|
|
3094
3114
|
details?: unknown;
|
|
3095
3115
|
correlationId?: string | undefined;
|
|
3096
3116
|
}>;
|
|
3097
|
-
|
|
3117
|
+
500: import("zod").ZodObject<{
|
|
3098
3118
|
statusCode: import("zod").ZodNumber;
|
|
3099
3119
|
message: import("zod").ZodString;
|
|
3100
3120
|
code: import("zod").ZodString;
|
|
@@ -3119,7 +3139,8 @@ declare const apiContractConfig: {
|
|
|
3119
3139
|
details?: unknown;
|
|
3120
3140
|
correlationId?: string | undefined;
|
|
3121
3141
|
}>;
|
|
3122
|
-
|
|
3142
|
+
204: typeof import("@ts-rest/core").ContractNoBody;
|
|
3143
|
+
404: import("zod").ZodObject<{
|
|
3123
3144
|
statusCode: import("zod").ZodNumber;
|
|
3124
3145
|
message: import("zod").ZodString;
|
|
3125
3146
|
code: import("zod").ZodString;
|
|
@@ -3145,17 +3166,7 @@ declare const apiContractConfig: {
|
|
|
3145
3166
|
correlationId?: string | undefined;
|
|
3146
3167
|
}>;
|
|
3147
3168
|
};
|
|
3148
|
-
readonly pathParams: import("zod").ZodObject<{
|
|
3149
|
-
contactId: import("zod").ZodString;
|
|
3150
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
3151
|
-
contactId: string;
|
|
3152
|
-
}, {
|
|
3153
|
-
contactId: string;
|
|
3154
|
-
}>;
|
|
3155
|
-
readonly body: typeof import("@ts-rest/core").ContractNoBody;
|
|
3156
|
-
readonly summary: "Delete a client contact";
|
|
3157
3169
|
};
|
|
3158
3170
|
};
|
|
3159
3171
|
};
|
|
3160
|
-
export declare const apiContract: typeof apiContractConfig;
|
|
3161
3172
|
//# sourceMappingURL=index.d.ts.map
|