hububb-models 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.ts +1 -1
- package/src/models/listing.d.ts +89 -0
- package/src/models/listing.ts +90 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type { Listing } from "./models/listing";
|
1
|
+
export type { Listing, Picture, Address } from "./models/listing";
|
package/src/index.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type { Listing } from "./models/listing";
|
1
|
+
export type { Listing, Picture, Address } from "./models/listing";
|
package/src/models/listing.d.ts
CHANGED
@@ -2,4 +2,93 @@ import { Timestamp } from "@firebase/firestore-types";
|
|
2
2
|
|
3
3
|
export interface Listing {
|
4
4
|
id?: string;
|
5
|
+
accountId?: string;
|
6
|
+
createdAt: Timestamp;
|
7
|
+
isVirtual?: boolean;
|
8
|
+
isListed: boolean;
|
9
|
+
title?: string;
|
10
|
+
propertyType?: string;
|
11
|
+
roomType?: string;
|
12
|
+
bedType?: string;
|
13
|
+
accommodates?: number;
|
14
|
+
bedrooms?: number;
|
15
|
+
areaSquareFeet?: number;
|
16
|
+
address: Address;
|
17
|
+
publishedAddress: {
|
18
|
+
full: string;
|
19
|
+
lng: number;
|
20
|
+
lat: number;
|
21
|
+
street: string;
|
22
|
+
city: string;
|
23
|
+
country: string;
|
24
|
+
};
|
25
|
+
timezone?: string;
|
26
|
+
defaultCheckInTime?: string;
|
27
|
+
defaultCheckOutTime?: string;
|
28
|
+
|
29
|
+
picture?: Picture;
|
30
|
+
pictures: Picture[];
|
31
|
+
amenities: string[];
|
32
|
+
|
33
|
+
terms: {
|
34
|
+
minNights: number;
|
35
|
+
maxNights: number;
|
36
|
+
cancellation: string;
|
37
|
+
};
|
38
|
+
prices: {
|
39
|
+
guestsIncludedInRegularFee: number;
|
40
|
+
extraPersonFee: number;
|
41
|
+
basePrice: number;
|
42
|
+
basePriceUSD: number;
|
43
|
+
monthlyPriceFactor: number;
|
44
|
+
weeklyPriceFactor: number;
|
45
|
+
weeendBasePrice: number;
|
46
|
+
securityDepositFee: number;
|
47
|
+
currency: string;
|
48
|
+
cleaningFee: number;
|
49
|
+
};
|
50
|
+
netIncomeFormula: string;
|
51
|
+
commissionFormula: string;
|
52
|
+
commissionTaxPrecentage: string;
|
53
|
+
|
54
|
+
paymentProcessing: {
|
55
|
+
active: boolean;
|
56
|
+
paymentProviders: {
|
57
|
+
stripe: {
|
58
|
+
active: boolean;
|
59
|
+
status: string;
|
60
|
+
accountName: string;
|
61
|
+
defaultCurrency: string;
|
62
|
+
syncedAt: Timestamp;
|
63
|
+
payload: {
|
64
|
+
id: string;
|
65
|
+
livemode: boolean;
|
66
|
+
token_type: string;
|
67
|
+
stripe_publishable_key: string;
|
68
|
+
stripe_user_id: string;
|
69
|
+
scope: string;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
};
|
73
|
+
};
|
74
|
+
active: boolean;
|
75
|
+
publicDescription: any;
|
76
|
+
}
|
77
|
+
export interface Address {
|
78
|
+
full: string;
|
79
|
+
lng: number;
|
80
|
+
lat: number;
|
81
|
+
street: string;
|
82
|
+
city: string;
|
83
|
+
country: string;
|
84
|
+
}
|
85
|
+
export interface Picture {
|
86
|
+
regular?: string;
|
87
|
+
thumbnail?: string;
|
88
|
+
large?: string;
|
89
|
+
caption?: string;
|
90
|
+
original?: string;
|
91
|
+
height?: number;
|
92
|
+
size?: number;
|
93
|
+
width?: number;
|
5
94
|
}
|
package/src/models/listing.ts
CHANGED
@@ -2,4 +2,94 @@ import { Timestamp } from "@firebase/firestore-types";
|
|
2
2
|
|
3
3
|
export interface Listing {
|
4
4
|
id?: string;
|
5
|
+
accountId?: string;
|
6
|
+
createdAt: Timestamp;
|
7
|
+
isVirtual?: boolean;
|
8
|
+
isListed: boolean;
|
9
|
+
title?: string;
|
10
|
+
propertyType?: string;
|
11
|
+
roomType?: string;
|
12
|
+
bedType?: string;
|
13
|
+
accommodates?: number;
|
14
|
+
bedrooms?: number;
|
15
|
+
bathrooms?: number;
|
16
|
+
areaSquareFeet?: number;
|
17
|
+
address: Address;
|
18
|
+
publishedAddress: {
|
19
|
+
full: string;
|
20
|
+
lng: number;
|
21
|
+
lat: number;
|
22
|
+
street: string;
|
23
|
+
city: string;
|
24
|
+
country: string;
|
25
|
+
};
|
26
|
+
timezone?: string;
|
27
|
+
defaultCheckInTime?: string;
|
28
|
+
defaultCheckOutTime?: string;
|
29
|
+
|
30
|
+
picture?: Picture;
|
31
|
+
pictures: Picture[];
|
32
|
+
amenities: string[];
|
33
|
+
|
34
|
+
terms: {
|
35
|
+
minNights: number;
|
36
|
+
maxNights: number;
|
37
|
+
cancellation: string;
|
38
|
+
};
|
39
|
+
prices: {
|
40
|
+
guestsIncludedInRegularFee: number;
|
41
|
+
extraPersonFee: number;
|
42
|
+
basePrice: number;
|
43
|
+
basePriceUSD: number;
|
44
|
+
monthlyPriceFactor: number;
|
45
|
+
weeklyPriceFactor: number;
|
46
|
+
weeendBasePrice: number;
|
47
|
+
securityDepositFee: number;
|
48
|
+
currency: string;
|
49
|
+
cleaningFee: number;
|
50
|
+
};
|
51
|
+
netIncomeFormula: string;
|
52
|
+
commissionFormula: string;
|
53
|
+
commissionTaxPrecentage: string;
|
54
|
+
|
55
|
+
paymentProcessing: {
|
56
|
+
active: boolean;
|
57
|
+
paymentProviders: {
|
58
|
+
stripe: {
|
59
|
+
active: boolean;
|
60
|
+
status: string;
|
61
|
+
accountName: string;
|
62
|
+
defaultCurrency: string;
|
63
|
+
syncedAt: Timestamp;
|
64
|
+
payload: {
|
65
|
+
id: string;
|
66
|
+
livemode: boolean;
|
67
|
+
token_type: string;
|
68
|
+
stripe_publishable_key: string;
|
69
|
+
stripe_user_id: string;
|
70
|
+
scope: string;
|
71
|
+
};
|
72
|
+
};
|
73
|
+
};
|
74
|
+
};
|
75
|
+
active: boolean;
|
76
|
+
publicDescription: any;
|
77
|
+
}
|
78
|
+
export interface Address {
|
79
|
+
full: string;
|
80
|
+
lng: number;
|
81
|
+
lat: number;
|
82
|
+
street: string;
|
83
|
+
city: string;
|
84
|
+
country: string;
|
85
|
+
}
|
86
|
+
export interface Picture {
|
87
|
+
regular?: string;
|
88
|
+
thumbnail?: string;
|
89
|
+
large?: string;
|
90
|
+
caption?: string;
|
91
|
+
original?: string;
|
92
|
+
height?: number;
|
93
|
+
size?: number;
|
94
|
+
width?: number;
|
5
95
|
}
|