loanshub-shared 1.0.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/index.d.ts +3 -3
- package/lib/app/index.js +18 -18
- package/lib/app/options/applicantOptions.d.ts +10 -10
- package/lib/app/options/applicantOptions.js +203 -203
- package/lib/app/options/assetOptions.d.ts +3 -3
- package/lib/app/options/assetOptions.js +38 -38
- package/lib/app/options/assetOptions.js.map +1 -1
- package/lib/app/options/bankOptions.d.ts +2 -0
- package/lib/app/options/bankOptions.js +10 -0
- package/lib/app/options/bankOptions.js.map +1 -0
- package/lib/app/options/employmentOptions.d.ts +6 -6
- package/lib/app/options/employmentOptions.js +69 -69
- package/lib/app/options/employmentOptions.js.map +1 -1
- package/lib/app/options/expenseOptions.d.ts +3 -3
- package/lib/app/options/expenseOptions.js +199 -134
- package/lib/app/options/expenseOptions.js.map +1 -1
- package/lib/app/options/index.d.ts +13 -12
- package/lib/app/options/index.js +47 -46
- package/lib/app/options/index.js.map +1 -1
- package/lib/app/options/liabilityOptions.d.ts +4 -4
- package/lib/app/options/liabilityOptions.js +60 -52
- package/lib/app/options/liabilityOptions.js.map +1 -1
- package/lib/app/options/repaymentOptions.d.ts +13 -13
- package/lib/app/options/repaymentOptions.js +53 -53
- package/lib/app/options/repaymentOptions.js.map +1 -1
- package/lib/app/stages.d.ts +15 -15
- package/lib/app/stages.js +35 -35
- package/lib/app/stages.js.map +1 -1
- package/lib/assetPropertyAddress.d.ts +26 -0
- package/lib/assetPropertyAddress.js +148 -0
- package/lib/assetPropertyAddress.js.map +1 -0
- package/lib/form/index.d.ts +2 -2
- package/lib/form/index.js +18 -18
- package/lib/form/loanForm.d.ts +180 -174
- package/lib/form/loanForm.js +92 -85
- package/lib/form/loanForm.js.map +1 -1
- package/lib/form/loanFormOptions.d.ts +18 -17
- package/lib/form/loanFormOptions.js +145 -139
- package/lib/form/loanFormOptions.js.map +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/index.js +22 -21
- package/lib/index.js.map +1 -1
- package/lib/nominatimAddress.d.ts +41 -0
- package/lib/nominatimAddress.js +118 -0
- package/lib/nominatimAddress.js.map +1 -0
- package/lib/nominatimAddress.test.d.ts +1 -0
- package/lib/nominatimAddress.test.js +91 -0
- package/lib/nominatimAddress.test.js.map +1 -0
- package/lib/typings/firebase/employment.d.ts +11 -11
- package/lib/typings/firebase/employment.js +15 -15
- package/lib/typings/firebase/employment.js.map +1 -1
- package/lib/typings/firebase/index.d.ts +1 -1
- package/lib/typings/firebase/index.js +17 -17
- package/lib/typings/loanshub/address.d.ts +13 -13
- package/lib/typings/loanshub/address.js +2 -2
- package/lib/typings/loanshub/applicant.d.ts +77 -71
- package/lib/typings/loanshub/applicant.js +20 -20
- package/lib/typings/loanshub/applicant.js.map +1 -1
- package/lib/typings/loanshub/application.d.ts +102 -100
- package/lib/typings/loanshub/application.js +8 -8
- package/lib/typings/loanshub/application.js.map +1 -1
- package/lib/typings/loanshub/asset.d.ts +13 -13
- package/lib/typings/loanshub/asset.js +2 -2
- package/lib/typings/loanshub/attachment.d.ts +17 -17
- package/lib/typings/loanshub/attachment.js +2 -2
- package/lib/typings/loanshub/currentRate.d.ts +7 -7
- package/lib/typings/loanshub/currentRate.js +2 -2
- package/lib/typings/loanshub/index.d.ts +27 -27
- package/lib/typings/loanshub/index.js +38 -38
- package/lib/typings/loanshub/index.js.map +1 -1
- package/lib/typings/loanshub/lender.d.ts +13 -13
- package/lib/typings/loanshub/lender.js +2 -2
- package/lib/typings/loanshub/liability.d.ts +13 -13
- package/lib/typings/loanshub/liability.js +2 -2
- package/lib/typings/loanshub/rateReview.d.ts +4 -4
- package/lib/typings/loanshub/rateReview.js +2 -2
- package/lib/typings/loanshub/user.d.ts +5 -5
- package/lib/typings/loanshub/user.js +2 -2
- package/lib/typings/salestrekker/generated.d.ts +5880 -5899
- package/lib/typings/salestrekker/generated.js +1210 -1194
- package/lib/typings/salestrekker/generated.js.map +1 -1
- package/lib/typings/salestrekker/index.d.ts +6 -6
- package/lib/typings/salestrekker/index.js +24 -24
- package/lib/typings/salestrekker/index.js.map +1 -1
- package/lib/utils.d.ts +27 -27
- package/lib/utils.js +79 -80
- package/lib/utils.js.map +1 -1
- package/lib/utils.test.d.ts +1 -1
- package/lib/utils.test.js +88 -88
- package/package.json +5 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum EmploymentTypes {
|
|
2
|
-
FullTime = "FullTime",
|
|
3
|
-
PartTime = "PartTime",
|
|
4
|
-
Casual = "Casual",
|
|
5
|
-
SoleTrader = "SoleTrader",
|
|
6
|
-
Company = "Company",
|
|
7
|
-
Partnership = "Partnership",
|
|
8
|
-
Contract = "Contract",
|
|
9
|
-
Retired = "Retired",
|
|
10
|
-
Unemployed = "Unemployed"
|
|
11
|
-
}
|
|
1
|
+
export declare enum EmploymentTypes {
|
|
2
|
+
FullTime = "FullTime",
|
|
3
|
+
PartTime = "PartTime",
|
|
4
|
+
Casual = "Casual",
|
|
5
|
+
SoleTrader = "SoleTrader",
|
|
6
|
+
Company = "Company",
|
|
7
|
+
Partnership = "Partnership",
|
|
8
|
+
Contract = "Contract",
|
|
9
|
+
Retired = "Retired",
|
|
10
|
+
Unemployed = "Unemployed"
|
|
11
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmploymentTypes = void 0;
|
|
4
|
-
var EmploymentTypes;
|
|
5
|
-
(function (EmploymentTypes) {
|
|
6
|
-
EmploymentTypes["FullTime"] = "FullTime";
|
|
7
|
-
EmploymentTypes["PartTime"] = "PartTime";
|
|
8
|
-
EmploymentTypes["Casual"] = "Casual";
|
|
9
|
-
EmploymentTypes["SoleTrader"] = "SoleTrader";
|
|
10
|
-
EmploymentTypes["Company"] = "Company";
|
|
11
|
-
EmploymentTypes["Partnership"] = "Partnership";
|
|
12
|
-
EmploymentTypes["Contract"] = "Contract";
|
|
13
|
-
EmploymentTypes["Retired"] = "Retired";
|
|
14
|
-
EmploymentTypes["Unemployed"] = "Unemployed";
|
|
15
|
-
})(EmploymentTypes
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmploymentTypes = void 0;
|
|
4
|
+
var EmploymentTypes;
|
|
5
|
+
(function (EmploymentTypes) {
|
|
6
|
+
EmploymentTypes["FullTime"] = "FullTime";
|
|
7
|
+
EmploymentTypes["PartTime"] = "PartTime";
|
|
8
|
+
EmploymentTypes["Casual"] = "Casual";
|
|
9
|
+
EmploymentTypes["SoleTrader"] = "SoleTrader";
|
|
10
|
+
EmploymentTypes["Company"] = "Company";
|
|
11
|
+
EmploymentTypes["Partnership"] = "Partnership";
|
|
12
|
+
EmploymentTypes["Contract"] = "Contract";
|
|
13
|
+
EmploymentTypes["Retired"] = "Retired";
|
|
14
|
+
EmploymentTypes["Unemployed"] = "Unemployed";
|
|
15
|
+
})(EmploymentTypes || (exports.EmploymentTypes = EmploymentTypes = {}));
|
|
16
16
|
//# sourceMappingURL=employment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employment.js","sourceRoot":"","sources":["../../../src/typings/firebase/employment.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAUT;AAVH,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;AAC3B,CAAC,EAVS,eAAe,
|
|
1
|
+
{"version":3,"file":"employment.js","sourceRoot":"","sources":["../../../src/typings/firebase/employment.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAUT;AAVH,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;AAC3B,CAAC,EAVS,eAAe,+BAAf,eAAe,QAUxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./employment";
|
|
1
|
+
export * from "./employment";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./employment"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./employment"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ContactResidentialStatusOptionEnumerator } from "../salestrekker";
|
|
2
|
-
export interface AppAddress {
|
|
3
|
-
id: string;
|
|
4
|
-
streetAddress: string;
|
|
5
|
-
suburb: string;
|
|
6
|
-
city: string;
|
|
7
|
-
state: string;
|
|
8
|
-
postcode: number;
|
|
9
|
-
fromDate: string;
|
|
10
|
-
occupancyMode: ContactResidentialStatusOptionEnumerator;
|
|
11
|
-
formatted: string;
|
|
12
|
-
isPostal: boolean;
|
|
13
|
-
}
|
|
1
|
+
import { ContactResidentialStatusOptionEnumerator } from "../salestrekker";
|
|
2
|
+
export interface AppAddress {
|
|
3
|
+
id: string;
|
|
4
|
+
streetAddress: string;
|
|
5
|
+
suburb: string;
|
|
6
|
+
city: string;
|
|
7
|
+
state: string;
|
|
8
|
+
postcode: number;
|
|
9
|
+
fromDate: string;
|
|
10
|
+
occupancyMode: ContactResidentialStatusOptionEnumerator;
|
|
11
|
+
formatted: string;
|
|
12
|
+
isPostal: boolean;
|
|
13
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=address.js.map
|
|
@@ -1,71 +1,77 @@
|
|
|
1
|
-
import { PersonalTitleEnumerator, ContactMaritalStatusOptionEnumerator, ContactResidencyStatusOptionEnumerator, PaymentFrequencyEnumerator } from "../salestrekker";
|
|
2
|
-
import { AppAddress } from "./address";
|
|
3
|
-
import { EmploymentTypes } from "../firebase";
|
|
4
|
-
export declare enum ApplicantRoles {
|
|
5
|
-
primaryApplicant = "primaryApplicant"
|
|
6
|
-
}
|
|
7
|
-
export interface AppApplicant {
|
|
8
|
-
uid: string;
|
|
9
|
-
role: ApplicantRoles;
|
|
10
|
-
active: boolean;
|
|
11
|
-
title?: PersonalTitleEnumerator;
|
|
12
|
-
firstName: string;
|
|
13
|
-
middleNames?: string;
|
|
14
|
-
lastName: string;
|
|
15
|
-
addresses: AppAddress[];
|
|
16
|
-
DOB: string;
|
|
17
|
-
mobile?: string;
|
|
18
|
-
emailAddress?: string | null;
|
|
19
|
-
preferredContactMethod: PreferredContactMethods;
|
|
20
|
-
maritalStatus: ContactMaritalStatusOptionEnumerator;
|
|
21
|
-
numberOfDependants?: number;
|
|
22
|
-
relationshipToApplicant1?: ApplicantRelationshipTypes;
|
|
23
|
-
residencyStatus: ContactResidencyStatusOptionEnumerator;
|
|
24
|
-
visaType?: string;
|
|
25
|
-
isValid: boolean;
|
|
26
|
-
isValidating: boolean;
|
|
27
|
-
licenseNumber?: string;
|
|
28
|
-
licenseState?: string;
|
|
29
|
-
licenseExpiryMonth?: number;
|
|
30
|
-
licenseExpiryYear?: number;
|
|
31
|
-
licenseExpiry?: string;
|
|
32
|
-
currentEmployment: EmploymentHistoryItem;
|
|
33
|
-
previousEmployment: EmploymentHistoryItem[];
|
|
34
|
-
otherIncome: OtherIncomeItem[];
|
|
35
|
-
retirementAge: string;
|
|
36
|
-
}
|
|
37
|
-
export interface EmploymentHistoryItem {
|
|
38
|
-
id: string;
|
|
39
|
-
employmentType: EmploymentTypes;
|
|
40
|
-
occupation?: string;
|
|
41
|
-
employer?: string;
|
|
42
|
-
annualIncome?: number;
|
|
43
|
-
lastTaxYear?: number;
|
|
44
|
-
lastTaxYearProfit?: number;
|
|
45
|
-
previousTaxYear?: number;
|
|
46
|
-
previousTaxYearProfit?: number;
|
|
47
|
-
monthsOfEmployment: number;
|
|
48
|
-
yearsOfEmployment: number;
|
|
49
|
-
startDate: string;
|
|
50
|
-
endDate: string;
|
|
51
|
-
operatingAsCompanyTrust: "yes" | "no";
|
|
52
|
-
onProbation: boolean;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
import { PersonalTitleEnumerator, ContactMaritalStatusOptionEnumerator, ContactResidencyStatusOptionEnumerator, PaymentFrequencyEnumerator } from "../salestrekker";
|
|
2
|
+
import { AppAddress } from "./address";
|
|
3
|
+
import { EmploymentTypes } from "../firebase";
|
|
4
|
+
export declare enum ApplicantRoles {
|
|
5
|
+
primaryApplicant = "primaryApplicant"
|
|
6
|
+
}
|
|
7
|
+
export interface AppApplicant {
|
|
8
|
+
uid: string;
|
|
9
|
+
role: ApplicantRoles;
|
|
10
|
+
active: boolean;
|
|
11
|
+
title?: PersonalTitleEnumerator;
|
|
12
|
+
firstName: string;
|
|
13
|
+
middleNames?: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
addresses: AppAddress[];
|
|
16
|
+
DOB: string;
|
|
17
|
+
mobile?: string;
|
|
18
|
+
emailAddress?: string | null;
|
|
19
|
+
preferredContactMethod: PreferredContactMethods;
|
|
20
|
+
maritalStatus: ContactMaritalStatusOptionEnumerator;
|
|
21
|
+
numberOfDependants?: number;
|
|
22
|
+
relationshipToApplicant1?: ApplicantRelationshipTypes;
|
|
23
|
+
residencyStatus: ContactResidencyStatusOptionEnumerator;
|
|
24
|
+
visaType?: string;
|
|
25
|
+
isValid: boolean;
|
|
26
|
+
isValidating: boolean;
|
|
27
|
+
licenseNumber?: string;
|
|
28
|
+
licenseState?: string;
|
|
29
|
+
licenseExpiryMonth?: number;
|
|
30
|
+
licenseExpiryYear?: number;
|
|
31
|
+
licenseExpiry?: string;
|
|
32
|
+
currentEmployment: EmploymentHistoryItem;
|
|
33
|
+
previousEmployment: EmploymentHistoryItem[];
|
|
34
|
+
otherIncome: OtherIncomeItem[];
|
|
35
|
+
retirementAge: string;
|
|
36
|
+
}
|
|
37
|
+
export interface EmploymentHistoryItem {
|
|
38
|
+
id: string;
|
|
39
|
+
employmentType: EmploymentTypes;
|
|
40
|
+
occupation?: string;
|
|
41
|
+
employer?: string;
|
|
42
|
+
annualIncome?: number;
|
|
43
|
+
lastTaxYear?: number;
|
|
44
|
+
lastTaxYearProfit?: number;
|
|
45
|
+
previousTaxYear?: number;
|
|
46
|
+
previousTaxYearProfit?: number;
|
|
47
|
+
monthsOfEmployment: number;
|
|
48
|
+
yearsOfEmployment: number;
|
|
49
|
+
startDate: string;
|
|
50
|
+
endDate: string;
|
|
51
|
+
operatingAsCompanyTrust: "yes" | "no";
|
|
52
|
+
onProbation: boolean;
|
|
53
|
+
grossSalary?: number;
|
|
54
|
+
bonus?: number;
|
|
55
|
+
overtimeEssential?: number;
|
|
56
|
+
overtimeNonEssential?: number;
|
|
57
|
+
commission?: number;
|
|
58
|
+
allowance?: number;
|
|
59
|
+
isCurrent: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface OtherIncomeItem {
|
|
62
|
+
id: string;
|
|
63
|
+
description: string;
|
|
64
|
+
grossIncome: number;
|
|
65
|
+
frequency: PaymentFrequencyEnumerator;
|
|
66
|
+
}
|
|
67
|
+
export declare enum PreferredContactMethods {
|
|
68
|
+
Email = "email",
|
|
69
|
+
Phone = "phone"
|
|
70
|
+
}
|
|
71
|
+
export declare enum ApplicantRelationshipTypes {
|
|
72
|
+
Spouse = "spouse",
|
|
73
|
+
JointBorrower = "jointBorrower",
|
|
74
|
+
Sibling = "sibling",
|
|
75
|
+
Parent = "parent",
|
|
76
|
+
Guarantor = "guarantor"
|
|
77
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApplicantRelationshipTypes = exports.PreferredContactMethods = exports.ApplicantRoles = void 0;
|
|
4
|
-
var ApplicantRoles;
|
|
5
|
-
(function (ApplicantRoles) {
|
|
6
|
-
ApplicantRoles["primaryApplicant"] = "primaryApplicant";
|
|
7
|
-
})(ApplicantRoles
|
|
8
|
-
var PreferredContactMethods;
|
|
9
|
-
(function (PreferredContactMethods) {
|
|
10
|
-
PreferredContactMethods["Email"] = "email";
|
|
11
|
-
PreferredContactMethods["Phone"] = "phone";
|
|
12
|
-
})(PreferredContactMethods
|
|
13
|
-
var ApplicantRelationshipTypes;
|
|
14
|
-
(function (ApplicantRelationshipTypes) {
|
|
15
|
-
ApplicantRelationshipTypes["Spouse"] = "spouse";
|
|
16
|
-
ApplicantRelationshipTypes["JointBorrower"] = "jointBorrower";
|
|
17
|
-
ApplicantRelationshipTypes["Sibling"] = "sibling";
|
|
18
|
-
ApplicantRelationshipTypes["Parent"] = "parent";
|
|
19
|
-
ApplicantRelationshipTypes["Guarantor"] = "guarantor";
|
|
20
|
-
})(ApplicantRelationshipTypes
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApplicantRelationshipTypes = exports.PreferredContactMethods = exports.ApplicantRoles = void 0;
|
|
4
|
+
var ApplicantRoles;
|
|
5
|
+
(function (ApplicantRoles) {
|
|
6
|
+
ApplicantRoles["primaryApplicant"] = "primaryApplicant";
|
|
7
|
+
})(ApplicantRoles || (exports.ApplicantRoles = ApplicantRoles = {}));
|
|
8
|
+
var PreferredContactMethods;
|
|
9
|
+
(function (PreferredContactMethods) {
|
|
10
|
+
PreferredContactMethods["Email"] = "email";
|
|
11
|
+
PreferredContactMethods["Phone"] = "phone";
|
|
12
|
+
})(PreferredContactMethods || (exports.PreferredContactMethods = PreferredContactMethods = {}));
|
|
13
|
+
var ApplicantRelationshipTypes;
|
|
14
|
+
(function (ApplicantRelationshipTypes) {
|
|
15
|
+
ApplicantRelationshipTypes["Spouse"] = "spouse";
|
|
16
|
+
ApplicantRelationshipTypes["JointBorrower"] = "jointBorrower";
|
|
17
|
+
ApplicantRelationshipTypes["Sibling"] = "sibling";
|
|
18
|
+
ApplicantRelationshipTypes["Parent"] = "parent";
|
|
19
|
+
ApplicantRelationshipTypes["Guarantor"] = "guarantor";
|
|
20
|
+
})(ApplicantRelationshipTypes || (exports.ApplicantRelationshipTypes = ApplicantRelationshipTypes = {}));
|
|
21
21
|
//# sourceMappingURL=applicant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant.js","sourceRoot":"","sources":["../../../src/typings/loanshub/applicant.ts"],"names":[],"mappings":";;;AASA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,uDAAqC,CAAA;AACvC,CAAC,EAFW,cAAc,
|
|
1
|
+
{"version":3,"file":"applicant.js","sourceRoot":"","sources":["../../../src/typings/loanshub/applicant.ts"],"names":[],"mappings":";;;AASA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,uDAAqC,CAAA;AACvC,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AA0ED,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,0CAAe,CAAA;AACjB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED,IAAY,0BAMX;AAND,WAAY,0BAA0B;IACpC,+CAAiB,CAAA;IACjB,6DAA+B,CAAA;IAC/B,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;IACjB,qDAAuB,CAAA;AACzB,CAAC,EANW,0BAA0B,0CAA1B,0BAA0B,QAMrC"}
|
|
@@ -1,100 +1,102 @@
|
|
|
1
|
-
import { LoanTypes, AppApplicant, AppAsset, AppLiability, AppAddress, YesNoValues } from ".";
|
|
2
|
-
import { ContactNextOfKinRelationshipEnumerator, PaymentFrequencyEnumerator } from "../salestrekker";
|
|
3
|
-
import { AppAttachment } from "./attachment";
|
|
4
|
-
export interface AppApplication<Timestamp> {
|
|
5
|
-
title?: string;
|
|
6
|
-
loanType: LoanTypes;
|
|
7
|
-
propertyType: PropertyTypes;
|
|
8
|
-
firstHomeBuyer: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/** The lender
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
/** Whether the loan has
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
import { LoanTypes, AppApplicant, AppAsset, AppLiability, AppAddress, YesNoValues } from ".";
|
|
2
|
+
import { ContactNextOfKinRelationshipEnumerator, PaymentFrequencyEnumerator } from "../salestrekker";
|
|
3
|
+
import { AppAttachment } from "./attachment";
|
|
4
|
+
export interface AppApplication<Timestamp> {
|
|
5
|
+
title?: string;
|
|
6
|
+
loanType: LoanTypes;
|
|
7
|
+
propertyType: PropertyTypes;
|
|
8
|
+
firstHomeBuyer: boolean;
|
|
9
|
+
preapproval?: boolean;
|
|
10
|
+
smsfLoan?: boolean;
|
|
11
|
+
loanAmountSought: number;
|
|
12
|
+
propertyValue: number;
|
|
13
|
+
propertyAddress: string;
|
|
14
|
+
assetDescription: string;
|
|
15
|
+
applicants: {
|
|
16
|
+
[key: string]: AppApplicant;
|
|
17
|
+
};
|
|
18
|
+
assets: AppAsset[];
|
|
19
|
+
liabilities: AppLiability[];
|
|
20
|
+
currentAddress: AppAddress;
|
|
21
|
+
postalAddress: AppAddress;
|
|
22
|
+
previousAddresses: AppAddress[];
|
|
23
|
+
postalAddressSameAsCurrentAddress: YesNoValues;
|
|
24
|
+
nextOfKinfirstName: string;
|
|
25
|
+
nextOfKinlastName: string;
|
|
26
|
+
nextOfKinContactNumber: string;
|
|
27
|
+
nextOfKinRelationship: ContactNextOfKinRelationshipEnumerator;
|
|
28
|
+
weeklyRent: number;
|
|
29
|
+
weeklyExpenses: number;
|
|
30
|
+
foreseeFinancialChanges: string;
|
|
31
|
+
foreseeFinancialChangesComments: string;
|
|
32
|
+
comments: string;
|
|
33
|
+
bankruptcy: string;
|
|
34
|
+
legalProceedings: string;
|
|
35
|
+
legalProceedingsComments: string;
|
|
36
|
+
liquidated: string;
|
|
37
|
+
liquidatedComments: string;
|
|
38
|
+
acknowledged: boolean;
|
|
39
|
+
agreeToTerms: boolean;
|
|
40
|
+
consent: boolean;
|
|
41
|
+
documentChecklist: {
|
|
42
|
+
[key: string]: boolean;
|
|
43
|
+
};
|
|
44
|
+
repaymentOptions: {
|
|
45
|
+
[key: string]: boolean;
|
|
46
|
+
};
|
|
47
|
+
expenses: {
|
|
48
|
+
[key: string]: AppExpense;
|
|
49
|
+
};
|
|
50
|
+
monthlyExpenseTotal: number;
|
|
51
|
+
attachments: {
|
|
52
|
+
[key: string]: AppAttachment;
|
|
53
|
+
};
|
|
54
|
+
featureVariableRate: boolean;
|
|
55
|
+
featureInterestOnly: boolean;
|
|
56
|
+
featureBridgingFinance: boolean;
|
|
57
|
+
featureFixedInterest: boolean;
|
|
58
|
+
featureOffset: boolean;
|
|
59
|
+
featureRedraw: boolean;
|
|
60
|
+
/** The lender linked to this application - The Firebase Lender document Id */
|
|
61
|
+
lenderId?: string;
|
|
62
|
+
/** The lender's identifier for this application (Lender application ID in Salestrekker UI).
|
|
63
|
+
*
|
|
64
|
+
* Used in Rate Review emails to help lenders identify the application
|
|
65
|
+
*/
|
|
66
|
+
lenderAppId?: string;
|
|
67
|
+
rateReviewEnabled?: boolean;
|
|
68
|
+
nextRateReviewDate?: Timestamp;
|
|
69
|
+
/** When the application was created in Firebase */
|
|
70
|
+
created: Timestamp;
|
|
71
|
+
/** when the application was submitted to Firebase, (and it left `Draft` status and was sent to Salestrekker) */
|
|
72
|
+
submitted?: Timestamp;
|
|
73
|
+
/** Whether the application has been submitted to Firebase (and consequently Salestrekker) */
|
|
74
|
+
isSubmitted: boolean;
|
|
75
|
+
submittedIp?: string;
|
|
76
|
+
/** Whether the application has been archived by admins */
|
|
77
|
+
isArchived?: boolean;
|
|
78
|
+
/** When the loan has/will settle - From Salestrekker */
|
|
79
|
+
settlementDate?: Timestamp;
|
|
80
|
+
/** Whether the loan has settled - From Salestrekker */
|
|
81
|
+
isSettled: boolean;
|
|
82
|
+
/** Whether the loan has been marked as lost - From Salestrekker */
|
|
83
|
+
isLost?: boolean;
|
|
84
|
+
/** When the loan was marked as lost - From Salestrekker */
|
|
85
|
+
lostDate?: Timestamp;
|
|
86
|
+
status: "Draft" | "Submitted" | string;
|
|
87
|
+
salestrekkerTicketId: string;
|
|
88
|
+
idWorkflow?: string;
|
|
89
|
+
referralCode?: string;
|
|
90
|
+
formVersion: number;
|
|
91
|
+
/** Indicates this is a test - doesn't send email notifications */
|
|
92
|
+
isTest?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export declare enum PropertyTypes {
|
|
95
|
+
owner_occupier = "ownerOccupier",
|
|
96
|
+
investment = "investment"
|
|
97
|
+
}
|
|
98
|
+
export interface AppExpense {
|
|
99
|
+
value: number;
|
|
100
|
+
frequency: PaymentFrequencyEnumerator;
|
|
101
|
+
comments: string;
|
|
102
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PropertyTypes = void 0;
|
|
4
|
-
var PropertyTypes;
|
|
5
|
-
(function (PropertyTypes) {
|
|
6
|
-
PropertyTypes["owner_occupier"] = "ownerOccupier";
|
|
7
|
-
PropertyTypes["investment"] = "investment";
|
|
8
|
-
})(PropertyTypes
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyTypes = void 0;
|
|
4
|
+
var PropertyTypes;
|
|
5
|
+
(function (PropertyTypes) {
|
|
6
|
+
PropertyTypes["owner_occupier"] = "ownerOccupier";
|
|
7
|
+
PropertyTypes["investment"] = "investment";
|
|
8
|
+
})(PropertyTypes || (exports.PropertyTypes = PropertyTypes = {}));
|
|
9
9
|
//# sourceMappingURL=application.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/typings/loanshub/application.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/typings/loanshub/application.ts"],"names":[],"mappings":";;;AAoHA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iDAAgC,CAAA;IAChC,0CAAyB,CAAA;AAC3B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AssetTypeEnumerator } from "../salestrekker";
|
|
2
|
-
export interface AppAsset {
|
|
3
|
-
type: AssetTypeEnumerator;
|
|
4
|
-
value: number;
|
|
5
|
-
address: string;
|
|
6
|
-
isSecurity: boolean;
|
|
7
|
-
monthlyRentalIncome?: number;
|
|
8
|
-
description: string;
|
|
9
|
-
makeAndModel?: string;
|
|
10
|
-
insurer?: string;
|
|
11
|
-
provider?: string;
|
|
12
|
-
bank?: string;
|
|
13
|
-
}
|
|
1
|
+
import { AssetTypeEnumerator } from "../salestrekker";
|
|
2
|
+
export interface AppAsset {
|
|
3
|
+
type: AssetTypeEnumerator;
|
|
4
|
+
value: number;
|
|
5
|
+
address: string;
|
|
6
|
+
isSecurity: boolean;
|
|
7
|
+
monthlyRentalIncome?: number;
|
|
8
|
+
description: string;
|
|
9
|
+
makeAndModel?: string;
|
|
10
|
+
insurer?: string;
|
|
11
|
+
provider?: string;
|
|
12
|
+
bank?: string;
|
|
13
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=asset.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface AppAttachment {
|
|
2
|
-
bucket: string;
|
|
3
|
-
contentDisposition: string;
|
|
4
|
-
contentEncoding: string;
|
|
5
|
-
contentType: string;
|
|
6
|
-
fullPath: string;
|
|
7
|
-
generation: string;
|
|
8
|
-
md5Hash: string;
|
|
9
|
-
metageneration: string;
|
|
10
|
-
name: string;
|
|
11
|
-
size: string;
|
|
12
|
-
timeCreated: string;
|
|
13
|
-
type: string;
|
|
14
|
-
updated: string;
|
|
15
|
-
downloadTokens: string;
|
|
16
|
-
self: boolean;
|
|
17
|
-
}
|
|
1
|
+
export interface AppAttachment {
|
|
2
|
+
bucket: string;
|
|
3
|
+
contentDisposition: string;
|
|
4
|
+
contentEncoding: string;
|
|
5
|
+
contentType: string;
|
|
6
|
+
fullPath: string;
|
|
7
|
+
generation: string;
|
|
8
|
+
md5Hash: string;
|
|
9
|
+
metageneration: string;
|
|
10
|
+
name: string;
|
|
11
|
+
size: string;
|
|
12
|
+
timeCreated: string;
|
|
13
|
+
type: string;
|
|
14
|
+
updated: string;
|
|
15
|
+
downloadTokens: string;
|
|
16
|
+
self: boolean;
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=attachment.js.map
|