@porulle/plugin-marketplace 0.64.0 → 0.65.0

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 +2 -2
  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
@@ -10,111 +10,6 @@ export declare const CreateRFQBodySchema: z.ZodObject<{
10
10
  deadlineAt: z.ZodOptional<z.ZodString>;
11
11
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  }, z.core.$strip>;
13
- export declare const createRFQRoute: {
14
- method: "post";
15
- path: "/api/marketplace/rfq";
16
- tags: string[];
17
- summary: string;
18
- request: {
19
- body: {
20
- content: {
21
- "application/json": {
22
- schema: z.ZodObject<{
23
- title: z.ZodString;
24
- buyerId: z.ZodOptional<z.ZodString>;
25
- description: z.ZodOptional<z.ZodString>;
26
- categorySlug: z.ZodOptional<z.ZodString>;
27
- quantity: z.ZodOptional<z.ZodNumber>;
28
- budgetCents: z.ZodOptional<z.ZodNumber>;
29
- currency: z.ZodOptional<z.ZodString>;
30
- deadlineAt: z.ZodOptional<z.ZodString>;
31
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
- }, z.core.$strip>;
33
- };
34
- };
35
- required: true;
36
- };
37
- };
38
- responses: {
39
- 401: {
40
- readonly content: {
41
- readonly "application/json": {
42
- readonly schema: z.ZodObject<{
43
- error: z.ZodObject<{
44
- code: z.ZodString;
45
- message: z.ZodString;
46
- }, z.core.$strip>;
47
- }, z.core.$strip>;
48
- };
49
- };
50
- readonly description: "Authentication required.";
51
- };
52
- 403: {
53
- readonly content: {
54
- readonly "application/json": {
55
- readonly schema: z.ZodObject<{
56
- error: z.ZodObject<{
57
- code: z.ZodString;
58
- message: z.ZodString;
59
- }, z.core.$strip>;
60
- }, z.core.$strip>;
61
- };
62
- };
63
- readonly description: "Insufficient permissions.";
64
- };
65
- 404: {
66
- readonly content: {
67
- readonly "application/json": {
68
- readonly schema: z.ZodObject<{
69
- error: z.ZodObject<{
70
- code: z.ZodString;
71
- message: z.ZodString;
72
- }, z.core.$strip>;
73
- }, z.core.$strip>;
74
- };
75
- };
76
- readonly description: "Not found.";
77
- };
78
- 422: {
79
- readonly content: {
80
- readonly "application/json": {
81
- readonly schema: z.ZodObject<{
82
- error: z.ZodObject<{
83
- code: z.ZodString;
84
- message: z.ZodString;
85
- }, z.core.$strip>;
86
- }, z.core.$strip>;
87
- };
88
- };
89
- readonly description: "Validation error.";
90
- };
91
- 500: {
92
- readonly content: {
93
- readonly "application/json": {
94
- readonly schema: z.ZodObject<{
95
- error: z.ZodObject<{
96
- code: z.ZodString;
97
- message: z.ZodString;
98
- }, z.core.$strip>;
99
- }, z.core.$strip>;
100
- };
101
- };
102
- readonly description: "Server error.";
103
- };
104
- 201: {
105
- content: {
106
- "application/json": {
107
- schema: z.ZodObject<{
108
- data: z.ZodAny;
109
- }, z.core.$strip>;
110
- };
111
- };
112
- description: string;
113
- };
114
- };
115
- } & {
116
- getRoutingPath(): "/api/marketplace/rfq";
117
- };
118
13
  export declare const RespondRFQBodySchema: z.ZodObject<{
119
14
  vendorId: z.ZodString;
120
15
  unitPriceCents: z.ZodNumber;
@@ -122,888 +17,7 @@ export declare const RespondRFQBodySchema: z.ZodObject<{
122
17
  leadTimeDays: z.ZodOptional<z.ZodNumber>;
123
18
  notes: z.ZodOptional<z.ZodString>;
124
19
  }, z.core.$strip>;
125
- export declare const respondRFQRoute: {
126
- method: "post";
127
- path: "/api/marketplace/rfq/{id}/respond";
128
- tags: string[];
129
- summary: string;
130
- request: {
131
- params: z.ZodObject<{
132
- id: z.ZodString;
133
- }, z.core.$strip>;
134
- body: {
135
- content: {
136
- "application/json": {
137
- schema: z.ZodObject<{
138
- vendorId: z.ZodString;
139
- unitPriceCents: z.ZodNumber;
140
- totalPriceCents: z.ZodNumber;
141
- leadTimeDays: z.ZodOptional<z.ZodNumber>;
142
- notes: z.ZodOptional<z.ZodString>;
143
- }, z.core.$strip>;
144
- };
145
- };
146
- required: true;
147
- };
148
- };
149
- responses: {
150
- 401: {
151
- readonly content: {
152
- readonly "application/json": {
153
- readonly schema: z.ZodObject<{
154
- error: z.ZodObject<{
155
- code: z.ZodString;
156
- message: z.ZodString;
157
- }, z.core.$strip>;
158
- }, z.core.$strip>;
159
- };
160
- };
161
- readonly description: "Authentication required.";
162
- };
163
- 403: {
164
- readonly content: {
165
- readonly "application/json": {
166
- readonly schema: z.ZodObject<{
167
- error: z.ZodObject<{
168
- code: z.ZodString;
169
- message: z.ZodString;
170
- }, z.core.$strip>;
171
- }, z.core.$strip>;
172
- };
173
- };
174
- readonly description: "Insufficient permissions.";
175
- };
176
- 404: {
177
- readonly content: {
178
- readonly "application/json": {
179
- readonly schema: z.ZodObject<{
180
- error: z.ZodObject<{
181
- code: z.ZodString;
182
- message: z.ZodString;
183
- }, z.core.$strip>;
184
- }, z.core.$strip>;
185
- };
186
- };
187
- readonly description: "Not found.";
188
- };
189
- 422: {
190
- readonly content: {
191
- readonly "application/json": {
192
- readonly schema: z.ZodObject<{
193
- error: z.ZodObject<{
194
- code: z.ZodString;
195
- message: z.ZodString;
196
- }, z.core.$strip>;
197
- }, z.core.$strip>;
198
- };
199
- };
200
- readonly description: "Validation error.";
201
- };
202
- 500: {
203
- readonly content: {
204
- readonly "application/json": {
205
- readonly schema: z.ZodObject<{
206
- error: z.ZodObject<{
207
- code: z.ZodString;
208
- message: z.ZodString;
209
- }, z.core.$strip>;
210
- }, z.core.$strip>;
211
- };
212
- };
213
- readonly description: "Server error.";
214
- };
215
- 201: {
216
- content: {
217
- "application/json": {
218
- schema: z.ZodObject<{
219
- data: z.ZodAny;
220
- }, z.core.$strip>;
221
- };
222
- };
223
- description: string;
224
- };
225
- };
226
- } & {
227
- getRoutingPath(): "/api/marketplace/rfq/:id/respond";
228
- };
229
20
  export declare const AwardRFQBodySchema: z.ZodObject<{
230
21
  vendorId: z.ZodString;
231
22
  }, z.core.$strip>;
232
- export declare const awardRFQRoute: {
233
- method: "post";
234
- path: "/api/marketplace/rfq/{id}/award";
235
- tags: string[];
236
- summary: string;
237
- request: {
238
- params: z.ZodObject<{
239
- id: z.ZodString;
240
- }, z.core.$strip>;
241
- body: {
242
- content: {
243
- "application/json": {
244
- schema: z.ZodObject<{
245
- vendorId: z.ZodString;
246
- }, z.core.$strip>;
247
- };
248
- };
249
- required: true;
250
- };
251
- };
252
- responses: {
253
- 401: {
254
- readonly content: {
255
- readonly "application/json": {
256
- readonly schema: z.ZodObject<{
257
- error: z.ZodObject<{
258
- code: z.ZodString;
259
- message: z.ZodString;
260
- }, z.core.$strip>;
261
- }, z.core.$strip>;
262
- };
263
- };
264
- readonly description: "Authentication required.";
265
- };
266
- 403: {
267
- readonly content: {
268
- readonly "application/json": {
269
- readonly schema: z.ZodObject<{
270
- error: z.ZodObject<{
271
- code: z.ZodString;
272
- message: z.ZodString;
273
- }, z.core.$strip>;
274
- }, z.core.$strip>;
275
- };
276
- };
277
- readonly description: "Insufficient permissions.";
278
- };
279
- 404: {
280
- readonly content: {
281
- readonly "application/json": {
282
- readonly schema: z.ZodObject<{
283
- error: z.ZodObject<{
284
- code: z.ZodString;
285
- message: z.ZodString;
286
- }, z.core.$strip>;
287
- }, z.core.$strip>;
288
- };
289
- };
290
- readonly description: "Not found.";
291
- };
292
- 422: {
293
- readonly content: {
294
- readonly "application/json": {
295
- readonly schema: z.ZodObject<{
296
- error: z.ZodObject<{
297
- code: z.ZodString;
298
- message: z.ZodString;
299
- }, z.core.$strip>;
300
- }, z.core.$strip>;
301
- };
302
- };
303
- readonly description: "Validation error.";
304
- };
305
- 500: {
306
- readonly content: {
307
- readonly "application/json": {
308
- readonly schema: z.ZodObject<{
309
- error: z.ZodObject<{
310
- code: z.ZodString;
311
- message: z.ZodString;
312
- }, z.core.$strip>;
313
- }, z.core.$strip>;
314
- };
315
- };
316
- readonly description: "Server error.";
317
- };
318
- 200: {
319
- content: {
320
- "application/json": {
321
- schema: z.ZodObject<{
322
- data: z.ZodAny;
323
- }, z.core.$strip>;
324
- };
325
- };
326
- description: string;
327
- };
328
- };
329
- } & {
330
- getRoutingPath(): "/api/marketplace/rfq/:id/award";
331
- };
332
- export declare const CreateContractPriceBodySchema: z.ZodObject<{
333
- vendorId: z.ZodString;
334
- buyerId: z.ZodString;
335
- entityId: z.ZodString;
336
- variantId: z.ZodOptional<z.ZodString>;
337
- priceCents: z.ZodNumber;
338
- minQuantity: z.ZodOptional<z.ZodNumber>;
339
- currency: z.ZodOptional<z.ZodString>;
340
- validFrom: z.ZodOptional<z.ZodString>;
341
- validUntil: z.ZodOptional<z.ZodString>;
342
- }, z.core.$strip>;
343
- export declare const createContractPriceRoute: {
344
- method: "post";
345
- path: "/api/marketplace/contract-prices";
346
- tags: string[];
347
- summary: string;
348
- request: {
349
- body: {
350
- content: {
351
- "application/json": {
352
- schema: z.ZodObject<{
353
- vendorId: z.ZodString;
354
- buyerId: z.ZodString;
355
- entityId: z.ZodString;
356
- variantId: z.ZodOptional<z.ZodString>;
357
- priceCents: z.ZodNumber;
358
- minQuantity: z.ZodOptional<z.ZodNumber>;
359
- currency: z.ZodOptional<z.ZodString>;
360
- validFrom: z.ZodOptional<z.ZodString>;
361
- validUntil: z.ZodOptional<z.ZodString>;
362
- }, z.core.$strip>;
363
- };
364
- };
365
- required: true;
366
- };
367
- };
368
- responses: {
369
- 401: {
370
- readonly content: {
371
- readonly "application/json": {
372
- readonly schema: z.ZodObject<{
373
- error: z.ZodObject<{
374
- code: z.ZodString;
375
- message: z.ZodString;
376
- }, z.core.$strip>;
377
- }, z.core.$strip>;
378
- };
379
- };
380
- readonly description: "Authentication required.";
381
- };
382
- 403: {
383
- readonly content: {
384
- readonly "application/json": {
385
- readonly schema: z.ZodObject<{
386
- error: z.ZodObject<{
387
- code: z.ZodString;
388
- message: z.ZodString;
389
- }, z.core.$strip>;
390
- }, z.core.$strip>;
391
- };
392
- };
393
- readonly description: "Insufficient permissions.";
394
- };
395
- 404: {
396
- readonly content: {
397
- readonly "application/json": {
398
- readonly schema: z.ZodObject<{
399
- error: z.ZodObject<{
400
- code: z.ZodString;
401
- message: z.ZodString;
402
- }, z.core.$strip>;
403
- }, z.core.$strip>;
404
- };
405
- };
406
- readonly description: "Not found.";
407
- };
408
- 422: {
409
- readonly content: {
410
- readonly "application/json": {
411
- readonly schema: z.ZodObject<{
412
- error: z.ZodObject<{
413
- code: z.ZodString;
414
- message: z.ZodString;
415
- }, z.core.$strip>;
416
- }, z.core.$strip>;
417
- };
418
- };
419
- readonly description: "Validation error.";
420
- };
421
- 500: {
422
- readonly content: {
423
- readonly "application/json": {
424
- readonly schema: z.ZodObject<{
425
- error: z.ZodObject<{
426
- code: z.ZodString;
427
- message: z.ZodString;
428
- }, z.core.$strip>;
429
- }, z.core.$strip>;
430
- };
431
- };
432
- readonly description: "Server error.";
433
- };
434
- 201: {
435
- content: {
436
- "application/json": {
437
- schema: z.ZodObject<{
438
- data: z.ZodAny;
439
- }, z.core.$strip>;
440
- };
441
- };
442
- description: string;
443
- };
444
- };
445
- } & {
446
- getRoutingPath(): "/api/marketplace/contract-prices";
447
- };
448
- export declare const UpdateContractPriceBodySchema: z.ZodObject<{
449
- priceCents: z.ZodOptional<z.ZodNumber>;
450
- minQuantity: z.ZodOptional<z.ZodNumber>;
451
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
- validUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
- }, z.core.$strip>;
454
- export declare const updateContractPriceRoute: {
455
- method: "patch";
456
- path: "/api/marketplace/contract-prices/{id}";
457
- tags: string[];
458
- summary: string;
459
- request: {
460
- params: z.ZodObject<{
461
- id: z.ZodString;
462
- }, z.core.$strip>;
463
- body: {
464
- content: {
465
- "application/json": {
466
- schema: z.ZodObject<{
467
- priceCents: z.ZodOptional<z.ZodNumber>;
468
- minQuantity: z.ZodOptional<z.ZodNumber>;
469
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
- validUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
- }, z.core.$strip>;
472
- };
473
- };
474
- required: true;
475
- };
476
- };
477
- responses: {
478
- 401: {
479
- readonly content: {
480
- readonly "application/json": {
481
- readonly schema: z.ZodObject<{
482
- error: z.ZodObject<{
483
- code: z.ZodString;
484
- message: z.ZodString;
485
- }, z.core.$strip>;
486
- }, z.core.$strip>;
487
- };
488
- };
489
- readonly description: "Authentication required.";
490
- };
491
- 403: {
492
- readonly content: {
493
- readonly "application/json": {
494
- readonly schema: z.ZodObject<{
495
- error: z.ZodObject<{
496
- code: z.ZodString;
497
- message: z.ZodString;
498
- }, z.core.$strip>;
499
- }, z.core.$strip>;
500
- };
501
- };
502
- readonly description: "Insufficient permissions.";
503
- };
504
- 404: {
505
- readonly content: {
506
- readonly "application/json": {
507
- readonly schema: z.ZodObject<{
508
- error: z.ZodObject<{
509
- code: z.ZodString;
510
- message: z.ZodString;
511
- }, z.core.$strip>;
512
- }, z.core.$strip>;
513
- };
514
- };
515
- readonly description: "Not found.";
516
- };
517
- 422: {
518
- readonly content: {
519
- readonly "application/json": {
520
- readonly schema: z.ZodObject<{
521
- error: z.ZodObject<{
522
- code: z.ZodString;
523
- message: z.ZodString;
524
- }, z.core.$strip>;
525
- }, z.core.$strip>;
526
- };
527
- };
528
- readonly description: "Validation error.";
529
- };
530
- 500: {
531
- readonly content: {
532
- readonly "application/json": {
533
- readonly schema: z.ZodObject<{
534
- error: z.ZodObject<{
535
- code: z.ZodString;
536
- message: z.ZodString;
537
- }, z.core.$strip>;
538
- }, z.core.$strip>;
539
- };
540
- };
541
- readonly description: "Server error.";
542
- };
543
- 200: {
544
- content: {
545
- "application/json": {
546
- schema: z.ZodObject<{
547
- data: z.ZodAny;
548
- }, z.core.$strip>;
549
- };
550
- };
551
- description: string;
552
- };
553
- };
554
- } & {
555
- getRoutingPath(): "/api/marketplace/contract-prices/:id";
556
- };
557
- export declare const listRFQsRoute: {
558
- method: "get";
559
- path: "/api/marketplace/rfq";
560
- tags: string[];
561
- summary: string;
562
- request: {
563
- query: z.ZodObject<{
564
- status: z.ZodOptional<z.ZodString>;
565
- categorySlug: z.ZodOptional<z.ZodString>;
566
- }, z.core.$strip>;
567
- };
568
- responses: {
569
- 401: {
570
- readonly content: {
571
- readonly "application/json": {
572
- readonly schema: z.ZodObject<{
573
- error: z.ZodObject<{
574
- code: z.ZodString;
575
- message: z.ZodString;
576
- }, z.core.$strip>;
577
- }, z.core.$strip>;
578
- };
579
- };
580
- readonly description: "Authentication required.";
581
- };
582
- 403: {
583
- readonly content: {
584
- readonly "application/json": {
585
- readonly schema: z.ZodObject<{
586
- error: z.ZodObject<{
587
- code: z.ZodString;
588
- message: z.ZodString;
589
- }, z.core.$strip>;
590
- }, z.core.$strip>;
591
- };
592
- };
593
- readonly description: "Insufficient permissions.";
594
- };
595
- 404: {
596
- readonly content: {
597
- readonly "application/json": {
598
- readonly schema: z.ZodObject<{
599
- error: z.ZodObject<{
600
- code: z.ZodString;
601
- message: z.ZodString;
602
- }, z.core.$strip>;
603
- }, z.core.$strip>;
604
- };
605
- };
606
- readonly description: "Not found.";
607
- };
608
- 422: {
609
- readonly content: {
610
- readonly "application/json": {
611
- readonly schema: z.ZodObject<{
612
- error: z.ZodObject<{
613
- code: z.ZodString;
614
- message: z.ZodString;
615
- }, z.core.$strip>;
616
- }, z.core.$strip>;
617
- };
618
- };
619
- readonly description: "Validation error.";
620
- };
621
- 500: {
622
- readonly content: {
623
- readonly "application/json": {
624
- readonly schema: z.ZodObject<{
625
- error: z.ZodObject<{
626
- code: z.ZodString;
627
- message: z.ZodString;
628
- }, z.core.$strip>;
629
- }, z.core.$strip>;
630
- };
631
- };
632
- readonly description: "Server error.";
633
- };
634
- 200: {
635
- content: {
636
- "application/json": {
637
- schema: z.ZodObject<{
638
- data: z.ZodAny;
639
- }, z.core.$strip>;
640
- };
641
- };
642
- description: string;
643
- };
644
- };
645
- } & {
646
- getRoutingPath(): "/api/marketplace/rfq";
647
- };
648
- export declare const getRFQRoute: {
649
- method: "get";
650
- path: "/api/marketplace/rfq/{id}";
651
- tags: string[];
652
- summary: string;
653
- request: {
654
- params: z.ZodObject<{
655
- id: z.ZodString;
656
- }, z.core.$strip>;
657
- };
658
- responses: {
659
- 401: {
660
- readonly content: {
661
- readonly "application/json": {
662
- readonly schema: z.ZodObject<{
663
- error: z.ZodObject<{
664
- code: z.ZodString;
665
- message: z.ZodString;
666
- }, z.core.$strip>;
667
- }, z.core.$strip>;
668
- };
669
- };
670
- readonly description: "Authentication required.";
671
- };
672
- 403: {
673
- readonly content: {
674
- readonly "application/json": {
675
- readonly schema: z.ZodObject<{
676
- error: z.ZodObject<{
677
- code: z.ZodString;
678
- message: z.ZodString;
679
- }, z.core.$strip>;
680
- }, z.core.$strip>;
681
- };
682
- };
683
- readonly description: "Insufficient permissions.";
684
- };
685
- 404: {
686
- readonly content: {
687
- readonly "application/json": {
688
- readonly schema: z.ZodObject<{
689
- error: z.ZodObject<{
690
- code: z.ZodString;
691
- message: z.ZodString;
692
- }, z.core.$strip>;
693
- }, z.core.$strip>;
694
- };
695
- };
696
- readonly description: "Not found.";
697
- };
698
- 422: {
699
- readonly content: {
700
- readonly "application/json": {
701
- readonly schema: z.ZodObject<{
702
- error: z.ZodObject<{
703
- code: z.ZodString;
704
- message: z.ZodString;
705
- }, z.core.$strip>;
706
- }, z.core.$strip>;
707
- };
708
- };
709
- readonly description: "Validation error.";
710
- };
711
- 500: {
712
- readonly content: {
713
- readonly "application/json": {
714
- readonly schema: z.ZodObject<{
715
- error: z.ZodObject<{
716
- code: z.ZodString;
717
- message: z.ZodString;
718
- }, z.core.$strip>;
719
- }, z.core.$strip>;
720
- };
721
- };
722
- readonly description: "Server error.";
723
- };
724
- 200: {
725
- content: {
726
- "application/json": {
727
- schema: z.ZodObject<{
728
- data: z.ZodAny;
729
- }, z.core.$strip>;
730
- };
731
- };
732
- description: string;
733
- };
734
- };
735
- } & {
736
- getRoutingPath(): "/api/marketplace/rfq/:id";
737
- };
738
- export declare const closeRFQRoute: {
739
- method: "post";
740
- path: "/api/marketplace/rfq/{id}/close";
741
- tags: string[];
742
- summary: string;
743
- request: {
744
- params: z.ZodObject<{
745
- id: z.ZodString;
746
- }, z.core.$strip>;
747
- };
748
- responses: {
749
- 401: {
750
- readonly content: {
751
- readonly "application/json": {
752
- readonly schema: z.ZodObject<{
753
- error: z.ZodObject<{
754
- code: z.ZodString;
755
- message: z.ZodString;
756
- }, z.core.$strip>;
757
- }, z.core.$strip>;
758
- };
759
- };
760
- readonly description: "Authentication required.";
761
- };
762
- 403: {
763
- readonly content: {
764
- readonly "application/json": {
765
- readonly schema: z.ZodObject<{
766
- error: z.ZodObject<{
767
- code: z.ZodString;
768
- message: z.ZodString;
769
- }, z.core.$strip>;
770
- }, z.core.$strip>;
771
- };
772
- };
773
- readonly description: "Insufficient permissions.";
774
- };
775
- 404: {
776
- readonly content: {
777
- readonly "application/json": {
778
- readonly schema: z.ZodObject<{
779
- error: z.ZodObject<{
780
- code: z.ZodString;
781
- message: z.ZodString;
782
- }, z.core.$strip>;
783
- }, z.core.$strip>;
784
- };
785
- };
786
- readonly description: "Not found.";
787
- };
788
- 422: {
789
- readonly content: {
790
- readonly "application/json": {
791
- readonly schema: z.ZodObject<{
792
- error: z.ZodObject<{
793
- code: z.ZodString;
794
- message: z.ZodString;
795
- }, z.core.$strip>;
796
- }, z.core.$strip>;
797
- };
798
- };
799
- readonly description: "Validation error.";
800
- };
801
- 500: {
802
- readonly content: {
803
- readonly "application/json": {
804
- readonly schema: z.ZodObject<{
805
- error: z.ZodObject<{
806
- code: z.ZodString;
807
- message: z.ZodString;
808
- }, z.core.$strip>;
809
- }, z.core.$strip>;
810
- };
811
- };
812
- readonly description: "Server error.";
813
- };
814
- 200: {
815
- content: {
816
- "application/json": {
817
- schema: z.ZodObject<{
818
- data: z.ZodAny;
819
- }, z.core.$strip>;
820
- };
821
- };
822
- description: string;
823
- };
824
- };
825
- } & {
826
- getRoutingPath(): "/api/marketplace/rfq/:id/close";
827
- };
828
- export declare const listContractPricesRoute: {
829
- method: "get";
830
- path: "/api/marketplace/contract-prices";
831
- tags: string[];
832
- summary: string;
833
- request: {
834
- query: z.ZodObject<{
835
- vendorId: z.ZodOptional<z.ZodString>;
836
- buyerId: z.ZodOptional<z.ZodString>;
837
- }, z.core.$strip>;
838
- };
839
- responses: {
840
- 401: {
841
- readonly content: {
842
- readonly "application/json": {
843
- readonly schema: z.ZodObject<{
844
- error: z.ZodObject<{
845
- code: z.ZodString;
846
- message: z.ZodString;
847
- }, z.core.$strip>;
848
- }, z.core.$strip>;
849
- };
850
- };
851
- readonly description: "Authentication required.";
852
- };
853
- 403: {
854
- readonly content: {
855
- readonly "application/json": {
856
- readonly schema: z.ZodObject<{
857
- error: z.ZodObject<{
858
- code: z.ZodString;
859
- message: z.ZodString;
860
- }, z.core.$strip>;
861
- }, z.core.$strip>;
862
- };
863
- };
864
- readonly description: "Insufficient permissions.";
865
- };
866
- 404: {
867
- readonly content: {
868
- readonly "application/json": {
869
- readonly schema: z.ZodObject<{
870
- error: z.ZodObject<{
871
- code: z.ZodString;
872
- message: z.ZodString;
873
- }, z.core.$strip>;
874
- }, z.core.$strip>;
875
- };
876
- };
877
- readonly description: "Not found.";
878
- };
879
- 422: {
880
- readonly content: {
881
- readonly "application/json": {
882
- readonly schema: z.ZodObject<{
883
- error: z.ZodObject<{
884
- code: z.ZodString;
885
- message: z.ZodString;
886
- }, z.core.$strip>;
887
- }, z.core.$strip>;
888
- };
889
- };
890
- readonly description: "Validation error.";
891
- };
892
- 500: {
893
- readonly content: {
894
- readonly "application/json": {
895
- readonly schema: z.ZodObject<{
896
- error: z.ZodObject<{
897
- code: z.ZodString;
898
- message: z.ZodString;
899
- }, z.core.$strip>;
900
- }, z.core.$strip>;
901
- };
902
- };
903
- readonly description: "Server error.";
904
- };
905
- 200: {
906
- content: {
907
- "application/json": {
908
- schema: z.ZodObject<{
909
- data: z.ZodAny;
910
- }, z.core.$strip>;
911
- };
912
- };
913
- description: string;
914
- };
915
- };
916
- } & {
917
- getRoutingPath(): "/api/marketplace/contract-prices";
918
- };
919
- export declare const deleteContractPriceRoute: {
920
- method: "delete";
921
- path: "/api/marketplace/contract-prices/{id}";
922
- tags: string[];
923
- summary: string;
924
- request: {
925
- params: z.ZodObject<{
926
- id: z.ZodString;
927
- }, z.core.$strip>;
928
- };
929
- responses: {
930
- 401: {
931
- readonly content: {
932
- readonly "application/json": {
933
- readonly schema: z.ZodObject<{
934
- error: z.ZodObject<{
935
- code: z.ZodString;
936
- message: z.ZodString;
937
- }, z.core.$strip>;
938
- }, z.core.$strip>;
939
- };
940
- };
941
- readonly description: "Authentication required.";
942
- };
943
- 403: {
944
- readonly content: {
945
- readonly "application/json": {
946
- readonly schema: z.ZodObject<{
947
- error: z.ZodObject<{
948
- code: z.ZodString;
949
- message: z.ZodString;
950
- }, z.core.$strip>;
951
- }, z.core.$strip>;
952
- };
953
- };
954
- readonly description: "Insufficient permissions.";
955
- };
956
- 404: {
957
- readonly content: {
958
- readonly "application/json": {
959
- readonly schema: z.ZodObject<{
960
- error: z.ZodObject<{
961
- code: z.ZodString;
962
- message: z.ZodString;
963
- }, z.core.$strip>;
964
- }, z.core.$strip>;
965
- };
966
- };
967
- readonly description: "Not found.";
968
- };
969
- 422: {
970
- readonly content: {
971
- readonly "application/json": {
972
- readonly schema: z.ZodObject<{
973
- error: z.ZodObject<{
974
- code: z.ZodString;
975
- message: z.ZodString;
976
- }, z.core.$strip>;
977
- }, z.core.$strip>;
978
- };
979
- };
980
- readonly description: "Validation error.";
981
- };
982
- 500: {
983
- readonly content: {
984
- readonly "application/json": {
985
- readonly schema: z.ZodObject<{
986
- error: z.ZodObject<{
987
- code: z.ZodString;
988
- message: z.ZodString;
989
- }, z.core.$strip>;
990
- }, z.core.$strip>;
991
- };
992
- };
993
- readonly description: "Server error.";
994
- };
995
- 200: {
996
- content: {
997
- "application/json": {
998
- schema: z.ZodObject<{
999
- data: z.ZodAny;
1000
- }, z.core.$strip>;
1001
- };
1002
- };
1003
- description: string;
1004
- };
1005
- };
1006
- } & {
1007
- getRoutingPath(): "/api/marketplace/contract-prices/:id";
1008
- };
1009
23
  //# sourceMappingURL=b2b.d.ts.map