-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Beautiful & luxurious studio at great location. A quiet cozy and picturesque that hides behind a a river by the unique lightness of Amsterdam. 2024-09-10T10:30:30.000Z Paris paris-preview.jpg paris-photo1.jpg,paris-photo2.jpg true true 4 apartment 2 3 2655 Breakfast;Washer;Fridge Jonh [email protected] user-jonh.jpg 123qwe Pro | ||
Waterfront with extraordinary view. I am happy to welcome you to my apartment in the city center! Three words: location, cosy and chic! 2024-09-11T11:30:45.000Z Cologne cologne-preview.jpg cologne-photo1.jpg,cologne-photo2.jpg false false 3 house 3 4 3540 Baby seat;Washer;Towels;Fridge Royce [email protected] user-royce.jpg poi331 Pro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Offer } from './offer-type.js'; | ||
export { TypeUser, User} from './user-type.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { User } from './user-type.js'; | ||
|
||
export type Images = { | ||
img: string; | ||
} | ||
export type Goods = { | ||
good: string; | ||
} | ||
|
||
export type Offer = { | ||
title: string; | ||
description: string; | ||
postDate: Date; | ||
city: string; | ||
previewImage: string; | ||
images: Images[]; | ||
isFavorite: boolean; | ||
isPremium: boolean; | ||
rating: number; | ||
type: string; | ||
bedrooms: number; | ||
maxAdults: number; | ||
price: number; | ||
goods: Goods[]; | ||
host: User; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum TypeUser { | ||
Pro = 'Pro', | ||
Usual = 'Usual' | ||
} | ||
|
||
export type User = { | ||
name: string; | ||
email: string; | ||
avatarUser?: string; | ||
password: string; | ||
typeUser: TypeUser; | ||
} |