Einbau Validation finished
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BusinessListing, CommercialPropertyListing, User } from './db.model';
|
||||
import { BusinessListing, CommercialPropertyListing, Sender, User } from './db.model.js';
|
||||
|
||||
export interface StatesResult {
|
||||
state: string;
|
||||
@@ -199,13 +199,13 @@ export interface MailInfo {
|
||||
url: string;
|
||||
listing?: BusinessListing;
|
||||
}
|
||||
export interface Sender {
|
||||
name?: string;
|
||||
email?: string;
|
||||
phoneNumber?: string;
|
||||
state?: string;
|
||||
comments?: string;
|
||||
}
|
||||
// export interface Sender {
|
||||
// name?: string;
|
||||
// email?: string;
|
||||
// phoneNumber?: string;
|
||||
// state?: string;
|
||||
// comments?: string;
|
||||
// }
|
||||
export interface ImageProperty {
|
||||
id: string;
|
||||
code: string;
|
||||
@@ -309,20 +309,19 @@ export function createDefaultCommercialPropertyListing(): CommercialPropertyList
|
||||
return {
|
||||
id: undefined,
|
||||
serialId: undefined,
|
||||
email: '',
|
||||
email: null,
|
||||
type: null,
|
||||
title: '',
|
||||
description: '',
|
||||
city: '',
|
||||
state: '',
|
||||
title: null,
|
||||
description: null,
|
||||
city: null,
|
||||
state: null,
|
||||
price: null,
|
||||
favoritesForUser: [],
|
||||
hideImage: false,
|
||||
draft: false,
|
||||
zipCode: null,
|
||||
county: '',
|
||||
county: null,
|
||||
imageOrder: [],
|
||||
imagePath: '',
|
||||
imagePath: null,
|
||||
created: null,
|
||||
updated: null,
|
||||
visits: null,
|
||||
@@ -335,12 +334,12 @@ export function createDefaultCommercialPropertyListing(): CommercialPropertyList
|
||||
export function createDefaultBusinessListing(): BusinessListing {
|
||||
return {
|
||||
id: undefined,
|
||||
email: '',
|
||||
email: null,
|
||||
type: null,
|
||||
title: '',
|
||||
description: '',
|
||||
city: '',
|
||||
state: '',
|
||||
title: null,
|
||||
description: null,
|
||||
city: null,
|
||||
state: null,
|
||||
price: null,
|
||||
favoritesForUser: [],
|
||||
draft: false,
|
||||
@@ -349,13 +348,13 @@ export function createDefaultBusinessListing(): BusinessListing {
|
||||
franchiseResale: false,
|
||||
salesRevenue: null,
|
||||
cashFlow: null,
|
||||
supportAndTraining: '',
|
||||
supportAndTraining: null,
|
||||
employees: null,
|
||||
established: null,
|
||||
internalListingNumber: null,
|
||||
reasonForSale: '',
|
||||
brokerLicencing: '',
|
||||
internals: '',
|
||||
reasonForSale: null,
|
||||
brokerLicencing: null,
|
||||
internals: null,
|
||||
created: null,
|
||||
updated: null,
|
||||
visits: null,
|
||||
|
||||
Reference in New Issue
Block a user