@royalinvest/dto 0.75.1 → 0.76.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/dist/activityFeed.d.ts +63 -0
- package/dist/activityFeed.js +2 -0
- package/dist/enum/activityFeed.d.ts +17 -0
- package/dist/enum/activityFeed.js +25 -0
- package/dist/enum/index.d.ts +2 -0
- package/dist/enum/index.js +2 -0
- package/dist/enum/serviceType.d.ts +7 -0
- package/dist/enum/serviceType.js +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/metrics/business.d.ts +2 -2
- package/dist/metrics/core.d.ts +5 -5
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IContractParty } from "./contractParty";
|
|
2
|
+
import { TBureau } from "./credit-check";
|
|
3
|
+
import { ActivityStatusEnum, ActivityTypeEnum, CurrencyEnum, RentCycleEnum, ServiceTypeEnum } from "./enum";
|
|
4
|
+
export interface ILeaseActivityFeedData {
|
|
5
|
+
address?: string;
|
|
6
|
+
amount?: number | null;
|
|
7
|
+
start_date?: string | null;
|
|
8
|
+
end_date?: string | null;
|
|
9
|
+
file_id?: string | null;
|
|
10
|
+
file_name?: string | null;
|
|
11
|
+
file_size_in_kb?: number | null;
|
|
12
|
+
file_page_count?: number | null;
|
|
13
|
+
parties?: IContractParty[];
|
|
14
|
+
}
|
|
15
|
+
export interface ITenantScreeningActivityFeedData {
|
|
16
|
+
address?: string;
|
|
17
|
+
bureau: TBureau;
|
|
18
|
+
first_name?: string | null;
|
|
19
|
+
last_name?: string | null;
|
|
20
|
+
amount?: number | null;
|
|
21
|
+
currency?: CurrencyEnum | null;
|
|
22
|
+
rent_cycle?: RentCycleEnum | null;
|
|
23
|
+
subject_id?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface IRentCollectionActivityFeedData {
|
|
26
|
+
address?: string;
|
|
27
|
+
first_name?: string | null;
|
|
28
|
+
last_name?: string | null;
|
|
29
|
+
amount?: number | null;
|
|
30
|
+
currency?: CurrencyEnum | null;
|
|
31
|
+
rent_cycle?: RentCycleEnum | null;
|
|
32
|
+
start_date?: string | null;
|
|
33
|
+
end_date?: string | null;
|
|
34
|
+
payment_date?: string | null;
|
|
35
|
+
payment_method?: string | null;
|
|
36
|
+
invoice_id?: string | null;
|
|
37
|
+
invoice_number?: string | null;
|
|
38
|
+
}
|
|
39
|
+
export type TActivityFeedCategory = ServiceTypeEnum.SCREENING_QUESTIONNAIRE | ServiceTypeEnum.CREDIT_CHECK | ServiceTypeEnum.LEASE_AGREEMENT | ServiceTypeEnum.RENT_COLLECTION;
|
|
40
|
+
export type TActivityFeedData = ILeaseActivityFeedData | ITenantScreeningActivityFeedData | IRentCollectionActivityFeedData;
|
|
41
|
+
export interface IActivityFeedListItem {
|
|
42
|
+
id: string;
|
|
43
|
+
category: TActivityFeedCategory;
|
|
44
|
+
activity_type: ActivityTypeEnum;
|
|
45
|
+
status: ActivityStatusEnum | null;
|
|
46
|
+
entity_id: string;
|
|
47
|
+
data: TActivityFeedData;
|
|
48
|
+
occurred_at: string;
|
|
49
|
+
}
|
|
50
|
+
export type IActivityFeedCategoryCounts = {
|
|
51
|
+
all: number;
|
|
52
|
+
} & Record<TActivityFeedCategory, number>;
|
|
53
|
+
export interface IActivityFeedListResponse {
|
|
54
|
+
items: IActivityFeedListItem[];
|
|
55
|
+
counts: IActivityFeedCategoryCounts;
|
|
56
|
+
cursor: string | null;
|
|
57
|
+
has_more: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface IActivityFeedQuery {
|
|
60
|
+
category?: TActivityFeedCategory;
|
|
61
|
+
cursor?: string;
|
|
62
|
+
limit?: number;
|
|
63
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum ActivityStatusEnum {
|
|
2
|
+
PENDING = "pending",
|
|
3
|
+
PROCESSING = "processing",
|
|
4
|
+
COMPLETED = "completed",
|
|
5
|
+
FAILED = "failed",
|
|
6
|
+
PAUSED = "paused"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ActivityTypeEnum {
|
|
9
|
+
LEASE_PREPARE = "lease.prepare",
|
|
10
|
+
LEASE_SIGN = "lease.sign",
|
|
11
|
+
LEASE_VOIDED = "lease.voided",
|
|
12
|
+
TENANT_SCREENING_SETUP = "tenant_screening.setup",
|
|
13
|
+
TENANT_SCREENING_CONSENT = "tenant_screening.consent",
|
|
14
|
+
TENANT_SCREENING_REPORT = "tenant_screening.report",
|
|
15
|
+
RENT_PAYMENT_SETUP = "rent_payment.setup",
|
|
16
|
+
RENT_PAYMENT_RECEIVED = "rent_payment.received"
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityTypeEnum = exports.ActivityStatusEnum = void 0;
|
|
4
|
+
var ActivityStatusEnum;
|
|
5
|
+
(function (ActivityStatusEnum) {
|
|
6
|
+
ActivityStatusEnum["PENDING"] = "pending";
|
|
7
|
+
ActivityStatusEnum["PROCESSING"] = "processing";
|
|
8
|
+
ActivityStatusEnum["COMPLETED"] = "completed";
|
|
9
|
+
ActivityStatusEnum["FAILED"] = "failed";
|
|
10
|
+
ActivityStatusEnum["PAUSED"] = "paused";
|
|
11
|
+
})(ActivityStatusEnum || (exports.ActivityStatusEnum = ActivityStatusEnum = {}));
|
|
12
|
+
var ActivityTypeEnum;
|
|
13
|
+
(function (ActivityTypeEnum) {
|
|
14
|
+
// Lease
|
|
15
|
+
ActivityTypeEnum["LEASE_PREPARE"] = "lease.prepare";
|
|
16
|
+
ActivityTypeEnum["LEASE_SIGN"] = "lease.sign";
|
|
17
|
+
ActivityTypeEnum["LEASE_VOIDED"] = "lease.voided";
|
|
18
|
+
// Tenant Screening (credit check and screening questionnaire)
|
|
19
|
+
ActivityTypeEnum["TENANT_SCREENING_SETUP"] = "tenant_screening.setup";
|
|
20
|
+
ActivityTypeEnum["TENANT_SCREENING_CONSENT"] = "tenant_screening.consent";
|
|
21
|
+
ActivityTypeEnum["TENANT_SCREENING_REPORT"] = "tenant_screening.report";
|
|
22
|
+
// Rent collection
|
|
23
|
+
ActivityTypeEnum["RENT_PAYMENT_SETUP"] = "rent_payment.setup";
|
|
24
|
+
ActivityTypeEnum["RENT_PAYMENT_RECEIVED"] = "rent_payment.received";
|
|
25
|
+
})(ActivityTypeEnum || (exports.ActivityTypeEnum = ActivityTypeEnum = {}));
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.UnitMeasurementEnum = exports.BulkPurchaseSourceTypeEnum = exports.TextA
|
|
|
18
18
|
__exportStar(require("./country"), exports);
|
|
19
19
|
__exportStar(require("./currency"), exports);
|
|
20
20
|
__exportStar(require("./cycle"), exports);
|
|
21
|
+
__exportStar(require("./activityFeed"), exports);
|
|
22
|
+
__exportStar(require("./serviceType"), exports);
|
|
21
23
|
var PartyTypeEnum;
|
|
22
24
|
(function (PartyTypeEnum) {
|
|
23
25
|
PartyTypeEnum["default"] = "";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceTypeEnum = void 0;
|
|
4
|
+
var ServiceTypeEnum;
|
|
5
|
+
(function (ServiceTypeEnum) {
|
|
6
|
+
ServiceTypeEnum["LEASE_AGREEMENT"] = "lease_agreement";
|
|
7
|
+
ServiceTypeEnum["CREDIT_CHECK"] = "credit_check";
|
|
8
|
+
ServiceTypeEnum["RENT_COLLECTION"] = "rent_collection";
|
|
9
|
+
ServiceTypeEnum["STORAGE"] = "storage";
|
|
10
|
+
ServiceTypeEnum["SCREENING_QUESTIONNAIRE"] = "screening_questionnaire";
|
|
11
|
+
})(ServiceTypeEnum || (exports.ServiceTypeEnum = ServiceTypeEnum = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import client from "prom-client";
|
|
2
2
|
export declare const leaseAgreementsCreated: client.Counter<string>;
|
|
3
3
|
export declare const documentsSigned: client.Counter<string>;
|
|
4
|
-
export declare const creditChecksPerformed: client.Counter<"
|
|
5
|
-
export declare const creditCheckProcessingDuration: client.Histogram<"
|
|
4
|
+
export declare const creditChecksPerformed: client.Counter<"bureau" | "status">;
|
|
5
|
+
export declare const creditCheckProcessingDuration: client.Histogram<"bureau" | "queue">;
|
package/dist/metrics/core.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import client from "prom-client";
|
|
|
2
2
|
export declare const register: client.Registry<"text/plain; version=0.0.4; charset=utf-8">;
|
|
3
3
|
export declare const apiRequests: client.Counter<"method" | "route" | "status">;
|
|
4
4
|
export declare const apiRequestDuration: client.Histogram<"method" | "route" | "status">;
|
|
5
|
-
export declare const messagesReceived: client.Counter<"
|
|
6
|
-
export declare const messagesProcessed: client.Counter<"
|
|
7
|
-
export declare const messagesFailed: client.Counter<"
|
|
8
|
-
export declare const messageRetries: client.Counter<"
|
|
9
|
-
export declare const messagesPublished: client.Counter<"
|
|
5
|
+
export declare const messagesReceived: client.Counter<"bureau" | "queue" | "routingKey">;
|
|
6
|
+
export declare const messagesProcessed: client.Counter<"bureau" | "queue" | "routingKey">;
|
|
7
|
+
export declare const messagesFailed: client.Counter<"bureau" | "queue" | "routingKey" | "exchange">;
|
|
8
|
+
export declare const messageRetries: client.Counter<"bureau" | "queue" | "routingKey" | "exchange">;
|
|
9
|
+
export declare const messagesPublished: client.Counter<"bureau" | "routingKey" | "exchange">;
|
package/package.json
CHANGED