@bid-scents/shared-sdk 1.0.4 → 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.
- package/dist/api/index.d.ts +43 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +11 -0
- package/dist/api/models/Auction.d.ts +16 -0
- package/dist/api/models/Auction.d.ts.map +1 -0
- package/dist/api/models/AuctionDetails.d.ts +36 -0
- package/dist/api/models/AuctionDetails.d.ts.map +1 -0
- package/dist/api/models/AuctionDetails.js +1 -0
- package/dist/api/models/AuctionExpiryResponse.d.ts +14 -0
- package/dist/api/models/AuctionExpiryResponse.d.ts.map +1 -0
- package/dist/api/models/AuctionExpiryResponse.js +1 -0
- package/dist/api/models/AuctionStatus.d.ts +7 -0
- package/dist/api/models/AuctionStatus.d.ts.map +1 -0
- package/dist/api/models/AuctionStatus.js +11 -0
- package/dist/api/models/Bid.d.ts +9 -0
- package/dist/api/models/Bid.d.ts.map +1 -0
- package/dist/api/models/Bid.js +1 -0
- package/dist/api/models/BidDetails.d.ts +23 -0
- package/dist/api/models/BidDetails.d.ts.map +1 -0
- package/dist/api/models/BidDetails.js +1 -0
- package/dist/api/models/BidResponse.d.ts +26 -0
- package/dist/api/models/BidResponse.d.ts.map +1 -0
- package/dist/api/models/BidResponse.js +1 -0
- package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.d.ts +7 -0
- package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.d.ts.map +1 -0
- package/dist/api/models/Body_place_bid_v1_auctions__listing_id__bid_post.js +1 -0
- package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.d.ts +7 -0
- package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.d.ts.map +1 -0
- package/dist/api/models/Body_process_expiry_v1_auctions_cron_expiry_post.js +1 -0
- package/dist/api/models/CommentDetails.d.ts +23 -0
- package/dist/api/models/CommentDetails.d.ts.map +1 -0
- package/dist/api/models/CommentDetails.js +1 -0
- package/dist/api/models/CommentRequest.d.ts +10 -0
- package/dist/api/models/CommentRequest.d.ts.map +1 -0
- package/dist/api/models/CommentRequest.js +1 -0
- package/dist/api/models/CommentResponse.d.ts +18 -0
- package/dist/api/models/CommentResponse.d.ts.map +1 -0
- package/dist/api/models/CommentResponse.js +1 -0
- package/dist/api/models/CreateListingRequest.d.ts +85 -0
- package/dist/api/models/CreateListingRequest.d.ts.map +1 -0
- package/dist/api/models/CreateListingRequest.js +1 -0
- package/dist/api/models/EditProfileRequest.d.ts +31 -0
- package/dist/api/models/EditProfileRequest.d.ts.map +1 -0
- package/dist/api/models/EditProfileRequest.js +1 -0
- package/dist/api/models/FavoriteResponse.d.ts +14 -0
- package/dist/api/models/FavoriteResponse.d.ts.map +1 -0
- package/dist/api/models/FavoriteResponse.js +1 -0
- package/dist/api/models/FilterParameter.d.ts +41 -0
- package/dist/api/models/FilterParameter.d.ts.map +1 -0
- package/dist/api/models/FilterParameter.js +1 -0
- package/dist/api/models/Listing.d.ts +25 -0
- package/dist/api/models/Listing.d.ts.map +1 -0
- package/dist/api/models/Listing.js +1 -0
- package/dist/api/models/ListingBoxCondition.d.ts +6 -0
- package/dist/api/models/ListingBoxCondition.d.ts.map +1 -0
- package/dist/api/models/ListingBoxCondition.js +10 -0
- package/dist/api/models/ListingCard.d.ts +4 -4
- package/dist/api/models/ListingCard.d.ts.map +1 -1
- package/dist/api/models/ListingCategory.d.ts +7 -0
- package/dist/api/models/ListingCategory.d.ts.map +1 -0
- package/dist/api/models/ListingCategory.js +11 -0
- package/dist/api/models/ListingDetails.d.ts +59 -0
- package/dist/api/models/ListingDetails.d.ts.map +1 -0
- package/dist/api/models/ListingDetails.js +1 -0
- package/dist/api/models/ListingDetailsResponse.d.ts +42 -0
- package/dist/api/models/ListingDetailsResponse.d.ts.map +1 -0
- package/dist/api/models/ListingDetailsResponse.js +1 -0
- package/dist/api/models/ListingResponse.d.ts +16 -0
- package/dist/api/models/ListingResponse.d.ts.map +1 -0
- package/dist/api/models/ListingResponse.js +1 -0
- package/dist/api/models/ListingSearchRequest.d.ts +30 -0
- package/dist/api/models/ListingSearchRequest.d.ts.map +1 -0
- package/dist/api/models/ListingSearchRequest.js +1 -0
- package/dist/api/models/ListingSortField.d.ts +12 -0
- package/dist/api/models/ListingSortField.d.ts.map +1 -0
- package/dist/api/models/ListingSortField.js +16 -0
- package/dist/api/models/ListingStatus.d.ts +8 -0
- package/dist/api/models/ListingStatus.d.ts.map +1 -0
- package/dist/api/models/ListingStatus.js +12 -0
- package/dist/api/models/ListingTab.d.ts +13 -0
- package/dist/api/models/ListingTab.d.ts.map +1 -0
- package/dist/api/models/ListingTab.js +1 -0
- package/dist/api/models/LoginResponse.d.ts +4 -0
- package/dist/api/models/LoginResponse.d.ts.map +1 -1
- package/dist/api/models/PaginationDetails.d.ts +19 -0
- package/dist/api/models/PaginationDetails.d.ts.map +1 -0
- package/dist/api/models/PaginationDetails.js +1 -0
- package/dist/api/models/ProfileDetails.d.ts +51 -0
- package/dist/api/models/ProfileDetails.d.ts.map +1 -0
- package/dist/api/models/ProfileDetails.js +1 -0
- package/dist/api/models/ProfileResponse.d.ts +26 -0
- package/dist/api/models/ProfileResponse.d.ts.map +1 -0
- package/dist/api/models/ProfileResponse.js +1 -0
- package/dist/api/models/ProfileTab.d.ts +6 -0
- package/dist/api/models/ProfileTab.d.ts.map +1 -0
- package/dist/api/models/ProfileTab.js +10 -0
- package/dist/api/models/ReviewDetails.d.ts +28 -0
- package/dist/api/models/ReviewDetails.d.ts.map +1 -0
- package/dist/api/models/ReviewDetails.js +1 -0
- package/dist/api/models/ReviewSearchRequest.d.ts +24 -0
- package/dist/api/models/ReviewSearchRequest.d.ts.map +1 -0
- package/dist/api/models/ReviewSearchRequest.js +1 -0
- package/dist/api/models/ReviewSortField.d.ts +8 -0
- package/dist/api/models/ReviewSortField.d.ts.map +1 -0
- package/dist/api/models/ReviewSortField.js +12 -0
- package/dist/api/models/ReviewsTab.d.ts +25 -0
- package/dist/api/models/ReviewsTab.d.ts.map +1 -0
- package/dist/api/models/ReviewsTab.js +1 -0
- package/dist/api/models/SearchRequest.d.ts +28 -0
- package/dist/api/models/SearchRequest.d.ts.map +1 -0
- package/dist/api/models/SearchRequest.js +1 -0
- package/dist/api/models/SearchResponse.d.ts +13 -0
- package/dist/api/models/SearchResponse.d.ts.map +1 -0
- package/dist/api/models/SearchResponse.js +1 -0
- package/dist/api/models/SortParameter.d.ts +15 -0
- package/dist/api/models/SortParameter.d.ts.map +1 -0
- package/dist/api/models/SortParameter.js +1 -0
- package/dist/api/models/UpdateListingRequest.d.ts +80 -0
- package/dist/api/models/UpdateListingRequest.d.ts.map +1 -0
- package/dist/api/models/UpdateListingRequest.js +1 -0
- package/dist/api/models/User.d.ts +1 -1
- package/dist/api/models/User.d.ts.map +1 -1
- package/dist/api/models/UserPreview.d.ts +15 -0
- package/dist/api/models/UserPreview.d.ts.map +1 -0
- package/dist/api/models/UserPreview.js +1 -0
- package/dist/api/services/AuctionsService.d.ts +25 -0
- package/dist/api/services/AuctionsService.d.ts.map +1 -0
- package/dist/api/services/AuctionsService.js +47 -0
- package/dist/api/services/DashboardService.d.ts +37 -0
- package/dist/api/services/DashboardService.d.ts.map +1 -0
- package/dist/api/services/DashboardService.js +79 -0
- package/dist/api/services/ListingService.d.ts +93 -0
- package/dist/api/services/ListingService.d.ts.map +1 -0
- package/dist/api/services/ListingService.js +196 -0
- package/dist/api/services/ProfileService.d.ts +74 -0
- package/dist/api/services/ProfileService.d.ts.map +1 -0
- package/dist/api/services/ProfileService.js +149 -0
- package/package.json +1 -1
- package/dist/api/models/Seller.d.ts +0 -11
- package/dist/api/models/Seller.d.ts.map +0 -1
- /package/dist/api/models/{Seller.js → Auction.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {
|
|
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
|
|
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:
|
|
39
|
+
seller: UserPreview;
|
|
40
40
|
/**
|
|
41
41
|
* Type of the listing (e.g., FIXED_PRICE, NEGOTIABLE)
|
|
42
42
|
*/
|
|
43
|
-
listing_type
|
|
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,
|
|
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 @@
|
|
|
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 @@
|
|
|
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;
|
|
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 @@
|
|
|
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 @@
|
|
|
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
|