@unifiedcommerce/sdk 0.1.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.
@@ -0,0 +1,4433 @@
1
+ import type { paths } from "./generated/api-types";
2
+ import { type AuthCredential } from "./middleware";
3
+ export interface SDKOptions {
4
+ /** Base URL of the UnifiedCommerce server (e.g., "http://localhost:4000"). */
5
+ baseUrl: string;
6
+ /** Authentication credential (API key or Bearer token). */
7
+ auth?: AuthCredential | undefined;
8
+ /** Additional headers sent with every request. */
9
+ headers?: Record<string, string> | undefined;
10
+ /** Custom fetch implementation (for testing or SSR). */
11
+ fetch?: typeof globalThis.fetch | undefined;
12
+ }
13
+ /**
14
+ * Creates a typed UnifiedCommerce SDK client.
15
+ *
16
+ * Layer 1 (generated types from OpenAPI spec) provides compile-time
17
+ * validation of request bodies, query parameters, and response shapes.
18
+ *
19
+ * Layer 2 (this wrapper) provides ergonomic domain namespaces:
20
+ * sdk.catalog.list(), sdk.cart.addItem(), sdk.orders.get(), etc.
21
+ *
22
+ * For routes not covered by the wrapper (plugin routes, custom routes),
23
+ * use sdk.raw which is the full openapi-fetch client with all paths typed.
24
+ */
25
+ export declare function createSDK(options: SDKOptions): {
26
+ /** Raw openapi-fetch client for paths not covered by the wrapper. */
27
+ raw: import("openapi-fetch").Client<paths, `${string}/${string}`>;
28
+ catalog: {
29
+ list(query?: {
30
+ type?: string;
31
+ status?: string;
32
+ category?: string;
33
+ brand?: string;
34
+ include?: string;
35
+ sort?: string;
36
+ page?: string;
37
+ limit?: string;
38
+ }): Promise<import("openapi-fetch").FetchResponse<{
39
+ parameters: {
40
+ query?: {
41
+ type?: string;
42
+ status?: string;
43
+ category?: string;
44
+ brand?: string;
45
+ include?: string;
46
+ sort?: string;
47
+ page?: string;
48
+ limit?: string;
49
+ };
50
+ header?: never;
51
+ path?: never;
52
+ cookie?: never;
53
+ };
54
+ requestBody?: never;
55
+ responses: {
56
+ 200: {
57
+ headers: {
58
+ [name: string]: unknown;
59
+ };
60
+ content: {
61
+ "application/json": import(".").components["schemas"]["CatalogEntityListResponse"];
62
+ };
63
+ };
64
+ };
65
+ }, {
66
+ params: {
67
+ query: {
68
+ type?: string;
69
+ status?: string;
70
+ category?: string;
71
+ brand?: string;
72
+ include?: string;
73
+ sort?: string;
74
+ page?: string;
75
+ limit?: string;
76
+ };
77
+ };
78
+ } | {
79
+ params?: never;
80
+ }, `${string}/${string}`>>;
81
+ get(idOrSlug: string, query?: {
82
+ include?: string;
83
+ }): Promise<import("openapi-fetch").FetchResponse<{
84
+ parameters: {
85
+ query?: {
86
+ include?: string;
87
+ };
88
+ header?: never;
89
+ path: {
90
+ idOrSlug: string;
91
+ };
92
+ cookie?: never;
93
+ };
94
+ requestBody?: never;
95
+ responses: {
96
+ 200: {
97
+ headers: {
98
+ [name: string]: unknown;
99
+ };
100
+ content: {
101
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
102
+ };
103
+ };
104
+ 400: {
105
+ headers: {
106
+ [name: string]: unknown;
107
+ };
108
+ content: {
109
+ "application/json": import(".").components["schemas"]["Error"];
110
+ };
111
+ };
112
+ 401: {
113
+ headers: {
114
+ [name: string]: unknown;
115
+ };
116
+ content: {
117
+ "application/json": import(".").components["schemas"]["Error"];
118
+ };
119
+ };
120
+ 403: {
121
+ headers: {
122
+ [name: string]: unknown;
123
+ };
124
+ content: {
125
+ "application/json": import(".").components["schemas"]["Error"];
126
+ };
127
+ };
128
+ 404: {
129
+ headers: {
130
+ [name: string]: unknown;
131
+ };
132
+ content: {
133
+ "application/json": import(".").components["schemas"]["Error"];
134
+ };
135
+ };
136
+ 422: {
137
+ headers: {
138
+ [name: string]: unknown;
139
+ };
140
+ content: {
141
+ "application/json": import(".").components["schemas"]["Error"];
142
+ };
143
+ };
144
+ };
145
+ }, {
146
+ params: {
147
+ query?: {
148
+ include?: string;
149
+ };
150
+ path: {
151
+ idOrSlug: string;
152
+ };
153
+ };
154
+ }, `${string}/${string}`>>;
155
+ create(body: paths["/api/catalog/entities"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ requestBody: {
163
+ content: {
164
+ "application/json": import(".").components["schemas"]["CreateEntityBody"];
165
+ };
166
+ };
167
+ responses: {
168
+ 201: {
169
+ headers: {
170
+ [name: string]: unknown;
171
+ };
172
+ content: {
173
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
174
+ };
175
+ };
176
+ 400: {
177
+ headers: {
178
+ [name: string]: unknown;
179
+ };
180
+ content: {
181
+ "application/json": import(".").components["schemas"]["Error"];
182
+ };
183
+ };
184
+ 401: {
185
+ headers: {
186
+ [name: string]: unknown;
187
+ };
188
+ content: {
189
+ "application/json": import(".").components["schemas"]["Error"];
190
+ };
191
+ };
192
+ 403: {
193
+ headers: {
194
+ [name: string]: unknown;
195
+ };
196
+ content: {
197
+ "application/json": import(".").components["schemas"]["Error"];
198
+ };
199
+ };
200
+ 404: {
201
+ headers: {
202
+ [name: string]: unknown;
203
+ };
204
+ content: {
205
+ "application/json": import(".").components["schemas"]["Error"];
206
+ };
207
+ };
208
+ 422: {
209
+ headers: {
210
+ [name: string]: unknown;
211
+ };
212
+ content: {
213
+ "application/json": import(".").components["schemas"]["Error"];
214
+ };
215
+ };
216
+ };
217
+ }, {
218
+ body: {
219
+ type: string;
220
+ slug: string;
221
+ status?: string;
222
+ basePrice?: number;
223
+ currency?: string;
224
+ metadata?: {
225
+ [key: string]: unknown;
226
+ };
227
+ attributes?: {
228
+ locale?: string;
229
+ title: string;
230
+ subtitle?: string;
231
+ description?: string;
232
+ richDescription?: {
233
+ [key: string]: unknown;
234
+ };
235
+ seoTitle?: string;
236
+ seoDescription?: string;
237
+ };
238
+ customFields?: {
239
+ [key: string]: unknown;
240
+ };
241
+ };
242
+ }, `${string}/${string}`>>;
243
+ update(id: string, body: paths["/api/catalog/entities/{id}"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
244
+ parameters: {
245
+ query?: never;
246
+ header?: never;
247
+ path: {
248
+ id: string;
249
+ };
250
+ cookie?: never;
251
+ };
252
+ requestBody: {
253
+ content: {
254
+ "application/json": import(".").components["schemas"]["UpdateEntityBody"];
255
+ };
256
+ };
257
+ responses: {
258
+ 200: {
259
+ headers: {
260
+ [name: string]: unknown;
261
+ };
262
+ content: {
263
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
264
+ };
265
+ };
266
+ 400: {
267
+ headers: {
268
+ [name: string]: unknown;
269
+ };
270
+ content: {
271
+ "application/json": import(".").components["schemas"]["Error"];
272
+ };
273
+ };
274
+ 401: {
275
+ headers: {
276
+ [name: string]: unknown;
277
+ };
278
+ content: {
279
+ "application/json": import(".").components["schemas"]["Error"];
280
+ };
281
+ };
282
+ 403: {
283
+ headers: {
284
+ [name: string]: unknown;
285
+ };
286
+ content: {
287
+ "application/json": import(".").components["schemas"]["Error"];
288
+ };
289
+ };
290
+ 404: {
291
+ headers: {
292
+ [name: string]: unknown;
293
+ };
294
+ content: {
295
+ "application/json": import(".").components["schemas"]["Error"];
296
+ };
297
+ };
298
+ 422: {
299
+ headers: {
300
+ [name: string]: unknown;
301
+ };
302
+ content: {
303
+ "application/json": import(".").components["schemas"]["Error"];
304
+ };
305
+ };
306
+ };
307
+ }, {
308
+ params: {
309
+ path: {
310
+ id: string;
311
+ };
312
+ };
313
+ body: {
314
+ slug?: string;
315
+ status?: string;
316
+ metadata?: {
317
+ [key: string]: unknown;
318
+ };
319
+ isVisible?: boolean;
320
+ };
321
+ }, `${string}/${string}`>>;
322
+ remove(id: string): Promise<import("openapi-fetch").FetchResponse<{
323
+ parameters: {
324
+ query?: never;
325
+ header?: never;
326
+ path: {
327
+ id: string;
328
+ };
329
+ cookie?: never;
330
+ };
331
+ requestBody?: never;
332
+ responses: {
333
+ 200: {
334
+ headers: {
335
+ [name: string]: unknown;
336
+ };
337
+ content: {
338
+ "application/json": {
339
+ data: {
340
+ deleted: true;
341
+ };
342
+ };
343
+ };
344
+ };
345
+ 400: {
346
+ headers: {
347
+ [name: string]: unknown;
348
+ };
349
+ content: {
350
+ "application/json": import(".").components["schemas"]["Error"];
351
+ };
352
+ };
353
+ 401: {
354
+ headers: {
355
+ [name: string]: unknown;
356
+ };
357
+ content: {
358
+ "application/json": import(".").components["schemas"]["Error"];
359
+ };
360
+ };
361
+ 403: {
362
+ headers: {
363
+ [name: string]: unknown;
364
+ };
365
+ content: {
366
+ "application/json": import(".").components["schemas"]["Error"];
367
+ };
368
+ };
369
+ 404: {
370
+ headers: {
371
+ [name: string]: unknown;
372
+ };
373
+ content: {
374
+ "application/json": import(".").components["schemas"]["Error"];
375
+ };
376
+ };
377
+ 422: {
378
+ headers: {
379
+ [name: string]: unknown;
380
+ };
381
+ content: {
382
+ "application/json": import(".").components["schemas"]["Error"];
383
+ };
384
+ };
385
+ };
386
+ }, {
387
+ params: {
388
+ path: {
389
+ id: string;
390
+ };
391
+ };
392
+ }, `${string}/${string}`>>;
393
+ publish(id: string): Promise<import("openapi-fetch").FetchResponse<{
394
+ parameters: {
395
+ query?: never;
396
+ header?: never;
397
+ path: {
398
+ id: string;
399
+ };
400
+ cookie?: never;
401
+ };
402
+ requestBody?: never;
403
+ responses: {
404
+ 200: {
405
+ headers: {
406
+ [name: string]: unknown;
407
+ };
408
+ content: {
409
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
410
+ };
411
+ };
412
+ 400: {
413
+ headers: {
414
+ [name: string]: unknown;
415
+ };
416
+ content: {
417
+ "application/json": import(".").components["schemas"]["Error"];
418
+ };
419
+ };
420
+ 401: {
421
+ headers: {
422
+ [name: string]: unknown;
423
+ };
424
+ content: {
425
+ "application/json": import(".").components["schemas"]["Error"];
426
+ };
427
+ };
428
+ 403: {
429
+ headers: {
430
+ [name: string]: unknown;
431
+ };
432
+ content: {
433
+ "application/json": import(".").components["schemas"]["Error"];
434
+ };
435
+ };
436
+ 404: {
437
+ headers: {
438
+ [name: string]: unknown;
439
+ };
440
+ content: {
441
+ "application/json": import(".").components["schemas"]["Error"];
442
+ };
443
+ };
444
+ 422: {
445
+ headers: {
446
+ [name: string]: unknown;
447
+ };
448
+ content: {
449
+ "application/json": import(".").components["schemas"]["Error"];
450
+ };
451
+ };
452
+ };
453
+ }, {
454
+ params: {
455
+ path: {
456
+ id: string;
457
+ };
458
+ };
459
+ }, `${string}/${string}`>>;
460
+ archive(id: string): Promise<import("openapi-fetch").FetchResponse<{
461
+ parameters: {
462
+ query?: never;
463
+ header?: never;
464
+ path: {
465
+ id: string;
466
+ };
467
+ cookie?: never;
468
+ };
469
+ requestBody?: never;
470
+ responses: {
471
+ 200: {
472
+ headers: {
473
+ [name: string]: unknown;
474
+ };
475
+ content: {
476
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
477
+ };
478
+ };
479
+ 400: {
480
+ headers: {
481
+ [name: string]: unknown;
482
+ };
483
+ content: {
484
+ "application/json": import(".").components["schemas"]["Error"];
485
+ };
486
+ };
487
+ 401: {
488
+ headers: {
489
+ [name: string]: unknown;
490
+ };
491
+ content: {
492
+ "application/json": import(".").components["schemas"]["Error"];
493
+ };
494
+ };
495
+ 403: {
496
+ headers: {
497
+ [name: string]: unknown;
498
+ };
499
+ content: {
500
+ "application/json": import(".").components["schemas"]["Error"];
501
+ };
502
+ };
503
+ 404: {
504
+ headers: {
505
+ [name: string]: unknown;
506
+ };
507
+ content: {
508
+ "application/json": import(".").components["schemas"]["Error"];
509
+ };
510
+ };
511
+ 422: {
512
+ headers: {
513
+ [name: string]: unknown;
514
+ };
515
+ content: {
516
+ "application/json": import(".").components["schemas"]["Error"];
517
+ };
518
+ };
519
+ };
520
+ }, {
521
+ params: {
522
+ path: {
523
+ id: string;
524
+ };
525
+ };
526
+ }, `${string}/${string}`>>;
527
+ discontinue(id: string): Promise<import("openapi-fetch").FetchResponse<{
528
+ parameters: {
529
+ query?: never;
530
+ header?: never;
531
+ path: {
532
+ id: string;
533
+ };
534
+ cookie?: never;
535
+ };
536
+ requestBody?: never;
537
+ responses: {
538
+ 200: {
539
+ headers: {
540
+ [name: string]: unknown;
541
+ };
542
+ content: {
543
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
544
+ };
545
+ };
546
+ 400: {
547
+ headers: {
548
+ [name: string]: unknown;
549
+ };
550
+ content: {
551
+ "application/json": import(".").components["schemas"]["Error"];
552
+ };
553
+ };
554
+ 401: {
555
+ headers: {
556
+ [name: string]: unknown;
557
+ };
558
+ content: {
559
+ "application/json": import(".").components["schemas"]["Error"];
560
+ };
561
+ };
562
+ 403: {
563
+ headers: {
564
+ [name: string]: unknown;
565
+ };
566
+ content: {
567
+ "application/json": import(".").components["schemas"]["Error"];
568
+ };
569
+ };
570
+ 404: {
571
+ headers: {
572
+ [name: string]: unknown;
573
+ };
574
+ content: {
575
+ "application/json": import(".").components["schemas"]["Error"];
576
+ };
577
+ };
578
+ 422: {
579
+ headers: {
580
+ [name: string]: unknown;
581
+ };
582
+ content: {
583
+ "application/json": import(".").components["schemas"]["Error"];
584
+ };
585
+ };
586
+ };
587
+ }, {
588
+ params: {
589
+ path: {
590
+ id: string;
591
+ };
592
+ };
593
+ }, `${string}/${string}`>>;
594
+ setAttributes(id: string, locale: string, body: paths["/api/catalog/entities/{id}/attributes/{locale}"]["put"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
595
+ parameters: {
596
+ query?: never;
597
+ header?: never;
598
+ path: {
599
+ id: string;
600
+ locale: string;
601
+ };
602
+ cookie?: never;
603
+ };
604
+ requestBody: {
605
+ content: {
606
+ "application/json": import(".").components["schemas"]["SetAttributesBody"];
607
+ };
608
+ };
609
+ responses: {
610
+ 200: {
611
+ headers: {
612
+ [name: string]: unknown;
613
+ };
614
+ content: {
615
+ "application/json": {
616
+ data: {
617
+ updated: true;
618
+ };
619
+ };
620
+ };
621
+ };
622
+ 400: {
623
+ headers: {
624
+ [name: string]: unknown;
625
+ };
626
+ content: {
627
+ "application/json": import(".").components["schemas"]["Error"];
628
+ };
629
+ };
630
+ 401: {
631
+ headers: {
632
+ [name: string]: unknown;
633
+ };
634
+ content: {
635
+ "application/json": import(".").components["schemas"]["Error"];
636
+ };
637
+ };
638
+ 403: {
639
+ headers: {
640
+ [name: string]: unknown;
641
+ };
642
+ content: {
643
+ "application/json": import(".").components["schemas"]["Error"];
644
+ };
645
+ };
646
+ 404: {
647
+ headers: {
648
+ [name: string]: unknown;
649
+ };
650
+ content: {
651
+ "application/json": import(".").components["schemas"]["Error"];
652
+ };
653
+ };
654
+ 422: {
655
+ headers: {
656
+ [name: string]: unknown;
657
+ };
658
+ content: {
659
+ "application/json": import(".").components["schemas"]["Error"];
660
+ };
661
+ };
662
+ };
663
+ }, {
664
+ params: {
665
+ path: {
666
+ id: string;
667
+ locale: string;
668
+ };
669
+ };
670
+ body: {
671
+ [key: string]: unknown;
672
+ };
673
+ }, `${string}/${string}`>>;
674
+ getAttributes(id: string, locale: string): Promise<import("openapi-fetch").FetchResponse<{
675
+ parameters: {
676
+ query?: never;
677
+ header?: never;
678
+ path: {
679
+ id: string;
680
+ locale: string;
681
+ };
682
+ cookie?: never;
683
+ };
684
+ requestBody?: never;
685
+ responses: {
686
+ 200: {
687
+ headers: {
688
+ [name: string]: unknown;
689
+ };
690
+ content: {
691
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
692
+ };
693
+ };
694
+ 400: {
695
+ headers: {
696
+ [name: string]: unknown;
697
+ };
698
+ content: {
699
+ "application/json": import(".").components["schemas"]["Error"];
700
+ };
701
+ };
702
+ 401: {
703
+ headers: {
704
+ [name: string]: unknown;
705
+ };
706
+ content: {
707
+ "application/json": import(".").components["schemas"]["Error"];
708
+ };
709
+ };
710
+ 403: {
711
+ headers: {
712
+ [name: string]: unknown;
713
+ };
714
+ content: {
715
+ "application/json": import(".").components["schemas"]["Error"];
716
+ };
717
+ };
718
+ 404: {
719
+ headers: {
720
+ [name: string]: unknown;
721
+ };
722
+ content: {
723
+ "application/json": import(".").components["schemas"]["Error"];
724
+ };
725
+ };
726
+ 422: {
727
+ headers: {
728
+ [name: string]: unknown;
729
+ };
730
+ content: {
731
+ "application/json": import(".").components["schemas"]["Error"];
732
+ };
733
+ };
734
+ };
735
+ }, {
736
+ params: {
737
+ path: {
738
+ id: string;
739
+ locale: string;
740
+ };
741
+ };
742
+ }, `${string}/${string}`>>;
743
+ addToCategory(id: string, categoryId: string): Promise<import("openapi-fetch").FetchResponse<{
744
+ parameters: {
745
+ query?: never;
746
+ header?: never;
747
+ path: {
748
+ id: string;
749
+ categoryId: string;
750
+ };
751
+ cookie?: never;
752
+ };
753
+ requestBody?: never;
754
+ responses: {
755
+ 200: {
756
+ headers: {
757
+ [name: string]: unknown;
758
+ };
759
+ content: {
760
+ "application/json": {
761
+ data: {
762
+ linked: true;
763
+ };
764
+ };
765
+ };
766
+ };
767
+ 400: {
768
+ headers: {
769
+ [name: string]: unknown;
770
+ };
771
+ content: {
772
+ "application/json": import(".").components["schemas"]["Error"];
773
+ };
774
+ };
775
+ 401: {
776
+ headers: {
777
+ [name: string]: unknown;
778
+ };
779
+ content: {
780
+ "application/json": import(".").components["schemas"]["Error"];
781
+ };
782
+ };
783
+ 403: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content: {
788
+ "application/json": import(".").components["schemas"]["Error"];
789
+ };
790
+ };
791
+ 404: {
792
+ headers: {
793
+ [name: string]: unknown;
794
+ };
795
+ content: {
796
+ "application/json": import(".").components["schemas"]["Error"];
797
+ };
798
+ };
799
+ 422: {
800
+ headers: {
801
+ [name: string]: unknown;
802
+ };
803
+ content: {
804
+ "application/json": import(".").components["schemas"]["Error"];
805
+ };
806
+ };
807
+ };
808
+ }, {
809
+ params: {
810
+ path: {
811
+ id: string;
812
+ categoryId: string;
813
+ };
814
+ };
815
+ }, `${string}/${string}`>>;
816
+ removeFromCategory(id: string, categoryId: string): Promise<import("openapi-fetch").FetchResponse<{
817
+ parameters: {
818
+ query?: never;
819
+ header?: never;
820
+ path: {
821
+ id: string;
822
+ categoryId: string;
823
+ };
824
+ cookie?: never;
825
+ };
826
+ requestBody?: never;
827
+ responses: {
828
+ 200: {
829
+ headers: {
830
+ [name: string]: unknown;
831
+ };
832
+ content: {
833
+ "application/json": {
834
+ data: {
835
+ unlinked: true;
836
+ };
837
+ };
838
+ };
839
+ };
840
+ 400: {
841
+ headers: {
842
+ [name: string]: unknown;
843
+ };
844
+ content: {
845
+ "application/json": import(".").components["schemas"]["Error"];
846
+ };
847
+ };
848
+ 401: {
849
+ headers: {
850
+ [name: string]: unknown;
851
+ };
852
+ content: {
853
+ "application/json": import(".").components["schemas"]["Error"];
854
+ };
855
+ };
856
+ 403: {
857
+ headers: {
858
+ [name: string]: unknown;
859
+ };
860
+ content: {
861
+ "application/json": import(".").components["schemas"]["Error"];
862
+ };
863
+ };
864
+ 404: {
865
+ headers: {
866
+ [name: string]: unknown;
867
+ };
868
+ content: {
869
+ "application/json": import(".").components["schemas"]["Error"];
870
+ };
871
+ };
872
+ 422: {
873
+ headers: {
874
+ [name: string]: unknown;
875
+ };
876
+ content: {
877
+ "application/json": import(".").components["schemas"]["Error"];
878
+ };
879
+ };
880
+ };
881
+ }, {
882
+ params: {
883
+ path: {
884
+ id: string;
885
+ categoryId: string;
886
+ };
887
+ };
888
+ }, `${string}/${string}`>>;
889
+ listCategories(): Promise<import("openapi-fetch").FetchResponse<{
890
+ parameters: {
891
+ query?: never;
892
+ header?: never;
893
+ path?: never;
894
+ cookie?: never;
895
+ };
896
+ requestBody?: never;
897
+ responses: {
898
+ 200: {
899
+ headers: {
900
+ [name: string]: unknown;
901
+ };
902
+ content: {
903
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
904
+ };
905
+ };
906
+ };
907
+ }, import("openapi-fetch").FetchOptions<{
908
+ parameters: {
909
+ query?: never;
910
+ header?: never;
911
+ path?: never;
912
+ cookie?: never;
913
+ };
914
+ requestBody?: never;
915
+ responses: {
916
+ 200: {
917
+ headers: {
918
+ [name: string]: unknown;
919
+ };
920
+ content: {
921
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
922
+ };
923
+ };
924
+ };
925
+ }> | undefined, `${string}/${string}`>>;
926
+ createCategory(body: paths["/api/catalog/categories"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
927
+ parameters: {
928
+ query?: never;
929
+ header?: never;
930
+ path?: never;
931
+ cookie?: never;
932
+ };
933
+ requestBody: {
934
+ content: {
935
+ "application/json": import(".").components["schemas"]["CreateCategoryBody"];
936
+ };
937
+ };
938
+ responses: {
939
+ 201: {
940
+ headers: {
941
+ [name: string]: unknown;
942
+ };
943
+ content: {
944
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
945
+ };
946
+ };
947
+ 400: {
948
+ headers: {
949
+ [name: string]: unknown;
950
+ };
951
+ content: {
952
+ "application/json": import(".").components["schemas"]["Error"];
953
+ };
954
+ };
955
+ 401: {
956
+ headers: {
957
+ [name: string]: unknown;
958
+ };
959
+ content: {
960
+ "application/json": import(".").components["schemas"]["Error"];
961
+ };
962
+ };
963
+ 403: {
964
+ headers: {
965
+ [name: string]: unknown;
966
+ };
967
+ content: {
968
+ "application/json": import(".").components["schemas"]["Error"];
969
+ };
970
+ };
971
+ 404: {
972
+ headers: {
973
+ [name: string]: unknown;
974
+ };
975
+ content: {
976
+ "application/json": import(".").components["schemas"]["Error"];
977
+ };
978
+ };
979
+ 422: {
980
+ headers: {
981
+ [name: string]: unknown;
982
+ };
983
+ content: {
984
+ "application/json": import(".").components["schemas"]["Error"];
985
+ };
986
+ };
987
+ };
988
+ }, {
989
+ body: {
990
+ slug: string;
991
+ parentId?: string;
992
+ sortOrder?: number;
993
+ metadata?: {
994
+ [key: string]: unknown;
995
+ };
996
+ };
997
+ }, `${string}/${string}`>>;
998
+ updateCategory(categoryId: string, body: paths["/api/catalog/categories/{categoryId}"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
999
+ parameters: {
1000
+ query?: never;
1001
+ header?: never;
1002
+ path: {
1003
+ categoryId: string;
1004
+ };
1005
+ cookie?: never;
1006
+ };
1007
+ requestBody: {
1008
+ content: {
1009
+ "application/json": import(".").components["schemas"]["UpdateCategoryBody"];
1010
+ };
1011
+ };
1012
+ responses: {
1013
+ 200: {
1014
+ headers: {
1015
+ [name: string]: unknown;
1016
+ };
1017
+ content: {
1018
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1019
+ };
1020
+ };
1021
+ 400: {
1022
+ headers: {
1023
+ [name: string]: unknown;
1024
+ };
1025
+ content: {
1026
+ "application/json": import(".").components["schemas"]["Error"];
1027
+ };
1028
+ };
1029
+ 401: {
1030
+ headers: {
1031
+ [name: string]: unknown;
1032
+ };
1033
+ content: {
1034
+ "application/json": import(".").components["schemas"]["Error"];
1035
+ };
1036
+ };
1037
+ 403: {
1038
+ headers: {
1039
+ [name: string]: unknown;
1040
+ };
1041
+ content: {
1042
+ "application/json": import(".").components["schemas"]["Error"];
1043
+ };
1044
+ };
1045
+ 404: {
1046
+ headers: {
1047
+ [name: string]: unknown;
1048
+ };
1049
+ content: {
1050
+ "application/json": import(".").components["schemas"]["Error"];
1051
+ };
1052
+ };
1053
+ 422: {
1054
+ headers: {
1055
+ [name: string]: unknown;
1056
+ };
1057
+ content: {
1058
+ "application/json": import(".").components["schemas"]["Error"];
1059
+ };
1060
+ };
1061
+ };
1062
+ }, {
1063
+ params: {
1064
+ path: {
1065
+ categoryId: string;
1066
+ };
1067
+ };
1068
+ body: {
1069
+ slug?: string;
1070
+ parentId?: string | null;
1071
+ sortOrder?: number;
1072
+ metadata?: {
1073
+ [key: string]: unknown;
1074
+ };
1075
+ };
1076
+ }, `${string}/${string}`>>;
1077
+ deleteCategory(categoryId: string): Promise<import("openapi-fetch").FetchResponse<{
1078
+ parameters: {
1079
+ query?: never;
1080
+ header?: never;
1081
+ path: {
1082
+ categoryId: string;
1083
+ };
1084
+ cookie?: never;
1085
+ };
1086
+ requestBody?: never;
1087
+ responses: {
1088
+ 200: {
1089
+ headers: {
1090
+ [name: string]: unknown;
1091
+ };
1092
+ content: {
1093
+ "application/json": {
1094
+ data: {
1095
+ deleted: true;
1096
+ };
1097
+ };
1098
+ };
1099
+ };
1100
+ 400: {
1101
+ headers: {
1102
+ [name: string]: unknown;
1103
+ };
1104
+ content: {
1105
+ "application/json": import(".").components["schemas"]["Error"];
1106
+ };
1107
+ };
1108
+ 401: {
1109
+ headers: {
1110
+ [name: string]: unknown;
1111
+ };
1112
+ content: {
1113
+ "application/json": import(".").components["schemas"]["Error"];
1114
+ };
1115
+ };
1116
+ 403: {
1117
+ headers: {
1118
+ [name: string]: unknown;
1119
+ };
1120
+ content: {
1121
+ "application/json": import(".").components["schemas"]["Error"];
1122
+ };
1123
+ };
1124
+ 404: {
1125
+ headers: {
1126
+ [name: string]: unknown;
1127
+ };
1128
+ content: {
1129
+ "application/json": import(".").components["schemas"]["Error"];
1130
+ };
1131
+ };
1132
+ 422: {
1133
+ headers: {
1134
+ [name: string]: unknown;
1135
+ };
1136
+ content: {
1137
+ "application/json": import(".").components["schemas"]["Error"];
1138
+ };
1139
+ };
1140
+ };
1141
+ }, {
1142
+ params: {
1143
+ path: {
1144
+ categoryId: string;
1145
+ };
1146
+ };
1147
+ }, `${string}/${string}`>>;
1148
+ listBrands(): Promise<import("openapi-fetch").FetchResponse<{
1149
+ parameters: {
1150
+ query?: never;
1151
+ header?: never;
1152
+ path?: never;
1153
+ cookie?: never;
1154
+ };
1155
+ requestBody?: never;
1156
+ responses: {
1157
+ 200: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1163
+ };
1164
+ };
1165
+ };
1166
+ }, import("openapi-fetch").FetchOptions<{
1167
+ parameters: {
1168
+ query?: never;
1169
+ header?: never;
1170
+ path?: never;
1171
+ cookie?: never;
1172
+ };
1173
+ requestBody?: never;
1174
+ responses: {
1175
+ 200: {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1181
+ };
1182
+ };
1183
+ };
1184
+ }> | undefined, `${string}/${string}`>>;
1185
+ createBrand(body: paths["/api/catalog/brands"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1186
+ parameters: {
1187
+ query?: never;
1188
+ header?: never;
1189
+ path?: never;
1190
+ cookie?: never;
1191
+ };
1192
+ requestBody: {
1193
+ content: {
1194
+ "application/json": import(".").components["schemas"]["CreateBrandBody"];
1195
+ };
1196
+ };
1197
+ responses: {
1198
+ 201: {
1199
+ headers: {
1200
+ [name: string]: unknown;
1201
+ };
1202
+ content: {
1203
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1204
+ };
1205
+ };
1206
+ 400: {
1207
+ headers: {
1208
+ [name: string]: unknown;
1209
+ };
1210
+ content: {
1211
+ "application/json": import(".").components["schemas"]["Error"];
1212
+ };
1213
+ };
1214
+ 401: {
1215
+ headers: {
1216
+ [name: string]: unknown;
1217
+ };
1218
+ content: {
1219
+ "application/json": import(".").components["schemas"]["Error"];
1220
+ };
1221
+ };
1222
+ 403: {
1223
+ headers: {
1224
+ [name: string]: unknown;
1225
+ };
1226
+ content: {
1227
+ "application/json": import(".").components["schemas"]["Error"];
1228
+ };
1229
+ };
1230
+ 404: {
1231
+ headers: {
1232
+ [name: string]: unknown;
1233
+ };
1234
+ content: {
1235
+ "application/json": import(".").components["schemas"]["Error"];
1236
+ };
1237
+ };
1238
+ 422: {
1239
+ headers: {
1240
+ [name: string]: unknown;
1241
+ };
1242
+ content: {
1243
+ "application/json": import(".").components["schemas"]["Error"];
1244
+ };
1245
+ };
1246
+ };
1247
+ }, {
1248
+ body: {
1249
+ slug: string;
1250
+ displayName: string;
1251
+ metadata?: {
1252
+ [key: string]: unknown;
1253
+ };
1254
+ };
1255
+ }, `${string}/${string}`>>;
1256
+ updateBrand(brandId: string, body: paths["/api/catalog/brands/{brandId}"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1257
+ parameters: {
1258
+ query?: never;
1259
+ header?: never;
1260
+ path: {
1261
+ brandId: string;
1262
+ };
1263
+ cookie?: never;
1264
+ };
1265
+ requestBody: {
1266
+ content: {
1267
+ "application/json": import(".").components["schemas"]["UpdateBrandBody"];
1268
+ };
1269
+ };
1270
+ responses: {
1271
+ 200: {
1272
+ headers: {
1273
+ [name: string]: unknown;
1274
+ };
1275
+ content: {
1276
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1277
+ };
1278
+ };
1279
+ 400: {
1280
+ headers: {
1281
+ [name: string]: unknown;
1282
+ };
1283
+ content: {
1284
+ "application/json": import(".").components["schemas"]["Error"];
1285
+ };
1286
+ };
1287
+ 401: {
1288
+ headers: {
1289
+ [name: string]: unknown;
1290
+ };
1291
+ content: {
1292
+ "application/json": import(".").components["schemas"]["Error"];
1293
+ };
1294
+ };
1295
+ 403: {
1296
+ headers: {
1297
+ [name: string]: unknown;
1298
+ };
1299
+ content: {
1300
+ "application/json": import(".").components["schemas"]["Error"];
1301
+ };
1302
+ };
1303
+ 404: {
1304
+ headers: {
1305
+ [name: string]: unknown;
1306
+ };
1307
+ content: {
1308
+ "application/json": import(".").components["schemas"]["Error"];
1309
+ };
1310
+ };
1311
+ 422: {
1312
+ headers: {
1313
+ [name: string]: unknown;
1314
+ };
1315
+ content: {
1316
+ "application/json": import(".").components["schemas"]["Error"];
1317
+ };
1318
+ };
1319
+ };
1320
+ }, {
1321
+ params: {
1322
+ path: {
1323
+ brandId: string;
1324
+ };
1325
+ };
1326
+ body: {
1327
+ slug?: string;
1328
+ displayName?: string;
1329
+ metadata?: {
1330
+ [key: string]: unknown;
1331
+ };
1332
+ };
1333
+ }, `${string}/${string}`>>;
1334
+ deleteBrand(brandId: string): Promise<import("openapi-fetch").FetchResponse<{
1335
+ parameters: {
1336
+ query?: never;
1337
+ header?: never;
1338
+ path: {
1339
+ brandId: string;
1340
+ };
1341
+ cookie?: never;
1342
+ };
1343
+ requestBody?: never;
1344
+ responses: {
1345
+ 200: {
1346
+ headers: {
1347
+ [name: string]: unknown;
1348
+ };
1349
+ content: {
1350
+ "application/json": {
1351
+ data: {
1352
+ deleted: true;
1353
+ };
1354
+ };
1355
+ };
1356
+ };
1357
+ 400: {
1358
+ headers: {
1359
+ [name: string]: unknown;
1360
+ };
1361
+ content: {
1362
+ "application/json": import(".").components["schemas"]["Error"];
1363
+ };
1364
+ };
1365
+ 401: {
1366
+ headers: {
1367
+ [name: string]: unknown;
1368
+ };
1369
+ content: {
1370
+ "application/json": import(".").components["schemas"]["Error"];
1371
+ };
1372
+ };
1373
+ 403: {
1374
+ headers: {
1375
+ [name: string]: unknown;
1376
+ };
1377
+ content: {
1378
+ "application/json": import(".").components["schemas"]["Error"];
1379
+ };
1380
+ };
1381
+ 404: {
1382
+ headers: {
1383
+ [name: string]: unknown;
1384
+ };
1385
+ content: {
1386
+ "application/json": import(".").components["schemas"]["Error"];
1387
+ };
1388
+ };
1389
+ 422: {
1390
+ headers: {
1391
+ [name: string]: unknown;
1392
+ };
1393
+ content: {
1394
+ "application/json": import(".").components["schemas"]["Error"];
1395
+ };
1396
+ };
1397
+ };
1398
+ }, {
1399
+ params: {
1400
+ path: {
1401
+ brandId: string;
1402
+ };
1403
+ };
1404
+ }, `${string}/${string}`>>;
1405
+ addToBrand(id: string, brandId: string): Promise<import("openapi-fetch").FetchResponse<{
1406
+ parameters: {
1407
+ query?: never;
1408
+ header?: never;
1409
+ path: {
1410
+ id: string;
1411
+ brandId: string;
1412
+ };
1413
+ cookie?: never;
1414
+ };
1415
+ requestBody?: never;
1416
+ responses: {
1417
+ 200: {
1418
+ headers: {
1419
+ [name: string]: unknown;
1420
+ };
1421
+ content: {
1422
+ "application/json": {
1423
+ data: {
1424
+ linked: true;
1425
+ };
1426
+ };
1427
+ };
1428
+ };
1429
+ 400: {
1430
+ headers: {
1431
+ [name: string]: unknown;
1432
+ };
1433
+ content: {
1434
+ "application/json": import(".").components["schemas"]["Error"];
1435
+ };
1436
+ };
1437
+ 401: {
1438
+ headers: {
1439
+ [name: string]: unknown;
1440
+ };
1441
+ content: {
1442
+ "application/json": import(".").components["schemas"]["Error"];
1443
+ };
1444
+ };
1445
+ 403: {
1446
+ headers: {
1447
+ [name: string]: unknown;
1448
+ };
1449
+ content: {
1450
+ "application/json": import(".").components["schemas"]["Error"];
1451
+ };
1452
+ };
1453
+ 404: {
1454
+ headers: {
1455
+ [name: string]: unknown;
1456
+ };
1457
+ content: {
1458
+ "application/json": import(".").components["schemas"]["Error"];
1459
+ };
1460
+ };
1461
+ 422: {
1462
+ headers: {
1463
+ [name: string]: unknown;
1464
+ };
1465
+ content: {
1466
+ "application/json": import(".").components["schemas"]["Error"];
1467
+ };
1468
+ };
1469
+ };
1470
+ }, {
1471
+ params: {
1472
+ path: {
1473
+ id: string;
1474
+ brandId: string;
1475
+ };
1476
+ };
1477
+ }, `${string}/${string}`>>;
1478
+ removeFromBrand(id: string, brandId: string): Promise<import("openapi-fetch").FetchResponse<{
1479
+ parameters: {
1480
+ query?: never;
1481
+ header?: never;
1482
+ path: {
1483
+ id: string;
1484
+ brandId: string;
1485
+ };
1486
+ cookie?: never;
1487
+ };
1488
+ requestBody?: never;
1489
+ responses: {
1490
+ 200: {
1491
+ headers: {
1492
+ [name: string]: unknown;
1493
+ };
1494
+ content: {
1495
+ "application/json": {
1496
+ data: {
1497
+ unlinked: true;
1498
+ };
1499
+ };
1500
+ };
1501
+ };
1502
+ 400: {
1503
+ headers: {
1504
+ [name: string]: unknown;
1505
+ };
1506
+ content: {
1507
+ "application/json": import(".").components["schemas"]["Error"];
1508
+ };
1509
+ };
1510
+ 401: {
1511
+ headers: {
1512
+ [name: string]: unknown;
1513
+ };
1514
+ content: {
1515
+ "application/json": import(".").components["schemas"]["Error"];
1516
+ };
1517
+ };
1518
+ 403: {
1519
+ headers: {
1520
+ [name: string]: unknown;
1521
+ };
1522
+ content: {
1523
+ "application/json": import(".").components["schemas"]["Error"];
1524
+ };
1525
+ };
1526
+ 404: {
1527
+ headers: {
1528
+ [name: string]: unknown;
1529
+ };
1530
+ content: {
1531
+ "application/json": import(".").components["schemas"]["Error"];
1532
+ };
1533
+ };
1534
+ 422: {
1535
+ headers: {
1536
+ [name: string]: unknown;
1537
+ };
1538
+ content: {
1539
+ "application/json": import(".").components["schemas"]["Error"];
1540
+ };
1541
+ };
1542
+ };
1543
+ }, {
1544
+ params: {
1545
+ path: {
1546
+ id: string;
1547
+ brandId: string;
1548
+ };
1549
+ };
1550
+ }, `${string}/${string}`>>;
1551
+ createOptionType(id: string, body: paths["/api/catalog/entities/{id}/options"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1552
+ parameters: {
1553
+ query?: never;
1554
+ header?: never;
1555
+ path: {
1556
+ id: string;
1557
+ };
1558
+ cookie?: never;
1559
+ };
1560
+ requestBody: {
1561
+ content: {
1562
+ "application/json": import(".").components["schemas"]["CreateOptionTypeBody"];
1563
+ };
1564
+ };
1565
+ responses: {
1566
+ 201: {
1567
+ headers: {
1568
+ [name: string]: unknown;
1569
+ };
1570
+ content: {
1571
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1572
+ };
1573
+ };
1574
+ 400: {
1575
+ headers: {
1576
+ [name: string]: unknown;
1577
+ };
1578
+ content: {
1579
+ "application/json": import(".").components["schemas"]["Error"];
1580
+ };
1581
+ };
1582
+ 401: {
1583
+ headers: {
1584
+ [name: string]: unknown;
1585
+ };
1586
+ content: {
1587
+ "application/json": import(".").components["schemas"]["Error"];
1588
+ };
1589
+ };
1590
+ 403: {
1591
+ headers: {
1592
+ [name: string]: unknown;
1593
+ };
1594
+ content: {
1595
+ "application/json": import(".").components["schemas"]["Error"];
1596
+ };
1597
+ };
1598
+ 404: {
1599
+ headers: {
1600
+ [name: string]: unknown;
1601
+ };
1602
+ content: {
1603
+ "application/json": import(".").components["schemas"]["Error"];
1604
+ };
1605
+ };
1606
+ 422: {
1607
+ headers: {
1608
+ [name: string]: unknown;
1609
+ };
1610
+ content: {
1611
+ "application/json": import(".").components["schemas"]["Error"];
1612
+ };
1613
+ };
1614
+ };
1615
+ }, {
1616
+ params: {
1617
+ path: {
1618
+ id: string;
1619
+ };
1620
+ };
1621
+ body: {
1622
+ name: string;
1623
+ values?: string[];
1624
+ };
1625
+ }, `${string}/${string}`>>;
1626
+ createOptionValue(optionTypeId: string, body: paths["/api/catalog/options/{optionTypeId}/values"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1627
+ parameters: {
1628
+ query?: never;
1629
+ header?: never;
1630
+ path: {
1631
+ optionTypeId: string;
1632
+ };
1633
+ cookie?: never;
1634
+ };
1635
+ requestBody: {
1636
+ content: {
1637
+ "application/json": import(".").components["schemas"]["CreateOptionValueBody"];
1638
+ };
1639
+ };
1640
+ responses: {
1641
+ 201: {
1642
+ headers: {
1643
+ [name: string]: unknown;
1644
+ };
1645
+ content: {
1646
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1647
+ };
1648
+ };
1649
+ 400: {
1650
+ headers: {
1651
+ [name: string]: unknown;
1652
+ };
1653
+ content: {
1654
+ "application/json": import(".").components["schemas"]["Error"];
1655
+ };
1656
+ };
1657
+ 401: {
1658
+ headers: {
1659
+ [name: string]: unknown;
1660
+ };
1661
+ content: {
1662
+ "application/json": import(".").components["schemas"]["Error"];
1663
+ };
1664
+ };
1665
+ 403: {
1666
+ headers: {
1667
+ [name: string]: unknown;
1668
+ };
1669
+ content: {
1670
+ "application/json": import(".").components["schemas"]["Error"];
1671
+ };
1672
+ };
1673
+ 404: {
1674
+ headers: {
1675
+ [name: string]: unknown;
1676
+ };
1677
+ content: {
1678
+ "application/json": import(".").components["schemas"]["Error"];
1679
+ };
1680
+ };
1681
+ 422: {
1682
+ headers: {
1683
+ [name: string]: unknown;
1684
+ };
1685
+ content: {
1686
+ "application/json": import(".").components["schemas"]["Error"];
1687
+ };
1688
+ };
1689
+ };
1690
+ }, {
1691
+ params: {
1692
+ path: {
1693
+ optionTypeId: string;
1694
+ };
1695
+ };
1696
+ body: {
1697
+ value: string;
1698
+ };
1699
+ }, `${string}/${string}`>>;
1700
+ createVariant(id: string, body: paths["/api/catalog/entities/{id}/variants"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1701
+ parameters: {
1702
+ query?: never;
1703
+ header?: never;
1704
+ path: {
1705
+ id: string;
1706
+ };
1707
+ cookie?: never;
1708
+ };
1709
+ requestBody: {
1710
+ content: {
1711
+ "application/json": import(".").components["schemas"]["CreateVariantBody"];
1712
+ };
1713
+ };
1714
+ responses: {
1715
+ 201: {
1716
+ headers: {
1717
+ [name: string]: unknown;
1718
+ };
1719
+ content: {
1720
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1721
+ };
1722
+ };
1723
+ 400: {
1724
+ headers: {
1725
+ [name: string]: unknown;
1726
+ };
1727
+ content: {
1728
+ "application/json": import(".").components["schemas"]["Error"];
1729
+ };
1730
+ };
1731
+ 401: {
1732
+ headers: {
1733
+ [name: string]: unknown;
1734
+ };
1735
+ content: {
1736
+ "application/json": import(".").components["schemas"]["Error"];
1737
+ };
1738
+ };
1739
+ 403: {
1740
+ headers: {
1741
+ [name: string]: unknown;
1742
+ };
1743
+ content: {
1744
+ "application/json": import(".").components["schemas"]["Error"];
1745
+ };
1746
+ };
1747
+ 404: {
1748
+ headers: {
1749
+ [name: string]: unknown;
1750
+ };
1751
+ content: {
1752
+ "application/json": import(".").components["schemas"]["Error"];
1753
+ };
1754
+ };
1755
+ 422: {
1756
+ headers: {
1757
+ [name: string]: unknown;
1758
+ };
1759
+ content: {
1760
+ "application/json": import(".").components["schemas"]["Error"];
1761
+ };
1762
+ };
1763
+ };
1764
+ }, {
1765
+ params: {
1766
+ path: {
1767
+ id: string;
1768
+ };
1769
+ };
1770
+ body: {
1771
+ sku?: string;
1772
+ options: {
1773
+ [key: string]: string;
1774
+ };
1775
+ price?: number;
1776
+ };
1777
+ }, `${string}/${string}`>>;
1778
+ generateVariants(id: string, body: paths["/api/catalog/entities/{id}/variants/generate"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1779
+ parameters: {
1780
+ query?: never;
1781
+ header?: never;
1782
+ path: {
1783
+ id: string;
1784
+ };
1785
+ cookie?: never;
1786
+ };
1787
+ requestBody: {
1788
+ content: {
1789
+ "application/json": import(".").components["schemas"]["GenerateVariantsBody"];
1790
+ };
1791
+ };
1792
+ responses: {
1793
+ 201: {
1794
+ headers: {
1795
+ [name: string]: unknown;
1796
+ };
1797
+ content: {
1798
+ "application/json": import(".").components["schemas"]["CatalogEntityResponse"];
1799
+ };
1800
+ };
1801
+ 400: {
1802
+ headers: {
1803
+ [name: string]: unknown;
1804
+ };
1805
+ content: {
1806
+ "application/json": import(".").components["schemas"]["Error"];
1807
+ };
1808
+ };
1809
+ 401: {
1810
+ headers: {
1811
+ [name: string]: unknown;
1812
+ };
1813
+ content: {
1814
+ "application/json": import(".").components["schemas"]["Error"];
1815
+ };
1816
+ };
1817
+ 403: {
1818
+ headers: {
1819
+ [name: string]: unknown;
1820
+ };
1821
+ content: {
1822
+ "application/json": import(".").components["schemas"]["Error"];
1823
+ };
1824
+ };
1825
+ 404: {
1826
+ headers: {
1827
+ [name: string]: unknown;
1828
+ };
1829
+ content: {
1830
+ "application/json": import(".").components["schemas"]["Error"];
1831
+ };
1832
+ };
1833
+ 422: {
1834
+ headers: {
1835
+ [name: string]: unknown;
1836
+ };
1837
+ content: {
1838
+ "application/json": import(".").components["schemas"]["Error"];
1839
+ };
1840
+ };
1841
+ };
1842
+ }, {
1843
+ params: {
1844
+ path: {
1845
+ id: string;
1846
+ };
1847
+ };
1848
+ body: {
1849
+ [key: string]: unknown;
1850
+ };
1851
+ }, `${string}/${string}`>>;
1852
+ };
1853
+ inventory: {
1854
+ check(query: {
1855
+ entityIds: string;
1856
+ }): Promise<import("openapi-fetch").FetchResponse<{
1857
+ parameters: {
1858
+ query?: {
1859
+ entityIds?: string;
1860
+ };
1861
+ header?: never;
1862
+ path?: never;
1863
+ cookie?: never;
1864
+ };
1865
+ requestBody?: never;
1866
+ responses: {
1867
+ 200: {
1868
+ headers: {
1869
+ [name: string]: unknown;
1870
+ };
1871
+ content: {
1872
+ "application/json": {
1873
+ data: {
1874
+ [key: string]: unknown;
1875
+ };
1876
+ };
1877
+ };
1878
+ };
1879
+ };
1880
+ }, {
1881
+ params: {
1882
+ query: {
1883
+ entityIds: string;
1884
+ };
1885
+ };
1886
+ }, `${string}/${string}`>>;
1887
+ adjust(body: paths["/api/inventory/adjust"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1888
+ parameters: {
1889
+ query?: never;
1890
+ header?: never;
1891
+ path?: never;
1892
+ cookie?: never;
1893
+ };
1894
+ requestBody: {
1895
+ content: {
1896
+ "application/json": import(".").components["schemas"]["InventoryAdjustRequest"];
1897
+ };
1898
+ };
1899
+ responses: {
1900
+ 200: {
1901
+ headers: {
1902
+ [name: string]: unknown;
1903
+ };
1904
+ content: {
1905
+ "application/json": {
1906
+ data: {
1907
+ [key: string]: unknown;
1908
+ };
1909
+ };
1910
+ };
1911
+ };
1912
+ 400: {
1913
+ headers: {
1914
+ [name: string]: unknown;
1915
+ };
1916
+ content: {
1917
+ "application/json": import(".").components["schemas"]["Error"];
1918
+ };
1919
+ };
1920
+ 401: {
1921
+ headers: {
1922
+ [name: string]: unknown;
1923
+ };
1924
+ content: {
1925
+ "application/json": import(".").components["schemas"]["Error"];
1926
+ };
1927
+ };
1928
+ 403: {
1929
+ headers: {
1930
+ [name: string]: unknown;
1931
+ };
1932
+ content: {
1933
+ "application/json": import(".").components["schemas"]["Error"];
1934
+ };
1935
+ };
1936
+ 404: {
1937
+ headers: {
1938
+ [name: string]: unknown;
1939
+ };
1940
+ content: {
1941
+ "application/json": import(".").components["schemas"]["Error"];
1942
+ };
1943
+ };
1944
+ 422: {
1945
+ headers: {
1946
+ [name: string]: unknown;
1947
+ };
1948
+ content: {
1949
+ "application/json": import(".").components["schemas"]["Error"];
1950
+ };
1951
+ };
1952
+ };
1953
+ }, {
1954
+ body: {
1955
+ entityId: string;
1956
+ variantId?: string;
1957
+ warehouseId?: string;
1958
+ adjustment: number;
1959
+ reason: string;
1960
+ performedBy?: string;
1961
+ referenceType?: string;
1962
+ referenceId?: string;
1963
+ };
1964
+ }, `${string}/${string}`>>;
1965
+ reserve(body: paths["/api/inventory/reserve"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1966
+ parameters: {
1967
+ query?: never;
1968
+ header?: never;
1969
+ path?: never;
1970
+ cookie?: never;
1971
+ };
1972
+ requestBody: {
1973
+ content: {
1974
+ "application/json": import(".").components["schemas"]["InventoryReserveRequest"];
1975
+ };
1976
+ };
1977
+ responses: {
1978
+ 200: {
1979
+ headers: {
1980
+ [name: string]: unknown;
1981
+ };
1982
+ content: {
1983
+ "application/json": {
1984
+ data: {
1985
+ reserved: true;
1986
+ };
1987
+ };
1988
+ };
1989
+ };
1990
+ 400: {
1991
+ headers: {
1992
+ [name: string]: unknown;
1993
+ };
1994
+ content: {
1995
+ "application/json": import(".").components["schemas"]["Error"];
1996
+ };
1997
+ };
1998
+ 401: {
1999
+ headers: {
2000
+ [name: string]: unknown;
2001
+ };
2002
+ content: {
2003
+ "application/json": import(".").components["schemas"]["Error"];
2004
+ };
2005
+ };
2006
+ 403: {
2007
+ headers: {
2008
+ [name: string]: unknown;
2009
+ };
2010
+ content: {
2011
+ "application/json": import(".").components["schemas"]["Error"];
2012
+ };
2013
+ };
2014
+ 404: {
2015
+ headers: {
2016
+ [name: string]: unknown;
2017
+ };
2018
+ content: {
2019
+ "application/json": import(".").components["schemas"]["Error"];
2020
+ };
2021
+ };
2022
+ 422: {
2023
+ headers: {
2024
+ [name: string]: unknown;
2025
+ };
2026
+ content: {
2027
+ "application/json": import(".").components["schemas"]["Error"];
2028
+ };
2029
+ };
2030
+ };
2031
+ }, {
2032
+ body: {
2033
+ entityId: string;
2034
+ variantId?: string;
2035
+ warehouseId?: string;
2036
+ quantity: number;
2037
+ orderId: string;
2038
+ performedBy?: string;
2039
+ };
2040
+ }, `${string}/${string}`>>;
2041
+ release(body: paths["/api/inventory/release"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2042
+ parameters: {
2043
+ query?: never;
2044
+ header?: never;
2045
+ path?: never;
2046
+ cookie?: never;
2047
+ };
2048
+ requestBody: {
2049
+ content: {
2050
+ "application/json": import(".").components["schemas"]["InventoryReleaseRequest"];
2051
+ };
2052
+ };
2053
+ responses: {
2054
+ 200: {
2055
+ headers: {
2056
+ [name: string]: unknown;
2057
+ };
2058
+ content: {
2059
+ "application/json": {
2060
+ data: {
2061
+ released: true;
2062
+ };
2063
+ };
2064
+ };
2065
+ };
2066
+ 400: {
2067
+ headers: {
2068
+ [name: string]: unknown;
2069
+ };
2070
+ content: {
2071
+ "application/json": import(".").components["schemas"]["Error"];
2072
+ };
2073
+ };
2074
+ 401: {
2075
+ headers: {
2076
+ [name: string]: unknown;
2077
+ };
2078
+ content: {
2079
+ "application/json": import(".").components["schemas"]["Error"];
2080
+ };
2081
+ };
2082
+ 403: {
2083
+ headers: {
2084
+ [name: string]: unknown;
2085
+ };
2086
+ content: {
2087
+ "application/json": import(".").components["schemas"]["Error"];
2088
+ };
2089
+ };
2090
+ 404: {
2091
+ headers: {
2092
+ [name: string]: unknown;
2093
+ };
2094
+ content: {
2095
+ "application/json": import(".").components["schemas"]["Error"];
2096
+ };
2097
+ };
2098
+ 422: {
2099
+ headers: {
2100
+ [name: string]: unknown;
2101
+ };
2102
+ content: {
2103
+ "application/json": import(".").components["schemas"]["Error"];
2104
+ };
2105
+ };
2106
+ };
2107
+ }, {
2108
+ body: {
2109
+ entityId: string;
2110
+ variantId?: string;
2111
+ warehouseId?: string;
2112
+ quantity: number;
2113
+ orderId: string;
2114
+ performedBy?: string;
2115
+ };
2116
+ }, `${string}/${string}`>>;
2117
+ createWarehouse(body: paths["/api/inventory/warehouses"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2118
+ parameters: {
2119
+ query?: never;
2120
+ header?: never;
2121
+ path?: never;
2122
+ cookie?: never;
2123
+ };
2124
+ requestBody: {
2125
+ content: {
2126
+ "application/json": import(".").components["schemas"]["CreateWarehouseRequest"];
2127
+ };
2128
+ };
2129
+ responses: {
2130
+ 201: {
2131
+ headers: {
2132
+ [name: string]: unknown;
2133
+ };
2134
+ content: {
2135
+ "application/json": {
2136
+ data: {
2137
+ [key: string]: unknown;
2138
+ };
2139
+ };
2140
+ };
2141
+ };
2142
+ 400: {
2143
+ headers: {
2144
+ [name: string]: unknown;
2145
+ };
2146
+ content: {
2147
+ "application/json": import(".").components["schemas"]["Error"];
2148
+ };
2149
+ };
2150
+ 401: {
2151
+ headers: {
2152
+ [name: string]: unknown;
2153
+ };
2154
+ content: {
2155
+ "application/json": import(".").components["schemas"]["Error"];
2156
+ };
2157
+ };
2158
+ 403: {
2159
+ headers: {
2160
+ [name: string]: unknown;
2161
+ };
2162
+ content: {
2163
+ "application/json": import(".").components["schemas"]["Error"];
2164
+ };
2165
+ };
2166
+ 404: {
2167
+ headers: {
2168
+ [name: string]: unknown;
2169
+ };
2170
+ content: {
2171
+ "application/json": import(".").components["schemas"]["Error"];
2172
+ };
2173
+ };
2174
+ 422: {
2175
+ headers: {
2176
+ [name: string]: unknown;
2177
+ };
2178
+ content: {
2179
+ "application/json": import(".").components["schemas"]["Error"];
2180
+ };
2181
+ };
2182
+ };
2183
+ }, {
2184
+ body: {
2185
+ name: string;
2186
+ code?: string;
2187
+ address?: {
2188
+ [key: string]: unknown;
2189
+ };
2190
+ };
2191
+ }, `${string}/${string}`>>;
2192
+ listWarehouses(): Promise<import("openapi-fetch").FetchResponse<{
2193
+ parameters: {
2194
+ query?: never;
2195
+ header?: never;
2196
+ path?: never;
2197
+ cookie?: never;
2198
+ };
2199
+ requestBody?: never;
2200
+ responses: {
2201
+ 200: {
2202
+ headers: {
2203
+ [name: string]: unknown;
2204
+ };
2205
+ content: {
2206
+ "application/json": {
2207
+ data: {
2208
+ [key: string]: unknown;
2209
+ };
2210
+ };
2211
+ };
2212
+ };
2213
+ };
2214
+ }, import("openapi-fetch").FetchOptions<{
2215
+ parameters: {
2216
+ query?: never;
2217
+ header?: never;
2218
+ path?: never;
2219
+ cookie?: never;
2220
+ };
2221
+ requestBody?: never;
2222
+ responses: {
2223
+ 200: {
2224
+ headers: {
2225
+ [name: string]: unknown;
2226
+ };
2227
+ content: {
2228
+ "application/json": {
2229
+ data: {
2230
+ [key: string]: unknown;
2231
+ };
2232
+ };
2233
+ };
2234
+ };
2235
+ };
2236
+ }> | undefined, `${string}/${string}`>>;
2237
+ };
2238
+ cart: {
2239
+ create(body: paths["/api/carts"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2240
+ parameters: {
2241
+ query?: never;
2242
+ header?: never;
2243
+ path?: never;
2244
+ cookie?: never;
2245
+ };
2246
+ requestBody: {
2247
+ content: {
2248
+ "application/json": import(".").components["schemas"]["CreateCartRequest"];
2249
+ };
2250
+ };
2251
+ responses: {
2252
+ 201: {
2253
+ headers: {
2254
+ [name: string]: unknown;
2255
+ };
2256
+ content: {
2257
+ "application/json": import(".").components["schemas"]["CartResponse"];
2258
+ };
2259
+ };
2260
+ 400: {
2261
+ headers: {
2262
+ [name: string]: unknown;
2263
+ };
2264
+ content: {
2265
+ "application/json": import(".").components["schemas"]["Error"];
2266
+ };
2267
+ };
2268
+ 401: {
2269
+ headers: {
2270
+ [name: string]: unknown;
2271
+ };
2272
+ content: {
2273
+ "application/json": import(".").components["schemas"]["Error"];
2274
+ };
2275
+ };
2276
+ 403: {
2277
+ headers: {
2278
+ [name: string]: unknown;
2279
+ };
2280
+ content: {
2281
+ "application/json": import(".").components["schemas"]["Error"];
2282
+ };
2283
+ };
2284
+ 404: {
2285
+ headers: {
2286
+ [name: string]: unknown;
2287
+ };
2288
+ content: {
2289
+ "application/json": import(".").components["schemas"]["Error"];
2290
+ };
2291
+ };
2292
+ 422: {
2293
+ headers: {
2294
+ [name: string]: unknown;
2295
+ };
2296
+ content: {
2297
+ "application/json": import(".").components["schemas"]["Error"];
2298
+ };
2299
+ };
2300
+ };
2301
+ }, {
2302
+ body: {
2303
+ customerId?: string;
2304
+ currency?: string;
2305
+ };
2306
+ }, `${string}/${string}`>>;
2307
+ get(id: string): Promise<import("openapi-fetch").FetchResponse<{
2308
+ parameters: {
2309
+ query?: never;
2310
+ header?: never;
2311
+ path: {
2312
+ id: string;
2313
+ };
2314
+ cookie?: never;
2315
+ };
2316
+ requestBody?: never;
2317
+ responses: {
2318
+ 200: {
2319
+ headers: {
2320
+ [name: string]: unknown;
2321
+ };
2322
+ content: {
2323
+ "application/json": import(".").components["schemas"]["CartResponse"];
2324
+ };
2325
+ };
2326
+ 400: {
2327
+ headers: {
2328
+ [name: string]: unknown;
2329
+ };
2330
+ content: {
2331
+ "application/json": import(".").components["schemas"]["Error"];
2332
+ };
2333
+ };
2334
+ 401: {
2335
+ headers: {
2336
+ [name: string]: unknown;
2337
+ };
2338
+ content: {
2339
+ "application/json": import(".").components["schemas"]["Error"];
2340
+ };
2341
+ };
2342
+ 403: {
2343
+ headers: {
2344
+ [name: string]: unknown;
2345
+ };
2346
+ content: {
2347
+ "application/json": import(".").components["schemas"]["Error"];
2348
+ };
2349
+ };
2350
+ 404: {
2351
+ headers: {
2352
+ [name: string]: unknown;
2353
+ };
2354
+ content: {
2355
+ "application/json": import(".").components["schemas"]["Error"];
2356
+ };
2357
+ };
2358
+ 422: {
2359
+ headers: {
2360
+ [name: string]: unknown;
2361
+ };
2362
+ content: {
2363
+ "application/json": import(".").components["schemas"]["Error"];
2364
+ };
2365
+ };
2366
+ };
2367
+ }, {
2368
+ params: {
2369
+ path: {
2370
+ id: string;
2371
+ };
2372
+ };
2373
+ }, `${string}/${string}`>>;
2374
+ addItem(id: string, body: paths["/api/carts/{id}/items"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2375
+ parameters: {
2376
+ query?: never;
2377
+ header?: never;
2378
+ path: {
2379
+ id: string;
2380
+ };
2381
+ cookie?: never;
2382
+ };
2383
+ requestBody: {
2384
+ content: {
2385
+ "application/json": import(".").components["schemas"]["AddCartItemRequest"];
2386
+ };
2387
+ };
2388
+ responses: {
2389
+ 201: {
2390
+ headers: {
2391
+ [name: string]: unknown;
2392
+ };
2393
+ content: {
2394
+ "application/json": import(".").components["schemas"]["CartResponse"];
2395
+ };
2396
+ };
2397
+ 400: {
2398
+ headers: {
2399
+ [name: string]: unknown;
2400
+ };
2401
+ content: {
2402
+ "application/json": import(".").components["schemas"]["Error"];
2403
+ };
2404
+ };
2405
+ 401: {
2406
+ headers: {
2407
+ [name: string]: unknown;
2408
+ };
2409
+ content: {
2410
+ "application/json": import(".").components["schemas"]["Error"];
2411
+ };
2412
+ };
2413
+ 403: {
2414
+ headers: {
2415
+ [name: string]: unknown;
2416
+ };
2417
+ content: {
2418
+ "application/json": import(".").components["schemas"]["Error"];
2419
+ };
2420
+ };
2421
+ 404: {
2422
+ headers: {
2423
+ [name: string]: unknown;
2424
+ };
2425
+ content: {
2426
+ "application/json": import(".").components["schemas"]["Error"];
2427
+ };
2428
+ };
2429
+ 422: {
2430
+ headers: {
2431
+ [name: string]: unknown;
2432
+ };
2433
+ content: {
2434
+ "application/json": import(".").components["schemas"]["Error"];
2435
+ };
2436
+ };
2437
+ };
2438
+ }, {
2439
+ params: {
2440
+ path: {
2441
+ id: string;
2442
+ };
2443
+ };
2444
+ body: {
2445
+ entityId: string;
2446
+ variantId?: string | null;
2447
+ quantity: number;
2448
+ };
2449
+ }, `${string}/${string}`>>;
2450
+ updateItem(id: string, itemId: string, body: paths["/api/carts/{id}/items/{itemId}"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2451
+ parameters: {
2452
+ query?: never;
2453
+ header?: never;
2454
+ path: {
2455
+ id: string;
2456
+ itemId: string;
2457
+ };
2458
+ cookie?: never;
2459
+ };
2460
+ requestBody: {
2461
+ content: {
2462
+ "application/json": import(".").components["schemas"]["UpdateCartItemQuantityRequest"];
2463
+ };
2464
+ };
2465
+ responses: {
2466
+ 200: {
2467
+ headers: {
2468
+ [name: string]: unknown;
2469
+ };
2470
+ content: {
2471
+ "application/json": import(".").components["schemas"]["CartResponse"];
2472
+ };
2473
+ };
2474
+ 400: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content: {
2479
+ "application/json": import(".").components["schemas"]["Error"];
2480
+ };
2481
+ };
2482
+ 401: {
2483
+ headers: {
2484
+ [name: string]: unknown;
2485
+ };
2486
+ content: {
2487
+ "application/json": import(".").components["schemas"]["Error"];
2488
+ };
2489
+ };
2490
+ 403: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": import(".").components["schemas"]["Error"];
2496
+ };
2497
+ };
2498
+ 404: {
2499
+ headers: {
2500
+ [name: string]: unknown;
2501
+ };
2502
+ content: {
2503
+ "application/json": import(".").components["schemas"]["Error"];
2504
+ };
2505
+ };
2506
+ 422: {
2507
+ headers: {
2508
+ [name: string]: unknown;
2509
+ };
2510
+ content: {
2511
+ "application/json": import(".").components["schemas"]["Error"];
2512
+ };
2513
+ };
2514
+ };
2515
+ }, {
2516
+ params: {
2517
+ path: {
2518
+ id: string;
2519
+ itemId: string;
2520
+ };
2521
+ };
2522
+ body: {
2523
+ quantity: number;
2524
+ };
2525
+ }, `${string}/${string}`>>;
2526
+ removeItem(id: string, itemId: string): Promise<import("openapi-fetch").FetchResponse<{
2527
+ parameters: {
2528
+ query?: never;
2529
+ header?: never;
2530
+ path: {
2531
+ id: string;
2532
+ itemId: string;
2533
+ };
2534
+ cookie?: never;
2535
+ };
2536
+ requestBody?: never;
2537
+ responses: {
2538
+ 200: {
2539
+ headers: {
2540
+ [name: string]: unknown;
2541
+ };
2542
+ content: {
2543
+ "application/json": import(".").components["schemas"]["DeletedResponse"];
2544
+ };
2545
+ };
2546
+ 400: {
2547
+ headers: {
2548
+ [name: string]: unknown;
2549
+ };
2550
+ content: {
2551
+ "application/json": import(".").components["schemas"]["Error"];
2552
+ };
2553
+ };
2554
+ 401: {
2555
+ headers: {
2556
+ [name: string]: unknown;
2557
+ };
2558
+ content: {
2559
+ "application/json": import(".").components["schemas"]["Error"];
2560
+ };
2561
+ };
2562
+ 403: {
2563
+ headers: {
2564
+ [name: string]: unknown;
2565
+ };
2566
+ content: {
2567
+ "application/json": import(".").components["schemas"]["Error"];
2568
+ };
2569
+ };
2570
+ 404: {
2571
+ headers: {
2572
+ [name: string]: unknown;
2573
+ };
2574
+ content: {
2575
+ "application/json": import(".").components["schemas"]["Error"];
2576
+ };
2577
+ };
2578
+ 422: {
2579
+ headers: {
2580
+ [name: string]: unknown;
2581
+ };
2582
+ content: {
2583
+ "application/json": import(".").components["schemas"]["Error"];
2584
+ };
2585
+ };
2586
+ };
2587
+ }, {
2588
+ params: {
2589
+ path: {
2590
+ id: string;
2591
+ itemId: string;
2592
+ };
2593
+ };
2594
+ }, `${string}/${string}`>>;
2595
+ };
2596
+ checkout: {
2597
+ create(body: paths["/api/checkout"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2598
+ parameters: {
2599
+ query?: never;
2600
+ header?: never;
2601
+ path?: never;
2602
+ cookie?: never;
2603
+ };
2604
+ requestBody: {
2605
+ content: {
2606
+ "application/json": import(".").components["schemas"]["CheckoutRequest"];
2607
+ };
2608
+ };
2609
+ responses: {
2610
+ 201: {
2611
+ headers: {
2612
+ [name: string]: unknown;
2613
+ };
2614
+ content: {
2615
+ "application/json": import(".").components["schemas"]["CheckoutResponse"];
2616
+ };
2617
+ };
2618
+ 400: {
2619
+ headers: {
2620
+ [name: string]: unknown;
2621
+ };
2622
+ content: {
2623
+ "application/json": import(".").components["schemas"]["Error"];
2624
+ };
2625
+ };
2626
+ 401: {
2627
+ headers: {
2628
+ [name: string]: unknown;
2629
+ };
2630
+ content: {
2631
+ "application/json": import(".").components["schemas"]["Error"];
2632
+ };
2633
+ };
2634
+ 403: {
2635
+ headers: {
2636
+ [name: string]: unknown;
2637
+ };
2638
+ content: {
2639
+ "application/json": import(".").components["schemas"]["Error"];
2640
+ };
2641
+ };
2642
+ 404: {
2643
+ headers: {
2644
+ [name: string]: unknown;
2645
+ };
2646
+ content: {
2647
+ "application/json": import(".").components["schemas"]["Error"];
2648
+ };
2649
+ };
2650
+ 422: {
2651
+ headers: {
2652
+ [name: string]: unknown;
2653
+ };
2654
+ content: {
2655
+ "application/json": import(".").components["schemas"]["Error"];
2656
+ };
2657
+ };
2658
+ };
2659
+ }, {
2660
+ body: {
2661
+ cartId: string;
2662
+ paymentMethodId: string;
2663
+ customerId?: string;
2664
+ customerGroupIds?: string[];
2665
+ currency?: string;
2666
+ promotionCodes?: string[];
2667
+ shippingAddress?: {
2668
+ line1: string;
2669
+ line2?: string;
2670
+ city: string;
2671
+ state?: string;
2672
+ postalCode: string;
2673
+ country: string;
2674
+ };
2675
+ };
2676
+ }, `${string}/${string}`>>;
2677
+ };
2678
+ orders: {
2679
+ list(query?: {
2680
+ page?: string;
2681
+ limit?: string;
2682
+ status?: string;
2683
+ }): Promise<import("openapi-fetch").FetchResponse<{
2684
+ parameters: {
2685
+ query?: {
2686
+ status?: string;
2687
+ page?: string;
2688
+ limit?: string;
2689
+ };
2690
+ header?: never;
2691
+ path?: never;
2692
+ cookie?: never;
2693
+ };
2694
+ requestBody?: never;
2695
+ responses: {
2696
+ 200: {
2697
+ headers: {
2698
+ [name: string]: unknown;
2699
+ };
2700
+ content: {
2701
+ "application/json": import(".").components["schemas"]["OrderListResponse"];
2702
+ };
2703
+ };
2704
+ };
2705
+ }, {
2706
+ params: {
2707
+ query: {
2708
+ page?: string;
2709
+ limit?: string;
2710
+ status?: string;
2711
+ };
2712
+ };
2713
+ } | {
2714
+ params?: never;
2715
+ }, `${string}/${string}`>>;
2716
+ get(idOrNumber: string): Promise<import("openapi-fetch").FetchResponse<{
2717
+ parameters: {
2718
+ query?: never;
2719
+ header?: never;
2720
+ path: {
2721
+ idOrNumber: string;
2722
+ };
2723
+ cookie?: never;
2724
+ };
2725
+ requestBody?: never;
2726
+ responses: {
2727
+ 200: {
2728
+ headers: {
2729
+ [name: string]: unknown;
2730
+ };
2731
+ content: {
2732
+ "application/json": import(".").components["schemas"]["OrderResponse"];
2733
+ };
2734
+ };
2735
+ 400: {
2736
+ headers: {
2737
+ [name: string]: unknown;
2738
+ };
2739
+ content: {
2740
+ "application/json": import(".").components["schemas"]["Error"];
2741
+ };
2742
+ };
2743
+ 401: {
2744
+ headers: {
2745
+ [name: string]: unknown;
2746
+ };
2747
+ content: {
2748
+ "application/json": import(".").components["schemas"]["Error"];
2749
+ };
2750
+ };
2751
+ 403: {
2752
+ headers: {
2753
+ [name: string]: unknown;
2754
+ };
2755
+ content: {
2756
+ "application/json": import(".").components["schemas"]["Error"];
2757
+ };
2758
+ };
2759
+ 404: {
2760
+ headers: {
2761
+ [name: string]: unknown;
2762
+ };
2763
+ content: {
2764
+ "application/json": import(".").components["schemas"]["Error"];
2765
+ };
2766
+ };
2767
+ 422: {
2768
+ headers: {
2769
+ [name: string]: unknown;
2770
+ };
2771
+ content: {
2772
+ "application/json": import(".").components["schemas"]["Error"];
2773
+ };
2774
+ };
2775
+ };
2776
+ }, {
2777
+ params: {
2778
+ path: {
2779
+ idOrNumber: string;
2780
+ };
2781
+ };
2782
+ }, `${string}/${string}`>>;
2783
+ changeStatus(id: string, body: paths["/api/orders/{id}/status"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2784
+ parameters: {
2785
+ query?: never;
2786
+ header?: never;
2787
+ path: {
2788
+ id: string;
2789
+ };
2790
+ cookie?: never;
2791
+ };
2792
+ requestBody: {
2793
+ content: {
2794
+ "application/json": import(".").components["schemas"]["ChangeOrderStatusRequest"];
2795
+ };
2796
+ };
2797
+ responses: {
2798
+ 200: {
2799
+ headers: {
2800
+ [name: string]: unknown;
2801
+ };
2802
+ content: {
2803
+ "application/json": import(".").components["schemas"]["OrderResponse"];
2804
+ };
2805
+ };
2806
+ 400: {
2807
+ headers: {
2808
+ [name: string]: unknown;
2809
+ };
2810
+ content: {
2811
+ "application/json": import(".").components["schemas"]["Error"];
2812
+ };
2813
+ };
2814
+ 401: {
2815
+ headers: {
2816
+ [name: string]: unknown;
2817
+ };
2818
+ content: {
2819
+ "application/json": import(".").components["schemas"]["Error"];
2820
+ };
2821
+ };
2822
+ 403: {
2823
+ headers: {
2824
+ [name: string]: unknown;
2825
+ };
2826
+ content: {
2827
+ "application/json": import(".").components["schemas"]["Error"];
2828
+ };
2829
+ };
2830
+ 404: {
2831
+ headers: {
2832
+ [name: string]: unknown;
2833
+ };
2834
+ content: {
2835
+ "application/json": import(".").components["schemas"]["Error"];
2836
+ };
2837
+ };
2838
+ 422: {
2839
+ headers: {
2840
+ [name: string]: unknown;
2841
+ };
2842
+ content: {
2843
+ "application/json": import(".").components["schemas"]["Error"];
2844
+ };
2845
+ };
2846
+ };
2847
+ }, {
2848
+ params: {
2849
+ path: {
2850
+ id: string;
2851
+ };
2852
+ };
2853
+ body: {
2854
+ status: "pending" | "confirmed" | "processing" | "partially_fulfilled" | "fulfilled" | "refunded" | "cancelled";
2855
+ reason?: string;
2856
+ };
2857
+ }, `${string}/${string}`>>;
2858
+ listFulfillments(id: string): Promise<import("openapi-fetch").FetchResponse<{
2859
+ parameters: {
2860
+ query?: never;
2861
+ header?: never;
2862
+ path: {
2863
+ id: string;
2864
+ };
2865
+ cookie?: never;
2866
+ };
2867
+ requestBody?: never;
2868
+ responses: {
2869
+ 200: {
2870
+ headers: {
2871
+ [name: string]: unknown;
2872
+ };
2873
+ content: {
2874
+ "application/json": import(".").components["schemas"]["OrderResponse"];
2875
+ };
2876
+ };
2877
+ 400: {
2878
+ headers: {
2879
+ [name: string]: unknown;
2880
+ };
2881
+ content: {
2882
+ "application/json": import(".").components["schemas"]["Error"];
2883
+ };
2884
+ };
2885
+ 401: {
2886
+ headers: {
2887
+ [name: string]: unknown;
2888
+ };
2889
+ content: {
2890
+ "application/json": import(".").components["schemas"]["Error"];
2891
+ };
2892
+ };
2893
+ 403: {
2894
+ headers: {
2895
+ [name: string]: unknown;
2896
+ };
2897
+ content: {
2898
+ "application/json": import(".").components["schemas"]["Error"];
2899
+ };
2900
+ };
2901
+ 404: {
2902
+ headers: {
2903
+ [name: string]: unknown;
2904
+ };
2905
+ content: {
2906
+ "application/json": import(".").components["schemas"]["Error"];
2907
+ };
2908
+ };
2909
+ 422: {
2910
+ headers: {
2911
+ [name: string]: unknown;
2912
+ };
2913
+ content: {
2914
+ "application/json": import(".").components["schemas"]["Error"];
2915
+ };
2916
+ };
2917
+ };
2918
+ }, {
2919
+ params: {
2920
+ path: {
2921
+ id: string;
2922
+ };
2923
+ };
2924
+ }, `${string}/${string}`>>;
2925
+ };
2926
+ pricing: {
2927
+ setBasePrice(body: paths["/api/pricing/prices"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
2928
+ parameters: {
2929
+ query?: never;
2930
+ header?: never;
2931
+ path?: never;
2932
+ cookie?: never;
2933
+ };
2934
+ requestBody: {
2935
+ content: {
2936
+ "application/json": import(".").components["schemas"]["SetBasePriceRequest"];
2937
+ };
2938
+ };
2939
+ responses: {
2940
+ 201: {
2941
+ headers: {
2942
+ [name: string]: unknown;
2943
+ };
2944
+ content: {
2945
+ "application/json": import(".").components["schemas"]["PricingResponse"];
2946
+ };
2947
+ };
2948
+ 400: {
2949
+ headers: {
2950
+ [name: string]: unknown;
2951
+ };
2952
+ content: {
2953
+ "application/json": import(".").components["schemas"]["Error"];
2954
+ };
2955
+ };
2956
+ 401: {
2957
+ headers: {
2958
+ [name: string]: unknown;
2959
+ };
2960
+ content: {
2961
+ "application/json": import(".").components["schemas"]["Error"];
2962
+ };
2963
+ };
2964
+ 403: {
2965
+ headers: {
2966
+ [name: string]: unknown;
2967
+ };
2968
+ content: {
2969
+ "application/json": import(".").components["schemas"]["Error"];
2970
+ };
2971
+ };
2972
+ 404: {
2973
+ headers: {
2974
+ [name: string]: unknown;
2975
+ };
2976
+ content: {
2977
+ "application/json": import(".").components["schemas"]["Error"];
2978
+ };
2979
+ };
2980
+ 422: {
2981
+ headers: {
2982
+ [name: string]: unknown;
2983
+ };
2984
+ content: {
2985
+ "application/json": import(".").components["schemas"]["Error"];
2986
+ };
2987
+ };
2988
+ };
2989
+ }, {
2990
+ body: {
2991
+ entityId: string;
2992
+ variantId?: string;
2993
+ currency: string;
2994
+ amount: number;
2995
+ customerGroupId?: string;
2996
+ minQuantity?: number;
2997
+ maxQuantity?: number;
2998
+ validFrom?: string | null;
2999
+ validUntil?: string | null;
3000
+ metadata?: {
3001
+ [key: string]: unknown;
3002
+ };
3003
+ };
3004
+ }, `${string}/${string}`>>;
3005
+ listPrices(query?: {
3006
+ entityId?: string;
3007
+ variantId?: string;
3008
+ currency?: string;
3009
+ }): Promise<import("openapi-fetch").FetchResponse<{
3010
+ parameters: {
3011
+ query?: {
3012
+ entityId?: string;
3013
+ variantId?: string;
3014
+ currency?: string;
3015
+ customerGroupId?: string;
3016
+ };
3017
+ header?: never;
3018
+ path?: never;
3019
+ cookie?: never;
3020
+ };
3021
+ requestBody?: never;
3022
+ responses: {
3023
+ 200: {
3024
+ headers: {
3025
+ [name: string]: unknown;
3026
+ };
3027
+ content: {
3028
+ "application/json": import(".").components["schemas"]["PricingResponse"];
3029
+ };
3030
+ };
3031
+ };
3032
+ }, {
3033
+ params: {
3034
+ query: {
3035
+ entityId?: string;
3036
+ variantId?: string;
3037
+ currency?: string;
3038
+ };
3039
+ };
3040
+ } | {
3041
+ params?: never;
3042
+ }, `${string}/${string}`>>;
3043
+ createModifier(body: paths["/api/pricing/modifiers"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3044
+ parameters: {
3045
+ query?: never;
3046
+ header?: never;
3047
+ path?: never;
3048
+ cookie?: never;
3049
+ };
3050
+ requestBody: {
3051
+ content: {
3052
+ "application/json": import(".").components["schemas"]["CreateModifierRequest"];
3053
+ };
3054
+ };
3055
+ responses: {
3056
+ 201: {
3057
+ headers: {
3058
+ [name: string]: unknown;
3059
+ };
3060
+ content: {
3061
+ "application/json": import(".").components["schemas"]["PricingResponse"];
3062
+ };
3063
+ };
3064
+ 400: {
3065
+ headers: {
3066
+ [name: string]: unknown;
3067
+ };
3068
+ content: {
3069
+ "application/json": import(".").components["schemas"]["Error"];
3070
+ };
3071
+ };
3072
+ 401: {
3073
+ headers: {
3074
+ [name: string]: unknown;
3075
+ };
3076
+ content: {
3077
+ "application/json": import(".").components["schemas"]["Error"];
3078
+ };
3079
+ };
3080
+ 403: {
3081
+ headers: {
3082
+ [name: string]: unknown;
3083
+ };
3084
+ content: {
3085
+ "application/json": import(".").components["schemas"]["Error"];
3086
+ };
3087
+ };
3088
+ 404: {
3089
+ headers: {
3090
+ [name: string]: unknown;
3091
+ };
3092
+ content: {
3093
+ "application/json": import(".").components["schemas"]["Error"];
3094
+ };
3095
+ };
3096
+ 422: {
3097
+ headers: {
3098
+ [name: string]: unknown;
3099
+ };
3100
+ content: {
3101
+ "application/json": import(".").components["schemas"]["Error"];
3102
+ };
3103
+ };
3104
+ };
3105
+ }, {
3106
+ body: {
3107
+ name: string;
3108
+ type: "percentage_discount" | "fixed_discount" | "markup" | "override";
3109
+ value: number;
3110
+ priority?: number;
3111
+ entityId?: string;
3112
+ variantId?: string;
3113
+ customerGroupId?: string;
3114
+ currency?: string;
3115
+ minQuantity?: number;
3116
+ maxQuantity?: number;
3117
+ conditions?: {
3118
+ [key: string]: unknown;
3119
+ };
3120
+ validFrom?: string | null;
3121
+ validUntil?: string | null;
3122
+ metadata?: {
3123
+ [key: string]: unknown;
3124
+ };
3125
+ };
3126
+ }, `${string}/${string}`>>;
3127
+ };
3128
+ promotions: {
3129
+ create(body: paths["/api/promotions"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3130
+ parameters: {
3131
+ query?: never;
3132
+ header?: never;
3133
+ path?: never;
3134
+ cookie?: never;
3135
+ };
3136
+ requestBody: {
3137
+ content: {
3138
+ "application/json": import(".").components["schemas"]["CreatePromotionRequest"];
3139
+ };
3140
+ };
3141
+ responses: {
3142
+ 201: {
3143
+ headers: {
3144
+ [name: string]: unknown;
3145
+ };
3146
+ content: {
3147
+ "application/json": import(".").components["schemas"]["PromotionResponse"];
3148
+ };
3149
+ };
3150
+ 400: {
3151
+ headers: {
3152
+ [name: string]: unknown;
3153
+ };
3154
+ content: {
3155
+ "application/json": import(".").components["schemas"]["Error"];
3156
+ };
3157
+ };
3158
+ 401: {
3159
+ headers: {
3160
+ [name: string]: unknown;
3161
+ };
3162
+ content: {
3163
+ "application/json": import(".").components["schemas"]["Error"];
3164
+ };
3165
+ };
3166
+ 403: {
3167
+ headers: {
3168
+ [name: string]: unknown;
3169
+ };
3170
+ content: {
3171
+ "application/json": import(".").components["schemas"]["Error"];
3172
+ };
3173
+ };
3174
+ 404: {
3175
+ headers: {
3176
+ [name: string]: unknown;
3177
+ };
3178
+ content: {
3179
+ "application/json": import(".").components["schemas"]["Error"];
3180
+ };
3181
+ };
3182
+ 422: {
3183
+ headers: {
3184
+ [name: string]: unknown;
3185
+ };
3186
+ content: {
3187
+ "application/json": import(".").components["schemas"]["Error"];
3188
+ };
3189
+ };
3190
+ };
3191
+ }, {
3192
+ body: {
3193
+ name: string;
3194
+ type: "percentage_off_order" | "fixed_off_order" | "percentage_off_item" | "fixed_off_item" | "free_shipping" | "buy_x_get_y";
3195
+ value: number;
3196
+ code?: string;
3197
+ buyQuantity?: number;
3198
+ getQuantity?: number;
3199
+ isAutomatic?: boolean;
3200
+ isActive?: boolean;
3201
+ priority?: number;
3202
+ conditions?: {
3203
+ minimumOrderValue?: number;
3204
+ minimumQuantity?: number;
3205
+ entityTypes?: string[];
3206
+ categories?: string[];
3207
+ customerGroups?: string[];
3208
+ };
3209
+ usageLimitTotal?: number;
3210
+ usageLimitPerCustomer?: number;
3211
+ validFrom?: string | null;
3212
+ validUntil?: string | null;
3213
+ metadata?: {
3214
+ [key: string]: unknown;
3215
+ };
3216
+ };
3217
+ }, `${string}/${string}`>>;
3218
+ list(): Promise<import("openapi-fetch").FetchResponse<{
3219
+ parameters: {
3220
+ query?: never;
3221
+ header?: never;
3222
+ path?: never;
3223
+ cookie?: never;
3224
+ };
3225
+ requestBody?: never;
3226
+ responses: {
3227
+ 200: {
3228
+ headers: {
3229
+ [name: string]: unknown;
3230
+ };
3231
+ content: {
3232
+ "application/json": import(".").components["schemas"]["PromotionResponse"];
3233
+ };
3234
+ };
3235
+ };
3236
+ }, import("openapi-fetch").FetchOptions<{
3237
+ parameters: {
3238
+ query?: never;
3239
+ header?: never;
3240
+ path?: never;
3241
+ cookie?: never;
3242
+ };
3243
+ requestBody?: never;
3244
+ responses: {
3245
+ 200: {
3246
+ headers: {
3247
+ [name: string]: unknown;
3248
+ };
3249
+ content: {
3250
+ "application/json": import(".").components["schemas"]["PromotionResponse"];
3251
+ };
3252
+ };
3253
+ };
3254
+ }> | undefined, `${string}/${string}`>>;
3255
+ validate(body: paths["/api/promotions/validate"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3256
+ parameters: {
3257
+ query?: never;
3258
+ header?: never;
3259
+ path?: never;
3260
+ cookie?: never;
3261
+ };
3262
+ requestBody: {
3263
+ content: {
3264
+ "application/json": import(".").components["schemas"]["ValidatePromotionRequest"];
3265
+ };
3266
+ };
3267
+ responses: {
3268
+ 200: {
3269
+ headers: {
3270
+ [name: string]: unknown;
3271
+ };
3272
+ content: {
3273
+ "application/json": import(".").components["schemas"]["PromotionResponse"];
3274
+ };
3275
+ };
3276
+ 400: {
3277
+ headers: {
3278
+ [name: string]: unknown;
3279
+ };
3280
+ content: {
3281
+ "application/json": import(".").components["schemas"]["Error"];
3282
+ };
3283
+ };
3284
+ 401: {
3285
+ headers: {
3286
+ [name: string]: unknown;
3287
+ };
3288
+ content: {
3289
+ "application/json": import(".").components["schemas"]["Error"];
3290
+ };
3291
+ };
3292
+ 403: {
3293
+ headers: {
3294
+ [name: string]: unknown;
3295
+ };
3296
+ content: {
3297
+ "application/json": import(".").components["schemas"]["Error"];
3298
+ };
3299
+ };
3300
+ 404: {
3301
+ headers: {
3302
+ [name: string]: unknown;
3303
+ };
3304
+ content: {
3305
+ "application/json": import(".").components["schemas"]["Error"];
3306
+ };
3307
+ };
3308
+ 422: {
3309
+ headers: {
3310
+ [name: string]: unknown;
3311
+ };
3312
+ content: {
3313
+ "application/json": import(".").components["schemas"]["Error"];
3314
+ };
3315
+ };
3316
+ };
3317
+ }, {
3318
+ body: {
3319
+ code: string;
3320
+ currency: string;
3321
+ subtotal: number;
3322
+ lineItems: {
3323
+ entityId: string;
3324
+ entityType: string;
3325
+ quantity: number;
3326
+ unitPrice: number;
3327
+ totalPrice: number;
3328
+ }[];
3329
+ customerId?: string;
3330
+ customerGroupIds?: string[];
3331
+ };
3332
+ }, `${string}/${string}`>>;
3333
+ deactivate(id: string): Promise<import("openapi-fetch").FetchResponse<{
3334
+ parameters: {
3335
+ query?: never;
3336
+ header?: never;
3337
+ path: {
3338
+ id: string;
3339
+ };
3340
+ cookie?: never;
3341
+ };
3342
+ requestBody?: never;
3343
+ responses: {
3344
+ 200: {
3345
+ headers: {
3346
+ [name: string]: unknown;
3347
+ };
3348
+ content: {
3349
+ "application/json": import(".").components["schemas"]["PromotionResponse"];
3350
+ };
3351
+ };
3352
+ 400: {
3353
+ headers: {
3354
+ [name: string]: unknown;
3355
+ };
3356
+ content: {
3357
+ "application/json": import(".").components["schemas"]["Error"];
3358
+ };
3359
+ };
3360
+ 401: {
3361
+ headers: {
3362
+ [name: string]: unknown;
3363
+ };
3364
+ content: {
3365
+ "application/json": import(".").components["schemas"]["Error"];
3366
+ };
3367
+ };
3368
+ 403: {
3369
+ headers: {
3370
+ [name: string]: unknown;
3371
+ };
3372
+ content: {
3373
+ "application/json": import(".").components["schemas"]["Error"];
3374
+ };
3375
+ };
3376
+ 404: {
3377
+ headers: {
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content: {
3381
+ "application/json": import(".").components["schemas"]["Error"];
3382
+ };
3383
+ };
3384
+ 422: {
3385
+ headers: {
3386
+ [name: string]: unknown;
3387
+ };
3388
+ content: {
3389
+ "application/json": import(".").components["schemas"]["Error"];
3390
+ };
3391
+ };
3392
+ };
3393
+ }, {
3394
+ params: {
3395
+ path: {
3396
+ id: string;
3397
+ };
3398
+ };
3399
+ }, `${string}/${string}`>>;
3400
+ };
3401
+ search: {
3402
+ query(query: {
3403
+ q: string;
3404
+ type?: string;
3405
+ page?: string;
3406
+ limit?: string;
3407
+ }): Promise<import("openapi-fetch").FetchResponse<{
3408
+ parameters: {
3409
+ query?: {
3410
+ q?: string;
3411
+ type?: string;
3412
+ category?: string;
3413
+ brand?: string;
3414
+ status?: string;
3415
+ page?: string;
3416
+ limit?: string;
3417
+ facets?: string;
3418
+ };
3419
+ header?: never;
3420
+ path?: never;
3421
+ cookie?: never;
3422
+ };
3423
+ requestBody?: never;
3424
+ responses: {
3425
+ 200: {
3426
+ headers: {
3427
+ [name: string]: unknown;
3428
+ };
3429
+ content: {
3430
+ "application/json": {
3431
+ data: import(".").components["schemas"]["CatalogEntity"][];
3432
+ meta?: {
3433
+ pagination: {
3434
+ page: number;
3435
+ limit: number;
3436
+ total?: number;
3437
+ };
3438
+ };
3439
+ };
3440
+ };
3441
+ };
3442
+ };
3443
+ }, {
3444
+ params: {
3445
+ query: {
3446
+ q: string;
3447
+ type?: string;
3448
+ page?: string;
3449
+ limit?: string;
3450
+ };
3451
+ };
3452
+ }, `${string}/${string}`>>;
3453
+ suggest(query: {
3454
+ prefix: string;
3455
+ type?: string;
3456
+ limit?: string;
3457
+ }): Promise<import("openapi-fetch").FetchResponse<{
3458
+ parameters: {
3459
+ query?: {
3460
+ prefix?: string;
3461
+ type?: string;
3462
+ limit?: string;
3463
+ };
3464
+ header?: never;
3465
+ path?: never;
3466
+ cookie?: never;
3467
+ };
3468
+ requestBody?: never;
3469
+ responses: {
3470
+ 200: {
3471
+ headers: {
3472
+ [name: string]: unknown;
3473
+ };
3474
+ content: {
3475
+ "application/json": {
3476
+ data: {
3477
+ id: string;
3478
+ slug: string;
3479
+ title?: string;
3480
+ }[];
3481
+ };
3482
+ };
3483
+ };
3484
+ };
3485
+ }, {
3486
+ params: {
3487
+ query: {
3488
+ prefix: string;
3489
+ type?: string;
3490
+ limit?: string;
3491
+ };
3492
+ };
3493
+ }, `${string}/${string}`>>;
3494
+ };
3495
+ webhooks: {
3496
+ create(body: paths["/api/webhooks"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3497
+ parameters: {
3498
+ query?: never;
3499
+ header?: never;
3500
+ path?: never;
3501
+ cookie?: never;
3502
+ };
3503
+ requestBody: {
3504
+ content: {
3505
+ "application/json": import(".").components["schemas"]["CreateWebhookEndpointRequest"];
3506
+ };
3507
+ };
3508
+ responses: {
3509
+ 201: {
3510
+ headers: {
3511
+ [name: string]: unknown;
3512
+ };
3513
+ content: {
3514
+ "application/json": {
3515
+ data: {
3516
+ [key: string]: unknown;
3517
+ };
3518
+ };
3519
+ };
3520
+ };
3521
+ 400: {
3522
+ headers: {
3523
+ [name: string]: unknown;
3524
+ };
3525
+ content: {
3526
+ "application/json": import(".").components["schemas"]["Error"];
3527
+ };
3528
+ };
3529
+ 401: {
3530
+ headers: {
3531
+ [name: string]: unknown;
3532
+ };
3533
+ content: {
3534
+ "application/json": import(".").components["schemas"]["Error"];
3535
+ };
3536
+ };
3537
+ 403: {
3538
+ headers: {
3539
+ [name: string]: unknown;
3540
+ };
3541
+ content: {
3542
+ "application/json": import(".").components["schemas"]["Error"];
3543
+ };
3544
+ };
3545
+ 404: {
3546
+ headers: {
3547
+ [name: string]: unknown;
3548
+ };
3549
+ content: {
3550
+ "application/json": import(".").components["schemas"]["Error"];
3551
+ };
3552
+ };
3553
+ 422: {
3554
+ headers: {
3555
+ [name: string]: unknown;
3556
+ };
3557
+ content: {
3558
+ "application/json": import(".").components["schemas"]["Error"];
3559
+ };
3560
+ };
3561
+ };
3562
+ }, {
3563
+ body: {
3564
+ url: string;
3565
+ events: string[];
3566
+ secret?: string;
3567
+ metadata?: {
3568
+ [key: string]: unknown;
3569
+ };
3570
+ };
3571
+ }, `${string}/${string}`>>;
3572
+ list(): Promise<import("openapi-fetch").FetchResponse<{
3573
+ parameters: {
3574
+ query?: never;
3575
+ header?: never;
3576
+ path?: never;
3577
+ cookie?: never;
3578
+ };
3579
+ requestBody?: never;
3580
+ responses: {
3581
+ 200: {
3582
+ headers: {
3583
+ [name: string]: unknown;
3584
+ };
3585
+ content: {
3586
+ "application/json": {
3587
+ data: {
3588
+ [key: string]: unknown;
3589
+ }[];
3590
+ };
3591
+ };
3592
+ };
3593
+ };
3594
+ }, import("openapi-fetch").FetchOptions<{
3595
+ parameters: {
3596
+ query?: never;
3597
+ header?: never;
3598
+ path?: never;
3599
+ cookie?: never;
3600
+ };
3601
+ requestBody?: never;
3602
+ responses: {
3603
+ 200: {
3604
+ headers: {
3605
+ [name: string]: unknown;
3606
+ };
3607
+ content: {
3608
+ "application/json": {
3609
+ data: {
3610
+ [key: string]: unknown;
3611
+ }[];
3612
+ };
3613
+ };
3614
+ };
3615
+ };
3616
+ }> | undefined, `${string}/${string}`>>;
3617
+ remove(id: string): Promise<import("openapi-fetch").FetchResponse<{
3618
+ parameters: {
3619
+ query?: never;
3620
+ header?: never;
3621
+ path: {
3622
+ id: string;
3623
+ };
3624
+ cookie?: never;
3625
+ };
3626
+ requestBody?: never;
3627
+ responses: {
3628
+ 200: {
3629
+ headers: {
3630
+ [name: string]: unknown;
3631
+ };
3632
+ content: {
3633
+ "application/json": {
3634
+ data: {
3635
+ deleted: true;
3636
+ };
3637
+ };
3638
+ };
3639
+ };
3640
+ 400: {
3641
+ headers: {
3642
+ [name: string]: unknown;
3643
+ };
3644
+ content: {
3645
+ "application/json": import(".").components["schemas"]["Error"];
3646
+ };
3647
+ };
3648
+ 401: {
3649
+ headers: {
3650
+ [name: string]: unknown;
3651
+ };
3652
+ content: {
3653
+ "application/json": import(".").components["schemas"]["Error"];
3654
+ };
3655
+ };
3656
+ 403: {
3657
+ headers: {
3658
+ [name: string]: unknown;
3659
+ };
3660
+ content: {
3661
+ "application/json": import(".").components["schemas"]["Error"];
3662
+ };
3663
+ };
3664
+ 404: {
3665
+ headers: {
3666
+ [name: string]: unknown;
3667
+ };
3668
+ content: {
3669
+ "application/json": import(".").components["schemas"]["Error"];
3670
+ };
3671
+ };
3672
+ 422: {
3673
+ headers: {
3674
+ [name: string]: unknown;
3675
+ };
3676
+ content: {
3677
+ "application/json": import(".").components["schemas"]["Error"];
3678
+ };
3679
+ };
3680
+ };
3681
+ }, {
3682
+ params: {
3683
+ path: {
3684
+ id: string;
3685
+ };
3686
+ };
3687
+ }, `${string}/${string}`>>;
3688
+ };
3689
+ me: {
3690
+ profile: {
3691
+ get(): Promise<import("openapi-fetch").FetchResponse<{
3692
+ parameters: {
3693
+ query?: never;
3694
+ header?: never;
3695
+ path?: never;
3696
+ cookie?: never;
3697
+ };
3698
+ requestBody?: never;
3699
+ responses: {
3700
+ 200: {
3701
+ headers: {
3702
+ [name: string]: unknown;
3703
+ };
3704
+ content: {
3705
+ "application/json": import(".").components["schemas"]["CustomerResponse"];
3706
+ };
3707
+ };
3708
+ 400: {
3709
+ headers: {
3710
+ [name: string]: unknown;
3711
+ };
3712
+ content: {
3713
+ "application/json": import(".").components["schemas"]["Error"];
3714
+ };
3715
+ };
3716
+ 401: {
3717
+ headers: {
3718
+ [name: string]: unknown;
3719
+ };
3720
+ content: {
3721
+ "application/json": import(".").components["schemas"]["Error"];
3722
+ };
3723
+ };
3724
+ 403: {
3725
+ headers: {
3726
+ [name: string]: unknown;
3727
+ };
3728
+ content: {
3729
+ "application/json": import(".").components["schemas"]["Error"];
3730
+ };
3731
+ };
3732
+ 404: {
3733
+ headers: {
3734
+ [name: string]: unknown;
3735
+ };
3736
+ content: {
3737
+ "application/json": import(".").components["schemas"]["Error"];
3738
+ };
3739
+ };
3740
+ 422: {
3741
+ headers: {
3742
+ [name: string]: unknown;
3743
+ };
3744
+ content: {
3745
+ "application/json": import(".").components["schemas"]["Error"];
3746
+ };
3747
+ };
3748
+ };
3749
+ }, import("openapi-fetch").FetchOptions<{
3750
+ parameters: {
3751
+ query?: never;
3752
+ header?: never;
3753
+ path?: never;
3754
+ cookie?: never;
3755
+ };
3756
+ requestBody?: never;
3757
+ responses: {
3758
+ 200: {
3759
+ headers: {
3760
+ [name: string]: unknown;
3761
+ };
3762
+ content: {
3763
+ "application/json": import(".").components["schemas"]["CustomerResponse"];
3764
+ };
3765
+ };
3766
+ 400: {
3767
+ headers: {
3768
+ [name: string]: unknown;
3769
+ };
3770
+ content: {
3771
+ "application/json": import(".").components["schemas"]["Error"];
3772
+ };
3773
+ };
3774
+ 401: {
3775
+ headers: {
3776
+ [name: string]: unknown;
3777
+ };
3778
+ content: {
3779
+ "application/json": import(".").components["schemas"]["Error"];
3780
+ };
3781
+ };
3782
+ 403: {
3783
+ headers: {
3784
+ [name: string]: unknown;
3785
+ };
3786
+ content: {
3787
+ "application/json": import(".").components["schemas"]["Error"];
3788
+ };
3789
+ };
3790
+ 404: {
3791
+ headers: {
3792
+ [name: string]: unknown;
3793
+ };
3794
+ content: {
3795
+ "application/json": import(".").components["schemas"]["Error"];
3796
+ };
3797
+ };
3798
+ 422: {
3799
+ headers: {
3800
+ [name: string]: unknown;
3801
+ };
3802
+ content: {
3803
+ "application/json": import(".").components["schemas"]["Error"];
3804
+ };
3805
+ };
3806
+ };
3807
+ }> | undefined, `${string}/${string}`>>;
3808
+ update(body: paths["/api/me/profile"]["patch"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3809
+ parameters: {
3810
+ query?: never;
3811
+ header?: never;
3812
+ path?: never;
3813
+ cookie?: never;
3814
+ };
3815
+ requestBody: {
3816
+ content: {
3817
+ "application/json": import(".").components["schemas"]["UpdateProfileBody"];
3818
+ };
3819
+ };
3820
+ responses: {
3821
+ 200: {
3822
+ headers: {
3823
+ [name: string]: unknown;
3824
+ };
3825
+ content: {
3826
+ "application/json": import(".").components["schemas"]["CustomerResponse"];
3827
+ };
3828
+ };
3829
+ 400: {
3830
+ headers: {
3831
+ [name: string]: unknown;
3832
+ };
3833
+ content: {
3834
+ "application/json": import(".").components["schemas"]["Error"];
3835
+ };
3836
+ };
3837
+ 401: {
3838
+ headers: {
3839
+ [name: string]: unknown;
3840
+ };
3841
+ content: {
3842
+ "application/json": import(".").components["schemas"]["Error"];
3843
+ };
3844
+ };
3845
+ 403: {
3846
+ headers: {
3847
+ [name: string]: unknown;
3848
+ };
3849
+ content: {
3850
+ "application/json": import(".").components["schemas"]["Error"];
3851
+ };
3852
+ };
3853
+ 404: {
3854
+ headers: {
3855
+ [name: string]: unknown;
3856
+ };
3857
+ content: {
3858
+ "application/json": import(".").components["schemas"]["Error"];
3859
+ };
3860
+ };
3861
+ 422: {
3862
+ headers: {
3863
+ [name: string]: unknown;
3864
+ };
3865
+ content: {
3866
+ "application/json": import(".").components["schemas"]["Error"];
3867
+ };
3868
+ };
3869
+ };
3870
+ }, {
3871
+ body: {
3872
+ firstName?: string;
3873
+ lastName?: string;
3874
+ phone?: string;
3875
+ metadata?: {
3876
+ [key: string]: unknown;
3877
+ };
3878
+ };
3879
+ }, `${string}/${string}`>>;
3880
+ };
3881
+ addresses: {
3882
+ list(): Promise<import("openapi-fetch").FetchResponse<{
3883
+ parameters: {
3884
+ query?: never;
3885
+ header?: never;
3886
+ path?: never;
3887
+ cookie?: never;
3888
+ };
3889
+ requestBody?: never;
3890
+ responses: {
3891
+ 200: {
3892
+ headers: {
3893
+ [name: string]: unknown;
3894
+ };
3895
+ content: {
3896
+ "application/json": import(".").components["schemas"]["CustomerAddressListResponse"];
3897
+ };
3898
+ };
3899
+ };
3900
+ }, import("openapi-fetch").FetchOptions<{
3901
+ parameters: {
3902
+ query?: never;
3903
+ header?: never;
3904
+ path?: never;
3905
+ cookie?: never;
3906
+ };
3907
+ requestBody?: never;
3908
+ responses: {
3909
+ 200: {
3910
+ headers: {
3911
+ [name: string]: unknown;
3912
+ };
3913
+ content: {
3914
+ "application/json": import(".").components["schemas"]["CustomerAddressListResponse"];
3915
+ };
3916
+ };
3917
+ };
3918
+ }> | undefined, `${string}/${string}`>>;
3919
+ create(body: paths["/api/me/addresses"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
3920
+ parameters: {
3921
+ query?: never;
3922
+ header?: never;
3923
+ path?: never;
3924
+ cookie?: never;
3925
+ };
3926
+ requestBody: {
3927
+ content: {
3928
+ "application/json": import(".").components["schemas"]["CreateAddressBody"];
3929
+ };
3930
+ };
3931
+ responses: {
3932
+ 201: {
3933
+ headers: {
3934
+ [name: string]: unknown;
3935
+ };
3936
+ content: {
3937
+ "application/json": {
3938
+ data: {
3939
+ [key: string]: unknown;
3940
+ };
3941
+ };
3942
+ };
3943
+ };
3944
+ 400: {
3945
+ headers: {
3946
+ [name: string]: unknown;
3947
+ };
3948
+ content: {
3949
+ "application/json": import(".").components["schemas"]["Error"];
3950
+ };
3951
+ };
3952
+ 401: {
3953
+ headers: {
3954
+ [name: string]: unknown;
3955
+ };
3956
+ content: {
3957
+ "application/json": import(".").components["schemas"]["Error"];
3958
+ };
3959
+ };
3960
+ 403: {
3961
+ headers: {
3962
+ [name: string]: unknown;
3963
+ };
3964
+ content: {
3965
+ "application/json": import(".").components["schemas"]["Error"];
3966
+ };
3967
+ };
3968
+ 404: {
3969
+ headers: {
3970
+ [name: string]: unknown;
3971
+ };
3972
+ content: {
3973
+ "application/json": import(".").components["schemas"]["Error"];
3974
+ };
3975
+ };
3976
+ 422: {
3977
+ headers: {
3978
+ [name: string]: unknown;
3979
+ };
3980
+ content: {
3981
+ "application/json": import(".").components["schemas"]["Error"];
3982
+ };
3983
+ };
3984
+ };
3985
+ }, {
3986
+ body: {
3987
+ type: "shipping" | "billing";
3988
+ firstName: string;
3989
+ lastName: string;
3990
+ line1: string;
3991
+ line2?: string;
3992
+ city: string;
3993
+ state?: string;
3994
+ postalCode?: string;
3995
+ country: string;
3996
+ phone?: string;
3997
+ };
3998
+ }, `${string}/${string}`>>;
3999
+ remove(id: string): Promise<import("openapi-fetch").FetchResponse<{
4000
+ parameters: {
4001
+ query?: never;
4002
+ header?: never;
4003
+ path: {
4004
+ id: string;
4005
+ };
4006
+ cookie?: never;
4007
+ };
4008
+ requestBody?: never;
4009
+ responses: {
4010
+ 200: {
4011
+ headers: {
4012
+ [name: string]: unknown;
4013
+ };
4014
+ content: {
4015
+ "application/json": {
4016
+ data: {
4017
+ deleted: true;
4018
+ };
4019
+ };
4020
+ };
4021
+ };
4022
+ 400: {
4023
+ headers: {
4024
+ [name: string]: unknown;
4025
+ };
4026
+ content: {
4027
+ "application/json": import(".").components["schemas"]["Error"];
4028
+ };
4029
+ };
4030
+ 401: {
4031
+ headers: {
4032
+ [name: string]: unknown;
4033
+ };
4034
+ content: {
4035
+ "application/json": import(".").components["schemas"]["Error"];
4036
+ };
4037
+ };
4038
+ 403: {
4039
+ headers: {
4040
+ [name: string]: unknown;
4041
+ };
4042
+ content: {
4043
+ "application/json": import(".").components["schemas"]["Error"];
4044
+ };
4045
+ };
4046
+ 404: {
4047
+ headers: {
4048
+ [name: string]: unknown;
4049
+ };
4050
+ content: {
4051
+ "application/json": import(".").components["schemas"]["Error"];
4052
+ };
4053
+ };
4054
+ 422: {
4055
+ headers: {
4056
+ [name: string]: unknown;
4057
+ };
4058
+ content: {
4059
+ "application/json": import(".").components["schemas"]["Error"];
4060
+ };
4061
+ };
4062
+ };
4063
+ }, {
4064
+ params: {
4065
+ path: {
4066
+ id: string;
4067
+ };
4068
+ };
4069
+ }, `${string}/${string}`>>;
4070
+ };
4071
+ orders: {
4072
+ list(query?: {
4073
+ page?: string;
4074
+ limit?: string;
4075
+ }): Promise<import("openapi-fetch").FetchResponse<{
4076
+ parameters: {
4077
+ query?: {
4078
+ status?: string;
4079
+ page?: string;
4080
+ limit?: string;
4081
+ };
4082
+ header?: never;
4083
+ path?: never;
4084
+ cookie?: never;
4085
+ };
4086
+ requestBody?: never;
4087
+ responses: {
4088
+ 200: {
4089
+ headers: {
4090
+ [name: string]: unknown;
4091
+ };
4092
+ content: {
4093
+ "application/json": import(".").components["schemas"]["OrderListResponse"];
4094
+ };
4095
+ };
4096
+ };
4097
+ }, {
4098
+ params: {
4099
+ query: {
4100
+ page?: string;
4101
+ limit?: string;
4102
+ };
4103
+ };
4104
+ } | {
4105
+ params?: never;
4106
+ }, `${string}/${string}`>>;
4107
+ get(idOrNumber: string): Promise<import("openapi-fetch").FetchResponse<{
4108
+ parameters: {
4109
+ query?: never;
4110
+ header?: never;
4111
+ path: {
4112
+ idOrNumber: string;
4113
+ };
4114
+ cookie?: never;
4115
+ };
4116
+ requestBody?: never;
4117
+ responses: {
4118
+ 200: {
4119
+ headers: {
4120
+ [name: string]: unknown;
4121
+ };
4122
+ content: {
4123
+ "application/json": import(".").components["schemas"]["OrderResponse"];
4124
+ };
4125
+ };
4126
+ 400: {
4127
+ headers: {
4128
+ [name: string]: unknown;
4129
+ };
4130
+ content: {
4131
+ "application/json": import(".").components["schemas"]["Error"];
4132
+ };
4133
+ };
4134
+ 401: {
4135
+ headers: {
4136
+ [name: string]: unknown;
4137
+ };
4138
+ content: {
4139
+ "application/json": import(".").components["schemas"]["Error"];
4140
+ };
4141
+ };
4142
+ 403: {
4143
+ headers: {
4144
+ [name: string]: unknown;
4145
+ };
4146
+ content: {
4147
+ "application/json": import(".").components["schemas"]["Error"];
4148
+ };
4149
+ };
4150
+ 404: {
4151
+ headers: {
4152
+ [name: string]: unknown;
4153
+ };
4154
+ content: {
4155
+ "application/json": import(".").components["schemas"]["Error"];
4156
+ };
4157
+ };
4158
+ 422: {
4159
+ headers: {
4160
+ [name: string]: unknown;
4161
+ };
4162
+ content: {
4163
+ "application/json": import(".").components["schemas"]["Error"];
4164
+ };
4165
+ };
4166
+ };
4167
+ }, {
4168
+ params: {
4169
+ path: {
4170
+ idOrNumber: string;
4171
+ };
4172
+ };
4173
+ }, `${string}/${string}`>>;
4174
+ tracking(idOrNumber: string): Promise<import("openapi-fetch").FetchResponse<{
4175
+ parameters: {
4176
+ query?: never;
4177
+ header?: never;
4178
+ path: {
4179
+ idOrNumber: string;
4180
+ };
4181
+ cookie?: never;
4182
+ };
4183
+ requestBody?: never;
4184
+ responses: {
4185
+ 200: {
4186
+ headers: {
4187
+ [name: string]: unknown;
4188
+ };
4189
+ content: {
4190
+ "application/json": {
4191
+ data: {
4192
+ [key: string]: unknown;
4193
+ };
4194
+ };
4195
+ };
4196
+ };
4197
+ 400: {
4198
+ headers: {
4199
+ [name: string]: unknown;
4200
+ };
4201
+ content: {
4202
+ "application/json": import(".").components["schemas"]["Error"];
4203
+ };
4204
+ };
4205
+ 401: {
4206
+ headers: {
4207
+ [name: string]: unknown;
4208
+ };
4209
+ content: {
4210
+ "application/json": import(".").components["schemas"]["Error"];
4211
+ };
4212
+ };
4213
+ 403: {
4214
+ headers: {
4215
+ [name: string]: unknown;
4216
+ };
4217
+ content: {
4218
+ "application/json": import(".").components["schemas"]["Error"];
4219
+ };
4220
+ };
4221
+ 404: {
4222
+ headers: {
4223
+ [name: string]: unknown;
4224
+ };
4225
+ content: {
4226
+ "application/json": import(".").components["schemas"]["Error"];
4227
+ };
4228
+ };
4229
+ 422: {
4230
+ headers: {
4231
+ [name: string]: unknown;
4232
+ };
4233
+ content: {
4234
+ "application/json": import(".").components["schemas"]["Error"];
4235
+ };
4236
+ };
4237
+ };
4238
+ }, {
4239
+ params: {
4240
+ path: {
4241
+ idOrNumber: string;
4242
+ };
4243
+ };
4244
+ }, `${string}/${string}`>>;
4245
+ downloads(orderId: string): Promise<import("openapi-fetch").FetchResponse<{
4246
+ parameters: {
4247
+ query?: never;
4248
+ header?: never;
4249
+ path: {
4250
+ orderId: string;
4251
+ };
4252
+ cookie?: never;
4253
+ };
4254
+ requestBody?: never;
4255
+ responses: {
4256
+ 200: {
4257
+ headers: {
4258
+ [name: string]: unknown;
4259
+ };
4260
+ content: {
4261
+ "application/json": {
4262
+ data: {
4263
+ [key: string]: unknown;
4264
+ };
4265
+ };
4266
+ };
4267
+ };
4268
+ 400: {
4269
+ headers: {
4270
+ [name: string]: unknown;
4271
+ };
4272
+ content: {
4273
+ "application/json": import(".").components["schemas"]["Error"];
4274
+ };
4275
+ };
4276
+ 401: {
4277
+ headers: {
4278
+ [name: string]: unknown;
4279
+ };
4280
+ content: {
4281
+ "application/json": import(".").components["schemas"]["Error"];
4282
+ };
4283
+ };
4284
+ 403: {
4285
+ headers: {
4286
+ [name: string]: unknown;
4287
+ };
4288
+ content: {
4289
+ "application/json": import(".").components["schemas"]["Error"];
4290
+ };
4291
+ };
4292
+ 404: {
4293
+ headers: {
4294
+ [name: string]: unknown;
4295
+ };
4296
+ content: {
4297
+ "application/json": import(".").components["schemas"]["Error"];
4298
+ };
4299
+ };
4300
+ 422: {
4301
+ headers: {
4302
+ [name: string]: unknown;
4303
+ };
4304
+ content: {
4305
+ "application/json": import(".").components["schemas"]["Error"];
4306
+ };
4307
+ };
4308
+ };
4309
+ }, {
4310
+ params: {
4311
+ path: {
4312
+ orderId: string;
4313
+ };
4314
+ };
4315
+ }, `${string}/${string}`>>;
4316
+ reorder(orderId: string): Promise<import("openapi-fetch").FetchResponse<{
4317
+ parameters: {
4318
+ query?: never;
4319
+ header?: never;
4320
+ path: {
4321
+ orderId: string;
4322
+ };
4323
+ cookie?: never;
4324
+ };
4325
+ requestBody?: never;
4326
+ responses: {
4327
+ 201: {
4328
+ headers: {
4329
+ [name: string]: unknown;
4330
+ };
4331
+ content: {
4332
+ "application/json": import(".").components["schemas"]["CartResponse"];
4333
+ };
4334
+ };
4335
+ 400: {
4336
+ headers: {
4337
+ [name: string]: unknown;
4338
+ };
4339
+ content: {
4340
+ "application/json": import(".").components["schemas"]["Error"];
4341
+ };
4342
+ };
4343
+ 401: {
4344
+ headers: {
4345
+ [name: string]: unknown;
4346
+ };
4347
+ content: {
4348
+ "application/json": import(".").components["schemas"]["Error"];
4349
+ };
4350
+ };
4351
+ 403: {
4352
+ headers: {
4353
+ [name: string]: unknown;
4354
+ };
4355
+ content: {
4356
+ "application/json": import(".").components["schemas"]["Error"];
4357
+ };
4358
+ };
4359
+ 404: {
4360
+ headers: {
4361
+ [name: string]: unknown;
4362
+ };
4363
+ content: {
4364
+ "application/json": import(".").components["schemas"]["Error"];
4365
+ };
4366
+ };
4367
+ 422: {
4368
+ headers: {
4369
+ [name: string]: unknown;
4370
+ };
4371
+ content: {
4372
+ "application/json": import(".").components["schemas"]["Error"];
4373
+ };
4374
+ };
4375
+ };
4376
+ }, {
4377
+ params: {
4378
+ path: {
4379
+ orderId: string;
4380
+ };
4381
+ };
4382
+ }, `${string}/${string}`>>;
4383
+ };
4384
+ courses: {
4385
+ list(): Promise<import("openapi-fetch").FetchResponse<{
4386
+ parameters: {
4387
+ query?: never;
4388
+ header?: never;
4389
+ path?: never;
4390
+ cookie?: never;
4391
+ };
4392
+ requestBody?: never;
4393
+ responses: {
4394
+ 200: {
4395
+ headers: {
4396
+ [name: string]: unknown;
4397
+ };
4398
+ content: {
4399
+ "application/json": {
4400
+ data: {
4401
+ [key: string]: unknown;
4402
+ };
4403
+ };
4404
+ };
4405
+ };
4406
+ };
4407
+ }, import("openapi-fetch").FetchOptions<{
4408
+ parameters: {
4409
+ query?: never;
4410
+ header?: never;
4411
+ path?: never;
4412
+ cookie?: never;
4413
+ };
4414
+ requestBody?: never;
4415
+ responses: {
4416
+ 200: {
4417
+ headers: {
4418
+ [name: string]: unknown;
4419
+ };
4420
+ content: {
4421
+ "application/json": {
4422
+ data: {
4423
+ [key: string]: unknown;
4424
+ };
4425
+ };
4426
+ };
4427
+ };
4428
+ };
4429
+ }> | undefined, `${string}/${string}`>>;
4430
+ };
4431
+ };
4432
+ };
4433
+ //# sourceMappingURL=client.d.ts.map