@rentbase/common 1.0.14 → 1.0.15
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/build/events/publishers/monetization-pricing-activated-publisher.d.ts +5 -0
- package/build/events/publishers/monetization-pricing-activated-publisher.js +20 -0
- package/build/events/publishers/monetization-pricing-deactivated-publisher.d.ts +5 -0
- package/build/events/publishers/monetization-pricing-deactivated-publisher.js +20 -0
- package/build/events/publishers/monetization-pricing-upserted-publisher.d.ts +5 -0
- package/build/events/publishers/monetization-pricing-upserted-publisher.js +20 -0
- package/build/events/publishers/property-enquiry-created-publisher.d.ts +5 -0
- package/build/events/publishers/property-enquiry-created-publisher.js +20 -0
- package/build/events/publishers/property-enquiry-status-changed-publisher.d.ts +5 -0
- package/build/events/publishers/property-enquiry-status-changed-publisher.js +20 -0
- package/build/events/publishers/property-listing-expired-publisher.d.ts +5 -0
- package/build/events/publishers/property-listing-expired-publisher.js +20 -0
- package/build/events/publishers/property-listing-fee-marked-paid-publisher.d.ts +5 -0
- package/build/events/publishers/property-listing-fee-marked-paid-publisher.js +20 -0
- package/build/events/publishers/property-listing-renewed-publisher.d.ts +5 -0
- package/build/events/publishers/property-listing-renewed-publisher.js +20 -0
- package/build/events/publishers/tenant-access-pass-consumed-publisher.d.ts +5 -0
- package/build/events/publishers/tenant-access-pass-consumed-publisher.js +20 -0
- package/build/events/publishers/tenant-access-pass-expired-publisher.d.ts +5 -0
- package/build/events/publishers/tenant-access-pass-expired-publisher.js +20 -0
- package/build/events/publishers/tenant-access-pass-purchased-publisher.d.ts +5 -0
- package/build/events/publishers/tenant-access-pass-purchased-publisher.js +20 -0
- package/build/events/types/index.d.ts +11 -0
- package/build/events/types/monetization-events.d.ts +53 -0
- package/build/events/types/monetization-events.js +6 -0
- package/build/events/types/monetization-settings-events.d.ts +33 -0
- package/build/events/types/monetization-settings-events.js +7 -0
- package/build/events/types/property-events.d.ts +13 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishMonetizationPricingActivated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish monetization_pricing.activated event
|
|
16
|
+
*/
|
|
17
|
+
const publishMonetizationPricingActivated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("monetization_pricing.activated", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishMonetizationPricingActivated = publishMonetizationPricingActivated;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MonetizationPricingDeactivatedEvent } from "../types/monetization-settings-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish monetization_pricing.deactivated event
|
|
4
|
+
*/
|
|
5
|
+
export declare const publishMonetizationPricingDeactivated: (data: MonetizationPricingDeactivatedEvent) => Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishMonetizationPricingDeactivated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish monetization_pricing.deactivated event
|
|
16
|
+
*/
|
|
17
|
+
const publishMonetizationPricingDeactivated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("monetization_pricing.deactivated", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishMonetizationPricingDeactivated = publishMonetizationPricingDeactivated;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishMonetizationPricingUpserted = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish monetization_pricing.upserted event
|
|
16
|
+
*/
|
|
17
|
+
const publishMonetizationPricingUpserted = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("monetization_pricing.upserted", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishMonetizationPricingUpserted = publishMonetizationPricingUpserted;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishPropertyEnquiryCreated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property.enquiry.created event
|
|
16
|
+
*/
|
|
17
|
+
const publishPropertyEnquiryCreated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("property.enquiry.created", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishPropertyEnquiryCreated = publishPropertyEnquiryCreated;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishPropertyEnquiryStatusChanged = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property.enquiry.status.changed event
|
|
16
|
+
*/
|
|
17
|
+
const publishPropertyEnquiryStatusChanged = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("property.enquiry.status.changed", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishPropertyEnquiryStatusChanged = publishPropertyEnquiryStatusChanged;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishPropertyListingExpired = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_listing.expired event
|
|
16
|
+
*/
|
|
17
|
+
const publishPropertyListingExpired = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("property_listing.expired", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishPropertyListingExpired = publishPropertyListingExpired;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishPropertyListingFeeMarkedPaid = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_listing.fee.marked_paid event
|
|
16
|
+
*/
|
|
17
|
+
const publishPropertyListingFeeMarkedPaid = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("property_listing.fee.marked_paid", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishPropertyListingFeeMarkedPaid = publishPropertyListingFeeMarkedPaid;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishPropertyListingRenewed = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_listing.renewed event
|
|
16
|
+
*/
|
|
17
|
+
const publishPropertyListingRenewed = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("property_listing.renewed", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishPropertyListingRenewed = publishPropertyListingRenewed;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishTenantAccessPassConsumed = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish tenant_access_pass.consumed event
|
|
16
|
+
*/
|
|
17
|
+
const publishTenantAccessPassConsumed = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("tenant_access_pass.consumed", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishTenantAccessPassConsumed = publishTenantAccessPassConsumed;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishTenantAccessPassExpired = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish tenant_access_pass.expired event
|
|
16
|
+
*/
|
|
17
|
+
const publishTenantAccessPassExpired = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("tenant_access_pass.expired", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishTenantAccessPassExpired = publishTenantAccessPassExpired;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.publishTenantAccessPassPurchased = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish tenant_access_pass.purchased event
|
|
16
|
+
*/
|
|
17
|
+
const publishTenantAccessPassPurchased = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
yield (0, producer_1.publishEvent)("tenant_access_pass.purchased", data);
|
|
19
|
+
});
|
|
20
|
+
exports.publishTenantAccessPassPurchased = publishTenantAccessPassPurchased;
|
|
@@ -7,6 +7,8 @@ import { IncidentReportCreatedEvent, IncidentReportUpdatedEvent, IncidentReportR
|
|
|
7
7
|
import { WalletCreatedEvent, WalletAdjustedEvent, WalletBalanceUpdatedEvent, WalletStatusChangedEvent, WalletTransactionCreatedEvent, TransactionStatusChangedEvent, PaymentIntentCreatedEvent, PaymentIntentSucceededEvent, PaymentIntentFailedEvent, PaymentIntentCancelledEvent, PaymentChargeRefundedEvent, PayoutRequestedEvent, PayoutApprovedEvent, PayoutProcessingEvent, PayoutSucceededEvent, PayoutFailedEvent, PayoutCancelledEvent, WebhookReceivedEvent, WebhookProcessedEvent } from "./payment-events";
|
|
8
8
|
import { ChatSessionCreatedEvent, ChatSessionClosedEvent, ChatParticipantMutedEvent, ChatPushMessageCreatedEvent, MessageSentEvent, MessageDeliveredEvent, MessageReadEvent, SystemMessageAddedEvent, CallInitiatedEvent, CallRingingEvent, CallAnsweredEvent, CallRejectedEvent, CallMissedEvent, CallEndedEvent, CallFailedEvent, CallRatedEvent, CallProviderStatusUpdateEvent } from "./chat-events";
|
|
9
9
|
import { PropertyEnquiryCreatedEvent, PropertyEnquiryStatusChangedEvent } from "./property-enquiry-events";
|
|
10
|
+
import { TenantAccessPassPurchasedEvent, TenantAccessPassConsumedEvent, TenantAccessPassExpiredEvent, PropertyListingExpiredEvent, PropertyListingRenewedEvent, PropertyListingFeeMarkedPaidEvent } from "./monetization-events";
|
|
11
|
+
import { MonetizationPricingUpsertedEvent, MonetizationPricingActivatedEvent, MonetizationPricingDeactivatedEvent } from "./monetization-settings-events";
|
|
10
12
|
import { CampaignCreatedEvent, CampaignActivatedEvent, CampaignStatusChangedEvent, CampaignExpiredEvent, PromoCodeCreatedEvent, PromoCodeBulkCreatedEvent, PromoCodeAppliedEvent, PromoCodeStatusChangedEvent, ReferralCodeGeneratedEvent, ReferralClaimedEvent, ReferralQualifiedEvent, ReferralRewardsGrantedEvent, ReferralStatusChangedEvent, RewardCreditIssuedEvent, RewardCreditUsedEvent, RewardCreditExpiredEvent, RewardCreditCancelledEvent, DiscountCalculatedEvent, DiscountAppliedEvent, CampaignRedemptionEvent, ReferralConversionEvent } from "./promotion-events";
|
|
11
13
|
import { KycDocumentUploadedEvent, KycDocumentVerifiedEvent, KycDocumentRejectedEvent, KycDocumentDeletedEvent, LandlordApplicationCreatedEvent, LandlordApplicationSubmittedEvent, LandlordApplicationUnderReviewEvent, LandlordApplicationNeedsInfoEvent, LandlordApplicationApprovedEvent, LandlordApplicationRejectedEvent, LandlordApplicationUpdatedEvent } from "./kyc-events";
|
|
12
14
|
export interface EventMap {
|
|
@@ -38,6 +40,15 @@ export interface EventMap {
|
|
|
38
40
|
"property_viewing.completed": PropertyViewingCompletedEvent;
|
|
39
41
|
"property_viewing.cancelled": PropertyViewingCancelledEvent;
|
|
40
42
|
"property_viewing.no_show": PropertyViewingNoShowEvent;
|
|
43
|
+
"tenant_access_pass.purchased": TenantAccessPassPurchasedEvent;
|
|
44
|
+
"tenant_access_pass.consumed": TenantAccessPassConsumedEvent;
|
|
45
|
+
"tenant_access_pass.expired": TenantAccessPassExpiredEvent;
|
|
46
|
+
"property_listing.expired": PropertyListingExpiredEvent;
|
|
47
|
+
"property_listing.renewed": PropertyListingRenewedEvent;
|
|
48
|
+
"property_listing.fee.marked_paid": PropertyListingFeeMarkedPaidEvent;
|
|
49
|
+
"monetization_pricing.upserted": MonetizationPricingUpsertedEvent;
|
|
50
|
+
"monetization_pricing.activated": MonetizationPricingActivatedEvent;
|
|
51
|
+
"monetization_pricing.deactivated": MonetizationPricingDeactivatedEvent;
|
|
41
52
|
"rental_agreement.created": RentalAgreementCreatedEvent;
|
|
42
53
|
"rental_agreement.signed": RentalAgreementSignedEvent;
|
|
43
54
|
"rental_agreement.activated": RentalAgreementActivatedEvent;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monetization Events
|
|
3
|
+
* Standalone events for access passes and time-limited listings.
|
|
4
|
+
*/
|
|
5
|
+
export interface TenantAccessPassPurchasedEvent {
|
|
6
|
+
passId: string;
|
|
7
|
+
tenantAuthUserId: string;
|
|
8
|
+
countryId?: string;
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
currency: string;
|
|
11
|
+
priceAmount: number;
|
|
12
|
+
durationDays: number;
|
|
13
|
+
purchasedAt: string | Date;
|
|
14
|
+
expiresAt: string | Date;
|
|
15
|
+
transactionId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TenantAccessPassConsumedEvent {
|
|
18
|
+
passId: string;
|
|
19
|
+
tenantAuthUserId: string;
|
|
20
|
+
consumedAt: string | Date;
|
|
21
|
+
consumedPropertyId?: string;
|
|
22
|
+
expiresAt?: string | Date;
|
|
23
|
+
}
|
|
24
|
+
export interface TenantAccessPassExpiredEvent {
|
|
25
|
+
passId: string;
|
|
26
|
+
tenantAuthUserId: string;
|
|
27
|
+
expiredAt: string | Date;
|
|
28
|
+
expiresAt: string | Date;
|
|
29
|
+
}
|
|
30
|
+
export interface PropertyListingExpiredEvent {
|
|
31
|
+
propertyId: string;
|
|
32
|
+
ownerAuthUserId?: string;
|
|
33
|
+
expiredAt: string | Date;
|
|
34
|
+
expiresAt?: string | Date;
|
|
35
|
+
publishedAt?: string | Date;
|
|
36
|
+
lastRenewedAt?: string | Date;
|
|
37
|
+
}
|
|
38
|
+
export interface PropertyListingRenewedEvent {
|
|
39
|
+
propertyId: string;
|
|
40
|
+
ownerAuthUserId?: string;
|
|
41
|
+
renewedAt: string | Date;
|
|
42
|
+
previousExpiresAt?: string | Date;
|
|
43
|
+
newExpiresAt?: string | Date;
|
|
44
|
+
}
|
|
45
|
+
export interface PropertyListingFeeMarkedPaidEvent {
|
|
46
|
+
propertyId: string;
|
|
47
|
+
ownerAuthUserId?: string;
|
|
48
|
+
amount?: number;
|
|
49
|
+
currency?: string;
|
|
50
|
+
paidAt: string | Date;
|
|
51
|
+
transactionId?: string;
|
|
52
|
+
markedByAuthUserId?: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monetization Settings Events
|
|
3
|
+
* Events emitted when admins update monetization configuration such as
|
|
4
|
+
* country/currency pricing rows for listing fees and access passes.
|
|
5
|
+
*/
|
|
6
|
+
export interface MonetizationPricingUpsertedEvent {
|
|
7
|
+
pricingId: string;
|
|
8
|
+
countryId?: string;
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
currency: string;
|
|
11
|
+
listingFeeAmount?: number;
|
|
12
|
+
accessPassPriceAmount?: number;
|
|
13
|
+
accessPassDurationDays?: number;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
updatedAt: string | Date;
|
|
16
|
+
updatedByAuthUserId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface MonetizationPricingActivatedEvent {
|
|
19
|
+
pricingId: string;
|
|
20
|
+
countryId?: string;
|
|
21
|
+
countryCode?: string;
|
|
22
|
+
currency?: string;
|
|
23
|
+
activatedAt: string | Date;
|
|
24
|
+
activatedByAuthUserId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface MonetizationPricingDeactivatedEvent {
|
|
27
|
+
pricingId: string;
|
|
28
|
+
countryId?: string;
|
|
29
|
+
countryCode?: string;
|
|
30
|
+
currency?: string;
|
|
31
|
+
deactivatedAt: string | Date;
|
|
32
|
+
deactivatedByAuthUserId?: string;
|
|
33
|
+
}
|
|
@@ -58,6 +58,17 @@ export interface PropertyPricing {
|
|
|
58
58
|
negotiable?: boolean;
|
|
59
59
|
minPrice?: number;
|
|
60
60
|
}
|
|
61
|
+
export interface PropertyMonetization {
|
|
62
|
+
listingFeePaid?: boolean;
|
|
63
|
+
listingFeeAmount?: number;
|
|
64
|
+
listingFeeCurrency?: string;
|
|
65
|
+
listingFeePaidAt?: string | Date;
|
|
66
|
+
listingFeeTransactionId?: string;
|
|
67
|
+
publishedAt?: string | Date;
|
|
68
|
+
unlistedAt?: string | Date;
|
|
69
|
+
expiresAt?: string | Date;
|
|
70
|
+
lastRenewedAt?: string | Date;
|
|
71
|
+
}
|
|
61
72
|
export interface PropertyLocation {
|
|
62
73
|
address: string;
|
|
63
74
|
city?: string;
|
|
@@ -132,6 +143,7 @@ export interface PropertyCreatedEvent {
|
|
|
132
143
|
favoritesCount?: number;
|
|
133
144
|
viewsCount?: number;
|
|
134
145
|
verificationStatus?: "unverified" | "pending" | "verified" | "rejected" | "needs_info";
|
|
146
|
+
monetization?: PropertyMonetization;
|
|
135
147
|
createdAt: string | Date;
|
|
136
148
|
updatedAt: string | Date;
|
|
137
149
|
}
|
|
@@ -171,6 +183,7 @@ export interface PropertyUpdatedEvent {
|
|
|
171
183
|
favoritesCount?: number;
|
|
172
184
|
viewsCount?: number;
|
|
173
185
|
verificationStatus?: "unverified" | "pending" | "verified" | "rejected" | "needs_info";
|
|
186
|
+
monetization?: PropertyMonetization;
|
|
174
187
|
updatedAt: string | Date;
|
|
175
188
|
}
|
|
176
189
|
export interface PropertyStatusChangedEvent {
|
package/build/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from "./events/types/payment-events";
|
|
|
21
21
|
export * from "./events/types/chat-events";
|
|
22
22
|
export * from "./events/types/promotion-events";
|
|
23
23
|
export * from "./events/types/kyc-events";
|
|
24
|
+
export * from "./events/types/monetization-events";
|
|
25
|
+
export * from "./events/types/monetization-settings-events";
|
|
24
26
|
export * from "./events/types";
|
|
25
27
|
export * from "./events/publishers/country-created-publisher";
|
|
26
28
|
export * from "./events/publishers/country-updated-publisher";
|
|
@@ -46,6 +48,8 @@ export * from "./events/publishers/property-viewing-confirmed-publisher";
|
|
|
46
48
|
export * from "./events/publishers/property-viewing-completed-publisher";
|
|
47
49
|
export * from "./events/publishers/property-viewing-cancelled-publisher";
|
|
48
50
|
export * from "./events/publishers/property-viewing-no-show-publisher";
|
|
51
|
+
export * from "./events/publishers/property-enquiry-created-publisher";
|
|
52
|
+
export * from "./events/publishers/property-enquiry-status-changed-publisher";
|
|
49
53
|
export * from "./events/publishers/rental-agreement-created-publisher";
|
|
50
54
|
export * from "./events/publishers/rental-agreement-signed-publisher";
|
|
51
55
|
export * from "./events/publishers/rental-agreement-activated-publisher";
|
|
@@ -145,3 +149,12 @@ export * from "./events/publishers/landlord-application-needs-info-publisher";
|
|
|
145
149
|
export * from "./events/publishers/landlord-application-approved-publisher";
|
|
146
150
|
export * from "./events/publishers/landlord-application-rejected-publisher";
|
|
147
151
|
export * from "./events/publishers/landlord-application-updated-publisher";
|
|
152
|
+
export * from "./events/publishers/tenant-access-pass-purchased-publisher";
|
|
153
|
+
export * from "./events/publishers/tenant-access-pass-consumed-publisher";
|
|
154
|
+
export * from "./events/publishers/tenant-access-pass-expired-publisher";
|
|
155
|
+
export * from "./events/publishers/property-listing-expired-publisher";
|
|
156
|
+
export * from "./events/publishers/property-listing-renewed-publisher";
|
|
157
|
+
export * from "./events/publishers/property-listing-fee-marked-paid-publisher";
|
|
158
|
+
export * from "./events/publishers/monetization-pricing-upserted-publisher";
|
|
159
|
+
export * from "./events/publishers/monetization-pricing-activated-publisher";
|
|
160
|
+
export * from "./events/publishers/monetization-pricing-deactivated-publisher";
|
package/build/index.js
CHANGED
|
@@ -34,6 +34,8 @@ __exportStar(require("./events/types/payment-events"), exports);
|
|
|
34
34
|
__exportStar(require("./events/types/chat-events"), exports);
|
|
35
35
|
__exportStar(require("./events/types/promotion-events"), exports);
|
|
36
36
|
__exportStar(require("./events/types/kyc-events"), exports);
|
|
37
|
+
__exportStar(require("./events/types/monetization-events"), exports);
|
|
38
|
+
__exportStar(require("./events/types/monetization-settings-events"), exports);
|
|
37
39
|
__exportStar(require("./events/types"), exports);
|
|
38
40
|
// Geo Config / Location event publishers
|
|
39
41
|
__exportStar(require("./events/publishers/country-created-publisher"), exports);
|
|
@@ -64,6 +66,9 @@ __exportStar(require("./events/publishers/property-viewing-confirmed-publisher")
|
|
|
64
66
|
__exportStar(require("./events/publishers/property-viewing-completed-publisher"), exports);
|
|
65
67
|
__exportStar(require("./events/publishers/property-viewing-cancelled-publisher"), exports);
|
|
66
68
|
__exportStar(require("./events/publishers/property-viewing-no-show-publisher"), exports);
|
|
69
|
+
// Property Enquiry event publishers
|
|
70
|
+
__exportStar(require("./events/publishers/property-enquiry-created-publisher"), exports);
|
|
71
|
+
__exportStar(require("./events/publishers/property-enquiry-status-changed-publisher"), exports);
|
|
67
72
|
// Rental Agreement event publishers
|
|
68
73
|
__exportStar(require("./events/publishers/rental-agreement-created-publisher"), exports);
|
|
69
74
|
__exportStar(require("./events/publishers/rental-agreement-signed-publisher"), exports);
|
|
@@ -182,3 +187,14 @@ __exportStar(require("./events/publishers/landlord-application-needs-info-publis
|
|
|
182
187
|
__exportStar(require("./events/publishers/landlord-application-approved-publisher"), exports);
|
|
183
188
|
__exportStar(require("./events/publishers/landlord-application-rejected-publisher"), exports);
|
|
184
189
|
__exportStar(require("./events/publishers/landlord-application-updated-publisher"), exports);
|
|
190
|
+
// Monetization event publishers
|
|
191
|
+
__exportStar(require("./events/publishers/tenant-access-pass-purchased-publisher"), exports);
|
|
192
|
+
__exportStar(require("./events/publishers/tenant-access-pass-consumed-publisher"), exports);
|
|
193
|
+
__exportStar(require("./events/publishers/tenant-access-pass-expired-publisher"), exports);
|
|
194
|
+
__exportStar(require("./events/publishers/property-listing-expired-publisher"), exports);
|
|
195
|
+
__exportStar(require("./events/publishers/property-listing-renewed-publisher"), exports);
|
|
196
|
+
__exportStar(require("./events/publishers/property-listing-fee-marked-paid-publisher"), exports);
|
|
197
|
+
// Monetization settings publishers
|
|
198
|
+
__exportStar(require("./events/publishers/monetization-pricing-upserted-publisher"), exports);
|
|
199
|
+
__exportStar(require("./events/publishers/monetization-pricing-activated-publisher"), exports);
|
|
200
|
+
__exportStar(require("./events/publishers/monetization-pricing-deactivated-publisher"), exports);
|