tweak(marketplace): Tweak marketplace to match current fetching std

This commit is contained in:
Taso committed 2021-06-08 16:35:41 -04:00
1 parent 10639260e0
commit 5e225ca736
23 files changed
+148 -136

No files matched your search

+6 -11
View File
@@ -33,7 +33,12 @@ export enum MarketplaceEvents {
REPORT_LISTING_SUCCESS = 'npwd:reportListingSuccess',
REPORT_LISTING_SUCESS = 'npwd:reportListingFailed',
SEND_ALERT = 'nwpd:sendListingAlert',
BROADCAST_EVENT = 'npwd:sendMarketplaceBroadcast',
BROADCAST_ADD = 'npwd:sendMarketplaceBroadcastAdd',
BROADCAST_DELETE = 'npwd:sendMarketplaceBroadcastDelete',
}
export interface MarketplaceBroadcastAddDTO {
listing: MarketplaceListing;
}
export interface MarketplaceDeleteDTO {
@@ -43,13 +48,3 @@ export interface MarketplaceDeleteDTO {
export interface MarketplaceReportDTO {
id: number;
}
export type MarketPlaceBroadcastData =
| {
type: 'ADD';
listing: MarketplaceListing;
}
| {
type: 'DELETE';
listing: MarketplaceDeleteDTO;
};