@lendi/integrations-transform 1.5.6 → 1.5.9
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/lib/index.js +10 -22
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +2 -5
- package/lib/schemas/application-workflow-event.json +1 -30
- package/lib/transform-events/generate-asset-liability-link.d.ts +3 -1
- package/lib/transform-events/generate-asset-liability-link.js +14 -18
- package/lib/transform-events/generate-credit-report-rebuilt.js +17 -21
- package/lib/transform-events/generate-employment.d.ts +1 -1
- package/lib/transform-events/generate-employment.js +51 -56
- package/lib/transform-events/generate-required-document.d.ts +1 -7
- package/lib/transform-events/generate-required-document.js +43 -69
- package/lib/transform-events/transform-applicant.d.ts +2 -1
- package/lib/transform-events/transform-applicant.js +78 -91
- package/lib/transform-events/transform-application-workflow.d.ts +0 -1
- package/lib/transform-events/transform-application-workflow.js +9 -14
- package/lib/transform-events/transform-application.d.ts +3 -1
- package/lib/transform-events/transform-application.js +28 -33
- package/lib/transform-events/transform-asset-address.d.ts +8 -2
- package/lib/transform-events/transform-asset-address.js +35 -37
- package/lib/transform-events/transform-asset.d.ts +7 -1
- package/lib/transform-events/transform-asset.js +164 -183
- package/lib/transform-events/transform-expenses.d.ts +4 -0
- package/lib/transform-events/transform-expenses.js +52 -58
- package/lib/transform-events/transform-funding-position.d.ts +2 -2
- package/lib/transform-events/transform-funding-position.js +38 -46
- package/lib/transform-events/transform-income.d.ts +8 -1
- package/lib/transform-events/transform-income.js +121 -139
- package/lib/transform-events/transform-liability.d.ts +4 -1
- package/lib/transform-events/transform-liability.js +62 -66
- package/lib/transform-events/transform-percent-owned.d.ts +2 -1
- package/lib/transform-events/transform-percent-owned.js +7 -14
- package/lib/types/enum-mappings/alieo-frequency.js +22 -26
- package/lib/types/enum-mappings/asset-type.js +14 -18
- package/lib/types/enum-mappings/builder-type.js +6 -10
- package/lib/types/enum-mappings/construction-type.js +7 -11
- package/lib/types/enum-mappings/country-code.js +243 -247
- package/lib/types/enum-mappings/employment-basis.js +9 -13
- package/lib/types/enum-mappings/expense-frequency.js +8 -12
- package/lib/types/enum-mappings/funding-position.js +29 -32
- package/lib/types/enum-mappings/government-benefits.js +7 -11
- package/lib/types/enum-mappings/housing-status.js +12 -16
- package/lib/types/enum-mappings/income-type.js +13 -17
- package/lib/types/enum-mappings/index.js +27 -39
- package/lib/types/enum-mappings/liability-payment-type.js +6 -10
- package/lib/types/enum-mappings/liability-type.js +18 -22
- package/lib/types/enum-mappings/living-expense.js +27 -31
- package/lib/types/enum-mappings/marital-status.js +9 -13
- package/lib/types/enum-mappings/postcode.js +11 -15
- package/lib/types/enum-mappings/preferred-repayment.js +7 -11
- package/lib/types/enum-mappings/proof-of-identity.js +7 -11
- package/lib/types/enum-mappings/property-expense-category.js +8 -12
- package/lib/types/enum-mappings/public-financial-asset.js +9 -13
- package/lib/types/enum-mappings/public-primary-purpose.js +6 -10
- package/lib/types/enum-mappings/public-property-status.js +8 -12
- package/lib/types/enum-mappings/public-property-type.js +20 -24
- package/lib/types/enum-mappings/residency-status.js +8 -12
- package/lib/types/enum-mappings/title-gender.js +10 -14
- package/lib/types/enum-mappings/title.js +10 -14
- package/lib/types/enum-mappings/to-be-purchased.js +4 -7
- package/lib/types/enum-mappings/to-be-used-as-security.js +4 -7
- package/lib/types/enum-mappings/transaction-type.js +6 -10
- package/lib/types/enum-mappings/verification.js +10 -14
- package/lib/types/events/applicant-delete.js +4 -7
- package/lib/types/events/application-workflow.d.ts +1 -33
- package/lib/types/events/application-workflow.js +10 -46
- package/lib/types/events/asset-delete.js +4 -7
- package/lib/types/events/asset-liability-relation-delete.js +4 -7
- package/lib/types/events/credit-report-retrieved.js +4 -7
- package/lib/types/events/employment-delete.js +2 -5
- package/lib/types/events/expense-delete.js +2 -5
- package/lib/types/events/funding-position.js +6 -9
- package/lib/types/events/income-delete.js +4 -7
- package/lib/types/events/liability-delete.js +2 -5
- package/lib/types/events/opportunity.js +6 -9
- package/lib/types/events/public-applicant.js +28 -31
- package/lib/types/events/public-application.js +26 -29
- package/lib/types/events/public-asset-liability-relation.js +4 -7
- package/lib/types/events/public-asset.js +26 -29
- package/lib/types/events/public-employment.js +18 -21
- package/lib/types/events/public-expense.js +8 -11
- package/lib/types/events/public-funding-position.js +2 -5
- package/lib/types/events/public-income.js +12 -15
- package/lib/types/events/public-liability.js +16 -19
- package/lib/types/events/public-required-document.js +14 -17
- package/lib/types/partial-application.js +1 -2
- package/lib/types/recursive-partial.js +1 -2
- package/lib/update-application/merge-application.d.ts +1 -1
- package/lib/update-application/merge-application.js +41 -38
- package/lib/update-application/update-primary-applicant.d.ts +1 -4
- package/lib/update-application/update-primary-applicant.js +14 -38
- package/lib/utils/address-tools.d.ts +3 -1
- package/lib/utils/address-tools.js +56 -68
- package/lib/utils/clean-up.d.ts +1 -1
- package/lib/utils/clean-up.js +6 -10
- package/lib/utils/formatYesNo.d.ts +0 -1
- package/lib/utils/formatYesNo.js +2 -7
- package/lib/utils/generate-address.d.ts +3 -2
- package/lib/utils/generate-address.js +33 -42
- package/lib/utils/get-financial-institution.d.ts +1 -0
- package/lib/utils/get-financial-institution.js +7 -10
- package/lib/utils/is-asset-type.js +13 -20
- package/lib/utils/is-income-type.d.ts +2 -0
- package/lib/utils/is-income-type.js +50 -69
- package/lib/utils/iso-date.d.ts +0 -1
- package/lib/utils/iso-date.js +2 -7
- package/lib/utils/normalise-date.js +6 -10
- package/lib/utils/round-decimal.js +1 -5
- package/package.json +14 -17
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_a[public_required_document_1.IDTitle.MS] = lixi_internal_request_1.GenderList.Female,
|
|
12
|
-
_a[public_required_document_1.IDTitle.Other] = lixi_internal_request_1.GenderList.Undisclosed,
|
|
13
|
-
_a[public_required_document_1.IDTitle.Unknown] = lixi_internal_request_1.GenderList.Undisclosed,
|
|
14
|
-
_a);
|
|
1
|
+
import { IDTitle } from '../events/public-required-document';
|
|
2
|
+
import { GenderList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
export const titleGenderMapping = {
|
|
4
|
+
[IDTitle.Miss]: GenderList.Female,
|
|
5
|
+
[IDTitle.Mr]: GenderList.Male,
|
|
6
|
+
[IDTitle.Mrs]: GenderList.Female,
|
|
7
|
+
[IDTitle.MS]: GenderList.Female,
|
|
8
|
+
[IDTitle.Other]: GenderList.Undisclosed,
|
|
9
|
+
[IDTitle.Unknown]: GenderList.Undisclosed,
|
|
10
|
+
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_a[public_applicant_1.Title.Mrs] = lixi_internal_request_1.NameTitleList.Mrs,
|
|
12
|
-
_a[public_applicant_1.Title.MS] = lixi_internal_request_1.NameTitleList.MS,
|
|
13
|
-
_a[public_applicant_1.Title.Unknown] = lixi_internal_request_1.NameTitleList.Other,
|
|
14
|
-
_a);
|
|
1
|
+
import { Title } from '../events/public-applicant';
|
|
2
|
+
import { NameTitleList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
export const titleMapping = {
|
|
4
|
+
[Title.DR]: NameTitleList.DR,
|
|
5
|
+
[Title.Miss]: NameTitleList.Miss,
|
|
6
|
+
[Title.Mr]: NameTitleList.Mr,
|
|
7
|
+
[Title.Mrs]: NameTitleList.Mrs,
|
|
8
|
+
[Title.MS]: NameTitleList.MS,
|
|
9
|
+
[Title.Unknown]: NameTitleList.Other,
|
|
10
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.toBePurchasedMapping = {
|
|
6
|
-
"true": lixi_internal_request_1.AssetTransactionList.Purchasing,
|
|
7
|
-
"false": lixi_internal_request_1.AssetTransactionList.Owns
|
|
1
|
+
import { AssetTransactionList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
export const toBePurchasedMapping = {
|
|
3
|
+
true: AssetTransactionList.Purchasing,
|
|
4
|
+
false: AssetTransactionList.Owns,
|
|
8
5
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.toBeUsedAsSecurityMapping = {
|
|
6
|
-
"true": lixi_internal_request_1.YesNoList.Yes,
|
|
7
|
-
"false": lixi_internal_request_1.YesNoList.No
|
|
1
|
+
import { YesNoList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
|
+
export const toBeUsedAsSecurityMapping = {
|
|
3
|
+
true: YesNoList.Yes,
|
|
4
|
+
false: YesNoList.No,
|
|
8
5
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.transactionTypeMapping = (_a = {},
|
|
8
|
-
_a[public_application_1.PrimaryPurpose.NewPurchase] = lixi_internal_request_1.PurposeOfApplicationList.PurchaseRealEstate,
|
|
9
|
-
_a[public_application_1.PrimaryPurpose.Refinance] = lixi_internal_request_1.PurposeOfApplicationList.RefinanceHomeLoan,
|
|
10
|
-
_a);
|
|
1
|
+
import { PurposeOfApplicationList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PrimaryPurpose } from '../events/public-application';
|
|
3
|
+
export const transactionTypeMapping = {
|
|
4
|
+
[PrimaryPurpose.NewPurchase]: PurposeOfApplicationList.PurchaseRealEstate,
|
|
5
|
+
[PrimaryPurpose.Refinance]: PurposeOfApplicationList.RefinanceHomeLoan,
|
|
6
|
+
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_a[public_required_document_1.Status.PendingUpload] = lixi_internal_request_1.YesNoList.No,
|
|
12
|
-
_a[public_required_document_1.Status.Verified] = lixi_internal_request_1.YesNoList.Yes,
|
|
13
|
-
_a[public_required_document_1.Status.PendingVerification] = lixi_internal_request_1.YesNoList.No,
|
|
14
|
-
_a);
|
|
1
|
+
import { Status } from '../events/public-required-document';
|
|
2
|
+
import { YesNoList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
3
|
+
export const verificationMapping = {
|
|
4
|
+
[Status.Expired]: YesNoList.No,
|
|
5
|
+
[Status.FailedVerification]: YesNoList.No,
|
|
6
|
+
[Status.NotRequired]: YesNoList.No,
|
|
7
|
+
[Status.PendingUpload]: YesNoList.No,
|
|
8
|
+
[Status.Verified]: YesNoList.Yes,
|
|
9
|
+
[Status.PendingVerification]: YesNoList.No,
|
|
10
|
+
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.ActionedByRole = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* role of the user that made the action
|
|
6
3
|
*/
|
|
7
|
-
var ActionedByRole;
|
|
4
|
+
export var ActionedByRole;
|
|
8
5
|
(function (ActionedByRole) {
|
|
9
6
|
ActionedByRole["Customer"] = "customer";
|
|
10
7
|
ActionedByRole["Team"] = "team";
|
|
11
|
-
})(ActionedByRole
|
|
12
|
-
var Type;
|
|
8
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
9
|
+
export var Type;
|
|
13
10
|
(function (Type) {
|
|
14
11
|
Type["DeleteApplicant"] = "DeleteApplicant";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -25,7 +25,7 @@ export interface PayloadClass {
|
|
|
25
25
|
/**
|
|
26
26
|
* Application status in Lendi Group Salesforce
|
|
27
27
|
*/
|
|
28
|
-
applicationStatus?:
|
|
28
|
+
applicationStatus?: string;
|
|
29
29
|
brokerAuditReview: BrokerAuditReview[];
|
|
30
30
|
/**
|
|
31
31
|
* Intention for applying a loan
|
|
@@ -54,38 +54,6 @@ export declare enum ApplicationStage {
|
|
|
54
54
|
SubmissionReview = "SUBMISSION_REVIEW",
|
|
55
55
|
SubmittedToLender = "SUBMITTED_TO_LENDER"
|
|
56
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
|
-
Cancelled = "CANCELLED",
|
|
65
|
-
ConditionallyApproved = "CONDITIONALLY_APPROVED",
|
|
66
|
-
Declined = "DECLINED",
|
|
67
|
-
Discharged = "DISCHARGED",
|
|
68
|
-
DocumentsIssued = "DOCUMENTS_ISSUED",
|
|
69
|
-
InformationProvidedToLender = "INFORMATION_PROVIDED_TO_LENDER",
|
|
70
|
-
Lost = "LOST",
|
|
71
|
-
MoreInformationRequested = "MORE_INFORMATION_REQUESTED",
|
|
72
|
-
OnHold = "ON_HOLD",
|
|
73
|
-
PendingSettlement = "PENDING_SETTLEMENT",
|
|
74
|
-
PostContact = "POST_CONTACT",
|
|
75
|
-
PreApproved = "PRE_APPROVED",
|
|
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
|
-
SolicitorInstructed = "SOLICITOR_INSTRUCTED",
|
|
84
|
-
SubmittedToLender = "SUBMITTED_TO_LENDER",
|
|
85
|
-
UnconditionallyApproved = "UNCONDITIONALLY_APPROVED",
|
|
86
|
-
UnderReview = "UNDER_REVIEW",
|
|
87
|
-
WaitingOnException = "WAITING_ON_EXCEPTION"
|
|
88
|
-
}
|
|
89
57
|
export interface BrokerAuditReview {
|
|
90
58
|
/**
|
|
91
59
|
* ISO date time when Broker Audit Review was completed
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.Status = exports.Stage = exports.ConfirmedPrimaryPurpose = exports.ApplicationStatus = exports.ApplicationStage = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Application stage in Lendi Group Salesforce
|
|
6
3
|
*/
|
|
7
|
-
var ApplicationStage;
|
|
4
|
+
export var ApplicationStage;
|
|
8
5
|
(function (ApplicationStage) {
|
|
9
6
|
ApplicationStage["ClosedLost"] = "CLOSED_LOST";
|
|
10
7
|
ApplicationStage["PostSettlement"] = "POST_SETTLEMENT";
|
|
@@ -13,44 +10,11 @@ var ApplicationStage;
|
|
|
13
10
|
ApplicationStage["Settlement"] = "SETTLEMENT";
|
|
14
11
|
ApplicationStage["SubmissionReview"] = "SUBMISSION_REVIEW";
|
|
15
12
|
ApplicationStage["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
|
|
16
|
-
})(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["Cancelled"] = "CANCELLED";
|
|
26
|
-
ApplicationStatus["ConditionallyApproved"] = "CONDITIONALLY_APPROVED";
|
|
27
|
-
ApplicationStatus["Declined"] = "DECLINED";
|
|
28
|
-
ApplicationStatus["Discharged"] = "DISCHARGED";
|
|
29
|
-
ApplicationStatus["DocumentsIssued"] = "DOCUMENTS_ISSUED";
|
|
30
|
-
ApplicationStatus["InformationProvidedToLender"] = "INFORMATION_PROVIDED_TO_LENDER";
|
|
31
|
-
ApplicationStatus["Lost"] = "LOST";
|
|
32
|
-
ApplicationStatus["MoreInformationRequested"] = "MORE_INFORMATION_REQUESTED";
|
|
33
|
-
ApplicationStatus["OnHold"] = "ON_HOLD";
|
|
34
|
-
ApplicationStatus["PendingSettlement"] = "PENDING_SETTLEMENT";
|
|
35
|
-
ApplicationStatus["PostContact"] = "POST_CONTACT";
|
|
36
|
-
ApplicationStatus["PreApproved"] = "PRE_APPROVED";
|
|
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["SolicitorInstructed"] = "SOLICITOR_INSTRUCTED";
|
|
45
|
-
ApplicationStatus["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
|
|
46
|
-
ApplicationStatus["UnconditionallyApproved"] = "UNCONDITIONALLY_APPROVED";
|
|
47
|
-
ApplicationStatus["UnderReview"] = "UNDER_REVIEW";
|
|
48
|
-
ApplicationStatus["WaitingOnException"] = "WAITING_ON_EXCEPTION";
|
|
49
|
-
})(ApplicationStatus = exports.ApplicationStatus || (exports.ApplicationStatus = {}));
|
|
13
|
+
})(ApplicationStage || (ApplicationStage = {}));
|
|
50
14
|
/**
|
|
51
15
|
* Intention for applying a loan
|
|
52
16
|
*/
|
|
53
|
-
var ConfirmedPrimaryPurpose;
|
|
17
|
+
export var ConfirmedPrimaryPurpose;
|
|
54
18
|
(function (ConfirmedPrimaryPurpose) {
|
|
55
19
|
ConfirmedPrimaryPurpose["ChattelMortgage"] = "CHATTEL_MORTGAGE";
|
|
56
20
|
ConfirmedPrimaryPurpose["Commercial"] = "COMMERCIAL";
|
|
@@ -70,12 +34,12 @@ var ConfirmedPrimaryPurpose;
|
|
|
70
34
|
ConfirmedPrimaryPurpose["TopUp"] = "TOP_UP";
|
|
71
35
|
ConfirmedPrimaryPurpose["Unknown"] = "UNKNOWN";
|
|
72
36
|
ConfirmedPrimaryPurpose["Variation"] = "VARIATION";
|
|
73
|
-
})(ConfirmedPrimaryPurpose
|
|
37
|
+
})(ConfirmedPrimaryPurpose || (ConfirmedPrimaryPurpose = {}));
|
|
74
38
|
/**
|
|
75
39
|
* Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
|
|
76
40
|
* salesforce goes live
|
|
77
41
|
*/
|
|
78
|
-
var Stage;
|
|
42
|
+
export var Stage;
|
|
79
43
|
(function (Stage) {
|
|
80
44
|
Stage["ApplicationTaken"] = "APPLICATION_TAKEN";
|
|
81
45
|
Stage["Appointed"] = "APPOINTED";
|
|
@@ -100,12 +64,12 @@ var Stage;
|
|
|
100
64
|
Stage["Settlement"] = "SETTLEMENT";
|
|
101
65
|
Stage["Submitted"] = "SUBMITTED";
|
|
102
66
|
Stage["Unknown"] = "UNKNOWN";
|
|
103
|
-
})(Stage
|
|
67
|
+
})(Stage || (Stage = {}));
|
|
104
68
|
/**
|
|
105
69
|
* Opportunity status. This is a legacy field and will be deprecated after Lendi Group
|
|
106
70
|
* salesforce goes live
|
|
107
71
|
*/
|
|
108
|
-
var Status;
|
|
72
|
+
export var Status;
|
|
109
73
|
(function (Status) {
|
|
110
74
|
Status["Application"] = "APPLICATION";
|
|
111
75
|
Status["ApplicationCompleted"] = "APPLICATION_COMPLETED";
|
|
@@ -166,8 +130,8 @@ var Status;
|
|
|
166
130
|
Status["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
|
|
167
131
|
Status["UnconditionalApproval"] = "UNCONDITIONAL_APPROVAL";
|
|
168
132
|
Status["Unknown"] = "UNKNOWN";
|
|
169
|
-
})(Status
|
|
170
|
-
var Type;
|
|
133
|
+
})(Status || (Status = {}));
|
|
134
|
+
export var Type;
|
|
171
135
|
(function (Type) {
|
|
172
136
|
Type["ApplicationWorkflowUpdated"] = "ApplicationWorkflowUpdated";
|
|
173
|
-
})(Type
|
|
137
|
+
})(Type || (Type = {}));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.ActionedByRole = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* role of the user that made the action
|
|
6
3
|
*/
|
|
7
|
-
var ActionedByRole;
|
|
4
|
+
export var ActionedByRole;
|
|
8
5
|
(function (ActionedByRole) {
|
|
9
6
|
ActionedByRole["Customer"] = "customer";
|
|
10
7
|
ActionedByRole["Team"] = "team";
|
|
11
|
-
})(ActionedByRole
|
|
12
|
-
var Type;
|
|
8
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
9
|
+
export var Type;
|
|
13
10
|
(function (Type) {
|
|
14
11
|
Type["AssetDeleted"] = "AssetDeleted";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.ActionedByRole = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* role of the user that made the action
|
|
6
3
|
*/
|
|
7
|
-
var ActionedByRole;
|
|
4
|
+
export var ActionedByRole;
|
|
8
5
|
(function (ActionedByRole) {
|
|
9
6
|
ActionedByRole["Customer"] = "customer";
|
|
10
7
|
ActionedByRole["Team"] = "team";
|
|
11
|
-
})(ActionedByRole
|
|
12
|
-
var Type;
|
|
8
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
9
|
+
export var Type;
|
|
13
10
|
(function (Type) {
|
|
14
11
|
Type["AssetAndLiabilityRelationDeleted"] = "AssetAndLiabilityRelationDeleted";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.Source = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* A list of credit report service provider
|
|
6
3
|
*/
|
|
7
|
-
var Source;
|
|
4
|
+
export var Source;
|
|
8
5
|
(function (Source) {
|
|
9
6
|
Source["Equifax"] = "equifax";
|
|
10
|
-
})(Source
|
|
11
|
-
var Type;
|
|
7
|
+
})(Source || (Source = {}));
|
|
8
|
+
export var Type;
|
|
12
9
|
(function (Type) {
|
|
13
10
|
Type["CreditReportNoMatch"] = "CreditReportNoMatch";
|
|
14
11
|
Type["CreditReportRetrieved"] = "CreditReportRetrieved";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.DetailType = exports.Category = void 0;
|
|
4
|
-
var Category;
|
|
1
|
+
export var Category;
|
|
5
2
|
(function (Category) {
|
|
6
3
|
Category["BorrowerContribution"] = "Borrower Contribution";
|
|
7
4
|
Category["Debt"] = "Debt";
|
|
@@ -9,11 +6,11 @@ var Category;
|
|
|
9
6
|
Category["Fee"] = "Fee";
|
|
10
7
|
Category["Other"] = "Other";
|
|
11
8
|
Category["Purchase"] = "Purchase";
|
|
12
|
-
})(Category
|
|
9
|
+
})(Category || (Category = {}));
|
|
13
10
|
/**
|
|
14
11
|
* Detail type
|
|
15
12
|
*/
|
|
16
|
-
var DetailType;
|
|
13
|
+
export var DetailType;
|
|
17
14
|
(function (DetailType) {
|
|
18
15
|
DetailType["Deposit"] = "Deposit";
|
|
19
16
|
DetailType["DischargeCosts"] = "Discharge Costs";
|
|
@@ -25,10 +22,10 @@ var DetailType;
|
|
|
25
22
|
DetailType["PurchaseStampDuty"] = "Purchase Stamp Duty";
|
|
26
23
|
DetailType["RegistrationFee"] = "Registration Fee";
|
|
27
24
|
DetailType["TransferFee"] = "Transfer Fee";
|
|
28
|
-
})(DetailType
|
|
29
|
-
var Type;
|
|
25
|
+
})(DetailType || (DetailType = {}));
|
|
26
|
+
export var Type;
|
|
30
27
|
(function (Type) {
|
|
31
28
|
Type["FundingPositionCreated"] = "FundingPositionCreated";
|
|
32
29
|
Type["FundingPositionMigrated"] = "FundingPositionMigrated";
|
|
33
30
|
Type["FundingPositionUpdated"] = "FundingPositionUpdated";
|
|
34
|
-
})(Type
|
|
31
|
+
})(Type || (Type = {}));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.ActionedByRole = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* role of the user that made the action
|
|
6
3
|
*/
|
|
7
|
-
var ActionedByRole;
|
|
4
|
+
export var ActionedByRole;
|
|
8
5
|
(function (ActionedByRole) {
|
|
9
6
|
ActionedByRole["Customer"] = "customer";
|
|
10
7
|
ActionedByRole["Team"] = "team";
|
|
11
|
-
})(ActionedByRole
|
|
12
|
-
var Type;
|
|
8
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
9
|
+
export var Type;
|
|
13
10
|
(function (Type) {
|
|
14
11
|
Type["IncomeDeleted"] = "IncomeDeleted";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.Stage = exports.Brand = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Brand of an Opportunity, taken from Record Type in Salesforce
|
|
6
3
|
*/
|
|
7
|
-
var Brand;
|
|
4
|
+
export var Brand;
|
|
8
5
|
(function (Brand) {
|
|
9
6
|
Brand["Domain"] = "domain";
|
|
10
7
|
Brand["DomainVariation"] = "domain variation";
|
|
11
8
|
Brand["Lendi"] = "lendi";
|
|
12
9
|
Brand["LendiVariation"] = "lendi variation";
|
|
13
|
-
})(Brand
|
|
10
|
+
})(Brand || (Brand = {}));
|
|
14
11
|
/**
|
|
15
12
|
* Opportunity Stage Name
|
|
16
13
|
*/
|
|
17
|
-
var Stage;
|
|
14
|
+
export var Stage;
|
|
18
15
|
(function (Stage) {
|
|
19
16
|
Stage["ApplicationTaken"] = "Application Taken";
|
|
20
17
|
Stage["Appointed"] = "Appointed";
|
|
@@ -38,10 +35,10 @@ var Stage;
|
|
|
38
35
|
Stage["Settled"] = "Settled";
|
|
39
36
|
Stage["Settlement"] = "Settlement";
|
|
40
37
|
Stage["Submitted"] = "Submitted";
|
|
41
|
-
})(Stage
|
|
42
|
-
var Type;
|
|
38
|
+
})(Stage || (Stage = {}));
|
|
39
|
+
export var Type;
|
|
43
40
|
(function (Type) {
|
|
44
41
|
Type["OpportunityCreated"] = "OpportunityCreated";
|
|
45
42
|
Type["OpportunityMigrated"] = "OpportunityMigrated";
|
|
46
43
|
Type["OpportunityUpdated"] = "OpportunityUpdated";
|
|
47
|
-
})(Type
|
|
44
|
+
})(Type || (Type = {}));
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.Title = exports.ResidencyStatus = exports.ActionedByRole = exports.MaritalStatus = exports.InvitationStatus = exports.GuarantorRelationshipToBorrowerType = exports.Gender = exports.Entity = exports.EmploymentType = exports.CreditStatus = exports.HousingStatusList = exports.Countries = exports.ApplicantType = void 0;
|
|
4
|
-
var ApplicantType;
|
|
1
|
+
export var ApplicantType;
|
|
5
2
|
(function (ApplicantType) {
|
|
6
3
|
ApplicantType["Borrower"] = "BORROWER";
|
|
7
4
|
ApplicantType["BorrowerAndGuarantor"] = "BORROWER_AND_GUARANTOR";
|
|
8
5
|
ApplicantType["Guarantor"] = "GUARANTOR";
|
|
9
|
-
})(ApplicantType
|
|
10
|
-
var Countries;
|
|
6
|
+
})(ApplicantType || (ApplicantType = {}));
|
|
7
|
+
export var Countries;
|
|
11
8
|
(function (Countries) {
|
|
12
9
|
Countries["Afghanistan"] = "Afghanistan";
|
|
13
10
|
Countries["Albania"] = "Albania";
|
|
@@ -248,8 +245,8 @@ var Countries;
|
|
|
248
245
|
Countries["Yemen"] = "Yemen";
|
|
249
246
|
Countries["Zambia"] = "Zambia";
|
|
250
247
|
Countries["Zimbabwe"] = "Zimbabwe";
|
|
251
|
-
})(Countries
|
|
252
|
-
var HousingStatusList;
|
|
248
|
+
})(Countries || (Countries = {}));
|
|
249
|
+
export var HousingStatusList;
|
|
253
250
|
(function (HousingStatusList) {
|
|
254
251
|
HousingStatusList["Boarding"] = "Boarding";
|
|
255
252
|
HousingStatusList["Caravan"] = "Caravan";
|
|
@@ -259,45 +256,45 @@ var HousingStatusList;
|
|
|
259
256
|
HousingStatusList["Renting"] = "Renting";
|
|
260
257
|
HousingStatusList["SuppliedByEmployer"] = "Supplied by Employer";
|
|
261
258
|
HousingStatusList["WithParents"] = "With Parents";
|
|
262
|
-
})(HousingStatusList
|
|
259
|
+
})(HousingStatusList || (HousingStatusList = {}));
|
|
263
260
|
/**
|
|
264
261
|
* current credit status of the applicant (Customer declared value)
|
|
265
262
|
*/
|
|
266
|
-
var CreditStatus;
|
|
263
|
+
export var CreditStatus;
|
|
267
264
|
(function (CreditStatus) {
|
|
268
265
|
CreditStatus["Average"] = "AVERAGE";
|
|
269
266
|
CreditStatus["Excellent"] = "EXCELLENT";
|
|
270
267
|
CreditStatus["Fair"] = "FAIR";
|
|
271
268
|
CreditStatus["Unknown"] = "UNKNOWN";
|
|
272
|
-
})(CreditStatus
|
|
269
|
+
})(CreditStatus || (CreditStatus = {}));
|
|
273
270
|
/**
|
|
274
271
|
* applicant's employment type
|
|
275
272
|
*/
|
|
276
|
-
var EmploymentType;
|
|
273
|
+
export var EmploymentType;
|
|
277
274
|
(function (EmploymentType) {
|
|
278
275
|
EmploymentType["Employee"] = "EMPLOYEE";
|
|
279
276
|
EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
|
|
280
277
|
EmploymentType["Unknown"] = "UNKNOWN";
|
|
281
|
-
})(EmploymentType
|
|
278
|
+
})(EmploymentType || (EmploymentType = {}));
|
|
282
279
|
/**
|
|
283
280
|
* applicant's entity. For a person applicant this is 'PERSON'
|
|
284
281
|
*/
|
|
285
|
-
var Entity;
|
|
282
|
+
export var Entity;
|
|
286
283
|
(function (Entity) {
|
|
287
284
|
Entity["Company"] = "COMPANY";
|
|
288
285
|
Entity["Person"] = "PERSON";
|
|
289
|
-
})(Entity
|
|
290
|
-
var Gender;
|
|
286
|
+
})(Entity || (Entity = {}));
|
|
287
|
+
export var Gender;
|
|
291
288
|
(function (Gender) {
|
|
292
289
|
Gender["Female"] = "FEMALE";
|
|
293
290
|
Gender["Male"] = "MALE";
|
|
294
291
|
Gender["Undisclosed"] = "UNDISCLOSED";
|
|
295
292
|
Gender["Unknown"] = "UNKNOWN";
|
|
296
|
-
})(Gender
|
|
293
|
+
})(Gender || (Gender = {}));
|
|
297
294
|
/**
|
|
298
295
|
* The relationship between borrower and guarantor.
|
|
299
296
|
*/
|
|
300
|
-
var GuarantorRelationshipToBorrowerType;
|
|
297
|
+
export var GuarantorRelationshipToBorrowerType;
|
|
301
298
|
(function (GuarantorRelationshipToBorrowerType) {
|
|
302
299
|
GuarantorRelationshipToBorrowerType["Brother"] = "Brother";
|
|
303
300
|
GuarantorRelationshipToBorrowerType["Daughter"] = "Daughter";
|
|
@@ -308,41 +305,41 @@ var GuarantorRelationshipToBorrowerType;
|
|
|
308
305
|
GuarantorRelationshipToBorrowerType["Sister"] = "Sister";
|
|
309
306
|
GuarantorRelationshipToBorrowerType["Son"] = "Son";
|
|
310
307
|
GuarantorRelationshipToBorrowerType["Spouse"] = "Spouse";
|
|
311
|
-
})(GuarantorRelationshipToBorrowerType
|
|
308
|
+
})(GuarantorRelationshipToBorrowerType || (GuarantorRelationshipToBorrowerType = {}));
|
|
312
309
|
/**
|
|
313
310
|
* different invitation statuses an applicant can have
|
|
314
311
|
*/
|
|
315
|
-
var InvitationStatus;
|
|
312
|
+
export var InvitationStatus;
|
|
316
313
|
(function (InvitationStatus) {
|
|
317
314
|
InvitationStatus["Accepted"] = "ACCEPTED";
|
|
318
315
|
InvitationStatus["Cancelled"] = "CANCELLED";
|
|
319
316
|
InvitationStatus["Expired"] = "EXPIRED";
|
|
320
317
|
InvitationStatus["Pending"] = "PENDING";
|
|
321
|
-
})(InvitationStatus
|
|
322
|
-
var MaritalStatus;
|
|
318
|
+
})(InvitationStatus || (InvitationStatus = {}));
|
|
319
|
+
export var MaritalStatus;
|
|
323
320
|
(function (MaritalStatus) {
|
|
324
321
|
MaritalStatus["DeFacto"] = "DE_FACTO";
|
|
325
322
|
MaritalStatus["Divorced"] = "DIVORCED";
|
|
326
323
|
MaritalStatus["Married"] = "MARRIED";
|
|
327
324
|
MaritalStatus["Single"] = "SINGLE";
|
|
328
325
|
MaritalStatus["Unknown"] = "UNKNOWN";
|
|
329
|
-
})(MaritalStatus
|
|
326
|
+
})(MaritalStatus || (MaritalStatus = {}));
|
|
330
327
|
/**
|
|
331
328
|
* role of the user that made the action
|
|
332
329
|
*/
|
|
333
|
-
var ActionedByRole;
|
|
330
|
+
export var ActionedByRole;
|
|
334
331
|
(function (ActionedByRole) {
|
|
335
332
|
ActionedByRole["Customer"] = "customer";
|
|
336
333
|
ActionedByRole["Team"] = "team";
|
|
337
|
-
})(ActionedByRole
|
|
338
|
-
var ResidencyStatus;
|
|
334
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
335
|
+
export var ResidencyStatus;
|
|
339
336
|
(function (ResidencyStatus) {
|
|
340
337
|
ResidencyStatus["AustralianCitizen"] = "AUSTRALIAN_CITIZEN";
|
|
341
338
|
ResidencyStatus["PermanentResident"] = "PERMANENT_RESIDENT";
|
|
342
339
|
ResidencyStatus["TemporaryResident"] = "TEMPORARY_RESIDENT";
|
|
343
340
|
ResidencyStatus["Unknown"] = "UNKNOWN";
|
|
344
|
-
})(ResidencyStatus
|
|
345
|
-
var Title;
|
|
341
|
+
})(ResidencyStatus || (ResidencyStatus = {}));
|
|
342
|
+
export var Title;
|
|
346
343
|
(function (Title) {
|
|
347
344
|
Title["DR"] = "DR";
|
|
348
345
|
Title["MS"] = "MS";
|
|
@@ -350,9 +347,9 @@ var Title;
|
|
|
350
347
|
Title["Mr"] = "MR";
|
|
351
348
|
Title["Mrs"] = "MRS";
|
|
352
349
|
Title["Unknown"] = "UNKNOWN";
|
|
353
|
-
})(Title
|
|
354
|
-
var Type;
|
|
350
|
+
})(Title || (Title = {}));
|
|
351
|
+
export var Type;
|
|
355
352
|
(function (Type) {
|
|
356
353
|
Type["CreateApplicant"] = "CreateApplicant";
|
|
357
354
|
Type["UpdateApplicant"] = "UpdateApplicant";
|
|
358
|
-
})(Type
|
|
355
|
+
})(Type || (Type = {}));
|