@rentbase/common 1.0.17 → 1.0.18
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.
|
@@ -3,15 +3,23 @@
|
|
|
3
3
|
* Events emitted when admins update monetization configuration such as
|
|
4
4
|
* country/currency pricing rows for listing fees and access passes.
|
|
5
5
|
*/
|
|
6
|
+
export interface MonetizationPricingTenantPassTier {
|
|
7
|
+
durationDays: number;
|
|
8
|
+
priceAmount: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MonetizationPricingListingFees {
|
|
11
|
+
rentalAmount: number;
|
|
12
|
+
saleAmount: number;
|
|
13
|
+
durationDays: number;
|
|
14
|
+
}
|
|
6
15
|
export interface MonetizationPricingUpsertedEvent {
|
|
7
16
|
pricingId: string;
|
|
8
17
|
countryId?: string;
|
|
9
18
|
countryCode?: string;
|
|
10
19
|
currency: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
isActive?: boolean;
|
|
20
|
+
tenantPassTiers: MonetizationPricingTenantPassTier[];
|
|
21
|
+
listingFees: MonetizationPricingListingFees;
|
|
22
|
+
isActive: boolean;
|
|
15
23
|
updatedAt: string | Date;
|
|
16
24
|
updatedByAuthUserId?: string;
|
|
17
25
|
}
|
|
@@ -55,8 +55,27 @@ export interface PropertyPricing {
|
|
|
55
55
|
currency: string;
|
|
56
56
|
period?: "monthly" | "weekly" | "daily";
|
|
57
57
|
deposit?: number;
|
|
58
|
+
depositMonths?: number;
|
|
59
|
+
leaseDuration?: number;
|
|
60
|
+
minimumLeasePeriod?: number;
|
|
61
|
+
paymentFrequency?: string;
|
|
62
|
+
firstLastMonthRequired?: boolean;
|
|
63
|
+
rentalInsuranceRequired?: boolean;
|
|
64
|
+
acceptsBankGuarantee?: boolean;
|
|
58
65
|
negotiable?: boolean;
|
|
59
66
|
minPrice?: number;
|
|
67
|
+
taxValue?: number;
|
|
68
|
+
ratesAndTaxes?: number;
|
|
69
|
+
bodyCorporateFee?: number;
|
|
70
|
+
transferFeesIncluded?: boolean;
|
|
71
|
+
hoa?: boolean;
|
|
72
|
+
hoaFee?: number;
|
|
73
|
+
acceptsCrypto?: boolean;
|
|
74
|
+
acceptsInstallments?: boolean;
|
|
75
|
+
downPaymentPercentage?: number;
|
|
76
|
+
utilityIncluded?: boolean;
|
|
77
|
+
utilityCosts?: number;
|
|
78
|
+
maintenanceFee?: number;
|
|
60
79
|
}
|
|
61
80
|
export interface PropertyMonetization {
|
|
62
81
|
listingFeePaid?: boolean;
|
|
@@ -85,6 +104,7 @@ export interface PropertyLocation {
|
|
|
85
104
|
lng?: number;
|
|
86
105
|
neighbourhood?: string;
|
|
87
106
|
landmark?: string;
|
|
107
|
+
distanceFromCityCentreKm?: number;
|
|
88
108
|
}
|
|
89
109
|
export declare enum OfferStatus {
|
|
90
110
|
PENDING = "pending",
|
|
@@ -142,6 +162,10 @@ export interface PropertyCreatedEvent {
|
|
|
142
162
|
minimumOfferPrice?: number;
|
|
143
163
|
favoritesCount?: number;
|
|
144
164
|
viewsCount?: number;
|
|
165
|
+
inquiryCount?: number;
|
|
166
|
+
trustScore?: number;
|
|
167
|
+
virtualTourUrl?: string;
|
|
168
|
+
floorPlanUrl?: string;
|
|
145
169
|
verificationStatus?: "unverified" | "pending" | "verified" | "rejected" | "needs_info";
|
|
146
170
|
monetization?: PropertyMonetization;
|
|
147
171
|
createdAt: string | Date;
|
|
@@ -182,6 +206,10 @@ export interface PropertyUpdatedEvent {
|
|
|
182
206
|
minimumOfferPrice?: number;
|
|
183
207
|
favoritesCount?: number;
|
|
184
208
|
viewsCount?: number;
|
|
209
|
+
inquiryCount?: number;
|
|
210
|
+
trustScore?: number;
|
|
211
|
+
virtualTourUrl?: string;
|
|
212
|
+
floorPlanUrl?: string;
|
|
185
213
|
verificationStatus?: "unverified" | "pending" | "verified" | "rejected" | "needs_info";
|
|
186
214
|
monetization?: PropertyMonetization;
|
|
187
215
|
updatedAt: string | Date;
|