mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
35 lines
776 B
TypeScript
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;
|
|
}
|