@lendi/act-credit-decisions-transform 1.9.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 +8 -0
- package/lib/transform-events/transform-employment.js +106 -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 +78 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Funding Position object in Salesforce
|
|
3
|
+
*/
|
|
4
|
+
export interface FundingPosition {
|
|
5
|
+
payload: PayloadClass;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PayloadClass {
|
|
13
|
+
/**
|
|
14
|
+
* Application ID
|
|
15
|
+
*/
|
|
16
|
+
applicationId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Amount of Borrower Contributions
|
|
19
|
+
*/
|
|
20
|
+
borrowerContributions: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Calculated LVR from related Application. Opportunity.Calculated_LVR__c field in Salesforce
|
|
23
|
+
*/
|
|
24
|
+
calculatedLvr: number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Client legal fees
|
|
27
|
+
*/
|
|
28
|
+
clientLegalFees: number | null;
|
|
29
|
+
/**
|
|
30
|
+
* First home owner grants
|
|
31
|
+
*/
|
|
32
|
+
firstHomeOwnerConcessionsAndGrants: number | null;
|
|
33
|
+
fundingPositionDetails?: FundingPositionDetail[];
|
|
34
|
+
/**
|
|
35
|
+
* Amount of Funds Requested
|
|
36
|
+
*/
|
|
37
|
+
fundsRequested: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Amount of Funds Required
|
|
40
|
+
*/
|
|
41
|
+
fundsRequired: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Funding Position ID
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Lender setup fees
|
|
48
|
+
*/
|
|
49
|
+
lenderSetupFees: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* Lenders Mortgage Insurance
|
|
52
|
+
*/
|
|
53
|
+
lendersMortgageInsurance: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Max Loan Asset
|
|
56
|
+
*/
|
|
57
|
+
loanMaxAsset: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* Max Loan Product
|
|
60
|
+
*/
|
|
61
|
+
loanMaxProduct: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* Net Surplus
|
|
64
|
+
*/
|
|
65
|
+
netSurplus: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Other sundries
|
|
68
|
+
*/
|
|
69
|
+
otherSundries: number | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Details on a Funding Position object in Salesforce that represent assets or liabilities.
|
|
73
|
+
* Eg. fees, debt, purchases
|
|
74
|
+
*/
|
|
75
|
+
export interface FundingPositionDetail {
|
|
76
|
+
/**
|
|
77
|
+
* Amount of the detail
|
|
78
|
+
*/
|
|
79
|
+
amount: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* Category of the detail
|
|
82
|
+
*/
|
|
83
|
+
category: Category | null;
|
|
84
|
+
/**
|
|
85
|
+
* Detail type
|
|
86
|
+
*/
|
|
87
|
+
detailType?: DetailType;
|
|
88
|
+
}
|
|
89
|
+
export declare enum Category {
|
|
90
|
+
BorrowerContribution = "Borrower Contribution",
|
|
91
|
+
Debt = "Debt",
|
|
92
|
+
EquityRelease = "Equity Release",
|
|
93
|
+
Fee = "Fee",
|
|
94
|
+
Other = "Other",
|
|
95
|
+
Purchase = "Purchase"
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Detail type
|
|
99
|
+
*/
|
|
100
|
+
export declare enum DetailType {
|
|
101
|
+
Deposit = "Deposit",
|
|
102
|
+
DischargeCosts = "Discharge Costs",
|
|
103
|
+
EquityRelease = "Equity Release",
|
|
104
|
+
HomeLoanToRepay = "Home Loan to Repay",
|
|
105
|
+
OtherDebtsToRepay = "Other Debts to Repay",
|
|
106
|
+
PotentialAccruedInterest = "Potential Accrued Interest",
|
|
107
|
+
PurchasePrice = "Purchase Price",
|
|
108
|
+
PurchaseStampDuty = "Purchase Stamp Duty",
|
|
109
|
+
RegistrationFee = "Registration Fee",
|
|
110
|
+
TransferFee = "Transfer Fee"
|
|
111
|
+
}
|
|
112
|
+
export declare enum Type {
|
|
113
|
+
FundingPositionCreated = "FundingPositionCreated",
|
|
114
|
+
FundingPositionMigrated = "FundingPositionMigrated",
|
|
115
|
+
FundingPositionUpdated = "FundingPositionUpdated"
|
|
116
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.DetailType = exports.Category = void 0;
|
|
4
|
+
var Category;
|
|
5
|
+
(function (Category) {
|
|
6
|
+
Category["BorrowerContribution"] = "Borrower Contribution";
|
|
7
|
+
Category["Debt"] = "Debt";
|
|
8
|
+
Category["EquityRelease"] = "Equity Release";
|
|
9
|
+
Category["Fee"] = "Fee";
|
|
10
|
+
Category["Other"] = "Other";
|
|
11
|
+
Category["Purchase"] = "Purchase";
|
|
12
|
+
})(Category = exports.Category || (exports.Category = {}));
|
|
13
|
+
/**
|
|
14
|
+
* Detail type
|
|
15
|
+
*/
|
|
16
|
+
var DetailType;
|
|
17
|
+
(function (DetailType) {
|
|
18
|
+
DetailType["Deposit"] = "Deposit";
|
|
19
|
+
DetailType["DischargeCosts"] = "Discharge Costs";
|
|
20
|
+
DetailType["EquityRelease"] = "Equity Release";
|
|
21
|
+
DetailType["HomeLoanToRepay"] = "Home Loan to Repay";
|
|
22
|
+
DetailType["OtherDebtsToRepay"] = "Other Debts to Repay";
|
|
23
|
+
DetailType["PotentialAccruedInterest"] = "Potential Accrued Interest";
|
|
24
|
+
DetailType["PurchasePrice"] = "Purchase Price";
|
|
25
|
+
DetailType["PurchaseStampDuty"] = "Purchase Stamp Duty";
|
|
26
|
+
DetailType["RegistrationFee"] = "Registration Fee";
|
|
27
|
+
DetailType["TransferFee"] = "Transfer Fee";
|
|
28
|
+
})(DetailType = exports.DetailType || (exports.DetailType = {}));
|
|
29
|
+
var Type;
|
|
30
|
+
(function (Type) {
|
|
31
|
+
Type["FundingPositionCreated"] = "FundingPositionCreated";
|
|
32
|
+
Type["FundingPositionMigrated"] = "FundingPositionMigrated";
|
|
33
|
+
Type["FundingPositionUpdated"] = "FundingPositionUpdated";
|
|
34
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface IncomeDelete {
|
|
2
|
+
payload: DeleteEntityDefinition;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DeleteEntityDefinition {
|
|
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
|
+
IncomeDeleted = "IncomeDeleted"
|
|
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["IncomeDeleted"] = "IncomeDeleted";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LiabilityDelete {
|
|
2
|
+
payload: Payload;
|
|
3
|
+
type: Type;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Payload {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
id: string;
|
|
9
|
+
meta?: Meta;
|
|
10
|
+
}
|
|
11
|
+
export interface Meta {
|
|
12
|
+
actionedBy: string;
|
|
13
|
+
actionedByRole: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum Type {
|
|
16
|
+
LiabilityDeleted = "LiabilityDeleted"
|
|
17
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Opportunity object in Salesforce
|
|
3
|
+
*/
|
|
4
|
+
export interface Opportunity {
|
|
5
|
+
payload: PayloadObject;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PayloadObject {
|
|
13
|
+
areYouAFirstHomeBuyer?: null | string;
|
|
14
|
+
/**
|
|
15
|
+
* Brand of an Opportunity, taken from Record Type in Salesforce
|
|
16
|
+
*/
|
|
17
|
+
brand?: Brand;
|
|
18
|
+
/**
|
|
19
|
+
* From Funnel
|
|
20
|
+
*/
|
|
21
|
+
cashoutAmount?: number | null;
|
|
22
|
+
customerId?: null | string;
|
|
23
|
+
/**
|
|
24
|
+
* From Funnel
|
|
25
|
+
*/
|
|
26
|
+
deposit?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
* From funnel, ISO 8601 string date format
|
|
29
|
+
*/
|
|
30
|
+
expectedSettlementDate?: null | string;
|
|
31
|
+
/**
|
|
32
|
+
* From Funnel
|
|
33
|
+
*/
|
|
34
|
+
factorsInChoosingALender?: null | string;
|
|
35
|
+
/**
|
|
36
|
+
* The unique identifier of the Opportunity
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* When checked the Application is hidden from view
|
|
41
|
+
*/
|
|
42
|
+
isHidden?: boolean;
|
|
43
|
+
loanAmount?: number | null;
|
|
44
|
+
name?: null | string;
|
|
45
|
+
preferredRepaymentMethod?: null | string;
|
|
46
|
+
/**
|
|
47
|
+
* Opportunity Stage Name
|
|
48
|
+
*/
|
|
49
|
+
stage: Stage;
|
|
50
|
+
/**
|
|
51
|
+
* Opportunity status. Can be null when this field is empty/not set on new and closed
|
|
52
|
+
* opportunities
|
|
53
|
+
*/
|
|
54
|
+
status?: null | string;
|
|
55
|
+
transactionType?: string;
|
|
56
|
+
userId: null | string;
|
|
57
|
+
/**
|
|
58
|
+
* From Funnel
|
|
59
|
+
*/
|
|
60
|
+
whyAreYouRefinancing?: null | string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Brand of an Opportunity, taken from Record Type in Salesforce
|
|
64
|
+
*/
|
|
65
|
+
export declare enum Brand {
|
|
66
|
+
Domain = "domain",
|
|
67
|
+
DomainVariation = "domain variation",
|
|
68
|
+
Lendi = "lendi",
|
|
69
|
+
LendiVariation = "lendi variation"
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Opportunity Stage Name
|
|
73
|
+
*/
|
|
74
|
+
export declare enum Stage {
|
|
75
|
+
ApplicationTaken = "Application Taken",
|
|
76
|
+
Appointed = "Appointed",
|
|
77
|
+
Approval = "Approval",
|
|
78
|
+
Approved = "Approved",
|
|
79
|
+
AtRisk = "At Risk",
|
|
80
|
+
CLFutureContactDate = "CL Future Contact Date",
|
|
81
|
+
ClosedLost = "Closed Lost",
|
|
82
|
+
ClosedWon = "Closed Won",
|
|
83
|
+
ClosedWonPolicyActive = "Closed Won - Policy Active",
|
|
84
|
+
ClosedWonSigned = "Closed Won - Signed",
|
|
85
|
+
ConfirmedAppointment = "Confirmed Appointment",
|
|
86
|
+
InApplication = "In Application",
|
|
87
|
+
InAssessment = "In Assessment",
|
|
88
|
+
LoanDocument = "Loan Document",
|
|
89
|
+
PostContact = "Post-Contact",
|
|
90
|
+
PostSettlement = "Post-Settlement",
|
|
91
|
+
PreContact = "Pre-Contact",
|
|
92
|
+
Qualification = "Qualification",
|
|
93
|
+
Quote = "Quote",
|
|
94
|
+
Settled = "Settled",
|
|
95
|
+
Settlement = "Settlement",
|
|
96
|
+
Submitted = "Submitted"
|
|
97
|
+
}
|
|
98
|
+
export declare enum Type {
|
|
99
|
+
OpportunityCreated = "OpportunityCreated",
|
|
100
|
+
OpportunityMigrated = "OpportunityMigrated",
|
|
101
|
+
OpportunityUpdated = "OpportunityUpdated"
|
|
102
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.Stage = exports.Brand = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Brand of an Opportunity, taken from Record Type in Salesforce
|
|
6
|
+
*/
|
|
7
|
+
var Brand;
|
|
8
|
+
(function (Brand) {
|
|
9
|
+
Brand["Domain"] = "domain";
|
|
10
|
+
Brand["DomainVariation"] = "domain variation";
|
|
11
|
+
Brand["Lendi"] = "lendi";
|
|
12
|
+
Brand["LendiVariation"] = "lendi variation";
|
|
13
|
+
})(Brand = exports.Brand || (exports.Brand = {}));
|
|
14
|
+
/**
|
|
15
|
+
* Opportunity Stage Name
|
|
16
|
+
*/
|
|
17
|
+
var Stage;
|
|
18
|
+
(function (Stage) {
|
|
19
|
+
Stage["ApplicationTaken"] = "Application Taken";
|
|
20
|
+
Stage["Appointed"] = "Appointed";
|
|
21
|
+
Stage["Approval"] = "Approval";
|
|
22
|
+
Stage["Approved"] = "Approved";
|
|
23
|
+
Stage["AtRisk"] = "At Risk";
|
|
24
|
+
Stage["CLFutureContactDate"] = "CL Future Contact Date";
|
|
25
|
+
Stage["ClosedLost"] = "Closed Lost";
|
|
26
|
+
Stage["ClosedWon"] = "Closed Won";
|
|
27
|
+
Stage["ClosedWonPolicyActive"] = "Closed Won - Policy Active";
|
|
28
|
+
Stage["ClosedWonSigned"] = "Closed Won - Signed";
|
|
29
|
+
Stage["ConfirmedAppointment"] = "Confirmed Appointment";
|
|
30
|
+
Stage["InApplication"] = "In Application";
|
|
31
|
+
Stage["InAssessment"] = "In Assessment";
|
|
32
|
+
Stage["LoanDocument"] = "Loan Document";
|
|
33
|
+
Stage["PostContact"] = "Post-Contact";
|
|
34
|
+
Stage["PostSettlement"] = "Post-Settlement";
|
|
35
|
+
Stage["PreContact"] = "Pre-Contact";
|
|
36
|
+
Stage["Qualification"] = "Qualification";
|
|
37
|
+
Stage["Quote"] = "Quote";
|
|
38
|
+
Stage["Settled"] = "Settled";
|
|
39
|
+
Stage["Settlement"] = "Settlement";
|
|
40
|
+
Stage["Submitted"] = "Submitted";
|
|
41
|
+
})(Stage = exports.Stage || (exports.Stage = {}));
|
|
42
|
+
var Type;
|
|
43
|
+
(function (Type) {
|
|
44
|
+
Type["OpportunityCreated"] = "OpportunityCreated";
|
|
45
|
+
Type["OpportunityMigrated"] = "OpportunityMigrated";
|
|
46
|
+
Type["OpportunityUpdated"] = "OpportunityUpdated";
|
|
47
|
+
})(Type = exports.Type || (exports.Type = {}));
|