Files
new-phone-who-dis/typings/marketplace.ts
T

35 lines
776 B
TypeScript

export interface MarketplaceListing extends MarketplaceListingBase {
id: number;
identifier?: string;
username: string;
name: string;
number: string;
}
export interface MarketplaceListingBase {
title: string;
url: string;
description: string;
}
export enum MarketplaceEvents {
ADD_LISTING = 'npwd:addListing',
FETCH_LISTING = 'npwd:fetchAllListings',
DELETE_LISTING = 'npwd:marketplaceDeleteListing',
REPORT_LISTING = 'npwd:reportListing',
BROADCAST_ADD = 'npwd:sendMarketplaceBroadcastAdd',
BROADCAST_DELETE = 'npwd:sendMarketplaceBroadcastDelete',
}
export interface MarketplaceBroadcastAddDTO {
listing: MarketplaceListing;
}
export interface MarketplaceDeleteDTO {
id: number;
}
export interface MarketplaceReportDTO {
id: number;
}