@rentbase/common 1.0.5
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/errors/bad-request-error.d.ts +9 -0
- package/build/errors/bad-request-error.js +16 -0
- package/build/errors/custom-error.d.ts +8 -0
- package/build/errors/custom-error.js +10 -0
- package/build/errors/database-connection-error.d.ts +9 -0
- package/build/errors/database-connection-error.js +16 -0
- package/build/errors/not-authorized-error.d.ts +8 -0
- package/build/errors/not-authorized-error.js +15 -0
- package/build/errors/not-found-error.d.ts +8 -0
- package/build/errors/not-found-error.js +15 -0
- package/build/errors/request-validation-error.d.ts +11 -0
- package/build/errors/request-validation-error.js +19 -0
- package/build/events/consumer.d.ts +2 -0
- package/build/events/consumer.js +30 -0
- package/build/events/producer.d.ts +3 -0
- package/build/events/producer.js +42 -0
- package/build/events/publishers/call-answered-publisher.d.ts +2 -0
- package/build/events/publishers/call-answered-publisher.js +17 -0
- package/build/events/publishers/call-ended-publisher.d.ts +2 -0
- package/build/events/publishers/call-ended-publisher.js +17 -0
- package/build/events/publishers/call-failed-publisher.d.ts +2 -0
- package/build/events/publishers/call-failed-publisher.js +17 -0
- package/build/events/publishers/call-initiated-publisher.d.ts +2 -0
- package/build/events/publishers/call-initiated-publisher.js +17 -0
- package/build/events/publishers/call-missed-publisher.d.ts +2 -0
- package/build/events/publishers/call-missed-publisher.js +17 -0
- package/build/events/publishers/call-provider-status-update-publisher.d.ts +2 -0
- package/build/events/publishers/call-provider-status-update-publisher.js +17 -0
- package/build/events/publishers/call-rated-publisher.d.ts +2 -0
- package/build/events/publishers/call-rated-publisher.js +17 -0
- package/build/events/publishers/call-rejected-publisher.d.ts +2 -0
- package/build/events/publishers/call-rejected-publisher.js +17 -0
- package/build/events/publishers/call-ringing-publisher.d.ts +2 -0
- package/build/events/publishers/call-ringing-publisher.js +17 -0
- package/build/events/publishers/campaign-activated-publisher.d.ts +2 -0
- package/build/events/publishers/campaign-activated-publisher.js +17 -0
- package/build/events/publishers/campaign-created-publisher.d.ts +2 -0
- package/build/events/publishers/campaign-created-publisher.js +17 -0
- package/build/events/publishers/campaign-expired-publisher.d.ts +2 -0
- package/build/events/publishers/campaign-expired-publisher.js +17 -0
- package/build/events/publishers/campaign-redemption-publisher.d.ts +2 -0
- package/build/events/publishers/campaign-redemption-publisher.js +17 -0
- package/build/events/publishers/campaign-status-changed-publisher.d.ts +2 -0
- package/build/events/publishers/campaign-status-changed-publisher.js +17 -0
- package/build/events/publishers/chat-participant-muted-publisher.d.ts +2 -0
- package/build/events/publishers/chat-participant-muted-publisher.js +17 -0
- package/build/events/publishers/chat-session-closed-publisher.d.ts +2 -0
- package/build/events/publishers/chat-session-closed-publisher.js +17 -0
- package/build/events/publishers/chat-session-created-publisher.d.ts +2 -0
- package/build/events/publishers/chat-session-created-publisher.js +17 -0
- package/build/events/publishers/city-created-publisher.d.ts +6 -0
- package/build/events/publishers/city-created-publisher.js +21 -0
- package/build/events/publishers/city-status-changed-publisher.d.ts +6 -0
- package/build/events/publishers/city-status-changed-publisher.js +21 -0
- package/build/events/publishers/city-updated-publisher.d.ts +6 -0
- package/build/events/publishers/city-updated-publisher.js +21 -0
- package/build/events/publishers/country-created-publisher.d.ts +6 -0
- package/build/events/publishers/country-created-publisher.js +21 -0
- package/build/events/publishers/country-status-changed-publisher.d.ts +6 -0
- package/build/events/publishers/country-status-changed-publisher.js +21 -0
- package/build/events/publishers/country-updated-publisher.d.ts +6 -0
- package/build/events/publishers/country-updated-publisher.js +21 -0
- package/build/events/publishers/disciplinary-action-activated-publisher.d.ts +2 -0
- package/build/events/publishers/disciplinary-action-activated-publisher.js +17 -0
- package/build/events/publishers/disciplinary-action-created-publisher.d.ts +2 -0
- package/build/events/publishers/disciplinary-action-created-publisher.js +17 -0
- package/build/events/publishers/disciplinary-action-revoked-publisher.d.ts +2 -0
- package/build/events/publishers/disciplinary-action-revoked-publisher.js +17 -0
- package/build/events/publishers/discount-applied-publisher.d.ts +2 -0
- package/build/events/publishers/discount-applied-publisher.js +17 -0
- package/build/events/publishers/discount-calculated-publisher.d.ts +2 -0
- package/build/events/publishers/discount-calculated-publisher.js +17 -0
- package/build/events/publishers/incident-created-publisher.d.ts +2 -0
- package/build/events/publishers/incident-created-publisher.js +17 -0
- package/build/events/publishers/incident-resolved-publisher.d.ts +2 -0
- package/build/events/publishers/incident-resolved-publisher.js +17 -0
- package/build/events/publishers/incident-updated-publisher.d.ts +2 -0
- package/build/events/publishers/incident-updated-publisher.js +17 -0
- package/build/events/publishers/message-delivered-publisher.d.ts +2 -0
- package/build/events/publishers/message-delivered-publisher.js +17 -0
- package/build/events/publishers/message-read-publisher.d.ts +2 -0
- package/build/events/publishers/message-read-publisher.js +17 -0
- package/build/events/publishers/message-sent-publisher.d.ts +2 -0
- package/build/events/publishers/message-sent-publisher.js +17 -0
- package/build/events/publishers/notification-bulk-send-completed-publisher.d.ts +6 -0
- package/build/events/publishers/notification-bulk-send-completed-publisher.js +21 -0
- package/build/events/publishers/notification-bulk-send-initiated-publisher.d.ts +6 -0
- package/build/events/publishers/notification-bulk-send-initiated-publisher.js +21 -0
- package/build/events/publishers/notification-created-publisher.d.ts +6 -0
- package/build/events/publishers/notification-created-publisher.js +21 -0
- package/build/events/publishers/notification-delivered-publisher.d.ts +6 -0
- package/build/events/publishers/notification-delivered-publisher.js +21 -0
- package/build/events/publishers/notification-failed-publisher.d.ts +6 -0
- package/build/events/publishers/notification-failed-publisher.js +21 -0
- package/build/events/publishers/notification-preferences-updated-publisher.d.ts +6 -0
- package/build/events/publishers/notification-preferences-updated-publisher.js +21 -0
- package/build/events/publishers/notification-read-publisher.d.ts +6 -0
- package/build/events/publishers/notification-read-publisher.js +21 -0
- package/build/events/publishers/notification-sent-publisher.d.ts +6 -0
- package/build/events/publishers/notification-sent-publisher.js +21 -0
- package/build/events/publishers/notification-template-created-publisher.d.ts +6 -0
- package/build/events/publishers/notification-template-created-publisher.js +21 -0
- package/build/events/publishers/notification-template-updated-publisher.d.ts +6 -0
- package/build/events/publishers/notification-template-updated-publisher.js +21 -0
- package/build/events/publishers/payment-charge-refunded-publisher.d.ts +2 -0
- package/build/events/publishers/payment-charge-refunded-publisher.js +17 -0
- package/build/events/publishers/payment-intent-cancelled-publisher.d.ts +2 -0
- package/build/events/publishers/payment-intent-cancelled-publisher.js +17 -0
- package/build/events/publishers/payment-intent-created-publisher.d.ts +2 -0
- package/build/events/publishers/payment-intent-created-publisher.js +17 -0
- package/build/events/publishers/payment-intent-failed-publisher.d.ts +2 -0
- package/build/events/publishers/payment-intent-failed-publisher.js +17 -0
- package/build/events/publishers/payment-intent-succeeded-publisher.d.ts +2 -0
- package/build/events/publishers/payment-intent-succeeded-publisher.js +17 -0
- package/build/events/publishers/payout-approved-publisher.d.ts +2 -0
- package/build/events/publishers/payout-approved-publisher.js +17 -0
- package/build/events/publishers/payout-cancelled-publisher.d.ts +2 -0
- package/build/events/publishers/payout-cancelled-publisher.js +17 -0
- package/build/events/publishers/payout-failed-publisher.d.ts +2 -0
- package/build/events/publishers/payout-failed-publisher.js +17 -0
- package/build/events/publishers/payout-processing-publisher.d.ts +2 -0
- package/build/events/publishers/payout-processing-publisher.js +17 -0
- package/build/events/publishers/payout-requested-publisher.d.ts +2 -0
- package/build/events/publishers/payout-requested-publisher.js +17 -0
- package/build/events/publishers/payout-succeeded-publisher.d.ts +2 -0
- package/build/events/publishers/payout-succeeded-publisher.js +17 -0
- package/build/events/publishers/promo-code-applied-publisher.d.ts +2 -0
- package/build/events/publishers/promo-code-applied-publisher.js +17 -0
- package/build/events/publishers/promo-code-bulk-created-publisher.d.ts +2 -0
- package/build/events/publishers/promo-code-bulk-created-publisher.js +17 -0
- package/build/events/publishers/promo-code-created-publisher.d.ts +2 -0
- package/build/events/publishers/promo-code-created-publisher.js +17 -0
- package/build/events/publishers/promo-code-status-changed-publisher.d.ts +2 -0
- package/build/events/publishers/promo-code-status-changed-publisher.js +17 -0
- package/build/events/publishers/property-created-publisher.d.ts +6 -0
- package/build/events/publishers/property-created-publisher.js +21 -0
- package/build/events/publishers/property-deleted-publisher.d.ts +6 -0
- package/build/events/publishers/property-deleted-publisher.js +21 -0
- package/build/events/publishers/property-offer-accepted-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-accepted-publisher.js +21 -0
- package/build/events/publishers/property-offer-created-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-created-publisher.js +21 -0
- package/build/events/publishers/property-offer-expired-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-expired-publisher.js +21 -0
- package/build/events/publishers/property-offer-rejected-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-rejected-publisher.js +21 -0
- package/build/events/publishers/property-offer-updated-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-updated-publisher.js +21 -0
- package/build/events/publishers/property-offer-withdrawn-publisher.d.ts +6 -0
- package/build/events/publishers/property-offer-withdrawn-publisher.js +21 -0
- package/build/events/publishers/property-rating-submitted-publisher.d.ts +6 -0
- package/build/events/publishers/property-rating-submitted-publisher.js +21 -0
- package/build/events/publishers/property-rating-updated-publisher.d.ts +6 -0
- package/build/events/publishers/property-rating-updated-publisher.js +21 -0
- package/build/events/publishers/property-report-created-publisher.d.ts +6 -0
- package/build/events/publishers/property-report-created-publisher.js +21 -0
- package/build/events/publishers/property-report-resolved-publisher.d.ts +6 -0
- package/build/events/publishers/property-report-resolved-publisher.js +21 -0
- package/build/events/publishers/property-report-updated-publisher.d.ts +6 -0
- package/build/events/publishers/property-report-updated-publisher.js +21 -0
- package/build/events/publishers/property-status-changed-publisher.d.ts +6 -0
- package/build/events/publishers/property-status-changed-publisher.js +21 -0
- package/build/events/publishers/property-updated-publisher.d.ts +6 -0
- package/build/events/publishers/property-updated-publisher.js +21 -0
- package/build/events/publishers/property-viewed-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewed-publisher.js +21 -0
- package/build/events/publishers/property-viewing-cancelled-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewing-cancelled-publisher.js +21 -0
- package/build/events/publishers/property-viewing-completed-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewing-completed-publisher.js +21 -0
- package/build/events/publishers/property-viewing-confirmed-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewing-confirmed-publisher.js +21 -0
- package/build/events/publishers/property-viewing-no-show-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewing-no-show-publisher.js +21 -0
- package/build/events/publishers/property-viewing-scheduled-publisher.d.ts +6 -0
- package/build/events/publishers/property-viewing-scheduled-publisher.js +21 -0
- package/build/events/publishers/referral-claimed-publisher.d.ts +2 -0
- package/build/events/publishers/referral-claimed-publisher.js +17 -0
- package/build/events/publishers/referral-code-generated-publisher.d.ts +2 -0
- package/build/events/publishers/referral-code-generated-publisher.js +17 -0
- package/build/events/publishers/referral-conversion-publisher.d.ts +2 -0
- package/build/events/publishers/referral-conversion-publisher.js +17 -0
- package/build/events/publishers/referral-qualified-publisher.d.ts +2 -0
- package/build/events/publishers/referral-qualified-publisher.js +17 -0
- package/build/events/publishers/referral-rewards-granted-publisher.d.ts +2 -0
- package/build/events/publishers/referral-rewards-granted-publisher.js +17 -0
- package/build/events/publishers/referral-status-changed-publisher.d.ts +2 -0
- package/build/events/publishers/referral-status-changed-publisher.js +17 -0
- package/build/events/publishers/rental-agreement-activated-publisher.d.ts +6 -0
- package/build/events/publishers/rental-agreement-activated-publisher.js +21 -0
- package/build/events/publishers/rental-agreement-created-publisher.d.ts +6 -0
- package/build/events/publishers/rental-agreement-created-publisher.js +21 -0
- package/build/events/publishers/rental-agreement-expired-publisher.d.ts +6 -0
- package/build/events/publishers/rental-agreement-expired-publisher.js +21 -0
- package/build/events/publishers/rental-agreement-signed-publisher.d.ts +6 -0
- package/build/events/publishers/rental-agreement-signed-publisher.js +21 -0
- package/build/events/publishers/rental-agreement-terminated-publisher.d.ts +6 -0
- package/build/events/publishers/rental-agreement-terminated-publisher.js +21 -0
- package/build/events/publishers/reward-credit-cancelled-publisher.d.ts +2 -0
- package/build/events/publishers/reward-credit-cancelled-publisher.js +17 -0
- package/build/events/publishers/reward-credit-expired-publisher.d.ts +2 -0
- package/build/events/publishers/reward-credit-expired-publisher.js +17 -0
- package/build/events/publishers/reward-credit-issued-publisher.d.ts +2 -0
- package/build/events/publishers/reward-credit-issued-publisher.js +17 -0
- package/build/events/publishers/reward-credit-used-publisher.d.ts +2 -0
- package/build/events/publishers/reward-credit-used-publisher.js +17 -0
- package/build/events/publishers/safety-audit-log-created-publisher.d.ts +2 -0
- package/build/events/publishers/safety-audit-log-created-publisher.js +17 -0
- package/build/events/publishers/safety-note-created-publisher.d.ts +2 -0
- package/build/events/publishers/safety-note-created-publisher.js +17 -0
- package/build/events/publishers/sos-acknowledged-publisher.d.ts +2 -0
- package/build/events/publishers/sos-acknowledged-publisher.js +17 -0
- package/build/events/publishers/sos-resolved-publisher.d.ts +2 -0
- package/build/events/publishers/sos-resolved-publisher.js +17 -0
- package/build/events/publishers/sos-responding-publisher.d.ts +2 -0
- package/build/events/publishers/sos-responding-publisher.js +17 -0
- package/build/events/publishers/sos-triggered-publisher.d.ts +2 -0
- package/build/events/publishers/sos-triggered-publisher.js +17 -0
- package/build/events/publishers/system-message-added-publisher.d.ts +2 -0
- package/build/events/publishers/system-message-added-publisher.js +17 -0
- package/build/events/publishers/transaction-status-changed-publisher.d.ts +2 -0
- package/build/events/publishers/transaction-status-changed-publisher.js +17 -0
- package/build/events/publishers/wallet-adjusted-publisher.d.ts +2 -0
- package/build/events/publishers/wallet-adjusted-publisher.js +17 -0
- package/build/events/publishers/wallet-balance-updated-publisher.d.ts +2 -0
- package/build/events/publishers/wallet-balance-updated-publisher.js +17 -0
- package/build/events/publishers/wallet-created-publisher.d.ts +2 -0
- package/build/events/publishers/wallet-created-publisher.js +17 -0
- package/build/events/publishers/wallet-status-changed-publisher.d.ts +2 -0
- package/build/events/publishers/wallet-status-changed-publisher.js +17 -0
- package/build/events/publishers/wallet-transaction-created-publisher.d.ts +2 -0
- package/build/events/publishers/wallet-transaction-created-publisher.js +17 -0
- package/build/events/publishers/webhook-processed-publisher.d.ts +2 -0
- package/build/events/publishers/webhook-processed-publisher.js +17 -0
- package/build/events/publishers/webhook-received-publisher.d.ts +2 -0
- package/build/events/publishers/webhook-received-publisher.js +17 -0
- package/build/events/types/chat-events.d.ts +145 -0
- package/build/events/types/chat-events.js +6 -0
- package/build/events/types/geo-config-events.d.ts +84 -0
- package/build/events/types/geo-config-events.js +2 -0
- package/build/events/types/index.d.ts +134 -0
- package/build/events/types/index.js +22 -0
- package/build/events/types/notification-events.d.ts +138 -0
- package/build/events/types/notification-events.js +6 -0
- package/build/events/types/payment-events.d.ts +287 -0
- package/build/events/types/payment-events.js +6 -0
- package/build/events/types/promotion-events.d.ts +236 -0
- package/build/events/types/promotion-events.js +6 -0
- package/build/events/types/property-events.d.ts +354 -0
- package/build/events/types/property-events.js +60 -0
- package/build/events/types/request-events.d.ts +60 -0
- package/build/events/types/request-events.js +18 -0
- package/build/events/types/safety-events.d.ts +143 -0
- package/build/events/types/safety-events.js +6 -0
- package/build/events/types/user-events.d.ts +131 -0
- package/build/events/types/user-events.js +6 -0
- package/build/index.d.ts +133 -0
- package/build/index.js +167 -0
- package/build/middlewares/current-user.d.ts +2 -0
- package/build/middlewares/current-user.js +20 -0
- package/build/middlewares/error-handler.d.ts +2 -0
- package/build/middlewares/error-handler.js +14 -0
- package/build/middlewares/require-auth.d.ts +12 -0
- package/build/middlewares/require-auth.js +83 -0
- package/build/middlewares/system-logger.d.ts +0 -0
- package/build/middlewares/system-logger.js +1 -0
- package/build/middlewares/validate-request.d.ts +2 -0
- package/build/middlewares/validate-request.js +13 -0
- package/build/types/auth.d.ts +22 -0
- package/build/types/auth.js +5 -0
- package/package.json +40 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyOfferExpiredEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_offer.expired event
|
|
4
|
+
* Called when an offer expires without action
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyOfferExpired: (data: PropertyOfferExpiredEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyOfferExpired = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_offer.expired event
|
|
16
|
+
* Called when an offer expires without action
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyOfferExpired = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_offer.expired", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyOfferExpired = publishPropertyOfferExpired;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyOfferRejectedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_offer.rejected event
|
|
4
|
+
* Called when landlord rejects tenant's offer
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyOfferRejected: (data: PropertyOfferRejectedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyOfferRejected = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_offer.rejected event
|
|
16
|
+
* Called when landlord rejects tenant's offer
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyOfferRejected = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_offer.rejected", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyOfferRejected = publishPropertyOfferRejected;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyOfferUpdated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_offer.updated event
|
|
16
|
+
* Called when an offer is modified
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyOfferUpdated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_offer.updated", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyOfferUpdated = publishPropertyOfferUpdated;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyOfferWithdrawnEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_offer.withdrawn event
|
|
4
|
+
* Called when offer is withdrawn by tenant or landlord
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyOfferWithdrawn: (data: PropertyOfferWithdrawnEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyOfferWithdrawn = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_offer.withdrawn event
|
|
16
|
+
* Called when offer is withdrawn by tenant or landlord
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyOfferWithdrawn = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_offer.withdrawn", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyOfferWithdrawn = publishPropertyOfferWithdrawn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyRatingSubmittedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_rating.submitted event
|
|
4
|
+
* Called when landlord or tenant submits a rating
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyRatingSubmitted: (data: PropertyRatingSubmittedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyRatingSubmitted = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_rating.submitted event
|
|
16
|
+
* Called when landlord or tenant submits a rating
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyRatingSubmitted = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_rating.submitted", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyRatingSubmitted = publishPropertyRatingSubmitted;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyRatingUpdated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_rating.updated event
|
|
16
|
+
* Called when a rating is modified
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyRatingUpdated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_rating.updated", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyRatingUpdated = publishPropertyRatingUpdated;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyReportCreatedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_report.created event
|
|
4
|
+
* Called when a property is reported for scam/fraud/safety concerns
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyReportCreated: (data: PropertyReportCreatedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyReportCreated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_report.created event
|
|
16
|
+
* Called when a property is reported for scam/fraud/safety concerns
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyReportCreated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_report.created", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyReportCreated = publishPropertyReportCreated;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyReportResolvedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_report.resolved event
|
|
4
|
+
* Called when admin resolves a property report
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyReportResolved: (data: PropertyReportResolvedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyReportResolved = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_report.resolved event
|
|
16
|
+
* Called when admin resolves a property report
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyReportResolved = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_report.resolved", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyReportResolved = publishPropertyReportResolved;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyReportUpdatedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_report.updated event
|
|
4
|
+
* Called when report status is updated
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyReportUpdated: (data: PropertyReportUpdatedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyReportUpdated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_report.updated event
|
|
16
|
+
* Called when report status is updated
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyReportUpdated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_report.updated", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyReportUpdated = publishPropertyReportUpdated;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyStatusChangedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property.status_changed event
|
|
4
|
+
* Called when property status changes (draft/active/inactive/rented/sold/suspended)
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyStatusChanged: (data: PropertyStatusChangedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyStatusChanged = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property.status_changed event
|
|
16
|
+
* Called when property status changes (draft/active/inactive/rented/sold/suspended)
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyStatusChanged = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property.status_changed", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyStatusChanged = publishPropertyStatusChanged;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyUpdated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property.updated event
|
|
16
|
+
* Called when property listing details are updated
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyUpdated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property.updated", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyUpdated = publishPropertyUpdated;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewed = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property.viewed event
|
|
16
|
+
* Called when a tenant views a property listing
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewed = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property.viewed", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewed = publishPropertyViewed;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyViewingCancelledEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_viewing.cancelled event
|
|
4
|
+
* Called when viewing is cancelled
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyViewingCancelled: (data: PropertyViewingCancelledEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewingCancelled = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_viewing.cancelled event
|
|
16
|
+
* Called when viewing is cancelled
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewingCancelled = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_viewing.cancelled", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewingCancelled = publishPropertyViewingCancelled;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyViewingCompletedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_viewing.completed event
|
|
4
|
+
* Called when viewing is completed
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyViewingCompleted: (data: PropertyViewingCompletedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewingCompleted = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_viewing.completed event
|
|
16
|
+
* Called when viewing is completed
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewingCompleted = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_viewing.completed", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewingCompleted = publishPropertyViewingCompleted;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyViewingConfirmedEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_viewing.confirmed event
|
|
4
|
+
* Called when viewing is confirmed by landlord or tenant
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyViewingConfirmed: (data: PropertyViewingConfirmedEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewingConfirmed = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_viewing.confirmed event
|
|
16
|
+
* Called when viewing is confirmed by landlord or tenant
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewingConfirmed = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_viewing.confirmed", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewingConfirmed = publishPropertyViewingConfirmed;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyViewingNoShowEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_viewing.no_show event
|
|
4
|
+
* Called when landlord or tenant doesn't show up for viewing
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyViewingNoShow: (data: PropertyViewingNoShowEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewingNoShow = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_viewing.no_show event
|
|
16
|
+
* Called when landlord or tenant doesn't show up for viewing
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewingNoShow = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_viewing.no_show", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewingNoShow = publishPropertyViewingNoShow;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyViewingScheduledEvent } from "../types/property-events";
|
|
2
|
+
/**
|
|
3
|
+
* Publish property_viewing.scheduled event
|
|
4
|
+
* Called when a property viewing is scheduled
|
|
5
|
+
*/
|
|
6
|
+
export declare const publishPropertyViewingScheduled: (data: PropertyViewingScheduledEvent) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.publishPropertyViewingScheduled = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
/**
|
|
15
|
+
* Publish property_viewing.scheduled event
|
|
16
|
+
* Called when a property viewing is scheduled
|
|
17
|
+
*/
|
|
18
|
+
const publishPropertyViewingScheduled = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
yield (0, producer_1.publishEvent)("property_viewing.scheduled", data);
|
|
20
|
+
});
|
|
21
|
+
exports.publishPropertyViewingScheduled = publishPropertyViewingScheduled;
|
|
@@ -0,0 +1,17 @@
|
|
|
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.publishReferralClaimed = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
const publishReferralClaimed = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
yield (0, producer_1.publishEvent)("referral.claimed", data);
|
|
16
|
+
});
|
|
17
|
+
exports.publishReferralClaimed = publishReferralClaimed;
|
|
@@ -0,0 +1,17 @@
|
|
|
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.publishReferralCodeGenerated = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
const publishReferralCodeGenerated = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
yield (0, producer_1.publishEvent)("referral.code.generated", data);
|
|
16
|
+
});
|
|
17
|
+
exports.publishReferralCodeGenerated = publishReferralCodeGenerated;
|
|
@@ -0,0 +1,17 @@
|
|
|
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.publishReferralConversion = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
const publishReferralConversion = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
yield (0, producer_1.publishEvent)("referral.conversion", data);
|
|
16
|
+
});
|
|
17
|
+
exports.publishReferralConversion = publishReferralConversion;
|
|
@@ -0,0 +1,17 @@
|
|
|
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.publishReferralQualified = void 0;
|
|
13
|
+
const producer_1 = require("../producer");
|
|
14
|
+
const publishReferralQualified = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
yield (0, producer_1.publishEvent)("referral.qualified", data);
|
|
16
|
+
});
|
|
17
|
+
exports.publishReferralQualified = publishReferralQualified;
|