loanshub-shared 1.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.
Files changed (92) hide show
  1. package/README.md +60 -0
  2. package/lib/app/index.d.ts +3 -0
  3. package/lib/app/index.js +19 -0
  4. package/lib/app/index.js.map +1 -0
  5. package/lib/app/options/applicantOptions.d.ts +10 -0
  6. package/lib/app/options/applicantOptions.js +204 -0
  7. package/lib/app/options/applicantOptions.js.map +1 -0
  8. package/lib/app/options/assetOptions.d.ts +3 -0
  9. package/lib/app/options/assetOptions.js +39 -0
  10. package/lib/app/options/assetOptions.js.map +1 -0
  11. package/lib/app/options/employmentOptions.d.ts +6 -0
  12. package/lib/app/options/employmentOptions.js +70 -0
  13. package/lib/app/options/employmentOptions.js.map +1 -0
  14. package/lib/app/options/expenseOptions.d.ts +3 -0
  15. package/lib/app/options/expenseOptions.js +135 -0
  16. package/lib/app/options/expenseOptions.js.map +1 -0
  17. package/lib/app/options/index.d.ts +12 -0
  18. package/lib/app/options/index.js +47 -0
  19. package/lib/app/options/index.js.map +1 -0
  20. package/lib/app/options/liabilityOptions.d.ts +4 -0
  21. package/lib/app/options/liabilityOptions.js +53 -0
  22. package/lib/app/options/liabilityOptions.js.map +1 -0
  23. package/lib/app/options/repaymentOptions.d.ts +13 -0
  24. package/lib/app/options/repaymentOptions.js +54 -0
  25. package/lib/app/options/repaymentOptions.js.map +1 -0
  26. package/lib/app/stages.d.ts +15 -0
  27. package/lib/app/stages.js +36 -0
  28. package/lib/app/stages.js.map +1 -0
  29. package/lib/form/index.d.ts +2 -0
  30. package/lib/form/index.js +19 -0
  31. package/lib/form/index.js.map +1 -0
  32. package/lib/form/loanForm.d.ts +174 -0
  33. package/lib/form/loanForm.js +86 -0
  34. package/lib/form/loanForm.js.map +1 -0
  35. package/lib/form/loanFormOptions.d.ts +17 -0
  36. package/lib/form/loanFormOptions.js +140 -0
  37. package/lib/form/loanFormOptions.js.map +1 -0
  38. package/lib/index.d.ts +5 -0
  39. package/lib/index.js +22 -0
  40. package/lib/index.js.map +1 -0
  41. package/lib/typings/firebase/employment.d.ts +11 -0
  42. package/lib/typings/firebase/employment.js +16 -0
  43. package/lib/typings/firebase/employment.js.map +1 -0
  44. package/lib/typings/firebase/index.d.ts +1 -0
  45. package/lib/typings/firebase/index.js +18 -0
  46. package/lib/typings/firebase/index.js.map +1 -0
  47. package/lib/typings/loanshub/address.d.ts +13 -0
  48. package/lib/typings/loanshub/address.js +3 -0
  49. package/lib/typings/loanshub/address.js.map +1 -0
  50. package/lib/typings/loanshub/applicant.d.ts +71 -0
  51. package/lib/typings/loanshub/applicant.js +21 -0
  52. package/lib/typings/loanshub/applicant.js.map +1 -0
  53. package/lib/typings/loanshub/application.d.ts +100 -0
  54. package/lib/typings/loanshub/application.js +9 -0
  55. package/lib/typings/loanshub/application.js.map +1 -0
  56. package/lib/typings/loanshub/asset.d.ts +13 -0
  57. package/lib/typings/loanshub/asset.js +3 -0
  58. package/lib/typings/loanshub/asset.js.map +1 -0
  59. package/lib/typings/loanshub/attachment.d.ts +17 -0
  60. package/lib/typings/loanshub/attachment.js +3 -0
  61. package/lib/typings/loanshub/attachment.js.map +1 -0
  62. package/lib/typings/loanshub/currentRate.d.ts +7 -0
  63. package/lib/typings/loanshub/currentRate.js +3 -0
  64. package/lib/typings/loanshub/currentRate.js.map +1 -0
  65. package/lib/typings/loanshub/index.d.ts +27 -0
  66. package/lib/typings/loanshub/index.js +39 -0
  67. package/lib/typings/loanshub/index.js.map +1 -0
  68. package/lib/typings/loanshub/lender.d.ts +13 -0
  69. package/lib/typings/loanshub/lender.js +3 -0
  70. package/lib/typings/loanshub/lender.js.map +1 -0
  71. package/lib/typings/loanshub/liability.d.ts +13 -0
  72. package/lib/typings/loanshub/liability.js +3 -0
  73. package/lib/typings/loanshub/liability.js.map +1 -0
  74. package/lib/typings/loanshub/rateReview.d.ts +4 -0
  75. package/lib/typings/loanshub/rateReview.js +3 -0
  76. package/lib/typings/loanshub/rateReview.js.map +1 -0
  77. package/lib/typings/loanshub/user.d.ts +5 -0
  78. package/lib/typings/loanshub/user.js +3 -0
  79. package/lib/typings/loanshub/user.js.map +1 -0
  80. package/lib/typings/salestrekker/generated.d.ts +5899 -0
  81. package/lib/typings/salestrekker/generated.js +1195 -0
  82. package/lib/typings/salestrekker/generated.js.map +1 -0
  83. package/lib/typings/salestrekker/index.d.ts +6 -0
  84. package/lib/typings/salestrekker/index.js +25 -0
  85. package/lib/typings/salestrekker/index.js.map +1 -0
  86. package/lib/utils.d.ts +27 -0
  87. package/lib/utils.js +81 -0
  88. package/lib/utils.js.map +1 -0
  89. package/lib/utils.test.d.ts +1 -0
  90. package/lib/utils.test.js +89 -0
  91. package/lib/utils.test.js.map +1 -0
  92. package/package.json +21 -0
package/lib/index.js ADDED
@@ -0,0 +1,22 @@
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("./app"), exports);
18
+ __exportStar(require("./typings/loanshub"), exports);
19
+ __exportStar(require("./typings/salestrekker"), exports);
20
+ __exportStar(require("./typings/firebase"), exports);
21
+ __exportStar(require("./utils"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,0CAAwB"}
@@ -0,0 +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
+ }
@@ -0,0 +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 = exports.EmploymentTypes || (exports.EmploymentTypes = {}));
16
+ //# sourceMappingURL=employment.js.map
@@ -0,0 +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,GAAf,uBAAe,KAAf,uBAAe,QAUxB"}
@@ -0,0 +1 @@
1
+ export * from "./employment";
@@ -0,0 +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);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typings/firebase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../src/typings/loanshub/address.ts"],"names":[],"mappings":""}
@@ -0,0 +1,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
+ isCurrent: boolean;
54
+ }
55
+ export interface OtherIncomeItem {
56
+ id: string;
57
+ description: string;
58
+ grossIncome: number;
59
+ frequency: PaymentFrequencyEnumerator;
60
+ }
61
+ export declare enum PreferredContactMethods {
62
+ Email = "email",
63
+ Phone = "phone"
64
+ }
65
+ export declare enum ApplicantRelationshipTypes {
66
+ Spouse = "spouse",
67
+ JointBorrower = "jointBorrower",
68
+ Sibling = "sibling",
69
+ Parent = "parent",
70
+ Guarantor = "guarantor"
71
+ }
@@ -0,0 +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 = exports.ApplicantRoles || (exports.ApplicantRoles = {}));
8
+ var PreferredContactMethods;
9
+ (function (PreferredContactMethods) {
10
+ PreferredContactMethods["Email"] = "email";
11
+ PreferredContactMethods["Phone"] = "phone";
12
+ })(PreferredContactMethods = exports.PreferredContactMethods || (exports.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 || (exports.ApplicantRelationshipTypes = {}));
21
+ //# sourceMappingURL=applicant.js.map
@@ -0,0 +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,GAAd,sBAAc,KAAd,sBAAc,QAEzB;AAmED,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,0CAAe,CAAA;AACjB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,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,GAA1B,kCAA0B,KAA1B,kCAA0B,QAMrC"}
@@ -0,0 +1,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
+ loanAmountSought: number;
10
+ propertyValue: number;
11
+ propertyAddress: string;
12
+ assetDescription: string;
13
+ applicants: {
14
+ [key: string]: AppApplicant;
15
+ };
16
+ assets: AppAsset[];
17
+ liabilities: AppLiability[];
18
+ currentAddress: AppAddress;
19
+ postalAddress: AppAddress;
20
+ previousAddresses: AppAddress[];
21
+ postalAddressSameAsCurrentAddress: YesNoValues;
22
+ nextOfKinfirstName: string;
23
+ nextOfKinlastName: string;
24
+ nextOfKinContactNumber: string;
25
+ nextOfKinRelationship: ContactNextOfKinRelationshipEnumerator;
26
+ weeklyRent: number;
27
+ weeklyExpenses: number;
28
+ foreseeFinancialChanges: string;
29
+ foreseeFinancialChangesComments: string;
30
+ comments: string;
31
+ bankruptcy: string;
32
+ legalProceedings: string;
33
+ legalProceedingsComments: string;
34
+ liquidated: string;
35
+ liquidatedComments: string;
36
+ acknowledged: boolean;
37
+ agreeToTerms: boolean;
38
+ consent: boolean;
39
+ documentChecklist: {
40
+ [key: string]: boolean;
41
+ };
42
+ repaymentOptions: {
43
+ [key: string]: boolean;
44
+ };
45
+ expenses: {
46
+ [key: string]: AppExpense;
47
+ };
48
+ monthlyExpenseTotal: number;
49
+ attachments: {
50
+ [key: string]: AppAttachment;
51
+ };
52
+ featureVariableRate: boolean;
53
+ featureInterestOnly: boolean;
54
+ featureBridgingFinance: boolean;
55
+ featureFixedInterest: boolean;
56
+ featureOffset: boolean;
57
+ featureRedraw: boolean;
58
+ /** The lender linked to this application - The Firebase Lender document Id */
59
+ lenderId?: string;
60
+ /** The lender's identifier for this application (Lender application ID in Salestrekker UI).
61
+ *
62
+ * Used in Rate Review emails to help lenders identify the application
63
+ */
64
+ lenderAppId?: string;
65
+ rateReviewEnabled?: boolean;
66
+ nextRateReviewDate?: Timestamp;
67
+ /** When the application was created in Firebase */
68
+ created: Timestamp;
69
+ /** when the application was submitted to Firebase, (and it left `Draft` status and was sent to Salestrekker) */
70
+ submitted?: Timestamp;
71
+ /** Whether the application has been submitted to Firebase (and consequently Salestrekker) */
72
+ isSubmitted: boolean;
73
+ submittedIp?: string;
74
+ /** Whether the application has been archived by admins */
75
+ isArchived?: boolean;
76
+ /** When the loan has/will settle - From Salestrekker */
77
+ settlementDate?: Timestamp;
78
+ /** Whether the loan has settled - From Salestrekker */
79
+ isSettled: boolean;
80
+ /** Whether the loan has been marked as lost - From Salestrekker */
81
+ isLost?: boolean;
82
+ /** When the loan was marked as lost - From Salestrekker */
83
+ lostDate?: Timestamp;
84
+ status: "Draft" | "Submitted" | string;
85
+ salestrekkerTicketId: string;
86
+ idWorkflow?: string;
87
+ referralCode?: string;
88
+ formVersion: number;
89
+ /** Indicates this is a test - doesn't send email notifications */
90
+ isTest?: boolean;
91
+ }
92
+ export declare enum PropertyTypes {
93
+ owner_occupier = "ownerOccupier",
94
+ investment = "investment"
95
+ }
96
+ export interface AppExpense {
97
+ value: number;
98
+ frequency: PaymentFrequencyEnumerator;
99
+ comments: string;
100
+ }
@@ -0,0 +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 = exports.PropertyTypes || (exports.PropertyTypes = {}));
9
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/typings/loanshub/application.ts"],"names":[],"mappings":";;;AAkHA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iDAAgC,CAAA;IAChC,0CAAyB,CAAA;AAC3B,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
@@ -0,0 +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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=asset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../src/typings/loanshub/asset.ts"],"names":[],"mappings":""}
@@ -0,0 +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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../src/typings/loanshub/attachment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface CurrentRate {
2
+ title: string;
3
+ rate: string;
4
+ comparisonRate: string;
5
+ /** Bullet points about this rate */
6
+ points: string[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=currentRate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currentRate.js","sourceRoot":"","sources":["../../../src/typings/loanshub/currentRate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ export * from "./address";
2
+ export * from "./applicant";
3
+ export * from "./application";
4
+ export * from "./asset";
5
+ export * from "./attachment";
6
+ export * from "./liability";
7
+ export * from "./user";
8
+ export * from "./lender";
9
+ export * from "./rateReview";
10
+ export * from "./currentRate";
11
+ export declare enum LoanTypes {
12
+ refinance = "Refinance",
13
+ purchase = "Purchase",
14
+ asset_finance = "Asset Finance"
15
+ }
16
+ export interface ErrorReport {
17
+ error: string;
18
+ url: string;
19
+ userAgent: string;
20
+ timeStamp?: string;
21
+ uid?: string;
22
+ ipAddress?: string;
23
+ }
24
+ export declare enum YesNoValues {
25
+ yes = "yes",
26
+ no = "no"
27
+ }
@@ -0,0 +1,39 @@
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
+ exports.YesNoValues = exports.LoanTypes = void 0;
18
+ __exportStar(require("./address"), exports);
19
+ __exportStar(require("./applicant"), exports);
20
+ __exportStar(require("./application"), exports);
21
+ __exportStar(require("./asset"), exports);
22
+ __exportStar(require("./attachment"), exports);
23
+ __exportStar(require("./liability"), exports);
24
+ __exportStar(require("./user"), exports);
25
+ __exportStar(require("./lender"), exports);
26
+ __exportStar(require("./rateReview"), exports);
27
+ __exportStar(require("./currentRate"), exports);
28
+ var LoanTypes;
29
+ (function (LoanTypes) {
30
+ LoanTypes["refinance"] = "Refinance";
31
+ LoanTypes["purchase"] = "Purchase";
32
+ LoanTypes["asset_finance"] = "Asset Finance";
33
+ })(LoanTypes = exports.LoanTypes || (exports.LoanTypes = {}));
34
+ var YesNoValues;
35
+ (function (YesNoValues) {
36
+ YesNoValues["yes"] = "yes";
37
+ YesNoValues["no"] = "no";
38
+ })(YesNoValues = exports.YesNoValues || (exports.YesNoValues = {}));
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typings/loanshub/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,8CAA4B;AAC5B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAE9B,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,4CAA+B,CAAA;AACjC,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAWD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,wBAAS,CAAA;AACX,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
@@ -0,0 +1,13 @@
1
+ export interface AppLender {
2
+ id: string;
3
+ /** the display name of the lender */
4
+ name: string;
5
+ /** LoansHub's Broker Id for this lender */
6
+ brokerId: string;
7
+ supportDetails: {
8
+ /** the name of the support contact */
9
+ name: string;
10
+ /** the email of the support contact */
11
+ email: string;
12
+ };
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=lender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lender.js","sourceRoot":"","sources":["../../../src/typings/loanshub/lender.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { LiabilityTypeEnumerator, CreditCardTypeEnumerator } from "../salestrekker";
2
+ export interface AppLiability {
3
+ id?: string;
4
+ type: LiabilityTypeEnumerator;
5
+ value: number;
6
+ toBePaidOut?: boolean;
7
+ address?: string;
8
+ limit?: number;
9
+ cardType?: CreditCardTypeEnumerator;
10
+ monthlyRepayment?: number;
11
+ description?: string;
12
+ lender?: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=liability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liability.js","sourceRoot":"","sources":["../../../src/typings/loanshub/liability.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface RateReviewRecord<T> {
2
+ sentDate: T;
3
+ body: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=rateReview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rateReview.js","sourceRoot":"","sources":["../../../src/typings/loanshub/rateReview.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface User {
2
+ emailAddress: string;
3
+ firstName?: string;
4
+ lastName?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/typings/loanshub/user.ts"],"names":[],"mappings":""}