@lendi/integrations-transform 1.5.7 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +10 -26
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +2 -5
- package/lib/schemas/application-workflow-event.json +1 -1
- 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 -184
- 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 -65
- package/lib/transform-events/transform-percent-owned.d.ts +1 -0
- 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/guarantor-relationship-type.d.ts +3 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.js +13 -0
- 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 -43
- 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.js +10 -13
- 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,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PublicApplicationType = exports.Urgency = exports.RefinancingReason = exports.PurchaseSituation = exports.PurchaseReason = exports.PrimaryPurpose = exports.PaymentType = exports.EligibleForFHOG = exports.DesiredFeature = exports.ContributionType = exports.ActionedByRole = exports.BrokerPrimaryPurpose = exports.Brand = void 0;
|
|
4
|
-
var Brand;
|
|
1
|
+
export var Brand;
|
|
5
2
|
(function (Brand) {
|
|
6
3
|
Brand["Domain"] = "domain";
|
|
7
4
|
Brand["DomainVariation"] = "domain variation";
|
|
8
5
|
Brand["Lendi"] = "lendi";
|
|
9
6
|
Brand["LendiVariation"] = "lendi variation";
|
|
10
|
-
})(Brand
|
|
7
|
+
})(Brand || (Brand = {}));
|
|
11
8
|
/**
|
|
12
9
|
* Additional data point for broker to capture primary purpose, other than the preliminary
|
|
13
10
|
* primary purpose associated with current user journey for new purchase or refinance
|
|
14
11
|
*/
|
|
15
|
-
var BrokerPrimaryPurpose;
|
|
12
|
+
export var BrokerPrimaryPurpose;
|
|
16
13
|
(function (BrokerPrimaryPurpose) {
|
|
17
14
|
BrokerPrimaryPurpose["Commercial"] = "COMMERCIAL";
|
|
18
15
|
BrokerPrimaryPurpose["Construction"] = "CONSTRUCTION";
|
|
@@ -29,74 +26,74 @@ var BrokerPrimaryPurpose;
|
|
|
29
26
|
BrokerPrimaryPurpose["Variation"] = "VARIATION";
|
|
30
27
|
BrokerPrimaryPurpose["VariationCreditCritical"] = "VARIATION_CREDIT_CRITICAL";
|
|
31
28
|
BrokerPrimaryPurpose["VariationNonCreditCritical"] = "VARIATION_NON_CREDIT_CRITICAL";
|
|
32
|
-
})(BrokerPrimaryPurpose
|
|
29
|
+
})(BrokerPrimaryPurpose || (BrokerPrimaryPurpose = {}));
|
|
33
30
|
/**
|
|
34
31
|
* role of the user that made the action
|
|
35
32
|
*/
|
|
36
|
-
var ActionedByRole;
|
|
33
|
+
export var ActionedByRole;
|
|
37
34
|
(function (ActionedByRole) {
|
|
38
35
|
ActionedByRole["Customer"] = "customer";
|
|
39
36
|
ActionedByRole["Team"] = "team";
|
|
40
|
-
})(ActionedByRole
|
|
41
|
-
var ContributionType;
|
|
37
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
38
|
+
export var ContributionType;
|
|
42
39
|
(function (ContributionType) {
|
|
43
40
|
ContributionType["Deposit"] = "DEPOSIT";
|
|
44
|
-
})(ContributionType
|
|
45
|
-
var DesiredFeature;
|
|
41
|
+
})(ContributionType || (ContributionType = {}));
|
|
42
|
+
export var DesiredFeature;
|
|
46
43
|
(function (DesiredFeature) {
|
|
47
44
|
DesiredFeature["FixedRate"] = "FIXED_RATE";
|
|
48
45
|
DesiredFeature["MajorLender"] = "MAJOR_LENDER";
|
|
49
46
|
DesiredFeature["MobileApp"] = "MOBILE_APP";
|
|
50
47
|
DesiredFeature["OffsetOrRedraw"] = "OFFSET_OR_REDRAW";
|
|
51
|
-
})(DesiredFeature
|
|
48
|
+
})(DesiredFeature || (DesiredFeature = {}));
|
|
52
49
|
/**
|
|
53
50
|
* First Home Owner Grant
|
|
54
51
|
*/
|
|
55
|
-
var EligibleForFHOG;
|
|
52
|
+
export var EligibleForFHOG;
|
|
56
53
|
(function (EligibleForFHOG) {
|
|
57
54
|
EligibleForFHOG["No"] = "NO";
|
|
58
55
|
EligibleForFHOG["NotSure"] = "NOT_SURE";
|
|
59
56
|
EligibleForFHOG["Yes"] = "YES";
|
|
60
|
-
})(EligibleForFHOG
|
|
61
|
-
var PaymentType;
|
|
57
|
+
})(EligibleForFHOG || (EligibleForFHOG = {}));
|
|
58
|
+
export var PaymentType;
|
|
62
59
|
(function (PaymentType) {
|
|
63
60
|
PaymentType["InterestOnly"] = "INTEREST_ONLY";
|
|
64
61
|
PaymentType["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
|
|
65
62
|
PaymentType["StillDeciding"] = "STILL_DECIDING";
|
|
66
|
-
})(PaymentType
|
|
67
|
-
var PrimaryPurpose;
|
|
63
|
+
})(PaymentType || (PaymentType = {}));
|
|
64
|
+
export var PrimaryPurpose;
|
|
68
65
|
(function (PrimaryPurpose) {
|
|
69
66
|
PrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
|
|
70
67
|
PrimaryPurpose["Refinance"] = "REFINANCE";
|
|
71
|
-
})(PrimaryPurpose
|
|
72
|
-
var PurchaseReason;
|
|
68
|
+
})(PrimaryPurpose || (PrimaryPurpose = {}));
|
|
69
|
+
export var PurchaseReason;
|
|
73
70
|
(function (PurchaseReason) {
|
|
74
71
|
PurchaseReason["LoanAffordability"] = "LOAN_AFFORDABILITY";
|
|
75
72
|
PurchaseReason["LoanApproval"] = "LOAN_APPROVAL";
|
|
76
73
|
PurchaseReason["LoanEligibility"] = "LOAN_ELIGIBILITY";
|
|
77
|
-
})(PurchaseReason
|
|
78
|
-
var PurchaseSituation;
|
|
74
|
+
})(PurchaseReason || (PurchaseReason = {}));
|
|
75
|
+
export var PurchaseSituation;
|
|
79
76
|
(function (PurchaseSituation) {
|
|
80
77
|
PurchaseSituation["BuyingSoon"] = "BUYING_SOON";
|
|
81
78
|
PurchaseSituation["ContractsExchanged"] = "CONTRACTS_EXCHANGED";
|
|
82
79
|
PurchaseSituation["ExploringOptions"] = "EXPLORING_OPTIONS";
|
|
83
80
|
PurchaseSituation["OfferMade"] = "OFFER_MADE";
|
|
84
|
-
})(PurchaseSituation
|
|
85
|
-
var RefinancingReason;
|
|
81
|
+
})(PurchaseSituation || (PurchaseSituation = {}));
|
|
82
|
+
export var RefinancingReason;
|
|
86
83
|
(function (RefinancingReason) {
|
|
87
84
|
RefinancingReason["ConsolidateCashout"] = "CONSOLIDATE_CASHOUT";
|
|
88
85
|
RefinancingReason["Construction"] = "CONSTRUCTION";
|
|
89
86
|
RefinancingReason["DecreaseRepayments"] = "DECREASE_REPAYMENTS";
|
|
90
87
|
RefinancingReason["FasterPayoff"] = "FASTER_PAYOFF";
|
|
91
|
-
})(RefinancingReason
|
|
92
|
-
var Urgency;
|
|
88
|
+
})(RefinancingReason || (RefinancingReason = {}));
|
|
89
|
+
export var Urgency;
|
|
93
90
|
(function (Urgency) {
|
|
94
91
|
Urgency["NotUrgent"] = "NOT_URGENT";
|
|
95
92
|
Urgency["Urgent"] = "URGENT";
|
|
96
|
-
})(Urgency
|
|
97
|
-
var PublicApplicationType;
|
|
93
|
+
})(Urgency || (Urgency = {}));
|
|
94
|
+
export var PublicApplicationType;
|
|
98
95
|
(function (PublicApplicationType) {
|
|
99
96
|
PublicApplicationType["CreateApplication"] = "CreateApplication";
|
|
100
97
|
PublicApplicationType["MigrateApplication"] = "MigrateApplication";
|
|
101
98
|
PublicApplicationType["UpdateApplication"] = "UpdateApplication";
|
|
102
|
-
})(PublicApplicationType
|
|
99
|
+
})(PublicApplicationType || (PublicApplicationType = {}));
|
|
@@ -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["AssetAndLiabilityRelationCreated"] = "AssetAndLiabilityRelationCreated";
|
|
15
|
-
})(Type
|
|
12
|
+
})(Type || (Type = {}));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PublicAssetType = exports.ActionedByRole = exports.ZoneType = exports.AssetType = exports.PropertyType = exports.PropertyStatus = exports.PropertyExpenseType = exports.Frequency = exports.PrimaryPurpose = exports.Proportions = exports.ConstructionType = exports.BuilderType = exports.Countries = void 0;
|
|
4
|
-
var Countries;
|
|
1
|
+
export var Countries;
|
|
5
2
|
(function (Countries) {
|
|
6
3
|
Countries["Afghanistan"] = "Afghanistan";
|
|
7
4
|
Countries["Albania"] = "Albania";
|
|
@@ -242,56 +239,56 @@ var Countries;
|
|
|
242
239
|
Countries["Yemen"] = "Yemen";
|
|
243
240
|
Countries["Zambia"] = "Zambia";
|
|
244
241
|
Countries["Zimbabwe"] = "Zimbabwe";
|
|
245
|
-
})(Countries
|
|
246
|
-
var BuilderType;
|
|
242
|
+
})(Countries || (Countries = {}));
|
|
243
|
+
export var BuilderType;
|
|
247
244
|
(function (BuilderType) {
|
|
248
245
|
BuilderType["LicensedBuilder"] = "LICENSED_BUILDER";
|
|
249
246
|
BuilderType["OwnerBuilder"] = "OWNER_BUILDER";
|
|
250
|
-
})(BuilderType
|
|
251
|
-
var ConstructionType;
|
|
247
|
+
})(BuilderType || (BuilderType = {}));
|
|
248
|
+
export var ConstructionType;
|
|
252
249
|
(function (ConstructionType) {
|
|
253
250
|
ConstructionType["BuildAProperty"] = "BUILD_A_PROPERTY";
|
|
254
251
|
ConstructionType["KnockdownRebuild"] = "KNOCKDOWN_REBUILD";
|
|
255
252
|
ConstructionType["StructuralRenovations"] = "STRUCTURAL_RENOVATIONS";
|
|
256
|
-
})(ConstructionType
|
|
253
|
+
})(ConstructionType || (ConstructionType = {}));
|
|
257
254
|
/**
|
|
258
255
|
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
259
256
|
* not specified.
|
|
260
257
|
*/
|
|
261
|
-
var Proportions;
|
|
258
|
+
export var Proportions;
|
|
262
259
|
(function (Proportions) {
|
|
263
260
|
Proportions["Equal"] = "EQUAL";
|
|
264
261
|
Proportions["NotSpecified"] = "NOT_SPECIFIED";
|
|
265
262
|
Proportions["Specified"] = "SPECIFIED";
|
|
266
|
-
})(Proportions
|
|
267
|
-
var PrimaryPurpose;
|
|
263
|
+
})(Proportions || (Proportions = {}));
|
|
264
|
+
export var PrimaryPurpose;
|
|
268
265
|
(function (PrimaryPurpose) {
|
|
269
266
|
PrimaryPurpose["Investment"] = "INVESTMENT";
|
|
270
267
|
PrimaryPurpose["OwnerOccupied"] = "OWNER_OCCUPIED";
|
|
271
|
-
})(PrimaryPurpose
|
|
272
|
-
var Frequency;
|
|
268
|
+
})(PrimaryPurpose || (PrimaryPurpose = {}));
|
|
269
|
+
export var Frequency;
|
|
273
270
|
(function (Frequency) {
|
|
274
271
|
Frequency["Fortnightly"] = "FORTNIGHTLY";
|
|
275
272
|
Frequency["Monthly"] = "MONTHLY";
|
|
276
273
|
Frequency["Quarterly"] = "QUARTERLY";
|
|
277
274
|
Frequency["Weekly"] = "WEEKLY";
|
|
278
275
|
Frequency["Yearly"] = "YEARLY";
|
|
279
|
-
})(Frequency
|
|
280
|
-
var PropertyExpenseType;
|
|
276
|
+
})(Frequency || (Frequency = {}));
|
|
277
|
+
export var PropertyExpenseType;
|
|
281
278
|
(function (PropertyExpenseType) {
|
|
282
279
|
PropertyExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
|
|
283
280
|
PropertyExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
|
|
284
281
|
PropertyExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
|
|
285
282
|
PropertyExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
|
|
286
|
-
})(PropertyExpenseType
|
|
287
|
-
var PropertyStatus;
|
|
283
|
+
})(PropertyExpenseType || (PropertyExpenseType = {}));
|
|
284
|
+
export var PropertyStatus;
|
|
288
285
|
(function (PropertyStatus) {
|
|
289
286
|
PropertyStatus["Established"] = "ESTABLISHED";
|
|
290
287
|
PropertyStatus["NewBuilding"] = "NEW_BUILDING";
|
|
291
288
|
PropertyStatus["OffThePlan"] = "OFF_THE_PLAN";
|
|
292
289
|
PropertyStatus["VacantLand"] = "VACANT_LAND";
|
|
293
|
-
})(PropertyStatus
|
|
294
|
-
var PropertyType;
|
|
290
|
+
})(PropertyStatus || (PropertyStatus = {}));
|
|
291
|
+
export var PropertyType;
|
|
295
292
|
(function (PropertyType) {
|
|
296
293
|
PropertyType["ApartmentUnitLessThan50M2"] = "APARTMENT_UNIT_LESS_THAN_50M2";
|
|
297
294
|
PropertyType["ApartmentUnitMoreThan50M2"] = "APARTMENT_UNIT_MORE_THAN_50M2";
|
|
@@ -309,8 +306,8 @@ var PropertyType;
|
|
|
309
306
|
PropertyType["Townhouse"] = "TOWNHOUSE";
|
|
310
307
|
PropertyType["Villa"] = "VILLA";
|
|
311
308
|
PropertyType["WarehouseApartment"] = "WAREHOUSE_APARTMENT";
|
|
312
|
-
})(PropertyType
|
|
313
|
-
var AssetType;
|
|
309
|
+
})(PropertyType || (PropertyType = {}));
|
|
310
|
+
export var AssetType;
|
|
314
311
|
(function (AssetType) {
|
|
315
312
|
AssetType["Gifts"] = "GIFTS";
|
|
316
313
|
AssetType["HomeContents"] = "HOME_CONTENTS";
|
|
@@ -322,27 +319,27 @@ var AssetType;
|
|
|
322
319
|
AssetType["Superannuation"] = "SUPERANNUATION";
|
|
323
320
|
AssetType["TermDeposit"] = "TERM_DEPOSIT";
|
|
324
321
|
AssetType["Vehicle"] = "VEHICLE";
|
|
325
|
-
})(AssetType
|
|
326
|
-
var ZoneType;
|
|
322
|
+
})(AssetType || (AssetType = {}));
|
|
323
|
+
export var ZoneType;
|
|
327
324
|
(function (ZoneType) {
|
|
328
325
|
ZoneType["Commercial"] = "COMMERCIAL";
|
|
329
326
|
ZoneType["Industrial"] = "INDUSTRIAL";
|
|
330
327
|
ZoneType["Residential"] = "RESIDENTIAL";
|
|
331
328
|
ZoneType["Rural"] = "RURAL";
|
|
332
|
-
})(ZoneType
|
|
329
|
+
})(ZoneType || (ZoneType = {}));
|
|
333
330
|
/**
|
|
334
331
|
* role of the user that made the action
|
|
335
332
|
*/
|
|
336
|
-
var ActionedByRole;
|
|
333
|
+
export var ActionedByRole;
|
|
337
334
|
(function (ActionedByRole) {
|
|
338
335
|
ActionedByRole["Customer"] = "customer";
|
|
339
336
|
ActionedByRole["Team"] = "team";
|
|
340
|
-
})(ActionedByRole
|
|
337
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
341
338
|
/**
|
|
342
339
|
* schema version
|
|
343
340
|
*/
|
|
344
|
-
var PublicAssetType;
|
|
341
|
+
export var PublicAssetType;
|
|
345
342
|
(function (PublicAssetType) {
|
|
346
343
|
PublicAssetType["AssetCreated"] = "AssetCreated";
|
|
347
344
|
PublicAssetType["AssetUpdated"] = "AssetUpdated";
|
|
348
|
-
})(PublicAssetType
|
|
345
|
+
})(PublicAssetType || (PublicAssetType = {}));
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PublicEmploymentType = exports.PayloadType = exports.ActionedByRole = exports.MaternityLeaveReturnBasis = exports.EmploymentType = exports.EmploymentBasis = exports.AustralianStates = exports.CompanyType = exports.BusinessStructure = void 0;
|
|
4
|
-
var BusinessStructure;
|
|
1
|
+
export var BusinessStructure;
|
|
5
2
|
(function (BusinessStructure) {
|
|
6
3
|
BusinessStructure["Company"] = "COMPANY";
|
|
7
4
|
BusinessStructure["Partnership"] = "PARTNERSHIP";
|
|
8
5
|
BusinessStructure["SoleTrader"] = "SOLE_TRADER";
|
|
9
6
|
BusinessStructure["Trust"] = "TRUST";
|
|
10
|
-
})(BusinessStructure
|
|
11
|
-
var CompanyType;
|
|
7
|
+
})(BusinessStructure || (BusinessStructure = {}));
|
|
8
|
+
export var CompanyType;
|
|
12
9
|
(function (CompanyType) {
|
|
13
10
|
CompanyType["Private"] = "PRIVATE";
|
|
14
11
|
CompanyType["Public"] = "PUBLIC";
|
|
15
|
-
})(CompanyType
|
|
16
|
-
var AustralianStates;
|
|
12
|
+
})(CompanyType || (CompanyType = {}));
|
|
13
|
+
export var AustralianStates;
|
|
17
14
|
(function (AustralianStates) {
|
|
18
15
|
AustralianStates["Act"] = "ACT";
|
|
19
16
|
AustralianStates["NT"] = "NT";
|
|
@@ -23,47 +20,47 @@ var AustralianStates;
|
|
|
23
20
|
AustralianStates["Tas"] = "TAS";
|
|
24
21
|
AustralianStates["Vic"] = "VIC";
|
|
25
22
|
AustralianStates["Wa"] = "WA";
|
|
26
|
-
})(AustralianStates
|
|
27
|
-
var EmploymentBasis;
|
|
23
|
+
})(AustralianStates || (AustralianStates = {}));
|
|
24
|
+
export var EmploymentBasis;
|
|
28
25
|
(function (EmploymentBasis) {
|
|
29
26
|
EmploymentBasis["Casual"] = "CASUAL";
|
|
30
27
|
EmploymentBasis["Contractor"] = "CONTRACTOR";
|
|
31
28
|
EmploymentBasis["FullTime"] = "FULL_TIME";
|
|
32
29
|
EmploymentBasis["MaternityLeave"] = "MATERNITY_LEAVE";
|
|
33
30
|
EmploymentBasis["PartTime"] = "PART_TIME";
|
|
34
|
-
})(EmploymentBasis
|
|
35
|
-
var EmploymentType;
|
|
31
|
+
})(EmploymentBasis || (EmploymentBasis = {}));
|
|
32
|
+
export var EmploymentType;
|
|
36
33
|
(function (EmploymentType) {
|
|
37
34
|
EmploymentType["Employee"] = "EMPLOYEE";
|
|
38
35
|
EmploymentType["NotWorking"] = "NOT_WORKING";
|
|
39
36
|
EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
|
|
40
|
-
})(EmploymentType
|
|
37
|
+
})(EmploymentType || (EmploymentType = {}));
|
|
41
38
|
/**
|
|
42
39
|
* Employment basis after returning from maternity leave.
|
|
43
40
|
*/
|
|
44
|
-
var MaternityLeaveReturnBasis;
|
|
41
|
+
export var MaternityLeaveReturnBasis;
|
|
45
42
|
(function (MaternityLeaveReturnBasis) {
|
|
46
43
|
MaternityLeaveReturnBasis["Casual"] = "CASUAL";
|
|
47
44
|
MaternityLeaveReturnBasis["Contractor"] = "CONTRACTOR";
|
|
48
45
|
MaternityLeaveReturnBasis["FullTime"] = "FULL_TIME";
|
|
49
46
|
MaternityLeaveReturnBasis["PartTime"] = "PART_TIME";
|
|
50
|
-
})(MaternityLeaveReturnBasis
|
|
47
|
+
})(MaternityLeaveReturnBasis || (MaternityLeaveReturnBasis = {}));
|
|
51
48
|
/**
|
|
52
49
|
* role of the user that made the action
|
|
53
50
|
*/
|
|
54
|
-
var ActionedByRole;
|
|
51
|
+
export var ActionedByRole;
|
|
55
52
|
(function (ActionedByRole) {
|
|
56
53
|
ActionedByRole["Customer"] = "customer";
|
|
57
54
|
ActionedByRole["Team"] = "team";
|
|
58
|
-
})(ActionedByRole
|
|
59
|
-
var PayloadType;
|
|
55
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
56
|
+
export var PayloadType;
|
|
60
57
|
(function (PayloadType) {
|
|
61
58
|
PayloadType["Previous"] = "PREVIOUS";
|
|
62
59
|
PayloadType["Primary"] = "PRIMARY";
|
|
63
60
|
PayloadType["Secondary"] = "SECONDARY";
|
|
64
|
-
})(PayloadType
|
|
65
|
-
var PublicEmploymentType;
|
|
61
|
+
})(PayloadType || (PayloadType = {}));
|
|
62
|
+
export var PublicEmploymentType;
|
|
66
63
|
(function (PublicEmploymentType) {
|
|
67
64
|
PublicEmploymentType["EmploymentCreated"] = "EmploymentCreated";
|
|
68
65
|
PublicEmploymentType["EmploymentUpdated"] = "EmploymentUpdated";
|
|
69
|
-
})(PublicEmploymentType
|
|
66
|
+
})(PublicEmploymentType || (PublicEmploymentType = {}));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PublicExpenseType = exports.ActionedByRole = exports.ExpenseType = exports.Frequency = void 0;
|
|
4
|
-
var Frequency;
|
|
1
|
+
export var Frequency;
|
|
5
2
|
(function (Frequency) {
|
|
6
3
|
Frequency["Fortnightly"] = "FORTNIGHTLY";
|
|
7
4
|
Frequency["Monthly"] = "MONTHLY";
|
|
8
5
|
Frequency["Quarterly"] = "QUARTERLY";
|
|
9
6
|
Frequency["Weekly"] = "WEEKLY";
|
|
10
7
|
Frequency["Yearly"] = "YEARLY";
|
|
11
|
-
})(Frequency
|
|
12
|
-
var ExpenseType;
|
|
8
|
+
})(Frequency || (Frequency = {}));
|
|
9
|
+
export var ExpenseType;
|
|
13
10
|
(function (ExpenseType) {
|
|
14
11
|
ExpenseType["Board"] = "BOARD";
|
|
15
12
|
ExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
|
|
@@ -34,17 +31,17 @@ var ExpenseType;
|
|
|
34
31
|
ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
|
|
35
32
|
ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
|
|
36
33
|
ExpenseType["Transport"] = "TRANSPORT";
|
|
37
|
-
})(ExpenseType
|
|
34
|
+
})(ExpenseType || (ExpenseType = {}));
|
|
38
35
|
/**
|
|
39
36
|
* role of the user that made the action
|
|
40
37
|
*/
|
|
41
|
-
var ActionedByRole;
|
|
38
|
+
export var ActionedByRole;
|
|
42
39
|
(function (ActionedByRole) {
|
|
43
40
|
ActionedByRole["Customer"] = "customer";
|
|
44
41
|
ActionedByRole["Team"] = "team";
|
|
45
|
-
})(ActionedByRole
|
|
46
|
-
var PublicExpenseType;
|
|
42
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
43
|
+
export var PublicExpenseType;
|
|
47
44
|
(function (PublicExpenseType) {
|
|
48
45
|
PublicExpenseType["ExpenseCreated"] = "ExpenseCreated";
|
|
49
46
|
PublicExpenseType["ExpenseUpdated"] = "ExpenseUpdated";
|
|
50
|
-
})(PublicExpenseType
|
|
47
|
+
})(PublicExpenseType || (PublicExpenseType = {}));
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.PublicIncomeType = exports.ActionedByRole = exports.IncomeType = exports.Proportions = exports.Frequency = exports.BenefitType = void 0;
|
|
4
|
-
var BenefitType;
|
|
1
|
+
export var BenefitType;
|
|
5
2
|
(function (BenefitType) {
|
|
6
3
|
BenefitType["AgePension"] = "AGE_PENSION";
|
|
7
4
|
BenefitType["DisabilitySupportPension"] = "DISABILITY_SUPPORT_PENSION";
|
|
8
5
|
BenefitType["FamilyTax"] = "FAMILY_TAX";
|
|
9
6
|
BenefitType["Other"] = "OTHER";
|
|
10
|
-
})(BenefitType
|
|
11
|
-
var Frequency;
|
|
7
|
+
})(BenefitType || (BenefitType = {}));
|
|
8
|
+
export var Frequency;
|
|
12
9
|
(function (Frequency) {
|
|
13
10
|
Frequency["Fortnightly"] = "FORTNIGHTLY";
|
|
14
11
|
Frequency["Monthly"] = "MONTHLY";
|
|
15
12
|
Frequency["Quarterly"] = "QUARTERLY";
|
|
16
13
|
Frequency["Weekly"] = "WEEKLY";
|
|
17
14
|
Frequency["Yearly"] = "YEARLY";
|
|
18
|
-
})(Frequency
|
|
15
|
+
})(Frequency || (Frequency = {}));
|
|
19
16
|
/**
|
|
20
17
|
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
21
18
|
* not specified.
|
|
22
19
|
*/
|
|
23
|
-
var Proportions;
|
|
20
|
+
export var Proportions;
|
|
24
21
|
(function (Proportions) {
|
|
25
22
|
Proportions["Equal"] = "EQUAL";
|
|
26
23
|
Proportions["NotSpecified"] = "NOT_SPECIFIED";
|
|
27
24
|
Proportions["Specified"] = "SPECIFIED";
|
|
28
|
-
})(Proportions
|
|
29
|
-
var IncomeType;
|
|
25
|
+
})(Proportions || (Proportions = {}));
|
|
26
|
+
export var IncomeType;
|
|
30
27
|
(function (IncomeType) {
|
|
31
28
|
IncomeType["ChildMaintenance"] = "CHILD_MAINTENANCE";
|
|
32
29
|
IncomeType["ForeignIncome"] = "FOREIGN_INCOME";
|
|
@@ -49,17 +46,17 @@ var IncomeType;
|
|
|
49
46
|
IncomeType["SelfEmployedBusinessIncomeLowDoc"] = "SELF_EMPLOYED_BUSINESS_INCOME_LOW_DOC";
|
|
50
47
|
IncomeType["SuperAnnuityPension"] = "SUPER_ANNUITY_PENSION";
|
|
51
48
|
IncomeType["WorkersCompensation"] = "WORKERS_COMPENSATION";
|
|
52
|
-
})(IncomeType
|
|
49
|
+
})(IncomeType || (IncomeType = {}));
|
|
53
50
|
/**
|
|
54
51
|
* role of the user that made the action
|
|
55
52
|
*/
|
|
56
|
-
var ActionedByRole;
|
|
53
|
+
export var ActionedByRole;
|
|
57
54
|
(function (ActionedByRole) {
|
|
58
55
|
ActionedByRole["Customer"] = "customer";
|
|
59
56
|
ActionedByRole["Team"] = "team";
|
|
60
|
-
})(ActionedByRole
|
|
61
|
-
var PublicIncomeType;
|
|
57
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
58
|
+
export var PublicIncomeType;
|
|
62
59
|
(function (PublicIncomeType) {
|
|
63
60
|
PublicIncomeType["IncomeCreated"] = "IncomeCreated";
|
|
64
61
|
PublicIncomeType["IncomeUpdated"] = "IncomeUpdated";
|
|
65
|
-
})(PublicIncomeType
|
|
62
|
+
})(PublicIncomeType || (PublicIncomeType = {}));
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.ActionedByRole = exports.LiabilityType = exports.RepaymentTypeDetails = exports.RepaymentFrequency = exports.Proportions = exports.InterestType = exports.ClearingFromOtherSource = void 0;
|
|
4
|
-
var ClearingFromOtherSource;
|
|
1
|
+
export var ClearingFromOtherSource;
|
|
5
2
|
(function (ClearingFromOtherSource) {
|
|
6
3
|
ClearingFromOtherSource["PayingOut"] = "PAYING_OUT";
|
|
7
4
|
ClearingFromOtherSource["Reducing"] = "REDUCING";
|
|
8
|
-
})(ClearingFromOtherSource
|
|
9
|
-
var InterestType;
|
|
5
|
+
})(ClearingFromOtherSource || (ClearingFromOtherSource = {}));
|
|
6
|
+
export var InterestType;
|
|
10
7
|
(function (InterestType) {
|
|
11
8
|
InterestType["FixedRate"] = "FIXED_RATE";
|
|
12
9
|
InterestType["Variable"] = "VARIABLE";
|
|
13
|
-
})(InterestType
|
|
10
|
+
})(InterestType || (InterestType = {}));
|
|
14
11
|
/**
|
|
15
12
|
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
16
13
|
* not specified.
|
|
17
14
|
*/
|
|
18
|
-
var Proportions;
|
|
15
|
+
export var Proportions;
|
|
19
16
|
(function (Proportions) {
|
|
20
17
|
Proportions["Equal"] = "EQUAL";
|
|
21
18
|
Proportions["NotSpecified"] = "NOT_SPECIFIED";
|
|
22
19
|
Proportions["Specified"] = "SPECIFIED";
|
|
23
|
-
})(Proportions
|
|
24
|
-
var RepaymentFrequency;
|
|
20
|
+
})(Proportions || (Proportions = {}));
|
|
21
|
+
export var RepaymentFrequency;
|
|
25
22
|
(function (RepaymentFrequency) {
|
|
26
23
|
RepaymentFrequency["Fortnightly"] = "FORTNIGHTLY";
|
|
27
24
|
RepaymentFrequency["Monthly"] = "MONTHLY";
|
|
28
25
|
RepaymentFrequency["Weekly"] = "WEEKLY";
|
|
29
26
|
RepaymentFrequency["Yearly"] = "YEARLY";
|
|
30
|
-
})(RepaymentFrequency
|
|
31
|
-
var RepaymentTypeDetails;
|
|
27
|
+
})(RepaymentFrequency || (RepaymentFrequency = {}));
|
|
28
|
+
export var RepaymentTypeDetails;
|
|
32
29
|
(function (RepaymentTypeDetails) {
|
|
33
30
|
RepaymentTypeDetails["InterestOnly"] = "INTEREST_ONLY";
|
|
34
31
|
RepaymentTypeDetails["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
|
|
35
|
-
})(RepaymentTypeDetails
|
|
32
|
+
})(RepaymentTypeDetails || (RepaymentTypeDetails = {}));
|
|
36
33
|
/**
|
|
37
34
|
* LEASE_OR_HIRE_FINANCE is deprecated.
|
|
38
35
|
*/
|
|
39
|
-
var LiabilityType;
|
|
36
|
+
export var LiabilityType;
|
|
40
37
|
(function (LiabilityType) {
|
|
41
38
|
LiabilityType["CarLoan"] = "CAR_LOAN";
|
|
42
39
|
LiabilityType["CreditCard"] = "CREDIT_CARD";
|
|
@@ -52,17 +49,17 @@ var LiabilityType;
|
|
|
52
49
|
LiabilityType["ShortTermFinance"] = "SHORT_TERM_FINANCE";
|
|
53
50
|
LiabilityType["StoreCard"] = "STORE_CARD";
|
|
54
51
|
LiabilityType["TaxDebt"] = "TAX_DEBT";
|
|
55
|
-
})(LiabilityType
|
|
52
|
+
})(LiabilityType || (LiabilityType = {}));
|
|
56
53
|
/**
|
|
57
54
|
* role of the user that made the action
|
|
58
55
|
*/
|
|
59
|
-
var ActionedByRole;
|
|
56
|
+
export var ActionedByRole;
|
|
60
57
|
(function (ActionedByRole) {
|
|
61
58
|
ActionedByRole["Customer"] = "customer";
|
|
62
59
|
ActionedByRole["Team"] = "team";
|
|
63
|
-
})(ActionedByRole
|
|
64
|
-
var Type;
|
|
60
|
+
})(ActionedByRole || (ActionedByRole = {}));
|
|
61
|
+
export var Type;
|
|
65
62
|
(function (Type) {
|
|
66
63
|
Type["LiabilityCreated"] = "LiabilityCreated";
|
|
67
64
|
Type["LiabilityUpdated"] = "LiabilityUpdated";
|
|
68
|
-
})(Type
|
|
65
|
+
})(Type || (Type = {}));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Type = exports.Status = exports.IssuingCountry = exports.IDType = exports.IDTitle = exports.Gender = exports.AustralianState = void 0;
|
|
4
|
-
var AustralianState;
|
|
1
|
+
export var AustralianState;
|
|
5
2
|
(function (AustralianState) {
|
|
6
3
|
AustralianState["Act"] = "ACT";
|
|
7
4
|
AustralianState["NT"] = "NT";
|
|
@@ -11,13 +8,13 @@ var AustralianState;
|
|
|
11
8
|
AustralianState["Tas"] = "TAS";
|
|
12
9
|
AustralianState["Vic"] = "VIC";
|
|
13
10
|
AustralianState["Wa"] = "WA";
|
|
14
|
-
})(AustralianState
|
|
15
|
-
var Gender;
|
|
11
|
+
})(AustralianState || (AustralianState = {}));
|
|
12
|
+
export var Gender;
|
|
16
13
|
(function (Gender) {
|
|
17
14
|
Gender["Female"] = "FEMALE";
|
|
18
15
|
Gender["Male"] = "MALE";
|
|
19
|
-
})(Gender
|
|
20
|
-
var IDTitle;
|
|
16
|
+
})(Gender || (Gender = {}));
|
|
17
|
+
export var IDTitle;
|
|
21
18
|
(function (IDTitle) {
|
|
22
19
|
IDTitle["DR"] = "DR";
|
|
23
20
|
IDTitle["MS"] = "MS";
|
|
@@ -26,17 +23,17 @@ var IDTitle;
|
|
|
26
23
|
IDTitle["Mrs"] = "MRS";
|
|
27
24
|
IDTitle["Other"] = "OTHER";
|
|
28
25
|
IDTitle["Unknown"] = "UNKNOWN";
|
|
29
|
-
})(IDTitle
|
|
26
|
+
})(IDTitle || (IDTitle = {}));
|
|
30
27
|
/**
|
|
31
28
|
* ID Type
|
|
32
29
|
*/
|
|
33
|
-
var IDType;
|
|
30
|
+
export var IDType;
|
|
34
31
|
(function (IDType) {
|
|
35
32
|
IDType["AustralianDriverLicense"] = "australian_driver_license";
|
|
36
33
|
IDType["NationalIDCard"] = "national_id_card";
|
|
37
34
|
IDType["Passport"] = "passport";
|
|
38
|
-
})(IDType
|
|
39
|
-
var IssuingCountry;
|
|
35
|
+
})(IDType || (IDType = {}));
|
|
36
|
+
export var IssuingCountry;
|
|
40
37
|
(function (IssuingCountry) {
|
|
41
38
|
IssuingCountry["Afghanistan"] = "Afghanistan";
|
|
42
39
|
IssuingCountry["Albania"] = "Albania";
|
|
@@ -277,11 +274,11 @@ var IssuingCountry;
|
|
|
277
274
|
IssuingCountry["Yemen"] = "Yemen";
|
|
278
275
|
IssuingCountry["Zambia"] = "Zambia";
|
|
279
276
|
IssuingCountry["Zimbabwe"] = "Zimbabwe";
|
|
280
|
-
})(IssuingCountry
|
|
277
|
+
})(IssuingCountry || (IssuingCountry = {}));
|
|
281
278
|
/**
|
|
282
279
|
* Status
|
|
283
280
|
*/
|
|
284
|
-
var Status;
|
|
281
|
+
export var Status;
|
|
285
282
|
(function (Status) {
|
|
286
283
|
Status["Expired"] = "expired";
|
|
287
284
|
Status["FailedVerification"] = "failed_verification";
|
|
@@ -289,9 +286,9 @@ var Status;
|
|
|
289
286
|
Status["PendingUpload"] = "pending_upload";
|
|
290
287
|
Status["PendingVerification"] = "pending_verification";
|
|
291
288
|
Status["Verified"] = "verified";
|
|
292
|
-
})(Status
|
|
293
|
-
var Type;
|
|
289
|
+
})(Status || (Status = {}));
|
|
290
|
+
export var Type;
|
|
294
291
|
(function (Type) {
|
|
295
292
|
Type["RequiredDocumentCreated"] = "RequiredDocumentCreated";
|
|
296
293
|
Type["RequiredDocumentUpdated"] = "RequiredDocumentUpdated";
|
|
297
|
-
})(Type
|
|
294
|
+
})(Type || (Type = {}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.__esModule = true;
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param newApplication new application coming from events.
|
|
5
5
|
* @param existingApplication a saved dynamo application.
|
|
6
|
-
* @
|
|
6
|
+
* @returns merged application.
|
|
7
7
|
*/
|
|
8
8
|
export declare function deepMergeApplication(existingApplication: object | undefined, newApplication: object): any;
|