@bid-scents/shared-sdk 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/index.d.ts +66 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +17 -0
- package/dist/api/models/ActionContent.d.ts +12 -0
- package/dist/api/models/ActionContent.d.ts.map +1 -0
- package/dist/api/models/Auction.d.ts +16 -0
- package/dist/api/models/Auction.d.ts.map +1 -0
- package/dist/api/models/Auction.js +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/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/BidRequest.d.ts +10 -0
- package/dist/api/models/BidRequest.d.ts.map +1 -0
- package/dist/api/models/BidRequest.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/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/ConversationResponse.d.ts +30 -0
- package/dist/api/models/ConversationResponse.d.ts.map +1 -0
- package/dist/api/models/ConversationResponse.js +1 -0
- package/dist/api/models/ConversationSummary.d.ts +34 -0
- package/dist/api/models/ConversationSummary.d.ts.map +1 -0
- package/dist/api/models/ConversationSummary.js +1 -0
- package/dist/api/models/ConversationType.d.ts +6 -0
- package/dist/api/models/ConversationType.d.ts.map +1 -0
- package/dist/api/models/ConversationType.js +10 -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/ErrorResData.d.ts +12 -0
- package/dist/api/models/ErrorResData.d.ts.map +1 -0
- package/dist/api/models/ErrorResData.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/FileContent.d.ts +19 -0
- package/dist/api/models/FileContent.d.ts.map +1 -0
- package/dist/api/models/FileContent.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/ListingPreview.d.ts +7 -0
- package/dist/api/models/ListingPreview.d.ts.map +1 -0
- package/dist/api/models/ListingPreview.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/Message.d.ts +28 -0
- package/dist/api/models/Message.d.ts.map +1 -0
- package/dist/api/models/Message.js +1 -0
- package/dist/api/models/MessageActionType.d.ts +5 -0
- package/dist/api/models/MessageActionType.d.ts.map +1 -0
- package/dist/api/models/MessageActionType.js +9 -0
- package/dist/api/models/MessageReqData.d.ts +19 -0
- package/dist/api/models/MessageReqData.d.ts.map +1 -0
- package/dist/api/models/MessageReqData.js +1 -0
- package/dist/api/models/MessageResData.d.ts +32 -0
- package/dist/api/models/MessageResData.d.ts.map +1 -0
- package/dist/api/models/MessageResData.js +1 -0
- package/dist/api/models/MessageType.d.ts +7 -0
- package/dist/api/models/MessageType.d.ts.map +1 -0
- package/dist/api/models/MessageType.js +11 -0
- package/dist/api/models/MessagesSummary.d.ts +12 -0
- package/dist/api/models/MessagesSummary.d.ts.map +1 -0
- package/dist/api/models/MessagesSummary.js +1 -0
- 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/Participant.d.ts +12 -0
- package/dist/api/models/Participant.d.ts.map +1 -0
- package/dist/api/models/Participant.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/RichActionContent.d.ts +13 -0
- package/dist/api/models/RichActionContent.d.ts.map +1 -0
- package/dist/api/models/RichActionContent.js +1 -0
- package/dist/api/models/RichTextContent.d.ts +12 -0
- package/dist/api/models/RichTextContent.d.ts.map +1 -0
- package/dist/api/models/RichTextContent.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/TextContent.d.ts +11 -0
- package/dist/api/models/TextContent.d.ts.map +1 -0
- package/dist/api/models/TextContent.js +1 -0
- package/dist/api/models/TypingReqData.d.ts +11 -0
- package/dist/api/models/TypingReqData.d.ts.map +1 -0
- package/dist/api/models/TypingReqData.js +1 -0
- package/dist/api/models/TypingResData.d.ts +16 -0
- package/dist/api/models/TypingResData.d.ts.map +1 -0
- package/dist/api/models/TypingResData.js +1 -0
- package/dist/api/models/UpdateLastReadData.d.ts +15 -0
- package/dist/api/models/UpdateLastReadData.d.ts.map +1 -0
- package/dist/api/models/UpdateLastReadData.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 +6 -0
- package/dist/api/models/UserPreview.d.ts.map +1 -0
- package/dist/api/models/UserPreview.js +1 -0
- package/dist/api/models/WSErrorCode.d.ts +9 -0
- package/dist/api/models/WSErrorCode.d.ts.map +1 -0
- package/dist/api/models/WSErrorCode.js +13 -0
- package/dist/api/models/WSMessageRequest.d.ts +14 -0
- package/dist/api/models/WSMessageRequest.d.ts.map +1 -0
- package/dist/api/models/WSMessageRequest.js +1 -0
- package/dist/api/models/WSMessageResponse.d.ts +16 -0
- package/dist/api/models/WSMessageResponse.d.ts.map +1 -0
- package/dist/api/models/WSMessageResponse.js +1 -0
- package/dist/api/models/WSType.d.ts +10 -0
- package/dist/api/models/WSType.d.ts.map +1 -0
- package/dist/api/models/WSType.js +14 -0
- package/dist/api/services/AuctionsService.d.ts +15 -0
- package/dist/api/services/AuctionsService.d.ts.map +1 -0
- package/dist/api/services/AuctionsService.js +26 -0
- package/dist/api/services/AuthService.d.ts +1 -1
- package/dist/api/services/AuthService.js +1 -1
- 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/MessageService.d.ts +65 -0
- package/dist/api/services/MessageService.d.ts.map +1 -0
- package/dist/api/services/MessageService.js +128 -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/dist/utils/validation/create-listing-schema.d.ts +391 -0
- package/dist/utils/validation/create-listing-schema.d.ts.map +1 -0
- package/dist/utils/validation/create-listing-schema.js +125 -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 → ActionContent.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type EditProfileRequest = {
|
|
2
|
+
/**
|
|
3
|
+
* Username of the user
|
|
4
|
+
*/
|
|
5
|
+
username?: (string | null);
|
|
6
|
+
/**
|
|
7
|
+
* First name of the user
|
|
8
|
+
*/
|
|
9
|
+
first_name?: (string | null);
|
|
10
|
+
/**
|
|
11
|
+
* Last name of the user
|
|
12
|
+
*/
|
|
13
|
+
last_name?: (string | null);
|
|
14
|
+
/**
|
|
15
|
+
* URL to the user's profile picture
|
|
16
|
+
*/
|
|
17
|
+
profile_image_url?: (string | null);
|
|
18
|
+
/**
|
|
19
|
+
* URL to the user's cover image
|
|
20
|
+
*/
|
|
21
|
+
cover_image_url?: (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
|
+
//# sourceMappingURL=EditProfileRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditProfileRequest.d.ts","sourceRoot":"","sources":["../../../src/api/models/EditProfileRequest.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC;;OAEG;IACH,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorResData.d.ts","sourceRoot":"","sources":["../../../src/api/models/ErrorResData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response model for the favorite listing operation.
|
|
3
|
+
*/
|
|
4
|
+
export type FavoriteResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Updated count of favorites for the listing
|
|
7
|
+
*/
|
|
8
|
+
favorites_count: number;
|
|
9
|
+
/**
|
|
10
|
+
* Indicates whether the listing is favorited by the user
|
|
11
|
+
*/
|
|
12
|
+
is_favorited: boolean;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FavoriteResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FavoriteResponse.d.ts","sourceRoot":"","sources":["../../../src/api/models/FavoriteResponse.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type FileContent = {
|
|
2
|
+
/**
|
|
3
|
+
* URL of the file
|
|
4
|
+
*/
|
|
5
|
+
file_url: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the file
|
|
8
|
+
*/
|
|
9
|
+
file_name: string;
|
|
10
|
+
/**
|
|
11
|
+
* MIME type of the file
|
|
12
|
+
*/
|
|
13
|
+
file_type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Caption for the file, if any
|
|
16
|
+
*/
|
|
17
|
+
caption?: (string | null);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=FileContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileContent.d.ts","sourceRoot":"","sources":["../../../src/api/models/FileContent.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ListingBoxCondition } from './ListingBoxCondition';
|
|
2
|
+
import type { ListingCategory } from './ListingCategory';
|
|
3
|
+
import type { ListingType } from './ListingType';
|
|
4
|
+
/**
|
|
5
|
+
* Model representing filter parameters for search queries.
|
|
6
|
+
*/
|
|
7
|
+
export type FilterParameter = {
|
|
8
|
+
/**
|
|
9
|
+
* List of listing types to filter by
|
|
10
|
+
*/
|
|
11
|
+
listing_types?: (Array<ListingType> | null);
|
|
12
|
+
/**
|
|
13
|
+
* List of categories to filter by
|
|
14
|
+
*/
|
|
15
|
+
categories?: (Array<ListingCategory> | null);
|
|
16
|
+
/**
|
|
17
|
+
* Minimum price to filter by
|
|
18
|
+
*/
|
|
19
|
+
min_price?: (number | null);
|
|
20
|
+
/**
|
|
21
|
+
* Maximum price to filter by
|
|
22
|
+
*/
|
|
23
|
+
max_price?: (number | null);
|
|
24
|
+
/**
|
|
25
|
+
* Minimum purchase year to filter by
|
|
26
|
+
*/
|
|
27
|
+
min_purchase_year?: (number | null);
|
|
28
|
+
/**
|
|
29
|
+
* Maximum purchase year to filter by
|
|
30
|
+
*/
|
|
31
|
+
max_purchase_year?: (number | null);
|
|
32
|
+
/**
|
|
33
|
+
* List of box conditions to filter by
|
|
34
|
+
*/
|
|
35
|
+
box_conditions?: (Array<ListingBoxCondition> | null);
|
|
36
|
+
/**
|
|
37
|
+
* List of seller IDs to filter by
|
|
38
|
+
*/
|
|
39
|
+
seller_ids?: (Array<string> | null);
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=FilterParameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterParameter.d.ts","sourceRoot":"","sources":["../../../src/api/models/FilterParameter.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,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;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,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC;IACrD;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 Listing = {
|
|
6
|
+
id: string;
|
|
7
|
+
seller_id: string;
|
|
8
|
+
listing_type: ListingType;
|
|
9
|
+
name: string;
|
|
10
|
+
brand: string;
|
|
11
|
+
description: string;
|
|
12
|
+
category: ListingCategory;
|
|
13
|
+
price: number;
|
|
14
|
+
volume: number;
|
|
15
|
+
remaining_percentage: number;
|
|
16
|
+
quantity: number;
|
|
17
|
+
purchase_year: number;
|
|
18
|
+
box_condition: ListingBoxCondition;
|
|
19
|
+
batch_code?: (string | null);
|
|
20
|
+
status?: ListingStatus;
|
|
21
|
+
is_featured?: boolean;
|
|
22
|
+
image_urls?: Array<string>;
|
|
23
|
+
favorites_count?: number;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Listing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Listing.d.ts","sourceRoot":"","sources":["../../../src/api/models/Listing.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,OAAO,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,WAAW,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,mBAAmB,CAAC;IACnC,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ListingPreview.d.ts","sourceRoot":"","sources":["../../../src/api/models/ListingPreview.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC/B,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,28 @@
|
|
|
1
|
+
import type { FileContent } from './FileContent';
|
|
2
|
+
import type { MessageType } from './MessageType';
|
|
3
|
+
import type { RichActionContent } from './RichActionContent';
|
|
4
|
+
import type { RichTextContent } from './RichTextContent';
|
|
5
|
+
import type { UserPreview } from './UserPreview';
|
|
6
|
+
export type Message = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the message
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Information about the user who sent the message
|
|
13
|
+
*/
|
|
14
|
+
sender?: (UserPreview | null);
|
|
15
|
+
/**
|
|
16
|
+
* Type of the message
|
|
17
|
+
*/
|
|
18
|
+
type: MessageType;
|
|
19
|
+
/**
|
|
20
|
+
* Content of the message
|
|
21
|
+
*/
|
|
22
|
+
content: (RichTextContent | FileContent | RichActionContent);
|
|
23
|
+
/**
|
|
24
|
+
* Timestamp when the message was created, in ISO 8601 format
|
|
25
|
+
*/
|
|
26
|
+
created_at: string;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/api/models/Message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,MAAM,MAAM,OAAO,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,CAAC,eAAe,GAAG,WAAW,GAAG,iBAAiB,CAAC,CAAC;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageActionType.d.ts","sourceRoot":"","sources":["../../../src/api/models/MessageActionType.ts"],"names":[],"mappings":"AAIA,oBAAY,iBAAiB;IACzB,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;CACtC"}
|
|
@@ -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 MessageActionType;
|
|
6
|
+
(function (MessageActionType) {
|
|
7
|
+
MessageActionType["INITIATE_TRANSACTION"] = "INITIATE_TRANSACTION";
|
|
8
|
+
MessageActionType["CONFIRM_RECEIPT"] = "CONFIRM_RECEIPT";
|
|
9
|
+
})(MessageActionType || (MessageActionType = {}));
|