@lendi/act-credit-decisions-transform 2.0.0
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/README.md +31 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +28 -0
- package/lib/logger.d.ts +1 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/application-workflow-event.json +240 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +910 -0
- package/lib/schemas/public-application-event.json +250 -0
- package/lib/schemas/public-asset-event.json +679 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +609 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +278 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +133 -0
- package/lib/schemas/public-funding-position-event.json +419 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +262 -0
- package/lib/schemas/public-required-document-event.json +366 -0
- package/lib/schemas/public-update-applicant-event.json +606 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +10 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/transform-applicant.d.ts +8 -0
- package/lib/transform-events/transform-applicant.js +180 -0
- package/lib/transform-events/transform-application-workflow.d.ts +8 -0
- package/lib/transform-events/transform-application-workflow.js +30 -0
- package/lib/transform-events/transform-application.d.ts +20 -0
- package/lib/transform-events/transform-application.js +67 -0
- package/lib/transform-events/transform-asset-address.d.ts +25 -0
- package/lib/transform-events/transform-asset-address.js +87 -0
- package/lib/transform-events/transform-asset.d.ts +58 -0
- package/lib/transform-events/transform-asset.js +337 -0
- package/lib/transform-events/transform-employment.d.ts +9 -0
- package/lib/transform-events/transform-employment.js +107 -0
- package/lib/transform-events/transform-expenses.d.ts +41 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/transform-events/transform-funding-position.d.ts +21 -0
- package/lib/transform-events/transform-funding-position.js +107 -0
- package/lib/transform-events/transform-income.d.ts +48 -0
- package/lib/transform-events/transform-income.js +260 -0
- package/lib/transform-events/transform-liability.d.ts +12 -0
- package/lib/transform-events/transform-liability.js +117 -0
- package/lib/transform-events/transform-percent-owned.d.ts +10 -0
- package/lib/transform-events/transform-percent-owned.js +22 -0
- package/lib/transform-events/transform-required-document.d.ts +67 -0
- package/lib/transform-events/transform-required-document.js +148 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +25 -0
- package/lib/types/enum-mappings/applicant-gender.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-gender.js +11 -0
- package/lib/types/enum-mappings/applicant-type.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-type.js +10 -0
- package/lib/types/enum-mappings/asset-type.d.ts +3 -0
- package/lib/types/enum-mappings/asset-type.js +17 -0
- package/lib/types/enum-mappings/builder-type.d.ts +7 -0
- package/lib/types/enum-mappings/builder-type.js +9 -0
- package/lib/types/enum-mappings/company-structure.d.ts +7 -0
- package/lib/types/enum-mappings/company-structure.js +10 -0
- package/lib/types/enum-mappings/company-type.d.ts +7 -0
- package/lib/types/enum-mappings/company-type.js +11 -0
- package/lib/types/enum-mappings/construction-type.d.ts +7 -0
- package/lib/types/enum-mappings/construction-type.js +10 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +246 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +12 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +11 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +36 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +10 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.d.ts +3 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.js +16 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +15 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +16 -0
- package/lib/types/enum-mappings/index.d.ts +27 -0
- package/lib/types/enum-mappings/index.js +43 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +9 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +21 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +12 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +15 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +10 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +10 -0
- package/lib/types/enum-mappings/property-expense-category.d.ts +7 -0
- package/lib/types/enum-mappings/property-expense-category.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +12 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +9 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +11 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +23 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +11 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +13 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +13 -0
- package/lib/types/enum-mappings/to-be-purchased.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-purchased.js +8 -0
- package/lib/types/enum-mappings/to-be-used-as-security.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-used-as-security.js +8 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +9 -0
- package/lib/types/enum-mappings/trust.d.ts +7 -0
- package/lib/types/enum-mappings/trust.js +14 -0
- package/lib/types/enum-mappings/verification.d.ts +3 -0
- package/lib/types/enum-mappings/verification.js +13 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/application-workflow.d.ts +233 -0
- package/lib/types/events/application-workflow.js +172 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +628 -0
- package/lib/types/events/public-applicant.js +411 -0
- package/lib/types/events/public-application.d.ts +151 -0
- package/lib/types/events/public-application.js +103 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +502 -0
- package/lib/types/events/public-asset.js +348 -0
- package/lib/types/events/public-employment.d.ts +121 -0
- package/lib/types/events/public-employment.js +46 -0
- package/lib/types/events/public-expense.d.ts +84 -0
- package/lib/types/events/public-expense.js +51 -0
- package/lib/types/events/public-funding-position.d.ts +341 -0
- package/lib/types/events/public-funding-position.js +20 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +140 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +374 -0
- package/lib/types/events/public-required-document.js +297 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/update-application/merge-application.d.ts +14 -0
- package/lib/update-application/merge-application.js +175 -0
- package/lib/update-application/remove-ids-not-required.d.ts +11 -0
- package/lib/update-application/remove-ids-not-required.js +63 -0
- package/lib/update-application/update-primary-applicant.d.ts +27 -0
- package/lib/update-application/update-primary-applicant.js +46 -0
- package/lib/utils/address-tools.d.ts +84 -0
- package/lib/utils/address-tools.js +176 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/errors.d.ts +28 -0
- package/lib/utils/errors.js +43 -0
- package/lib/utils/formatYesNo.d.ts +8 -0
- package/lib/utils/formatYesNo.js +12 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +97 -0
- package/lib/utils/get-financial-institution.d.ts +8 -0
- package/lib/utils/get-financial-institution.js +17 -0
- package/lib/utils/is-asset-type.d.ts +25 -0
- package/lib/utils/is-asset-type.js +46 -0
- package/lib/utils/is-income-type.d.ts +73 -0
- package/lib/utils/is-income-type.js +134 -0
- package/lib/utils/iso-date.d.ts +7 -0
- package/lib/utils/iso-date.js +12 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +79 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application workflow
|
|
3
|
+
*/
|
|
4
|
+
export interface ApplicationWorkflow {
|
|
5
|
+
payload: PayloadClass;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PayloadClass {
|
|
13
|
+
/**
|
|
14
|
+
* UUID of the Application
|
|
15
|
+
*/
|
|
16
|
+
applicationId: string;
|
|
17
|
+
/**
|
|
18
|
+
* UUID of the Application Owner (Team Member)
|
|
19
|
+
*/
|
|
20
|
+
applicationOwner?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Application stage in Lendi Group Salesforce
|
|
23
|
+
*/
|
|
24
|
+
applicationStage?: ApplicationStage;
|
|
25
|
+
/**
|
|
26
|
+
* Application status in Lendi Group Salesforce
|
|
27
|
+
*/
|
|
28
|
+
applicationStatus?: ApplicationStatus;
|
|
29
|
+
brokerAuditReview: BrokerAuditReview[];
|
|
30
|
+
/**
|
|
31
|
+
* Intention for applying a loan
|
|
32
|
+
*/
|
|
33
|
+
confirmedPrimaryPurpose?: ConfirmedPrimaryPurpose;
|
|
34
|
+
/**
|
|
35
|
+
* Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
|
|
36
|
+
* salesforce goes live
|
|
37
|
+
*/
|
|
38
|
+
stage: Stage;
|
|
39
|
+
/**
|
|
40
|
+
* Opportunity status. This is a legacy field and will be deprecated after Lendi Group
|
|
41
|
+
* salesforce goes live
|
|
42
|
+
*/
|
|
43
|
+
status: Status;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Application stage in Lendi Group Salesforce
|
|
47
|
+
*/
|
|
48
|
+
export declare enum ApplicationStage {
|
|
49
|
+
ClosedLost = "CLOSED_LOST",
|
|
50
|
+
PostSettlement = "POST_SETTLEMENT",
|
|
51
|
+
PreApproved = "PRE_APPROVED",
|
|
52
|
+
PreSubmission = "PRE_SUBMISSION",
|
|
53
|
+
Settlement = "SETTLEMENT",
|
|
54
|
+
SubmissionReview = "SUBMISSION_REVIEW",
|
|
55
|
+
SubmittedToLender = "SUBMITTED_TO_LENDER"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Application status in Lendi Group Salesforce
|
|
59
|
+
*/
|
|
60
|
+
export declare enum ApplicationStatus {
|
|
61
|
+
AmendmentInProgress = "AMENDMENT_IN_PROGRESS",
|
|
62
|
+
ApplicationError = "APPLICATION_ERROR",
|
|
63
|
+
ApplicationReceived = "APPLICATION_RECEIVED",
|
|
64
|
+
ApprovedInPrinciple = "APPROVED_IN_PRINCIPLE",
|
|
65
|
+
ConditionallyApproved = "CONDITIONALLY_APPROVED",
|
|
66
|
+
Declined = "DECLINED",
|
|
67
|
+
Discharged = "DISCHARGED",
|
|
68
|
+
DocumentsIssued = "DOCUMENTS_ISSUED",
|
|
69
|
+
DocumentsReceived = "DOCUMENTS_RECEIVED",
|
|
70
|
+
InformationProvidedToLender = "INFORMATION_PROVIDED_TO_LENDER",
|
|
71
|
+
Lodgement = "LODGEMENT",
|
|
72
|
+
Lost = "LOST",
|
|
73
|
+
MoreInformationRequested = "MORE_INFORMATION_REQUESTED",
|
|
74
|
+
OnHold = "ON_HOLD",
|
|
75
|
+
PostContact = "POST_CONTACT",
|
|
76
|
+
PreContact = "PRE_CONTACT",
|
|
77
|
+
ProcessPending = "PROCESS_PENDING",
|
|
78
|
+
ReadyForSettlement = "READY_FOR_SETTLEMENT",
|
|
79
|
+
Referred = "REFERRED",
|
|
80
|
+
ReviewIncomplete = "REVIEW_INCOMPLETE",
|
|
81
|
+
SelfSubmitted = "SELF_SUBMITTED",
|
|
82
|
+
Settled = "SETTLED",
|
|
83
|
+
SettlementBooked = "SETTLEMENT_BOOKED",
|
|
84
|
+
UnconditionallyApproved = "UNCONDITIONALLY_APPROVED",
|
|
85
|
+
UnderReview = "UNDER_REVIEW",
|
|
86
|
+
WaitingOnException = "WAITING_ON_EXCEPTION"
|
|
87
|
+
}
|
|
88
|
+
export interface BrokerAuditReview {
|
|
89
|
+
/**
|
|
90
|
+
* ISO date time when Broker Audit Review was completed
|
|
91
|
+
*/
|
|
92
|
+
completedAt?: string;
|
|
93
|
+
/**
|
|
94
|
+
* UUID of the Team Member that completed the Broker Audit Review
|
|
95
|
+
*/
|
|
96
|
+
completedBy?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The Broker Audit Review outcome
|
|
99
|
+
*/
|
|
100
|
+
outcome?: string;
|
|
101
|
+
/**
|
|
102
|
+
* ISO date time when Broker Audit Review was created
|
|
103
|
+
*/
|
|
104
|
+
requestedAt?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The Broker Audit Review record type
|
|
107
|
+
*/
|
|
108
|
+
reviewType?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The Broker Audit Review status
|
|
111
|
+
*/
|
|
112
|
+
status?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Intention for applying a loan
|
|
116
|
+
*/
|
|
117
|
+
export declare enum ConfirmedPrimaryPurpose {
|
|
118
|
+
ChattelMortgage = "CHATTEL_MORTGAGE",
|
|
119
|
+
Commercial = "COMMERCIAL",
|
|
120
|
+
Construction = "CONSTRUCTION",
|
|
121
|
+
ConstructionAndPurchase = "CONSTRUCTION_AND_PURCHASE",
|
|
122
|
+
ConstructionAndRefinance = "CONSTRUCTION_AND_REFINANCE",
|
|
123
|
+
HirePurchase = "HIRE_PURCHASE",
|
|
124
|
+
InternalRefiSwitch = "INTERNAL_REFI_SWITCH",
|
|
125
|
+
Lease = "LEASE",
|
|
126
|
+
Loan = "LOAN",
|
|
127
|
+
NewPurchase = "NEW_PURCHASE",
|
|
128
|
+
PreApproval = "PRE_APPROVAL",
|
|
129
|
+
Purchase = "PURCHASE",
|
|
130
|
+
PurchaseAndRefinance = "PURCHASE_AND_REFINANCE",
|
|
131
|
+
Refinance = "REFINANCE",
|
|
132
|
+
Slr = "SLR",
|
|
133
|
+
TopUp = "TOP_UP",
|
|
134
|
+
Unknown = "UNKNOWN",
|
|
135
|
+
Variation = "VARIATION"
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
|
|
139
|
+
* salesforce goes live
|
|
140
|
+
*/
|
|
141
|
+
export declare enum Stage {
|
|
142
|
+
ApplicationTaken = "APPLICATION_TAKEN",
|
|
143
|
+
Appointed = "APPOINTED",
|
|
144
|
+
Approval = "APPROVAL",
|
|
145
|
+
Approved = "APPROVED",
|
|
146
|
+
AtRisk = "AT_RISK",
|
|
147
|
+
ClFutureContactDate = "CL_FUTURE_CONTACT_DATE",
|
|
148
|
+
ClosedLost = "CLOSED_LOST",
|
|
149
|
+
ClosedWon = "CLOSED_WON",
|
|
150
|
+
ClosedWonPolicyActive = "CLOSED_WON_POLICY_ACTIVE",
|
|
151
|
+
ClosedWonSigned = "CLOSED_WON_SIGNED",
|
|
152
|
+
ConfirmedAppointment = "CONFIRMED_APPOINTMENT",
|
|
153
|
+
InApplication = "IN_APPLICATION",
|
|
154
|
+
InAssessment = "IN_ASSESSMENT",
|
|
155
|
+
LoanDocument = "LOAN_DOCUMENT",
|
|
156
|
+
PostContact = "POST_CONTACT",
|
|
157
|
+
PostSettlement = "POST_SETTLEMENT",
|
|
158
|
+
PreContact = "PRE_CONTACT",
|
|
159
|
+
Qualification = "QUALIFICATION",
|
|
160
|
+
Quote = "QUOTE",
|
|
161
|
+
Settled = "SETTLED",
|
|
162
|
+
Settlement = "SETTLEMENT",
|
|
163
|
+
Submitted = "SUBMITTED",
|
|
164
|
+
Unknown = "UNKNOWN"
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Opportunity status. This is a legacy field and will be deprecated after Lendi Group
|
|
168
|
+
* salesforce goes live
|
|
169
|
+
*/
|
|
170
|
+
export declare enum Status {
|
|
171
|
+
Application = "APPLICATION",
|
|
172
|
+
ApplicationCompleted = "APPLICATION_COMPLETED",
|
|
173
|
+
ApplicationStarted = "APPLICATION_STARTED",
|
|
174
|
+
ApprovedAndPendingSettlement = "APPROVED_AND_PENDING_SETTLEMENT",
|
|
175
|
+
ApprovedWithPendingDocuments = "APPROVED_WITH_PENDING_DOCUMENTS",
|
|
176
|
+
Compliance = "COMPLIANCE",
|
|
177
|
+
ConditionallyApproved = "CONDITIONALLY_APPROVED",
|
|
178
|
+
ContactAttempted = "CONTACT_ATTEMPTED",
|
|
179
|
+
ContactMade = "CONTACT_MADE",
|
|
180
|
+
Dashboard = "DASHBOARD",
|
|
181
|
+
DocsGenerated = "DOCS_GENERATED",
|
|
182
|
+
DocumentsReceived = "DOCUMENTS_RECEIVED",
|
|
183
|
+
EConsentComplete = "E_CONSENT_COMPLETE",
|
|
184
|
+
FormallyApproved = "FORMALLY_APPROVED",
|
|
185
|
+
InApplication = "IN_APPLICATION",
|
|
186
|
+
LoanDocumentsReceived = "LOAN_DOCUMENTS_RECEIVED",
|
|
187
|
+
LoanDocumentsSent = "LOAN_DOCUMENTS_SENT",
|
|
188
|
+
LoanDocumentsVerified = "LOAN_DOCUMENTS_VERIFIED",
|
|
189
|
+
Lost = "LOST",
|
|
190
|
+
Mir = "MIR",
|
|
191
|
+
NoAnswer1 = "NO_ANSWER_1",
|
|
192
|
+
NoAnswer2 = "NO_ANSWER_2",
|
|
193
|
+
NoAnswer3 = "NO_ANSWER_3",
|
|
194
|
+
NoAnswer4 = "NO_ANSWER_4",
|
|
195
|
+
NoAnswer5 = "NO_ANSWER_5",
|
|
196
|
+
OppCreatedNew = "OPP_CREATED_NEW",
|
|
197
|
+
PendingSettlement = "PENDING_SETTLEMENT",
|
|
198
|
+
PendingSettlementConfirmation = "PENDING_SETTLEMENT_CONFIRMATION",
|
|
199
|
+
PlatformComplete = "PLATFORM_COMPLETE",
|
|
200
|
+
PreApproval = "PRE_APPROVAL",
|
|
201
|
+
ProductSelectionComplete = "PRODUCT_SELECTION_COMPLETE",
|
|
202
|
+
Quarantined = "QUARANTINED",
|
|
203
|
+
ReadyToSubmit = "READY_TO_SUBMIT",
|
|
204
|
+
Referred = "REFERRED",
|
|
205
|
+
RequiredDocsUploaded = "REQUIRED_DOCS_UPLOADED",
|
|
206
|
+
SelfSubmitted = "SELF_SUBMITTED",
|
|
207
|
+
ServicingPassed = "SERVICING_PASSED",
|
|
208
|
+
Settled = "SETTLED",
|
|
209
|
+
SettledAndDischarged = "SETTLED_AND_DISCHARGED",
|
|
210
|
+
SettledAndReconciled = "SETTLED_AND_RECONCILED",
|
|
211
|
+
SettledNotPaid = "SETTLED_NOT_PAID",
|
|
212
|
+
SettlementBooked = "SETTLEMENT_BOOKED",
|
|
213
|
+
SignedAdditionalDocsRequired = "SIGNED_ADDITIONAL_DOCS_REQUIRED",
|
|
214
|
+
SignedClosedLost = "SIGNED_CLOSED_LOST",
|
|
215
|
+
Stp = "STP",
|
|
216
|
+
StpExceptions = "STP_EXCEPTIONS",
|
|
217
|
+
SubmitChangesToLender = "SUBMIT_CHANGES_TO_LENDER",
|
|
218
|
+
SubmitToProduction = "SUBMIT_TO_PRODUCTION",
|
|
219
|
+
SubmitToProductionIncomplete = "SUBMIT_TO_PRODUCTION_INCOMPLETE",
|
|
220
|
+
SubmitToProductionQA = "SUBMIT_TO_PRODUCTION_QA",
|
|
221
|
+
Submitted = "SUBMITTED",
|
|
222
|
+
SubmittedClosedLost = "SUBMITTED_CLOSED_LOST",
|
|
223
|
+
SubmittedDeclined = "SUBMITTED_DECLINED",
|
|
224
|
+
SubmittedMir = "SUBMITTED_MIR",
|
|
225
|
+
SubmittedOnHold = "SUBMITTED_ON_HOLD",
|
|
226
|
+
SubmittedResolved = "SUBMITTED_RESOLVED",
|
|
227
|
+
SubmittedToLender = "SUBMITTED_TO_LENDER",
|
|
228
|
+
UnconditionalApproval = "UNCONDITIONAL_APPROVAL",
|
|
229
|
+
Unknown = "UNKNOWN"
|
|
230
|
+
}
|
|
231
|
+
export declare enum Type {
|
|
232
|
+
ApplicationWorkflowUpdated = "ApplicationWorkflowUpdated"
|
|
233
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.Status = exports.Stage = exports.ConfirmedPrimaryPurpose = exports.ApplicationStatus = exports.ApplicationStage = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Application stage in Lendi Group Salesforce
|
|
6
|
+
*/
|
|
7
|
+
var ApplicationStage;
|
|
8
|
+
(function (ApplicationStage) {
|
|
9
|
+
ApplicationStage["ClosedLost"] = "CLOSED_LOST";
|
|
10
|
+
ApplicationStage["PostSettlement"] = "POST_SETTLEMENT";
|
|
11
|
+
ApplicationStage["PreApproved"] = "PRE_APPROVED";
|
|
12
|
+
ApplicationStage["PreSubmission"] = "PRE_SUBMISSION";
|
|
13
|
+
ApplicationStage["Settlement"] = "SETTLEMENT";
|
|
14
|
+
ApplicationStage["SubmissionReview"] = "SUBMISSION_REVIEW";
|
|
15
|
+
ApplicationStage["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
|
|
16
|
+
})(ApplicationStage = exports.ApplicationStage || (exports.ApplicationStage = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Application status in Lendi Group Salesforce
|
|
19
|
+
*/
|
|
20
|
+
var ApplicationStatus;
|
|
21
|
+
(function (ApplicationStatus) {
|
|
22
|
+
ApplicationStatus["AmendmentInProgress"] = "AMENDMENT_IN_PROGRESS";
|
|
23
|
+
ApplicationStatus["ApplicationError"] = "APPLICATION_ERROR";
|
|
24
|
+
ApplicationStatus["ApplicationReceived"] = "APPLICATION_RECEIVED";
|
|
25
|
+
ApplicationStatus["ApprovedInPrinciple"] = "APPROVED_IN_PRINCIPLE";
|
|
26
|
+
ApplicationStatus["ConditionallyApproved"] = "CONDITIONALLY_APPROVED";
|
|
27
|
+
ApplicationStatus["Declined"] = "DECLINED";
|
|
28
|
+
ApplicationStatus["Discharged"] = "DISCHARGED";
|
|
29
|
+
ApplicationStatus["DocumentsIssued"] = "DOCUMENTS_ISSUED";
|
|
30
|
+
ApplicationStatus["DocumentsReceived"] = "DOCUMENTS_RECEIVED";
|
|
31
|
+
ApplicationStatus["InformationProvidedToLender"] = "INFORMATION_PROVIDED_TO_LENDER";
|
|
32
|
+
ApplicationStatus["Lodgement"] = "LODGEMENT";
|
|
33
|
+
ApplicationStatus["Lost"] = "LOST";
|
|
34
|
+
ApplicationStatus["MoreInformationRequested"] = "MORE_INFORMATION_REQUESTED";
|
|
35
|
+
ApplicationStatus["OnHold"] = "ON_HOLD";
|
|
36
|
+
ApplicationStatus["PostContact"] = "POST_CONTACT";
|
|
37
|
+
ApplicationStatus["PreContact"] = "PRE_CONTACT";
|
|
38
|
+
ApplicationStatus["ProcessPending"] = "PROCESS_PENDING";
|
|
39
|
+
ApplicationStatus["ReadyForSettlement"] = "READY_FOR_SETTLEMENT";
|
|
40
|
+
ApplicationStatus["Referred"] = "REFERRED";
|
|
41
|
+
ApplicationStatus["ReviewIncomplete"] = "REVIEW_INCOMPLETE";
|
|
42
|
+
ApplicationStatus["SelfSubmitted"] = "SELF_SUBMITTED";
|
|
43
|
+
ApplicationStatus["Settled"] = "SETTLED";
|
|
44
|
+
ApplicationStatus["SettlementBooked"] = "SETTLEMENT_BOOKED";
|
|
45
|
+
ApplicationStatus["UnconditionallyApproved"] = "UNCONDITIONALLY_APPROVED";
|
|
46
|
+
ApplicationStatus["UnderReview"] = "UNDER_REVIEW";
|
|
47
|
+
ApplicationStatus["WaitingOnException"] = "WAITING_ON_EXCEPTION";
|
|
48
|
+
})(ApplicationStatus = exports.ApplicationStatus || (exports.ApplicationStatus = {}));
|
|
49
|
+
/**
|
|
50
|
+
* Intention for applying a loan
|
|
51
|
+
*/
|
|
52
|
+
var ConfirmedPrimaryPurpose;
|
|
53
|
+
(function (ConfirmedPrimaryPurpose) {
|
|
54
|
+
ConfirmedPrimaryPurpose["ChattelMortgage"] = "CHATTEL_MORTGAGE";
|
|
55
|
+
ConfirmedPrimaryPurpose["Commercial"] = "COMMERCIAL";
|
|
56
|
+
ConfirmedPrimaryPurpose["Construction"] = "CONSTRUCTION";
|
|
57
|
+
ConfirmedPrimaryPurpose["ConstructionAndPurchase"] = "CONSTRUCTION_AND_PURCHASE";
|
|
58
|
+
ConfirmedPrimaryPurpose["ConstructionAndRefinance"] = "CONSTRUCTION_AND_REFINANCE";
|
|
59
|
+
ConfirmedPrimaryPurpose["HirePurchase"] = "HIRE_PURCHASE";
|
|
60
|
+
ConfirmedPrimaryPurpose["InternalRefiSwitch"] = "INTERNAL_REFI_SWITCH";
|
|
61
|
+
ConfirmedPrimaryPurpose["Lease"] = "LEASE";
|
|
62
|
+
ConfirmedPrimaryPurpose["Loan"] = "LOAN";
|
|
63
|
+
ConfirmedPrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
|
|
64
|
+
ConfirmedPrimaryPurpose["PreApproval"] = "PRE_APPROVAL";
|
|
65
|
+
ConfirmedPrimaryPurpose["Purchase"] = "PURCHASE";
|
|
66
|
+
ConfirmedPrimaryPurpose["PurchaseAndRefinance"] = "PURCHASE_AND_REFINANCE";
|
|
67
|
+
ConfirmedPrimaryPurpose["Refinance"] = "REFINANCE";
|
|
68
|
+
ConfirmedPrimaryPurpose["Slr"] = "SLR";
|
|
69
|
+
ConfirmedPrimaryPurpose["TopUp"] = "TOP_UP";
|
|
70
|
+
ConfirmedPrimaryPurpose["Unknown"] = "UNKNOWN";
|
|
71
|
+
ConfirmedPrimaryPurpose["Variation"] = "VARIATION";
|
|
72
|
+
})(ConfirmedPrimaryPurpose = exports.ConfirmedPrimaryPurpose || (exports.ConfirmedPrimaryPurpose = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
|
|
75
|
+
* salesforce goes live
|
|
76
|
+
*/
|
|
77
|
+
var Stage;
|
|
78
|
+
(function (Stage) {
|
|
79
|
+
Stage["ApplicationTaken"] = "APPLICATION_TAKEN";
|
|
80
|
+
Stage["Appointed"] = "APPOINTED";
|
|
81
|
+
Stage["Approval"] = "APPROVAL";
|
|
82
|
+
Stage["Approved"] = "APPROVED";
|
|
83
|
+
Stage["AtRisk"] = "AT_RISK";
|
|
84
|
+
Stage["ClFutureContactDate"] = "CL_FUTURE_CONTACT_DATE";
|
|
85
|
+
Stage["ClosedLost"] = "CLOSED_LOST";
|
|
86
|
+
Stage["ClosedWon"] = "CLOSED_WON";
|
|
87
|
+
Stage["ClosedWonPolicyActive"] = "CLOSED_WON_POLICY_ACTIVE";
|
|
88
|
+
Stage["ClosedWonSigned"] = "CLOSED_WON_SIGNED";
|
|
89
|
+
Stage["ConfirmedAppointment"] = "CONFIRMED_APPOINTMENT";
|
|
90
|
+
Stage["InApplication"] = "IN_APPLICATION";
|
|
91
|
+
Stage["InAssessment"] = "IN_ASSESSMENT";
|
|
92
|
+
Stage["LoanDocument"] = "LOAN_DOCUMENT";
|
|
93
|
+
Stage["PostContact"] = "POST_CONTACT";
|
|
94
|
+
Stage["PostSettlement"] = "POST_SETTLEMENT";
|
|
95
|
+
Stage["PreContact"] = "PRE_CONTACT";
|
|
96
|
+
Stage["Qualification"] = "QUALIFICATION";
|
|
97
|
+
Stage["Quote"] = "QUOTE";
|
|
98
|
+
Stage["Settled"] = "SETTLED";
|
|
99
|
+
Stage["Settlement"] = "SETTLEMENT";
|
|
100
|
+
Stage["Submitted"] = "SUBMITTED";
|
|
101
|
+
Stage["Unknown"] = "UNKNOWN";
|
|
102
|
+
})(Stage = exports.Stage || (exports.Stage = {}));
|
|
103
|
+
/**
|
|
104
|
+
* Opportunity status. This is a legacy field and will be deprecated after Lendi Group
|
|
105
|
+
* salesforce goes live
|
|
106
|
+
*/
|
|
107
|
+
var Status;
|
|
108
|
+
(function (Status) {
|
|
109
|
+
Status["Application"] = "APPLICATION";
|
|
110
|
+
Status["ApplicationCompleted"] = "APPLICATION_COMPLETED";
|
|
111
|
+
Status["ApplicationStarted"] = "APPLICATION_STARTED";
|
|
112
|
+
Status["ApprovedAndPendingSettlement"] = "APPROVED_AND_PENDING_SETTLEMENT";
|
|
113
|
+
Status["ApprovedWithPendingDocuments"] = "APPROVED_WITH_PENDING_DOCUMENTS";
|
|
114
|
+
Status["Compliance"] = "COMPLIANCE";
|
|
115
|
+
Status["ConditionallyApproved"] = "CONDITIONALLY_APPROVED";
|
|
116
|
+
Status["ContactAttempted"] = "CONTACT_ATTEMPTED";
|
|
117
|
+
Status["ContactMade"] = "CONTACT_MADE";
|
|
118
|
+
Status["Dashboard"] = "DASHBOARD";
|
|
119
|
+
Status["DocsGenerated"] = "DOCS_GENERATED";
|
|
120
|
+
Status["DocumentsReceived"] = "DOCUMENTS_RECEIVED";
|
|
121
|
+
Status["EConsentComplete"] = "E_CONSENT_COMPLETE";
|
|
122
|
+
Status["FormallyApproved"] = "FORMALLY_APPROVED";
|
|
123
|
+
Status["InApplication"] = "IN_APPLICATION";
|
|
124
|
+
Status["LoanDocumentsReceived"] = "LOAN_DOCUMENTS_RECEIVED";
|
|
125
|
+
Status["LoanDocumentsSent"] = "LOAN_DOCUMENTS_SENT";
|
|
126
|
+
Status["LoanDocumentsVerified"] = "LOAN_DOCUMENTS_VERIFIED";
|
|
127
|
+
Status["Lost"] = "LOST";
|
|
128
|
+
Status["Mir"] = "MIR";
|
|
129
|
+
Status["NoAnswer1"] = "NO_ANSWER_1";
|
|
130
|
+
Status["NoAnswer2"] = "NO_ANSWER_2";
|
|
131
|
+
Status["NoAnswer3"] = "NO_ANSWER_3";
|
|
132
|
+
Status["NoAnswer4"] = "NO_ANSWER_4";
|
|
133
|
+
Status["NoAnswer5"] = "NO_ANSWER_5";
|
|
134
|
+
Status["OppCreatedNew"] = "OPP_CREATED_NEW";
|
|
135
|
+
Status["PendingSettlement"] = "PENDING_SETTLEMENT";
|
|
136
|
+
Status["PendingSettlementConfirmation"] = "PENDING_SETTLEMENT_CONFIRMATION";
|
|
137
|
+
Status["PlatformComplete"] = "PLATFORM_COMPLETE";
|
|
138
|
+
Status["PreApproval"] = "PRE_APPROVAL";
|
|
139
|
+
Status["ProductSelectionComplete"] = "PRODUCT_SELECTION_COMPLETE";
|
|
140
|
+
Status["Quarantined"] = "QUARANTINED";
|
|
141
|
+
Status["ReadyToSubmit"] = "READY_TO_SUBMIT";
|
|
142
|
+
Status["Referred"] = "REFERRED";
|
|
143
|
+
Status["RequiredDocsUploaded"] = "REQUIRED_DOCS_UPLOADED";
|
|
144
|
+
Status["SelfSubmitted"] = "SELF_SUBMITTED";
|
|
145
|
+
Status["ServicingPassed"] = "SERVICING_PASSED";
|
|
146
|
+
Status["Settled"] = "SETTLED";
|
|
147
|
+
Status["SettledAndDischarged"] = "SETTLED_AND_DISCHARGED";
|
|
148
|
+
Status["SettledAndReconciled"] = "SETTLED_AND_RECONCILED";
|
|
149
|
+
Status["SettledNotPaid"] = "SETTLED_NOT_PAID";
|
|
150
|
+
Status["SettlementBooked"] = "SETTLEMENT_BOOKED";
|
|
151
|
+
Status["SignedAdditionalDocsRequired"] = "SIGNED_ADDITIONAL_DOCS_REQUIRED";
|
|
152
|
+
Status["SignedClosedLost"] = "SIGNED_CLOSED_LOST";
|
|
153
|
+
Status["Stp"] = "STP";
|
|
154
|
+
Status["StpExceptions"] = "STP_EXCEPTIONS";
|
|
155
|
+
Status["SubmitChangesToLender"] = "SUBMIT_CHANGES_TO_LENDER";
|
|
156
|
+
Status["SubmitToProduction"] = "SUBMIT_TO_PRODUCTION";
|
|
157
|
+
Status["SubmitToProductionIncomplete"] = "SUBMIT_TO_PRODUCTION_INCOMPLETE";
|
|
158
|
+
Status["SubmitToProductionQA"] = "SUBMIT_TO_PRODUCTION_QA";
|
|
159
|
+
Status["Submitted"] = "SUBMITTED";
|
|
160
|
+
Status["SubmittedClosedLost"] = "SUBMITTED_CLOSED_LOST";
|
|
161
|
+
Status["SubmittedDeclined"] = "SUBMITTED_DECLINED";
|
|
162
|
+
Status["SubmittedMir"] = "SUBMITTED_MIR";
|
|
163
|
+
Status["SubmittedOnHold"] = "SUBMITTED_ON_HOLD";
|
|
164
|
+
Status["SubmittedResolved"] = "SUBMITTED_RESOLVED";
|
|
165
|
+
Status["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
|
|
166
|
+
Status["UnconditionalApproval"] = "UNCONDITIONAL_APPROVAL";
|
|
167
|
+
Status["Unknown"] = "UNKNOWN";
|
|
168
|
+
})(Status = exports.Status || (exports.Status = {}));
|
|
169
|
+
var Type;
|
|
170
|
+
(function (Type) {
|
|
171
|
+
Type["ApplicationWorkflowUpdated"] = "ApplicationWorkflowUpdated";
|
|
172
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface AssetDelete {
|
|
2
|
+
payload: DeletePayloadDefinition;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DeletePayloadDefinition {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
id: string;
|
|
9
|
+
meta?: Meta;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The metadata of the alieo
|
|
13
|
+
*/
|
|
14
|
+
export interface Meta {
|
|
15
|
+
/**
|
|
16
|
+
* uuid of user who made the action (create/update/delete)
|
|
17
|
+
*/
|
|
18
|
+
actionedBy: string;
|
|
19
|
+
/**
|
|
20
|
+
* role of the user that made the action
|
|
21
|
+
*/
|
|
22
|
+
actionedByRole: ActionedByRole;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* role of the user that made the action
|
|
26
|
+
*/
|
|
27
|
+
export declare enum ActionedByRole {
|
|
28
|
+
Customer = "customer",
|
|
29
|
+
Team = "team"
|
|
30
|
+
}
|
|
31
|
+
export declare enum Type {
|
|
32
|
+
AssetDeleted = "AssetDeleted"
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.ActionedByRole = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* role of the user that made the action
|
|
6
|
+
*/
|
|
7
|
+
var ActionedByRole;
|
|
8
|
+
(function (ActionedByRole) {
|
|
9
|
+
ActionedByRole["Customer"] = "customer";
|
|
10
|
+
ActionedByRole["Team"] = "team";
|
|
11
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
12
|
+
var Type;
|
|
13
|
+
(function (Type) {
|
|
14
|
+
Type["AssetDeleted"] = "AssetDeleted";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AssetAndLiabilityRelationDeleted event schema
|
|
3
|
+
*/
|
|
4
|
+
export interface AssetLiabilityRelationDelete {
|
|
5
|
+
payload: DeleteAssetAndLiabilityRelationDefinition;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* delete Asset And Liability Relation payload
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAssetAndLiabilityRelationDefinition {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
meta?: Meta;
|
|
18
|
+
relation: Relation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The metadata of the alieo
|
|
22
|
+
*/
|
|
23
|
+
export interface Meta {
|
|
24
|
+
/**
|
|
25
|
+
* uuid of user who made the action (create/update/delete)
|
|
26
|
+
*/
|
|
27
|
+
actionedBy: string;
|
|
28
|
+
/**
|
|
29
|
+
* role of the user that made the action
|
|
30
|
+
*/
|
|
31
|
+
actionedByRole: ActionedByRole;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* role of the user that made the action
|
|
35
|
+
*/
|
|
36
|
+
export declare enum ActionedByRole {
|
|
37
|
+
Customer = "customer",
|
|
38
|
+
Team = "team"
|
|
39
|
+
}
|
|
40
|
+
export interface Relation {
|
|
41
|
+
/**
|
|
42
|
+
* uuid of asset
|
|
43
|
+
*/
|
|
44
|
+
assetId: string;
|
|
45
|
+
/**
|
|
46
|
+
* uuid of liability
|
|
47
|
+
*/
|
|
48
|
+
liabilityId: string;
|
|
49
|
+
}
|
|
50
|
+
export declare enum Type {
|
|
51
|
+
AssetAndLiabilityRelationDeleted = "AssetAndLiabilityRelationDeleted"
|
|
52
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.ActionedByRole = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* role of the user that made the action
|
|
6
|
+
*/
|
|
7
|
+
var ActionedByRole;
|
|
8
|
+
(function (ActionedByRole) {
|
|
9
|
+
ActionedByRole["Customer"] = "customer";
|
|
10
|
+
ActionedByRole["Team"] = "team";
|
|
11
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
12
|
+
var Type;
|
|
13
|
+
(function (Type) {
|
|
14
|
+
Type["AssetAndLiabilityRelationDeleted"] = "AssetAndLiabilityRelationDeleted";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface CreditReportRetrieved {
|
|
2
|
+
payload: any[] | boolean | number | number | null | PayloadObject | string;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PayloadObject {
|
|
7
|
+
applicantId: string;
|
|
8
|
+
applicationId: string;
|
|
9
|
+
/**
|
|
10
|
+
* ISO 8601 time when the event is created
|
|
11
|
+
*/
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
customerId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Indicate whether there is a match found or not for the customer.
|
|
16
|
+
*/
|
|
17
|
+
isNoMatch?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Credit report raw content, compressed and 64-base encoded.
|
|
20
|
+
*/
|
|
21
|
+
raw: string;
|
|
22
|
+
/**
|
|
23
|
+
* A list of credit report service provider
|
|
24
|
+
*/
|
|
25
|
+
source: Source;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A list of credit report service provider
|
|
29
|
+
*/
|
|
30
|
+
export declare enum Source {
|
|
31
|
+
Equifax = "equifax"
|
|
32
|
+
}
|
|
33
|
+
export declare enum Type {
|
|
34
|
+
CreditReportNoMatch = "CreditReportNoMatch",
|
|
35
|
+
CreditReportRetrieved = "CreditReportRetrieved"
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.Source = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A list of credit report service provider
|
|
6
|
+
*/
|
|
7
|
+
var Source;
|
|
8
|
+
(function (Source) {
|
|
9
|
+
Source["Equifax"] = "equifax";
|
|
10
|
+
})(Source = exports.Source || (exports.Source = {}));
|
|
11
|
+
var Type;
|
|
12
|
+
(function (Type) {
|
|
13
|
+
Type["CreditReportNoMatch"] = "CreditReportNoMatch";
|
|
14
|
+
Type["CreditReportRetrieved"] = "CreditReportRetrieved";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface EmploymentDelete {
|
|
2
|
+
payload: Payload;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Payload {
|
|
7
|
+
/**
|
|
8
|
+
* uuid of applicant
|
|
9
|
+
*/
|
|
10
|
+
applicantId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* uuid of application
|
|
13
|
+
*/
|
|
14
|
+
applicationId: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export declare enum Type {
|
|
18
|
+
EmploymentDeleted = "EmploymentDeleted"
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ExpenseDelete {
|
|
2
|
+
payload: Payload;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Payload {
|
|
7
|
+
/**
|
|
8
|
+
* uuid of applicant
|
|
9
|
+
*/
|
|
10
|
+
applicantId: string;
|
|
11
|
+
applicationId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
meta?: Meta;
|
|
14
|
+
}
|
|
15
|
+
export interface Meta {
|
|
16
|
+
actionedBy: string;
|
|
17
|
+
actionedByRole: string;
|
|
18
|
+
}
|
|
19
|
+
export declare enum Type {
|
|
20
|
+
ExpenseDeleted = "ExpenseDeleted"
|
|
21
|
+
}
|