@bid-scents/shared-sdk 1.0.9 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/api/index.d.ts +7 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/api/index.js +3 -0
  4. package/dist/api/models/BoostRequest.d.ts +5 -0
  5. package/dist/api/models/BoostRequest.d.ts.map +1 -0
  6. package/dist/api/models/BoostRequest.js +1 -0
  7. package/dist/api/models/BoostResponse.d.ts +22 -0
  8. package/dist/api/models/BoostResponse.d.ts.map +1 -0
  9. package/dist/api/models/BoostResponse.js +1 -0
  10. package/dist/api/models/BoostType.d.ts +5 -0
  11. package/dist/api/models/BoostType.d.ts.map +1 -0
  12. package/dist/api/models/BoostType.js +9 -0
  13. package/dist/api/models/PassType.d.ts +6 -0
  14. package/dist/api/models/PassType.d.ts.map +1 -0
  15. package/dist/api/models/PassType.js +10 -0
  16. package/dist/api/models/SubscriptionRequest.d.ts +15 -0
  17. package/dist/api/models/SubscriptionRequest.d.ts.map +1 -0
  18. package/dist/api/models/SubscriptionRequest.js +1 -0
  19. package/dist/api/models/User.d.ts +0 -1
  20. package/dist/api/models/User.d.ts.map +1 -1
  21. package/dist/api/models/WSExtensionResponse.d.ts +12 -0
  22. package/dist/api/models/WSExtensionResponse.d.ts.map +1 -0
  23. package/dist/api/models/WSExtensionResponse.js +1 -0
  24. package/dist/api/models/WSType.d.ts +2 -1
  25. package/dist/api/models/WSType.d.ts.map +1 -1
  26. package/dist/api/models/WSType.js +1 -0
  27. package/dist/api/services/AuctionsService.d.ts +2 -1
  28. package/dist/api/services/AuctionsService.d.ts.map +1 -1
  29. package/dist/api/services/NotificationsService.js +1 -1
  30. package/dist/api/services/PaymentsService.d.ts +67 -0
  31. package/dist/api/services/PaymentsService.d.ts.map +1 -0
  32. package/dist/api/services/PaymentsService.js +114 -0
  33. package/dist/stores/auth.d.ts +2 -0
  34. package/dist/stores/auth.d.ts.map +1 -1
  35. package/dist/stores/auth.js +12 -2
  36. package/package.json +1 -1
@@ -13,6 +13,9 @@ export type { BidDetails } from './models/BidDetails';
13
13
  export type { BidRequest } from './models/BidRequest';
14
14
  export type { BidResData } from './models/BidResData';
15
15
  export type { BidResponse } from './models/BidResponse';
16
+ export type { BoostRequest } from './models/BoostRequest';
17
+ export type { BoostResponse } from './models/BoostResponse';
18
+ export { BoostType } from './models/BoostType';
16
19
  export type { CheckUniqueUsernameResponse } from './models/CheckUniqueUsernameResponse';
17
20
  export type { CommentContent } from './models/CommentContent';
18
21
  export type { CommentDetails } from './models/CommentDetails';
@@ -63,6 +66,7 @@ export type { OnboardResponse } from './models/OnboardResponse';
63
66
  export type { OutbidContent } from './models/OutbidContent';
64
67
  export type { PaginationDetails } from './models/PaginationDetails';
65
68
  export type { Participant } from './models/Participant';
69
+ export { PassType } from './models/PassType';
66
70
  export type { PreferencesResponse } from './models/PreferencesResponse';
67
71
  export type { ProfileDetails } from './models/ProfileDetails';
68
72
  export type { ProfileResponse } from './models/ProfileResponse';
@@ -76,6 +80,7 @@ export type { RichTextContent } from './models/RichTextContent';
76
80
  export type { SearchRequest } from './models/SearchRequest';
77
81
  export type { SearchResponse } from './models/SearchResponse';
78
82
  export type { SortParameter } from './models/SortParameter';
83
+ export type { SubscriptionRequest } from './models/SubscriptionRequest';
79
84
  export type { TextContent } from './models/TextContent';
80
85
  export type { TypingReqData } from './models/TypingReqData';
81
86
  export type { TypingResData } from './models/TypingResData';
@@ -86,6 +91,7 @@ export type { UserPreview } from './models/UserPreview';
86
91
  export type { ValidationError } from './models/ValidationError';
87
92
  export type { WSBidResponse } from './models/WSBidResponse';
88
93
  export { WSErrorCode } from './models/WSErrorCode';
94
+ export type { WSExtensionResponse } from './models/WSExtensionResponse';
89
95
  export type { WSJoinResponse } from './models/WSJoinResponse';
90
96
  export type { WSMessageResponse } from './models/WSMessageResponse';
91
97
  export { WSType } from './models/WSType';
@@ -98,5 +104,6 @@ export { HomepageService } from './services/HomepageService';
98
104
  export { ListingService } from './services/ListingService';
99
105
  export { MessageService } from './services/MessageService';
100
106
  export { NotificationsService } from './services/NotificationsService';
107
+ export { PaymentsService } from './services/PaymentsService';
101
108
  export { ProfileService } from './services/ProfileService';
102
109
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EA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MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
package/dist/api/index.js CHANGED
@@ -6,6 +6,7 @@ export { ApiError } from './core/ApiError';
6
6
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
8
  export { AuctionStatus } from './models/AuctionStatus';
9
+ export { BoostType } from './models/BoostType';
9
10
  export { ConversationType } from './models/ConversationType';
10
11
  export { ListingBoxCondition } from './models/ListingBoxCondition';
11
12
  export { ListingCategory } from './models/ListingCategory';
@@ -16,6 +17,7 @@ export { MessageActionType } from './models/MessageActionType';
16
17
  export { MessageType } from './models/MessageType';
17
18
  export { NotificationPriority } from './models/NotificationPriority';
18
19
  export { NotificationType } from './models/NotificationType';
20
+ export { PassType } from './models/PassType';
19
21
  export { ProfileTab } from './models/ProfileTab';
20
22
  export { ReviewSortField } from './models/ReviewSortField';
21
23
  export { WSErrorCode } from './models/WSErrorCode';
@@ -28,4 +30,5 @@ export { HomepageService } from './services/HomepageService';
28
30
  export { ListingService } from './services/ListingService';
29
31
  export { MessageService } from './services/MessageService';
30
32
  export { NotificationsService } from './services/NotificationsService';
33
+ export { PaymentsService } from './services/PaymentsService';
31
34
  export { ProfileService } from './services/ProfileService';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Model for requesting boost for listings
3
+ */
4
+ export type BoostRequest = Record<string, Array<string>>;
5
+ //# sourceMappingURL=BoostRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoostRequest.d.ts","sourceRoot":"","sources":["../../../src/api/models/BoostRequest.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Model for the response returned after a boost request
3
+ */
4
+ export type BoostResponse = {
5
+ /**
6
+ * The client secret for the payment intent.
7
+ */
8
+ client_secret: string;
9
+ /**
10
+ * The amount to be charged.
11
+ */
12
+ amount: number;
13
+ /**
14
+ * The currency of the payment.
15
+ */
16
+ currency: string;
17
+ /**
18
+ * The boost credits available for the user.
19
+ */
20
+ boost_credits: Record<string, number>;
21
+ };
22
+ //# sourceMappingURL=BoostResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoostResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/BoostResponse.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum BoostType {
2
+ PREMIUM_BOOST = "premium_boost",
3
+ NORMAL_BOOST = "normal_boost"
4
+ }
5
+ //# sourceMappingURL=BoostType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoostType.d.ts","sourceRoot":"","sources":["../../../src/api/models/BoostType.ts"],"names":[],"mappings":"AAIA,oBAAY,SAAS;IACjB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAChC"}
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var BoostType;
6
+ (function (BoostType) {
7
+ BoostType["PREMIUM_BOOST"] = "premium_boost";
8
+ BoostType["NORMAL_BOOST"] = "normal_boost";
9
+ })(BoostType || (BoostType = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PassType {
2
+ WEEKLY_SWAP = "weekly_swap",
3
+ MONTHLY_SWAP = "monthly_swap",
4
+ YEARLY_SWAP = "yearly_swap"
5
+ }
6
+ //# sourceMappingURL=PassType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PassType.d.ts","sourceRoot":"","sources":["../../../src/api/models/PassType.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAChB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;CAC9B"}
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var PassType;
6
+ (function (PassType) {
7
+ PassType["WEEKLY_SWAP"] = "weekly_swap";
8
+ PassType["MONTHLY_SWAP"] = "monthly_swap";
9
+ PassType["YEARLY_SWAP"] = "yearly_swap";
10
+ })(PassType || (PassType = {}));
@@ -0,0 +1,15 @@
1
+ import type { PassType } from './PassType';
2
+ /**
3
+ * Model for requesting a subscription
4
+ */
5
+ export type SubscriptionRequest = {
6
+ /**
7
+ * Type of the subscription
8
+ */
9
+ subscription_type: PassType;
10
+ /**
11
+ * ID of the payment method if the user doesn't have a customer account setup
12
+ */
13
+ payment_method_id?: (string | null);
14
+ };
15
+ //# sourceMappingURL=SubscriptionRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionRequest.d.ts","sourceRoot":"","sources":["../../../src/api/models/SubscriptionRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,iBAAiB,EAAE,QAAQ,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACvC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -9,7 +9,6 @@ export type User = {
9
9
  location?: (string | null);
10
10
  is_admin?: boolean;
11
11
  badges?: Array<string>;
12
- eligible_for_swap?: boolean;
13
12
  onboarded_at?: (string | null);
14
13
  };
15
14
  //# sourceMappingURL=User.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/api/models/User.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IACf,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAClC,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/api/models/User.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IACf,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAClC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { WSType } from './WSType';
2
+ export type WSExtensionResponse = {
3
+ /**
4
+ * Type of the Websocket response
5
+ */
6
+ type?: WSType;
7
+ /**
8
+ * New end time of the auction after extension, in ISO 8601 format
9
+ */
10
+ new_end_time: string;
11
+ };
12
+ //# sourceMappingURL=WSExtensionResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WSExtensionResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/WSExtensionResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,7 @@ export declare enum WSType {
5
5
  ERROR = "ERROR",
6
6
  BID = "BID",
7
7
  JOIN = "JOIN",
8
- NOTIFICATION = "NOTIFICATION"
8
+ NOTIFICATION = "NOTIFICATION",
9
+ AUCTION_EXTENDED = "AUCTION_EXTENDED"
9
10
  }
10
11
  //# sourceMappingURL=WSType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WSType.d.ts","sourceRoot":"","sources":["../../../src/api/models/WSType.ts"],"names":[],"mappings":"AAIA,oBAAY,MAAM;IACd,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,YAAY,iBAAiB;CAChC"}
1
+ {"version":3,"file":"WSType.d.ts","sourceRoot":"","sources":["../../../src/api/models/WSType.ts"],"names":[],"mappings":"AAIA,oBAAY,MAAM;IACd,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;CACxC"}
@@ -11,4 +11,5 @@ export var WSType;
11
11
  WSType["BID"] = "BID";
12
12
  WSType["JOIN"] = "JOIN";
13
13
  WSType["NOTIFICATION"] = "NOTIFICATION";
14
+ WSType["AUCTION_EXTENDED"] = "AUCTION_EXTENDED";
14
15
  })(WSType || (WSType = {}));
@@ -1,6 +1,7 @@
1
1
  import type { BidRequest } from '../models/BidRequest';
2
2
  import type { BidResponse } from '../models/BidResponse';
3
3
  import type { WSBidResponse } from '../models/WSBidResponse';
4
+ import type { WSExtensionResponse } from '../models/WSExtensionResponse';
4
5
  import type { WSJoinResponse } from '../models/WSJoinResponse';
5
6
  import type { CancelablePromise } from '../core/CancelablePromise';
6
7
  export declare class AuctionsService {
@@ -19,6 +20,6 @@ export declare class AuctionsService {
19
20
  * @returns any Successful Response
20
21
  * @throws ApiError
21
22
  */
22
- static getWsTypesV1AuctionsWsTypesGet(): CancelablePromise<(WSBidResponse | WSJoinResponse)>;
23
+ static getWsTypesV1AuctionsWsTypesGet(): CancelablePromise<(WSBidResponse | WSJoinResponse | WSExtensionResponse)>;
23
24
  }
24
25
  //# sourceMappingURL=AuctionsService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuctionsService.d.ts","sourceRoot":"","sources":["../../../src/api/services/AuctionsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,eAAe;IACxB;;;;;;;OAOG;WACW,kCAAkC,CAC5C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,UAAU,GACxB,iBAAiB,CAAC,WAAW,CAAC;IAcjC;;;;;OAKG;WACW,8BAA8B,IAAI,iBAAiB,CAAC,CAAC,aAAa,GAAG,cAAc,CAAC,CAAC;CAMtG"}
1
+ {"version":3,"file":"AuctionsService.d.ts","sourceRoot":"","sources":["../../../src/api/services/AuctionsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,eAAe;IACxB;;;;;;;OAOG;WACW,kCAAkC,CAC5C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,UAAU,GACxB,iBAAiB,CAAC,WAAW,CAAC;IAcjC;;;;;OAKG;WACW,8BAA8B,IAAI,iBAAiB,CAAC,CAAC,aAAa,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC;CAM5H"}
@@ -69,7 +69,7 @@ export class NotificationsService {
69
69
  * @returns NotificationResponse Successful Response
70
70
  * @throws ApiError
71
71
  */
72
- static getNotificationsV1NotificationsGet(cursor = '2025-08-06T22:31:03.571598+00:00', limit = 20) {
72
+ static getNotificationsV1NotificationsGet(cursor = '2025-08-14T01:29:52.175036+00:00', limit = 20) {
73
73
  return __request(OpenAPI, {
74
74
  method: 'GET',
75
75
  url: '/v1/notifications/',
@@ -0,0 +1,67 @@
1
+ import type { BoostRequest } from '../models/BoostRequest';
2
+ import type { BoostResponse } from '../models/BoostResponse';
3
+ import type { SubscriptionRequest } from '../models/SubscriptionRequest';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class PaymentsService {
6
+ /**
7
+ * Boost Listing
8
+ * Create a payment intent for boosting listings.
9
+ * This endpoint processes the boost request and returns a payment intent client secret.
10
+ * @param requestBody
11
+ * @returns BoostResponse Successful Response
12
+ * @throws ApiError
13
+ */
14
+ static boostListingV1PaymentsBoostPost(requestBody: BoostRequest): CancelablePromise<BoostResponse>;
15
+ /**
16
+ * Setup Payment Method
17
+ * Sets up a payment method for a user
18
+ * @returns any Successful Response
19
+ * @throws ApiError
20
+ */
21
+ static setupPaymentMethodV1PaymentsPaymentMethodPost(): CancelablePromise<any>;
22
+ /**
23
+ * Create Subscription
24
+ * Creates/updates subscription to swap pass for a user
25
+ * @param requestBody
26
+ * @returns void
27
+ * @throws ApiError
28
+ */
29
+ static createSubscriptionV1PaymentsSubscriptionPost(requestBody: SubscriptionRequest): CancelablePromise<void>;
30
+ /**
31
+ * Cancel Subscription
32
+ * Cancels the subscription for a user
33
+ * @returns void
34
+ * @throws ApiError
35
+ */
36
+ static cancelSubscriptionV1PaymentsSubscriptionDelete(): CancelablePromise<void>;
37
+ /**
38
+ * List Products
39
+ * @returns any Successful Response
40
+ * @throws ApiError
41
+ */
42
+ static listProductsV1PaymentsProductsGet(): CancelablePromise<any>;
43
+ /**
44
+ * Reset Pricing
45
+ * Resets the products dict to reflect changes in stripe
46
+ * @returns any Successful Response
47
+ * @throws ApiError
48
+ */
49
+ static resetPricingV1PaymentsResetPost(): CancelablePromise<any>;
50
+ /**
51
+ * Stripe Webhook
52
+ * Handle Stripe webhook events.
53
+ * This endpoint is used to process events sent by Stripe, such as payment success or failure.
54
+ * @returns void
55
+ * @throws ApiError
56
+ */
57
+ static stripeWebhookV1PaymentsWebhookPost(): CancelablePromise<void>;
58
+ /**
59
+ * Get Boost Packages
60
+ * Retrieve available boost packages.
61
+ * This endpoint returns the prices and details of the available boost packages.
62
+ * @returns any Successful Response
63
+ * @throws ApiError
64
+ */
65
+ static getBoostPackagesV1PaymentsBoostPackagesGet(): CancelablePromise<any>;
66
+ }
67
+ //# sourceMappingURL=PaymentsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentsService.d.ts","sourceRoot":"","sources":["../../../src/api/services/PaymentsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,eAAe;IACxB;;;;;;;OAOG;WACW,+BAA+B,CACzC,WAAW,EAAE,YAAY,GAC1B,iBAAiB,CAAC,aAAa,CAAC;IAWnC;;;;;OAKG;WACW,6CAA6C,IAAI,iBAAiB,CAAC,GAAG,CAAC;IAMrF;;;;;;OAMG;WACW,4CAA4C,CACtD,WAAW,EAAE,mBAAmB,GACjC,iBAAiB,CAAC,IAAI,CAAC;IAW1B;;;;;OAKG;WACW,8CAA8C,IAAI,iBAAiB,CAAC,IAAI,CAAC;IAMvF;;;;OAIG;WACW,iCAAiC,IAAI,iBAAiB,CAAC,GAAG,CAAC;IAMzE;;;;;OAKG;WACW,+BAA+B,IAAI,iBAAiB,CAAC,GAAG,CAAC;IAMvE;;;;;;OAMG;WACW,kCAAkC,IAAI,iBAAiB,CAAC,IAAI,CAAC;IAM3E;;;;;;OAMG;WACW,0CAA0C,IAAI,iBAAiB,CAAC,GAAG,CAAC;CAMrF"}
@@ -0,0 +1,114 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class PaymentsService {
4
+ /**
5
+ * Boost Listing
6
+ * Create a payment intent for boosting listings.
7
+ * This endpoint processes the boost request and returns a payment intent client secret.
8
+ * @param requestBody
9
+ * @returns BoostResponse Successful Response
10
+ * @throws ApiError
11
+ */
12
+ static boostListingV1PaymentsBoostPost(requestBody) {
13
+ return __request(OpenAPI, {
14
+ method: 'POST',
15
+ url: '/v1/payments/boost',
16
+ body: requestBody,
17
+ mediaType: 'application/json',
18
+ errors: {
19
+ 422: `Validation Error`,
20
+ },
21
+ });
22
+ }
23
+ /**
24
+ * Setup Payment Method
25
+ * Sets up a payment method for a user
26
+ * @returns any Successful Response
27
+ * @throws ApiError
28
+ */
29
+ static setupPaymentMethodV1PaymentsPaymentMethodPost() {
30
+ return __request(OpenAPI, {
31
+ method: 'POST',
32
+ url: '/v1/payments/payment-method',
33
+ });
34
+ }
35
+ /**
36
+ * Create Subscription
37
+ * Creates/updates subscription to swap pass for a user
38
+ * @param requestBody
39
+ * @returns void
40
+ * @throws ApiError
41
+ */
42
+ static createSubscriptionV1PaymentsSubscriptionPost(requestBody) {
43
+ return __request(OpenAPI, {
44
+ method: 'POST',
45
+ url: '/v1/payments/subscription',
46
+ body: requestBody,
47
+ mediaType: 'application/json',
48
+ errors: {
49
+ 422: `Validation Error`,
50
+ },
51
+ });
52
+ }
53
+ /**
54
+ * Cancel Subscription
55
+ * Cancels the subscription for a user
56
+ * @returns void
57
+ * @throws ApiError
58
+ */
59
+ static cancelSubscriptionV1PaymentsSubscriptionDelete() {
60
+ return __request(OpenAPI, {
61
+ method: 'DELETE',
62
+ url: '/v1/payments/subscription',
63
+ });
64
+ }
65
+ /**
66
+ * List Products
67
+ * @returns any Successful Response
68
+ * @throws ApiError
69
+ */
70
+ static listProductsV1PaymentsProductsGet() {
71
+ return __request(OpenAPI, {
72
+ method: 'GET',
73
+ url: '/v1/payments/products',
74
+ });
75
+ }
76
+ /**
77
+ * Reset Pricing
78
+ * Resets the products dict to reflect changes in stripe
79
+ * @returns any Successful Response
80
+ * @throws ApiError
81
+ */
82
+ static resetPricingV1PaymentsResetPost() {
83
+ return __request(OpenAPI, {
84
+ method: 'POST',
85
+ url: '/v1/payments/reset',
86
+ });
87
+ }
88
+ /**
89
+ * Stripe Webhook
90
+ * Handle Stripe webhook events.
91
+ * This endpoint is used to process events sent by Stripe, such as payment success or failure.
92
+ * @returns void
93
+ * @throws ApiError
94
+ */
95
+ static stripeWebhookV1PaymentsWebhookPost() {
96
+ return __request(OpenAPI, {
97
+ method: 'POST',
98
+ url: '/v1/payments/webhook',
99
+ });
100
+ }
101
+ /**
102
+ * Get Boost Packages
103
+ * Retrieve available boost packages.
104
+ * This endpoint returns the prices and details of the available boost packages.
105
+ * @returns any Successful Response
106
+ * @throws ApiError
107
+ */
108
+ static getBoostPackagesV1PaymentsBoostPackagesGet() {
109
+ return __request(OpenAPI, {
110
+ method: 'GET',
111
+ url: '/v1/payments/boost/packages',
112
+ });
113
+ }
114
+ }
@@ -6,11 +6,13 @@ interface AuthState {
6
6
  isOnboarded: boolean;
7
7
  loading: boolean;
8
8
  error: string | null;
9
+ deviceToken: string | null;
9
10
  setUser: (user: User | null) => void;
10
11
  setSession: (session: any | null) => void;
11
12
  setLoading: (loading: boolean) => void;
12
13
  setError: (error: string | null) => void;
13
14
  logout: () => void;
15
+ setDeviceToken: (deviceToken: string | null) => void;
14
16
  }
15
17
  /**
16
18
  * Zustand store for authentication state management with Supabase.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/stores/auth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,UAAU,SAAS;IACjB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;IACjB,OAAO,EAAE,GAAG,GAAG,IAAI,CAAA;IACnB,eAAe,EAAE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cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CACrD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;EA4FxB,CAAA"}
@@ -14,8 +14,9 @@ export const useAuthStore = create()(persist((set) => ({
14
14
  session: null,
15
15
  isAuthenticated: false,
16
16
  isOnboarded: false,
17
- loading: true, // Start with loading true
17
+ loading: true,
18
18
  error: null,
19
+ deviceToken: null,
19
20
  /**
20
21
  * Updates the current user and onboarding status.
21
22
  *
@@ -69,6 +70,14 @@ export const useAuthStore = create()(persist((set) => ({
69
70
  loading: false,
70
71
  error: null
71
72
  });
73
+ },
74
+ /**
75
+ * Sets the device token for push notifications.
76
+ *
77
+ * @param deviceToken - Device token string or null to clear
78
+ */
79
+ setDeviceToken: (deviceToken) => {
80
+ set({ deviceToken });
72
81
  }
73
82
  }), {
74
83
  name: 'auth-storage',
@@ -77,7 +86,8 @@ export const useAuthStore = create()(persist((set) => ({
77
86
  user: state.user,
78
87
  session: state.session,
79
88
  isAuthenticated: state.isAuthenticated,
80
- isOnboarded: state.isOnboarded
89
+ isOnboarded: state.isOnboarded,
90
+ deviceToken: state.deviceToken
81
91
  // Don't persist loading or error states
82
92
  })
83
93
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bid-scents/shared-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "Shared SDK for marketplace applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",