@bid-scents/shared-sdk 1.0.3 → 1.0.5

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 (150) hide show
  1. package/dist/api/index.d.ts +43 -1
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/api/index.js +11 -0
  4. package/dist/api/models/Auction.d.ts +16 -0
  5. package/dist/api/models/Auction.d.ts.map +1 -0
  6. package/dist/api/models/AuctionDetails.d.ts +36 -0
  7. package/dist/api/models/AuctionDetails.d.ts.map +1 -0
  8. package/dist/api/models/AuctionDetails.js +1 -0
  9. package/dist/api/models/AuctionExpiryResponse.d.ts +14 -0
  10. package/dist/api/models/AuctionExpiryResponse.d.ts.map +1 -0
  11. package/dist/api/models/AuctionExpiryResponse.js +1 -0
  12. package/dist/api/models/AuctionStatus.d.ts +7 -0
  13. package/dist/api/models/AuctionStatus.d.ts.map +1 -0
  14. package/dist/api/models/AuctionStatus.js +11 -0
  15. package/dist/api/models/Bid.d.ts +9 -0
  16. package/dist/api/models/Bid.d.ts.map +1 -0
  17. package/dist/api/models/Bid.js +1 -0
  18. package/dist/api/models/BidDetails.d.ts +23 -0
  19. package/dist/api/models/BidDetails.d.ts.map +1 -0
  20. package/dist/api/models/BidDetails.js +1 -0
  21. package/dist/api/models/BidResponse.d.ts +26 -0
  22. package/dist/api/models/BidResponse.d.ts.map +1 -0
  23. package/dist/api/models/BidResponse.js +1 -0
  24. package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.d.ts +7 -0
  25. package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.d.ts.map +1 -0
  26. package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.js +1 -0
  27. package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.d.ts +7 -0
  28. package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.d.ts.map +1 -0
  29. package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.js +1 -0
  30. package/dist/api/models/CommentDetails.d.ts +23 -0
  31. package/dist/api/models/CommentDetails.d.ts.map +1 -0
  32. package/dist/api/models/CommentDetails.js +1 -0
  33. package/dist/api/models/CommentRequest.d.ts +10 -0
  34. package/dist/api/models/CommentRequest.d.ts.map +1 -0
  35. package/dist/api/models/CommentRequest.js +1 -0
  36. package/dist/api/models/CommentResponse.d.ts +18 -0
  37. package/dist/api/models/CommentResponse.d.ts.map +1 -0
  38. package/dist/api/models/CommentResponse.js +1 -0
  39. package/dist/api/models/CreateListingRequest.d.ts +85 -0
  40. package/dist/api/models/CreateListingRequest.d.ts.map +1 -0
  41. package/dist/api/models/CreateListingRequest.js +1 -0
  42. package/dist/api/models/EditProfileRequest.d.ts +31 -0
  43. package/dist/api/models/EditProfileRequest.d.ts.map +1 -0
  44. package/dist/api/models/EditProfileRequest.js +1 -0
  45. package/dist/api/models/FavoriteResponse.d.ts +14 -0
  46. package/dist/api/models/FavoriteResponse.d.ts.map +1 -0
  47. package/dist/api/models/FavoriteResponse.js +1 -0
  48. package/dist/api/models/FilterParameter.d.ts +41 -0
  49. package/dist/api/models/FilterParameter.d.ts.map +1 -0
  50. package/dist/api/models/FilterParameter.js +1 -0
  51. package/dist/api/models/Listing.d.ts +25 -0
  52. package/dist/api/models/Listing.d.ts.map +1 -0
  53. package/dist/api/models/Listing.js +1 -0
  54. package/dist/api/models/ListingBoxCondition.d.ts +6 -0
  55. package/dist/api/models/ListingBoxCondition.d.ts.map +1 -0
  56. package/dist/api/models/ListingBoxCondition.js +10 -0
  57. package/dist/api/models/ListingCard.d.ts +4 -4
  58. package/dist/api/models/ListingCard.d.ts.map +1 -1
  59. package/dist/api/models/ListingCategory.d.ts +7 -0
  60. package/dist/api/models/ListingCategory.d.ts.map +1 -0
  61. package/dist/api/models/ListingCategory.js +11 -0
  62. package/dist/api/models/ListingDetails.d.ts +59 -0
  63. package/dist/api/models/ListingDetails.d.ts.map +1 -0
  64. package/dist/api/models/ListingDetails.js +1 -0
  65. package/dist/api/models/ListingDetailsResponse.d.ts +42 -0
  66. package/dist/api/models/ListingDetailsResponse.d.ts.map +1 -0
  67. package/dist/api/models/ListingDetailsResponse.js +1 -0
  68. package/dist/api/models/ListingResponse.d.ts +16 -0
  69. package/dist/api/models/ListingResponse.d.ts.map +1 -0
  70. package/dist/api/models/ListingResponse.js +1 -0
  71. package/dist/api/models/ListingSearchRequest.d.ts +30 -0
  72. package/dist/api/models/ListingSearchRequest.d.ts.map +1 -0
  73. package/dist/api/models/ListingSearchRequest.js +1 -0
  74. package/dist/api/models/ListingSortField.d.ts +12 -0
  75. package/dist/api/models/ListingSortField.d.ts.map +1 -0
  76. package/dist/api/models/ListingSortField.js +16 -0
  77. package/dist/api/models/ListingStatus.d.ts +8 -0
  78. package/dist/api/models/ListingStatus.d.ts.map +1 -0
  79. package/dist/api/models/ListingStatus.js +12 -0
  80. package/dist/api/models/ListingTab.d.ts +13 -0
  81. package/dist/api/models/ListingTab.d.ts.map +1 -0
  82. package/dist/api/models/ListingTab.js +1 -0
  83. package/dist/api/models/LoginResponse.d.ts +4 -0
  84. package/dist/api/models/LoginResponse.d.ts.map +1 -1
  85. package/dist/api/models/PaginationDetails.d.ts +19 -0
  86. package/dist/api/models/PaginationDetails.d.ts.map +1 -0
  87. package/dist/api/models/PaginationDetails.js +1 -0
  88. package/dist/api/models/ProfileDetails.d.ts +51 -0
  89. package/dist/api/models/ProfileDetails.d.ts.map +1 -0
  90. package/dist/api/models/ProfileDetails.js +1 -0
  91. package/dist/api/models/ProfileResponse.d.ts +26 -0
  92. package/dist/api/models/ProfileResponse.d.ts.map +1 -0
  93. package/dist/api/models/ProfileResponse.js +1 -0
  94. package/dist/api/models/ProfileTab.d.ts +6 -0
  95. package/dist/api/models/ProfileTab.d.ts.map +1 -0
  96. package/dist/api/models/ProfileTab.js +10 -0
  97. package/dist/api/models/ReviewDetails.d.ts +28 -0
  98. package/dist/api/models/ReviewDetails.d.ts.map +1 -0
  99. package/dist/api/models/ReviewDetails.js +1 -0
  100. package/dist/api/models/ReviewSearchRequest.d.ts +24 -0
  101. package/dist/api/models/ReviewSearchRequest.d.ts.map +1 -0
  102. package/dist/api/models/ReviewSearchRequest.js +1 -0
  103. package/dist/api/models/ReviewSortField.d.ts +8 -0
  104. package/dist/api/models/ReviewSortField.d.ts.map +1 -0
  105. package/dist/api/models/ReviewSortField.js +12 -0
  106. package/dist/api/models/ReviewsTab.d.ts +25 -0
  107. package/dist/api/models/ReviewsTab.d.ts.map +1 -0
  108. package/dist/api/models/ReviewsTab.js +1 -0
  109. package/dist/api/models/SearchRequest.d.ts +28 -0
  110. package/dist/api/models/SearchRequest.d.ts.map +1 -0
  111. package/dist/api/models/SearchRequest.js +1 -0
  112. package/dist/api/models/SearchResponse.d.ts +13 -0
  113. package/dist/api/models/SearchResponse.d.ts.map +1 -0
  114. package/dist/api/models/SearchResponse.js +1 -0
  115. package/dist/api/models/SortParameter.d.ts +15 -0
  116. package/dist/api/models/SortParameter.d.ts.map +1 -0
  117. package/dist/api/models/SortParameter.js +1 -0
  118. package/dist/api/models/UpdateListingRequest.d.ts +80 -0
  119. package/dist/api/models/UpdateListingRequest.d.ts.map +1 -0
  120. package/dist/api/models/UpdateListingRequest.js +1 -0
  121. package/dist/api/models/User.d.ts +1 -1
  122. package/dist/api/models/User.d.ts.map +1 -1
  123. package/dist/api/models/UserPreview.d.ts +15 -0
  124. package/dist/api/models/UserPreview.d.ts.map +1 -0
  125. package/dist/api/models/UserPreview.js +1 -0
  126. package/dist/api/services/AuctionsService.d.ts +25 -0
  127. package/dist/api/services/AuctionsService.d.ts.map +1 -0
  128. package/dist/api/services/AuctionsService.js +47 -0
  129. package/dist/api/services/DashboardService.d.ts +37 -0
  130. package/dist/api/services/DashboardService.d.ts.map +1 -0
  131. package/dist/api/services/DashboardService.js +79 -0
  132. package/dist/api/services/ListingService.d.ts +93 -0
  133. package/dist/api/services/ListingService.d.ts.map +1 -0
  134. package/dist/api/services/ListingService.js +196 -0
  135. package/dist/api/services/ProfileService.d.ts +74 -0
  136. package/dist/api/services/ProfileService.d.ts.map +1 -0
  137. package/dist/api/services/ProfileService.js +149 -0
  138. package/dist/stores/auth.d.ts +8 -14
  139. package/dist/stores/auth.d.ts.map +1 -1
  140. package/dist/stores/auth.js +32 -7
  141. package/dist/utils/index.d.ts +2 -2
  142. package/dist/utils/index.d.ts.map +1 -1
  143. package/dist/utils/index.js +1 -1
  144. package/dist/utils/validation/schemas.d.ts +58 -5
  145. package/dist/utils/validation/schemas.d.ts.map +1 -1
  146. package/dist/utils/validation/schemas.js +41 -0
  147. package/package.json +4 -3
  148. package/dist/api/models/Seller.d.ts +0 -11
  149. package/dist/api/models/Seller.d.ts.map +0 -1
  150. /package/dist/api/models/{Seller.js → Auction.js} +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare enum ListingBoxCondition {
2
+ GOOD = "GOOD",
3
+ DAMAGED = "DAMAGED",
4
+ NO_BOX = "NO_BOX"
5
+ }
6
+ //# sourceMappingURL=ListingBoxCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingBoxCondition.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingBoxCondition.ts"],"names":[],"mappings":"AAIA,oBAAY,mBAAmB;IAC3B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB"}
@@ -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 ListingBoxCondition;
6
+ (function (ListingBoxCondition) {
7
+ ListingBoxCondition["GOOD"] = "GOOD";
8
+ ListingBoxCondition["DAMAGED"] = "DAMAGED";
9
+ ListingBoxCondition["NO_BOX"] = "NO_BOX";
10
+ })(ListingBoxCondition || (ListingBoxCondition = {}));
@@ -1,5 +1,5 @@
1
1
  import type { ListingType } from './ListingType';
2
- import type { Seller } from './Seller';
2
+ import type { UserPreview } from './UserPreview';
3
3
  export type ListingCard = {
4
4
  /**
5
5
  * Unique identifier for the listing
@@ -28,7 +28,7 @@ export type ListingCard = {
28
28
  /**
29
29
  * URL of the listing image
30
30
  */
31
- image_url: string;
31
+ image_url?: (string | null);
32
32
  /**
33
33
  * Number of favorites for the listing
34
34
  */
@@ -36,11 +36,11 @@ export type ListingCard = {
36
36
  /**
37
37
  * Seller information for the listing
38
38
  */
39
- seller: Seller;
39
+ seller: UserPreview;
40
40
  /**
41
41
  * Type of the listing (e.g., FIXED_PRICE, NEGOTIABLE)
42
42
  */
43
- listing_type?: (ListingType | null);
43
+ listing_type: ListingType;
44
44
  /**
45
45
  * Current bid amount for auction listings
46
46
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ListingCard.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingCard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"ListingCard.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingCard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACjC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare enum ListingCategory {
2
+ DESIGNER = "DESIGNER",
3
+ LOCAL = "LOCAL",
4
+ ARABIAN_HOUSE = "ARABIAN_HOUSE",
5
+ NICHE = "NICHE"
6
+ }
7
+ //# sourceMappingURL=ListingCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingCategory.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingCategory.ts"],"names":[],"mappings":"AAIA,oBAAY,eAAe;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,KAAK,UAAU;CAClB"}
@@ -0,0 +1,11 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var ListingCategory;
6
+ (function (ListingCategory) {
7
+ ListingCategory["DESIGNER"] = "DESIGNER";
8
+ ListingCategory["LOCAL"] = "LOCAL";
9
+ ListingCategory["ARABIAN_HOUSE"] = "ARABIAN_HOUSE";
10
+ ListingCategory["NICHE"] = "NICHE";
11
+ })(ListingCategory || (ListingCategory = {}));
@@ -0,0 +1,59 @@
1
+ import type { ListingBoxCondition } from './ListingBoxCondition';
2
+ import type { ListingCategory } from './ListingCategory';
3
+ import type { ListingStatus } from './ListingStatus';
4
+ import type { ListingType } from './ListingType';
5
+ export type ListingDetails = {
6
+ /**
7
+ * Unique identifier for the listing
8
+ */
9
+ id: string;
10
+ /**
11
+ * Name of the listing
12
+ */
13
+ name: string;
14
+ /**
15
+ * Brand of the listing
16
+ */
17
+ brand: string;
18
+ /**
19
+ * Price of the listing
20
+ */
21
+ price: number;
22
+ /**
23
+ * Description of the listing
24
+ */
25
+ description: string;
26
+ /**
27
+ * Status of the listing (e.g., ACTIVE, SOLD, PENDING)
28
+ */
29
+ status: ListingStatus;
30
+ /**
31
+ * Category of the listing
32
+ */
33
+ category: ListingCategory;
34
+ /**
35
+ * Year the item was purchased
36
+ */
37
+ purchase_year: number;
38
+ /**
39
+ * Condition of the box
40
+ */
41
+ box_condition: ListingBoxCondition;
42
+ /**
43
+ * Quantity of the item available
44
+ */
45
+ quantity: number;
46
+ /**
47
+ * Volume of the item in milliliters
48
+ */
49
+ volume: number;
50
+ /**
51
+ * Remaining volume percentage of the item
52
+ */
53
+ remaining_percentage: number;
54
+ /**
55
+ * Type of the listing (e.g., FIXED_PRICE, AUCTION, SWAP)
56
+ */
57
+ listing_type: ListingType;
58
+ };
59
+ //# sourceMappingURL=ListingDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingDetails.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingDetails.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,mBAAmB,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,YAAY,EAAE,WAAW,CAAC;CAC7B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import type { AuctionDetails } from './AuctionDetails';
2
+ import type { CommentDetails } from './CommentDetails';
3
+ import type { ListingDetails } from './ListingDetails';
4
+ import type { UserPreview } from './UserPreview';
5
+ /**
6
+ * Response model for listing details.
7
+ */
8
+ export type ListingDetailsResponse = {
9
+ /**
10
+ * Details of the listing
11
+ */
12
+ listing: ListingDetails;
13
+ /**
14
+ * Seller information for the listing
15
+ */
16
+ seller: UserPreview;
17
+ /**
18
+ * List of image URLs for the listing
19
+ */
20
+ image_urls: Array<string>;
21
+ /**
22
+ * Number of favorites for the listing
23
+ */
24
+ favorites_count: number;
25
+ /**
26
+ * Total number of votes for the listing
27
+ */
28
+ total_votes: number;
29
+ /**
30
+ * Indicates whether the user has upvoted the listing. False if downvote and None if no vote or no user
31
+ */
32
+ is_upvoted?: (boolean | null);
33
+ /**
34
+ * Comments on the listing sorted by post time
35
+ */
36
+ comments?: (Array<CommentDetails> | null);
37
+ /**
38
+ * Auction details if the listing is an auction
39
+ */
40
+ auction_details?: (AuctionDetails | null);
41
+ };
42
+ //# sourceMappingURL=ListingDetailsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingDetailsResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingDetailsResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAC7C,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { Auction } from './Auction';
2
+ import type { Listing } from './Listing';
3
+ /**
4
+ * Response model for a listing.
5
+ */
6
+ export type ListingResponse = {
7
+ /**
8
+ * Details of the created listing
9
+ */
10
+ listing: Listing;
11
+ /**
12
+ * Details of the auction if applicable
13
+ */
14
+ auction?: (Auction | null);
15
+ };
16
+ //# sourceMappingURL=ListingResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;CAC9B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { ListingCategory } from './ListingCategory';
2
+ import type { ListingSortField } from './ListingSortField';
3
+ import type { ListingType } from './ListingType';
4
+ export type ListingSearchRequest = {
5
+ /**
6
+ * List of listing types to filter by
7
+ */
8
+ listing_types?: (Array<ListingType> | null);
9
+ /**
10
+ * List of categories to filter by
11
+ */
12
+ categories?: (Array<ListingCategory> | null);
13
+ /**
14
+ * Field to sort the listings by
15
+ */
16
+ sort?: (ListingSortField | null);
17
+ /**
18
+ * Whether to sort in descending order
19
+ */
20
+ descending?: boolean;
21
+ /**
22
+ * Number of listings to return per page
23
+ */
24
+ per_page?: number;
25
+ /**
26
+ * Page number for pagination
27
+ */
28
+ page?: number;
29
+ };
30
+ //# sourceMappingURL=ListingSearchRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingSearchRequest.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingSearchRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Enum for sorting fields in search queries.
3
+ */
4
+ export declare enum ListingSortField {
5
+ PRICE = "price",
6
+ REMAINING_VOLUME = "remaining_volume",
7
+ PURCHASE_YEAR = "purchase_year",
8
+ CREATED_AT = "created_at",
9
+ FEATURED_AT = "featured_at",
10
+ SOLD_AT = "sold_at"
11
+ }
12
+ //# sourceMappingURL=ListingSortField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingSortField.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingSortField.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,gBAAgB;IACxB,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACtB"}
@@ -0,0 +1,16 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Enum for sorting fields in search queries.
7
+ */
8
+ export var ListingSortField;
9
+ (function (ListingSortField) {
10
+ ListingSortField["PRICE"] = "price";
11
+ ListingSortField["REMAINING_VOLUME"] = "remaining_volume";
12
+ ListingSortField["PURCHASE_YEAR"] = "purchase_year";
13
+ ListingSortField["CREATED_AT"] = "created_at";
14
+ ListingSortField["FEATURED_AT"] = "featured_at";
15
+ ListingSortField["SOLD_AT"] = "sold_at";
16
+ })(ListingSortField || (ListingSortField = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum ListingStatus {
2
+ ACTIVE = "ACTIVE",
3
+ PENDING = "PENDING",
4
+ FROZEN = "FROZEN",
5
+ SOLD = "SOLD",
6
+ AUCTION_PENDING = "AUCTION_PENDING"
7
+ }
8
+ //# sourceMappingURL=ListingStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingStatus.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingStatus.ts"],"names":[],"mappings":"AAIA,oBAAY,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,eAAe,oBAAoB;CACtC"}
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var ListingStatus;
6
+ (function (ListingStatus) {
7
+ ListingStatus["ACTIVE"] = "ACTIVE";
8
+ ListingStatus["PENDING"] = "PENDING";
9
+ ListingStatus["FROZEN"] = "FROZEN";
10
+ ListingStatus["SOLD"] = "SOLD";
11
+ ListingStatus["AUCTION_PENDING"] = "AUCTION_PENDING";
12
+ })(ListingStatus || (ListingStatus = {}));
@@ -0,0 +1,13 @@
1
+ import type { ListingCard } from './ListingCard';
2
+ import type { PaginationDetails } from './PaginationDetails';
3
+ export type ListingTab = {
4
+ /**
5
+ * List of listings in the user's profile tab
6
+ */
7
+ listings: Array<ListingCard>;
8
+ /**
9
+ * Pagination details for the listings
10
+ */
11
+ pagination_data: PaginationDetails;
12
+ };
13
+ //# sourceMappingURL=ListingTab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingTab.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingTab.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B;;OAEG;IACH,eAAe,EAAE,iBAAiB,CAAC;CACtC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -8,5 +8,9 @@ export type LoginResponse = {
8
8
  * The user's profile information if available.
9
9
  */
10
10
  profile: (User | null);
11
+ /**
12
+ * List of favorite listing IDs associated with the user.
13
+ */
14
+ favorites: Array<string>;
11
15
  };
12
16
  //# sourceMappingURL=LoginResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/LoginResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"LoginResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/LoginResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type PaginationDetails = {
2
+ /**
3
+ * Page number of the result
4
+ */
5
+ page: number;
6
+ /**
7
+ * Total number of results found for the query
8
+ */
9
+ found: number;
10
+ /**
11
+ * Total number of pages for this query
12
+ */
13
+ total_pages: number;
14
+ /**
15
+ * Number of results per page
16
+ */
17
+ per_page: number;
18
+ };
19
+ //# sourceMappingURL=PaginationDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationDetails.d.ts","sourceRoot":"","sources":["../../../src/api/models/PaginationDetails.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ export type ProfileDetails = {
2
+ /**
3
+ * Unique identifier for the user
4
+ */
5
+ id: string;
6
+ /**
7
+ * Name of the user
8
+ */
9
+ name: string;
10
+ /**
11
+ * Username of the user
12
+ */
13
+ username: string;
14
+ /**
15
+ * URL to the user's profile picture
16
+ */
17
+ profile_picture?: (string | null);
18
+ /**
19
+ * URL to the user's cover image
20
+ */
21
+ cover_image?: (string | null);
22
+ /**
23
+ * Short biography of the user
24
+ */
25
+ bio?: (string | null);
26
+ /**
27
+ * Location of the user
28
+ */
29
+ location?: (string | null);
30
+ /**
31
+ * Date when the user joined the platform, in ISO format
32
+ */
33
+ joined_at: string;
34
+ /**
35
+ * Average rating of the user based on reviews
36
+ */
37
+ average_rating?: (number | null);
38
+ /**
39
+ * Number of followers the user has
40
+ */
41
+ follower_count: number;
42
+ /**
43
+ * Number of users the user is following
44
+ */
45
+ following_count: number;
46
+ /**
47
+ * Indicates whether the current user is following this user
48
+ */
49
+ is_following: boolean;
50
+ };
51
+ //# sourceMappingURL=ProfileDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileDetails.d.ts","sourceRoot":"","sources":["../../../src/api/models/ProfileDetails.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { ListingTab } from './ListingTab';
2
+ import type { ProfileDetails } from './ProfileDetails';
3
+ import type { ReviewsTab } from './ReviewsTab';
4
+ export type ProfileResponse = {
5
+ /**
6
+ * Profile details of the user
7
+ */
8
+ profile: ProfileDetails;
9
+ /**
10
+ * Active listings of the user
11
+ */
12
+ active_listings?: (ListingTab | null);
13
+ /**
14
+ * Featured listings of the user
15
+ */
16
+ featured_listings?: (ListingTab | null);
17
+ /**
18
+ * Sold listings of the user
19
+ */
20
+ sold_listings?: (ListingTab | null);
21
+ /**
22
+ * Reviews received by the user
23
+ */
24
+ reviews?: (ReviewsTab | null);
25
+ };
26
+ //# sourceMappingURL=ProfileResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/ProfileResponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;CACjC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare enum ProfileTab {
2
+ ACTIVE = "active",
3
+ FEATURED = "featured",
4
+ SOLD = "sold"
5
+ }
6
+ //# sourceMappingURL=ProfileTab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileTab.d.ts","sourceRoot":"","sources":["../../../src/api/models/ProfileTab.ts"],"names":[],"mappings":"AAIA,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;CAChB"}
@@ -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 ProfileTab;
6
+ (function (ProfileTab) {
7
+ ProfileTab["ACTIVE"] = "active";
8
+ ProfileTab["FEATURED"] = "featured";
9
+ ProfileTab["SOLD"] = "sold";
10
+ })(ProfileTab || (ProfileTab = {}));
@@ -0,0 +1,28 @@
1
+ import type { UserPreview } from './UserPreview';
2
+ export type ReviewDetails = {
3
+ /**
4
+ * Unique identifier for the review
5
+ */
6
+ id: string;
7
+ /**
8
+ * ID of the listing being reviewed. None if deleted
9
+ */
10
+ listing_id?: (string | null);
11
+ /**
12
+ * Content of the review
13
+ */
14
+ comment: string;
15
+ /**
16
+ * Rating given in the review, from 0 to 5
17
+ */
18
+ rating: number;
19
+ /**
20
+ * User who wrote the review
21
+ */
22
+ reviewer: (UserPreview | null);
23
+ /**
24
+ * Date when the review was written, in ISO format
25
+ */
26
+ reviewed_at: string;
27
+ };
28
+ //# sourceMappingURL=ReviewDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewDetails.d.ts","sourceRoot":"","sources":["../../../src/api/models/ReviewDetails.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,aAAa,GAAG;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { ReviewSortField } from './ReviewSortField';
2
+ export type ReviewSearchRequest = {
3
+ /**
4
+ * Minimum rating to filter reviews by
5
+ */
6
+ min_rating?: number;
7
+ /**
8
+ * Field to sort the reviews by
9
+ */
10
+ sort?: ReviewSortField;
11
+ /**
12
+ * Whether to sort in descending order
13
+ */
14
+ descending?: boolean;
15
+ /**
16
+ * Number of reviews to return per page
17
+ */
18
+ per_page?: number;
19
+ /**
20
+ * Page number for pagination
21
+ */
22
+ page?: number;
23
+ };
24
+ //# sourceMappingURL=ReviewSearchRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewSearchRequest.d.ts","sourceRoot":"","sources":["../../../src/api/models/ReviewSearchRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enum for sorting fields in review search queries.
3
+ */
4
+ export declare enum ReviewSortField {
5
+ RATING = "rating",
6
+ CREATED_AT = "created_at"
7
+ }
8
+ //# sourceMappingURL=ReviewSortField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewSortField.d.ts","sourceRoot":"","sources":["../../../src/api/models/ReviewSortField.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC5B"}
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Enum for sorting fields in review search queries.
7
+ */
8
+ export var ReviewSortField;
9
+ (function (ReviewSortField) {
10
+ ReviewSortField["RATING"] = "rating";
11
+ ReviewSortField["CREATED_AT"] = "created_at";
12
+ })(ReviewSortField || (ReviewSortField = {}));
@@ -0,0 +1,25 @@
1
+ import type { PaginationDetails } from './PaginationDetails';
2
+ import type { ReviewDetails } from './ReviewDetails';
3
+ export type ReviewsTab = {
4
+ /**
5
+ * Average rating of the user based on reviews
6
+ */
7
+ average_rating: number;
8
+ /**
9
+ * Total number of reviews received by the user
10
+ */
11
+ total_reviews: number;
12
+ /**
13
+ * List of review counts for different rating levels. Start with 0 stars and end with 5 stars
14
+ */
15
+ review_counts: Array<number>;
16
+ /**
17
+ * List of reviews for the user
18
+ */
19
+ reviews: Array<ReviewDetails>;
20
+ /**
21
+ * Pagination details for the reviews
22
+ */
23
+ pagination_data: PaginationDetails;
24
+ };
25
+ //# sourceMappingURL=ReviewsTab.d.ts.map