reset criteria on home, show filter on home, new BOM generation, Schema overhaul
This commit is contained in:
@@ -6,6 +6,7 @@ import { BusinessListingCriteria, CommercialPropertyListingCriteria, JwtToken, K
|
||||
|
||||
export function createDefaultUser(email: string, firstname: string, lastname: string): User {
|
||||
return {
|
||||
id: undefined,
|
||||
email,
|
||||
firstname,
|
||||
lastname,
|
||||
@@ -31,6 +32,7 @@ export function createDefaultUser(email: string, firstname: string, lastname: st
|
||||
export function createDefaultCommercialPropertyListing(): CommercialPropertyListing {
|
||||
return {
|
||||
id: undefined,
|
||||
serialId: undefined,
|
||||
email: '',
|
||||
type: null,
|
||||
title: '',
|
||||
@@ -49,12 +51,15 @@ export function createDefaultCommercialPropertyListing(): CommercialPropertyList
|
||||
updated: null,
|
||||
visits: null,
|
||||
lastVisit: null,
|
||||
latitude: null,
|
||||
longitude: null,
|
||||
listingsCategory: 'commercialProperty',
|
||||
};
|
||||
}
|
||||
export function createDefaultBusinessListing(): BusinessListing {
|
||||
return {
|
||||
id: undefined,
|
||||
email: '',
|
||||
type: null,
|
||||
title: '',
|
||||
description: '',
|
||||
@@ -79,6 +84,8 @@ export function createDefaultBusinessListing(): BusinessListing {
|
||||
updated: null,
|
||||
visits: null,
|
||||
lastVisit: null,
|
||||
latitude: null,
|
||||
longitude: null,
|
||||
listingsCategory: 'business',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user