Ansichten verbessert - 1. Teil
This commit is contained in:
@@ -16,22 +16,23 @@ export type SelectOption<T = number> = {
|
||||
export interface Listing {
|
||||
id: string;
|
||||
userId: string;
|
||||
type: string; //enum
|
||||
title: string;
|
||||
description: Array<string>;
|
||||
country: string;
|
||||
city: string,
|
||||
state: string;//enum
|
||||
price?: number;
|
||||
favoritesForUser:Array<string>;
|
||||
hideImage?:boolean;
|
||||
draft?:boolean;
|
||||
created:Date;
|
||||
updated:Date;
|
||||
temporary:boolean;
|
||||
}
|
||||
export interface BusinessListing extends Listing {
|
||||
listingsCategory: 'business'; //enum
|
||||
// summary: Array<string>;
|
||||
type: string; //enum
|
||||
price?: number;
|
||||
realEstateIncluded?: boolean;
|
||||
leasedLocation?:boolean;
|
||||
franchiseResale?:boolean;
|
||||
@@ -46,6 +47,18 @@ export interface BusinessListing extends Listing {
|
||||
brokerLicencing?: string;
|
||||
internals?: string;
|
||||
}
|
||||
export interface CommercialPropertyListing extends Listing {
|
||||
listingsCategory: 'commercialProperty'; //enum
|
||||
images:string[];
|
||||
zipCode:number;
|
||||
county:string
|
||||
email?: string;
|
||||
website?: string;
|
||||
phoneNumber?: string;
|
||||
}
|
||||
export type ListingType =
|
||||
| BusinessListing
|
||||
| CommercialPropertyListing;
|
||||
// export interface ProfessionalsBrokersListing extends Listing {
|
||||
// listingsCategory: 'professionals_brokers'; //enum
|
||||
// summary: string;
|
||||
@@ -54,16 +67,6 @@ export interface BusinessListing extends Listing {
|
||||
// website?: string;
|
||||
// category?: 'Professionals' | 'Broker';
|
||||
// }
|
||||
export interface CommercialPropertyListing extends Listing {
|
||||
listingsCategory: 'commercialProperty'; //enum
|
||||
email?: string;
|
||||
website?: string;
|
||||
phoneNumber?: string;
|
||||
}
|
||||
export type ListingType =
|
||||
| BusinessListing
|
||||
| CommercialPropertyListing;
|
||||
|
||||
export interface ListingCriteria {
|
||||
type:string,
|
||||
state:string,
|
||||
@@ -176,4 +179,9 @@ export interface MailInfo {
|
||||
phoneNumber?: string;
|
||||
state?: string;
|
||||
comments?: string;
|
||||
}
|
||||
export interface ImageProperty {
|
||||
id:string;
|
||||
code:string;
|
||||
name:string;
|
||||
}
|
||||
Reference in New Issue
Block a user