@lendi/integrations-transform 1.5.6 → 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.
- package/lib/index.js +10 -22
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +2 -5
- package/lib/schemas/application-workflow-event.json +1 -30
- 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 -183
- 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 -66
- package/lib/transform-events/transform-percent-owned.d.ts +2 -1
- 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/housing-status.js +12 -16
- package/lib/types/enum-mappings/income-type.js +13 -17
- package/lib/types/enum-mappings/index.js +27 -39
- 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.d.ts +1 -33
- package/lib/types/events/application-workflow.js +10 -46
- 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,247 +1,243 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
_a[public_applicant_1.Countries.Yemen] = lixi_internal_request_1.CountryCodeList.Ye,
|
|
245
|
-
_a[public_applicant_1.Countries.Zambia] = lixi_internal_request_1.CountryCodeList.Zm,
|
|
246
|
-
_a[public_applicant_1.Countries.Zimbabwe] = lixi_internal_request_1.CountryCodeList.Zw,
|
|
247
|
-
_a);
|
|
1
|
+
import { Countries } from '../events/public-applicant';
|
|
2
|
+
import { CountryCodeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
export const countryCodeMapping = {
|
|
4
|
+
[Countries.Afghanistan]: CountryCodeList.AF,
|
|
5
|
+
[Countries.Albania]: CountryCodeList.Al,
|
|
6
|
+
[Countries.Algeria]: CountryCodeList.Dz,
|
|
7
|
+
[Countries.AmericanSamoa]: CountryCodeList.As,
|
|
8
|
+
[Countries.Andorra]: CountryCodeList.Ad,
|
|
9
|
+
[Countries.Angola]: CountryCodeList.Ao,
|
|
10
|
+
[Countries.Anguilla]: CountryCodeList.AI,
|
|
11
|
+
[Countries.Antarctica]: CountryCodeList.Aq,
|
|
12
|
+
[Countries.AntiguaAndBarbuda]: CountryCodeList.Ag,
|
|
13
|
+
[Countries.Argentina]: CountryCodeList.Ar,
|
|
14
|
+
[Countries.Armenia]: CountryCodeList.Am,
|
|
15
|
+
[Countries.Aruba]: CountryCodeList.Aw,
|
|
16
|
+
[Countries.Australia]: CountryCodeList.Au,
|
|
17
|
+
[Countries.Austria]: CountryCodeList.At,
|
|
18
|
+
[Countries.Azerbaijan]: CountryCodeList.Az,
|
|
19
|
+
[Countries.Bahamas]: CountryCodeList.Bs,
|
|
20
|
+
[Countries.Bahrain]: CountryCodeList.Bh,
|
|
21
|
+
[Countries.Bangladesh]: CountryCodeList.Bd,
|
|
22
|
+
[Countries.Barbados]: CountryCodeList.Bb,
|
|
23
|
+
[Countries.Belarus]: CountryCodeList.By,
|
|
24
|
+
[Countries.Belgium]: CountryCodeList.Be,
|
|
25
|
+
[Countries.Belize]: CountryCodeList.Bz,
|
|
26
|
+
[Countries.Benin]: CountryCodeList.Bj,
|
|
27
|
+
[Countries.Bermuda]: CountryCodeList.Bm,
|
|
28
|
+
[Countries.Bhutan]: CountryCodeList.BT,
|
|
29
|
+
[Countries.Bolivia]: CountryCodeList.Bo,
|
|
30
|
+
[Countries.BosniaAndHerzegovina]: CountryCodeList.Ba,
|
|
31
|
+
[Countries.Botswana]: CountryCodeList.BW,
|
|
32
|
+
[Countries.BouvetIsland]: CountryCodeList.Bv,
|
|
33
|
+
[Countries.Brazil]: CountryCodeList.Br,
|
|
34
|
+
[Countries.BritishIndianOceanTerritory]: CountryCodeList.Io,
|
|
35
|
+
[Countries.BritishVirginIslands]: CountryCodeList.VG,
|
|
36
|
+
[Countries.BruneiDarussalam]: CountryCodeList.Bn,
|
|
37
|
+
[Countries.Bulgaria]: CountryCodeList.Bg,
|
|
38
|
+
[Countries.BurkinaFaso]: CountryCodeList.Bf,
|
|
39
|
+
[Countries.Burundi]: CountryCodeList.BI,
|
|
40
|
+
[Countries.Cambodia]: CountryCodeList.Kh,
|
|
41
|
+
[Countries.Cameroon]: CountryCodeList.CM,
|
|
42
|
+
[Countries.Canada]: CountryCodeList.CA,
|
|
43
|
+
[Countries.CapeVerde]: CountryCodeList.Cv,
|
|
44
|
+
[Countries.CaymanIslands]: CountryCodeList.Ky,
|
|
45
|
+
[Countries.CentralAfricanRepublic]: CountryCodeList.CF,
|
|
46
|
+
[Countries.Chad]: CountryCodeList.Td,
|
|
47
|
+
[Countries.Chile]: CountryCodeList.Cl,
|
|
48
|
+
[Countries.China]: CountryCodeList.CN,
|
|
49
|
+
[Countries.ChristmasIsland]: CountryCodeList.Cx,
|
|
50
|
+
[Countries.CocosKeelingIslands]: CountryCodeList.Cc,
|
|
51
|
+
[Countries.Colombia]: CountryCodeList.Co,
|
|
52
|
+
[Countries.Comoros]: CountryCodeList.KM,
|
|
53
|
+
[Countries.CookIslands]: CountryCodeList.Ck,
|
|
54
|
+
[Countries.CostaRica]: CountryCodeList.CR,
|
|
55
|
+
[Countries.CoteDIvoire]: CountryCodeList.Ci,
|
|
56
|
+
[Countries.Croatia]: CountryCodeList.Hr,
|
|
57
|
+
[Countries.Cuba]: CountryCodeList.Cu,
|
|
58
|
+
[Countries.Cyprus]: CountryCodeList.Cy,
|
|
59
|
+
[Countries.CzechRepublic]: CountryCodeList.Cz,
|
|
60
|
+
[Countries.DemocraticPeopleSRepublicOfKorea]: CountryCodeList.Kp,
|
|
61
|
+
[Countries.DemocraticRepublicOfTheCongo]: CountryCodeList.CD,
|
|
62
|
+
[Countries.Denmark]: CountryCodeList.Dk,
|
|
63
|
+
[Countries.Djibouti]: CountryCodeList.Dj,
|
|
64
|
+
[Countries.Dominica]: CountryCodeList.Dm,
|
|
65
|
+
[Countries.DominicanRepublic]: CountryCodeList.Do,
|
|
66
|
+
[Countries.EastTimor]: CountryCodeList.Tl,
|
|
67
|
+
[Countries.Ecuador]: CountryCodeList.Ec,
|
|
68
|
+
[Countries.Egypt]: CountryCodeList.Eg,
|
|
69
|
+
[Countries.ElSalvador]: CountryCodeList.Sv,
|
|
70
|
+
[Countries.EquatorialGuinea]: CountryCodeList.Gq,
|
|
71
|
+
[Countries.Eritrea]: CountryCodeList.Er,
|
|
72
|
+
[Countries.Estonia]: CountryCodeList.Ee,
|
|
73
|
+
[Countries.Ethiopia]: CountryCodeList.Et,
|
|
74
|
+
[Countries.FalklandIslands]: CountryCodeList.Fk,
|
|
75
|
+
[Countries.FaroeIslands]: CountryCodeList.Fo,
|
|
76
|
+
[Countries.FederatedStatesOfMicronesia]: CountryCodeList.Fm,
|
|
77
|
+
[Countries.Fiji]: CountryCodeList.Fj,
|
|
78
|
+
[Countries.Finland]: CountryCodeList.Fi,
|
|
79
|
+
[Countries.France]: CountryCodeList.Fr,
|
|
80
|
+
[Countries.FrenchGuiana]: CountryCodeList.Gf,
|
|
81
|
+
[Countries.FrenchPolynesia]: CountryCodeList.Pf,
|
|
82
|
+
[Countries.FrenchSouthernTerritories]: CountryCodeList.Tf,
|
|
83
|
+
[Countries.Gabon]: CountryCodeList.Ga,
|
|
84
|
+
[Countries.Gambia]: CountryCodeList.Gm,
|
|
85
|
+
[Countries.Georgia]: CountryCodeList.Ge,
|
|
86
|
+
[Countries.Germany]: CountryCodeList.De,
|
|
87
|
+
[Countries.Ghana]: CountryCodeList.Gh,
|
|
88
|
+
[Countries.Gibraltar]: CountryCodeList.Gi,
|
|
89
|
+
[Countries.Greece]: CountryCodeList.Gr,
|
|
90
|
+
[Countries.Greenland]: CountryCodeList.Gl,
|
|
91
|
+
[Countries.Grenada]: CountryCodeList.Gd,
|
|
92
|
+
[Countries.Guadeloupe]: CountryCodeList.Gp,
|
|
93
|
+
[Countries.Guam]: CountryCodeList.Gu,
|
|
94
|
+
[Countries.Guatemala]: CountryCodeList.Gt,
|
|
95
|
+
[Countries.Guinea]: CountryCodeList.Gn,
|
|
96
|
+
[Countries.GuineaBissau]: CountryCodeList.Gw,
|
|
97
|
+
[Countries.Guyana]: CountryCodeList.Gy,
|
|
98
|
+
[Countries.Haiti]: CountryCodeList.HT,
|
|
99
|
+
[Countries.HeardIslandAndMcdonaldIslands]: CountryCodeList.Hm,
|
|
100
|
+
[Countries.HolySeeVaticanCityState]: CountryCodeList.Va,
|
|
101
|
+
[Countries.Honduras]: CountryCodeList.Hn,
|
|
102
|
+
[Countries.HongKong]: CountryCodeList.Hk,
|
|
103
|
+
[Countries.Hungary]: CountryCodeList.Hu,
|
|
104
|
+
[Countries.Iceland]: CountryCodeList.Is,
|
|
105
|
+
[Countries.India]: CountryCodeList.In,
|
|
106
|
+
[Countries.Indonesia]: CountryCodeList.ID,
|
|
107
|
+
[Countries.Iran]: CountryCodeList.IR,
|
|
108
|
+
[Countries.Iraq]: CountryCodeList.Iq,
|
|
109
|
+
[Countries.Ireland]: CountryCodeList.Ie,
|
|
110
|
+
[Countries.Israel]: CountryCodeList.IL,
|
|
111
|
+
[Countries.Italy]: CountryCodeList.It,
|
|
112
|
+
[Countries.Jamaica]: CountryCodeList.Jm,
|
|
113
|
+
[Countries.Japan]: CountryCodeList.Jp,
|
|
114
|
+
[Countries.Jordan]: CountryCodeList.Jo,
|
|
115
|
+
[Countries.Kazakstan]: CountryCodeList.Kz,
|
|
116
|
+
[Countries.Kenya]: CountryCodeList.Ke,
|
|
117
|
+
[Countries.Kiribati]: CountryCodeList.Ki,
|
|
118
|
+
[Countries.Kosovo]: CountryCodeList.Rs,
|
|
119
|
+
[Countries.Kuwait]: CountryCodeList.Kw,
|
|
120
|
+
[Countries.Kyrgyzstan]: CountryCodeList.Kg,
|
|
121
|
+
[Countries.Laos]: CountryCodeList.La,
|
|
122
|
+
[Countries.Latvia]: CountryCodeList.LV,
|
|
123
|
+
[Countries.Lebanon]: CountryCodeList.LB,
|
|
124
|
+
[Countries.Lesotho]: CountryCodeList.Ls,
|
|
125
|
+
[Countries.Liberia]: CountryCodeList.Lr,
|
|
126
|
+
[Countries.LibyanArabJamahiriya]: CountryCodeList.Ly,
|
|
127
|
+
[Countries.Liechtenstein]: CountryCodeList.Li,
|
|
128
|
+
[Countries.Lithuania]: CountryCodeList.Lt,
|
|
129
|
+
[Countries.Luxembourg]: CountryCodeList.Lu,
|
|
130
|
+
[Countries.Macau]: CountryCodeList.Mo,
|
|
131
|
+
[Countries.Macedonia]: CountryCodeList.Mk,
|
|
132
|
+
[Countries.Madagascar]: CountryCodeList.Mg,
|
|
133
|
+
[Countries.Malawi]: CountryCodeList.Mw,
|
|
134
|
+
[Countries.Malaysia]: CountryCodeList.My,
|
|
135
|
+
[Countries.Maldives]: CountryCodeList.Mv,
|
|
136
|
+
[Countries.Mali]: CountryCodeList.Ml,
|
|
137
|
+
[Countries.Malta]: CountryCodeList.MT,
|
|
138
|
+
[Countries.MarshallIslands]: CountryCodeList.Mh,
|
|
139
|
+
[Countries.Martinique]: CountryCodeList.Mq,
|
|
140
|
+
[Countries.Mauritania]: CountryCodeList.Mr,
|
|
141
|
+
[Countries.Mauritius]: CountryCodeList.Mu,
|
|
142
|
+
[Countries.Mayotte]: CountryCodeList.Yt,
|
|
143
|
+
[Countries.Mexico]: CountryCodeList.MX,
|
|
144
|
+
[Countries.Monaco]: CountryCodeList.Mc,
|
|
145
|
+
[Countries.Mongolia]: CountryCodeList.Mn,
|
|
146
|
+
[Countries.Montenegro]: CountryCodeList.Me,
|
|
147
|
+
[Countries.Montserrat]: CountryCodeList.MS,
|
|
148
|
+
[Countries.Morocco]: CountryCodeList.Ma,
|
|
149
|
+
[Countries.Mozambique]: CountryCodeList.Mz,
|
|
150
|
+
[Countries.Myanmar]: CountryCodeList.Mm,
|
|
151
|
+
[Countries.Namibia]: CountryCodeList.Na,
|
|
152
|
+
[Countries.Nauru]: CountryCodeList.Nr,
|
|
153
|
+
[Countries.Nepal]: CountryCodeList.NP,
|
|
154
|
+
[Countries.Netherlands]: CountryCodeList.Nl,
|
|
155
|
+
[Countries.NetherlandsAntilles]: CountryCodeList.Nl,
|
|
156
|
+
[Countries.NewCaledonia]: CountryCodeList.Nc,
|
|
157
|
+
[Countries.NewZealand]: CountryCodeList.Nz,
|
|
158
|
+
[Countries.Nicaragua]: CountryCodeList.NI,
|
|
159
|
+
[Countries.Niger]: CountryCodeList.Ne,
|
|
160
|
+
[Countries.Nigeria]: CountryCodeList.Ng,
|
|
161
|
+
[Countries.Niue]: CountryCodeList.Nu,
|
|
162
|
+
[Countries.NorfolkIsland]: CountryCodeList.Nf,
|
|
163
|
+
[Countries.NorthernMarianaIslands]: CountryCodeList.Mp,
|
|
164
|
+
[Countries.Norway]: CountryCodeList.No,
|
|
165
|
+
[Countries.Oman]: CountryCodeList.Om,
|
|
166
|
+
[Countries.Pakistan]: CountryCodeList.Pk,
|
|
167
|
+
[Countries.Palau]: CountryCodeList.Pw,
|
|
168
|
+
[Countries.PalestinianTerritory]: CountryCodeList.PS,
|
|
169
|
+
[Countries.Panama]: CountryCodeList.Pa,
|
|
170
|
+
[Countries.PapuaNewGuinea]: CountryCodeList.PG,
|
|
171
|
+
[Countries.Paraguay]: CountryCodeList.Py,
|
|
172
|
+
[Countries.Peru]: CountryCodeList.PE,
|
|
173
|
+
[Countries.Philippines]: CountryCodeList.Ph,
|
|
174
|
+
[Countries.Pitcairn]: CountryCodeList.Pn,
|
|
175
|
+
[Countries.Poland]: CountryCodeList.Pl,
|
|
176
|
+
[Countries.Portugal]: CountryCodeList.Pt,
|
|
177
|
+
[Countries.PuertoRico]: CountryCodeList.PR,
|
|
178
|
+
[Countries.Qatar]: CountryCodeList.QA,
|
|
179
|
+
[Countries.RepublicOfMoldova]: CountryCodeList.Md,
|
|
180
|
+
[Countries.Romania]: CountryCodeList.Ro,
|
|
181
|
+
[Countries.RussianFederation]: CountryCodeList.Ru,
|
|
182
|
+
[Countries.Rwanda]: CountryCodeList.Rw,
|
|
183
|
+
[Countries.SANMarino]: CountryCodeList.Sm,
|
|
184
|
+
[Countries.SaintHelena]: CountryCodeList.Sh,
|
|
185
|
+
[Countries.SaintKittsAndNevis]: CountryCodeList.Kn,
|
|
186
|
+
[Countries.SaintLucia]: CountryCodeList.Lc,
|
|
187
|
+
[Countries.SaintPierreAndMiquelon]: CountryCodeList.Pm,
|
|
188
|
+
[Countries.SaintVincentAndTheGrenadines]: CountryCodeList.Vc,
|
|
189
|
+
[Countries.Samoa]: CountryCodeList.Ws,
|
|
190
|
+
[Countries.SaoTomeAndPrincipe]: CountryCodeList.St,
|
|
191
|
+
[Countries.SaudiArabia]: CountryCodeList.Sa,
|
|
192
|
+
[Countries.Senegal]: CountryCodeList.Sn,
|
|
193
|
+
[Countries.Serbia]: CountryCodeList.Rs,
|
|
194
|
+
[Countries.Seychelles]: CountryCodeList.Sc,
|
|
195
|
+
[Countries.SierraLeone]: CountryCodeList.Sl,
|
|
196
|
+
[Countries.Singapore]: CountryCodeList.Sg,
|
|
197
|
+
[Countries.Slovakia]: CountryCodeList.Sk,
|
|
198
|
+
[Countries.Slovenia]: CountryCodeList.Si,
|
|
199
|
+
[Countries.SolomonIslands]: CountryCodeList.Sb,
|
|
200
|
+
[Countries.Somalia]: CountryCodeList.So,
|
|
201
|
+
[Countries.SouthAfrica]: CountryCodeList.Za,
|
|
202
|
+
[Countries.SouthGeorgiaAndTheSouthSandwichIslands]: CountryCodeList.Gs,
|
|
203
|
+
[Countries.Spain]: CountryCodeList.Es,
|
|
204
|
+
[Countries.SriLanka]: CountryCodeList.Lk,
|
|
205
|
+
[Countries.Sudan]: CountryCodeList.SD,
|
|
206
|
+
[Countries.Suriname]: CountryCodeList.Sr,
|
|
207
|
+
[Countries.SvalbardAndJanMayen]: CountryCodeList.Sj,
|
|
208
|
+
[Countries.Swaziland]: CountryCodeList.Sz,
|
|
209
|
+
[Countries.Sweden]: CountryCodeList.SE,
|
|
210
|
+
[Countries.Switzerland]: CountryCodeList.Ch,
|
|
211
|
+
[Countries.SyrianArabRepublic]: CountryCodeList.Sy,
|
|
212
|
+
[Countries.Taiwan]: CountryCodeList.Tw,
|
|
213
|
+
[Countries.Tajikistan]: CountryCodeList.Tj,
|
|
214
|
+
[Countries.Tanzania]: CountryCodeList.Tz,
|
|
215
|
+
[Countries.Thailand]: CountryCodeList.Th,
|
|
216
|
+
[Countries.TheRepublicOfSouthKorea]: CountryCodeList.Kr,
|
|
217
|
+
[Countries.Togo]: CountryCodeList.Tg,
|
|
218
|
+
[Countries.Tokelau]: CountryCodeList.Tk,
|
|
219
|
+
[Countries.Tonga]: CountryCodeList.To,
|
|
220
|
+
[Countries.TrinidadAndTobago]: CountryCodeList.Tt,
|
|
221
|
+
[Countries.Tunisia]: CountryCodeList.Tn,
|
|
222
|
+
[Countries.Turkey]: CountryCodeList.Tr,
|
|
223
|
+
[Countries.Turkmenistan]: CountryCodeList.Tm,
|
|
224
|
+
[Countries.TurksAndCaicosIslands]: CountryCodeList.Tc,
|
|
225
|
+
[Countries.Tuvalu]: CountryCodeList.Tv,
|
|
226
|
+
[Countries.USVirginIslands]: CountryCodeList.Vi,
|
|
227
|
+
[Countries.Uganda]: CountryCodeList.Ug,
|
|
228
|
+
[Countries.Ukraine]: CountryCodeList.Ua,
|
|
229
|
+
[Countries.UnitedArabEmirates]: CountryCodeList.AE,
|
|
230
|
+
[Countries.UnitedKingdom]: CountryCodeList.GB,
|
|
231
|
+
[Countries.UnitedStatesMinorOutlyingIslands]: CountryCodeList.Um,
|
|
232
|
+
[Countries.UnitedStatesOfAmerica]: CountryCodeList.Us,
|
|
233
|
+
[Countries.Uruguay]: CountryCodeList.Uy,
|
|
234
|
+
[Countries.Uzbekistan]: CountryCodeList.Uz,
|
|
235
|
+
[Countries.Vanuatu]: CountryCodeList.Vu,
|
|
236
|
+
[Countries.Venezuela]: CountryCodeList.Ve,
|
|
237
|
+
[Countries.Vietnam]: CountryCodeList.Vn,
|
|
238
|
+
[Countries.WallisAndFutuna]: CountryCodeList.Wf,
|
|
239
|
+
[Countries.WesternSahara]: CountryCodeList.Eh,
|
|
240
|
+
[Countries.Yemen]: CountryCodeList.Ye,
|
|
241
|
+
[Countries.Zambia]: CountryCodeList.Zm,
|
|
242
|
+
[Countries.Zimbabwe]: CountryCodeList.Zw,
|
|
243
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_a[public_employment_1.EmploymentBasis.Contractor] = lixi_internal_request_1.PaygBasisList.Contract,
|
|
11
|
-
_a[public_employment_1.EmploymentBasis.PartTime] = lixi_internal_request_1.PaygBasisList.PartTime,
|
|
12
|
-
_a[public_employment_1.EmploymentBasis.MaternityLeave] = lixi_internal_request_1.PaygBasisList.Seasonal,
|
|
13
|
-
_a);
|
|
1
|
+
import { PaygBasisList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { EmploymentBasis } from '../events/public-employment';
|
|
3
|
+
export const paygEmploymentBasisMapping = {
|
|
4
|
+
[EmploymentBasis.Casual]: PaygBasisList.Casual,
|
|
5
|
+
[EmploymentBasis.FullTime]: PaygBasisList.FullTime,
|
|
6
|
+
[EmploymentBasis.Contractor]: PaygBasisList.Contract,
|
|
7
|
+
[EmploymentBasis.PartTime]: PaygBasisList.PartTime,
|
|
8
|
+
[EmploymentBasis.MaternityLeave]: PaygBasisList.Seasonal,
|
|
9
|
+
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_a[public_expense_1.Frequency.Monthly] = lixi_internal_request_1.List.Monthly,
|
|
10
|
-
_a[public_expense_1.Frequency.Weekly] = lixi_internal_request_1.List.Weekly,
|
|
11
|
-
_a[public_expense_1.Frequency.Yearly] = lixi_internal_request_1.List.Yearly,
|
|
12
|
-
_a);
|
|
1
|
+
import { List as FrequencyList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { Frequency } from '../events/public-expense';
|
|
3
|
+
export const frequencyMapping = {
|
|
4
|
+
[Frequency.Fortnightly]: FrequencyList.Fortnightly,
|
|
5
|
+
[Frequency.Monthly]: FrequencyList.Monthly,
|
|
6
|
+
[Frequency.Weekly]: FrequencyList.Weekly,
|
|
7
|
+
[Frequency.Yearly]: FrequencyList.Yearly,
|
|
8
|
+
};
|