@deepintel-ltd/farmpro-contracts 1.5.19 → 1.5.20

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.
@@ -0,0 +1,3225 @@
1
+ import { z } from 'zod';
2
+ export declare const waybillsRouter: {
3
+ listWaybills: {
4
+ pathParams: z.ZodObject<{
5
+ organizationId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ organizationId: string;
8
+ }, {
9
+ organizationId: string;
10
+ }>;
11
+ query: z.ZodObject<{
12
+ 'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ 'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ } & {
15
+ sort: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ sort?: string | undefined;
18
+ 'page[number]'?: number | undefined;
19
+ 'page[size]'?: number | undefined;
20
+ }, {
21
+ sort?: string | undefined;
22
+ 'page[number]'?: number | undefined;
23
+ 'page[size]'?: number | undefined;
24
+ }>;
25
+ summary: "List all waybills for an organization";
26
+ description: "Get a paginated list of waybills for the specified organization";
27
+ method: "GET";
28
+ path: "/organizations/:organizationId/waybills";
29
+ responses: {
30
+ 200: z.ZodObject<{
31
+ data: z.ZodArray<z.ZodObject<{
32
+ type: z.ZodLiteral<string>;
33
+ id: z.ZodString;
34
+ attributes: z.ZodObject<{
35
+ waybillNumber: z.ZodString;
36
+ issueDate: z.ZodString;
37
+ senderName: z.ZodString;
38
+ senderAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ senderPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ senderEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ recipientName: z.ZodString;
42
+ recipientAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ recipientPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ recipientEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ items: z.ZodArray<z.ZodObject<{
46
+ description: z.ZodString;
47
+ quantity: z.ZodNumber;
48
+ unit: z.ZodString;
49
+ weight: z.ZodOptional<z.ZodNumber>;
50
+ value: z.ZodOptional<z.ZodNumber>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ description: string;
53
+ unit: string;
54
+ quantity: number;
55
+ value?: number | undefined;
56
+ weight?: number | undefined;
57
+ }, {
58
+ description: string;
59
+ unit: string;
60
+ quantity: number;
61
+ value?: number | undefined;
62
+ weight?: number | undefined;
63
+ }>, "many">;
64
+ totalWeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
65
+ totalValue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
66
+ currency: z.ZodDefault<z.ZodString>;
67
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
+ organizationId: z.ZodString;
70
+ } & {
71
+ createdAt: z.ZodString;
72
+ updatedAt: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ currency: string;
77
+ items: {
78
+ description: string;
79
+ unit: string;
80
+ quantity: number;
81
+ value?: number | undefined;
82
+ weight?: number | undefined;
83
+ }[];
84
+ waybillNumber: string;
85
+ issueDate: string;
86
+ senderName: string;
87
+ recipientName: string;
88
+ organizationId: string;
89
+ notes?: string | null | undefined;
90
+ totalValue?: number | null | undefined;
91
+ senderAddress?: string | null | undefined;
92
+ senderPhone?: string | null | undefined;
93
+ senderEmail?: string | null | undefined;
94
+ recipientAddress?: string | null | undefined;
95
+ recipientPhone?: string | null | undefined;
96
+ recipientEmail?: string | null | undefined;
97
+ totalWeight?: number | null | undefined;
98
+ pdfUrl?: string | null | undefined;
99
+ }, {
100
+ createdAt: string;
101
+ updatedAt: string;
102
+ items: {
103
+ description: string;
104
+ unit: string;
105
+ quantity: number;
106
+ value?: number | undefined;
107
+ weight?: number | undefined;
108
+ }[];
109
+ waybillNumber: string;
110
+ issueDate: string;
111
+ senderName: string;
112
+ recipientName: string;
113
+ organizationId: string;
114
+ currency?: string | undefined;
115
+ notes?: string | null | undefined;
116
+ totalValue?: number | null | undefined;
117
+ senderAddress?: string | null | undefined;
118
+ senderPhone?: string | null | undefined;
119
+ senderEmail?: string | null | undefined;
120
+ recipientAddress?: string | null | undefined;
121
+ recipientPhone?: string | null | undefined;
122
+ recipientEmail?: string | null | undefined;
123
+ totalWeight?: number | null | undefined;
124
+ pdfUrl?: string | null | undefined;
125
+ }>;
126
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
127
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ type: string;
131
+ id: string;
132
+ attributes: {
133
+ createdAt: string;
134
+ updatedAt: string;
135
+ currency: string;
136
+ items: {
137
+ description: string;
138
+ unit: string;
139
+ quantity: number;
140
+ value?: number | undefined;
141
+ weight?: number | undefined;
142
+ }[];
143
+ waybillNumber: string;
144
+ issueDate: string;
145
+ senderName: string;
146
+ recipientName: string;
147
+ organizationId: string;
148
+ notes?: string | null | undefined;
149
+ totalValue?: number | null | undefined;
150
+ senderAddress?: string | null | undefined;
151
+ senderPhone?: string | null | undefined;
152
+ senderEmail?: string | null | undefined;
153
+ recipientAddress?: string | null | undefined;
154
+ recipientPhone?: string | null | undefined;
155
+ recipientEmail?: string | null | undefined;
156
+ totalWeight?: number | null | undefined;
157
+ pdfUrl?: string | null | undefined;
158
+ };
159
+ relationships?: Record<string, unknown> | undefined;
160
+ links?: Record<string, string> | undefined;
161
+ meta?: Record<string, unknown> | undefined;
162
+ }, {
163
+ type: string;
164
+ id: string;
165
+ attributes: {
166
+ createdAt: string;
167
+ updatedAt: string;
168
+ items: {
169
+ description: string;
170
+ unit: string;
171
+ quantity: number;
172
+ value?: number | undefined;
173
+ weight?: number | undefined;
174
+ }[];
175
+ waybillNumber: string;
176
+ issueDate: string;
177
+ senderName: string;
178
+ recipientName: string;
179
+ organizationId: string;
180
+ currency?: string | undefined;
181
+ notes?: string | null | undefined;
182
+ totalValue?: number | null | undefined;
183
+ senderAddress?: string | null | undefined;
184
+ senderPhone?: string | null | undefined;
185
+ senderEmail?: string | null | undefined;
186
+ recipientAddress?: string | null | undefined;
187
+ recipientPhone?: string | null | undefined;
188
+ recipientEmail?: string | null | undefined;
189
+ totalWeight?: number | null | undefined;
190
+ pdfUrl?: string | null | undefined;
191
+ };
192
+ relationships?: Record<string, unknown> | undefined;
193
+ links?: Record<string, string> | undefined;
194
+ meta?: Record<string, unknown> | undefined;
195
+ }>, "many">;
196
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
+ type: z.ZodString;
198
+ id: z.ZodString;
199
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
200
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
201
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
202
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ type: string;
205
+ id: string;
206
+ attributes?: Record<string, unknown> | undefined;
207
+ relationships?: Record<string, unknown> | undefined;
208
+ links?: Record<string, string> | undefined;
209
+ meta?: Record<string, unknown> | undefined;
210
+ }, {
211
+ type: string;
212
+ id: string;
213
+ attributes?: Record<string, unknown> | undefined;
214
+ relationships?: Record<string, unknown> | undefined;
215
+ links?: Record<string, string> | undefined;
216
+ meta?: Record<string, unknown> | undefined;
217
+ }>, "many">>;
218
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
219
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ data: {
222
+ type: string;
223
+ id: string;
224
+ attributes: {
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ currency: string;
228
+ items: {
229
+ description: string;
230
+ unit: string;
231
+ quantity: number;
232
+ value?: number | undefined;
233
+ weight?: number | undefined;
234
+ }[];
235
+ waybillNumber: string;
236
+ issueDate: string;
237
+ senderName: string;
238
+ recipientName: string;
239
+ organizationId: string;
240
+ notes?: string | null | undefined;
241
+ totalValue?: number | null | undefined;
242
+ senderAddress?: string | null | undefined;
243
+ senderPhone?: string | null | undefined;
244
+ senderEmail?: string | null | undefined;
245
+ recipientAddress?: string | null | undefined;
246
+ recipientPhone?: string | null | undefined;
247
+ recipientEmail?: string | null | undefined;
248
+ totalWeight?: number | null | undefined;
249
+ pdfUrl?: string | null | undefined;
250
+ };
251
+ relationships?: Record<string, unknown> | undefined;
252
+ links?: Record<string, string> | undefined;
253
+ meta?: Record<string, unknown> | undefined;
254
+ }[];
255
+ links?: Record<string, string> | undefined;
256
+ meta?: Record<string, unknown> | undefined;
257
+ included?: {
258
+ type: string;
259
+ id: string;
260
+ attributes?: Record<string, unknown> | undefined;
261
+ relationships?: Record<string, unknown> | undefined;
262
+ links?: Record<string, string> | undefined;
263
+ meta?: Record<string, unknown> | undefined;
264
+ }[] | undefined;
265
+ }, {
266
+ data: {
267
+ type: string;
268
+ id: string;
269
+ attributes: {
270
+ createdAt: string;
271
+ updatedAt: string;
272
+ items: {
273
+ description: string;
274
+ unit: string;
275
+ quantity: number;
276
+ value?: number | undefined;
277
+ weight?: number | undefined;
278
+ }[];
279
+ waybillNumber: string;
280
+ issueDate: string;
281
+ senderName: string;
282
+ recipientName: string;
283
+ organizationId: string;
284
+ currency?: string | undefined;
285
+ notes?: string | null | undefined;
286
+ totalValue?: number | null | undefined;
287
+ senderAddress?: string | null | undefined;
288
+ senderPhone?: string | null | undefined;
289
+ senderEmail?: string | null | undefined;
290
+ recipientAddress?: string | null | undefined;
291
+ recipientPhone?: string | null | undefined;
292
+ recipientEmail?: string | null | undefined;
293
+ totalWeight?: number | null | undefined;
294
+ pdfUrl?: string | null | undefined;
295
+ };
296
+ relationships?: Record<string, unknown> | undefined;
297
+ links?: Record<string, string> | undefined;
298
+ meta?: Record<string, unknown> | undefined;
299
+ }[];
300
+ links?: Record<string, string> | undefined;
301
+ meta?: Record<string, unknown> | undefined;
302
+ included?: {
303
+ type: string;
304
+ id: string;
305
+ attributes?: Record<string, unknown> | undefined;
306
+ relationships?: Record<string, unknown> | undefined;
307
+ links?: Record<string, string> | undefined;
308
+ meta?: Record<string, unknown> | undefined;
309
+ }[] | undefined;
310
+ }>;
311
+ 401: z.ZodObject<{
312
+ errors: z.ZodArray<z.ZodObject<{
313
+ id: z.ZodOptional<z.ZodString>;
314
+ links: z.ZodOptional<z.ZodObject<{
315
+ about: z.ZodOptional<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ about?: string | undefined;
318
+ }, {
319
+ about?: string | undefined;
320
+ }>>;
321
+ status: z.ZodOptional<z.ZodString>;
322
+ code: z.ZodOptional<z.ZodString>;
323
+ title: z.ZodOptional<z.ZodString>;
324
+ detail: z.ZodOptional<z.ZodString>;
325
+ source: z.ZodOptional<z.ZodObject<{
326
+ pointer: z.ZodOptional<z.ZodString>;
327
+ parameter: z.ZodOptional<z.ZodString>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ pointer?: string | undefined;
330
+ parameter?: string | undefined;
331
+ }, {
332
+ pointer?: string | undefined;
333
+ parameter?: string | undefined;
334
+ }>>;
335
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ status?: string | undefined;
338
+ code?: string | undefined;
339
+ id?: string | undefined;
340
+ links?: {
341
+ about?: string | undefined;
342
+ } | undefined;
343
+ meta?: Record<string, unknown> | undefined;
344
+ title?: string | undefined;
345
+ detail?: string | undefined;
346
+ source?: {
347
+ pointer?: string | undefined;
348
+ parameter?: string | undefined;
349
+ } | undefined;
350
+ }, {
351
+ status?: string | undefined;
352
+ code?: string | undefined;
353
+ id?: string | undefined;
354
+ links?: {
355
+ about?: string | undefined;
356
+ } | undefined;
357
+ meta?: Record<string, unknown> | undefined;
358
+ title?: string | undefined;
359
+ detail?: string | undefined;
360
+ source?: {
361
+ pointer?: string | undefined;
362
+ parameter?: string | undefined;
363
+ } | undefined;
364
+ }>, "many">;
365
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ errors: {
368
+ status?: string | undefined;
369
+ code?: string | undefined;
370
+ id?: string | undefined;
371
+ links?: {
372
+ about?: string | undefined;
373
+ } | undefined;
374
+ meta?: Record<string, unknown> | undefined;
375
+ title?: string | undefined;
376
+ detail?: string | undefined;
377
+ source?: {
378
+ pointer?: string | undefined;
379
+ parameter?: string | undefined;
380
+ } | undefined;
381
+ }[];
382
+ meta?: Record<string, unknown> | undefined;
383
+ }, {
384
+ errors: {
385
+ status?: string | undefined;
386
+ code?: string | undefined;
387
+ id?: string | undefined;
388
+ links?: {
389
+ about?: string | undefined;
390
+ } | undefined;
391
+ meta?: Record<string, unknown> | undefined;
392
+ title?: string | undefined;
393
+ detail?: string | undefined;
394
+ source?: {
395
+ pointer?: string | undefined;
396
+ parameter?: string | undefined;
397
+ } | undefined;
398
+ }[];
399
+ meta?: Record<string, unknown> | undefined;
400
+ }>;
401
+ 404: z.ZodObject<{
402
+ errors: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodOptional<z.ZodString>;
404
+ links: z.ZodOptional<z.ZodObject<{
405
+ about: z.ZodOptional<z.ZodString>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ about?: string | undefined;
408
+ }, {
409
+ about?: string | undefined;
410
+ }>>;
411
+ status: z.ZodOptional<z.ZodString>;
412
+ code: z.ZodOptional<z.ZodString>;
413
+ title: z.ZodOptional<z.ZodString>;
414
+ detail: z.ZodOptional<z.ZodString>;
415
+ source: z.ZodOptional<z.ZodObject<{
416
+ pointer: z.ZodOptional<z.ZodString>;
417
+ parameter: z.ZodOptional<z.ZodString>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ pointer?: string | undefined;
420
+ parameter?: string | undefined;
421
+ }, {
422
+ pointer?: string | undefined;
423
+ parameter?: string | undefined;
424
+ }>>;
425
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ status?: string | undefined;
428
+ code?: string | undefined;
429
+ id?: string | undefined;
430
+ links?: {
431
+ about?: string | undefined;
432
+ } | undefined;
433
+ meta?: Record<string, unknown> | undefined;
434
+ title?: string | undefined;
435
+ detail?: string | undefined;
436
+ source?: {
437
+ pointer?: string | undefined;
438
+ parameter?: string | undefined;
439
+ } | undefined;
440
+ }, {
441
+ status?: string | undefined;
442
+ code?: string | undefined;
443
+ id?: string | undefined;
444
+ links?: {
445
+ about?: string | undefined;
446
+ } | undefined;
447
+ meta?: Record<string, unknown> | undefined;
448
+ title?: string | undefined;
449
+ detail?: string | undefined;
450
+ source?: {
451
+ pointer?: string | undefined;
452
+ parameter?: string | undefined;
453
+ } | undefined;
454
+ }>, "many">;
455
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ errors: {
458
+ status?: string | undefined;
459
+ code?: string | undefined;
460
+ id?: string | undefined;
461
+ links?: {
462
+ about?: string | undefined;
463
+ } | undefined;
464
+ meta?: Record<string, unknown> | undefined;
465
+ title?: string | undefined;
466
+ detail?: string | undefined;
467
+ source?: {
468
+ pointer?: string | undefined;
469
+ parameter?: string | undefined;
470
+ } | undefined;
471
+ }[];
472
+ meta?: Record<string, unknown> | undefined;
473
+ }, {
474
+ errors: {
475
+ status?: string | undefined;
476
+ code?: string | undefined;
477
+ id?: string | undefined;
478
+ links?: {
479
+ about?: string | undefined;
480
+ } | undefined;
481
+ meta?: Record<string, unknown> | undefined;
482
+ title?: string | undefined;
483
+ detail?: string | undefined;
484
+ source?: {
485
+ pointer?: string | undefined;
486
+ parameter?: string | undefined;
487
+ } | undefined;
488
+ }[];
489
+ meta?: Record<string, unknown> | undefined;
490
+ }>;
491
+ };
492
+ };
493
+ createWaybill: {
494
+ pathParams: z.ZodObject<{
495
+ organizationId: z.ZodString;
496
+ }, "strip", z.ZodTypeAny, {
497
+ organizationId: string;
498
+ }, {
499
+ organizationId: string;
500
+ }>;
501
+ summary: "Create a new waybill";
502
+ description: "Create a new waybill for an organization. The waybill will be generated with the organization logo.";
503
+ method: "POST";
504
+ body: z.ZodObject<{
505
+ data: z.ZodObject<{
506
+ type: z.ZodLiteral<"waybills">;
507
+ attributes: z.ZodObject<{
508
+ issueDate: z.ZodOptional<z.ZodString>;
509
+ senderName: z.ZodString;
510
+ senderAddress: z.ZodOptional<z.ZodString>;
511
+ senderPhone: z.ZodOptional<z.ZodString>;
512
+ senderEmail: z.ZodOptional<z.ZodString>;
513
+ recipientName: z.ZodString;
514
+ recipientAddress: z.ZodOptional<z.ZodString>;
515
+ recipientPhone: z.ZodOptional<z.ZodString>;
516
+ recipientEmail: z.ZodOptional<z.ZodString>;
517
+ items: z.ZodArray<z.ZodObject<{
518
+ description: z.ZodString;
519
+ quantity: z.ZodNumber;
520
+ unit: z.ZodString;
521
+ weight: z.ZodOptional<z.ZodNumber>;
522
+ value: z.ZodOptional<z.ZodNumber>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ description: string;
525
+ unit: string;
526
+ quantity: number;
527
+ value?: number | undefined;
528
+ weight?: number | undefined;
529
+ }, {
530
+ description: string;
531
+ unit: string;
532
+ quantity: number;
533
+ value?: number | undefined;
534
+ weight?: number | undefined;
535
+ }>, "many">;
536
+ totalWeight: z.ZodOptional<z.ZodNumber>;
537
+ totalValue: z.ZodOptional<z.ZodNumber>;
538
+ currency: z.ZodDefault<z.ZodString>;
539
+ notes: z.ZodOptional<z.ZodString>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ currency: string;
542
+ items: {
543
+ description: string;
544
+ unit: string;
545
+ quantity: number;
546
+ value?: number | undefined;
547
+ weight?: number | undefined;
548
+ }[];
549
+ senderName: string;
550
+ recipientName: string;
551
+ notes?: string | undefined;
552
+ totalValue?: number | undefined;
553
+ issueDate?: string | undefined;
554
+ senderAddress?: string | undefined;
555
+ senderPhone?: string | undefined;
556
+ senderEmail?: string | undefined;
557
+ recipientAddress?: string | undefined;
558
+ recipientPhone?: string | undefined;
559
+ recipientEmail?: string | undefined;
560
+ totalWeight?: number | undefined;
561
+ }, {
562
+ items: {
563
+ description: string;
564
+ unit: string;
565
+ quantity: number;
566
+ value?: number | undefined;
567
+ weight?: number | undefined;
568
+ }[];
569
+ senderName: string;
570
+ recipientName: string;
571
+ currency?: string | undefined;
572
+ notes?: string | undefined;
573
+ totalValue?: number | undefined;
574
+ issueDate?: string | undefined;
575
+ senderAddress?: string | undefined;
576
+ senderPhone?: string | undefined;
577
+ senderEmail?: string | undefined;
578
+ recipientAddress?: string | undefined;
579
+ recipientPhone?: string | undefined;
580
+ recipientEmail?: string | undefined;
581
+ totalWeight?: number | undefined;
582
+ }>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ type: "waybills";
585
+ attributes: {
586
+ currency: string;
587
+ items: {
588
+ description: string;
589
+ unit: string;
590
+ quantity: number;
591
+ value?: number | undefined;
592
+ weight?: number | undefined;
593
+ }[];
594
+ senderName: string;
595
+ recipientName: string;
596
+ notes?: string | undefined;
597
+ totalValue?: number | undefined;
598
+ issueDate?: string | undefined;
599
+ senderAddress?: string | undefined;
600
+ senderPhone?: string | undefined;
601
+ senderEmail?: string | undefined;
602
+ recipientAddress?: string | undefined;
603
+ recipientPhone?: string | undefined;
604
+ recipientEmail?: string | undefined;
605
+ totalWeight?: number | undefined;
606
+ };
607
+ }, {
608
+ type: "waybills";
609
+ attributes: {
610
+ items: {
611
+ description: string;
612
+ unit: string;
613
+ quantity: number;
614
+ value?: number | undefined;
615
+ weight?: number | undefined;
616
+ }[];
617
+ senderName: string;
618
+ recipientName: string;
619
+ currency?: string | undefined;
620
+ notes?: string | undefined;
621
+ totalValue?: number | undefined;
622
+ issueDate?: string | undefined;
623
+ senderAddress?: string | undefined;
624
+ senderPhone?: string | undefined;
625
+ senderEmail?: string | undefined;
626
+ recipientAddress?: string | undefined;
627
+ recipientPhone?: string | undefined;
628
+ recipientEmail?: string | undefined;
629
+ totalWeight?: number | undefined;
630
+ };
631
+ }>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ data: {
634
+ type: "waybills";
635
+ attributes: {
636
+ currency: string;
637
+ items: {
638
+ description: string;
639
+ unit: string;
640
+ quantity: number;
641
+ value?: number | undefined;
642
+ weight?: number | undefined;
643
+ }[];
644
+ senderName: string;
645
+ recipientName: string;
646
+ notes?: string | undefined;
647
+ totalValue?: number | undefined;
648
+ issueDate?: string | undefined;
649
+ senderAddress?: string | undefined;
650
+ senderPhone?: string | undefined;
651
+ senderEmail?: string | undefined;
652
+ recipientAddress?: string | undefined;
653
+ recipientPhone?: string | undefined;
654
+ recipientEmail?: string | undefined;
655
+ totalWeight?: number | undefined;
656
+ };
657
+ };
658
+ }, {
659
+ data: {
660
+ type: "waybills";
661
+ attributes: {
662
+ items: {
663
+ description: string;
664
+ unit: string;
665
+ quantity: number;
666
+ value?: number | undefined;
667
+ weight?: number | undefined;
668
+ }[];
669
+ senderName: string;
670
+ recipientName: string;
671
+ currency?: string | undefined;
672
+ notes?: string | undefined;
673
+ totalValue?: number | undefined;
674
+ issueDate?: string | undefined;
675
+ senderAddress?: string | undefined;
676
+ senderPhone?: string | undefined;
677
+ senderEmail?: string | undefined;
678
+ recipientAddress?: string | undefined;
679
+ recipientPhone?: string | undefined;
680
+ recipientEmail?: string | undefined;
681
+ totalWeight?: number | undefined;
682
+ };
683
+ };
684
+ }>;
685
+ path: "/organizations/:organizationId/waybills";
686
+ responses: {
687
+ 201: z.ZodObject<{
688
+ data: z.ZodObject<{
689
+ type: z.ZodLiteral<string>;
690
+ id: z.ZodString;
691
+ attributes: z.ZodObject<{
692
+ waybillNumber: z.ZodString;
693
+ issueDate: z.ZodString;
694
+ senderName: z.ZodString;
695
+ senderAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
696
+ senderPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
697
+ senderEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
698
+ recipientName: z.ZodString;
699
+ recipientAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
700
+ recipientPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
701
+ recipientEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
702
+ items: z.ZodArray<z.ZodObject<{
703
+ description: z.ZodString;
704
+ quantity: z.ZodNumber;
705
+ unit: z.ZodString;
706
+ weight: z.ZodOptional<z.ZodNumber>;
707
+ value: z.ZodOptional<z.ZodNumber>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ description: string;
710
+ unit: string;
711
+ quantity: number;
712
+ value?: number | undefined;
713
+ weight?: number | undefined;
714
+ }, {
715
+ description: string;
716
+ unit: string;
717
+ quantity: number;
718
+ value?: number | undefined;
719
+ weight?: number | undefined;
720
+ }>, "many">;
721
+ totalWeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
722
+ totalValue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
723
+ currency: z.ZodDefault<z.ZodString>;
724
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
725
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
726
+ organizationId: z.ZodString;
727
+ } & {
728
+ createdAt: z.ZodString;
729
+ updatedAt: z.ZodString;
730
+ }, "strip", z.ZodTypeAny, {
731
+ createdAt: string;
732
+ updatedAt: string;
733
+ currency: string;
734
+ items: {
735
+ description: string;
736
+ unit: string;
737
+ quantity: number;
738
+ value?: number | undefined;
739
+ weight?: number | undefined;
740
+ }[];
741
+ waybillNumber: string;
742
+ issueDate: string;
743
+ senderName: string;
744
+ recipientName: string;
745
+ organizationId: string;
746
+ notes?: string | null | undefined;
747
+ totalValue?: number | null | undefined;
748
+ senderAddress?: string | null | undefined;
749
+ senderPhone?: string | null | undefined;
750
+ senderEmail?: string | null | undefined;
751
+ recipientAddress?: string | null | undefined;
752
+ recipientPhone?: string | null | undefined;
753
+ recipientEmail?: string | null | undefined;
754
+ totalWeight?: number | null | undefined;
755
+ pdfUrl?: string | null | undefined;
756
+ }, {
757
+ createdAt: string;
758
+ updatedAt: string;
759
+ items: {
760
+ description: string;
761
+ unit: string;
762
+ quantity: number;
763
+ value?: number | undefined;
764
+ weight?: number | undefined;
765
+ }[];
766
+ waybillNumber: string;
767
+ issueDate: string;
768
+ senderName: string;
769
+ recipientName: string;
770
+ organizationId: string;
771
+ currency?: string | undefined;
772
+ notes?: string | null | undefined;
773
+ totalValue?: number | null | undefined;
774
+ senderAddress?: string | null | undefined;
775
+ senderPhone?: string | null | undefined;
776
+ senderEmail?: string | null | undefined;
777
+ recipientAddress?: string | null | undefined;
778
+ recipientPhone?: string | null | undefined;
779
+ recipientEmail?: string | null | undefined;
780
+ totalWeight?: number | null | undefined;
781
+ pdfUrl?: string | null | undefined;
782
+ }>;
783
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
784
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
785
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ type: string;
788
+ id: string;
789
+ attributes: {
790
+ createdAt: string;
791
+ updatedAt: string;
792
+ currency: string;
793
+ items: {
794
+ description: string;
795
+ unit: string;
796
+ quantity: number;
797
+ value?: number | undefined;
798
+ weight?: number | undefined;
799
+ }[];
800
+ waybillNumber: string;
801
+ issueDate: string;
802
+ senderName: string;
803
+ recipientName: string;
804
+ organizationId: string;
805
+ notes?: string | null | undefined;
806
+ totalValue?: number | null | undefined;
807
+ senderAddress?: string | null | undefined;
808
+ senderPhone?: string | null | undefined;
809
+ senderEmail?: string | null | undefined;
810
+ recipientAddress?: string | null | undefined;
811
+ recipientPhone?: string | null | undefined;
812
+ recipientEmail?: string | null | undefined;
813
+ totalWeight?: number | null | undefined;
814
+ pdfUrl?: string | null | undefined;
815
+ };
816
+ relationships?: Record<string, unknown> | undefined;
817
+ links?: Record<string, string> | undefined;
818
+ meta?: Record<string, unknown> | undefined;
819
+ }, {
820
+ type: string;
821
+ id: string;
822
+ attributes: {
823
+ createdAt: string;
824
+ updatedAt: string;
825
+ items: {
826
+ description: string;
827
+ unit: string;
828
+ quantity: number;
829
+ value?: number | undefined;
830
+ weight?: number | undefined;
831
+ }[];
832
+ waybillNumber: string;
833
+ issueDate: string;
834
+ senderName: string;
835
+ recipientName: string;
836
+ organizationId: string;
837
+ currency?: string | undefined;
838
+ notes?: string | null | undefined;
839
+ totalValue?: number | null | undefined;
840
+ senderAddress?: string | null | undefined;
841
+ senderPhone?: string | null | undefined;
842
+ senderEmail?: string | null | undefined;
843
+ recipientAddress?: string | null | undefined;
844
+ recipientPhone?: string | null | undefined;
845
+ recipientEmail?: string | null | undefined;
846
+ totalWeight?: number | null | undefined;
847
+ pdfUrl?: string | null | undefined;
848
+ };
849
+ relationships?: Record<string, unknown> | undefined;
850
+ links?: Record<string, string> | undefined;
851
+ meta?: Record<string, unknown> | undefined;
852
+ }>;
853
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
854
+ type: z.ZodString;
855
+ id: z.ZodString;
856
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
857
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
858
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
859
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ type: string;
862
+ id: string;
863
+ attributes?: Record<string, unknown> | undefined;
864
+ relationships?: Record<string, unknown> | undefined;
865
+ links?: Record<string, string> | undefined;
866
+ meta?: Record<string, unknown> | undefined;
867
+ }, {
868
+ type: string;
869
+ id: string;
870
+ attributes?: Record<string, unknown> | undefined;
871
+ relationships?: Record<string, unknown> | undefined;
872
+ links?: Record<string, string> | undefined;
873
+ meta?: Record<string, unknown> | undefined;
874
+ }>, "many">>;
875
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
876
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ data: {
879
+ type: string;
880
+ id: string;
881
+ attributes: {
882
+ createdAt: string;
883
+ updatedAt: string;
884
+ currency: string;
885
+ items: {
886
+ description: string;
887
+ unit: string;
888
+ quantity: number;
889
+ value?: number | undefined;
890
+ weight?: number | undefined;
891
+ }[];
892
+ waybillNumber: string;
893
+ issueDate: string;
894
+ senderName: string;
895
+ recipientName: string;
896
+ organizationId: string;
897
+ notes?: string | null | undefined;
898
+ totalValue?: number | null | undefined;
899
+ senderAddress?: string | null | undefined;
900
+ senderPhone?: string | null | undefined;
901
+ senderEmail?: string | null | undefined;
902
+ recipientAddress?: string | null | undefined;
903
+ recipientPhone?: string | null | undefined;
904
+ recipientEmail?: string | null | undefined;
905
+ totalWeight?: number | null | undefined;
906
+ pdfUrl?: string | null | undefined;
907
+ };
908
+ relationships?: Record<string, unknown> | undefined;
909
+ links?: Record<string, string> | undefined;
910
+ meta?: Record<string, unknown> | undefined;
911
+ };
912
+ links?: Record<string, string> | undefined;
913
+ meta?: Record<string, unknown> | undefined;
914
+ included?: {
915
+ type: string;
916
+ id: string;
917
+ attributes?: Record<string, unknown> | undefined;
918
+ relationships?: Record<string, unknown> | undefined;
919
+ links?: Record<string, string> | undefined;
920
+ meta?: Record<string, unknown> | undefined;
921
+ }[] | undefined;
922
+ }, {
923
+ data: {
924
+ type: string;
925
+ id: string;
926
+ attributes: {
927
+ createdAt: string;
928
+ updatedAt: string;
929
+ items: {
930
+ description: string;
931
+ unit: string;
932
+ quantity: number;
933
+ value?: number | undefined;
934
+ weight?: number | undefined;
935
+ }[];
936
+ waybillNumber: string;
937
+ issueDate: string;
938
+ senderName: string;
939
+ recipientName: string;
940
+ organizationId: string;
941
+ currency?: string | undefined;
942
+ notes?: string | null | undefined;
943
+ totalValue?: number | null | undefined;
944
+ senderAddress?: string | null | undefined;
945
+ senderPhone?: string | null | undefined;
946
+ senderEmail?: string | null | undefined;
947
+ recipientAddress?: string | null | undefined;
948
+ recipientPhone?: string | null | undefined;
949
+ recipientEmail?: string | null | undefined;
950
+ totalWeight?: number | null | undefined;
951
+ pdfUrl?: string | null | undefined;
952
+ };
953
+ relationships?: Record<string, unknown> | undefined;
954
+ links?: Record<string, string> | undefined;
955
+ meta?: Record<string, unknown> | undefined;
956
+ };
957
+ links?: Record<string, string> | undefined;
958
+ meta?: Record<string, unknown> | undefined;
959
+ included?: {
960
+ type: string;
961
+ id: string;
962
+ attributes?: Record<string, unknown> | undefined;
963
+ relationships?: Record<string, unknown> | undefined;
964
+ links?: Record<string, string> | undefined;
965
+ meta?: Record<string, unknown> | undefined;
966
+ }[] | undefined;
967
+ }>;
968
+ 400: z.ZodObject<{
969
+ errors: z.ZodArray<z.ZodObject<{
970
+ id: z.ZodOptional<z.ZodString>;
971
+ links: z.ZodOptional<z.ZodObject<{
972
+ about: z.ZodOptional<z.ZodString>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ about?: string | undefined;
975
+ }, {
976
+ about?: string | undefined;
977
+ }>>;
978
+ status: z.ZodOptional<z.ZodString>;
979
+ code: z.ZodOptional<z.ZodString>;
980
+ title: z.ZodOptional<z.ZodString>;
981
+ detail: z.ZodOptional<z.ZodString>;
982
+ source: z.ZodOptional<z.ZodObject<{
983
+ pointer: z.ZodOptional<z.ZodString>;
984
+ parameter: z.ZodOptional<z.ZodString>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ pointer?: string | undefined;
987
+ parameter?: string | undefined;
988
+ }, {
989
+ pointer?: string | undefined;
990
+ parameter?: string | undefined;
991
+ }>>;
992
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ status?: string | undefined;
995
+ code?: string | undefined;
996
+ id?: string | undefined;
997
+ links?: {
998
+ about?: string | undefined;
999
+ } | undefined;
1000
+ meta?: Record<string, unknown> | undefined;
1001
+ title?: string | undefined;
1002
+ detail?: string | undefined;
1003
+ source?: {
1004
+ pointer?: string | undefined;
1005
+ parameter?: string | undefined;
1006
+ } | undefined;
1007
+ }, {
1008
+ status?: string | undefined;
1009
+ code?: string | undefined;
1010
+ id?: string | undefined;
1011
+ links?: {
1012
+ about?: string | undefined;
1013
+ } | undefined;
1014
+ meta?: Record<string, unknown> | undefined;
1015
+ title?: string | undefined;
1016
+ detail?: string | undefined;
1017
+ source?: {
1018
+ pointer?: string | undefined;
1019
+ parameter?: string | undefined;
1020
+ } | undefined;
1021
+ }>, "many">;
1022
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ errors: {
1025
+ status?: string | undefined;
1026
+ code?: string | undefined;
1027
+ id?: string | undefined;
1028
+ links?: {
1029
+ about?: string | undefined;
1030
+ } | undefined;
1031
+ meta?: Record<string, unknown> | undefined;
1032
+ title?: string | undefined;
1033
+ detail?: string | undefined;
1034
+ source?: {
1035
+ pointer?: string | undefined;
1036
+ parameter?: string | undefined;
1037
+ } | undefined;
1038
+ }[];
1039
+ meta?: Record<string, unknown> | undefined;
1040
+ }, {
1041
+ errors: {
1042
+ status?: string | undefined;
1043
+ code?: string | undefined;
1044
+ id?: string | undefined;
1045
+ links?: {
1046
+ about?: string | undefined;
1047
+ } | undefined;
1048
+ meta?: Record<string, unknown> | undefined;
1049
+ title?: string | undefined;
1050
+ detail?: string | undefined;
1051
+ source?: {
1052
+ pointer?: string | undefined;
1053
+ parameter?: string | undefined;
1054
+ } | undefined;
1055
+ }[];
1056
+ meta?: Record<string, unknown> | undefined;
1057
+ }>;
1058
+ 401: z.ZodObject<{
1059
+ errors: z.ZodArray<z.ZodObject<{
1060
+ id: z.ZodOptional<z.ZodString>;
1061
+ links: z.ZodOptional<z.ZodObject<{
1062
+ about: z.ZodOptional<z.ZodString>;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ about?: string | undefined;
1065
+ }, {
1066
+ about?: string | undefined;
1067
+ }>>;
1068
+ status: z.ZodOptional<z.ZodString>;
1069
+ code: z.ZodOptional<z.ZodString>;
1070
+ title: z.ZodOptional<z.ZodString>;
1071
+ detail: z.ZodOptional<z.ZodString>;
1072
+ source: z.ZodOptional<z.ZodObject<{
1073
+ pointer: z.ZodOptional<z.ZodString>;
1074
+ parameter: z.ZodOptional<z.ZodString>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ pointer?: string | undefined;
1077
+ parameter?: string | undefined;
1078
+ }, {
1079
+ pointer?: string | undefined;
1080
+ parameter?: string | undefined;
1081
+ }>>;
1082
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ status?: string | undefined;
1085
+ code?: string | undefined;
1086
+ id?: string | undefined;
1087
+ links?: {
1088
+ about?: string | undefined;
1089
+ } | undefined;
1090
+ meta?: Record<string, unknown> | undefined;
1091
+ title?: string | undefined;
1092
+ detail?: string | undefined;
1093
+ source?: {
1094
+ pointer?: string | undefined;
1095
+ parameter?: string | undefined;
1096
+ } | undefined;
1097
+ }, {
1098
+ status?: string | undefined;
1099
+ code?: string | undefined;
1100
+ id?: string | undefined;
1101
+ links?: {
1102
+ about?: string | undefined;
1103
+ } | undefined;
1104
+ meta?: Record<string, unknown> | undefined;
1105
+ title?: string | undefined;
1106
+ detail?: string | undefined;
1107
+ source?: {
1108
+ pointer?: string | undefined;
1109
+ parameter?: string | undefined;
1110
+ } | undefined;
1111
+ }>, "many">;
1112
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ errors: {
1115
+ status?: string | undefined;
1116
+ code?: string | undefined;
1117
+ id?: string | undefined;
1118
+ links?: {
1119
+ about?: string | undefined;
1120
+ } | undefined;
1121
+ meta?: Record<string, unknown> | undefined;
1122
+ title?: string | undefined;
1123
+ detail?: string | undefined;
1124
+ source?: {
1125
+ pointer?: string | undefined;
1126
+ parameter?: string | undefined;
1127
+ } | undefined;
1128
+ }[];
1129
+ meta?: Record<string, unknown> | undefined;
1130
+ }, {
1131
+ errors: {
1132
+ status?: string | undefined;
1133
+ code?: string | undefined;
1134
+ id?: string | undefined;
1135
+ links?: {
1136
+ about?: string | undefined;
1137
+ } | undefined;
1138
+ meta?: Record<string, unknown> | undefined;
1139
+ title?: string | undefined;
1140
+ detail?: string | undefined;
1141
+ source?: {
1142
+ pointer?: string | undefined;
1143
+ parameter?: string | undefined;
1144
+ } | undefined;
1145
+ }[];
1146
+ meta?: Record<string, unknown> | undefined;
1147
+ }>;
1148
+ 404: z.ZodObject<{
1149
+ errors: z.ZodArray<z.ZodObject<{
1150
+ id: z.ZodOptional<z.ZodString>;
1151
+ links: z.ZodOptional<z.ZodObject<{
1152
+ about: z.ZodOptional<z.ZodString>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ about?: string | undefined;
1155
+ }, {
1156
+ about?: string | undefined;
1157
+ }>>;
1158
+ status: z.ZodOptional<z.ZodString>;
1159
+ code: z.ZodOptional<z.ZodString>;
1160
+ title: z.ZodOptional<z.ZodString>;
1161
+ detail: z.ZodOptional<z.ZodString>;
1162
+ source: z.ZodOptional<z.ZodObject<{
1163
+ pointer: z.ZodOptional<z.ZodString>;
1164
+ parameter: z.ZodOptional<z.ZodString>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ pointer?: string | undefined;
1167
+ parameter?: string | undefined;
1168
+ }, {
1169
+ pointer?: string | undefined;
1170
+ parameter?: string | undefined;
1171
+ }>>;
1172
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ status?: string | undefined;
1175
+ code?: string | undefined;
1176
+ id?: string | undefined;
1177
+ links?: {
1178
+ about?: string | undefined;
1179
+ } | undefined;
1180
+ meta?: Record<string, unknown> | undefined;
1181
+ title?: string | undefined;
1182
+ detail?: string | undefined;
1183
+ source?: {
1184
+ pointer?: string | undefined;
1185
+ parameter?: string | undefined;
1186
+ } | undefined;
1187
+ }, {
1188
+ status?: string | undefined;
1189
+ code?: string | undefined;
1190
+ id?: string | undefined;
1191
+ links?: {
1192
+ about?: string | undefined;
1193
+ } | undefined;
1194
+ meta?: Record<string, unknown> | undefined;
1195
+ title?: string | undefined;
1196
+ detail?: string | undefined;
1197
+ source?: {
1198
+ pointer?: string | undefined;
1199
+ parameter?: string | undefined;
1200
+ } | undefined;
1201
+ }>, "many">;
1202
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ errors: {
1205
+ status?: string | undefined;
1206
+ code?: string | undefined;
1207
+ id?: string | undefined;
1208
+ links?: {
1209
+ about?: string | undefined;
1210
+ } | undefined;
1211
+ meta?: Record<string, unknown> | undefined;
1212
+ title?: string | undefined;
1213
+ detail?: string | undefined;
1214
+ source?: {
1215
+ pointer?: string | undefined;
1216
+ parameter?: string | undefined;
1217
+ } | undefined;
1218
+ }[];
1219
+ meta?: Record<string, unknown> | undefined;
1220
+ }, {
1221
+ errors: {
1222
+ status?: string | undefined;
1223
+ code?: string | undefined;
1224
+ id?: string | undefined;
1225
+ links?: {
1226
+ about?: string | undefined;
1227
+ } | undefined;
1228
+ meta?: Record<string, unknown> | undefined;
1229
+ title?: string | undefined;
1230
+ detail?: string | undefined;
1231
+ source?: {
1232
+ pointer?: string | undefined;
1233
+ parameter?: string | undefined;
1234
+ } | undefined;
1235
+ }[];
1236
+ meta?: Record<string, unknown> | undefined;
1237
+ }>;
1238
+ 422: z.ZodObject<{
1239
+ errors: z.ZodArray<z.ZodObject<{
1240
+ id: z.ZodOptional<z.ZodString>;
1241
+ links: z.ZodOptional<z.ZodObject<{
1242
+ about: z.ZodOptional<z.ZodString>;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ about?: string | undefined;
1245
+ }, {
1246
+ about?: string | undefined;
1247
+ }>>;
1248
+ status: z.ZodOptional<z.ZodString>;
1249
+ code: z.ZodOptional<z.ZodString>;
1250
+ title: z.ZodOptional<z.ZodString>;
1251
+ detail: z.ZodOptional<z.ZodString>;
1252
+ source: z.ZodOptional<z.ZodObject<{
1253
+ pointer: z.ZodOptional<z.ZodString>;
1254
+ parameter: z.ZodOptional<z.ZodString>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ pointer?: string | undefined;
1257
+ parameter?: string | undefined;
1258
+ }, {
1259
+ pointer?: string | undefined;
1260
+ parameter?: string | undefined;
1261
+ }>>;
1262
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ status?: string | undefined;
1265
+ code?: string | undefined;
1266
+ id?: string | undefined;
1267
+ links?: {
1268
+ about?: string | undefined;
1269
+ } | undefined;
1270
+ meta?: Record<string, unknown> | undefined;
1271
+ title?: string | undefined;
1272
+ detail?: string | undefined;
1273
+ source?: {
1274
+ pointer?: string | undefined;
1275
+ parameter?: string | undefined;
1276
+ } | undefined;
1277
+ }, {
1278
+ status?: string | undefined;
1279
+ code?: string | undefined;
1280
+ id?: string | undefined;
1281
+ links?: {
1282
+ about?: string | undefined;
1283
+ } | undefined;
1284
+ meta?: Record<string, unknown> | undefined;
1285
+ title?: string | undefined;
1286
+ detail?: string | undefined;
1287
+ source?: {
1288
+ pointer?: string | undefined;
1289
+ parameter?: string | undefined;
1290
+ } | undefined;
1291
+ }>, "many">;
1292
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ errors: {
1295
+ status?: string | undefined;
1296
+ code?: string | undefined;
1297
+ id?: string | undefined;
1298
+ links?: {
1299
+ about?: string | undefined;
1300
+ } | undefined;
1301
+ meta?: Record<string, unknown> | undefined;
1302
+ title?: string | undefined;
1303
+ detail?: string | undefined;
1304
+ source?: {
1305
+ pointer?: string | undefined;
1306
+ parameter?: string | undefined;
1307
+ } | undefined;
1308
+ }[];
1309
+ meta?: Record<string, unknown> | undefined;
1310
+ }, {
1311
+ errors: {
1312
+ status?: string | undefined;
1313
+ code?: string | undefined;
1314
+ id?: string | undefined;
1315
+ links?: {
1316
+ about?: string | undefined;
1317
+ } | undefined;
1318
+ meta?: Record<string, unknown> | undefined;
1319
+ title?: string | undefined;
1320
+ detail?: string | undefined;
1321
+ source?: {
1322
+ pointer?: string | undefined;
1323
+ parameter?: string | undefined;
1324
+ } | undefined;
1325
+ }[];
1326
+ meta?: Record<string, unknown> | undefined;
1327
+ }>;
1328
+ };
1329
+ };
1330
+ getWaybill: {
1331
+ pathParams: z.ZodObject<{
1332
+ organizationId: z.ZodString;
1333
+ id: z.ZodString;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ id: string;
1336
+ organizationId: string;
1337
+ }, {
1338
+ id: string;
1339
+ organizationId: string;
1340
+ }>;
1341
+ summary: "Get waybill by ID";
1342
+ description: "Get detailed information about a specific waybill";
1343
+ method: "GET";
1344
+ path: "/organizations/:organizationId/waybills/:id";
1345
+ responses: {
1346
+ 200: z.ZodObject<{
1347
+ data: z.ZodObject<{
1348
+ type: z.ZodLiteral<string>;
1349
+ id: z.ZodString;
1350
+ attributes: z.ZodObject<{
1351
+ waybillNumber: z.ZodString;
1352
+ issueDate: z.ZodString;
1353
+ senderName: z.ZodString;
1354
+ senderAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1355
+ senderPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1356
+ senderEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1357
+ recipientName: z.ZodString;
1358
+ recipientAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1359
+ recipientPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1360
+ recipientEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1361
+ items: z.ZodArray<z.ZodObject<{
1362
+ description: z.ZodString;
1363
+ quantity: z.ZodNumber;
1364
+ unit: z.ZodString;
1365
+ weight: z.ZodOptional<z.ZodNumber>;
1366
+ value: z.ZodOptional<z.ZodNumber>;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ description: string;
1369
+ unit: string;
1370
+ quantity: number;
1371
+ value?: number | undefined;
1372
+ weight?: number | undefined;
1373
+ }, {
1374
+ description: string;
1375
+ unit: string;
1376
+ quantity: number;
1377
+ value?: number | undefined;
1378
+ weight?: number | undefined;
1379
+ }>, "many">;
1380
+ totalWeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1381
+ totalValue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1382
+ currency: z.ZodDefault<z.ZodString>;
1383
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1384
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1385
+ organizationId: z.ZodString;
1386
+ } & {
1387
+ createdAt: z.ZodString;
1388
+ updatedAt: z.ZodString;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ createdAt: string;
1391
+ updatedAt: string;
1392
+ currency: string;
1393
+ items: {
1394
+ description: string;
1395
+ unit: string;
1396
+ quantity: number;
1397
+ value?: number | undefined;
1398
+ weight?: number | undefined;
1399
+ }[];
1400
+ waybillNumber: string;
1401
+ issueDate: string;
1402
+ senderName: string;
1403
+ recipientName: string;
1404
+ organizationId: string;
1405
+ notes?: string | null | undefined;
1406
+ totalValue?: number | null | undefined;
1407
+ senderAddress?: string | null | undefined;
1408
+ senderPhone?: string | null | undefined;
1409
+ senderEmail?: string | null | undefined;
1410
+ recipientAddress?: string | null | undefined;
1411
+ recipientPhone?: string | null | undefined;
1412
+ recipientEmail?: string | null | undefined;
1413
+ totalWeight?: number | null | undefined;
1414
+ pdfUrl?: string | null | undefined;
1415
+ }, {
1416
+ createdAt: string;
1417
+ updatedAt: string;
1418
+ items: {
1419
+ description: string;
1420
+ unit: string;
1421
+ quantity: number;
1422
+ value?: number | undefined;
1423
+ weight?: number | undefined;
1424
+ }[];
1425
+ waybillNumber: string;
1426
+ issueDate: string;
1427
+ senderName: string;
1428
+ recipientName: string;
1429
+ organizationId: string;
1430
+ currency?: string | undefined;
1431
+ notes?: string | null | undefined;
1432
+ totalValue?: number | null | undefined;
1433
+ senderAddress?: string | null | undefined;
1434
+ senderPhone?: string | null | undefined;
1435
+ senderEmail?: string | null | undefined;
1436
+ recipientAddress?: string | null | undefined;
1437
+ recipientPhone?: string | null | undefined;
1438
+ recipientEmail?: string | null | undefined;
1439
+ totalWeight?: number | null | undefined;
1440
+ pdfUrl?: string | null | undefined;
1441
+ }>;
1442
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1443
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1444
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ type: string;
1447
+ id: string;
1448
+ attributes: {
1449
+ createdAt: string;
1450
+ updatedAt: string;
1451
+ currency: string;
1452
+ items: {
1453
+ description: string;
1454
+ unit: string;
1455
+ quantity: number;
1456
+ value?: number | undefined;
1457
+ weight?: number | undefined;
1458
+ }[];
1459
+ waybillNumber: string;
1460
+ issueDate: string;
1461
+ senderName: string;
1462
+ recipientName: string;
1463
+ organizationId: string;
1464
+ notes?: string | null | undefined;
1465
+ totalValue?: number | null | undefined;
1466
+ senderAddress?: string | null | undefined;
1467
+ senderPhone?: string | null | undefined;
1468
+ senderEmail?: string | null | undefined;
1469
+ recipientAddress?: string | null | undefined;
1470
+ recipientPhone?: string | null | undefined;
1471
+ recipientEmail?: string | null | undefined;
1472
+ totalWeight?: number | null | undefined;
1473
+ pdfUrl?: string | null | undefined;
1474
+ };
1475
+ relationships?: Record<string, unknown> | undefined;
1476
+ links?: Record<string, string> | undefined;
1477
+ meta?: Record<string, unknown> | undefined;
1478
+ }, {
1479
+ type: string;
1480
+ id: string;
1481
+ attributes: {
1482
+ createdAt: string;
1483
+ updatedAt: string;
1484
+ items: {
1485
+ description: string;
1486
+ unit: string;
1487
+ quantity: number;
1488
+ value?: number | undefined;
1489
+ weight?: number | undefined;
1490
+ }[];
1491
+ waybillNumber: string;
1492
+ issueDate: string;
1493
+ senderName: string;
1494
+ recipientName: string;
1495
+ organizationId: string;
1496
+ currency?: string | undefined;
1497
+ notes?: string | null | undefined;
1498
+ totalValue?: number | null | undefined;
1499
+ senderAddress?: string | null | undefined;
1500
+ senderPhone?: string | null | undefined;
1501
+ senderEmail?: string | null | undefined;
1502
+ recipientAddress?: string | null | undefined;
1503
+ recipientPhone?: string | null | undefined;
1504
+ recipientEmail?: string | null | undefined;
1505
+ totalWeight?: number | null | undefined;
1506
+ pdfUrl?: string | null | undefined;
1507
+ };
1508
+ relationships?: Record<string, unknown> | undefined;
1509
+ links?: Record<string, string> | undefined;
1510
+ meta?: Record<string, unknown> | undefined;
1511
+ }>;
1512
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1513
+ type: z.ZodString;
1514
+ id: z.ZodString;
1515
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1516
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1517
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1518
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ type: string;
1521
+ id: string;
1522
+ attributes?: Record<string, unknown> | undefined;
1523
+ relationships?: Record<string, unknown> | undefined;
1524
+ links?: Record<string, string> | undefined;
1525
+ meta?: Record<string, unknown> | undefined;
1526
+ }, {
1527
+ type: string;
1528
+ id: string;
1529
+ attributes?: Record<string, unknown> | undefined;
1530
+ relationships?: Record<string, unknown> | undefined;
1531
+ links?: Record<string, string> | undefined;
1532
+ meta?: Record<string, unknown> | undefined;
1533
+ }>, "many">>;
1534
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1535
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ data: {
1538
+ type: string;
1539
+ id: string;
1540
+ attributes: {
1541
+ createdAt: string;
1542
+ updatedAt: string;
1543
+ currency: string;
1544
+ items: {
1545
+ description: string;
1546
+ unit: string;
1547
+ quantity: number;
1548
+ value?: number | undefined;
1549
+ weight?: number | undefined;
1550
+ }[];
1551
+ waybillNumber: string;
1552
+ issueDate: string;
1553
+ senderName: string;
1554
+ recipientName: string;
1555
+ organizationId: string;
1556
+ notes?: string | null | undefined;
1557
+ totalValue?: number | null | undefined;
1558
+ senderAddress?: string | null | undefined;
1559
+ senderPhone?: string | null | undefined;
1560
+ senderEmail?: string | null | undefined;
1561
+ recipientAddress?: string | null | undefined;
1562
+ recipientPhone?: string | null | undefined;
1563
+ recipientEmail?: string | null | undefined;
1564
+ totalWeight?: number | null | undefined;
1565
+ pdfUrl?: string | null | undefined;
1566
+ };
1567
+ relationships?: Record<string, unknown> | undefined;
1568
+ links?: Record<string, string> | undefined;
1569
+ meta?: Record<string, unknown> | undefined;
1570
+ };
1571
+ links?: Record<string, string> | undefined;
1572
+ meta?: Record<string, unknown> | undefined;
1573
+ included?: {
1574
+ type: string;
1575
+ id: string;
1576
+ attributes?: Record<string, unknown> | undefined;
1577
+ relationships?: Record<string, unknown> | undefined;
1578
+ links?: Record<string, string> | undefined;
1579
+ meta?: Record<string, unknown> | undefined;
1580
+ }[] | undefined;
1581
+ }, {
1582
+ data: {
1583
+ type: string;
1584
+ id: string;
1585
+ attributes: {
1586
+ createdAt: string;
1587
+ updatedAt: string;
1588
+ items: {
1589
+ description: string;
1590
+ unit: string;
1591
+ quantity: number;
1592
+ value?: number | undefined;
1593
+ weight?: number | undefined;
1594
+ }[];
1595
+ waybillNumber: string;
1596
+ issueDate: string;
1597
+ senderName: string;
1598
+ recipientName: string;
1599
+ organizationId: string;
1600
+ currency?: string | undefined;
1601
+ notes?: string | null | undefined;
1602
+ totalValue?: number | null | undefined;
1603
+ senderAddress?: string | null | undefined;
1604
+ senderPhone?: string | null | undefined;
1605
+ senderEmail?: string | null | undefined;
1606
+ recipientAddress?: string | null | undefined;
1607
+ recipientPhone?: string | null | undefined;
1608
+ recipientEmail?: string | null | undefined;
1609
+ totalWeight?: number | null | undefined;
1610
+ pdfUrl?: string | null | undefined;
1611
+ };
1612
+ relationships?: Record<string, unknown> | undefined;
1613
+ links?: Record<string, string> | undefined;
1614
+ meta?: Record<string, unknown> | undefined;
1615
+ };
1616
+ links?: Record<string, string> | undefined;
1617
+ meta?: Record<string, unknown> | undefined;
1618
+ included?: {
1619
+ type: string;
1620
+ id: string;
1621
+ attributes?: Record<string, unknown> | undefined;
1622
+ relationships?: Record<string, unknown> | undefined;
1623
+ links?: Record<string, string> | undefined;
1624
+ meta?: Record<string, unknown> | undefined;
1625
+ }[] | undefined;
1626
+ }>;
1627
+ 404: z.ZodObject<{
1628
+ errors: z.ZodArray<z.ZodObject<{
1629
+ id: z.ZodOptional<z.ZodString>;
1630
+ links: z.ZodOptional<z.ZodObject<{
1631
+ about: z.ZodOptional<z.ZodString>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ about?: string | undefined;
1634
+ }, {
1635
+ about?: string | undefined;
1636
+ }>>;
1637
+ status: z.ZodOptional<z.ZodString>;
1638
+ code: z.ZodOptional<z.ZodString>;
1639
+ title: z.ZodOptional<z.ZodString>;
1640
+ detail: z.ZodOptional<z.ZodString>;
1641
+ source: z.ZodOptional<z.ZodObject<{
1642
+ pointer: z.ZodOptional<z.ZodString>;
1643
+ parameter: z.ZodOptional<z.ZodString>;
1644
+ }, "strip", z.ZodTypeAny, {
1645
+ pointer?: string | undefined;
1646
+ parameter?: string | undefined;
1647
+ }, {
1648
+ pointer?: string | undefined;
1649
+ parameter?: string | undefined;
1650
+ }>>;
1651
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ status?: string | undefined;
1654
+ code?: string | undefined;
1655
+ id?: string | undefined;
1656
+ links?: {
1657
+ about?: string | undefined;
1658
+ } | undefined;
1659
+ meta?: Record<string, unknown> | undefined;
1660
+ title?: string | undefined;
1661
+ detail?: string | undefined;
1662
+ source?: {
1663
+ pointer?: string | undefined;
1664
+ parameter?: string | undefined;
1665
+ } | undefined;
1666
+ }, {
1667
+ status?: string | undefined;
1668
+ code?: string | undefined;
1669
+ id?: string | undefined;
1670
+ links?: {
1671
+ about?: string | undefined;
1672
+ } | undefined;
1673
+ meta?: Record<string, unknown> | undefined;
1674
+ title?: string | undefined;
1675
+ detail?: string | undefined;
1676
+ source?: {
1677
+ pointer?: string | undefined;
1678
+ parameter?: string | undefined;
1679
+ } | undefined;
1680
+ }>, "many">;
1681
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ errors: {
1684
+ status?: string | undefined;
1685
+ code?: string | undefined;
1686
+ id?: string | undefined;
1687
+ links?: {
1688
+ about?: string | undefined;
1689
+ } | undefined;
1690
+ meta?: Record<string, unknown> | undefined;
1691
+ title?: string | undefined;
1692
+ detail?: string | undefined;
1693
+ source?: {
1694
+ pointer?: string | undefined;
1695
+ parameter?: string | undefined;
1696
+ } | undefined;
1697
+ }[];
1698
+ meta?: Record<string, unknown> | undefined;
1699
+ }, {
1700
+ errors: {
1701
+ status?: string | undefined;
1702
+ code?: string | undefined;
1703
+ id?: string | undefined;
1704
+ links?: {
1705
+ about?: string | undefined;
1706
+ } | undefined;
1707
+ meta?: Record<string, unknown> | undefined;
1708
+ title?: string | undefined;
1709
+ detail?: string | undefined;
1710
+ source?: {
1711
+ pointer?: string | undefined;
1712
+ parameter?: string | undefined;
1713
+ } | undefined;
1714
+ }[];
1715
+ meta?: Record<string, unknown> | undefined;
1716
+ }>;
1717
+ 401: z.ZodObject<{
1718
+ errors: z.ZodArray<z.ZodObject<{
1719
+ id: z.ZodOptional<z.ZodString>;
1720
+ links: z.ZodOptional<z.ZodObject<{
1721
+ about: z.ZodOptional<z.ZodString>;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ about?: string | undefined;
1724
+ }, {
1725
+ about?: string | undefined;
1726
+ }>>;
1727
+ status: z.ZodOptional<z.ZodString>;
1728
+ code: z.ZodOptional<z.ZodString>;
1729
+ title: z.ZodOptional<z.ZodString>;
1730
+ detail: z.ZodOptional<z.ZodString>;
1731
+ source: z.ZodOptional<z.ZodObject<{
1732
+ pointer: z.ZodOptional<z.ZodString>;
1733
+ parameter: z.ZodOptional<z.ZodString>;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ pointer?: string | undefined;
1736
+ parameter?: string | undefined;
1737
+ }, {
1738
+ pointer?: string | undefined;
1739
+ parameter?: string | undefined;
1740
+ }>>;
1741
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ status?: string | undefined;
1744
+ code?: string | undefined;
1745
+ id?: string | undefined;
1746
+ links?: {
1747
+ about?: string | undefined;
1748
+ } | undefined;
1749
+ meta?: Record<string, unknown> | undefined;
1750
+ title?: string | undefined;
1751
+ detail?: string | undefined;
1752
+ source?: {
1753
+ pointer?: string | undefined;
1754
+ parameter?: string | undefined;
1755
+ } | undefined;
1756
+ }, {
1757
+ status?: string | undefined;
1758
+ code?: string | undefined;
1759
+ id?: string | undefined;
1760
+ links?: {
1761
+ about?: string | undefined;
1762
+ } | undefined;
1763
+ meta?: Record<string, unknown> | undefined;
1764
+ title?: string | undefined;
1765
+ detail?: string | undefined;
1766
+ source?: {
1767
+ pointer?: string | undefined;
1768
+ parameter?: string | undefined;
1769
+ } | undefined;
1770
+ }>, "many">;
1771
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ errors: {
1774
+ status?: string | undefined;
1775
+ code?: string | undefined;
1776
+ id?: string | undefined;
1777
+ links?: {
1778
+ about?: string | undefined;
1779
+ } | undefined;
1780
+ meta?: Record<string, unknown> | undefined;
1781
+ title?: string | undefined;
1782
+ detail?: string | undefined;
1783
+ source?: {
1784
+ pointer?: string | undefined;
1785
+ parameter?: string | undefined;
1786
+ } | undefined;
1787
+ }[];
1788
+ meta?: Record<string, unknown> | undefined;
1789
+ }, {
1790
+ errors: {
1791
+ status?: string | undefined;
1792
+ code?: string | undefined;
1793
+ id?: string | undefined;
1794
+ links?: {
1795
+ about?: string | undefined;
1796
+ } | undefined;
1797
+ meta?: Record<string, unknown> | undefined;
1798
+ title?: string | undefined;
1799
+ detail?: string | undefined;
1800
+ source?: {
1801
+ pointer?: string | undefined;
1802
+ parameter?: string | undefined;
1803
+ } | undefined;
1804
+ }[];
1805
+ meta?: Record<string, unknown> | undefined;
1806
+ }>;
1807
+ };
1808
+ };
1809
+ updateWaybill: {
1810
+ pathParams: z.ZodObject<{
1811
+ organizationId: z.ZodString;
1812
+ id: z.ZodString;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ id: string;
1815
+ organizationId: string;
1816
+ }, {
1817
+ id: string;
1818
+ organizationId: string;
1819
+ }>;
1820
+ summary: "Update waybill";
1821
+ description: "Update waybill information";
1822
+ method: "PATCH";
1823
+ body: z.ZodObject<{
1824
+ data: z.ZodObject<{
1825
+ type: z.ZodLiteral<"waybills">;
1826
+ id: z.ZodString;
1827
+ attributes: z.ZodObject<{
1828
+ issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1829
+ senderName: z.ZodOptional<z.ZodString>;
1830
+ senderAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1831
+ senderPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1832
+ senderEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1833
+ recipientName: z.ZodOptional<z.ZodString>;
1834
+ recipientAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1835
+ recipientPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1836
+ recipientEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1837
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1838
+ description: z.ZodString;
1839
+ quantity: z.ZodNumber;
1840
+ unit: z.ZodString;
1841
+ weight: z.ZodOptional<z.ZodNumber>;
1842
+ value: z.ZodOptional<z.ZodNumber>;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ description: string;
1845
+ unit: string;
1846
+ quantity: number;
1847
+ value?: number | undefined;
1848
+ weight?: number | undefined;
1849
+ }, {
1850
+ description: string;
1851
+ unit: string;
1852
+ quantity: number;
1853
+ value?: number | undefined;
1854
+ weight?: number | undefined;
1855
+ }>, "many">>;
1856
+ totalWeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1857
+ totalValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1858
+ currency: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1859
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ currency?: string | undefined;
1862
+ notes?: string | undefined;
1863
+ totalValue?: number | undefined;
1864
+ items?: {
1865
+ description: string;
1866
+ unit: string;
1867
+ quantity: number;
1868
+ value?: number | undefined;
1869
+ weight?: number | undefined;
1870
+ }[] | undefined;
1871
+ issueDate?: string | undefined;
1872
+ senderName?: string | undefined;
1873
+ senderAddress?: string | undefined;
1874
+ senderPhone?: string | undefined;
1875
+ senderEmail?: string | undefined;
1876
+ recipientName?: string | undefined;
1877
+ recipientAddress?: string | undefined;
1878
+ recipientPhone?: string | undefined;
1879
+ recipientEmail?: string | undefined;
1880
+ totalWeight?: number | undefined;
1881
+ }, {
1882
+ currency?: string | undefined;
1883
+ notes?: string | undefined;
1884
+ totalValue?: number | undefined;
1885
+ items?: {
1886
+ description: string;
1887
+ unit: string;
1888
+ quantity: number;
1889
+ value?: number | undefined;
1890
+ weight?: number | undefined;
1891
+ }[] | undefined;
1892
+ issueDate?: string | undefined;
1893
+ senderName?: string | undefined;
1894
+ senderAddress?: string | undefined;
1895
+ senderPhone?: string | undefined;
1896
+ senderEmail?: string | undefined;
1897
+ recipientName?: string | undefined;
1898
+ recipientAddress?: string | undefined;
1899
+ recipientPhone?: string | undefined;
1900
+ recipientEmail?: string | undefined;
1901
+ totalWeight?: number | undefined;
1902
+ }>;
1903
+ }, "strip", z.ZodTypeAny, {
1904
+ type: "waybills";
1905
+ id: string;
1906
+ attributes: {
1907
+ currency?: string | undefined;
1908
+ notes?: string | undefined;
1909
+ totalValue?: number | undefined;
1910
+ items?: {
1911
+ description: string;
1912
+ unit: string;
1913
+ quantity: number;
1914
+ value?: number | undefined;
1915
+ weight?: number | undefined;
1916
+ }[] | undefined;
1917
+ issueDate?: string | undefined;
1918
+ senderName?: string | undefined;
1919
+ senderAddress?: string | undefined;
1920
+ senderPhone?: string | undefined;
1921
+ senderEmail?: string | undefined;
1922
+ recipientName?: string | undefined;
1923
+ recipientAddress?: string | undefined;
1924
+ recipientPhone?: string | undefined;
1925
+ recipientEmail?: string | undefined;
1926
+ totalWeight?: number | undefined;
1927
+ };
1928
+ }, {
1929
+ type: "waybills";
1930
+ id: string;
1931
+ attributes: {
1932
+ currency?: string | undefined;
1933
+ notes?: string | undefined;
1934
+ totalValue?: number | undefined;
1935
+ items?: {
1936
+ description: string;
1937
+ unit: string;
1938
+ quantity: number;
1939
+ value?: number | undefined;
1940
+ weight?: number | undefined;
1941
+ }[] | undefined;
1942
+ issueDate?: string | undefined;
1943
+ senderName?: string | undefined;
1944
+ senderAddress?: string | undefined;
1945
+ senderPhone?: string | undefined;
1946
+ senderEmail?: string | undefined;
1947
+ recipientName?: string | undefined;
1948
+ recipientAddress?: string | undefined;
1949
+ recipientPhone?: string | undefined;
1950
+ recipientEmail?: string | undefined;
1951
+ totalWeight?: number | undefined;
1952
+ };
1953
+ }>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ data: {
1956
+ type: "waybills";
1957
+ id: string;
1958
+ attributes: {
1959
+ currency?: string | undefined;
1960
+ notes?: string | undefined;
1961
+ totalValue?: number | undefined;
1962
+ items?: {
1963
+ description: string;
1964
+ unit: string;
1965
+ quantity: number;
1966
+ value?: number | undefined;
1967
+ weight?: number | undefined;
1968
+ }[] | undefined;
1969
+ issueDate?: string | undefined;
1970
+ senderName?: string | undefined;
1971
+ senderAddress?: string | undefined;
1972
+ senderPhone?: string | undefined;
1973
+ senderEmail?: string | undefined;
1974
+ recipientName?: string | undefined;
1975
+ recipientAddress?: string | undefined;
1976
+ recipientPhone?: string | undefined;
1977
+ recipientEmail?: string | undefined;
1978
+ totalWeight?: number | undefined;
1979
+ };
1980
+ };
1981
+ }, {
1982
+ data: {
1983
+ type: "waybills";
1984
+ id: string;
1985
+ attributes: {
1986
+ currency?: string | undefined;
1987
+ notes?: string | undefined;
1988
+ totalValue?: number | undefined;
1989
+ items?: {
1990
+ description: string;
1991
+ unit: string;
1992
+ quantity: number;
1993
+ value?: number | undefined;
1994
+ weight?: number | undefined;
1995
+ }[] | undefined;
1996
+ issueDate?: string | undefined;
1997
+ senderName?: string | undefined;
1998
+ senderAddress?: string | undefined;
1999
+ senderPhone?: string | undefined;
2000
+ senderEmail?: string | undefined;
2001
+ recipientName?: string | undefined;
2002
+ recipientAddress?: string | undefined;
2003
+ recipientPhone?: string | undefined;
2004
+ recipientEmail?: string | undefined;
2005
+ totalWeight?: number | undefined;
2006
+ };
2007
+ };
2008
+ }>;
2009
+ path: "/organizations/:organizationId/waybills/:id";
2010
+ responses: {
2011
+ 200: z.ZodObject<{
2012
+ data: z.ZodObject<{
2013
+ type: z.ZodLiteral<string>;
2014
+ id: z.ZodString;
2015
+ attributes: z.ZodObject<{
2016
+ waybillNumber: z.ZodString;
2017
+ issueDate: z.ZodString;
2018
+ senderName: z.ZodString;
2019
+ senderAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2020
+ senderPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2021
+ senderEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2022
+ recipientName: z.ZodString;
2023
+ recipientAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2024
+ recipientPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2025
+ recipientEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2026
+ items: z.ZodArray<z.ZodObject<{
2027
+ description: z.ZodString;
2028
+ quantity: z.ZodNumber;
2029
+ unit: z.ZodString;
2030
+ weight: z.ZodOptional<z.ZodNumber>;
2031
+ value: z.ZodOptional<z.ZodNumber>;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ description: string;
2034
+ unit: string;
2035
+ quantity: number;
2036
+ value?: number | undefined;
2037
+ weight?: number | undefined;
2038
+ }, {
2039
+ description: string;
2040
+ unit: string;
2041
+ quantity: number;
2042
+ value?: number | undefined;
2043
+ weight?: number | undefined;
2044
+ }>, "many">;
2045
+ totalWeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2046
+ totalValue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2047
+ currency: z.ZodDefault<z.ZodString>;
2048
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2049
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2050
+ organizationId: z.ZodString;
2051
+ } & {
2052
+ createdAt: z.ZodString;
2053
+ updatedAt: z.ZodString;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ createdAt: string;
2056
+ updatedAt: string;
2057
+ currency: string;
2058
+ items: {
2059
+ description: string;
2060
+ unit: string;
2061
+ quantity: number;
2062
+ value?: number | undefined;
2063
+ weight?: number | undefined;
2064
+ }[];
2065
+ waybillNumber: string;
2066
+ issueDate: string;
2067
+ senderName: string;
2068
+ recipientName: string;
2069
+ organizationId: string;
2070
+ notes?: string | null | undefined;
2071
+ totalValue?: number | null | undefined;
2072
+ senderAddress?: string | null | undefined;
2073
+ senderPhone?: string | null | undefined;
2074
+ senderEmail?: string | null | undefined;
2075
+ recipientAddress?: string | null | undefined;
2076
+ recipientPhone?: string | null | undefined;
2077
+ recipientEmail?: string | null | undefined;
2078
+ totalWeight?: number | null | undefined;
2079
+ pdfUrl?: string | null | undefined;
2080
+ }, {
2081
+ createdAt: string;
2082
+ updatedAt: string;
2083
+ items: {
2084
+ description: string;
2085
+ unit: string;
2086
+ quantity: number;
2087
+ value?: number | undefined;
2088
+ weight?: number | undefined;
2089
+ }[];
2090
+ waybillNumber: string;
2091
+ issueDate: string;
2092
+ senderName: string;
2093
+ recipientName: string;
2094
+ organizationId: string;
2095
+ currency?: string | undefined;
2096
+ notes?: string | null | undefined;
2097
+ totalValue?: number | null | undefined;
2098
+ senderAddress?: string | null | undefined;
2099
+ senderPhone?: string | null | undefined;
2100
+ senderEmail?: string | null | undefined;
2101
+ recipientAddress?: string | null | undefined;
2102
+ recipientPhone?: string | null | undefined;
2103
+ recipientEmail?: string | null | undefined;
2104
+ totalWeight?: number | null | undefined;
2105
+ pdfUrl?: string | null | undefined;
2106
+ }>;
2107
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2108
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2109
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ type: string;
2112
+ id: string;
2113
+ attributes: {
2114
+ createdAt: string;
2115
+ updatedAt: string;
2116
+ currency: string;
2117
+ items: {
2118
+ description: string;
2119
+ unit: string;
2120
+ quantity: number;
2121
+ value?: number | undefined;
2122
+ weight?: number | undefined;
2123
+ }[];
2124
+ waybillNumber: string;
2125
+ issueDate: string;
2126
+ senderName: string;
2127
+ recipientName: string;
2128
+ organizationId: string;
2129
+ notes?: string | null | undefined;
2130
+ totalValue?: number | null | undefined;
2131
+ senderAddress?: string | null | undefined;
2132
+ senderPhone?: string | null | undefined;
2133
+ senderEmail?: string | null | undefined;
2134
+ recipientAddress?: string | null | undefined;
2135
+ recipientPhone?: string | null | undefined;
2136
+ recipientEmail?: string | null | undefined;
2137
+ totalWeight?: number | null | undefined;
2138
+ pdfUrl?: string | null | undefined;
2139
+ };
2140
+ relationships?: Record<string, unknown> | undefined;
2141
+ links?: Record<string, string> | undefined;
2142
+ meta?: Record<string, unknown> | undefined;
2143
+ }, {
2144
+ type: string;
2145
+ id: string;
2146
+ attributes: {
2147
+ createdAt: string;
2148
+ updatedAt: string;
2149
+ items: {
2150
+ description: string;
2151
+ unit: string;
2152
+ quantity: number;
2153
+ value?: number | undefined;
2154
+ weight?: number | undefined;
2155
+ }[];
2156
+ waybillNumber: string;
2157
+ issueDate: string;
2158
+ senderName: string;
2159
+ recipientName: string;
2160
+ organizationId: string;
2161
+ currency?: string | undefined;
2162
+ notes?: string | null | undefined;
2163
+ totalValue?: number | null | undefined;
2164
+ senderAddress?: string | null | undefined;
2165
+ senderPhone?: string | null | undefined;
2166
+ senderEmail?: string | null | undefined;
2167
+ recipientAddress?: string | null | undefined;
2168
+ recipientPhone?: string | null | undefined;
2169
+ recipientEmail?: string | null | undefined;
2170
+ totalWeight?: number | null | undefined;
2171
+ pdfUrl?: string | null | undefined;
2172
+ };
2173
+ relationships?: Record<string, unknown> | undefined;
2174
+ links?: Record<string, string> | undefined;
2175
+ meta?: Record<string, unknown> | undefined;
2176
+ }>;
2177
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2178
+ type: z.ZodString;
2179
+ id: z.ZodString;
2180
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2181
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2182
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2183
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2184
+ }, "strip", z.ZodTypeAny, {
2185
+ type: string;
2186
+ id: string;
2187
+ attributes?: Record<string, unknown> | undefined;
2188
+ relationships?: Record<string, unknown> | undefined;
2189
+ links?: Record<string, string> | undefined;
2190
+ meta?: Record<string, unknown> | undefined;
2191
+ }, {
2192
+ type: string;
2193
+ id: string;
2194
+ attributes?: Record<string, unknown> | undefined;
2195
+ relationships?: Record<string, unknown> | undefined;
2196
+ links?: Record<string, string> | undefined;
2197
+ meta?: Record<string, unknown> | undefined;
2198
+ }>, "many">>;
2199
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2200
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ data: {
2203
+ type: string;
2204
+ id: string;
2205
+ attributes: {
2206
+ createdAt: string;
2207
+ updatedAt: string;
2208
+ currency: string;
2209
+ items: {
2210
+ description: string;
2211
+ unit: string;
2212
+ quantity: number;
2213
+ value?: number | undefined;
2214
+ weight?: number | undefined;
2215
+ }[];
2216
+ waybillNumber: string;
2217
+ issueDate: string;
2218
+ senderName: string;
2219
+ recipientName: string;
2220
+ organizationId: string;
2221
+ notes?: string | null | undefined;
2222
+ totalValue?: number | null | undefined;
2223
+ senderAddress?: string | null | undefined;
2224
+ senderPhone?: string | null | undefined;
2225
+ senderEmail?: string | null | undefined;
2226
+ recipientAddress?: string | null | undefined;
2227
+ recipientPhone?: string | null | undefined;
2228
+ recipientEmail?: string | null | undefined;
2229
+ totalWeight?: number | null | undefined;
2230
+ pdfUrl?: string | null | undefined;
2231
+ };
2232
+ relationships?: Record<string, unknown> | undefined;
2233
+ links?: Record<string, string> | undefined;
2234
+ meta?: Record<string, unknown> | undefined;
2235
+ };
2236
+ links?: Record<string, string> | undefined;
2237
+ meta?: Record<string, unknown> | undefined;
2238
+ included?: {
2239
+ type: string;
2240
+ id: string;
2241
+ attributes?: Record<string, unknown> | undefined;
2242
+ relationships?: Record<string, unknown> | undefined;
2243
+ links?: Record<string, string> | undefined;
2244
+ meta?: Record<string, unknown> | undefined;
2245
+ }[] | undefined;
2246
+ }, {
2247
+ data: {
2248
+ type: string;
2249
+ id: string;
2250
+ attributes: {
2251
+ createdAt: string;
2252
+ updatedAt: string;
2253
+ items: {
2254
+ description: string;
2255
+ unit: string;
2256
+ quantity: number;
2257
+ value?: number | undefined;
2258
+ weight?: number | undefined;
2259
+ }[];
2260
+ waybillNumber: string;
2261
+ issueDate: string;
2262
+ senderName: string;
2263
+ recipientName: string;
2264
+ organizationId: string;
2265
+ currency?: string | undefined;
2266
+ notes?: string | null | undefined;
2267
+ totalValue?: number | null | undefined;
2268
+ senderAddress?: string | null | undefined;
2269
+ senderPhone?: string | null | undefined;
2270
+ senderEmail?: string | null | undefined;
2271
+ recipientAddress?: string | null | undefined;
2272
+ recipientPhone?: string | null | undefined;
2273
+ recipientEmail?: string | null | undefined;
2274
+ totalWeight?: number | null | undefined;
2275
+ pdfUrl?: string | null | undefined;
2276
+ };
2277
+ relationships?: Record<string, unknown> | undefined;
2278
+ links?: Record<string, string> | undefined;
2279
+ meta?: Record<string, unknown> | undefined;
2280
+ };
2281
+ links?: Record<string, string> | undefined;
2282
+ meta?: Record<string, unknown> | undefined;
2283
+ included?: {
2284
+ type: string;
2285
+ id: string;
2286
+ attributes?: Record<string, unknown> | undefined;
2287
+ relationships?: Record<string, unknown> | undefined;
2288
+ links?: Record<string, string> | undefined;
2289
+ meta?: Record<string, unknown> | undefined;
2290
+ }[] | undefined;
2291
+ }>;
2292
+ 400: z.ZodObject<{
2293
+ errors: z.ZodArray<z.ZodObject<{
2294
+ id: z.ZodOptional<z.ZodString>;
2295
+ links: z.ZodOptional<z.ZodObject<{
2296
+ about: z.ZodOptional<z.ZodString>;
2297
+ }, "strip", z.ZodTypeAny, {
2298
+ about?: string | undefined;
2299
+ }, {
2300
+ about?: string | undefined;
2301
+ }>>;
2302
+ status: z.ZodOptional<z.ZodString>;
2303
+ code: z.ZodOptional<z.ZodString>;
2304
+ title: z.ZodOptional<z.ZodString>;
2305
+ detail: z.ZodOptional<z.ZodString>;
2306
+ source: z.ZodOptional<z.ZodObject<{
2307
+ pointer: z.ZodOptional<z.ZodString>;
2308
+ parameter: z.ZodOptional<z.ZodString>;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ pointer?: string | undefined;
2311
+ parameter?: string | undefined;
2312
+ }, {
2313
+ pointer?: string | undefined;
2314
+ parameter?: string | undefined;
2315
+ }>>;
2316
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ status?: string | undefined;
2319
+ code?: string | undefined;
2320
+ id?: string | undefined;
2321
+ links?: {
2322
+ about?: string | undefined;
2323
+ } | undefined;
2324
+ meta?: Record<string, unknown> | undefined;
2325
+ title?: string | undefined;
2326
+ detail?: string | undefined;
2327
+ source?: {
2328
+ pointer?: string | undefined;
2329
+ parameter?: string | undefined;
2330
+ } | undefined;
2331
+ }, {
2332
+ status?: string | undefined;
2333
+ code?: string | undefined;
2334
+ id?: string | undefined;
2335
+ links?: {
2336
+ about?: string | undefined;
2337
+ } | undefined;
2338
+ meta?: Record<string, unknown> | undefined;
2339
+ title?: string | undefined;
2340
+ detail?: string | undefined;
2341
+ source?: {
2342
+ pointer?: string | undefined;
2343
+ parameter?: string | undefined;
2344
+ } | undefined;
2345
+ }>, "many">;
2346
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ errors: {
2349
+ status?: string | undefined;
2350
+ code?: string | undefined;
2351
+ id?: string | undefined;
2352
+ links?: {
2353
+ about?: string | undefined;
2354
+ } | undefined;
2355
+ meta?: Record<string, unknown> | undefined;
2356
+ title?: string | undefined;
2357
+ detail?: string | undefined;
2358
+ source?: {
2359
+ pointer?: string | undefined;
2360
+ parameter?: string | undefined;
2361
+ } | undefined;
2362
+ }[];
2363
+ meta?: Record<string, unknown> | undefined;
2364
+ }, {
2365
+ errors: {
2366
+ status?: string | undefined;
2367
+ code?: string | undefined;
2368
+ id?: string | undefined;
2369
+ links?: {
2370
+ about?: string | undefined;
2371
+ } | undefined;
2372
+ meta?: Record<string, unknown> | undefined;
2373
+ title?: string | undefined;
2374
+ detail?: string | undefined;
2375
+ source?: {
2376
+ pointer?: string | undefined;
2377
+ parameter?: string | undefined;
2378
+ } | undefined;
2379
+ }[];
2380
+ meta?: Record<string, unknown> | undefined;
2381
+ }>;
2382
+ 404: z.ZodObject<{
2383
+ errors: z.ZodArray<z.ZodObject<{
2384
+ id: z.ZodOptional<z.ZodString>;
2385
+ links: z.ZodOptional<z.ZodObject<{
2386
+ about: z.ZodOptional<z.ZodString>;
2387
+ }, "strip", z.ZodTypeAny, {
2388
+ about?: string | undefined;
2389
+ }, {
2390
+ about?: string | undefined;
2391
+ }>>;
2392
+ status: z.ZodOptional<z.ZodString>;
2393
+ code: z.ZodOptional<z.ZodString>;
2394
+ title: z.ZodOptional<z.ZodString>;
2395
+ detail: z.ZodOptional<z.ZodString>;
2396
+ source: z.ZodOptional<z.ZodObject<{
2397
+ pointer: z.ZodOptional<z.ZodString>;
2398
+ parameter: z.ZodOptional<z.ZodString>;
2399
+ }, "strip", z.ZodTypeAny, {
2400
+ pointer?: string | undefined;
2401
+ parameter?: string | undefined;
2402
+ }, {
2403
+ pointer?: string | undefined;
2404
+ parameter?: string | undefined;
2405
+ }>>;
2406
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ status?: string | undefined;
2409
+ code?: string | undefined;
2410
+ id?: string | undefined;
2411
+ links?: {
2412
+ about?: string | undefined;
2413
+ } | undefined;
2414
+ meta?: Record<string, unknown> | undefined;
2415
+ title?: string | undefined;
2416
+ detail?: string | undefined;
2417
+ source?: {
2418
+ pointer?: string | undefined;
2419
+ parameter?: string | undefined;
2420
+ } | undefined;
2421
+ }, {
2422
+ status?: string | undefined;
2423
+ code?: string | undefined;
2424
+ id?: string | undefined;
2425
+ links?: {
2426
+ about?: string | undefined;
2427
+ } | undefined;
2428
+ meta?: Record<string, unknown> | undefined;
2429
+ title?: string | undefined;
2430
+ detail?: string | undefined;
2431
+ source?: {
2432
+ pointer?: string | undefined;
2433
+ parameter?: string | undefined;
2434
+ } | undefined;
2435
+ }>, "many">;
2436
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2437
+ }, "strip", z.ZodTypeAny, {
2438
+ errors: {
2439
+ status?: string | undefined;
2440
+ code?: string | undefined;
2441
+ id?: string | undefined;
2442
+ links?: {
2443
+ about?: string | undefined;
2444
+ } | undefined;
2445
+ meta?: Record<string, unknown> | undefined;
2446
+ title?: string | undefined;
2447
+ detail?: string | undefined;
2448
+ source?: {
2449
+ pointer?: string | undefined;
2450
+ parameter?: string | undefined;
2451
+ } | undefined;
2452
+ }[];
2453
+ meta?: Record<string, unknown> | undefined;
2454
+ }, {
2455
+ errors: {
2456
+ status?: string | undefined;
2457
+ code?: string | undefined;
2458
+ id?: string | undefined;
2459
+ links?: {
2460
+ about?: string | undefined;
2461
+ } | undefined;
2462
+ meta?: Record<string, unknown> | undefined;
2463
+ title?: string | undefined;
2464
+ detail?: string | undefined;
2465
+ source?: {
2466
+ pointer?: string | undefined;
2467
+ parameter?: string | undefined;
2468
+ } | undefined;
2469
+ }[];
2470
+ meta?: Record<string, unknown> | undefined;
2471
+ }>;
2472
+ 401: z.ZodObject<{
2473
+ errors: z.ZodArray<z.ZodObject<{
2474
+ id: z.ZodOptional<z.ZodString>;
2475
+ links: z.ZodOptional<z.ZodObject<{
2476
+ about: z.ZodOptional<z.ZodString>;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ about?: string | undefined;
2479
+ }, {
2480
+ about?: string | undefined;
2481
+ }>>;
2482
+ status: z.ZodOptional<z.ZodString>;
2483
+ code: z.ZodOptional<z.ZodString>;
2484
+ title: z.ZodOptional<z.ZodString>;
2485
+ detail: z.ZodOptional<z.ZodString>;
2486
+ source: z.ZodOptional<z.ZodObject<{
2487
+ pointer: z.ZodOptional<z.ZodString>;
2488
+ parameter: z.ZodOptional<z.ZodString>;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ pointer?: string | undefined;
2491
+ parameter?: string | undefined;
2492
+ }, {
2493
+ pointer?: string | undefined;
2494
+ parameter?: string | undefined;
2495
+ }>>;
2496
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2497
+ }, "strip", z.ZodTypeAny, {
2498
+ status?: string | undefined;
2499
+ code?: string | undefined;
2500
+ id?: string | undefined;
2501
+ links?: {
2502
+ about?: string | undefined;
2503
+ } | undefined;
2504
+ meta?: Record<string, unknown> | undefined;
2505
+ title?: string | undefined;
2506
+ detail?: string | undefined;
2507
+ source?: {
2508
+ pointer?: string | undefined;
2509
+ parameter?: string | undefined;
2510
+ } | undefined;
2511
+ }, {
2512
+ status?: string | undefined;
2513
+ code?: string | undefined;
2514
+ id?: string | undefined;
2515
+ links?: {
2516
+ about?: string | undefined;
2517
+ } | undefined;
2518
+ meta?: Record<string, unknown> | undefined;
2519
+ title?: string | undefined;
2520
+ detail?: string | undefined;
2521
+ source?: {
2522
+ pointer?: string | undefined;
2523
+ parameter?: string | undefined;
2524
+ } | undefined;
2525
+ }>, "many">;
2526
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2527
+ }, "strip", z.ZodTypeAny, {
2528
+ errors: {
2529
+ status?: string | undefined;
2530
+ code?: string | undefined;
2531
+ id?: string | undefined;
2532
+ links?: {
2533
+ about?: string | undefined;
2534
+ } | undefined;
2535
+ meta?: Record<string, unknown> | undefined;
2536
+ title?: string | undefined;
2537
+ detail?: string | undefined;
2538
+ source?: {
2539
+ pointer?: string | undefined;
2540
+ parameter?: string | undefined;
2541
+ } | undefined;
2542
+ }[];
2543
+ meta?: Record<string, unknown> | undefined;
2544
+ }, {
2545
+ errors: {
2546
+ status?: string | undefined;
2547
+ code?: string | undefined;
2548
+ id?: string | undefined;
2549
+ links?: {
2550
+ about?: string | undefined;
2551
+ } | undefined;
2552
+ meta?: Record<string, unknown> | undefined;
2553
+ title?: string | undefined;
2554
+ detail?: string | undefined;
2555
+ source?: {
2556
+ pointer?: string | undefined;
2557
+ parameter?: string | undefined;
2558
+ } | undefined;
2559
+ }[];
2560
+ meta?: Record<string, unknown> | undefined;
2561
+ }>;
2562
+ 422: z.ZodObject<{
2563
+ errors: z.ZodArray<z.ZodObject<{
2564
+ id: z.ZodOptional<z.ZodString>;
2565
+ links: z.ZodOptional<z.ZodObject<{
2566
+ about: z.ZodOptional<z.ZodString>;
2567
+ }, "strip", z.ZodTypeAny, {
2568
+ about?: string | undefined;
2569
+ }, {
2570
+ about?: string | undefined;
2571
+ }>>;
2572
+ status: z.ZodOptional<z.ZodString>;
2573
+ code: z.ZodOptional<z.ZodString>;
2574
+ title: z.ZodOptional<z.ZodString>;
2575
+ detail: z.ZodOptional<z.ZodString>;
2576
+ source: z.ZodOptional<z.ZodObject<{
2577
+ pointer: z.ZodOptional<z.ZodString>;
2578
+ parameter: z.ZodOptional<z.ZodString>;
2579
+ }, "strip", z.ZodTypeAny, {
2580
+ pointer?: string | undefined;
2581
+ parameter?: string | undefined;
2582
+ }, {
2583
+ pointer?: string | undefined;
2584
+ parameter?: string | undefined;
2585
+ }>>;
2586
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2587
+ }, "strip", z.ZodTypeAny, {
2588
+ status?: string | undefined;
2589
+ code?: string | undefined;
2590
+ id?: string | undefined;
2591
+ links?: {
2592
+ about?: string | undefined;
2593
+ } | undefined;
2594
+ meta?: Record<string, unknown> | undefined;
2595
+ title?: string | undefined;
2596
+ detail?: string | undefined;
2597
+ source?: {
2598
+ pointer?: string | undefined;
2599
+ parameter?: string | undefined;
2600
+ } | undefined;
2601
+ }, {
2602
+ status?: string | undefined;
2603
+ code?: string | undefined;
2604
+ id?: string | undefined;
2605
+ links?: {
2606
+ about?: string | undefined;
2607
+ } | undefined;
2608
+ meta?: Record<string, unknown> | undefined;
2609
+ title?: string | undefined;
2610
+ detail?: string | undefined;
2611
+ source?: {
2612
+ pointer?: string | undefined;
2613
+ parameter?: string | undefined;
2614
+ } | undefined;
2615
+ }>, "many">;
2616
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ errors: {
2619
+ status?: string | undefined;
2620
+ code?: string | undefined;
2621
+ id?: string | undefined;
2622
+ links?: {
2623
+ about?: string | undefined;
2624
+ } | undefined;
2625
+ meta?: Record<string, unknown> | undefined;
2626
+ title?: string | undefined;
2627
+ detail?: string | undefined;
2628
+ source?: {
2629
+ pointer?: string | undefined;
2630
+ parameter?: string | undefined;
2631
+ } | undefined;
2632
+ }[];
2633
+ meta?: Record<string, unknown> | undefined;
2634
+ }, {
2635
+ errors: {
2636
+ status?: string | undefined;
2637
+ code?: string | undefined;
2638
+ id?: string | undefined;
2639
+ links?: {
2640
+ about?: string | undefined;
2641
+ } | undefined;
2642
+ meta?: Record<string, unknown> | undefined;
2643
+ title?: string | undefined;
2644
+ detail?: string | undefined;
2645
+ source?: {
2646
+ pointer?: string | undefined;
2647
+ parameter?: string | undefined;
2648
+ } | undefined;
2649
+ }[];
2650
+ meta?: Record<string, unknown> | undefined;
2651
+ }>;
2652
+ };
2653
+ };
2654
+ generateWaybillPdf: {
2655
+ pathParams: z.ZodObject<{
2656
+ organizationId: z.ZodString;
2657
+ id: z.ZodString;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ id: string;
2660
+ organizationId: string;
2661
+ }, {
2662
+ id: string;
2663
+ organizationId: string;
2664
+ }>;
2665
+ summary: "Generate waybill PDF";
2666
+ description: "Generate and save PDF for a waybill with organization logo";
2667
+ method: "POST";
2668
+ body: z.ZodVoid;
2669
+ path: "/organizations/:organizationId/waybills/:id/generate-pdf";
2670
+ responses: {
2671
+ 200: z.ZodObject<{
2672
+ data: z.ZodObject<{
2673
+ type: z.ZodLiteral<string>;
2674
+ id: z.ZodString;
2675
+ attributes: z.ZodObject<{
2676
+ waybillNumber: z.ZodString;
2677
+ issueDate: z.ZodString;
2678
+ senderName: z.ZodString;
2679
+ senderAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2680
+ senderPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2681
+ senderEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2682
+ recipientName: z.ZodString;
2683
+ recipientAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2684
+ recipientPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2685
+ recipientEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2686
+ items: z.ZodArray<z.ZodObject<{
2687
+ description: z.ZodString;
2688
+ quantity: z.ZodNumber;
2689
+ unit: z.ZodString;
2690
+ weight: z.ZodOptional<z.ZodNumber>;
2691
+ value: z.ZodOptional<z.ZodNumber>;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ description: string;
2694
+ unit: string;
2695
+ quantity: number;
2696
+ value?: number | undefined;
2697
+ weight?: number | undefined;
2698
+ }, {
2699
+ description: string;
2700
+ unit: string;
2701
+ quantity: number;
2702
+ value?: number | undefined;
2703
+ weight?: number | undefined;
2704
+ }>, "many">;
2705
+ totalWeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2706
+ totalValue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2707
+ currency: z.ZodDefault<z.ZodString>;
2708
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2709
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2710
+ organizationId: z.ZodString;
2711
+ } & {
2712
+ createdAt: z.ZodString;
2713
+ updatedAt: z.ZodString;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ createdAt: string;
2716
+ updatedAt: string;
2717
+ currency: string;
2718
+ items: {
2719
+ description: string;
2720
+ unit: string;
2721
+ quantity: number;
2722
+ value?: number | undefined;
2723
+ weight?: number | undefined;
2724
+ }[];
2725
+ waybillNumber: string;
2726
+ issueDate: string;
2727
+ senderName: string;
2728
+ recipientName: string;
2729
+ organizationId: string;
2730
+ notes?: string | null | undefined;
2731
+ totalValue?: number | null | undefined;
2732
+ senderAddress?: string | null | undefined;
2733
+ senderPhone?: string | null | undefined;
2734
+ senderEmail?: string | null | undefined;
2735
+ recipientAddress?: string | null | undefined;
2736
+ recipientPhone?: string | null | undefined;
2737
+ recipientEmail?: string | null | undefined;
2738
+ totalWeight?: number | null | undefined;
2739
+ pdfUrl?: string | null | undefined;
2740
+ }, {
2741
+ createdAt: string;
2742
+ updatedAt: string;
2743
+ items: {
2744
+ description: string;
2745
+ unit: string;
2746
+ quantity: number;
2747
+ value?: number | undefined;
2748
+ weight?: number | undefined;
2749
+ }[];
2750
+ waybillNumber: string;
2751
+ issueDate: string;
2752
+ senderName: string;
2753
+ recipientName: string;
2754
+ organizationId: string;
2755
+ currency?: string | undefined;
2756
+ notes?: string | null | undefined;
2757
+ totalValue?: number | null | undefined;
2758
+ senderAddress?: string | null | undefined;
2759
+ senderPhone?: string | null | undefined;
2760
+ senderEmail?: string | null | undefined;
2761
+ recipientAddress?: string | null | undefined;
2762
+ recipientPhone?: string | null | undefined;
2763
+ recipientEmail?: string | null | undefined;
2764
+ totalWeight?: number | null | undefined;
2765
+ pdfUrl?: string | null | undefined;
2766
+ }>;
2767
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2768
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2769
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2770
+ }, "strip", z.ZodTypeAny, {
2771
+ type: string;
2772
+ id: string;
2773
+ attributes: {
2774
+ createdAt: string;
2775
+ updatedAt: string;
2776
+ currency: string;
2777
+ items: {
2778
+ description: string;
2779
+ unit: string;
2780
+ quantity: number;
2781
+ value?: number | undefined;
2782
+ weight?: number | undefined;
2783
+ }[];
2784
+ waybillNumber: string;
2785
+ issueDate: string;
2786
+ senderName: string;
2787
+ recipientName: string;
2788
+ organizationId: string;
2789
+ notes?: string | null | undefined;
2790
+ totalValue?: number | null | undefined;
2791
+ senderAddress?: string | null | undefined;
2792
+ senderPhone?: string | null | undefined;
2793
+ senderEmail?: string | null | undefined;
2794
+ recipientAddress?: string | null | undefined;
2795
+ recipientPhone?: string | null | undefined;
2796
+ recipientEmail?: string | null | undefined;
2797
+ totalWeight?: number | null | undefined;
2798
+ pdfUrl?: string | null | undefined;
2799
+ };
2800
+ relationships?: Record<string, unknown> | undefined;
2801
+ links?: Record<string, string> | undefined;
2802
+ meta?: Record<string, unknown> | undefined;
2803
+ }, {
2804
+ type: string;
2805
+ id: string;
2806
+ attributes: {
2807
+ createdAt: string;
2808
+ updatedAt: string;
2809
+ items: {
2810
+ description: string;
2811
+ unit: string;
2812
+ quantity: number;
2813
+ value?: number | undefined;
2814
+ weight?: number | undefined;
2815
+ }[];
2816
+ waybillNumber: string;
2817
+ issueDate: string;
2818
+ senderName: string;
2819
+ recipientName: string;
2820
+ organizationId: string;
2821
+ currency?: string | undefined;
2822
+ notes?: string | null | undefined;
2823
+ totalValue?: number | null | undefined;
2824
+ senderAddress?: string | null | undefined;
2825
+ senderPhone?: string | null | undefined;
2826
+ senderEmail?: string | null | undefined;
2827
+ recipientAddress?: string | null | undefined;
2828
+ recipientPhone?: string | null | undefined;
2829
+ recipientEmail?: string | null | undefined;
2830
+ totalWeight?: number | null | undefined;
2831
+ pdfUrl?: string | null | undefined;
2832
+ };
2833
+ relationships?: Record<string, unknown> | undefined;
2834
+ links?: Record<string, string> | undefined;
2835
+ meta?: Record<string, unknown> | undefined;
2836
+ }>;
2837
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2838
+ type: z.ZodString;
2839
+ id: z.ZodString;
2840
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2841
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2842
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2843
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ type: string;
2846
+ id: string;
2847
+ attributes?: Record<string, unknown> | undefined;
2848
+ relationships?: Record<string, unknown> | undefined;
2849
+ links?: Record<string, string> | undefined;
2850
+ meta?: Record<string, unknown> | undefined;
2851
+ }, {
2852
+ type: string;
2853
+ id: string;
2854
+ attributes?: Record<string, unknown> | undefined;
2855
+ relationships?: Record<string, unknown> | undefined;
2856
+ links?: Record<string, string> | undefined;
2857
+ meta?: Record<string, unknown> | undefined;
2858
+ }>, "many">>;
2859
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2860
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2861
+ }, "strip", z.ZodTypeAny, {
2862
+ data: {
2863
+ type: string;
2864
+ id: string;
2865
+ attributes: {
2866
+ createdAt: string;
2867
+ updatedAt: string;
2868
+ currency: string;
2869
+ items: {
2870
+ description: string;
2871
+ unit: string;
2872
+ quantity: number;
2873
+ value?: number | undefined;
2874
+ weight?: number | undefined;
2875
+ }[];
2876
+ waybillNumber: string;
2877
+ issueDate: string;
2878
+ senderName: string;
2879
+ recipientName: string;
2880
+ organizationId: string;
2881
+ notes?: string | null | undefined;
2882
+ totalValue?: number | null | undefined;
2883
+ senderAddress?: string | null | undefined;
2884
+ senderPhone?: string | null | undefined;
2885
+ senderEmail?: string | null | undefined;
2886
+ recipientAddress?: string | null | undefined;
2887
+ recipientPhone?: string | null | undefined;
2888
+ recipientEmail?: string | null | undefined;
2889
+ totalWeight?: number | null | undefined;
2890
+ pdfUrl?: string | null | undefined;
2891
+ };
2892
+ relationships?: Record<string, unknown> | undefined;
2893
+ links?: Record<string, string> | undefined;
2894
+ meta?: Record<string, unknown> | undefined;
2895
+ };
2896
+ links?: Record<string, string> | undefined;
2897
+ meta?: Record<string, unknown> | undefined;
2898
+ included?: {
2899
+ type: string;
2900
+ id: string;
2901
+ attributes?: Record<string, unknown> | undefined;
2902
+ relationships?: Record<string, unknown> | undefined;
2903
+ links?: Record<string, string> | undefined;
2904
+ meta?: Record<string, unknown> | undefined;
2905
+ }[] | undefined;
2906
+ }, {
2907
+ data: {
2908
+ type: string;
2909
+ id: string;
2910
+ attributes: {
2911
+ createdAt: string;
2912
+ updatedAt: string;
2913
+ items: {
2914
+ description: string;
2915
+ unit: string;
2916
+ quantity: number;
2917
+ value?: number | undefined;
2918
+ weight?: number | undefined;
2919
+ }[];
2920
+ waybillNumber: string;
2921
+ issueDate: string;
2922
+ senderName: string;
2923
+ recipientName: string;
2924
+ organizationId: string;
2925
+ currency?: string | undefined;
2926
+ notes?: string | null | undefined;
2927
+ totalValue?: number | null | undefined;
2928
+ senderAddress?: string | null | undefined;
2929
+ senderPhone?: string | null | undefined;
2930
+ senderEmail?: string | null | undefined;
2931
+ recipientAddress?: string | null | undefined;
2932
+ recipientPhone?: string | null | undefined;
2933
+ recipientEmail?: string | null | undefined;
2934
+ totalWeight?: number | null | undefined;
2935
+ pdfUrl?: string | null | undefined;
2936
+ };
2937
+ relationships?: Record<string, unknown> | undefined;
2938
+ links?: Record<string, string> | undefined;
2939
+ meta?: Record<string, unknown> | undefined;
2940
+ };
2941
+ links?: Record<string, string> | undefined;
2942
+ meta?: Record<string, unknown> | undefined;
2943
+ included?: {
2944
+ type: string;
2945
+ id: string;
2946
+ attributes?: Record<string, unknown> | undefined;
2947
+ relationships?: Record<string, unknown> | undefined;
2948
+ links?: Record<string, string> | undefined;
2949
+ meta?: Record<string, unknown> | undefined;
2950
+ }[] | undefined;
2951
+ }>;
2952
+ 404: z.ZodObject<{
2953
+ errors: z.ZodArray<z.ZodObject<{
2954
+ id: z.ZodOptional<z.ZodString>;
2955
+ links: z.ZodOptional<z.ZodObject<{
2956
+ about: z.ZodOptional<z.ZodString>;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ about?: string | undefined;
2959
+ }, {
2960
+ about?: string | undefined;
2961
+ }>>;
2962
+ status: z.ZodOptional<z.ZodString>;
2963
+ code: z.ZodOptional<z.ZodString>;
2964
+ title: z.ZodOptional<z.ZodString>;
2965
+ detail: z.ZodOptional<z.ZodString>;
2966
+ source: z.ZodOptional<z.ZodObject<{
2967
+ pointer: z.ZodOptional<z.ZodString>;
2968
+ parameter: z.ZodOptional<z.ZodString>;
2969
+ }, "strip", z.ZodTypeAny, {
2970
+ pointer?: string | undefined;
2971
+ parameter?: string | undefined;
2972
+ }, {
2973
+ pointer?: string | undefined;
2974
+ parameter?: string | undefined;
2975
+ }>>;
2976
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ status?: string | undefined;
2979
+ code?: string | undefined;
2980
+ id?: string | undefined;
2981
+ links?: {
2982
+ about?: string | undefined;
2983
+ } | undefined;
2984
+ meta?: Record<string, unknown> | undefined;
2985
+ title?: string | undefined;
2986
+ detail?: string | undefined;
2987
+ source?: {
2988
+ pointer?: string | undefined;
2989
+ parameter?: string | undefined;
2990
+ } | undefined;
2991
+ }, {
2992
+ status?: string | undefined;
2993
+ code?: string | undefined;
2994
+ id?: string | undefined;
2995
+ links?: {
2996
+ about?: string | undefined;
2997
+ } | undefined;
2998
+ meta?: Record<string, unknown> | undefined;
2999
+ title?: string | undefined;
3000
+ detail?: string | undefined;
3001
+ source?: {
3002
+ pointer?: string | undefined;
3003
+ parameter?: string | undefined;
3004
+ } | undefined;
3005
+ }>, "many">;
3006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ errors: {
3009
+ status?: string | undefined;
3010
+ code?: string | undefined;
3011
+ id?: string | undefined;
3012
+ links?: {
3013
+ about?: string | undefined;
3014
+ } | undefined;
3015
+ meta?: Record<string, unknown> | undefined;
3016
+ title?: string | undefined;
3017
+ detail?: string | undefined;
3018
+ source?: {
3019
+ pointer?: string | undefined;
3020
+ parameter?: string | undefined;
3021
+ } | undefined;
3022
+ }[];
3023
+ meta?: Record<string, unknown> | undefined;
3024
+ }, {
3025
+ errors: {
3026
+ status?: string | undefined;
3027
+ code?: string | undefined;
3028
+ id?: string | undefined;
3029
+ links?: {
3030
+ about?: string | undefined;
3031
+ } | undefined;
3032
+ meta?: Record<string, unknown> | undefined;
3033
+ title?: string | undefined;
3034
+ detail?: string | undefined;
3035
+ source?: {
3036
+ pointer?: string | undefined;
3037
+ parameter?: string | undefined;
3038
+ } | undefined;
3039
+ }[];
3040
+ meta?: Record<string, unknown> | undefined;
3041
+ }>;
3042
+ 401: z.ZodObject<{
3043
+ errors: z.ZodArray<z.ZodObject<{
3044
+ id: z.ZodOptional<z.ZodString>;
3045
+ links: z.ZodOptional<z.ZodObject<{
3046
+ about: z.ZodOptional<z.ZodString>;
3047
+ }, "strip", z.ZodTypeAny, {
3048
+ about?: string | undefined;
3049
+ }, {
3050
+ about?: string | undefined;
3051
+ }>>;
3052
+ status: z.ZodOptional<z.ZodString>;
3053
+ code: z.ZodOptional<z.ZodString>;
3054
+ title: z.ZodOptional<z.ZodString>;
3055
+ detail: z.ZodOptional<z.ZodString>;
3056
+ source: z.ZodOptional<z.ZodObject<{
3057
+ pointer: z.ZodOptional<z.ZodString>;
3058
+ parameter: z.ZodOptional<z.ZodString>;
3059
+ }, "strip", z.ZodTypeAny, {
3060
+ pointer?: string | undefined;
3061
+ parameter?: string | undefined;
3062
+ }, {
3063
+ pointer?: string | undefined;
3064
+ parameter?: string | undefined;
3065
+ }>>;
3066
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ status?: string | undefined;
3069
+ code?: string | undefined;
3070
+ id?: string | undefined;
3071
+ links?: {
3072
+ about?: string | undefined;
3073
+ } | undefined;
3074
+ meta?: Record<string, unknown> | undefined;
3075
+ title?: string | undefined;
3076
+ detail?: string | undefined;
3077
+ source?: {
3078
+ pointer?: string | undefined;
3079
+ parameter?: string | undefined;
3080
+ } | undefined;
3081
+ }, {
3082
+ status?: string | undefined;
3083
+ code?: string | undefined;
3084
+ id?: string | undefined;
3085
+ links?: {
3086
+ about?: string | undefined;
3087
+ } | undefined;
3088
+ meta?: Record<string, unknown> | undefined;
3089
+ title?: string | undefined;
3090
+ detail?: string | undefined;
3091
+ source?: {
3092
+ pointer?: string | undefined;
3093
+ parameter?: string | undefined;
3094
+ } | undefined;
3095
+ }>, "many">;
3096
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3097
+ }, "strip", z.ZodTypeAny, {
3098
+ errors: {
3099
+ status?: string | undefined;
3100
+ code?: string | undefined;
3101
+ id?: string | undefined;
3102
+ links?: {
3103
+ about?: string | undefined;
3104
+ } | undefined;
3105
+ meta?: Record<string, unknown> | undefined;
3106
+ title?: string | undefined;
3107
+ detail?: string | undefined;
3108
+ source?: {
3109
+ pointer?: string | undefined;
3110
+ parameter?: string | undefined;
3111
+ } | undefined;
3112
+ }[];
3113
+ meta?: Record<string, unknown> | undefined;
3114
+ }, {
3115
+ errors: {
3116
+ status?: string | undefined;
3117
+ code?: string | undefined;
3118
+ id?: string | undefined;
3119
+ links?: {
3120
+ about?: string | undefined;
3121
+ } | undefined;
3122
+ meta?: Record<string, unknown> | undefined;
3123
+ title?: string | undefined;
3124
+ detail?: string | undefined;
3125
+ source?: {
3126
+ pointer?: string | undefined;
3127
+ parameter?: string | undefined;
3128
+ } | undefined;
3129
+ }[];
3130
+ meta?: Record<string, unknown> | undefined;
3131
+ }>;
3132
+ 500: z.ZodObject<{
3133
+ errors: z.ZodArray<z.ZodObject<{
3134
+ id: z.ZodOptional<z.ZodString>;
3135
+ links: z.ZodOptional<z.ZodObject<{
3136
+ about: z.ZodOptional<z.ZodString>;
3137
+ }, "strip", z.ZodTypeAny, {
3138
+ about?: string | undefined;
3139
+ }, {
3140
+ about?: string | undefined;
3141
+ }>>;
3142
+ status: z.ZodOptional<z.ZodString>;
3143
+ code: z.ZodOptional<z.ZodString>;
3144
+ title: z.ZodOptional<z.ZodString>;
3145
+ detail: z.ZodOptional<z.ZodString>;
3146
+ source: z.ZodOptional<z.ZodObject<{
3147
+ pointer: z.ZodOptional<z.ZodString>;
3148
+ parameter: z.ZodOptional<z.ZodString>;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ pointer?: string | undefined;
3151
+ parameter?: string | undefined;
3152
+ }, {
3153
+ pointer?: string | undefined;
3154
+ parameter?: string | undefined;
3155
+ }>>;
3156
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3157
+ }, "strip", z.ZodTypeAny, {
3158
+ status?: string | undefined;
3159
+ code?: string | undefined;
3160
+ id?: string | undefined;
3161
+ links?: {
3162
+ about?: string | undefined;
3163
+ } | undefined;
3164
+ meta?: Record<string, unknown> | undefined;
3165
+ title?: string | undefined;
3166
+ detail?: string | undefined;
3167
+ source?: {
3168
+ pointer?: string | undefined;
3169
+ parameter?: string | undefined;
3170
+ } | undefined;
3171
+ }, {
3172
+ status?: string | undefined;
3173
+ code?: string | undefined;
3174
+ id?: string | undefined;
3175
+ links?: {
3176
+ about?: string | undefined;
3177
+ } | undefined;
3178
+ meta?: Record<string, unknown> | undefined;
3179
+ title?: string | undefined;
3180
+ detail?: string | undefined;
3181
+ source?: {
3182
+ pointer?: string | undefined;
3183
+ parameter?: string | undefined;
3184
+ } | undefined;
3185
+ }>, "many">;
3186
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3187
+ }, "strip", z.ZodTypeAny, {
3188
+ errors: {
3189
+ status?: string | undefined;
3190
+ code?: string | undefined;
3191
+ id?: string | undefined;
3192
+ links?: {
3193
+ about?: string | undefined;
3194
+ } | undefined;
3195
+ meta?: Record<string, unknown> | undefined;
3196
+ title?: string | undefined;
3197
+ detail?: string | undefined;
3198
+ source?: {
3199
+ pointer?: string | undefined;
3200
+ parameter?: string | undefined;
3201
+ } | undefined;
3202
+ }[];
3203
+ meta?: Record<string, unknown> | undefined;
3204
+ }, {
3205
+ errors: {
3206
+ status?: string | undefined;
3207
+ code?: string | undefined;
3208
+ id?: string | undefined;
3209
+ links?: {
3210
+ about?: string | undefined;
3211
+ } | undefined;
3212
+ meta?: Record<string, unknown> | undefined;
3213
+ title?: string | undefined;
3214
+ detail?: string | undefined;
3215
+ source?: {
3216
+ pointer?: string | undefined;
3217
+ parameter?: string | undefined;
3218
+ } | undefined;
3219
+ }[];
3220
+ meta?: Record<string, unknown> | undefined;
3221
+ }>;
3222
+ };
3223
+ };
3224
+ };
3225
+ //# sourceMappingURL=waybills.routes.d.ts.map