hububb-models 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Models for Hububb application",
5
5
  "main": "index.js",
6
6
  "types": "./src/index.d.ts",
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";
@@ -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
  }
@@ -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
  }