@lendi/act-credit-decisions-transform 1.9.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/README.md +31 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +28 -0
- package/lib/logger.d.ts +1 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/application-workflow-event.json +240 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +910 -0
- package/lib/schemas/public-application-event.json +250 -0
- package/lib/schemas/public-asset-event.json +679 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +609 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +278 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +133 -0
- package/lib/schemas/public-funding-position-event.json +419 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +262 -0
- package/lib/schemas/public-required-document-event.json +366 -0
- package/lib/schemas/public-update-applicant-event.json +606 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +10 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/transform-applicant.d.ts +8 -0
- package/lib/transform-events/transform-applicant.js +180 -0
- package/lib/transform-events/transform-application-workflow.d.ts +8 -0
- package/lib/transform-events/transform-application-workflow.js +30 -0
- package/lib/transform-events/transform-application.d.ts +20 -0
- package/lib/transform-events/transform-application.js +67 -0
- package/lib/transform-events/transform-asset-address.d.ts +25 -0
- package/lib/transform-events/transform-asset-address.js +87 -0
- package/lib/transform-events/transform-asset.d.ts +58 -0
- package/lib/transform-events/transform-asset.js +337 -0
- package/lib/transform-events/transform-employment.d.ts +8 -0
- package/lib/transform-events/transform-employment.js +106 -0
- package/lib/transform-events/transform-expenses.d.ts +41 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/transform-events/transform-funding-position.d.ts +21 -0
- package/lib/transform-events/transform-funding-position.js +107 -0
- package/lib/transform-events/transform-income.d.ts +48 -0
- package/lib/transform-events/transform-income.js +260 -0
- package/lib/transform-events/transform-liability.d.ts +12 -0
- package/lib/transform-events/transform-liability.js +117 -0
- package/lib/transform-events/transform-percent-owned.d.ts +10 -0
- package/lib/transform-events/transform-percent-owned.js +22 -0
- package/lib/transform-events/transform-required-document.d.ts +67 -0
- package/lib/transform-events/transform-required-document.js +148 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +25 -0
- package/lib/types/enum-mappings/applicant-gender.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-gender.js +11 -0
- package/lib/types/enum-mappings/applicant-type.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-type.js +10 -0
- package/lib/types/enum-mappings/asset-type.d.ts +3 -0
- package/lib/types/enum-mappings/asset-type.js +17 -0
- package/lib/types/enum-mappings/builder-type.d.ts +7 -0
- package/lib/types/enum-mappings/builder-type.js +9 -0
- package/lib/types/enum-mappings/company-structure.d.ts +7 -0
- package/lib/types/enum-mappings/company-structure.js +10 -0
- package/lib/types/enum-mappings/company-type.d.ts +7 -0
- package/lib/types/enum-mappings/company-type.js +11 -0
- package/lib/types/enum-mappings/construction-type.d.ts +7 -0
- package/lib/types/enum-mappings/construction-type.js +10 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +246 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +12 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +11 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +36 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +10 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.d.ts +3 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.js +16 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +15 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +16 -0
- package/lib/types/enum-mappings/index.d.ts +27 -0
- package/lib/types/enum-mappings/index.js +43 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +9 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +21 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +12 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +15 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +10 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +10 -0
- package/lib/types/enum-mappings/property-expense-category.d.ts +7 -0
- package/lib/types/enum-mappings/property-expense-category.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +12 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +9 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +11 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +23 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +11 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +13 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +13 -0
- package/lib/types/enum-mappings/to-be-purchased.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-purchased.js +8 -0
- package/lib/types/enum-mappings/to-be-used-as-security.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-used-as-security.js +8 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +9 -0
- package/lib/types/enum-mappings/trust.d.ts +7 -0
- package/lib/types/enum-mappings/trust.js +14 -0
- package/lib/types/enum-mappings/verification.d.ts +3 -0
- package/lib/types/enum-mappings/verification.js +13 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/application-workflow.d.ts +233 -0
- package/lib/types/events/application-workflow.js +172 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +628 -0
- package/lib/types/events/public-applicant.js +411 -0
- package/lib/types/events/public-application.d.ts +151 -0
- package/lib/types/events/public-application.js +103 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +502 -0
- package/lib/types/events/public-asset.js +348 -0
- package/lib/types/events/public-employment.d.ts +121 -0
- package/lib/types/events/public-employment.js +46 -0
- package/lib/types/events/public-expense.d.ts +84 -0
- package/lib/types/events/public-expense.js +51 -0
- package/lib/types/events/public-funding-position.d.ts +341 -0
- package/lib/types/events/public-funding-position.js +20 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +140 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +374 -0
- package/lib/types/events/public-required-document.js +297 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/update-application/merge-application.d.ts +14 -0
- package/lib/update-application/merge-application.js +175 -0
- package/lib/update-application/remove-ids-not-required.d.ts +11 -0
- package/lib/update-application/remove-ids-not-required.js +63 -0
- package/lib/update-application/update-primary-applicant.d.ts +27 -0
- package/lib/update-application/update-primary-applicant.js +46 -0
- package/lib/utils/address-tools.d.ts +84 -0
- package/lib/utils/address-tools.js +176 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/errors.d.ts +28 -0
- package/lib/utils/errors.js +43 -0
- package/lib/utils/formatYesNo.d.ts +8 -0
- package/lib/utils/formatYesNo.js +12 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +97 -0
- package/lib/utils/get-financial-institution.d.ts +8 -0
- package/lib/utils/get-financial-institution.js +17 -0
- package/lib/utils/is-asset-type.d.ts +25 -0
- package/lib/utils/is-asset-type.js +46 -0
- package/lib/utils/is-income-type.d.ts +73 -0
- package/lib/utils/is-income-type.js +134 -0
- package/lib/utils/iso-date.d.ts +7 -0
- package/lib/utils/iso-date.js +12 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +78 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: 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;
|
|
5
|
+
(function (Countries) {
|
|
6
|
+
Countries["Afghanistan"] = "Afghanistan";
|
|
7
|
+
Countries["Albania"] = "Albania";
|
|
8
|
+
Countries["Algeria"] = "Algeria";
|
|
9
|
+
Countries["AmericanSamoa"] = "American Samoa";
|
|
10
|
+
Countries["Andorra"] = "Andorra";
|
|
11
|
+
Countries["Angola"] = "Angola";
|
|
12
|
+
Countries["Anguilla"] = "Anguilla";
|
|
13
|
+
Countries["Antarctica"] = "Antarctica";
|
|
14
|
+
Countries["AntiguaAndBarbuda"] = "Antigua And Barbuda";
|
|
15
|
+
Countries["Argentina"] = "Argentina";
|
|
16
|
+
Countries["Armenia"] = "Armenia";
|
|
17
|
+
Countries["Aruba"] = "Aruba";
|
|
18
|
+
Countries["Australia"] = "Australia";
|
|
19
|
+
Countries["Austria"] = "Austria";
|
|
20
|
+
Countries["Azerbaijan"] = "Azerbaijan";
|
|
21
|
+
Countries["Bahamas"] = "Bahamas";
|
|
22
|
+
Countries["Bahrain"] = "Bahrain";
|
|
23
|
+
Countries["Bangladesh"] = "Bangladesh";
|
|
24
|
+
Countries["Barbados"] = "Barbados";
|
|
25
|
+
Countries["Belarus"] = "Belarus";
|
|
26
|
+
Countries["Belgium"] = "Belgium";
|
|
27
|
+
Countries["Belize"] = "Belize";
|
|
28
|
+
Countries["Benin"] = "Benin";
|
|
29
|
+
Countries["Bermuda"] = "Bermuda";
|
|
30
|
+
Countries["Bhutan"] = "Bhutan";
|
|
31
|
+
Countries["Bolivia"] = "Bolivia";
|
|
32
|
+
Countries["BosniaAndHerzegovina"] = "Bosnia And Herzegovina";
|
|
33
|
+
Countries["Botswana"] = "Botswana";
|
|
34
|
+
Countries["BouvetIsland"] = "Bouvet Island";
|
|
35
|
+
Countries["Brazil"] = "Brazil";
|
|
36
|
+
Countries["BritishIndianOceanTerritory"] = "British Indian Ocean Territory";
|
|
37
|
+
Countries["BritishVirginIslands"] = "British Virgin Islands";
|
|
38
|
+
Countries["BruneiDarussalam"] = "Brunei Darussalam";
|
|
39
|
+
Countries["Bulgaria"] = "Bulgaria";
|
|
40
|
+
Countries["BurkinaFaso"] = "Burkina Faso";
|
|
41
|
+
Countries["Burundi"] = "Burundi";
|
|
42
|
+
Countries["Cambodia"] = "Cambodia";
|
|
43
|
+
Countries["Cameroon"] = "Cameroon";
|
|
44
|
+
Countries["Canada"] = "Canada";
|
|
45
|
+
Countries["CapeVerde"] = "Cape Verde";
|
|
46
|
+
Countries["CaymanIslands"] = "Cayman Islands";
|
|
47
|
+
Countries["CentralAfricanRepublic"] = "Central African Republic";
|
|
48
|
+
Countries["Chad"] = "Chad";
|
|
49
|
+
Countries["Chile"] = "Chile";
|
|
50
|
+
Countries["China"] = "China";
|
|
51
|
+
Countries["ChristmasIsland"] = "Christmas Island";
|
|
52
|
+
Countries["CocosKeelingIslands"] = "Cocos (Keeling) Islands";
|
|
53
|
+
Countries["Colombia"] = "Colombia";
|
|
54
|
+
Countries["Comoros"] = "Comoros";
|
|
55
|
+
Countries["CookIslands"] = "Cook Islands";
|
|
56
|
+
Countries["CostaRica"] = "Costa Rica";
|
|
57
|
+
Countries["CoteDIvoire"] = "Cote D'ivoire";
|
|
58
|
+
Countries["Croatia"] = "Croatia";
|
|
59
|
+
Countries["Cuba"] = "Cuba";
|
|
60
|
+
Countries["Cyprus"] = "Cyprus";
|
|
61
|
+
Countries["CzechRepublic"] = "Czech Republic";
|
|
62
|
+
Countries["DemocraticPeopleSRepublicOfKorea"] = "Democratic People's Republic of Korea";
|
|
63
|
+
Countries["DemocraticRepublicOfTheCongo"] = "Democratic Republic Of The Congo";
|
|
64
|
+
Countries["Denmark"] = "Denmark";
|
|
65
|
+
Countries["Djibouti"] = "Djibouti";
|
|
66
|
+
Countries["Dominica"] = "Dominica";
|
|
67
|
+
Countries["DominicanRepublic"] = "Dominican Republic";
|
|
68
|
+
Countries["EastTimor"] = "East Timor";
|
|
69
|
+
Countries["Ecuador"] = "Ecuador";
|
|
70
|
+
Countries["Egypt"] = "Egypt";
|
|
71
|
+
Countries["ElSalvador"] = "El Salvador";
|
|
72
|
+
Countries["EquatorialGuinea"] = "Equatorial Guinea";
|
|
73
|
+
Countries["Eritrea"] = "Eritrea";
|
|
74
|
+
Countries["Estonia"] = "Estonia";
|
|
75
|
+
Countries["Ethiopia"] = "Ethiopia";
|
|
76
|
+
Countries["FalklandIslands"] = "Falkland Islands";
|
|
77
|
+
Countries["FaroeIslands"] = "Faroe Islands";
|
|
78
|
+
Countries["FederatedStatesOfMicronesia"] = "Federated States Of Micronesia";
|
|
79
|
+
Countries["Fiji"] = "Fiji";
|
|
80
|
+
Countries["Finland"] = "Finland";
|
|
81
|
+
Countries["France"] = "France";
|
|
82
|
+
Countries["FrenchGuiana"] = "French Guiana";
|
|
83
|
+
Countries["FrenchPolynesia"] = "French Polynesia";
|
|
84
|
+
Countries["FrenchSouthernTerritories"] = "French Southern Territories";
|
|
85
|
+
Countries["Gabon"] = "Gabon";
|
|
86
|
+
Countries["Gambia"] = "Gambia";
|
|
87
|
+
Countries["Georgia"] = "Georgia";
|
|
88
|
+
Countries["Germany"] = "Germany";
|
|
89
|
+
Countries["Ghana"] = "Ghana";
|
|
90
|
+
Countries["Gibraltar"] = "Gibraltar";
|
|
91
|
+
Countries["Greece"] = "Greece";
|
|
92
|
+
Countries["Greenland"] = "Greenland";
|
|
93
|
+
Countries["Grenada"] = "Grenada";
|
|
94
|
+
Countries["Guadeloupe"] = "Guadeloupe";
|
|
95
|
+
Countries["Guam"] = "Guam";
|
|
96
|
+
Countries["Guatemala"] = "Guatemala";
|
|
97
|
+
Countries["Guinea"] = "Guinea";
|
|
98
|
+
Countries["GuineaBissau"] = "Guinea-bissau";
|
|
99
|
+
Countries["Guyana"] = "Guyana";
|
|
100
|
+
Countries["Haiti"] = "Haiti";
|
|
101
|
+
Countries["HeardIslandAndMcdonaldIslands"] = "Heard Island And Mcdonald Islands";
|
|
102
|
+
Countries["HolySeeVaticanCityState"] = "Holy See (Vatican City State)";
|
|
103
|
+
Countries["Honduras"] = "Honduras";
|
|
104
|
+
Countries["HongKong"] = "Hong Kong";
|
|
105
|
+
Countries["Hungary"] = "Hungary";
|
|
106
|
+
Countries["Iceland"] = "Iceland";
|
|
107
|
+
Countries["India"] = "India";
|
|
108
|
+
Countries["Indonesia"] = "Indonesia";
|
|
109
|
+
Countries["Iran"] = "Iran";
|
|
110
|
+
Countries["Iraq"] = "Iraq";
|
|
111
|
+
Countries["Ireland"] = "Ireland";
|
|
112
|
+
Countries["Israel"] = "Israel";
|
|
113
|
+
Countries["Italy"] = "Italy";
|
|
114
|
+
Countries["Jamaica"] = "Jamaica";
|
|
115
|
+
Countries["Japan"] = "Japan";
|
|
116
|
+
Countries["Jordan"] = "Jordan";
|
|
117
|
+
Countries["Kazakstan"] = "Kazakstan";
|
|
118
|
+
Countries["Kenya"] = "Kenya";
|
|
119
|
+
Countries["Kiribati"] = "Kiribati";
|
|
120
|
+
Countries["Kosovo"] = "Kosovo";
|
|
121
|
+
Countries["Kuwait"] = "Kuwait";
|
|
122
|
+
Countries["Kyrgyzstan"] = "Kyrgyzstan";
|
|
123
|
+
Countries["Laos"] = "Laos";
|
|
124
|
+
Countries["Latvia"] = "Latvia";
|
|
125
|
+
Countries["Lebanon"] = "Lebanon";
|
|
126
|
+
Countries["Lesotho"] = "Lesotho";
|
|
127
|
+
Countries["Liberia"] = "Liberia";
|
|
128
|
+
Countries["LibyanArabJamahiriya"] = "Libyan Arab Jamahiriya";
|
|
129
|
+
Countries["Liechtenstein"] = "Liechtenstein";
|
|
130
|
+
Countries["Lithuania"] = "Lithuania";
|
|
131
|
+
Countries["Luxembourg"] = "Luxembourg";
|
|
132
|
+
Countries["Macau"] = "Macau";
|
|
133
|
+
Countries["Macedonia"] = "Macedonia";
|
|
134
|
+
Countries["Madagascar"] = "Madagascar";
|
|
135
|
+
Countries["Malawi"] = "Malawi";
|
|
136
|
+
Countries["Malaysia"] = "Malaysia";
|
|
137
|
+
Countries["Maldives"] = "Maldives";
|
|
138
|
+
Countries["Mali"] = "Mali";
|
|
139
|
+
Countries["Malta"] = "Malta";
|
|
140
|
+
Countries["MarshallIslands"] = "Marshall Islands";
|
|
141
|
+
Countries["Martinique"] = "Martinique";
|
|
142
|
+
Countries["Mauritania"] = "Mauritania";
|
|
143
|
+
Countries["Mauritius"] = "Mauritius";
|
|
144
|
+
Countries["Mayotte"] = "Mayotte";
|
|
145
|
+
Countries["Mexico"] = "Mexico";
|
|
146
|
+
Countries["Monaco"] = "Monaco";
|
|
147
|
+
Countries["Mongolia"] = "Mongolia";
|
|
148
|
+
Countries["Montenegro"] = "Montenegro";
|
|
149
|
+
Countries["Montserrat"] = "Montserrat";
|
|
150
|
+
Countries["Morocco"] = "Morocco";
|
|
151
|
+
Countries["Mozambique"] = "Mozambique";
|
|
152
|
+
Countries["Myanmar"] = "Myanmar";
|
|
153
|
+
Countries["Namibia"] = "Namibia";
|
|
154
|
+
Countries["Nauru"] = "Nauru";
|
|
155
|
+
Countries["Nepal"] = "Nepal";
|
|
156
|
+
Countries["Netherlands"] = "Netherlands";
|
|
157
|
+
Countries["NetherlandsAntilles"] = "Netherlands Antilles";
|
|
158
|
+
Countries["NewCaledonia"] = "New Caledonia";
|
|
159
|
+
Countries["NewZealand"] = "New Zealand";
|
|
160
|
+
Countries["Nicaragua"] = "Nicaragua";
|
|
161
|
+
Countries["Niger"] = "Niger";
|
|
162
|
+
Countries["Nigeria"] = "Nigeria";
|
|
163
|
+
Countries["Niue"] = "Niue";
|
|
164
|
+
Countries["NorfolkIsland"] = "Norfolk Island";
|
|
165
|
+
Countries["NorthernMarianaIslands"] = "Northern Mariana Islands";
|
|
166
|
+
Countries["Norway"] = "Norway";
|
|
167
|
+
Countries["Oman"] = "Oman";
|
|
168
|
+
Countries["Pakistan"] = "Pakistan";
|
|
169
|
+
Countries["Palau"] = "Palau";
|
|
170
|
+
Countries["PalestinianTerritory"] = "Palestinian Territory";
|
|
171
|
+
Countries["Panama"] = "Panama";
|
|
172
|
+
Countries["PapuaNewGuinea"] = "Papua New Guinea";
|
|
173
|
+
Countries["Paraguay"] = "Paraguay";
|
|
174
|
+
Countries["Peru"] = "Peru";
|
|
175
|
+
Countries["Philippines"] = "Philippines";
|
|
176
|
+
Countries["Pitcairn"] = "Pitcairn";
|
|
177
|
+
Countries["Poland"] = "Poland";
|
|
178
|
+
Countries["Portugal"] = "Portugal";
|
|
179
|
+
Countries["PuertoRico"] = "Puerto Rico";
|
|
180
|
+
Countries["Qatar"] = "Qatar";
|
|
181
|
+
Countries["RepublicOfMoldova"] = "Republic Of Moldova";
|
|
182
|
+
Countries["Romania"] = "Romania";
|
|
183
|
+
Countries["RussianFederation"] = "Russian Federation";
|
|
184
|
+
Countries["Rwanda"] = "Rwanda";
|
|
185
|
+
Countries["SANMarino"] = "San Marino";
|
|
186
|
+
Countries["SaintHelena"] = "Saint Helena";
|
|
187
|
+
Countries["SaintKittsAndNevis"] = "Saint Kitts And Nevis";
|
|
188
|
+
Countries["SaintLucia"] = "Saint Lucia";
|
|
189
|
+
Countries["SaintPierreAndMiquelon"] = "Saint Pierre And Miquelon";
|
|
190
|
+
Countries["SaintVincentAndTheGrenadines"] = "Saint Vincent And The Grenadines";
|
|
191
|
+
Countries["Samoa"] = "Samoa";
|
|
192
|
+
Countries["SaoTomeAndPrincipe"] = "Sao Tome And Principe";
|
|
193
|
+
Countries["SaudiArabia"] = "Saudi Arabia";
|
|
194
|
+
Countries["Senegal"] = "Senegal";
|
|
195
|
+
Countries["Serbia"] = "Serbia";
|
|
196
|
+
Countries["Seychelles"] = "Seychelles";
|
|
197
|
+
Countries["SierraLeone"] = "Sierra Leone";
|
|
198
|
+
Countries["Singapore"] = "Singapore";
|
|
199
|
+
Countries["Slovakia"] = "Slovakia";
|
|
200
|
+
Countries["Slovenia"] = "Slovenia";
|
|
201
|
+
Countries["SolomonIslands"] = "Solomon Islands";
|
|
202
|
+
Countries["Somalia"] = "Somalia";
|
|
203
|
+
Countries["SouthAfrica"] = "South Africa";
|
|
204
|
+
Countries["SouthGeorgiaAndTheSouthSandwichIslands"] = "South Georgia And The South Sandwich Islands";
|
|
205
|
+
Countries["Spain"] = "Spain";
|
|
206
|
+
Countries["SriLanka"] = "Sri Lanka";
|
|
207
|
+
Countries["Sudan"] = "Sudan";
|
|
208
|
+
Countries["Suriname"] = "Suriname";
|
|
209
|
+
Countries["SvalbardAndJanMayen"] = "Svalbard And Jan Mayen";
|
|
210
|
+
Countries["Swaziland"] = "Swaziland";
|
|
211
|
+
Countries["Sweden"] = "Sweden";
|
|
212
|
+
Countries["Switzerland"] = "Switzerland";
|
|
213
|
+
Countries["SyrianArabRepublic"] = "Syrian Arab Republic";
|
|
214
|
+
Countries["Taiwan"] = "Taiwan";
|
|
215
|
+
Countries["Tajikistan"] = "Tajikistan";
|
|
216
|
+
Countries["Tanzania"] = "Tanzania";
|
|
217
|
+
Countries["Thailand"] = "Thailand";
|
|
218
|
+
Countries["TheRepublicOfSouthKorea"] = "The Republic of South Korea";
|
|
219
|
+
Countries["Togo"] = "Togo";
|
|
220
|
+
Countries["Tokelau"] = "Tokelau";
|
|
221
|
+
Countries["Tonga"] = "Tonga";
|
|
222
|
+
Countries["TrinidadAndTobago"] = "Trinidad And Tobago";
|
|
223
|
+
Countries["Tunisia"] = "Tunisia";
|
|
224
|
+
Countries["Turkey"] = "Turkey";
|
|
225
|
+
Countries["Turkmenistan"] = "Turkmenistan";
|
|
226
|
+
Countries["TurksAndCaicosIslands"] = "Turks And Caicos Islands";
|
|
227
|
+
Countries["Tuvalu"] = "Tuvalu";
|
|
228
|
+
Countries["USVirginIslands"] = "US Virgin Islands";
|
|
229
|
+
Countries["Uganda"] = "Uganda";
|
|
230
|
+
Countries["Ukraine"] = "Ukraine";
|
|
231
|
+
Countries["UnitedArabEmirates"] = "United Arab Emirates";
|
|
232
|
+
Countries["UnitedKingdom"] = "United Kingdom";
|
|
233
|
+
Countries["UnitedStatesMinorOutlyingIslands"] = "United States Minor Outlying Islands";
|
|
234
|
+
Countries["UnitedStatesOfAmerica"] = "United States of America";
|
|
235
|
+
Countries["Uruguay"] = "Uruguay";
|
|
236
|
+
Countries["Uzbekistan"] = "Uzbekistan";
|
|
237
|
+
Countries["Vanuatu"] = "Vanuatu";
|
|
238
|
+
Countries["Venezuela"] = "Venezuela";
|
|
239
|
+
Countries["Vietnam"] = "Vietnam";
|
|
240
|
+
Countries["WallisAndFutuna"] = "Wallis And Futuna";
|
|
241
|
+
Countries["WesternSahara"] = "Western Sahara";
|
|
242
|
+
Countries["Yemen"] = "Yemen";
|
|
243
|
+
Countries["Zambia"] = "Zambia";
|
|
244
|
+
Countries["Zimbabwe"] = "Zimbabwe";
|
|
245
|
+
})(Countries = exports.Countries || (exports.Countries = {}));
|
|
246
|
+
var BuilderType;
|
|
247
|
+
(function (BuilderType) {
|
|
248
|
+
BuilderType["LicensedBuilder"] = "LICENSED_BUILDER";
|
|
249
|
+
BuilderType["OwnerBuilder"] = "OWNER_BUILDER";
|
|
250
|
+
})(BuilderType = exports.BuilderType || (exports.BuilderType = {}));
|
|
251
|
+
var ConstructionType;
|
|
252
|
+
(function (ConstructionType) {
|
|
253
|
+
ConstructionType["BuildAProperty"] = "BUILD_A_PROPERTY";
|
|
254
|
+
ConstructionType["KnockdownRebuild"] = "KNOCKDOWN_REBUILD";
|
|
255
|
+
ConstructionType["StructuralRenovations"] = "STRUCTURAL_RENOVATIONS";
|
|
256
|
+
})(ConstructionType = exports.ConstructionType || (exports.ConstructionType = {}));
|
|
257
|
+
/**
|
|
258
|
+
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
259
|
+
* not specified.
|
|
260
|
+
*/
|
|
261
|
+
var Proportions;
|
|
262
|
+
(function (Proportions) {
|
|
263
|
+
Proportions["Equal"] = "EQUAL";
|
|
264
|
+
Proportions["NotSpecified"] = "NOT_SPECIFIED";
|
|
265
|
+
Proportions["Specified"] = "SPECIFIED";
|
|
266
|
+
})(Proportions = exports.Proportions || (exports.Proportions = {}));
|
|
267
|
+
var PrimaryPurpose;
|
|
268
|
+
(function (PrimaryPurpose) {
|
|
269
|
+
PrimaryPurpose["Investment"] = "INVESTMENT";
|
|
270
|
+
PrimaryPurpose["OwnerOccupied"] = "OWNER_OCCUPIED";
|
|
271
|
+
})(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
|
|
272
|
+
var Frequency;
|
|
273
|
+
(function (Frequency) {
|
|
274
|
+
Frequency["Fortnightly"] = "FORTNIGHTLY";
|
|
275
|
+
Frequency["Monthly"] = "MONTHLY";
|
|
276
|
+
Frequency["Quarterly"] = "QUARTERLY";
|
|
277
|
+
Frequency["Weekly"] = "WEEKLY";
|
|
278
|
+
Frequency["Yearly"] = "YEARLY";
|
|
279
|
+
})(Frequency = exports.Frequency || (exports.Frequency = {}));
|
|
280
|
+
var PropertyExpenseType;
|
|
281
|
+
(function (PropertyExpenseType) {
|
|
282
|
+
PropertyExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
|
|
283
|
+
PropertyExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
|
|
284
|
+
PropertyExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
|
|
285
|
+
PropertyExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
|
|
286
|
+
})(PropertyExpenseType = exports.PropertyExpenseType || (exports.PropertyExpenseType = {}));
|
|
287
|
+
var PropertyStatus;
|
|
288
|
+
(function (PropertyStatus) {
|
|
289
|
+
PropertyStatus["Established"] = "ESTABLISHED";
|
|
290
|
+
PropertyStatus["NewBuilding"] = "NEW_BUILDING";
|
|
291
|
+
PropertyStatus["OffThePlan"] = "OFF_THE_PLAN";
|
|
292
|
+
PropertyStatus["VacantLand"] = "VACANT_LAND";
|
|
293
|
+
})(PropertyStatus = exports.PropertyStatus || (exports.PropertyStatus = {}));
|
|
294
|
+
var PropertyType;
|
|
295
|
+
(function (PropertyType) {
|
|
296
|
+
PropertyType["ApartmentUnitLessThan50M2"] = "APARTMENT_UNIT_LESS_THAN_50M2";
|
|
297
|
+
PropertyType["ApartmentUnitMoreThan50M2"] = "APARTMENT_UNIT_MORE_THAN_50M2";
|
|
298
|
+
PropertyType["Duplex"] = "DUPLEX";
|
|
299
|
+
PropertyType["FullyDetachedHouse"] = "FULLY_DETACHED_HOUSE";
|
|
300
|
+
PropertyType["KitHome"] = "KIT_HOME";
|
|
301
|
+
PropertyType["Land"] = "LAND";
|
|
302
|
+
PropertyType["MultiDwellingSingleTitle"] = "MULTI_DWELLING_SINGLE_TITLE";
|
|
303
|
+
PropertyType["PropertyOver10_Ha"] = "PROPERTY_OVER_10_HA";
|
|
304
|
+
PropertyType["SemiDetachedHouse"] = "SEMI_DETACHED_HOUSE";
|
|
305
|
+
PropertyType["ServicedApartment"] = "SERVICED_APARTMENT";
|
|
306
|
+
PropertyType["StudentAccommodation"] = "STUDENT_ACCOMMODATION";
|
|
307
|
+
PropertyType["Studio"] = "STUDIO";
|
|
308
|
+
PropertyType["Terrace"] = "TERRACE";
|
|
309
|
+
PropertyType["Townhouse"] = "TOWNHOUSE";
|
|
310
|
+
PropertyType["Villa"] = "VILLA";
|
|
311
|
+
PropertyType["WarehouseApartment"] = "WAREHOUSE_APARTMENT";
|
|
312
|
+
})(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
|
|
313
|
+
var AssetType;
|
|
314
|
+
(function (AssetType) {
|
|
315
|
+
AssetType["Gifts"] = "GIFTS";
|
|
316
|
+
AssetType["HomeContents"] = "HOME_CONTENTS";
|
|
317
|
+
AssetType["ManagedFunds"] = "MANAGED_FUNDS";
|
|
318
|
+
AssetType["OtherAsset"] = "OTHER_ASSET";
|
|
319
|
+
AssetType["Property"] = "PROPERTY";
|
|
320
|
+
AssetType["SavingCheckAccount"] = "SAVING_CHECK_ACCOUNT";
|
|
321
|
+
AssetType["Shares"] = "SHARES";
|
|
322
|
+
AssetType["Superannuation"] = "SUPERANNUATION";
|
|
323
|
+
AssetType["TermDeposit"] = "TERM_DEPOSIT";
|
|
324
|
+
AssetType["Vehicle"] = "VEHICLE";
|
|
325
|
+
})(AssetType = exports.AssetType || (exports.AssetType = {}));
|
|
326
|
+
var ZoneType;
|
|
327
|
+
(function (ZoneType) {
|
|
328
|
+
ZoneType["Commercial"] = "COMMERCIAL";
|
|
329
|
+
ZoneType["Industrial"] = "INDUSTRIAL";
|
|
330
|
+
ZoneType["Residential"] = "RESIDENTIAL";
|
|
331
|
+
ZoneType["Rural"] = "RURAL";
|
|
332
|
+
})(ZoneType = exports.ZoneType || (exports.ZoneType = {}));
|
|
333
|
+
/**
|
|
334
|
+
* role of the user that made the action
|
|
335
|
+
*/
|
|
336
|
+
var ActionedByRole;
|
|
337
|
+
(function (ActionedByRole) {
|
|
338
|
+
ActionedByRole["Customer"] = "customer";
|
|
339
|
+
ActionedByRole["Team"] = "team";
|
|
340
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
341
|
+
/**
|
|
342
|
+
* schema version
|
|
343
|
+
*/
|
|
344
|
+
var PublicAssetType;
|
|
345
|
+
(function (PublicAssetType) {
|
|
346
|
+
PublicAssetType["AssetCreated"] = "AssetCreated";
|
|
347
|
+
PublicAssetType["AssetUpdated"] = "AssetUpdated";
|
|
348
|
+
})(PublicAssetType = exports.PublicAssetType || (exports.PublicAssetType = {}));
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create or update
|
|
3
|
+
*/
|
|
4
|
+
export interface PublicEmployment {
|
|
5
|
+
payload: Payload;
|
|
6
|
+
type: PublicEmploymentType;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* create or update employment payload
|
|
14
|
+
*/
|
|
15
|
+
export interface Payload {
|
|
16
|
+
/**
|
|
17
|
+
* uuid of applicant
|
|
18
|
+
*/
|
|
19
|
+
applicantId: string;
|
|
20
|
+
/**
|
|
21
|
+
* uuid of application
|
|
22
|
+
*/
|
|
23
|
+
applicationId: string;
|
|
24
|
+
/**
|
|
25
|
+
* uuid of the related company
|
|
26
|
+
*/
|
|
27
|
+
companyId?: string;
|
|
28
|
+
employmentBasis?: EmploymentBasis;
|
|
29
|
+
employmentType?: EmploymentType;
|
|
30
|
+
endDate?: null | string;
|
|
31
|
+
/**
|
|
32
|
+
* uuid of employment
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
maternityLeaveReturnBasis?: MaternityLeaveReturnBasis;
|
|
36
|
+
maternityLeaveReturnDate?: string;
|
|
37
|
+
meta?: Meta;
|
|
38
|
+
onProbation?: boolean;
|
|
39
|
+
role?: Role;
|
|
40
|
+
startDate?: string;
|
|
41
|
+
type: PayloadType;
|
|
42
|
+
}
|
|
43
|
+
export declare enum EmploymentBasis {
|
|
44
|
+
Casual = "CASUAL",
|
|
45
|
+
Contractor = "CONTRACTOR",
|
|
46
|
+
FullTime = "FULL_TIME",
|
|
47
|
+
MaternityLeave = "MATERNITY_LEAVE",
|
|
48
|
+
PartTime = "PART_TIME"
|
|
49
|
+
}
|
|
50
|
+
export declare enum EmploymentType {
|
|
51
|
+
Employee = "EMPLOYEE",
|
|
52
|
+
NotWorking = "NOT_WORKING",
|
|
53
|
+
SelfEmployed = "SELF_EMPLOYED"
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Employment basis after returning from maternity leave.
|
|
57
|
+
*/
|
|
58
|
+
export declare enum MaternityLeaveReturnBasis {
|
|
59
|
+
Casual = "CASUAL",
|
|
60
|
+
Contractor = "CONTRACTOR",
|
|
61
|
+
FullTime = "FULL_TIME",
|
|
62
|
+
PartTime = "PART_TIME"
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The metadata of the employment
|
|
66
|
+
*/
|
|
67
|
+
export interface Meta {
|
|
68
|
+
/**
|
|
69
|
+
* uuid of user who made the action (create/update/delete)
|
|
70
|
+
*/
|
|
71
|
+
actionedBy: string;
|
|
72
|
+
/**
|
|
73
|
+
* role of the user that made the action
|
|
74
|
+
*/
|
|
75
|
+
actionedByRole: ActionedByRole;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* role of the user that made the action
|
|
79
|
+
*/
|
|
80
|
+
export declare enum ActionedByRole {
|
|
81
|
+
Customer = "customer",
|
|
82
|
+
Team = "team"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* ANZSCO role. Complete list can be found as anzsco property here
|
|
86
|
+
* https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
|
|
87
|
+
* Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
|
|
88
|
+
*/
|
|
89
|
+
export interface Role {
|
|
90
|
+
anzsco?: Anzsco;
|
|
91
|
+
/**
|
|
92
|
+
* ASCO role. Complete list can be found as asco property here
|
|
93
|
+
* https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
|
|
94
|
+
* Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
|
|
95
|
+
*/
|
|
96
|
+
asco?: Asco;
|
|
97
|
+
}
|
|
98
|
+
export interface Anzsco {
|
|
99
|
+
category?: string;
|
|
100
|
+
code?: number;
|
|
101
|
+
occupation?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* ASCO role. Complete list can be found as asco property here
|
|
105
|
+
* https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
|
|
106
|
+
* Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
|
|
107
|
+
*/
|
|
108
|
+
export interface Asco {
|
|
109
|
+
category?: string;
|
|
110
|
+
code?: string;
|
|
111
|
+
occupation?: string;
|
|
112
|
+
}
|
|
113
|
+
export declare enum PayloadType {
|
|
114
|
+
Previous = "PREVIOUS",
|
|
115
|
+
Primary = "PRIMARY",
|
|
116
|
+
Secondary = "SECONDARY"
|
|
117
|
+
}
|
|
118
|
+
export declare enum PublicEmploymentType {
|
|
119
|
+
EmploymentV2Created = "EmploymentV2Created",
|
|
120
|
+
EmploymentV2Updated = "EmploymentV2Updated"
|
|
121
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicEmploymentType = exports.PayloadType = exports.ActionedByRole = exports.MaternityLeaveReturnBasis = exports.EmploymentType = exports.EmploymentBasis = void 0;
|
|
4
|
+
var EmploymentBasis;
|
|
5
|
+
(function (EmploymentBasis) {
|
|
6
|
+
EmploymentBasis["Casual"] = "CASUAL";
|
|
7
|
+
EmploymentBasis["Contractor"] = "CONTRACTOR";
|
|
8
|
+
EmploymentBasis["FullTime"] = "FULL_TIME";
|
|
9
|
+
EmploymentBasis["MaternityLeave"] = "MATERNITY_LEAVE";
|
|
10
|
+
EmploymentBasis["PartTime"] = "PART_TIME";
|
|
11
|
+
})(EmploymentBasis = exports.EmploymentBasis || (exports.EmploymentBasis = {}));
|
|
12
|
+
var EmploymentType;
|
|
13
|
+
(function (EmploymentType) {
|
|
14
|
+
EmploymentType["Employee"] = "EMPLOYEE";
|
|
15
|
+
EmploymentType["NotWorking"] = "NOT_WORKING";
|
|
16
|
+
EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
|
|
17
|
+
})(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
|
|
18
|
+
/**
|
|
19
|
+
* Employment basis after returning from maternity leave.
|
|
20
|
+
*/
|
|
21
|
+
var MaternityLeaveReturnBasis;
|
|
22
|
+
(function (MaternityLeaveReturnBasis) {
|
|
23
|
+
MaternityLeaveReturnBasis["Casual"] = "CASUAL";
|
|
24
|
+
MaternityLeaveReturnBasis["Contractor"] = "CONTRACTOR";
|
|
25
|
+
MaternityLeaveReturnBasis["FullTime"] = "FULL_TIME";
|
|
26
|
+
MaternityLeaveReturnBasis["PartTime"] = "PART_TIME";
|
|
27
|
+
})(MaternityLeaveReturnBasis = exports.MaternityLeaveReturnBasis || (exports.MaternityLeaveReturnBasis = {}));
|
|
28
|
+
/**
|
|
29
|
+
* role of the user that made the action
|
|
30
|
+
*/
|
|
31
|
+
var ActionedByRole;
|
|
32
|
+
(function (ActionedByRole) {
|
|
33
|
+
ActionedByRole["Customer"] = "customer";
|
|
34
|
+
ActionedByRole["Team"] = "team";
|
|
35
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
36
|
+
var PayloadType;
|
|
37
|
+
(function (PayloadType) {
|
|
38
|
+
PayloadType["Previous"] = "PREVIOUS";
|
|
39
|
+
PayloadType["Primary"] = "PRIMARY";
|
|
40
|
+
PayloadType["Secondary"] = "SECONDARY";
|
|
41
|
+
})(PayloadType = exports.PayloadType || (exports.PayloadType = {}));
|
|
42
|
+
var PublicEmploymentType;
|
|
43
|
+
(function (PublicEmploymentType) {
|
|
44
|
+
PublicEmploymentType["EmploymentV2Created"] = "EmploymentV2Created";
|
|
45
|
+
PublicEmploymentType["EmploymentV2Updated"] = "EmploymentV2Updated";
|
|
46
|
+
})(PublicEmploymentType = exports.PublicEmploymentType || (exports.PublicEmploymentType = {}));
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create, update or delete
|
|
3
|
+
*/
|
|
4
|
+
export interface PublicExpense {
|
|
5
|
+
payload: Payload;
|
|
6
|
+
type: PublicExpenseType;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Payload {
|
|
13
|
+
applicantId: string;
|
|
14
|
+
applicationId: string;
|
|
15
|
+
expenses: Expense[];
|
|
16
|
+
/**
|
|
17
|
+
* uuid of Expense
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
meta?: Meta;
|
|
21
|
+
}
|
|
22
|
+
export interface Expense {
|
|
23
|
+
amount?: number;
|
|
24
|
+
comments?: string;
|
|
25
|
+
frequency: Frequency;
|
|
26
|
+
type: ExpenseType;
|
|
27
|
+
}
|
|
28
|
+
export declare enum Frequency {
|
|
29
|
+
Fortnightly = "FORTNIGHTLY",
|
|
30
|
+
Monthly = "MONTHLY",
|
|
31
|
+
Quarterly = "QUARTERLY",
|
|
32
|
+
Weekly = "WEEKLY",
|
|
33
|
+
Yearly = "YEARLY"
|
|
34
|
+
}
|
|
35
|
+
export declare enum ExpenseType {
|
|
36
|
+
Board = "BOARD",
|
|
37
|
+
BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
|
|
38
|
+
ChildAndSpousalMaintenance = "CHILD_AND_SPOUSAL_MAINTENANCE",
|
|
39
|
+
Childcare = "CHILDCARE",
|
|
40
|
+
ClothingAndPersonalCare = "CLOTHING_AND_PERSONAL_CARE",
|
|
41
|
+
Groceries = "GROCERIES",
|
|
42
|
+
HealthInsurance = "HEALTH_INSURANCE",
|
|
43
|
+
HigherVocationalTrainingEducation = "HIGHER_VOCATIONAL_TRAINING_EDUCATION",
|
|
44
|
+
Insurance = "INSURANCE",
|
|
45
|
+
InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
|
|
46
|
+
LifeInsurance = "LIFE_INSURANCE",
|
|
47
|
+
LivingExpensesEstimate = "LIVING_EXPENSES_ESTIMATE",
|
|
48
|
+
MedicalAndHealth = "MEDICAL_AND_HEALTH",
|
|
49
|
+
Other = "OTHER",
|
|
50
|
+
PetCare = "PET_CARE",
|
|
51
|
+
PrimaryResidenceRunningCosts = "PRIMARY_RESIDENCE_RUNNING_COSTS",
|
|
52
|
+
PrimarySecondaryEducation = "PRIMARY_SECONDARY_EDUCATION",
|
|
53
|
+
PrivateSchoolingAndTuition = "PRIVATE_SCHOOLING_AND_TUITION",
|
|
54
|
+
RecreationAndEntertainment = "RECREATION_AND_ENTERTAINMENT",
|
|
55
|
+
Rent = "RENT",
|
|
56
|
+
RentUtilities = "RENT_UTILITIES",
|
|
57
|
+
SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
|
|
58
|
+
TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
|
|
59
|
+
Transport = "TRANSPORT"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The metadata of the alieo
|
|
63
|
+
*/
|
|
64
|
+
export interface Meta {
|
|
65
|
+
/**
|
|
66
|
+
* uuid of user who made the action (create/update/delete)
|
|
67
|
+
*/
|
|
68
|
+
actionedBy?: string;
|
|
69
|
+
/**
|
|
70
|
+
* role of the user that made the action
|
|
71
|
+
*/
|
|
72
|
+
actionedByRole?: ActionedByRole;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* role of the user that made the action
|
|
76
|
+
*/
|
|
77
|
+
export declare enum ActionedByRole {
|
|
78
|
+
Customer = "customer",
|
|
79
|
+
Team = "team"
|
|
80
|
+
}
|
|
81
|
+
export declare enum PublicExpenseType {
|
|
82
|
+
ExpenseCreated = "ExpenseCreated",
|
|
83
|
+
ExpenseUpdated = "ExpenseUpdated"
|
|
84
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicExpenseType = exports.ActionedByRole = exports.ExpenseType = exports.Frequency = void 0;
|
|
4
|
+
var Frequency;
|
|
5
|
+
(function (Frequency) {
|
|
6
|
+
Frequency["Fortnightly"] = "FORTNIGHTLY";
|
|
7
|
+
Frequency["Monthly"] = "MONTHLY";
|
|
8
|
+
Frequency["Quarterly"] = "QUARTERLY";
|
|
9
|
+
Frequency["Weekly"] = "WEEKLY";
|
|
10
|
+
Frequency["Yearly"] = "YEARLY";
|
|
11
|
+
})(Frequency = exports.Frequency || (exports.Frequency = {}));
|
|
12
|
+
var ExpenseType;
|
|
13
|
+
(function (ExpenseType) {
|
|
14
|
+
ExpenseType["Board"] = "BOARD";
|
|
15
|
+
ExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
|
|
16
|
+
ExpenseType["ChildAndSpousalMaintenance"] = "CHILD_AND_SPOUSAL_MAINTENANCE";
|
|
17
|
+
ExpenseType["Childcare"] = "CHILDCARE";
|
|
18
|
+
ExpenseType["ClothingAndPersonalCare"] = "CLOTHING_AND_PERSONAL_CARE";
|
|
19
|
+
ExpenseType["Groceries"] = "GROCERIES";
|
|
20
|
+
ExpenseType["HealthInsurance"] = "HEALTH_INSURANCE";
|
|
21
|
+
ExpenseType["HigherVocationalTrainingEducation"] = "HIGHER_VOCATIONAL_TRAINING_EDUCATION";
|
|
22
|
+
ExpenseType["Insurance"] = "INSURANCE";
|
|
23
|
+
ExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
|
|
24
|
+
ExpenseType["LifeInsurance"] = "LIFE_INSURANCE";
|
|
25
|
+
ExpenseType["LivingExpensesEstimate"] = "LIVING_EXPENSES_ESTIMATE";
|
|
26
|
+
ExpenseType["MedicalAndHealth"] = "MEDICAL_AND_HEALTH";
|
|
27
|
+
ExpenseType["Other"] = "OTHER";
|
|
28
|
+
ExpenseType["PetCare"] = "PET_CARE";
|
|
29
|
+
ExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
|
|
30
|
+
ExpenseType["PrimarySecondaryEducation"] = "PRIMARY_SECONDARY_EDUCATION";
|
|
31
|
+
ExpenseType["PrivateSchoolingAndTuition"] = "PRIVATE_SCHOOLING_AND_TUITION";
|
|
32
|
+
ExpenseType["RecreationAndEntertainment"] = "RECREATION_AND_ENTERTAINMENT";
|
|
33
|
+
ExpenseType["Rent"] = "RENT";
|
|
34
|
+
ExpenseType["RentUtilities"] = "RENT_UTILITIES";
|
|
35
|
+
ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
|
|
36
|
+
ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
|
|
37
|
+
ExpenseType["Transport"] = "TRANSPORT";
|
|
38
|
+
})(ExpenseType = exports.ExpenseType || (exports.ExpenseType = {}));
|
|
39
|
+
/**
|
|
40
|
+
* role of the user that made the action
|
|
41
|
+
*/
|
|
42
|
+
var ActionedByRole;
|
|
43
|
+
(function (ActionedByRole) {
|
|
44
|
+
ActionedByRole["Customer"] = "customer";
|
|
45
|
+
ActionedByRole["Team"] = "team";
|
|
46
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
47
|
+
var PublicExpenseType;
|
|
48
|
+
(function (PublicExpenseType) {
|
|
49
|
+
PublicExpenseType["ExpenseCreated"] = "ExpenseCreated";
|
|
50
|
+
PublicExpenseType["ExpenseUpdated"] = "ExpenseUpdated";
|
|
51
|
+
})(PublicExpenseType = exports.PublicExpenseType || (exports.PublicExpenseType = {}));
|