@royalinvest/dto 0.64.2 → 0.66.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/credit-check/creditCheck.d.ts +277 -0
- package/dist/{messageNotification.js → credit-check/creditCheck.js} +1 -0
- package/dist/credit-check/index.d.ts +3 -267
- package/dist/credit-check/index.js +17 -1
- package/dist/credit-check/screeningQuestionnaire.d.ts +1 -0
- package/dist/credit-check/screeningQuestionnaireAnswered.d.ts +24 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/messageBrokerEvent.d.ts +0 -5
- package/dist/messageGenerate.d.ts +0 -57
- package/dist/messageNotification.d.ts +0 -45
- /package/dist/{messageBrokerEvent.js → credit-check/screeningQuestionnaire.js} +0 -0
- /package/dist/{messageGenerate.js → credit-check/screeningQuestionnaireAnswered.js} +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { IAddress } from "../address";
|
|
2
|
+
import { IAnsweredQuestionnaire } from "./screeningQuestionnaireAnswered";
|
|
3
|
+
import { LocaleType } from "../types";
|
|
4
|
+
export type TBureau = "transunion" | "equifax";
|
|
5
|
+
export type TCreditCheckStatus = "pass" | "fail" | "review" | "not_found";
|
|
6
|
+
export type TCreditScoreTier = "a_plus" | "a" | "b_plus" | "b" | "c_plus" | "c" | "d" | "f";
|
|
7
|
+
export type TCreditCheckRequestStatus = "draft" | "pending" | "completed" | "failed" | "expired" | "cancelled";
|
|
8
|
+
export type TCreditCheckInitiated = "tenant_initiated" | "landlord_initiated";
|
|
9
|
+
export type TConsentAuditAction = "sent" | "resent" | "viewed" | "confirmed" | "failed";
|
|
10
|
+
export type TConsentStatus = "none" | "pending" | "confirmed" | "expired" | "cancelled";
|
|
11
|
+
export type IConsentMethod = "checkbox" | "uploaded_file";
|
|
12
|
+
export type TReason = {
|
|
13
|
+
code: string;
|
|
14
|
+
message: string;
|
|
15
|
+
delta: number;
|
|
16
|
+
};
|
|
17
|
+
export interface ICreateDraftCreditCheckRequest {
|
|
18
|
+
request_type: TCreditCheckInitiated;
|
|
19
|
+
bureau: TBureau;
|
|
20
|
+
screening_questionnaire_id?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ICreateDraftCreditCheckResponse {
|
|
23
|
+
request_id: string;
|
|
24
|
+
subject_id: string;
|
|
25
|
+
consent_id: string;
|
|
26
|
+
status: TCreditCheckRequestStatus;
|
|
27
|
+
created_at: Date;
|
|
28
|
+
updated_at: Date;
|
|
29
|
+
}
|
|
30
|
+
export interface ICreditCheckRequest {
|
|
31
|
+
id: string;
|
|
32
|
+
user_id: string;
|
|
33
|
+
request_type: TCreditCheckInitiated;
|
|
34
|
+
status: TCreditCheckRequestStatus;
|
|
35
|
+
created_at?: Date;
|
|
36
|
+
updated_at?: Date;
|
|
37
|
+
}
|
|
38
|
+
export interface ICreditCheckRequestResponse {
|
|
39
|
+
id: string;
|
|
40
|
+
rental_unit_id: string;
|
|
41
|
+
request_type: TCreditCheckInitiated;
|
|
42
|
+
status: TCreditCheckRequestStatus;
|
|
43
|
+
created_at?: Date;
|
|
44
|
+
updated_at?: Date;
|
|
45
|
+
}
|
|
46
|
+
export interface ISubject {
|
|
47
|
+
id: string;
|
|
48
|
+
first_name: string;
|
|
49
|
+
last_name: string;
|
|
50
|
+
email: string;
|
|
51
|
+
consent?: ISubjectConsent;
|
|
52
|
+
}
|
|
53
|
+
export interface ISubjectExtended {
|
|
54
|
+
id: string;
|
|
55
|
+
first_name: string;
|
|
56
|
+
middle_name: string;
|
|
57
|
+
last_name: string;
|
|
58
|
+
email: string;
|
|
59
|
+
phone?: string;
|
|
60
|
+
dob: Date;
|
|
61
|
+
ssn?: string;
|
|
62
|
+
addresses?: ISubjectAddress[];
|
|
63
|
+
consent?: ISubjectConsent;
|
|
64
|
+
errors?: ICreditCheckError;
|
|
65
|
+
}
|
|
66
|
+
export interface ISubjectConsent {
|
|
67
|
+
id: string;
|
|
68
|
+
status: TConsentStatus;
|
|
69
|
+
consent_confirmed_at?: Date;
|
|
70
|
+
audits?: ICreditCheckConsentAuditResponse[];
|
|
71
|
+
created_at?: Date;
|
|
72
|
+
updated_at?: Date;
|
|
73
|
+
}
|
|
74
|
+
export interface ICreditCheckRentalQueryUnit {
|
|
75
|
+
unit_number?: string;
|
|
76
|
+
property: IAddress;
|
|
77
|
+
}
|
|
78
|
+
export interface ICreditCheckRequestQueryList {
|
|
79
|
+
id: string;
|
|
80
|
+
request_type: TCreditCheckInitiated;
|
|
81
|
+
status: TCreditCheckRequestStatus;
|
|
82
|
+
subjects: ISubject[];
|
|
83
|
+
rental_unit: ICreditCheckRentalQueryUnit;
|
|
84
|
+
created_at?: Date;
|
|
85
|
+
updated_at?: Date;
|
|
86
|
+
}
|
|
87
|
+
export interface ICreditCheckRequestList {
|
|
88
|
+
id: string;
|
|
89
|
+
request_type: TCreditCheckInitiated;
|
|
90
|
+
status: TCreditCheckRequestStatus;
|
|
91
|
+
rental_unit_id: string;
|
|
92
|
+
subjects: ISubjectExtended[];
|
|
93
|
+
rental_address: IAddress;
|
|
94
|
+
created_at?: Date;
|
|
95
|
+
updated_at?: Date;
|
|
96
|
+
}
|
|
97
|
+
export interface ISubjectAddress extends IAddress {
|
|
98
|
+
isCurrent: boolean;
|
|
99
|
+
order: number;
|
|
100
|
+
}
|
|
101
|
+
export interface ICreditCheckSubjectRequest {
|
|
102
|
+
id: string;
|
|
103
|
+
credit_check_request_id: string;
|
|
104
|
+
bureau: TBureau;
|
|
105
|
+
first_name: string;
|
|
106
|
+
last_name: string;
|
|
107
|
+
middle_name?: string;
|
|
108
|
+
dob: Date | null;
|
|
109
|
+
email?: string;
|
|
110
|
+
phone?: string;
|
|
111
|
+
ssn?: string;
|
|
112
|
+
addresses?: ISubjectAddress[];
|
|
113
|
+
credit_type?: string;
|
|
114
|
+
credit_number?: string;
|
|
115
|
+
addons?: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface ICreditCheckConsentRequest {
|
|
118
|
+
credit_check_subject_id: string;
|
|
119
|
+
consent_confirmed: boolean;
|
|
120
|
+
consent_confirmed_at: Date;
|
|
121
|
+
consent_method: IConsentMethod;
|
|
122
|
+
consent_uploaded_file_url?: string;
|
|
123
|
+
ip_address?: string;
|
|
124
|
+
user_agent?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface ICreditCheckConsentResponse {
|
|
127
|
+
id: string;
|
|
128
|
+
consent_confirmed: boolean;
|
|
129
|
+
consent_confirmed_at: Date;
|
|
130
|
+
consent_method: IConsentMethod;
|
|
131
|
+
consent_uploaded_file_url?: string;
|
|
132
|
+
ip_address?: string;
|
|
133
|
+
user_agent?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ICreditCheckSubjectResponse {
|
|
136
|
+
id: string;
|
|
137
|
+
credit_check_request_id: string;
|
|
138
|
+
bureau: TBureau;
|
|
139
|
+
first_name: string;
|
|
140
|
+
last_name: string;
|
|
141
|
+
middle_name?: string;
|
|
142
|
+
date_of_birth?: Date | string | null;
|
|
143
|
+
email?: string;
|
|
144
|
+
phone?: string;
|
|
145
|
+
ssn?: string;
|
|
146
|
+
credit_type?: string;
|
|
147
|
+
credit_number?: string;
|
|
148
|
+
addresses: ISubjectAddress[];
|
|
149
|
+
created_at: Date;
|
|
150
|
+
updated_at: Date;
|
|
151
|
+
}
|
|
152
|
+
export interface ICreditCheckResult {
|
|
153
|
+
id: string;
|
|
154
|
+
subject_id: string;
|
|
155
|
+
status: TCreditCheckStatus;
|
|
156
|
+
score: number;
|
|
157
|
+
tier?: TCreditScoreTier;
|
|
158
|
+
risk_index?: number;
|
|
159
|
+
bankruptcies?: number;
|
|
160
|
+
collections?: number;
|
|
161
|
+
inquiries: number;
|
|
162
|
+
trades: number;
|
|
163
|
+
flags: string[];
|
|
164
|
+
created_at: Date;
|
|
165
|
+
reason_codes?: TReason[];
|
|
166
|
+
}
|
|
167
|
+
export interface ICreditCheckReportFile {
|
|
168
|
+
id: string;
|
|
169
|
+
subject_id: string;
|
|
170
|
+
file_url: string;
|
|
171
|
+
created_at: Date;
|
|
172
|
+
expires_at: Date;
|
|
173
|
+
}
|
|
174
|
+
export interface ICreditCheckInviteLinkRequest {
|
|
175
|
+
credit_check_subject_id: string;
|
|
176
|
+
tenant_email: string;
|
|
177
|
+
tenant_first_name: string;
|
|
178
|
+
tenant_last_name: string;
|
|
179
|
+
rental_address: IAddress;
|
|
180
|
+
}
|
|
181
|
+
export interface ICreditCheckConsentInviteLinkRequest {
|
|
182
|
+
credit_check_subject_id: string;
|
|
183
|
+
}
|
|
184
|
+
export interface ICreditCheckConsentCancelRequest {
|
|
185
|
+
credit_check_consent_id: string;
|
|
186
|
+
}
|
|
187
|
+
export interface ICreditCheckInviteLinkResponse {
|
|
188
|
+
id: string;
|
|
189
|
+
credit_check_subject_id: string;
|
|
190
|
+
token: string;
|
|
191
|
+
expires_at: Date;
|
|
192
|
+
}
|
|
193
|
+
export interface ICreditCheckRequested {
|
|
194
|
+
credit_check_subject_id: string;
|
|
195
|
+
bureau: TBureau;
|
|
196
|
+
document_language: LocaleType;
|
|
197
|
+
property_address: string;
|
|
198
|
+
first_name: string;
|
|
199
|
+
last_name: string;
|
|
200
|
+
dob: Date;
|
|
201
|
+
addresses?: ISubjectAddress[];
|
|
202
|
+
middle_name?: string;
|
|
203
|
+
ssn?: string;
|
|
204
|
+
phone?: string;
|
|
205
|
+
email?: string;
|
|
206
|
+
credit_card_number?: string;
|
|
207
|
+
credit_card_type?: string;
|
|
208
|
+
addons?: string[];
|
|
209
|
+
request_tty?: boolean;
|
|
210
|
+
questionnaire?: IAnsweredQuestionnaire;
|
|
211
|
+
}
|
|
212
|
+
export interface ICreditCheckFailed {
|
|
213
|
+
credit_check_subject_id: string;
|
|
214
|
+
error_code: string;
|
|
215
|
+
error_message: string;
|
|
216
|
+
bureau_reference_id: string;
|
|
217
|
+
}
|
|
218
|
+
export interface ICreditCheckForDashboard {
|
|
219
|
+
credit_check_subject_id: string;
|
|
220
|
+
bureau_reference_id: string;
|
|
221
|
+
status: TCreditCheckStatus;
|
|
222
|
+
score: number;
|
|
223
|
+
tier?: TCreditScoreTier;
|
|
224
|
+
risk_index?: number;
|
|
225
|
+
bankruptcies: number;
|
|
226
|
+
collections: number;
|
|
227
|
+
inquiries: number;
|
|
228
|
+
trades: number;
|
|
229
|
+
flags?: string[];
|
|
230
|
+
report_json_url?: string;
|
|
231
|
+
raw_xml_url?: string;
|
|
232
|
+
reason_codes?: TReason[];
|
|
233
|
+
}
|
|
234
|
+
export interface ICreditCheckConsentAuditResponse {
|
|
235
|
+
id: string;
|
|
236
|
+
ip_address: string;
|
|
237
|
+
action: TConsentAuditAction;
|
|
238
|
+
status: TConsentStatus;
|
|
239
|
+
created_at: Date;
|
|
240
|
+
}
|
|
241
|
+
export interface ICreditCheckConsentExtendedResponse {
|
|
242
|
+
id: string;
|
|
243
|
+
first_name: string;
|
|
244
|
+
last_name: string;
|
|
245
|
+
email: string;
|
|
246
|
+
status: TConsentStatus;
|
|
247
|
+
confirmed: boolean;
|
|
248
|
+
confirmed_at: Date;
|
|
249
|
+
created_at: Date;
|
|
250
|
+
updated_at: Date;
|
|
251
|
+
}
|
|
252
|
+
export interface ICreditCheckConsentTenantInfoResponse {
|
|
253
|
+
id: string;
|
|
254
|
+
consent_id: string;
|
|
255
|
+
tenant_first_name: string;
|
|
256
|
+
tenant_last_name: string;
|
|
257
|
+
sender_first_name: string;
|
|
258
|
+
sender_last_name: string;
|
|
259
|
+
sender_email: string;
|
|
260
|
+
screening_questionnaire_id?: string;
|
|
261
|
+
rental_address: IAddress;
|
|
262
|
+
tenant_email: string;
|
|
263
|
+
user_id?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface ICreditCheckReportFileDownload {
|
|
266
|
+
id: string;
|
|
267
|
+
file_base64: string;
|
|
268
|
+
file_type: string;
|
|
269
|
+
file_name: string;
|
|
270
|
+
}
|
|
271
|
+
export interface ICreditCheckError {
|
|
272
|
+
id: string;
|
|
273
|
+
subject_id: string;
|
|
274
|
+
error_code: string;
|
|
275
|
+
error_message: string;
|
|
276
|
+
bureau_reference_id?: string;
|
|
277
|
+
}
|
|
@@ -1,267 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export type TCreditCheckStatus = "pass" | "fail" | "review" | "not_found";
|
|
5
|
-
export type TCreditScoreTier = "a_plus" | "a" | "b_plus" | "b" | "c_plus" | "c" | "d" | "f";
|
|
6
|
-
export type TCreditCheckRequestStatus = "draft" | "pending" | "completed" | "failed" | "expired" | "cancelled";
|
|
7
|
-
export type TCreditCheckInitiated = "tenant_initiated" | "landlord_initiated";
|
|
8
|
-
export type TConsentAuditAction = "sent" | "resent" | "viewed" | "confirmed" | "failed";
|
|
9
|
-
export type TConsentStatus = "none" | "pending" | "confirmed" | "expired" | "cancelled";
|
|
10
|
-
export type IConsentMethod = "checkbox" | "uploaded_file";
|
|
11
|
-
export type TReason = {
|
|
12
|
-
code: string;
|
|
13
|
-
message: string;
|
|
14
|
-
delta: number;
|
|
15
|
-
};
|
|
16
|
-
export interface ICreateDraftCreditCheckRequest {
|
|
17
|
-
request_type: TCreditCheckInitiated;
|
|
18
|
-
bureau: TBureau;
|
|
19
|
-
screening_questionnaire_id?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ICreateDraftCreditCheckResponse {
|
|
22
|
-
request_id: string;
|
|
23
|
-
subject_id: string;
|
|
24
|
-
consent_id: string;
|
|
25
|
-
status: TCreditCheckRequestStatus;
|
|
26
|
-
created_at: Date;
|
|
27
|
-
updated_at: Date;
|
|
28
|
-
}
|
|
29
|
-
export interface ICreditCheckRequest {
|
|
30
|
-
id: string;
|
|
31
|
-
user_id: string;
|
|
32
|
-
request_type: TCreditCheckInitiated;
|
|
33
|
-
status: TCreditCheckRequestStatus;
|
|
34
|
-
created_at?: Date;
|
|
35
|
-
updated_at?: Date;
|
|
36
|
-
}
|
|
37
|
-
export interface ICreditCheckRequestResponse {
|
|
38
|
-
id: string;
|
|
39
|
-
rental_unit_id: string;
|
|
40
|
-
request_type: TCreditCheckInitiated;
|
|
41
|
-
status: TCreditCheckRequestStatus;
|
|
42
|
-
created_at?: Date;
|
|
43
|
-
updated_at?: Date;
|
|
44
|
-
}
|
|
45
|
-
export interface ISubject {
|
|
46
|
-
id: string;
|
|
47
|
-
first_name: string;
|
|
48
|
-
last_name: string;
|
|
49
|
-
email: string;
|
|
50
|
-
consent?: ISubjectConsent;
|
|
51
|
-
}
|
|
52
|
-
export interface ISubjectExtended {
|
|
53
|
-
id: string;
|
|
54
|
-
first_name: string;
|
|
55
|
-
middle_name: string;
|
|
56
|
-
last_name: string;
|
|
57
|
-
email: string;
|
|
58
|
-
phone?: string;
|
|
59
|
-
dob: Date;
|
|
60
|
-
ssn?: string;
|
|
61
|
-
addresses?: ISubjectAddress[];
|
|
62
|
-
consent?: ISubjectConsent;
|
|
63
|
-
}
|
|
64
|
-
export interface ISubjectConsent {
|
|
65
|
-
id: string;
|
|
66
|
-
status: TConsentStatus;
|
|
67
|
-
consent_confirmed_at?: Date;
|
|
68
|
-
audits?: ICreditCheckConsentAuditResponse[];
|
|
69
|
-
created_at?: Date;
|
|
70
|
-
updated_at?: Date;
|
|
71
|
-
}
|
|
72
|
-
export interface ICreditCheckRentalQueryUnit {
|
|
73
|
-
unit_number?: string;
|
|
74
|
-
property: IAddress;
|
|
75
|
-
}
|
|
76
|
-
export interface ICreditCheckRequestQueryList {
|
|
77
|
-
id: string;
|
|
78
|
-
request_type: TCreditCheckInitiated;
|
|
79
|
-
status: TCreditCheckRequestStatus;
|
|
80
|
-
subjects: ISubject[];
|
|
81
|
-
rental_unit: ICreditCheckRentalQueryUnit;
|
|
82
|
-
created_at?: Date;
|
|
83
|
-
updated_at?: Date;
|
|
84
|
-
}
|
|
85
|
-
export interface ICreditCheckRequestList {
|
|
86
|
-
id: string;
|
|
87
|
-
request_type: TCreditCheckInitiated;
|
|
88
|
-
status: TCreditCheckRequestStatus;
|
|
89
|
-
rental_unit_id: string;
|
|
90
|
-
subjects: ISubjectExtended[];
|
|
91
|
-
rental_address: IAddress;
|
|
92
|
-
created_at?: Date;
|
|
93
|
-
updated_at?: Date;
|
|
94
|
-
}
|
|
95
|
-
export interface ISubjectAddress extends IAddress {
|
|
96
|
-
isCurrent: boolean;
|
|
97
|
-
order: number;
|
|
98
|
-
}
|
|
99
|
-
export interface ICreditCheckSubjectRequest {
|
|
100
|
-
id: string;
|
|
101
|
-
credit_check_request_id: string;
|
|
102
|
-
bureau: TBureau;
|
|
103
|
-
first_name: string;
|
|
104
|
-
last_name: string;
|
|
105
|
-
middle_name?: string;
|
|
106
|
-
dob: Date | null;
|
|
107
|
-
email?: string;
|
|
108
|
-
phone?: string;
|
|
109
|
-
ssn?: string;
|
|
110
|
-
addresses?: ISubjectAddress[];
|
|
111
|
-
credit_type?: string;
|
|
112
|
-
credit_number?: string;
|
|
113
|
-
addons?: string[];
|
|
114
|
-
}
|
|
115
|
-
export interface ICreditCheckConsentRequest {
|
|
116
|
-
credit_check_subject_id: string;
|
|
117
|
-
consent_confirmed: boolean;
|
|
118
|
-
consent_confirmed_at: Date;
|
|
119
|
-
consent_method: IConsentMethod;
|
|
120
|
-
consent_uploaded_file_url?: string;
|
|
121
|
-
ip_address?: string;
|
|
122
|
-
user_agent?: string;
|
|
123
|
-
}
|
|
124
|
-
export interface ICreditCheckConsentResponse {
|
|
125
|
-
id: string;
|
|
126
|
-
consent_confirmed: boolean;
|
|
127
|
-
consent_confirmed_at: Date;
|
|
128
|
-
consent_method: IConsentMethod;
|
|
129
|
-
consent_uploaded_file_url?: string;
|
|
130
|
-
ip_address?: string;
|
|
131
|
-
user_agent?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface ICreditCheckSubjectResponse {
|
|
134
|
-
id: string;
|
|
135
|
-
credit_check_request_id: string;
|
|
136
|
-
bureau: TBureau;
|
|
137
|
-
first_name: string;
|
|
138
|
-
last_name: string;
|
|
139
|
-
middle_name?: string;
|
|
140
|
-
date_of_birth?: Date | string | null;
|
|
141
|
-
email?: string;
|
|
142
|
-
phone?: string;
|
|
143
|
-
ssn?: string;
|
|
144
|
-
credit_type?: string;
|
|
145
|
-
credit_number?: string;
|
|
146
|
-
addresses: ISubjectAddress[];
|
|
147
|
-
created_at: Date;
|
|
148
|
-
updated_at: Date;
|
|
149
|
-
}
|
|
150
|
-
export interface ICreditCheckResult {
|
|
151
|
-
id: string;
|
|
152
|
-
subject_id: string;
|
|
153
|
-
status: TCreditCheckStatus;
|
|
154
|
-
score: number;
|
|
155
|
-
tier?: TCreditScoreTier;
|
|
156
|
-
risk_index?: number;
|
|
157
|
-
bankruptcies?: number;
|
|
158
|
-
collections?: number;
|
|
159
|
-
inquiries: number;
|
|
160
|
-
trades: number;
|
|
161
|
-
flags: string[];
|
|
162
|
-
created_at: Date;
|
|
163
|
-
reason_codes?: TReason[];
|
|
164
|
-
}
|
|
165
|
-
export interface ICreditCheckReportFile {
|
|
166
|
-
id: string;
|
|
167
|
-
subject_id: string;
|
|
168
|
-
file_url: string;
|
|
169
|
-
created_at: Date;
|
|
170
|
-
expires_at: Date;
|
|
171
|
-
}
|
|
172
|
-
export interface ICreditCheckInviteLinkRequest {
|
|
173
|
-
credit_check_subject_id: string;
|
|
174
|
-
tenant_email: string;
|
|
175
|
-
tenant_first_name: string;
|
|
176
|
-
tenant_last_name: string;
|
|
177
|
-
rental_address: IAddress;
|
|
178
|
-
}
|
|
179
|
-
export interface ICreditCheckConsentInviteLinkRequest {
|
|
180
|
-
credit_check_subject_id: string;
|
|
181
|
-
}
|
|
182
|
-
export interface ICreditCheckConsentCancelRequest {
|
|
183
|
-
credit_check_consent_id: string;
|
|
184
|
-
}
|
|
185
|
-
export interface ICreditCheckInviteLinkResponse {
|
|
186
|
-
id: string;
|
|
187
|
-
credit_check_subject_id: string;
|
|
188
|
-
token: string;
|
|
189
|
-
expires_at: Date;
|
|
190
|
-
}
|
|
191
|
-
export interface ICreditCheckRequested {
|
|
192
|
-
credit_check_subject_id: string;
|
|
193
|
-
bureau: TBureau;
|
|
194
|
-
document_language: LocaleType;
|
|
195
|
-
property_address: string;
|
|
196
|
-
first_name: string;
|
|
197
|
-
last_name: string;
|
|
198
|
-
dob: Date;
|
|
199
|
-
addresses?: ISubjectAddress[];
|
|
200
|
-
middle_name?: string;
|
|
201
|
-
ssn?: string;
|
|
202
|
-
phone?: string;
|
|
203
|
-
email?: string;
|
|
204
|
-
credit_card_number?: string;
|
|
205
|
-
credit_card_type?: string;
|
|
206
|
-
addons?: string[];
|
|
207
|
-
request_tty?: boolean;
|
|
208
|
-
}
|
|
209
|
-
export interface ICreditCheckFailed {
|
|
210
|
-
credit_check_subject_id: string;
|
|
211
|
-
error_code: string;
|
|
212
|
-
error_message: string;
|
|
213
|
-
bureau_reference_id: string;
|
|
214
|
-
}
|
|
215
|
-
export interface ICreditCheckForDashboard {
|
|
216
|
-
credit_check_subject_id: string;
|
|
217
|
-
bureau_reference_id: string;
|
|
218
|
-
status: TCreditCheckStatus;
|
|
219
|
-
score: number;
|
|
220
|
-
tier?: TCreditScoreTier;
|
|
221
|
-
risk_index?: number;
|
|
222
|
-
bankruptcies: number;
|
|
223
|
-
collections: number;
|
|
224
|
-
inquiries: number;
|
|
225
|
-
trades: number;
|
|
226
|
-
flags?: string[];
|
|
227
|
-
report_json_url?: string;
|
|
228
|
-
raw_xml_url?: string;
|
|
229
|
-
reason_codes?: TReason[];
|
|
230
|
-
}
|
|
231
|
-
export interface ICreditCheckConsentAuditResponse {
|
|
232
|
-
id: string;
|
|
233
|
-
ip_address: string;
|
|
234
|
-
action: TConsentAuditAction;
|
|
235
|
-
status: TConsentStatus;
|
|
236
|
-
created_at: Date;
|
|
237
|
-
}
|
|
238
|
-
export interface ICreditCheckConsentExtendedResponse {
|
|
239
|
-
id: string;
|
|
240
|
-
first_name: string;
|
|
241
|
-
last_name: string;
|
|
242
|
-
email: string;
|
|
243
|
-
status: TConsentStatus;
|
|
244
|
-
confirmed: boolean;
|
|
245
|
-
confirmed_at: Date;
|
|
246
|
-
created_at: Date;
|
|
247
|
-
updated_at: Date;
|
|
248
|
-
}
|
|
249
|
-
export interface ICreditCheckConsentTenantInfoResponse {
|
|
250
|
-
id: string;
|
|
251
|
-
consent_id: string;
|
|
252
|
-
tenant_first_name: string;
|
|
253
|
-
tenant_last_name: string;
|
|
254
|
-
sender_first_name: string;
|
|
255
|
-
sender_last_name: string;
|
|
256
|
-
sender_email: string;
|
|
257
|
-
screening_questionnaire_id?: string;
|
|
258
|
-
rental_address: IAddress;
|
|
259
|
-
tenant_email: string;
|
|
260
|
-
user_id?: string;
|
|
261
|
-
}
|
|
262
|
-
export interface ICreditCheckReportFileDownload {
|
|
263
|
-
id: string;
|
|
264
|
-
file_base64: string;
|
|
265
|
-
file_type: string;
|
|
266
|
-
file_name: string;
|
|
267
|
-
}
|
|
1
|
+
export * from "./creditCheck";
|
|
2
|
+
export * from "./screeningQuestionnaire";
|
|
3
|
+
export * from "./screeningQuestionnaireAnswered";
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
3
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./creditCheck"), exports);
|
|
18
|
+
__exportStar(require("./screeningQuestionnaire"), exports);
|
|
19
|
+
__exportStar(require("./screeningQuestionnaireAnswered"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type QuestionOptionType = "text" | "multiple_choice" | "dual_choice" | "date" | "file";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QuestionOptionType } from "./screeningQuestionnaire";
|
|
2
|
+
export interface IAnsweredQuestionnaire {
|
|
3
|
+
sections: IAnsweredQuestionnaireSection[];
|
|
4
|
+
}
|
|
5
|
+
export interface IAnsweredQuestionnaireSection {
|
|
6
|
+
section_title_key: string;
|
|
7
|
+
questions: IAnsweredQuestionnaireQuestion[];
|
|
8
|
+
}
|
|
9
|
+
export interface IAnsweredQuestionnaireQuestion {
|
|
10
|
+
id: string;
|
|
11
|
+
question_key: string;
|
|
12
|
+
type: QuestionOptionType;
|
|
13
|
+
answer: IAnsweredQuestionnaireAnswer;
|
|
14
|
+
}
|
|
15
|
+
export type IAnsweredQuestionnaireAnswer = IAnsweredQuestionnaireTextAnswer | IAnsweredQuestionnaireOptionAnswer | IAnsweredQuestionnaireFileAnswer;
|
|
16
|
+
export interface IAnsweredQuestionnaireTextAnswer {
|
|
17
|
+
answer_text: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IAnsweredQuestionnaireOptionAnswer {
|
|
20
|
+
option_keys: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface IAnsweredQuestionnaireFileAnswer {
|
|
23
|
+
file_paths: string[];
|
|
24
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./contractAttachment";
|
|
|
13
13
|
export * from "./contractParty";
|
|
14
14
|
export * from "./contractUsage";
|
|
15
15
|
export * from "./country";
|
|
16
|
+
export * from "./credit-check";
|
|
16
17
|
export * from "./creditCheckReport";
|
|
17
18
|
export * from "./documentDrawingInstructions";
|
|
18
19
|
export * from "./emailMessage";
|
|
@@ -70,7 +71,6 @@ export * from "./tableData";
|
|
|
70
71
|
export * from "./template-variant";
|
|
71
72
|
export * from "./template";
|
|
72
73
|
export * from "./types";
|
|
74
|
+
export * from "./usa";
|
|
73
75
|
export * from "./user";
|
|
74
76
|
export * from "./yes-no";
|
|
75
|
-
export * from "./usa";
|
|
76
|
-
export * from "./credit-check";
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./contractAttachment"), exports);
|
|
|
29
29
|
__exportStar(require("./contractParty"), exports);
|
|
30
30
|
__exportStar(require("./contractUsage"), exports);
|
|
31
31
|
__exportStar(require("./country"), exports);
|
|
32
|
+
__exportStar(require("./credit-check"), exports);
|
|
32
33
|
__exportStar(require("./creditCheckReport"), exports);
|
|
33
34
|
__exportStar(require("./documentDrawingInstructions"), exports);
|
|
34
35
|
__exportStar(require("./emailMessage"), exports);
|
|
@@ -86,7 +87,6 @@ __exportStar(require("./tableData"), exports);
|
|
|
86
87
|
__exportStar(require("./template-variant"), exports);
|
|
87
88
|
__exportStar(require("./template"), exports);
|
|
88
89
|
__exportStar(require("./types"), exports);
|
|
90
|
+
__exportStar(require("./usa"), exports);
|
|
89
91
|
__exportStar(require("./user"), exports);
|
|
90
92
|
__exportStar(require("./yes-no"), exports);
|
|
91
|
-
__exportStar(require("./usa"), exports);
|
|
92
|
-
__exportStar(require("./credit-check"), exports);
|
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|