@swishapp/api-client 0.42.0 → 0.43.0-unstable.20260318171036
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/{client.d.ts → 2026-01/client.d.ts} +19 -8
- package/dist/2026-01/index.d.ts +3 -0
- package/dist/2026-01/index.js +7 -0
- package/dist/{openapi → 2026-01/openapi}/client/index.d.ts +2 -1
- package/dist/{openapi → 2026-01/openapi}/client/types.gen.d.ts +2 -9
- package/dist/{openapi → 2026-01/openapi}/client/utils.gen.d.ts +1 -1
- package/dist/{openapi → 2026-01/openapi}/core/bodySerializer.gen.d.ts +12 -4
- package/dist/{openapi → 2026-01/openapi}/core/params.gen.d.ts +10 -0
- package/dist/2026-01/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-01/openapi/index.d.ts +2 -0
- package/dist/{openapi → 2026-01/openapi}/sdk.gen.d.ts +14 -4
- package/dist/{openapi → 2026-01/openapi}/types.gen.d.ts +761 -14
- package/dist/{types.d.ts → 2026-01/types.d.ts} +1 -2
- package/dist/2026-04/client.d.ts +143 -0
- package/dist/2026-04/index.d.ts +3 -0
- package/dist/2026-04/index.js +7 -0
- package/dist/2026-04/openapi/client/client.gen.d.ts +2 -0
- package/dist/2026-04/openapi/client/index.d.ts +8 -0
- package/dist/2026-04/openapi/client/types.gen.d.ts +117 -0
- package/dist/2026-04/openapi/client/utils.gen.d.ts +33 -0
- package/dist/2026-04/openapi/client.gen.d.ts +12 -0
- package/dist/2026-04/openapi/core/auth.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/2026-04/openapi/core/params.gen.d.ts +43 -0
- package/dist/2026-04/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/2026-04/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/2026-04/openapi/core/types.gen.d.ts +78 -0
- package/dist/2026-04/openapi/core/utils.gen.d.ts +19 -0
- package/dist/2026-04/openapi/index.d.ts +2 -0
- package/dist/2026-04/openapi/sdk.gen.d.ts +279 -0
- package/dist/2026-04/openapi/types.gen.d.ts +4502 -0
- package/dist/2026-04/types.d.ts +57 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +6 -4
- package/dist/unstable/client.d.ts +143 -0
- package/dist/unstable/index.d.ts +3 -0
- package/dist/unstable/index.js +7 -0
- package/dist/unstable/openapi/client/client.gen.d.ts +2 -0
- package/dist/unstable/openapi/client/index.d.ts +8 -0
- package/dist/unstable/openapi/client/types.gen.d.ts +117 -0
- package/dist/unstable/openapi/client/utils.gen.d.ts +33 -0
- package/dist/unstable/openapi/client.gen.d.ts +12 -0
- package/dist/unstable/openapi/core/auth.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/unstable/openapi/core/params.gen.d.ts +43 -0
- package/dist/unstable/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/unstable/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/unstable/openapi/core/types.gen.d.ts +78 -0
- package/dist/unstable/openapi/core/utils.gen.d.ts +19 -0
- package/dist/unstable/openapi/index.d.ts +2 -0
- package/dist/unstable/openapi/sdk.gen.d.ts +279 -0
- package/dist/unstable/openapi/types.gen.d.ts +4502 -0
- package/dist/unstable/types.d.ts +57 -0
- package/package.json +52 -22
- package/dist/openapi/index.d.ts +0 -2
- /package/dist/{openapi → 2026-01/openapi}/client/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/auth.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/types.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/utils.gen.d.ts +0 -0
|
@@ -97,7 +97,7 @@ export type List = {
|
|
|
97
97
|
*/
|
|
98
98
|
access: 'private' | 'public';
|
|
99
99
|
};
|
|
100
|
-
export type
|
|
100
|
+
export type Error = {
|
|
101
101
|
/**
|
|
102
102
|
* The error message
|
|
103
103
|
*/
|
|
@@ -119,7 +119,7 @@ export type ErrorResponse = {
|
|
|
119
119
|
/**
|
|
120
120
|
* Error details
|
|
121
121
|
*/
|
|
122
|
-
error:
|
|
122
|
+
error: Error;
|
|
123
123
|
};
|
|
124
124
|
export type PageInfo = {
|
|
125
125
|
/**
|
|
@@ -599,6 +599,192 @@ export type SharedList = {
|
|
|
599
599
|
*/
|
|
600
600
|
updatedAt: string;
|
|
601
601
|
};
|
|
602
|
+
export type NotificationUnreadCount = {
|
|
603
|
+
/**
|
|
604
|
+
* The total number of unread notifications
|
|
605
|
+
*/
|
|
606
|
+
count: number;
|
|
607
|
+
};
|
|
608
|
+
export type MarkReadDto = {
|
|
609
|
+
/**
|
|
610
|
+
* Array of notification IDs to mark as read
|
|
611
|
+
*/
|
|
612
|
+
notificationIds: Array<string>;
|
|
613
|
+
};
|
|
614
|
+
export type Notification = {
|
|
615
|
+
/**
|
|
616
|
+
* The ID of the notification
|
|
617
|
+
*/
|
|
618
|
+
id: string;
|
|
619
|
+
/**
|
|
620
|
+
* The type of notification. Use this to look up localized title and message on the client.
|
|
621
|
+
*/
|
|
622
|
+
type: 'price_drop' | 'back_in_stock' | 'low_in_stock';
|
|
623
|
+
/**
|
|
624
|
+
* The Shopify product ID
|
|
625
|
+
*/
|
|
626
|
+
productId?: string;
|
|
627
|
+
/**
|
|
628
|
+
* The Shopify variant ID
|
|
629
|
+
*/
|
|
630
|
+
variantId?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Whether the notification has been read
|
|
633
|
+
*/
|
|
634
|
+
read: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* The date and time the notification was created
|
|
637
|
+
*/
|
|
638
|
+
createdAt: string;
|
|
639
|
+
/**
|
|
640
|
+
* The date and time the notification was last updated
|
|
641
|
+
*/
|
|
642
|
+
updatedAt: string;
|
|
643
|
+
};
|
|
644
|
+
export type SubscriptionQueryDto = {
|
|
645
|
+
/**
|
|
646
|
+
* Filter subscriptions by type
|
|
647
|
+
*/
|
|
648
|
+
type?: 'back_in_stock';
|
|
649
|
+
/**
|
|
650
|
+
* Filter subscriptions by status
|
|
651
|
+
*/
|
|
652
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
653
|
+
/**
|
|
654
|
+
* Filter subscriptions by product ID
|
|
655
|
+
*/
|
|
656
|
+
productId?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Number of subscriptions to return
|
|
659
|
+
*/
|
|
660
|
+
limit?: number;
|
|
661
|
+
/**
|
|
662
|
+
* The page cursor for pagination
|
|
663
|
+
*/
|
|
664
|
+
page?: string;
|
|
665
|
+
};
|
|
666
|
+
export type UpdateSubscriptionInput = {
|
|
667
|
+
/**
|
|
668
|
+
* The status of the subscription
|
|
669
|
+
*/
|
|
670
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
671
|
+
/**
|
|
672
|
+
* The Shopify variant ID
|
|
673
|
+
*/
|
|
674
|
+
variantId?: {
|
|
675
|
+
[key: string]: unknown;
|
|
676
|
+
} | null;
|
|
677
|
+
};
|
|
678
|
+
export type CreateSubscriptionInput = {
|
|
679
|
+
/**
|
|
680
|
+
* The contact information for the subscription (phone or email)
|
|
681
|
+
*/
|
|
682
|
+
contact: string;
|
|
683
|
+
/**
|
|
684
|
+
* The Shopify product ID
|
|
685
|
+
*/
|
|
686
|
+
productId: string;
|
|
687
|
+
/**
|
|
688
|
+
* The Shopify variant ID
|
|
689
|
+
*/
|
|
690
|
+
variantId?: string;
|
|
691
|
+
/**
|
|
692
|
+
* The type of subscription
|
|
693
|
+
*/
|
|
694
|
+
type: 'back_in_stock';
|
|
695
|
+
/**
|
|
696
|
+
* The channel for the subscription
|
|
697
|
+
*/
|
|
698
|
+
channel: 'email' | 'sms' | 'whatsapp';
|
|
699
|
+
/**
|
|
700
|
+
* The market for the subscription
|
|
701
|
+
*/
|
|
702
|
+
market?: string;
|
|
703
|
+
/**
|
|
704
|
+
* The country for the subscription
|
|
705
|
+
*/
|
|
706
|
+
country?: string;
|
|
707
|
+
/**
|
|
708
|
+
* The language for the subscription
|
|
709
|
+
*/
|
|
710
|
+
language?: string;
|
|
711
|
+
};
|
|
712
|
+
export type Subscription = {
|
|
713
|
+
/**
|
|
714
|
+
* The ID of the subscription
|
|
715
|
+
*/
|
|
716
|
+
id: string;
|
|
717
|
+
/**
|
|
718
|
+
* The contact information for the subscription (phone or email)
|
|
719
|
+
*/
|
|
720
|
+
contact: string;
|
|
721
|
+
/**
|
|
722
|
+
* The Shopify product ID
|
|
723
|
+
*/
|
|
724
|
+
productId: string;
|
|
725
|
+
/**
|
|
726
|
+
* The Shopify variant ID
|
|
727
|
+
*/
|
|
728
|
+
variantId?: {
|
|
729
|
+
[key: string]: unknown;
|
|
730
|
+
} | null;
|
|
731
|
+
/**
|
|
732
|
+
* The type of subscription
|
|
733
|
+
*/
|
|
734
|
+
type: 'back_in_stock';
|
|
735
|
+
/**
|
|
736
|
+
* The channel for the subscription
|
|
737
|
+
*/
|
|
738
|
+
channel: 'email' | 'sms' | 'whatsapp';
|
|
739
|
+
/**
|
|
740
|
+
* The status of the subscription
|
|
741
|
+
*/
|
|
742
|
+
status: 'active' | 'cancelled' | 'fulfilled';
|
|
743
|
+
/**
|
|
744
|
+
* The date and time the subscription was created
|
|
745
|
+
*/
|
|
746
|
+
createdAt: string;
|
|
747
|
+
/**
|
|
748
|
+
* The date and time the subscription was last updated
|
|
749
|
+
*/
|
|
750
|
+
updatedAt: string;
|
|
751
|
+
/**
|
|
752
|
+
* The date and time the subscription was cancelled
|
|
753
|
+
*/
|
|
754
|
+
cancelledAt?: {
|
|
755
|
+
[key: string]: unknown;
|
|
756
|
+
} | null;
|
|
757
|
+
/**
|
|
758
|
+
* The date and time the subscription was fulfilled
|
|
759
|
+
*/
|
|
760
|
+
fulfilledAt?: {
|
|
761
|
+
[key: string]: unknown;
|
|
762
|
+
} | null;
|
|
763
|
+
/**
|
|
764
|
+
* The date and time the last notification was sent
|
|
765
|
+
*/
|
|
766
|
+
lastNotificationAt?: {
|
|
767
|
+
[key: string]: unknown;
|
|
768
|
+
} | null;
|
|
769
|
+
/**
|
|
770
|
+
* The market for the subscription
|
|
771
|
+
*/
|
|
772
|
+
market?: {
|
|
773
|
+
[key: string]: unknown;
|
|
774
|
+
} | null;
|
|
775
|
+
/**
|
|
776
|
+
* The country for the subscription
|
|
777
|
+
*/
|
|
778
|
+
country?: {
|
|
779
|
+
[key: string]: unknown;
|
|
780
|
+
} | null;
|
|
781
|
+
/**
|
|
782
|
+
* The language for the subscription
|
|
783
|
+
*/
|
|
784
|
+
language?: {
|
|
785
|
+
[key: string]: unknown;
|
|
786
|
+
} | null;
|
|
787
|
+
};
|
|
602
788
|
export type ListControllerFindData = {
|
|
603
789
|
body?: never;
|
|
604
790
|
path?: never;
|
|
@@ -774,7 +960,9 @@ export type ListControllerDeleteByIdResponses = {
|
|
|
774
960
|
/**
|
|
775
961
|
* The list has been successfully deleted.
|
|
776
962
|
*/
|
|
777
|
-
|
|
963
|
+
200: Response & {
|
|
964
|
+
data?: List;
|
|
965
|
+
};
|
|
778
966
|
};
|
|
779
967
|
export type ListControllerDeleteByIdResponse = ListControllerDeleteByIdResponses[keyof ListControllerDeleteByIdResponses];
|
|
780
968
|
export type ListControllerFindByIdData = {
|
|
@@ -1120,7 +1308,9 @@ export type ItemControllerDeleteResponses = {
|
|
|
1120
1308
|
/**
|
|
1121
1309
|
* The items have been successfully deleted.
|
|
1122
1310
|
*/
|
|
1123
|
-
|
|
1311
|
+
200: Response & {
|
|
1312
|
+
data?: Array<Item>;
|
|
1313
|
+
};
|
|
1124
1314
|
};
|
|
1125
1315
|
export type ItemControllerDeleteResponse = ItemControllerDeleteResponses[keyof ItemControllerDeleteResponses];
|
|
1126
1316
|
export type ItemControllerFindData = {
|
|
@@ -1374,7 +1564,9 @@ export type ItemControllerDeleteByIdResponses = {
|
|
|
1374
1564
|
/**
|
|
1375
1565
|
* The item has been successfully deleted.
|
|
1376
1566
|
*/
|
|
1377
|
-
|
|
1567
|
+
200: Response & {
|
|
1568
|
+
data?: Item;
|
|
1569
|
+
};
|
|
1378
1570
|
};
|
|
1379
1571
|
export type ItemControllerDeleteByIdResponse = ItemControllerDeleteByIdResponses[keyof ItemControllerDeleteByIdResponses];
|
|
1380
1572
|
export type ItemControllerFindByIdData = {
|
|
@@ -1981,16 +2173,13 @@ export type AnalyticsControllerLoadNewListsResponses = {
|
|
|
1981
2173
|
};
|
|
1982
2174
|
};
|
|
1983
2175
|
export type AnalyticsControllerLoadNewListsResponse = AnalyticsControllerLoadNewListsResponses[keyof AnalyticsControllerLoadNewListsResponses];
|
|
1984
|
-
export type
|
|
2176
|
+
export type TrackingControllerCollectData = {
|
|
1985
2177
|
body: TrackingEventRequestDto;
|
|
1986
|
-
headers: {
|
|
1987
|
-
referer: string;
|
|
1988
|
-
};
|
|
1989
2178
|
path?: never;
|
|
1990
2179
|
query?: never;
|
|
1991
|
-
url: '/
|
|
2180
|
+
url: '/collect';
|
|
1992
2181
|
};
|
|
1993
|
-
export type
|
|
2182
|
+
export type TrackingControllerCollectErrors = {
|
|
1994
2183
|
/**
|
|
1995
2184
|
* Bad Request
|
|
1996
2185
|
*/
|
|
@@ -2019,14 +2208,14 @@ export type TrackingControllerTrackErrors = {
|
|
|
2019
2208
|
};
|
|
2020
2209
|
};
|
|
2021
2210
|
};
|
|
2022
|
-
export type
|
|
2023
|
-
export type
|
|
2211
|
+
export type TrackingControllerCollectError = TrackingControllerCollectErrors[keyof TrackingControllerCollectErrors];
|
|
2212
|
+
export type TrackingControllerCollectResponses = {
|
|
2024
2213
|
/**
|
|
2025
2214
|
* Event tracked successfully
|
|
2026
2215
|
*/
|
|
2027
2216
|
204: void;
|
|
2028
2217
|
};
|
|
2029
|
-
export type
|
|
2218
|
+
export type TrackingControllerCollectResponse = TrackingControllerCollectResponses[keyof TrackingControllerCollectResponses];
|
|
2030
2219
|
export type OrdersControllerFindData = {
|
|
2031
2220
|
body?: never;
|
|
2032
2221
|
path?: never;
|
|
@@ -2387,3 +2576,561 @@ export type SharedListsControllerFindAllResponses = {
|
|
|
2387
2576
|
};
|
|
2388
2577
|
};
|
|
2389
2578
|
export type SharedListsControllerFindAllResponse = SharedListsControllerFindAllResponses[keyof SharedListsControllerFindAllResponses];
|
|
2579
|
+
export type NotificationsControllerFindData = {
|
|
2580
|
+
body?: never;
|
|
2581
|
+
path?: never;
|
|
2582
|
+
query?: {
|
|
2583
|
+
/**
|
|
2584
|
+
* Filter notifications by read status. Use read=false for unread notifications.
|
|
2585
|
+
*/
|
|
2586
|
+
read?: boolean;
|
|
2587
|
+
/**
|
|
2588
|
+
* Filter notifications by type
|
|
2589
|
+
*/
|
|
2590
|
+
type?: 'price_drop' | 'back_in_stock' | 'low_in_stock';
|
|
2591
|
+
/**
|
|
2592
|
+
* Number of notifications to return
|
|
2593
|
+
*/
|
|
2594
|
+
limit?: number;
|
|
2595
|
+
/**
|
|
2596
|
+
* The page cursor for pagination
|
|
2597
|
+
*/
|
|
2598
|
+
page?: string;
|
|
2599
|
+
};
|
|
2600
|
+
url: '/notifications';
|
|
2601
|
+
};
|
|
2602
|
+
export type NotificationsControllerFindErrors = {
|
|
2603
|
+
/**
|
|
2604
|
+
* Bad Request
|
|
2605
|
+
*/
|
|
2606
|
+
400: ErrorResponse & {
|
|
2607
|
+
error?: {
|
|
2608
|
+
statusCode?: number;
|
|
2609
|
+
error?: string;
|
|
2610
|
+
};
|
|
2611
|
+
};
|
|
2612
|
+
/**
|
|
2613
|
+
* Unauthorized
|
|
2614
|
+
*/
|
|
2615
|
+
401: ErrorResponse & {
|
|
2616
|
+
error?: {
|
|
2617
|
+
statusCode?: number;
|
|
2618
|
+
error?: string;
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
/**
|
|
2622
|
+
* Forbidden
|
|
2623
|
+
*/
|
|
2624
|
+
403: ErrorResponse & {
|
|
2625
|
+
error?: {
|
|
2626
|
+
statusCode?: number;
|
|
2627
|
+
error?: string;
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2630
|
+
/**
|
|
2631
|
+
* Not Found
|
|
2632
|
+
*/
|
|
2633
|
+
404: ErrorResponse & {
|
|
2634
|
+
error?: {
|
|
2635
|
+
statusCode?: number;
|
|
2636
|
+
error?: string;
|
|
2637
|
+
};
|
|
2638
|
+
};
|
|
2639
|
+
};
|
|
2640
|
+
export type NotificationsControllerFindError = NotificationsControllerFindErrors[keyof NotificationsControllerFindErrors];
|
|
2641
|
+
export type NotificationsControllerFindResponses = {
|
|
2642
|
+
/**
|
|
2643
|
+
* Returns all notifications as paginated response
|
|
2644
|
+
*/
|
|
2645
|
+
200: PaginatedResponse & {
|
|
2646
|
+
data?: Array<Notification>;
|
|
2647
|
+
};
|
|
2648
|
+
};
|
|
2649
|
+
export type NotificationsControllerFindResponse = NotificationsControllerFindResponses[keyof NotificationsControllerFindResponses];
|
|
2650
|
+
export type NotificationsControllerGetUnreadCountData = {
|
|
2651
|
+
body?: never;
|
|
2652
|
+
path?: never;
|
|
2653
|
+
query?: never;
|
|
2654
|
+
url: '/notifications/unread/count';
|
|
2655
|
+
};
|
|
2656
|
+
export type NotificationsControllerGetUnreadCountErrors = {
|
|
2657
|
+
/**
|
|
2658
|
+
* Bad Request
|
|
2659
|
+
*/
|
|
2660
|
+
400: ErrorResponse & {
|
|
2661
|
+
error?: {
|
|
2662
|
+
statusCode?: number;
|
|
2663
|
+
error?: string;
|
|
2664
|
+
};
|
|
2665
|
+
};
|
|
2666
|
+
/**
|
|
2667
|
+
* Unauthorized
|
|
2668
|
+
*/
|
|
2669
|
+
401: ErrorResponse & {
|
|
2670
|
+
error?: {
|
|
2671
|
+
statusCode?: number;
|
|
2672
|
+
error?: string;
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
/**
|
|
2676
|
+
* Forbidden
|
|
2677
|
+
*/
|
|
2678
|
+
403: ErrorResponse & {
|
|
2679
|
+
error?: {
|
|
2680
|
+
statusCode?: number;
|
|
2681
|
+
error?: string;
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
/**
|
|
2685
|
+
* Not Found
|
|
2686
|
+
*/
|
|
2687
|
+
404: ErrorResponse & {
|
|
2688
|
+
error?: {
|
|
2689
|
+
statusCode?: number;
|
|
2690
|
+
error?: string;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
};
|
|
2694
|
+
export type NotificationsControllerGetUnreadCountError = NotificationsControllerGetUnreadCountErrors[keyof NotificationsControllerGetUnreadCountErrors];
|
|
2695
|
+
export type NotificationsControllerGetUnreadCountResponses = {
|
|
2696
|
+
/**
|
|
2697
|
+
* Returns the total count of unread notifications
|
|
2698
|
+
*/
|
|
2699
|
+
200: Response & {
|
|
2700
|
+
data?: NotificationUnreadCount;
|
|
2701
|
+
};
|
|
2702
|
+
};
|
|
2703
|
+
export type NotificationsControllerGetUnreadCountResponse = NotificationsControllerGetUnreadCountResponses[keyof NotificationsControllerGetUnreadCountResponses];
|
|
2704
|
+
export type NotificationsControllerMarkAsReadData = {
|
|
2705
|
+
body: MarkReadDto;
|
|
2706
|
+
path?: never;
|
|
2707
|
+
query?: never;
|
|
2708
|
+
url: '/notifications/read';
|
|
2709
|
+
};
|
|
2710
|
+
export type NotificationsControllerMarkAsReadErrors = {
|
|
2711
|
+
/**
|
|
2712
|
+
* Bad Request
|
|
2713
|
+
*/
|
|
2714
|
+
400: ErrorResponse & {
|
|
2715
|
+
error?: {
|
|
2716
|
+
statusCode?: number;
|
|
2717
|
+
error?: string;
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
/**
|
|
2721
|
+
* Unauthorized
|
|
2722
|
+
*/
|
|
2723
|
+
401: ErrorResponse & {
|
|
2724
|
+
error?: {
|
|
2725
|
+
statusCode?: number;
|
|
2726
|
+
error?: string;
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2729
|
+
/**
|
|
2730
|
+
* Forbidden
|
|
2731
|
+
*/
|
|
2732
|
+
403: ErrorResponse & {
|
|
2733
|
+
error?: {
|
|
2734
|
+
statusCode?: number;
|
|
2735
|
+
error?: string;
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
/**
|
|
2739
|
+
* Not Found
|
|
2740
|
+
*/
|
|
2741
|
+
404: ErrorResponse & {
|
|
2742
|
+
error?: {
|
|
2743
|
+
statusCode?: number;
|
|
2744
|
+
error?: string;
|
|
2745
|
+
};
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
export type NotificationsControllerMarkAsReadError = NotificationsControllerMarkAsReadErrors[keyof NotificationsControllerMarkAsReadErrors];
|
|
2749
|
+
export type NotificationsControllerMarkAsReadResponses = {
|
|
2750
|
+
/**
|
|
2751
|
+
* Notifications marked as read successfully
|
|
2752
|
+
*/
|
|
2753
|
+
200: Response & {
|
|
2754
|
+
data?: Array<Notification>;
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2757
|
+
export type NotificationsControllerMarkAsReadResponse = NotificationsControllerMarkAsReadResponses[keyof NotificationsControllerMarkAsReadResponses];
|
|
2758
|
+
export type NotificationsControllerDeleteByIdData = {
|
|
2759
|
+
body?: never;
|
|
2760
|
+
path: {
|
|
2761
|
+
/**
|
|
2762
|
+
* The ID of the notification
|
|
2763
|
+
*/
|
|
2764
|
+
id: string;
|
|
2765
|
+
};
|
|
2766
|
+
query?: never;
|
|
2767
|
+
url: '/notifications/{id}';
|
|
2768
|
+
};
|
|
2769
|
+
export type NotificationsControllerDeleteByIdErrors = {
|
|
2770
|
+
/**
|
|
2771
|
+
* Bad Request
|
|
2772
|
+
*/
|
|
2773
|
+
400: ErrorResponse & {
|
|
2774
|
+
error?: {
|
|
2775
|
+
statusCode?: number;
|
|
2776
|
+
error?: string;
|
|
2777
|
+
};
|
|
2778
|
+
};
|
|
2779
|
+
/**
|
|
2780
|
+
* Unauthorized
|
|
2781
|
+
*/
|
|
2782
|
+
401: ErrorResponse & {
|
|
2783
|
+
error?: {
|
|
2784
|
+
statusCode?: number;
|
|
2785
|
+
error?: string;
|
|
2786
|
+
};
|
|
2787
|
+
};
|
|
2788
|
+
/**
|
|
2789
|
+
* Forbidden
|
|
2790
|
+
*/
|
|
2791
|
+
403: ErrorResponse & {
|
|
2792
|
+
error?: {
|
|
2793
|
+
statusCode?: number;
|
|
2794
|
+
error?: string;
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
/**
|
|
2798
|
+
* Not Found
|
|
2799
|
+
*/
|
|
2800
|
+
404: ErrorResponse & {
|
|
2801
|
+
error?: {
|
|
2802
|
+
statusCode?: number;
|
|
2803
|
+
error?: string;
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
};
|
|
2807
|
+
export type NotificationsControllerDeleteByIdError = NotificationsControllerDeleteByIdErrors[keyof NotificationsControllerDeleteByIdErrors];
|
|
2808
|
+
export type NotificationsControllerDeleteByIdResponses = {
|
|
2809
|
+
/**
|
|
2810
|
+
* The notification has been successfully deleted.
|
|
2811
|
+
*/
|
|
2812
|
+
200: Response & {
|
|
2813
|
+
data?: Notification;
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2816
|
+
export type NotificationsControllerDeleteByIdResponse = NotificationsControllerDeleteByIdResponses[keyof NotificationsControllerDeleteByIdResponses];
|
|
2817
|
+
export type SubscriptionsControllerFindData = {
|
|
2818
|
+
body?: never;
|
|
2819
|
+
path?: never;
|
|
2820
|
+
query?: {
|
|
2821
|
+
/**
|
|
2822
|
+
* Filter subscriptions by type
|
|
2823
|
+
*/
|
|
2824
|
+
type?: 'back_in_stock';
|
|
2825
|
+
/**
|
|
2826
|
+
* Filter subscriptions by status
|
|
2827
|
+
*/
|
|
2828
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
2829
|
+
/**
|
|
2830
|
+
* Filter subscriptions by product ID
|
|
2831
|
+
*/
|
|
2832
|
+
productId?: string;
|
|
2833
|
+
/**
|
|
2834
|
+
* Number of subscriptions to return
|
|
2835
|
+
*/
|
|
2836
|
+
limit?: number;
|
|
2837
|
+
/**
|
|
2838
|
+
* The page cursor for pagination
|
|
2839
|
+
*/
|
|
2840
|
+
page?: string;
|
|
2841
|
+
};
|
|
2842
|
+
url: '/subscriptions';
|
|
2843
|
+
};
|
|
2844
|
+
export type SubscriptionsControllerFindErrors = {
|
|
2845
|
+
/**
|
|
2846
|
+
* Bad Request
|
|
2847
|
+
*/
|
|
2848
|
+
400: ErrorResponse & {
|
|
2849
|
+
error?: {
|
|
2850
|
+
statusCode?: number;
|
|
2851
|
+
error?: string;
|
|
2852
|
+
};
|
|
2853
|
+
};
|
|
2854
|
+
/**
|
|
2855
|
+
* Unauthorized
|
|
2856
|
+
*/
|
|
2857
|
+
401: ErrorResponse & {
|
|
2858
|
+
error?: {
|
|
2859
|
+
statusCode?: number;
|
|
2860
|
+
error?: string;
|
|
2861
|
+
};
|
|
2862
|
+
};
|
|
2863
|
+
/**
|
|
2864
|
+
* Forbidden
|
|
2865
|
+
*/
|
|
2866
|
+
403: ErrorResponse & {
|
|
2867
|
+
error?: {
|
|
2868
|
+
statusCode?: number;
|
|
2869
|
+
error?: string;
|
|
2870
|
+
};
|
|
2871
|
+
};
|
|
2872
|
+
/**
|
|
2873
|
+
* Not Found
|
|
2874
|
+
*/
|
|
2875
|
+
404: ErrorResponse & {
|
|
2876
|
+
error?: {
|
|
2877
|
+
statusCode?: number;
|
|
2878
|
+
error?: string;
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
export type SubscriptionsControllerFindError = SubscriptionsControllerFindErrors[keyof SubscriptionsControllerFindErrors];
|
|
2883
|
+
export type SubscriptionsControllerFindResponses = {
|
|
2884
|
+
/**
|
|
2885
|
+
* Returns all subscriptions as paginated response
|
|
2886
|
+
*/
|
|
2887
|
+
200: PaginatedResponse & {
|
|
2888
|
+
data?: Array<Subscription>;
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
export type SubscriptionsControllerFindResponse = SubscriptionsControllerFindResponses[keyof SubscriptionsControllerFindResponses];
|
|
2892
|
+
export type SubscriptionsControllerCreateData = {
|
|
2893
|
+
body: CreateSubscriptionInput;
|
|
2894
|
+
headers?: {
|
|
2895
|
+
/**
|
|
2896
|
+
* The language for the user (e.g., 'en', 'de', 'fr')
|
|
2897
|
+
*/
|
|
2898
|
+
language?: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* The country for the user (e.g., 'US', 'DE', 'FR')
|
|
2901
|
+
*/
|
|
2902
|
+
country?: string;
|
|
2903
|
+
/**
|
|
2904
|
+
* The market for the user (e.g. 1234567)
|
|
2905
|
+
*/
|
|
2906
|
+
market?: string;
|
|
2907
|
+
};
|
|
2908
|
+
path?: never;
|
|
2909
|
+
query?: never;
|
|
2910
|
+
url: '/subscriptions';
|
|
2911
|
+
};
|
|
2912
|
+
export type SubscriptionsControllerCreateErrors = {
|
|
2913
|
+
/**
|
|
2914
|
+
* Bad Request
|
|
2915
|
+
*/
|
|
2916
|
+
400: ErrorResponse & {
|
|
2917
|
+
error?: {
|
|
2918
|
+
statusCode?: number;
|
|
2919
|
+
error?: string;
|
|
2920
|
+
};
|
|
2921
|
+
};
|
|
2922
|
+
/**
|
|
2923
|
+
* Unauthorized
|
|
2924
|
+
*/
|
|
2925
|
+
401: ErrorResponse & {
|
|
2926
|
+
error?: {
|
|
2927
|
+
statusCode?: number;
|
|
2928
|
+
error?: string;
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
* Forbidden
|
|
2933
|
+
*/
|
|
2934
|
+
403: ErrorResponse & {
|
|
2935
|
+
error?: {
|
|
2936
|
+
statusCode?: number;
|
|
2937
|
+
error?: string;
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
/**
|
|
2941
|
+
* Not Found
|
|
2942
|
+
*/
|
|
2943
|
+
404: ErrorResponse & {
|
|
2944
|
+
error?: {
|
|
2945
|
+
statusCode?: number;
|
|
2946
|
+
error?: string;
|
|
2947
|
+
};
|
|
2948
|
+
};
|
|
2949
|
+
};
|
|
2950
|
+
export type SubscriptionsControllerCreateError = SubscriptionsControllerCreateErrors[keyof SubscriptionsControllerCreateErrors];
|
|
2951
|
+
export type SubscriptionsControllerCreateResponses = {
|
|
2952
|
+
/**
|
|
2953
|
+
* The subscription has been successfully created.
|
|
2954
|
+
*/
|
|
2955
|
+
201: Response & {
|
|
2956
|
+
data?: Subscription;
|
|
2957
|
+
};
|
|
2958
|
+
};
|
|
2959
|
+
export type SubscriptionsControllerCreateResponse = SubscriptionsControllerCreateResponses[keyof SubscriptionsControllerCreateResponses];
|
|
2960
|
+
export type SubscriptionsControllerDeleteData = {
|
|
2961
|
+
body?: never;
|
|
2962
|
+
path: {
|
|
2963
|
+
/**
|
|
2964
|
+
* The ID of the subscription to delete
|
|
2965
|
+
*/
|
|
2966
|
+
id: string;
|
|
2967
|
+
};
|
|
2968
|
+
query?: never;
|
|
2969
|
+
url: '/subscriptions/{id}';
|
|
2970
|
+
};
|
|
2971
|
+
export type SubscriptionsControllerDeleteErrors = {
|
|
2972
|
+
/**
|
|
2973
|
+
* Bad Request
|
|
2974
|
+
*/
|
|
2975
|
+
400: ErrorResponse & {
|
|
2976
|
+
error?: {
|
|
2977
|
+
statusCode?: number;
|
|
2978
|
+
error?: string;
|
|
2979
|
+
};
|
|
2980
|
+
};
|
|
2981
|
+
/**
|
|
2982
|
+
* Unauthorized
|
|
2983
|
+
*/
|
|
2984
|
+
401: ErrorResponse & {
|
|
2985
|
+
error?: {
|
|
2986
|
+
statusCode?: number;
|
|
2987
|
+
error?: string;
|
|
2988
|
+
};
|
|
2989
|
+
};
|
|
2990
|
+
/**
|
|
2991
|
+
* Forbidden
|
|
2992
|
+
*/
|
|
2993
|
+
403: ErrorResponse & {
|
|
2994
|
+
error?: {
|
|
2995
|
+
statusCode?: number;
|
|
2996
|
+
error?: string;
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
/**
|
|
3000
|
+
* Not Found
|
|
3001
|
+
*/
|
|
3002
|
+
404: ErrorResponse & {
|
|
3003
|
+
error?: {
|
|
3004
|
+
statusCode?: number;
|
|
3005
|
+
error?: string;
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
export type SubscriptionsControllerDeleteError = SubscriptionsControllerDeleteErrors[keyof SubscriptionsControllerDeleteErrors];
|
|
3010
|
+
export type SubscriptionsControllerDeleteResponses = {
|
|
3011
|
+
/**
|
|
3012
|
+
* The subscription has been successfully deleted.
|
|
3013
|
+
*/
|
|
3014
|
+
200: Response & {
|
|
3015
|
+
data?: Subscription;
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
export type SubscriptionsControllerDeleteResponse = SubscriptionsControllerDeleteResponses[keyof SubscriptionsControllerDeleteResponses];
|
|
3019
|
+
export type SubscriptionsControllerFindByIdData = {
|
|
3020
|
+
body?: never;
|
|
3021
|
+
path: {
|
|
3022
|
+
/**
|
|
3023
|
+
* The ID of the subscription
|
|
3024
|
+
*/
|
|
3025
|
+
id: string;
|
|
3026
|
+
};
|
|
3027
|
+
query?: never;
|
|
3028
|
+
url: '/subscriptions/{id}';
|
|
3029
|
+
};
|
|
3030
|
+
export type SubscriptionsControllerFindByIdErrors = {
|
|
3031
|
+
/**
|
|
3032
|
+
* Bad Request
|
|
3033
|
+
*/
|
|
3034
|
+
400: ErrorResponse & {
|
|
3035
|
+
error?: {
|
|
3036
|
+
statusCode?: number;
|
|
3037
|
+
error?: string;
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
/**
|
|
3041
|
+
* Unauthorized
|
|
3042
|
+
*/
|
|
3043
|
+
401: ErrorResponse & {
|
|
3044
|
+
error?: {
|
|
3045
|
+
statusCode?: number;
|
|
3046
|
+
error?: string;
|
|
3047
|
+
};
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* Forbidden
|
|
3051
|
+
*/
|
|
3052
|
+
403: ErrorResponse & {
|
|
3053
|
+
error?: {
|
|
3054
|
+
statusCode?: number;
|
|
3055
|
+
error?: string;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
/**
|
|
3059
|
+
* Not Found
|
|
3060
|
+
*/
|
|
3061
|
+
404: ErrorResponse & {
|
|
3062
|
+
error?: {
|
|
3063
|
+
statusCode?: number;
|
|
3064
|
+
error?: string;
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
};
|
|
3068
|
+
export type SubscriptionsControllerFindByIdError = SubscriptionsControllerFindByIdErrors[keyof SubscriptionsControllerFindByIdErrors];
|
|
3069
|
+
export type SubscriptionsControllerFindByIdResponses = {
|
|
3070
|
+
/**
|
|
3071
|
+
* The subscription has been successfully retrieved.
|
|
3072
|
+
*/
|
|
3073
|
+
200: Response & {
|
|
3074
|
+
data?: Subscription;
|
|
3075
|
+
};
|
|
3076
|
+
};
|
|
3077
|
+
export type SubscriptionsControllerFindByIdResponse = SubscriptionsControllerFindByIdResponses[keyof SubscriptionsControllerFindByIdResponses];
|
|
3078
|
+
export type SubscriptionsControllerUpdateData = {
|
|
3079
|
+
body: UpdateSubscriptionInput;
|
|
3080
|
+
path: {
|
|
3081
|
+
/**
|
|
3082
|
+
* The ID of the subscription to update
|
|
3083
|
+
*/
|
|
3084
|
+
id: string;
|
|
3085
|
+
};
|
|
3086
|
+
query?: never;
|
|
3087
|
+
url: '/subscriptions/{id}';
|
|
3088
|
+
};
|
|
3089
|
+
export type SubscriptionsControllerUpdateErrors = {
|
|
3090
|
+
/**
|
|
3091
|
+
* Bad Request
|
|
3092
|
+
*/
|
|
3093
|
+
400: ErrorResponse & {
|
|
3094
|
+
error?: {
|
|
3095
|
+
statusCode?: number;
|
|
3096
|
+
error?: string;
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
/**
|
|
3100
|
+
* Unauthorized
|
|
3101
|
+
*/
|
|
3102
|
+
401: ErrorResponse & {
|
|
3103
|
+
error?: {
|
|
3104
|
+
statusCode?: number;
|
|
3105
|
+
error?: string;
|
|
3106
|
+
};
|
|
3107
|
+
};
|
|
3108
|
+
/**
|
|
3109
|
+
* Forbidden
|
|
3110
|
+
*/
|
|
3111
|
+
403: ErrorResponse & {
|
|
3112
|
+
error?: {
|
|
3113
|
+
statusCode?: number;
|
|
3114
|
+
error?: string;
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3117
|
+
/**
|
|
3118
|
+
* Not Found
|
|
3119
|
+
*/
|
|
3120
|
+
404: ErrorResponse & {
|
|
3121
|
+
error?: {
|
|
3122
|
+
statusCode?: number;
|
|
3123
|
+
error?: string;
|
|
3124
|
+
};
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
export type SubscriptionsControllerUpdateError = SubscriptionsControllerUpdateErrors[keyof SubscriptionsControllerUpdateErrors];
|
|
3128
|
+
export type SubscriptionsControllerUpdateResponses = {
|
|
3129
|
+
/**
|
|
3130
|
+
* The subscription has been successfully updated.
|
|
3131
|
+
*/
|
|
3132
|
+
200: Response & {
|
|
3133
|
+
data?: Subscription;
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
export type SubscriptionsControllerUpdateResponse = SubscriptionsControllerUpdateResponses[keyof SubscriptionsControllerUpdateResponses];
|