@lendi/integrations-transform 1.5.8 → 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.
Files changed (106) hide show
  1. package/lib/index.js +10 -26
  2. package/lib/logger.d.ts +1 -2
  3. package/lib/logger.js +2 -5
  4. package/lib/transform-events/generate-asset-liability-link.d.ts +3 -1
  5. package/lib/transform-events/generate-asset-liability-link.js +14 -18
  6. package/lib/transform-events/generate-credit-report-rebuilt.js +17 -21
  7. package/lib/transform-events/generate-employment.d.ts +1 -1
  8. package/lib/transform-events/generate-employment.js +51 -56
  9. package/lib/transform-events/generate-required-document.d.ts +1 -7
  10. package/lib/transform-events/generate-required-document.js +43 -69
  11. package/lib/transform-events/transform-applicant.d.ts +2 -1
  12. package/lib/transform-events/transform-applicant.js +78 -91
  13. package/lib/transform-events/transform-application-workflow.d.ts +0 -1
  14. package/lib/transform-events/transform-application-workflow.js +9 -14
  15. package/lib/transform-events/transform-application.d.ts +3 -1
  16. package/lib/transform-events/transform-application.js +28 -33
  17. package/lib/transform-events/transform-asset-address.d.ts +8 -2
  18. package/lib/transform-events/transform-asset-address.js +35 -37
  19. package/lib/transform-events/transform-asset.d.ts +7 -1
  20. package/lib/transform-events/transform-asset.js +164 -184
  21. package/lib/transform-events/transform-expenses.d.ts +4 -0
  22. package/lib/transform-events/transform-expenses.js +52 -58
  23. package/lib/transform-events/transform-funding-position.d.ts +2 -2
  24. package/lib/transform-events/transform-funding-position.js +38 -46
  25. package/lib/transform-events/transform-income.d.ts +8 -1
  26. package/lib/transform-events/transform-income.js +121 -139
  27. package/lib/transform-events/transform-liability.d.ts +4 -1
  28. package/lib/transform-events/transform-liability.js +62 -65
  29. package/lib/transform-events/transform-percent-owned.d.ts +1 -0
  30. package/lib/transform-events/transform-percent-owned.js +7 -14
  31. package/lib/types/enum-mappings/alieo-frequency.js +22 -26
  32. package/lib/types/enum-mappings/asset-type.js +14 -18
  33. package/lib/types/enum-mappings/builder-type.js +6 -10
  34. package/lib/types/enum-mappings/construction-type.js +7 -11
  35. package/lib/types/enum-mappings/country-code.js +243 -247
  36. package/lib/types/enum-mappings/employment-basis.js +9 -13
  37. package/lib/types/enum-mappings/expense-frequency.js +8 -12
  38. package/lib/types/enum-mappings/funding-position.js +29 -32
  39. package/lib/types/enum-mappings/government-benefits.js +7 -11
  40. package/lib/types/enum-mappings/housing-status.js +12 -16
  41. package/lib/types/enum-mappings/income-type.js +13 -17
  42. package/lib/types/enum-mappings/index.js +27 -43
  43. package/lib/types/enum-mappings/liability-payment-type.js +6 -10
  44. package/lib/types/enum-mappings/liability-type.js +18 -22
  45. package/lib/types/enum-mappings/living-expense.js +27 -31
  46. package/lib/types/enum-mappings/marital-status.js +9 -13
  47. package/lib/types/enum-mappings/postcode.js +11 -15
  48. package/lib/types/enum-mappings/preferred-repayment.js +7 -11
  49. package/lib/types/enum-mappings/proof-of-identity.js +7 -11
  50. package/lib/types/enum-mappings/property-expense-category.js +8 -12
  51. package/lib/types/enum-mappings/public-financial-asset.js +9 -13
  52. package/lib/types/enum-mappings/public-primary-purpose.js +6 -10
  53. package/lib/types/enum-mappings/public-property-status.js +8 -12
  54. package/lib/types/enum-mappings/public-property-type.js +20 -24
  55. package/lib/types/enum-mappings/residency-status.js +8 -12
  56. package/lib/types/enum-mappings/title-gender.js +10 -14
  57. package/lib/types/enum-mappings/title.js +10 -14
  58. package/lib/types/enum-mappings/to-be-purchased.js +4 -7
  59. package/lib/types/enum-mappings/to-be-used-as-security.js +4 -7
  60. package/lib/types/enum-mappings/transaction-type.js +6 -10
  61. package/lib/types/enum-mappings/verification.js +10 -14
  62. package/lib/types/events/applicant-delete.js +4 -7
  63. package/lib/types/events/application-workflow.js +10 -13
  64. package/lib/types/events/asset-delete.js +4 -7
  65. package/lib/types/events/asset-liability-relation-delete.js +4 -7
  66. package/lib/types/events/credit-report-retrieved.js +4 -7
  67. package/lib/types/events/employment-delete.js +2 -5
  68. package/lib/types/events/expense-delete.js +2 -5
  69. package/lib/types/events/funding-position.js +6 -9
  70. package/lib/types/events/income-delete.js +4 -7
  71. package/lib/types/events/liability-delete.js +2 -5
  72. package/lib/types/events/opportunity.js +6 -9
  73. package/lib/types/events/public-applicant.js +28 -31
  74. package/lib/types/events/public-application.js +26 -29
  75. package/lib/types/events/public-asset-liability-relation.js +4 -7
  76. package/lib/types/events/public-asset.js +26 -29
  77. package/lib/types/events/public-employment.js +18 -21
  78. package/lib/types/events/public-expense.js +8 -11
  79. package/lib/types/events/public-funding-position.js +2 -5
  80. package/lib/types/events/public-income.js +12 -15
  81. package/lib/types/events/public-liability.js +16 -19
  82. package/lib/types/events/public-required-document.js +14 -17
  83. package/lib/types/partial-application.js +1 -2
  84. package/lib/types/recursive-partial.js +1 -2
  85. package/lib/update-application/merge-application.d.ts +1 -1
  86. package/lib/update-application/merge-application.js +41 -38
  87. package/lib/update-application/update-primary-applicant.d.ts +1 -4
  88. package/lib/update-application/update-primary-applicant.js +14 -38
  89. package/lib/utils/address-tools.d.ts +3 -1
  90. package/lib/utils/address-tools.js +56 -68
  91. package/lib/utils/clean-up.d.ts +1 -1
  92. package/lib/utils/clean-up.js +6 -10
  93. package/lib/utils/formatYesNo.d.ts +0 -1
  94. package/lib/utils/formatYesNo.js +2 -7
  95. package/lib/utils/generate-address.d.ts +3 -2
  96. package/lib/utils/generate-address.js +33 -42
  97. package/lib/utils/get-financial-institution.d.ts +1 -0
  98. package/lib/utils/get-financial-institution.js +7 -10
  99. package/lib/utils/is-asset-type.js +13 -20
  100. package/lib/utils/is-income-type.d.ts +2 -0
  101. package/lib/utils/is-income-type.js +50 -69
  102. package/lib/utils/iso-date.d.ts +0 -1
  103. package/lib/utils/iso-date.js +2 -7
  104. package/lib/utils/normalise-date.js +6 -10
  105. package/lib/utils/round-decimal.js +1 -5
  106. package/package.json +14 -17
@@ -1,12 +1,8 @@
1
- "use strict";
2
- var _a;
3
- exports.__esModule = true;
4
- exports.residencyStatusMapping = void 0;
5
- var public_applicant_1 = require("../events/public-applicant");
6
- var lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
7
- exports.residencyStatusMapping = (_a = {},
8
- _a[public_applicant_1.ResidencyStatus.AustralianCitizen] = lixi_internal_request_1.ResidencyStatusList.PermanentlyInAustralia,
9
- _a[public_applicant_1.ResidencyStatus.PermanentResident] = lixi_internal_request_1.ResidencyStatusList.PermanentlyInAustralia,
10
- _a[public_applicant_1.ResidencyStatus.TemporaryResident] = lixi_internal_request_1.ResidencyStatusList.TemporarilyInAustralia,
11
- _a[public_applicant_1.ResidencyStatus.Unknown] = lixi_internal_request_1.ResidencyStatusList.NonResident,
12
- _a);
1
+ import { ResidencyStatus } from '../events/public-applicant';
2
+ import { ResidencyStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
+ export const residencyStatusMapping = {
4
+ [ResidencyStatus.AustralianCitizen]: ResidencyStatusList.PermanentlyInAustralia,
5
+ [ResidencyStatus.PermanentResident]: ResidencyStatusList.PermanentlyInAustralia,
6
+ [ResidencyStatus.TemporaryResident]: ResidencyStatusList.TemporarilyInAustralia,
7
+ [ResidencyStatus.Unknown]: ResidencyStatusList.NonResident,
8
+ };
@@ -1,14 +1,10 @@
1
- "use strict";
2
- var _a;
3
- exports.__esModule = true;
4
- exports.titleGenderMapping = void 0;
5
- var public_required_document_1 = require("../events/public-required-document");
6
- var lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
7
- exports.titleGenderMapping = (_a = {},
8
- _a[public_required_document_1.IDTitle.Miss] = lixi_internal_request_1.GenderList.Female,
9
- _a[public_required_document_1.IDTitle.Mr] = lixi_internal_request_1.GenderList.Male,
10
- _a[public_required_document_1.IDTitle.Mrs] = lixi_internal_request_1.GenderList.Female,
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
- "use strict";
2
- var _a;
3
- exports.__esModule = true;
4
- exports.titleMapping = void 0;
5
- var public_applicant_1 = require("../events/public-applicant");
6
- var lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
7
- exports.titleMapping = (_a = {},
8
- _a[public_applicant_1.Title.DR] = lixi_internal_request_1.NameTitleList.DR,
9
- _a[public_applicant_1.Title.Miss] = lixi_internal_request_1.NameTitleList.Miss,
10
- _a[public_applicant_1.Title.Mr] = lixi_internal_request_1.NameTitleList.Mr,
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
- "use strict";
2
- exports.__esModule = true;
3
- exports.toBePurchasedMapping = void 0;
4
- var lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
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
- "use strict";
2
- exports.__esModule = true;
3
- exports.toBeUsedAsSecurityMapping = void 0;
4
- var lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
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
- "use strict";
2
- var _a;
3
- exports.__esModule = true;
4
- exports.transactionTypeMapping = void 0;
5
- var lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
6
- var public_application_1 = require("../events/public-application");
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
- "use strict";
2
- var _a;
3
- exports.__esModule = true;
4
- exports.verificationMapping = void 0;
5
- var public_required_document_1 = require("../events/public-required-document");
6
- var lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
7
- exports.verificationMapping = (_a = {},
8
- _a[public_required_document_1.Status.Expired] = lixi_internal_request_1.YesNoList.No,
9
- _a[public_required_document_1.Status.FailedVerification] = lixi_internal_request_1.YesNoList.No,
10
- _a[public_required_document_1.Status.NotRequired] = lixi_internal_request_1.YesNoList.No,
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 = exports.ActionedByRole || (exports.ActionedByRole = {}));
12
- var Type;
8
+ })(ActionedByRole || (ActionedByRole = {}));
9
+ export var Type;
13
10
  (function (Type) {
14
11
  Type["DeleteApplicant"] = "DeleteApplicant";
15
- })(Type = exports.Type || (exports.Type = {}));
12
+ })(Type || (Type = {}));
@@ -1,10 +1,7 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Type = exports.Status = exports.Stage = exports.ConfirmedPrimaryPurpose = 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,11 +10,11 @@ var ApplicationStage;
13
10
  ApplicationStage["Settlement"] = "SETTLEMENT";
14
11
  ApplicationStage["SubmissionReview"] = "SUBMISSION_REVIEW";
15
12
  ApplicationStage["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
16
- })(ApplicationStage = exports.ApplicationStage || (exports.ApplicationStage = {}));
13
+ })(ApplicationStage || (ApplicationStage = {}));
17
14
  /**
18
15
  * Intention for applying a loan
19
16
  */
20
- var ConfirmedPrimaryPurpose;
17
+ export var ConfirmedPrimaryPurpose;
21
18
  (function (ConfirmedPrimaryPurpose) {
22
19
  ConfirmedPrimaryPurpose["ChattelMortgage"] = "CHATTEL_MORTGAGE";
23
20
  ConfirmedPrimaryPurpose["Commercial"] = "COMMERCIAL";
@@ -37,12 +34,12 @@ var ConfirmedPrimaryPurpose;
37
34
  ConfirmedPrimaryPurpose["TopUp"] = "TOP_UP";
38
35
  ConfirmedPrimaryPurpose["Unknown"] = "UNKNOWN";
39
36
  ConfirmedPrimaryPurpose["Variation"] = "VARIATION";
40
- })(ConfirmedPrimaryPurpose = exports.ConfirmedPrimaryPurpose || (exports.ConfirmedPrimaryPurpose = {}));
37
+ })(ConfirmedPrimaryPurpose || (ConfirmedPrimaryPurpose = {}));
41
38
  /**
42
39
  * Opportunity stage name. This is a legacy field and will be deprecated after Lendi Group
43
40
  * salesforce goes live
44
41
  */
45
- var Stage;
42
+ export var Stage;
46
43
  (function (Stage) {
47
44
  Stage["ApplicationTaken"] = "APPLICATION_TAKEN";
48
45
  Stage["Appointed"] = "APPOINTED";
@@ -67,12 +64,12 @@ var Stage;
67
64
  Stage["Settlement"] = "SETTLEMENT";
68
65
  Stage["Submitted"] = "SUBMITTED";
69
66
  Stage["Unknown"] = "UNKNOWN";
70
- })(Stage = exports.Stage || (exports.Stage = {}));
67
+ })(Stage || (Stage = {}));
71
68
  /**
72
69
  * Opportunity status. This is a legacy field and will be deprecated after Lendi Group
73
70
  * salesforce goes live
74
71
  */
75
- var Status;
72
+ export var Status;
76
73
  (function (Status) {
77
74
  Status["Application"] = "APPLICATION";
78
75
  Status["ApplicationCompleted"] = "APPLICATION_COMPLETED";
@@ -133,8 +130,8 @@ var Status;
133
130
  Status["SubmittedToLender"] = "SUBMITTED_TO_LENDER";
134
131
  Status["UnconditionalApproval"] = "UNCONDITIONAL_APPROVAL";
135
132
  Status["Unknown"] = "UNKNOWN";
136
- })(Status = exports.Status || (exports.Status = {}));
137
- var Type;
133
+ })(Status || (Status = {}));
134
+ export var Type;
138
135
  (function (Type) {
139
136
  Type["ApplicationWorkflowUpdated"] = "ApplicationWorkflowUpdated";
140
- })(Type = exports.Type || (exports.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 = exports.ActionedByRole || (exports.ActionedByRole = {}));
12
- var Type;
8
+ })(ActionedByRole || (ActionedByRole = {}));
9
+ export var Type;
13
10
  (function (Type) {
14
11
  Type["AssetDeleted"] = "AssetDeleted";
15
- })(Type = exports.Type || (exports.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 = exports.ActionedByRole || (exports.ActionedByRole = {}));
12
- var Type;
8
+ })(ActionedByRole || (ActionedByRole = {}));
9
+ export var Type;
13
10
  (function (Type) {
14
11
  Type["AssetAndLiabilityRelationDeleted"] = "AssetAndLiabilityRelationDeleted";
15
- })(Type = exports.Type || (exports.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 = exports.Source || (exports.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 = exports.Type || (exports.Type = {}));
12
+ })(Type || (Type = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Type = void 0;
4
- var Type;
1
+ export var Type;
5
2
  (function (Type) {
6
3
  Type["EmploymentDeleted"] = "EmploymentDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
4
+ })(Type || (Type = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Type = void 0;
4
- var Type;
1
+ export var Type;
5
2
  (function (Type) {
6
3
  Type["ExpenseDeleted"] = "ExpenseDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
4
+ })(Type || (Type = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
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 = exports.Category || (exports.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 = exports.DetailType || (exports.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 = exports.Type || (exports.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 = exports.ActionedByRole || (exports.ActionedByRole = {}));
12
- var Type;
8
+ })(ActionedByRole || (ActionedByRole = {}));
9
+ export var Type;
13
10
  (function (Type) {
14
11
  Type["IncomeDeleted"] = "IncomeDeleted";
15
- })(Type = exports.Type || (exports.Type = {}));
12
+ })(Type || (Type = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Type = void 0;
4
- var Type;
1
+ export var Type;
5
2
  (function (Type) {
6
3
  Type["LiabilityDeleted"] = "LiabilityDeleted";
7
- })(Type = exports.Type || (exports.Type = {}));
4
+ })(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 = exports.Brand || (exports.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 = exports.Stage || (exports.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 = exports.Type || (exports.Type = {}));
44
+ })(Type || (Type = {}));
@@ -1,13 +1,10 @@
1
- "use strict";
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 = exports.ApplicantType || (exports.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 = exports.Countries || (exports.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 = exports.HousingStatusList || (exports.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 = exports.CreditStatus || (exports.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 = exports.EmploymentType || (exports.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 = exports.Entity || (exports.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 = exports.Gender || (exports.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 = exports.GuarantorRelationshipToBorrowerType || (exports.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 = exports.InvitationStatus || (exports.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 = exports.MaritalStatus || (exports.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 = exports.ActionedByRole || (exports.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 = exports.ResidencyStatus || (exports.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 = exports.Title || (exports.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 = exports.Type || (exports.Type = {}));
355
+ })(Type || (Type = {}));