@porulle/plugin-marketplace 0.64.0 → 0.65.1

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.
Files changed (57) hide show
  1. package/README.md +11 -59
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -11
  4. package/dist/routes/b2b.d.ts +1 -3
  5. package/dist/routes/b2b.d.ts.map +1 -1
  6. package/dist/routes/b2b.js +2 -70
  7. package/dist/routes/sub-orders.js +3 -3
  8. package/dist/routes/vendor-portal.js +6 -6
  9. package/dist/schema.d.ts +0 -194
  10. package/dist/schema.d.ts.map +1 -1
  11. package/dist/schema.js +0 -14
  12. package/dist/schemas/b2b.d.ts +0 -986
  13. package/dist/schemas/b2b.d.ts.map +1 -1
  14. package/dist/schemas/b2b.js +1 -184
  15. package/dist/schemas/commission.d.ts +0 -495
  16. package/dist/schemas/commission.d.ts.map +1 -1
  17. package/dist/schemas/commission.js +1 -78
  18. package/dist/schemas/disputes-returns-reviews.d.ts +0 -1354
  19. package/dist/schemas/disputes-returns-reviews.d.ts.map +1 -1
  20. package/dist/schemas/disputes-returns-reviews.js +1 -208
  21. package/dist/schemas/sub-orders.d.ts +0 -290
  22. package/dist/schemas/sub-orders.d.ts.map +1 -1
  23. package/dist/schemas/sub-orders.js +1 -59
  24. package/dist/schemas/vendor-portal.d.ts +0 -1755
  25. package/dist/schemas/vendor-portal.d.ts.map +1 -1
  26. package/dist/schemas/vendor-portal.js +1 -247
  27. package/dist/schemas/vendors.d.ts +0 -1321
  28. package/dist/schemas/vendors.d.ts.map +1 -1
  29. package/dist/schemas/vendors.js +1 -205
  30. package/dist/services/sub-order.d.ts +1 -31
  31. package/dist/services/sub-order.d.ts.map +1 -1
  32. package/dist/services/sub-order.js +14 -22
  33. package/dist/types.d.ts +0 -17
  34. package/dist/types.d.ts.map +1 -1
  35. package/dist/types.js +0 -4
  36. package/package.json +13 -11
  37. package/src/index.ts +3 -11
  38. package/src/routes/b2b.ts +1 -76
  39. package/src/routes/sub-orders.ts +3 -3
  40. package/src/routes/vendor-portal.ts +6 -6
  41. package/src/schema.ts +0 -16
  42. package/src/schemas/b2b.ts +1 -208
  43. package/src/schemas/commission.ts +1 -86
  44. package/src/schemas/disputes-returns-reviews.ts +1 -225
  45. package/src/schemas/sub-orders.ts +1 -65
  46. package/src/schemas/vendor-portal.ts +1 -269
  47. package/src/schemas/vendors.ts +1 -222
  48. package/src/services/sub-order.ts +16 -18
  49. package/src/types.ts +0 -28
  50. package/dist/schemas/payouts.d.ts +0 -375
  51. package/dist/schemas/payouts.d.ts.map +0 -1
  52. package/dist/schemas/payouts.js +0 -78
  53. package/dist/services/contract-price.d.ts +0 -64
  54. package/dist/services/contract-price.d.ts.map +0 -1
  55. package/dist/services/contract-price.js +0 -57
  56. package/src/schemas/payouts.ts +0 -90
  57. package/src/services/contract-price.ts +0 -80
@@ -5,213 +5,11 @@ export declare const OpenDisputeBodySchema: z.ZodObject<{
5
5
  reason: z.ZodString;
6
6
  description: z.ZodOptional<z.ZodString>;
7
7
  }, z.core.$strip>;
8
- export declare const openDisputeRoute: {
9
- method: "post";
10
- path: "/api/marketplace/disputes";
11
- tags: string[];
12
- summary: string;
13
- request: {
14
- body: {
15
- content: {
16
- "application/json": {
17
- schema: z.ZodObject<{
18
- subOrderId: z.ZodString;
19
- openedBy: z.ZodString;
20
- reason: z.ZodString;
21
- description: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>;
23
- };
24
- };
25
- required: true;
26
- };
27
- };
28
- responses: {
29
- 401: {
30
- readonly content: {
31
- readonly "application/json": {
32
- readonly schema: z.ZodObject<{
33
- error: z.ZodObject<{
34
- code: z.ZodString;
35
- message: z.ZodString;
36
- }, z.core.$strip>;
37
- }, z.core.$strip>;
38
- };
39
- };
40
- readonly description: "Authentication required.";
41
- };
42
- 403: {
43
- readonly content: {
44
- readonly "application/json": {
45
- readonly schema: z.ZodObject<{
46
- error: z.ZodObject<{
47
- code: z.ZodString;
48
- message: z.ZodString;
49
- }, z.core.$strip>;
50
- }, z.core.$strip>;
51
- };
52
- };
53
- readonly description: "Insufficient permissions.";
54
- };
55
- 404: {
56
- readonly content: {
57
- readonly "application/json": {
58
- readonly schema: z.ZodObject<{
59
- error: z.ZodObject<{
60
- code: z.ZodString;
61
- message: z.ZodString;
62
- }, z.core.$strip>;
63
- }, z.core.$strip>;
64
- };
65
- };
66
- readonly description: "Not found.";
67
- };
68
- 422: {
69
- readonly content: {
70
- readonly "application/json": {
71
- readonly schema: z.ZodObject<{
72
- error: z.ZodObject<{
73
- code: z.ZodString;
74
- message: z.ZodString;
75
- }, z.core.$strip>;
76
- }, z.core.$strip>;
77
- };
78
- };
79
- readonly description: "Validation error.";
80
- };
81
- 500: {
82
- readonly content: {
83
- readonly "application/json": {
84
- readonly schema: z.ZodObject<{
85
- error: z.ZodObject<{
86
- code: z.ZodString;
87
- message: z.ZodString;
88
- }, z.core.$strip>;
89
- }, z.core.$strip>;
90
- };
91
- };
92
- readonly description: "Server error.";
93
- };
94
- 201: {
95
- content: {
96
- "application/json": {
97
- schema: z.ZodObject<{
98
- data: z.ZodAny;
99
- }, z.core.$strip>;
100
- };
101
- };
102
- description: string;
103
- };
104
- };
105
- } & {
106
- getRoutingPath(): "/api/marketplace/disputes";
107
- };
108
8
  export declare const RespondDisputeBodySchema: z.ZodObject<{
109
9
  party: z.ZodString;
110
10
  note: z.ZodString;
111
11
  url: z.ZodOptional<z.ZodString>;
112
12
  }, z.core.$strip>;
113
- export declare const respondDisputeRoute: {
114
- method: "post";
115
- path: "/api/marketplace/disputes/{id}/respond";
116
- tags: string[];
117
- summary: string;
118
- request: {
119
- params: z.ZodObject<{
120
- id: z.ZodString;
121
- }, z.core.$strip>;
122
- body: {
123
- content: {
124
- "application/json": {
125
- schema: z.ZodObject<{
126
- party: z.ZodString;
127
- note: z.ZodString;
128
- url: z.ZodOptional<z.ZodString>;
129
- }, z.core.$strip>;
130
- };
131
- };
132
- required: true;
133
- };
134
- };
135
- responses: {
136
- 401: {
137
- readonly content: {
138
- readonly "application/json": {
139
- readonly schema: z.ZodObject<{
140
- error: z.ZodObject<{
141
- code: z.ZodString;
142
- message: z.ZodString;
143
- }, z.core.$strip>;
144
- }, z.core.$strip>;
145
- };
146
- };
147
- readonly description: "Authentication required.";
148
- };
149
- 403: {
150
- readonly content: {
151
- readonly "application/json": {
152
- readonly schema: z.ZodObject<{
153
- error: z.ZodObject<{
154
- code: z.ZodString;
155
- message: z.ZodString;
156
- }, z.core.$strip>;
157
- }, z.core.$strip>;
158
- };
159
- };
160
- readonly description: "Insufficient permissions.";
161
- };
162
- 404: {
163
- readonly content: {
164
- readonly "application/json": {
165
- readonly schema: z.ZodObject<{
166
- error: z.ZodObject<{
167
- code: z.ZodString;
168
- message: z.ZodString;
169
- }, z.core.$strip>;
170
- }, z.core.$strip>;
171
- };
172
- };
173
- readonly description: "Not found.";
174
- };
175
- 422: {
176
- readonly content: {
177
- readonly "application/json": {
178
- readonly schema: z.ZodObject<{
179
- error: z.ZodObject<{
180
- code: z.ZodString;
181
- message: z.ZodString;
182
- }, z.core.$strip>;
183
- }, z.core.$strip>;
184
- };
185
- };
186
- readonly description: "Validation error.";
187
- };
188
- 500: {
189
- readonly content: {
190
- readonly "application/json": {
191
- readonly schema: z.ZodObject<{
192
- error: z.ZodObject<{
193
- code: z.ZodString;
194
- message: z.ZodString;
195
- }, z.core.$strip>;
196
- }, z.core.$strip>;
197
- };
198
- };
199
- readonly description: "Server error.";
200
- };
201
- 200: {
202
- content: {
203
- "application/json": {
204
- schema: z.ZodObject<{
205
- data: z.ZodAny;
206
- }, z.core.$strip>;
207
- };
208
- };
209
- description: string;
210
- };
211
- };
212
- } & {
213
- getRoutingPath(): "/api/marketplace/disputes/:id/respond";
214
- };
215
13
  export declare const ResolveDisputeBodySchema: z.ZodObject<{
216
14
  resolution: z.ZodEnum<{
217
15
  rejected: "rejected";
@@ -225,116 +23,6 @@ export declare const ResolveDisputeBodySchema: z.ZodObject<{
225
23
  notes: z.ZodOptional<z.ZodString>;
226
24
  refundAmountCents: z.ZodOptional<z.ZodNumber>;
227
25
  }, z.core.$strip>;
228
- export declare const resolveDisputeRoute: {
229
- method: "post";
230
- path: "/api/marketplace/disputes/{id}/resolve";
231
- tags: string[];
232
- summary: string;
233
- request: {
234
- params: z.ZodObject<{
235
- id: z.ZodString;
236
- }, z.core.$strip>;
237
- body: {
238
- content: {
239
- "application/json": {
240
- schema: z.ZodObject<{
241
- resolution: z.ZodEnum<{
242
- rejected: "rejected";
243
- refund_full: "refund_full";
244
- refund_partial: "refund_partial";
245
- replacement: "replacement";
246
- vendor_favor: "vendor_favor";
247
- buyer_favor: "buyer_favor";
248
- }>;
249
- resolvedBy: z.ZodString;
250
- notes: z.ZodOptional<z.ZodString>;
251
- refundAmountCents: z.ZodOptional<z.ZodNumber>;
252
- }, z.core.$strip>;
253
- };
254
- };
255
- required: true;
256
- };
257
- };
258
- responses: {
259
- 401: {
260
- readonly content: {
261
- readonly "application/json": {
262
- readonly schema: z.ZodObject<{
263
- error: z.ZodObject<{
264
- code: z.ZodString;
265
- message: z.ZodString;
266
- }, z.core.$strip>;
267
- }, z.core.$strip>;
268
- };
269
- };
270
- readonly description: "Authentication required.";
271
- };
272
- 403: {
273
- readonly content: {
274
- readonly "application/json": {
275
- readonly schema: z.ZodObject<{
276
- error: z.ZodObject<{
277
- code: z.ZodString;
278
- message: z.ZodString;
279
- }, z.core.$strip>;
280
- }, z.core.$strip>;
281
- };
282
- };
283
- readonly description: "Insufficient permissions.";
284
- };
285
- 404: {
286
- readonly content: {
287
- readonly "application/json": {
288
- readonly schema: z.ZodObject<{
289
- error: z.ZodObject<{
290
- code: z.ZodString;
291
- message: z.ZodString;
292
- }, z.core.$strip>;
293
- }, z.core.$strip>;
294
- };
295
- };
296
- readonly description: "Not found.";
297
- };
298
- 422: {
299
- readonly content: {
300
- readonly "application/json": {
301
- readonly schema: z.ZodObject<{
302
- error: z.ZodObject<{
303
- code: z.ZodString;
304
- message: z.ZodString;
305
- }, z.core.$strip>;
306
- }, z.core.$strip>;
307
- };
308
- };
309
- readonly description: "Validation error.";
310
- };
311
- 500: {
312
- readonly content: {
313
- readonly "application/json": {
314
- readonly schema: z.ZodObject<{
315
- error: z.ZodObject<{
316
- code: z.ZodString;
317
- message: z.ZodString;
318
- }, z.core.$strip>;
319
- }, z.core.$strip>;
320
- };
321
- };
322
- readonly description: "Server error.";
323
- };
324
- 200: {
325
- content: {
326
- "application/json": {
327
- schema: z.ZodObject<{
328
- data: z.ZodAny;
329
- }, z.core.$strip>;
330
- };
331
- };
332
- description: string;
333
- };
334
- };
335
- } & {
336
- getRoutingPath(): "/api/marketplace/disputes/:id/resolve";
337
- };
338
26
  export declare const RequestReturnBodySchema: z.ZodObject<{
339
27
  subOrderId: z.ZodString;
340
28
  reason: z.ZodString;
@@ -342,210 +30,9 @@ export declare const RequestReturnBodySchema: z.ZodObject<{
342
30
  description: z.ZodOptional<z.ZodString>;
343
31
  lineItems: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
344
32
  }, z.core.$strip>;
345
- export declare const requestReturnRoute: {
346
- method: "post";
347
- path: "/api/marketplace/returns";
348
- tags: string[];
349
- summary: string;
350
- request: {
351
- body: {
352
- content: {
353
- "application/json": {
354
- schema: z.ZodObject<{
355
- subOrderId: z.ZodString;
356
- reason: z.ZodString;
357
- customerId: z.ZodOptional<z.ZodString>;
358
- description: z.ZodOptional<z.ZodString>;
359
- lineItems: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
360
- }, z.core.$strip>;
361
- };
362
- };
363
- required: true;
364
- };
365
- };
366
- responses: {
367
- 401: {
368
- readonly content: {
369
- readonly "application/json": {
370
- readonly schema: z.ZodObject<{
371
- error: z.ZodObject<{
372
- code: z.ZodString;
373
- message: z.ZodString;
374
- }, z.core.$strip>;
375
- }, z.core.$strip>;
376
- };
377
- };
378
- readonly description: "Authentication required.";
379
- };
380
- 403: {
381
- readonly content: {
382
- readonly "application/json": {
383
- readonly schema: z.ZodObject<{
384
- error: z.ZodObject<{
385
- code: z.ZodString;
386
- message: z.ZodString;
387
- }, z.core.$strip>;
388
- }, z.core.$strip>;
389
- };
390
- };
391
- readonly description: "Insufficient permissions.";
392
- };
393
- 404: {
394
- readonly content: {
395
- readonly "application/json": {
396
- readonly schema: z.ZodObject<{
397
- error: z.ZodObject<{
398
- code: z.ZodString;
399
- message: z.ZodString;
400
- }, z.core.$strip>;
401
- }, z.core.$strip>;
402
- };
403
- };
404
- readonly description: "Not found.";
405
- };
406
- 422: {
407
- readonly content: {
408
- readonly "application/json": {
409
- readonly schema: z.ZodObject<{
410
- error: z.ZodObject<{
411
- code: z.ZodString;
412
- message: z.ZodString;
413
- }, z.core.$strip>;
414
- }, z.core.$strip>;
415
- };
416
- };
417
- readonly description: "Validation error.";
418
- };
419
- 500: {
420
- readonly content: {
421
- readonly "application/json": {
422
- readonly schema: z.ZodObject<{
423
- error: z.ZodObject<{
424
- code: z.ZodString;
425
- message: z.ZodString;
426
- }, z.core.$strip>;
427
- }, z.core.$strip>;
428
- };
429
- };
430
- readonly description: "Server error.";
431
- };
432
- 201: {
433
- content: {
434
- "application/json": {
435
- schema: z.ZodObject<{
436
- data: z.ZodAny;
437
- }, z.core.$strip>;
438
- };
439
- };
440
- description: string;
441
- };
442
- };
443
- } & {
444
- getRoutingPath(): "/api/marketplace/returns";
445
- };
446
33
  export declare const ShipBackReturnBodySchema: z.ZodObject<{
447
34
  trackingNumber: z.ZodString;
448
35
  }, z.core.$strip>;
449
- export declare const shipBackReturnRoute: {
450
- method: "post";
451
- path: "/api/marketplace/returns/{id}/ship-back";
452
- tags: string[];
453
- summary: string;
454
- request: {
455
- params: z.ZodObject<{
456
- id: z.ZodString;
457
- }, z.core.$strip>;
458
- body: {
459
- content: {
460
- "application/json": {
461
- schema: z.ZodObject<{
462
- trackingNumber: z.ZodString;
463
- }, z.core.$strip>;
464
- };
465
- };
466
- required: true;
467
- };
468
- };
469
- responses: {
470
- 401: {
471
- readonly content: {
472
- readonly "application/json": {
473
- readonly schema: z.ZodObject<{
474
- error: z.ZodObject<{
475
- code: z.ZodString;
476
- message: z.ZodString;
477
- }, z.core.$strip>;
478
- }, z.core.$strip>;
479
- };
480
- };
481
- readonly description: "Authentication required.";
482
- };
483
- 403: {
484
- readonly content: {
485
- readonly "application/json": {
486
- readonly schema: z.ZodObject<{
487
- error: z.ZodObject<{
488
- code: z.ZodString;
489
- message: z.ZodString;
490
- }, z.core.$strip>;
491
- }, z.core.$strip>;
492
- };
493
- };
494
- readonly description: "Insufficient permissions.";
495
- };
496
- 404: {
497
- readonly content: {
498
- readonly "application/json": {
499
- readonly schema: z.ZodObject<{
500
- error: z.ZodObject<{
501
- code: z.ZodString;
502
- message: z.ZodString;
503
- }, z.core.$strip>;
504
- }, z.core.$strip>;
505
- };
506
- };
507
- readonly description: "Not found.";
508
- };
509
- 422: {
510
- readonly content: {
511
- readonly "application/json": {
512
- readonly schema: z.ZodObject<{
513
- error: z.ZodObject<{
514
- code: z.ZodString;
515
- message: z.ZodString;
516
- }, z.core.$strip>;
517
- }, z.core.$strip>;
518
- };
519
- };
520
- readonly description: "Validation error.";
521
- };
522
- 500: {
523
- readonly content: {
524
- readonly "application/json": {
525
- readonly schema: z.ZodObject<{
526
- error: z.ZodObject<{
527
- code: z.ZodString;
528
- message: z.ZodString;
529
- }, z.core.$strip>;
530
- }, z.core.$strip>;
531
- };
532
- };
533
- readonly description: "Server error.";
534
- };
535
- 200: {
536
- content: {
537
- "application/json": {
538
- schema: z.ZodObject<{
539
- data: z.ZodAny;
540
- }, z.core.$strip>;
541
- };
542
- };
543
- description: string;
544
- };
545
- };
546
- } & {
547
- getRoutingPath(): "/api/marketplace/returns/:id/ship-back";
548
- };
549
36
  export declare const CreateReviewBodySchema: z.ZodObject<{
550
37
  rating: z.ZodNumber;
551
38
  customerId: z.ZodOptional<z.ZodString>;
@@ -553,110 +40,6 @@ export declare const CreateReviewBodySchema: z.ZodObject<{
553
40
  title: z.ZodOptional<z.ZodString>;
554
41
  body: z.ZodOptional<z.ZodString>;
555
42
  }, z.core.$strip>;
556
- export declare const createReviewRoute: {
557
- method: "post";
558
- path: "/api/marketplace/vendors/{id}/reviews";
559
- tags: string[];
560
- summary: string;
561
- request: {
562
- params: z.ZodObject<{
563
- id: z.ZodString;
564
- }, z.core.$strip>;
565
- body: {
566
- content: {
567
- "application/json": {
568
- schema: z.ZodObject<{
569
- rating: z.ZodNumber;
570
- customerId: z.ZodOptional<z.ZodString>;
571
- orderId: z.ZodOptional<z.ZodString>;
572
- title: z.ZodOptional<z.ZodString>;
573
- body: z.ZodOptional<z.ZodString>;
574
- }, z.core.$strip>;
575
- };
576
- };
577
- required: true;
578
- };
579
- };
580
- responses: {
581
- 401: {
582
- readonly content: {
583
- readonly "application/json": {
584
- readonly schema: z.ZodObject<{
585
- error: z.ZodObject<{
586
- code: z.ZodString;
587
- message: z.ZodString;
588
- }, z.core.$strip>;
589
- }, z.core.$strip>;
590
- };
591
- };
592
- readonly description: "Authentication required.";
593
- };
594
- 403: {
595
- readonly content: {
596
- readonly "application/json": {
597
- readonly schema: z.ZodObject<{
598
- error: z.ZodObject<{
599
- code: z.ZodString;
600
- message: z.ZodString;
601
- }, z.core.$strip>;
602
- }, z.core.$strip>;
603
- };
604
- };
605
- readonly description: "Insufficient permissions.";
606
- };
607
- 404: {
608
- readonly content: {
609
- readonly "application/json": {
610
- readonly schema: z.ZodObject<{
611
- error: z.ZodObject<{
612
- code: z.ZodString;
613
- message: z.ZodString;
614
- }, z.core.$strip>;
615
- }, z.core.$strip>;
616
- };
617
- };
618
- readonly description: "Not found.";
619
- };
620
- 422: {
621
- readonly content: {
622
- readonly "application/json": {
623
- readonly schema: z.ZodObject<{
624
- error: z.ZodObject<{
625
- code: z.ZodString;
626
- message: z.ZodString;
627
- }, z.core.$strip>;
628
- }, z.core.$strip>;
629
- };
630
- };
631
- readonly description: "Validation error.";
632
- };
633
- 500: {
634
- readonly content: {
635
- readonly "application/json": {
636
- readonly schema: z.ZodObject<{
637
- error: z.ZodObject<{
638
- code: z.ZodString;
639
- message: z.ZodString;
640
- }, z.core.$strip>;
641
- }, z.core.$strip>;
642
- };
643
- };
644
- readonly description: "Server error.";
645
- };
646
- 201: {
647
- content: {
648
- "application/json": {
649
- schema: z.ZodObject<{
650
- data: z.ZodAny;
651
- }, z.core.$strip>;
652
- };
653
- };
654
- description: string;
655
- };
656
- };
657
- } & {
658
- getRoutingPath(): "/api/marketplace/vendors/:id/reviews";
659
- };
660
43
  export declare const ModerateReviewBodySchema: z.ZodObject<{
661
44
  status: z.ZodEnum<{
662
45
  pending: "pending";
@@ -665,741 +48,4 @@ export declare const ModerateReviewBodySchema: z.ZodObject<{
665
48
  flagged: "flagged";
666
49
  }>;
667
50
  }, z.core.$strip>;
668
- export declare const moderateReviewRoute: {
669
- method: "patch";
670
- path: "/api/marketplace/reviews/{id}";
671
- tags: string[];
672
- summary: string;
673
- request: {
674
- params: z.ZodObject<{
675
- id: z.ZodString;
676
- }, z.core.$strip>;
677
- body: {
678
- content: {
679
- "application/json": {
680
- schema: z.ZodObject<{
681
- status: z.ZodEnum<{
682
- pending: "pending";
683
- published: "published";
684
- hidden: "hidden";
685
- flagged: "flagged";
686
- }>;
687
- }, z.core.$strip>;
688
- };
689
- };
690
- required: true;
691
- };
692
- };
693
- responses: {
694
- 401: {
695
- readonly content: {
696
- readonly "application/json": {
697
- readonly schema: z.ZodObject<{
698
- error: z.ZodObject<{
699
- code: z.ZodString;
700
- message: z.ZodString;
701
- }, z.core.$strip>;
702
- }, z.core.$strip>;
703
- };
704
- };
705
- readonly description: "Authentication required.";
706
- };
707
- 403: {
708
- readonly content: {
709
- readonly "application/json": {
710
- readonly schema: z.ZodObject<{
711
- error: z.ZodObject<{
712
- code: z.ZodString;
713
- message: z.ZodString;
714
- }, z.core.$strip>;
715
- }, z.core.$strip>;
716
- };
717
- };
718
- readonly description: "Insufficient permissions.";
719
- };
720
- 404: {
721
- readonly content: {
722
- readonly "application/json": {
723
- readonly schema: z.ZodObject<{
724
- error: z.ZodObject<{
725
- code: z.ZodString;
726
- message: z.ZodString;
727
- }, z.core.$strip>;
728
- }, z.core.$strip>;
729
- };
730
- };
731
- readonly description: "Not found.";
732
- };
733
- 422: {
734
- readonly content: {
735
- readonly "application/json": {
736
- readonly schema: z.ZodObject<{
737
- error: z.ZodObject<{
738
- code: z.ZodString;
739
- message: z.ZodString;
740
- }, z.core.$strip>;
741
- }, z.core.$strip>;
742
- };
743
- };
744
- readonly description: "Validation error.";
745
- };
746
- 500: {
747
- readonly content: {
748
- readonly "application/json": {
749
- readonly schema: z.ZodObject<{
750
- error: z.ZodObject<{
751
- code: z.ZodString;
752
- message: z.ZodString;
753
- }, z.core.$strip>;
754
- }, z.core.$strip>;
755
- };
756
- };
757
- readonly description: "Server error.";
758
- };
759
- 200: {
760
- content: {
761
- "application/json": {
762
- schema: z.ZodObject<{
763
- data: z.ZodAny;
764
- }, z.core.$strip>;
765
- };
766
- };
767
- description: string;
768
- };
769
- };
770
- } & {
771
- getRoutingPath(): "/api/marketplace/reviews/:id";
772
- };
773
- export declare const listDisputesRoute: {
774
- method: "get";
775
- path: "/api/marketplace/disputes";
776
- tags: string[];
777
- summary: string;
778
- request: {
779
- query: z.ZodObject<{
780
- status: z.ZodOptional<z.ZodString>;
781
- subOrderId: z.ZodOptional<z.ZodString>;
782
- }, z.core.$strip>;
783
- };
784
- responses: {
785
- 401: {
786
- readonly content: {
787
- readonly "application/json": {
788
- readonly schema: z.ZodObject<{
789
- error: z.ZodObject<{
790
- code: z.ZodString;
791
- message: z.ZodString;
792
- }, z.core.$strip>;
793
- }, z.core.$strip>;
794
- };
795
- };
796
- readonly description: "Authentication required.";
797
- };
798
- 403: {
799
- readonly content: {
800
- readonly "application/json": {
801
- readonly schema: z.ZodObject<{
802
- error: z.ZodObject<{
803
- code: z.ZodString;
804
- message: z.ZodString;
805
- }, z.core.$strip>;
806
- }, z.core.$strip>;
807
- };
808
- };
809
- readonly description: "Insufficient permissions.";
810
- };
811
- 404: {
812
- readonly content: {
813
- readonly "application/json": {
814
- readonly schema: z.ZodObject<{
815
- error: z.ZodObject<{
816
- code: z.ZodString;
817
- message: z.ZodString;
818
- }, z.core.$strip>;
819
- }, z.core.$strip>;
820
- };
821
- };
822
- readonly description: "Not found.";
823
- };
824
- 422: {
825
- readonly content: {
826
- readonly "application/json": {
827
- readonly schema: z.ZodObject<{
828
- error: z.ZodObject<{
829
- code: z.ZodString;
830
- message: z.ZodString;
831
- }, z.core.$strip>;
832
- }, z.core.$strip>;
833
- };
834
- };
835
- readonly description: "Validation error.";
836
- };
837
- 500: {
838
- readonly content: {
839
- readonly "application/json": {
840
- readonly schema: z.ZodObject<{
841
- error: z.ZodObject<{
842
- code: z.ZodString;
843
- message: z.ZodString;
844
- }, z.core.$strip>;
845
- }, z.core.$strip>;
846
- };
847
- };
848
- readonly description: "Server error.";
849
- };
850
- 200: {
851
- content: {
852
- "application/json": {
853
- schema: z.ZodObject<{
854
- data: z.ZodAny;
855
- }, z.core.$strip>;
856
- };
857
- };
858
- description: string;
859
- };
860
- };
861
- } & {
862
- getRoutingPath(): "/api/marketplace/disputes";
863
- };
864
- export declare const getDisputeRoute: {
865
- method: "get";
866
- path: "/api/marketplace/disputes/{id}";
867
- tags: string[];
868
- summary: string;
869
- request: {
870
- params: z.ZodObject<{
871
- id: z.ZodString;
872
- }, z.core.$strip>;
873
- };
874
- responses: {
875
- 401: {
876
- readonly content: {
877
- readonly "application/json": {
878
- readonly schema: z.ZodObject<{
879
- error: z.ZodObject<{
880
- code: z.ZodString;
881
- message: z.ZodString;
882
- }, z.core.$strip>;
883
- }, z.core.$strip>;
884
- };
885
- };
886
- readonly description: "Authentication required.";
887
- };
888
- 403: {
889
- readonly content: {
890
- readonly "application/json": {
891
- readonly schema: z.ZodObject<{
892
- error: z.ZodObject<{
893
- code: z.ZodString;
894
- message: z.ZodString;
895
- }, z.core.$strip>;
896
- }, z.core.$strip>;
897
- };
898
- };
899
- readonly description: "Insufficient permissions.";
900
- };
901
- 404: {
902
- readonly content: {
903
- readonly "application/json": {
904
- readonly schema: z.ZodObject<{
905
- error: z.ZodObject<{
906
- code: z.ZodString;
907
- message: z.ZodString;
908
- }, z.core.$strip>;
909
- }, z.core.$strip>;
910
- };
911
- };
912
- readonly description: "Not found.";
913
- };
914
- 422: {
915
- readonly content: {
916
- readonly "application/json": {
917
- readonly schema: z.ZodObject<{
918
- error: z.ZodObject<{
919
- code: z.ZodString;
920
- message: z.ZodString;
921
- }, z.core.$strip>;
922
- }, z.core.$strip>;
923
- };
924
- };
925
- readonly description: "Validation error.";
926
- };
927
- 500: {
928
- readonly content: {
929
- readonly "application/json": {
930
- readonly schema: z.ZodObject<{
931
- error: z.ZodObject<{
932
- code: z.ZodString;
933
- message: z.ZodString;
934
- }, z.core.$strip>;
935
- }, z.core.$strip>;
936
- };
937
- };
938
- readonly description: "Server error.";
939
- };
940
- 200: {
941
- content: {
942
- "application/json": {
943
- schema: z.ZodObject<{
944
- data: z.ZodAny;
945
- }, z.core.$strip>;
946
- };
947
- };
948
- description: string;
949
- };
950
- };
951
- } & {
952
- getRoutingPath(): "/api/marketplace/disputes/:id";
953
- };
954
- export declare const escalateDisputeRoute: {
955
- method: "post";
956
- path: "/api/marketplace/disputes/{id}/escalate";
957
- tags: string[];
958
- summary: string;
959
- request: {
960
- params: z.ZodObject<{
961
- id: z.ZodString;
962
- }, z.core.$strip>;
963
- };
964
- responses: {
965
- 401: {
966
- readonly content: {
967
- readonly "application/json": {
968
- readonly schema: z.ZodObject<{
969
- error: z.ZodObject<{
970
- code: z.ZodString;
971
- message: z.ZodString;
972
- }, z.core.$strip>;
973
- }, z.core.$strip>;
974
- };
975
- };
976
- readonly description: "Authentication required.";
977
- };
978
- 403: {
979
- readonly content: {
980
- readonly "application/json": {
981
- readonly schema: z.ZodObject<{
982
- error: z.ZodObject<{
983
- code: z.ZodString;
984
- message: z.ZodString;
985
- }, z.core.$strip>;
986
- }, z.core.$strip>;
987
- };
988
- };
989
- readonly description: "Insufficient permissions.";
990
- };
991
- 404: {
992
- readonly content: {
993
- readonly "application/json": {
994
- readonly schema: z.ZodObject<{
995
- error: z.ZodObject<{
996
- code: z.ZodString;
997
- message: z.ZodString;
998
- }, z.core.$strip>;
999
- }, z.core.$strip>;
1000
- };
1001
- };
1002
- readonly description: "Not found.";
1003
- };
1004
- 422: {
1005
- readonly content: {
1006
- readonly "application/json": {
1007
- readonly schema: z.ZodObject<{
1008
- error: z.ZodObject<{
1009
- code: z.ZodString;
1010
- message: z.ZodString;
1011
- }, z.core.$strip>;
1012
- }, z.core.$strip>;
1013
- };
1014
- };
1015
- readonly description: "Validation error.";
1016
- };
1017
- 500: {
1018
- readonly content: {
1019
- readonly "application/json": {
1020
- readonly schema: z.ZodObject<{
1021
- error: z.ZodObject<{
1022
- code: z.ZodString;
1023
- message: z.ZodString;
1024
- }, z.core.$strip>;
1025
- }, z.core.$strip>;
1026
- };
1027
- };
1028
- readonly description: "Server error.";
1029
- };
1030
- 200: {
1031
- content: {
1032
- "application/json": {
1033
- schema: z.ZodObject<{
1034
- data: z.ZodAny;
1035
- }, z.core.$strip>;
1036
- };
1037
- };
1038
- description: string;
1039
- };
1040
- };
1041
- } & {
1042
- getRoutingPath(): "/api/marketplace/disputes/:id/escalate";
1043
- };
1044
- export declare const listReturnsRoute: {
1045
- method: "get";
1046
- path: "/api/marketplace/returns";
1047
- tags: string[];
1048
- summary: string;
1049
- request: {
1050
- query: z.ZodObject<{
1051
- subOrderId: z.ZodOptional<z.ZodString>;
1052
- status: z.ZodOptional<z.ZodString>;
1053
- }, z.core.$strip>;
1054
- };
1055
- responses: {
1056
- 401: {
1057
- readonly content: {
1058
- readonly "application/json": {
1059
- readonly schema: z.ZodObject<{
1060
- error: z.ZodObject<{
1061
- code: z.ZodString;
1062
- message: z.ZodString;
1063
- }, z.core.$strip>;
1064
- }, z.core.$strip>;
1065
- };
1066
- };
1067
- readonly description: "Authentication required.";
1068
- };
1069
- 403: {
1070
- readonly content: {
1071
- readonly "application/json": {
1072
- readonly schema: z.ZodObject<{
1073
- error: z.ZodObject<{
1074
- code: z.ZodString;
1075
- message: z.ZodString;
1076
- }, z.core.$strip>;
1077
- }, z.core.$strip>;
1078
- };
1079
- };
1080
- readonly description: "Insufficient permissions.";
1081
- };
1082
- 404: {
1083
- readonly content: {
1084
- readonly "application/json": {
1085
- readonly schema: z.ZodObject<{
1086
- error: z.ZodObject<{
1087
- code: z.ZodString;
1088
- message: z.ZodString;
1089
- }, z.core.$strip>;
1090
- }, z.core.$strip>;
1091
- };
1092
- };
1093
- readonly description: "Not found.";
1094
- };
1095
- 422: {
1096
- readonly content: {
1097
- readonly "application/json": {
1098
- readonly schema: z.ZodObject<{
1099
- error: z.ZodObject<{
1100
- code: z.ZodString;
1101
- message: z.ZodString;
1102
- }, z.core.$strip>;
1103
- }, z.core.$strip>;
1104
- };
1105
- };
1106
- readonly description: "Validation error.";
1107
- };
1108
- 500: {
1109
- readonly content: {
1110
- readonly "application/json": {
1111
- readonly schema: z.ZodObject<{
1112
- error: z.ZodObject<{
1113
- code: z.ZodString;
1114
- message: z.ZodString;
1115
- }, z.core.$strip>;
1116
- }, z.core.$strip>;
1117
- };
1118
- };
1119
- readonly description: "Server error.";
1120
- };
1121
- 200: {
1122
- content: {
1123
- "application/json": {
1124
- schema: z.ZodObject<{
1125
- data: z.ZodAny;
1126
- }, z.core.$strip>;
1127
- };
1128
- };
1129
- description: string;
1130
- };
1131
- };
1132
- } & {
1133
- getRoutingPath(): "/api/marketplace/returns";
1134
- };
1135
- export declare const getReturnRoute: {
1136
- method: "get";
1137
- path: "/api/marketplace/returns/{id}";
1138
- tags: string[];
1139
- summary: string;
1140
- request: {
1141
- params: z.ZodObject<{
1142
- id: z.ZodString;
1143
- }, z.core.$strip>;
1144
- };
1145
- responses: {
1146
- 401: {
1147
- readonly content: {
1148
- readonly "application/json": {
1149
- readonly schema: z.ZodObject<{
1150
- error: z.ZodObject<{
1151
- code: z.ZodString;
1152
- message: z.ZodString;
1153
- }, z.core.$strip>;
1154
- }, z.core.$strip>;
1155
- };
1156
- };
1157
- readonly description: "Authentication required.";
1158
- };
1159
- 403: {
1160
- readonly content: {
1161
- readonly "application/json": {
1162
- readonly schema: z.ZodObject<{
1163
- error: z.ZodObject<{
1164
- code: z.ZodString;
1165
- message: z.ZodString;
1166
- }, z.core.$strip>;
1167
- }, z.core.$strip>;
1168
- };
1169
- };
1170
- readonly description: "Insufficient permissions.";
1171
- };
1172
- 404: {
1173
- readonly content: {
1174
- readonly "application/json": {
1175
- readonly schema: z.ZodObject<{
1176
- error: z.ZodObject<{
1177
- code: z.ZodString;
1178
- message: z.ZodString;
1179
- }, z.core.$strip>;
1180
- }, z.core.$strip>;
1181
- };
1182
- };
1183
- readonly description: "Not found.";
1184
- };
1185
- 422: {
1186
- readonly content: {
1187
- readonly "application/json": {
1188
- readonly schema: z.ZodObject<{
1189
- error: z.ZodObject<{
1190
- code: z.ZodString;
1191
- message: z.ZodString;
1192
- }, z.core.$strip>;
1193
- }, z.core.$strip>;
1194
- };
1195
- };
1196
- readonly description: "Validation error.";
1197
- };
1198
- 500: {
1199
- readonly content: {
1200
- readonly "application/json": {
1201
- readonly schema: z.ZodObject<{
1202
- error: z.ZodObject<{
1203
- code: z.ZodString;
1204
- message: z.ZodString;
1205
- }, z.core.$strip>;
1206
- }, z.core.$strip>;
1207
- };
1208
- };
1209
- readonly description: "Server error.";
1210
- };
1211
- 200: {
1212
- content: {
1213
- "application/json": {
1214
- schema: z.ZodObject<{
1215
- data: z.ZodAny;
1216
- }, z.core.$strip>;
1217
- };
1218
- };
1219
- description: string;
1220
- };
1221
- };
1222
- } & {
1223
- getRoutingPath(): "/api/marketplace/returns/:id";
1224
- };
1225
- export declare const receiveReturnRoute: {
1226
- method: "post";
1227
- path: "/api/marketplace/returns/{id}/receive";
1228
- tags: string[];
1229
- summary: string;
1230
- request: {
1231
- params: z.ZodObject<{
1232
- id: z.ZodString;
1233
- }, z.core.$strip>;
1234
- };
1235
- responses: {
1236
- 401: {
1237
- readonly content: {
1238
- readonly "application/json": {
1239
- readonly schema: z.ZodObject<{
1240
- error: z.ZodObject<{
1241
- code: z.ZodString;
1242
- message: z.ZodString;
1243
- }, z.core.$strip>;
1244
- }, z.core.$strip>;
1245
- };
1246
- };
1247
- readonly description: "Authentication required.";
1248
- };
1249
- 403: {
1250
- readonly content: {
1251
- readonly "application/json": {
1252
- readonly schema: z.ZodObject<{
1253
- error: z.ZodObject<{
1254
- code: z.ZodString;
1255
- message: z.ZodString;
1256
- }, z.core.$strip>;
1257
- }, z.core.$strip>;
1258
- };
1259
- };
1260
- readonly description: "Insufficient permissions.";
1261
- };
1262
- 404: {
1263
- readonly content: {
1264
- readonly "application/json": {
1265
- readonly schema: z.ZodObject<{
1266
- error: z.ZodObject<{
1267
- code: z.ZodString;
1268
- message: z.ZodString;
1269
- }, z.core.$strip>;
1270
- }, z.core.$strip>;
1271
- };
1272
- };
1273
- readonly description: "Not found.";
1274
- };
1275
- 422: {
1276
- readonly content: {
1277
- readonly "application/json": {
1278
- readonly schema: z.ZodObject<{
1279
- error: z.ZodObject<{
1280
- code: z.ZodString;
1281
- message: z.ZodString;
1282
- }, z.core.$strip>;
1283
- }, z.core.$strip>;
1284
- };
1285
- };
1286
- readonly description: "Validation error.";
1287
- };
1288
- 500: {
1289
- readonly content: {
1290
- readonly "application/json": {
1291
- readonly schema: z.ZodObject<{
1292
- error: z.ZodObject<{
1293
- code: z.ZodString;
1294
- message: z.ZodString;
1295
- }, z.core.$strip>;
1296
- }, z.core.$strip>;
1297
- };
1298
- };
1299
- readonly description: "Server error.";
1300
- };
1301
- 200: {
1302
- content: {
1303
- "application/json": {
1304
- schema: z.ZodObject<{
1305
- data: z.ZodAny;
1306
- }, z.core.$strip>;
1307
- };
1308
- };
1309
- description: string;
1310
- };
1311
- };
1312
- } & {
1313
- getRoutingPath(): "/api/marketplace/returns/:id/receive";
1314
- };
1315
- export declare const listVendorReviewsRoute: {
1316
- method: "get";
1317
- path: "/api/marketplace/vendors/{id}/reviews";
1318
- tags: string[];
1319
- summary: string;
1320
- request: {
1321
- params: z.ZodObject<{
1322
- id: z.ZodString;
1323
- }, z.core.$strip>;
1324
- };
1325
- responses: {
1326
- 401: {
1327
- readonly content: {
1328
- readonly "application/json": {
1329
- readonly schema: z.ZodObject<{
1330
- error: z.ZodObject<{
1331
- code: z.ZodString;
1332
- message: z.ZodString;
1333
- }, z.core.$strip>;
1334
- }, z.core.$strip>;
1335
- };
1336
- };
1337
- readonly description: "Authentication required.";
1338
- };
1339
- 403: {
1340
- readonly content: {
1341
- readonly "application/json": {
1342
- readonly schema: z.ZodObject<{
1343
- error: z.ZodObject<{
1344
- code: z.ZodString;
1345
- message: z.ZodString;
1346
- }, z.core.$strip>;
1347
- }, z.core.$strip>;
1348
- };
1349
- };
1350
- readonly description: "Insufficient permissions.";
1351
- };
1352
- 404: {
1353
- readonly content: {
1354
- readonly "application/json": {
1355
- readonly schema: z.ZodObject<{
1356
- error: z.ZodObject<{
1357
- code: z.ZodString;
1358
- message: z.ZodString;
1359
- }, z.core.$strip>;
1360
- }, z.core.$strip>;
1361
- };
1362
- };
1363
- readonly description: "Not found.";
1364
- };
1365
- 422: {
1366
- readonly content: {
1367
- readonly "application/json": {
1368
- readonly schema: z.ZodObject<{
1369
- error: z.ZodObject<{
1370
- code: z.ZodString;
1371
- message: z.ZodString;
1372
- }, z.core.$strip>;
1373
- }, z.core.$strip>;
1374
- };
1375
- };
1376
- readonly description: "Validation error.";
1377
- };
1378
- 500: {
1379
- readonly content: {
1380
- readonly "application/json": {
1381
- readonly schema: z.ZodObject<{
1382
- error: z.ZodObject<{
1383
- code: z.ZodString;
1384
- message: z.ZodString;
1385
- }, z.core.$strip>;
1386
- }, z.core.$strip>;
1387
- };
1388
- };
1389
- readonly description: "Server error.";
1390
- };
1391
- 200: {
1392
- content: {
1393
- "application/json": {
1394
- schema: z.ZodObject<{
1395
- data: z.ZodAny;
1396
- }, z.core.$strip>;
1397
- };
1398
- };
1399
- description: string;
1400
- };
1401
- };
1402
- } & {
1403
- getRoutingPath(): "/api/marketplace/vendors/:id/reviews";
1404
- };
1405
51
  //# sourceMappingURL=disputes-returns-reviews.d.ts.map