@royalinvest/dto 0.71.3 → 0.71.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/dist/credit-check/creditCheck.d.ts +7 -0
- package/dist/enum/uiLanguage.d.ts +1 -0
- package/dist/enum/uiLanguage.js +2 -0
- package/dist/messageBrokerEvent.d.ts +5 -0
- package/dist/messageBrokerEvent.js +2 -0
- package/dist/messageGenerate.d.ts +57 -0
- package/dist/messageGenerate.js +2 -0
- package/dist/messageNotification.d.ts +45 -0
- package/dist/messageNotification.js +2 -0
- package/dist/rabbitmq/constants.d.ts +12 -0
- package/dist/rabbitmq/constants.js +12 -0
- package/package.json +1 -1
|
@@ -15,16 +15,19 @@ export type TReason = {
|
|
|
15
15
|
message: string;
|
|
16
16
|
delta: number;
|
|
17
17
|
};
|
|
18
|
+
export type TScreeningServiceType = "credit_check" | "screening_questionnaire";
|
|
18
19
|
export interface ICreateDraftCreditCheckRequest {
|
|
19
20
|
request_type: TCreditCheckInitiated;
|
|
20
21
|
bureau: TBureau;
|
|
21
22
|
screening_questionnaire_id?: string;
|
|
23
|
+
service_type: TScreeningServiceType;
|
|
22
24
|
}
|
|
23
25
|
export interface ICreateDraftCreditCheckResponse {
|
|
24
26
|
request_id: string;
|
|
25
27
|
subject_id: string;
|
|
26
28
|
consent_id: string;
|
|
27
29
|
status: TCreditCheckRequestStatus;
|
|
30
|
+
service_type: TScreeningServiceType;
|
|
28
31
|
created_at: Date;
|
|
29
32
|
updated_at: Date;
|
|
30
33
|
}
|
|
@@ -33,6 +36,7 @@ export interface ICreditCheckRequest {
|
|
|
33
36
|
user_id: string;
|
|
34
37
|
request_type: TCreditCheckInitiated;
|
|
35
38
|
status: TCreditCheckRequestStatus;
|
|
39
|
+
service_type: TScreeningServiceType;
|
|
36
40
|
created_at?: Date;
|
|
37
41
|
updated_at?: Date;
|
|
38
42
|
}
|
|
@@ -82,6 +86,7 @@ export interface ICreditCheckRequestQueryList {
|
|
|
82
86
|
status: TCreditCheckRequestStatus;
|
|
83
87
|
subjects: ISubject[];
|
|
84
88
|
rental_unit: ICreditCheckRentalQueryUnit;
|
|
89
|
+
service_type: TScreeningServiceType;
|
|
85
90
|
created_at?: Date;
|
|
86
91
|
updated_at?: Date;
|
|
87
92
|
}
|
|
@@ -92,6 +97,7 @@ export interface ICreditCheckRequestList {
|
|
|
92
97
|
rental_unit_id: string;
|
|
93
98
|
subjects: ISubjectExtended[];
|
|
94
99
|
rental_address: IAddress;
|
|
100
|
+
service_type: TScreeningServiceType;
|
|
95
101
|
created_at?: Date;
|
|
96
102
|
updated_at?: Date;
|
|
97
103
|
}
|
|
@@ -147,6 +153,7 @@ export interface ICreditCheckSubjectResponse {
|
|
|
147
153
|
credit_type?: string;
|
|
148
154
|
credit_number?: string;
|
|
149
155
|
addresses: ISubjectAddress[];
|
|
156
|
+
service_type: TScreeningServiceType;
|
|
150
157
|
created_at: Date;
|
|
151
158
|
updated_at: Date;
|
|
152
159
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UILanguage = "en" | "fr" | "de" | "es" | "nl";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { LeaseTypeEnum } from "./enum";
|
|
2
|
+
import { ICertificateFormData } from "./certificateFormData";
|
|
3
|
+
import { IContractParty } from "./contractParty";
|
|
4
|
+
import { IDocumentDrawingInstructions } from "./documentDrawingInstructions";
|
|
5
|
+
import { IFileMetadata } from "./fileMetadata";
|
|
6
|
+
import { ISignaturePartySigned } from "./signaturePartySigned";
|
|
7
|
+
import { IInvoiceRenderData } from "./invoiceRenderData";
|
|
8
|
+
import { ICreditCheckReportData } from "./creditCheckReport";
|
|
9
|
+
export interface IMessageGenerate {
|
|
10
|
+
contract_id: string;
|
|
11
|
+
details: JSON;
|
|
12
|
+
user_id: string;
|
|
13
|
+
template_variant_file_name: string;
|
|
14
|
+
template_variant_name: string;
|
|
15
|
+
template_variant_language: string;
|
|
16
|
+
template_variant_mime_type: string;
|
|
17
|
+
template_variant_id: string;
|
|
18
|
+
template_name: LeaseTypeEnum;
|
|
19
|
+
file_id?: string;
|
|
20
|
+
isEdit?: boolean;
|
|
21
|
+
contract_parties?: IContractParty[];
|
|
22
|
+
drawing_instructions?: IDocumentDrawingInstructions;
|
|
23
|
+
metadata?: IFileMetadata;
|
|
24
|
+
}
|
|
25
|
+
export interface IMessageGenerateSigned {
|
|
26
|
+
party: ISignaturePartySigned;
|
|
27
|
+
generate_hash?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface IMessageGenerateVoided {
|
|
30
|
+
user_id: string;
|
|
31
|
+
contract_id: string;
|
|
32
|
+
file_id: string;
|
|
33
|
+
file_name: string;
|
|
34
|
+
notify_party_email: boolean;
|
|
35
|
+
generate_hash?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface IMessageGenerateCertificate {
|
|
38
|
+
file_id: string;
|
|
39
|
+
blob_path: string;
|
|
40
|
+
form_data: ICertificateFormData;
|
|
41
|
+
form_instructions: JSON;
|
|
42
|
+
language: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IMessageGenerateInvoice {
|
|
45
|
+
user_id: string;
|
|
46
|
+
billing_id: string;
|
|
47
|
+
blob_path: string;
|
|
48
|
+
invoice_number: string;
|
|
49
|
+
language: string;
|
|
50
|
+
data: IInvoiceRenderData;
|
|
51
|
+
}
|
|
52
|
+
export interface IMessageGenerateCreditCheckReport {
|
|
53
|
+
report_data: ICreditCheckReportData;
|
|
54
|
+
subject_id: string;
|
|
55
|
+
blob_path: string;
|
|
56
|
+
language: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IPhysicalFileDetails } from "./physicalFileDetails";
|
|
2
|
+
import { IPlaceholderCollection } from "./placeholderCollection";
|
|
3
|
+
import { ISignaturePartyBasic } from "./signaturePartyBasic";
|
|
4
|
+
export interface IGeneratedNotification {
|
|
5
|
+
contract_id: string;
|
|
6
|
+
user_id: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_language: string;
|
|
9
|
+
mime_type: string;
|
|
10
|
+
template_name: string;
|
|
11
|
+
template_variant_id: string;
|
|
12
|
+
file_id?: string;
|
|
13
|
+
isEdit?: boolean;
|
|
14
|
+
generated_placeholders?: IPlaceholderCollection;
|
|
15
|
+
generated_file_details?: IPhysicalFileDetails;
|
|
16
|
+
}
|
|
17
|
+
export interface ISignedNotification {
|
|
18
|
+
file_id: string;
|
|
19
|
+
party: ISignaturePartyBasic;
|
|
20
|
+
generated_file_details?: IPhysicalFileDetails;
|
|
21
|
+
}
|
|
22
|
+
export interface IVoidedNotification {
|
|
23
|
+
user_id: string;
|
|
24
|
+
file_id: string;
|
|
25
|
+
contract_id: string;
|
|
26
|
+
notify_party_email: boolean;
|
|
27
|
+
generated_file_details?: IPhysicalFileDetails;
|
|
28
|
+
}
|
|
29
|
+
export interface IGeneratedCertificateNotification {
|
|
30
|
+
file_id: string;
|
|
31
|
+
blob_path: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IGeneratedInvoiceNotification {
|
|
34
|
+
user_id: string;
|
|
35
|
+
billing_id: string;
|
|
36
|
+
blob_path: string;
|
|
37
|
+
invoice_number: string;
|
|
38
|
+
language: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IGeneratedCreditCheckReportNotification {
|
|
41
|
+
subject_id: string;
|
|
42
|
+
blob_path: string;
|
|
43
|
+
hash: string;
|
|
44
|
+
language: string;
|
|
45
|
+
}
|
|
@@ -103,4 +103,16 @@ export declare const RABBITMQ_EXCHANGES: {
|
|
|
103
103
|
readonly job_execution: "job_execution_queue";
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
+
readonly analytics: {
|
|
107
|
+
readonly name: "ANALYTICS_EXCHANGE";
|
|
108
|
+
readonly keys: {
|
|
109
|
+
readonly expected_rent_rebuild: "analytics.expected_rent.rebuild";
|
|
110
|
+
readonly lease_metrics_rebuild: "analytics.lease_metrics.rebuild";
|
|
111
|
+
readonly payment_success_rebuild: "analytics.payment_success.rebuild";
|
|
112
|
+
readonly property_metrics_rebuild: "analytics.property_metrics.rebuild";
|
|
113
|
+
};
|
|
114
|
+
readonly queues: {
|
|
115
|
+
readonly analytics: "analytics_queue";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
106
118
|
};
|
|
@@ -107,4 +107,16 @@ exports.RABBITMQ_EXCHANGES = {
|
|
|
107
107
|
job_execution: "job_execution_queue",
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
|
+
analytics: {
|
|
111
|
+
name: "ANALYTICS_EXCHANGE",
|
|
112
|
+
keys: {
|
|
113
|
+
expected_rent_rebuild: "analytics.expected_rent.rebuild",
|
|
114
|
+
lease_metrics_rebuild: "analytics.lease_metrics.rebuild",
|
|
115
|
+
payment_success_rebuild: "analytics.payment_success.rebuild",
|
|
116
|
+
property_metrics_rebuild: "analytics.property_metrics.rebuild",
|
|
117
|
+
},
|
|
118
|
+
queues: {
|
|
119
|
+
analytics: "analytics_queue",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
110
122
|
};
|
package/package.json
CHANGED