@lysaab/lysa-pep 3.0.4 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Exports.d.ts +7 -7
- package/Exports.js +7 -7
- package/components/PepAnswers.d.ts +8 -8
- package/components/PepAnswers.js +103 -137
- package/messages/src/components/PepAnswers.json +1 -1
- package/messages/src/pages/IsPep/IsPepMessages.json +1 -1
- package/messages/src/pages/IsPep/IsPepPage.json +1 -1
- package/messages/src/pages/RelationPage/RelationMessages.json +1 -1
- package/messages/src/pages/RelationPage/RelationPage.json +1 -1
- package/messages/src/pages/RolePage/RoleMessages.json +1 -1
- package/messages/src/pages/RolePage/RolePage.json +1 -1
- package/messages/src/pages/StatusPage/StatusMessages.json +1 -1
- package/messages/src/pages/StatusPage/StatusPage.json +1 -1
- package/model/PepModel.d.ts +7 -7
- package/model/PepModel.js +40 -40
- package/package.json +3 -3
- package/pages/IsPep/IsPepMessages.d.ts +20 -32
- package/pages/IsPep/IsPepMessages.js +10 -70
- package/pages/IsPep/IsPepPage.d.ts +15 -15
- package/pages/IsPep/IsPepPage.js +61 -61
- package/pages/PepContext.d.ts +80 -81
- package/pages/PepContext.js +88 -89
- package/pages/RelationPage/RelationMessages.d.ts +67 -105
- package/pages/RelationPage/RelationMessages.js +69 -287
- package/pages/RelationPage/RelationPage.d.ts +6 -6
- package/pages/RelationPage/RelationPage.js +158 -156
- package/pages/RolePage/RoleMessages.d.ts +115 -185
- package/pages/RolePage/RoleMessages.js +117 -385
- package/pages/RolePage/RolePage.d.ts +13 -11
- package/pages/RolePage/RolePage.js +222 -223
- package/pages/StatusPage/StatusMessages.d.ts +48 -72
- package/pages/StatusPage/StatusMessages.js +50 -272
- package/pages/StatusPage/StatusPage.d.ts +10 -8
- package/pages/StatusPage/StatusPage.js +104 -105
- package/utils/Possession.d.ts +1 -1
- package/utils/Possession.js +27 -27
- package/components/CountrySelect.d.ts +0 -11
- package/components/CountrySelect.js +0 -41
- package/messages/src/components/CountrySelect.json +0 -1
|
@@ -1,385 +1,117 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { Role, MilitaryRank } from "../PepContext";
|
|
3
|
-
export const roleMessages = defineMessages({
|
|
4
|
-
header: {
|
|
5
|
-
id: "pep.role.roles.header",
|
|
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
|
-
id: "pep.role.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
[Role.HEAD_OF_GOVERNMENT]: {
|
|
119
|
-
id: "pep.role.roles.alt.HEAD_OF_GOVERNMENT",
|
|
120
|
-
description: "Head of government alt",
|
|
121
|
-
defaultMessage: "Head of state",
|
|
122
|
-
},
|
|
123
|
-
[Role.MINISTER]: {
|
|
124
|
-
id: "pep.role.roles.alt.MINISTER",
|
|
125
|
-
description: "Minister alt",
|
|
126
|
-
defaultMessage: "Minister or Deputy Minister",
|
|
127
|
-
},
|
|
128
|
-
[Role.PARLIMENT_MEMBER]: {
|
|
129
|
-
id: "pep.role.roles.alt.PARLIMENT_MEMBER",
|
|
130
|
-
description: "Parlament alt",
|
|
131
|
-
defaultMessage: "Member of the parliament",
|
|
132
|
-
},
|
|
133
|
-
[Role.CENTRAL_BANK_MEMBER]: {
|
|
134
|
-
id: "pep.role.roles.alt.CENTRAL_BANK_MEMBER",
|
|
135
|
-
description: "Central bank member alt",
|
|
136
|
-
defaultMessage: "Member of the Board of the Central Bank",
|
|
137
|
-
},
|
|
138
|
-
[Role.BOARD_MEMBER_POLITICAL_PARTY]: {
|
|
139
|
-
id: "pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY",
|
|
140
|
-
description: "Political party board member alt",
|
|
141
|
-
defaultMessage: "Member of the Board in a political party in the parliament",
|
|
142
|
-
},
|
|
143
|
-
[Role.JUDGE_SUPREME_COURT]: {
|
|
144
|
-
id: "pep.role.roles.alt.JUDGE_SUPREME_COURT",
|
|
145
|
-
description: "Supreme court judge alt",
|
|
146
|
-
defaultMessage: "Supreme Court judge",
|
|
147
|
-
},
|
|
148
|
-
[Role.JUDGE_OTHER_HIGH_COURT]: {
|
|
149
|
-
id: "pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT",
|
|
150
|
-
description: "High court judge alt",
|
|
151
|
-
defaultMessage: "Judge in a constitutional court of law or other high-level judicial body whose decisions only exceptionally can be appealed",
|
|
152
|
-
},
|
|
153
|
-
[Role.REVISION_INSTITUTE]: {
|
|
154
|
-
id: "pep.role.roles.alt.REVISION_INSTITUTE",
|
|
155
|
-
description: "Revision institute worker alt",
|
|
156
|
-
defaultMessage: "Senior official at a governmental audit authority",
|
|
157
|
-
},
|
|
158
|
-
[Role.AMBASSADOR]: {
|
|
159
|
-
id: "pep.role.roles.alt.AMBASSADOR",
|
|
160
|
-
description: "Ambassador alt",
|
|
161
|
-
defaultMessage: "Ambassador or head of mission",
|
|
162
|
-
},
|
|
163
|
-
[Role.MILITARY_OFFICER]: {
|
|
164
|
-
id: "pep.role.roles.alt.MILITARY_OFFICER",
|
|
165
|
-
description: "Military officer alt",
|
|
166
|
-
defaultMessage: "Senior ranking officer in the armed forces",
|
|
167
|
-
},
|
|
168
|
-
[Role.GOVERNMENT_COMPANY]: {
|
|
169
|
-
id: "pep.role.roles.alt.GOVERNMENT_COMPANY",
|
|
170
|
-
description: "Government company leader alt",
|
|
171
|
-
defaultMessage: "Person part of a state-owned company's administrative-, managerial- or control bopdy",
|
|
172
|
-
},
|
|
173
|
-
[Role.EU_HIGH_RANKING_POSITION]: {
|
|
174
|
-
id: "pep.role.roles.alt.EU_HIGH_RANKING_POSITION",
|
|
175
|
-
description: "High ranking EU position alt",
|
|
176
|
-
defaultMessage: "Member of the European Parliament",
|
|
177
|
-
},
|
|
178
|
-
[Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]: {
|
|
179
|
-
id: "pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
|
|
180
|
-
description: "High ranking position in an international organisation alt",
|
|
181
|
-
defaultMessage: "Senior management in an international organisation",
|
|
182
|
-
},
|
|
183
|
-
});
|
|
184
|
-
export const militaryMessages = defineMessages({
|
|
185
|
-
header: {
|
|
186
|
-
id: "pep.role.military.name.header",
|
|
187
|
-
description: "International company name header",
|
|
188
|
-
defaultMessage: `{
|
|
189
|
-
entityType, select,
|
|
190
|
-
PERSON {
|
|
191
|
-
{
|
|
192
|
-
pepType, select,
|
|
193
|
-
ME {
|
|
194
|
-
State your rank
|
|
195
|
-
}
|
|
196
|
-
RELATIVE {
|
|
197
|
-
{
|
|
198
|
-
relation, select,
|
|
199
|
-
MARRIED_PARTNER {
|
|
200
|
-
State the rank of your spouce
|
|
201
|
-
}
|
|
202
|
-
COLIVING_PARTNER {
|
|
203
|
-
State the rank of your partner
|
|
204
|
-
}
|
|
205
|
-
CHILD {
|
|
206
|
-
State the rank of your parent
|
|
207
|
-
}
|
|
208
|
-
PARENT {
|
|
209
|
-
State the rank of your child
|
|
210
|
-
}
|
|
211
|
-
CHILD_MARRIED_PARTNER {
|
|
212
|
-
State the rank of your spouce's parent
|
|
213
|
-
}
|
|
214
|
-
CHILD_COLIVING_PARTNER {
|
|
215
|
-
State the rank of your partner's parent
|
|
216
|
-
}
|
|
217
|
-
other {}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
COLLEAGUE {
|
|
221
|
-
{
|
|
222
|
-
relation, select,
|
|
223
|
-
CO_OWNERSHIP {
|
|
224
|
-
State the rank of the person that you have a relationship with that is controlling the company and is in a politically exposed position
|
|
225
|
-
}
|
|
226
|
-
CLOSE_CONNECTION {
|
|
227
|
-
State the rank of the person that you have or have had a close relationship with
|
|
228
|
-
}
|
|
229
|
-
COMPANY_FOR_PEP {
|
|
230
|
-
What rank does the person have
|
|
231
|
-
}
|
|
232
|
-
other {}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
other {}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
CORPORATION {
|
|
239
|
-
{
|
|
240
|
-
pepType, select,
|
|
241
|
-
ME {
|
|
242
|
-
State the rank of {name}
|
|
243
|
-
}
|
|
244
|
-
RELATIVE {
|
|
245
|
-
{
|
|
246
|
-
relation, select,
|
|
247
|
-
MARRIED_PARTNER {
|
|
248
|
-
State the rank of the spouse of {name}
|
|
249
|
-
}
|
|
250
|
-
COLIVING_PARTNER {
|
|
251
|
-
State the rank of the partner of {name}
|
|
252
|
-
}
|
|
253
|
-
CHILD {
|
|
254
|
-
State the rank of the parent of {name}
|
|
255
|
-
}
|
|
256
|
-
PARENT {
|
|
257
|
-
State the rank of the child of {name}
|
|
258
|
-
}
|
|
259
|
-
CHILD_MARRIED_PARTNER {
|
|
260
|
-
State the rank of the parent of the spouse of {name}
|
|
261
|
-
}
|
|
262
|
-
CHILD_COLIVING_PARTNER {
|
|
263
|
-
State the rank of the parent of the partner of {name}
|
|
264
|
-
}
|
|
265
|
-
other {}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
COLLEAGUE {
|
|
269
|
-
{
|
|
270
|
-
relation, select,
|
|
271
|
-
CO_OWNERSHIP {
|
|
272
|
-
State the rank of the person in a politically exposed position that {name} has a relationship with
|
|
273
|
-
}
|
|
274
|
-
CLOSE_CONNECTION {
|
|
275
|
-
State the rank of the person in a politically exposed position that {name} has a relationship with
|
|
276
|
-
}
|
|
277
|
-
COMPANY_FOR_PEP {
|
|
278
|
-
What rank does the person have
|
|
279
|
-
}
|
|
280
|
-
other {}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
other {}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
other {}
|
|
287
|
-
}`,
|
|
288
|
-
},
|
|
289
|
-
placeholder: {
|
|
290
|
-
id: "pep.role.military.header",
|
|
291
|
-
description: "Header",
|
|
292
|
-
defaultMessage: "Choose a role",
|
|
293
|
-
},
|
|
294
|
-
required: {
|
|
295
|
-
id: "pep.role.military.required",
|
|
296
|
-
description: "Required validation error",
|
|
297
|
-
defaultMessage: "You need to choose a role",
|
|
298
|
-
},
|
|
299
|
-
[MilitaryRank.GENERAL]: {
|
|
300
|
-
id: "pep.role.military.alt.GENERAL",
|
|
301
|
-
description: "General alt",
|
|
302
|
-
defaultMessage: "General",
|
|
303
|
-
},
|
|
304
|
-
[MilitaryRank.LIEUTENANT_GENERAL]: {
|
|
305
|
-
id: "pep.role.military.alt.LIEUTENANT_GENERAL",
|
|
306
|
-
description: "Lieutenant general alt",
|
|
307
|
-
defaultMessage: "Lieutenant general",
|
|
308
|
-
},
|
|
309
|
-
[MilitaryRank.MAJOR_GENERAL]: {
|
|
310
|
-
id: "pep.role.military.alt.MAJOR_GENERAL",
|
|
311
|
-
description: "Major general alt",
|
|
312
|
-
defaultMessage: "Major general",
|
|
313
|
-
},
|
|
314
|
-
[MilitaryRank.ADMIRAL]: {
|
|
315
|
-
id: "pep.role.military.alt.ADMIRAL",
|
|
316
|
-
description: "Admiral alt",
|
|
317
|
-
defaultMessage: "Admiral",
|
|
318
|
-
},
|
|
319
|
-
[MilitaryRank.VICE_ADMIRAL]: {
|
|
320
|
-
id: "pep.role.military.alt.VICE_ADMIRAL",
|
|
321
|
-
description: "Vice admiral alt",
|
|
322
|
-
defaultMessage: "Vice admiral",
|
|
323
|
-
},
|
|
324
|
-
[MilitaryRank.REAR_ADMIRAL]: {
|
|
325
|
-
id: "pep.role.military.alt.REAR_ADMIRAL",
|
|
326
|
-
description: "Rear admiral alt",
|
|
327
|
-
defaultMessage: "Conter admiral",
|
|
328
|
-
},
|
|
329
|
-
});
|
|
330
|
-
export const ambassadorMessages = defineMessages({
|
|
331
|
-
header: {
|
|
332
|
-
id: "pep.role.ambassador.header",
|
|
333
|
-
description: "Ambassador header",
|
|
334
|
-
defaultMessage: "State the country",
|
|
335
|
-
},
|
|
336
|
-
required: {
|
|
337
|
-
id: "pep.role.ambassador.required",
|
|
338
|
-
description: "Ambassador required error",
|
|
339
|
-
defaultMessage: "You need to choose a country",
|
|
340
|
-
},
|
|
341
|
-
});
|
|
342
|
-
export const governmentCompanyMessages = defineMessages({
|
|
343
|
-
nameHeader: {
|
|
344
|
-
id: "pep.role.governmentCompany.name.header",
|
|
345
|
-
description: "Government company name header",
|
|
346
|
-
defaultMessage: "State the name of the company",
|
|
347
|
-
},
|
|
348
|
-
nameRequired: {
|
|
349
|
-
id: "pep.role.governmentCompany.name.required",
|
|
350
|
-
description: "Government company name required error",
|
|
351
|
-
defaultMessage: "You need to state a name",
|
|
352
|
-
},
|
|
353
|
-
roleHeader: {
|
|
354
|
-
id: "pep.role.governmentCompany.role.header",
|
|
355
|
-
description: "Government company role header",
|
|
356
|
-
defaultMessage: "State role",
|
|
357
|
-
},
|
|
358
|
-
roleRequired: {
|
|
359
|
-
id: "pep.role.governmentCompany.role.required",
|
|
360
|
-
description: "Government company role required error",
|
|
361
|
-
defaultMessage: "You need to state a role",
|
|
362
|
-
},
|
|
363
|
-
});
|
|
364
|
-
export const intCompanyMessages = defineMessages({
|
|
365
|
-
nameHeader: {
|
|
366
|
-
id: "pep.role.intCompany.name.header",
|
|
367
|
-
description: "International company name header",
|
|
368
|
-
defaultMessage: "State the organization's name",
|
|
369
|
-
},
|
|
370
|
-
nameRequired: {
|
|
371
|
-
id: "pep.role.intCompany.name.required",
|
|
372
|
-
description: "International company name required error",
|
|
373
|
-
defaultMessage: "You need to state a name",
|
|
374
|
-
},
|
|
375
|
-
roleHeader: {
|
|
376
|
-
id: "pep.role.intCompany.role.header",
|
|
377
|
-
description: "International company role header",
|
|
378
|
-
defaultMessage: "State role",
|
|
379
|
-
},
|
|
380
|
-
roleRequired: {
|
|
381
|
-
id: "pep.role.intCompany.role.required",
|
|
382
|
-
description: "International company role required error",
|
|
383
|
-
defaultMessage: "You need to state a role",
|
|
384
|
-
},
|
|
385
|
-
});
|
|
1
|
+
import { defineMessages } from "react-intl";
|
|
2
|
+
import { Role, MilitaryRank } from "../PepContext";
|
|
3
|
+
export const roleMessages = defineMessages({
|
|
4
|
+
header: {
|
|
5
|
+
id: "pep.role.roles.header",
|
|
6
|
+
},
|
|
7
|
+
placeholder: {
|
|
8
|
+
id: "pep.role.roles.placeholder",
|
|
9
|
+
},
|
|
10
|
+
required: {
|
|
11
|
+
id: "pep.role.roles.required",
|
|
12
|
+
},
|
|
13
|
+
[Role.HEAD_OF_GOVERNMENT]: {
|
|
14
|
+
id: "pep.role.roles.alt.HEAD_OF_GOVERNMENT",
|
|
15
|
+
},
|
|
16
|
+
[Role.MINISTER]: {
|
|
17
|
+
id: "pep.role.roles.alt.MINISTER",
|
|
18
|
+
},
|
|
19
|
+
[Role.PARLIMENT_MEMBER]: {
|
|
20
|
+
id: "pep.role.roles.alt.PARLIMENT_MEMBER",
|
|
21
|
+
},
|
|
22
|
+
[Role.CENTRAL_BANK_MEMBER]: {
|
|
23
|
+
id: "pep.role.roles.alt.CENTRAL_BANK_MEMBER",
|
|
24
|
+
},
|
|
25
|
+
[Role.BOARD_MEMBER_POLITICAL_PARTY]: {
|
|
26
|
+
id: "pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY",
|
|
27
|
+
},
|
|
28
|
+
[Role.JUDGE_SUPREME_COURT]: {
|
|
29
|
+
id: "pep.role.roles.alt.JUDGE_SUPREME_COURT",
|
|
30
|
+
},
|
|
31
|
+
[Role.JUDGE_OTHER_HIGH_COURT]: {
|
|
32
|
+
id: "pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT",
|
|
33
|
+
},
|
|
34
|
+
[Role.REVISION_INSTITUTE]: {
|
|
35
|
+
id: "pep.role.roles.alt.REVISION_INSTITUTE",
|
|
36
|
+
},
|
|
37
|
+
[Role.AMBASSADOR]: {
|
|
38
|
+
id: "pep.role.roles.alt.AMBASSADOR",
|
|
39
|
+
},
|
|
40
|
+
[Role.MILITARY_OFFICER]: {
|
|
41
|
+
id: "pep.role.roles.alt.MILITARY_OFFICER",
|
|
42
|
+
},
|
|
43
|
+
[Role.GOVERNMENT_COMPANY]: {
|
|
44
|
+
id: "pep.role.roles.alt.GOVERNMENT_COMPANY",
|
|
45
|
+
},
|
|
46
|
+
[Role.EU_HIGH_RANKING_POSITION]: {
|
|
47
|
+
id: "pep.role.roles.alt.EU_HIGH_RANKING_POSITION",
|
|
48
|
+
},
|
|
49
|
+
[Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]: {
|
|
50
|
+
id: "pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
export const militaryMessages = defineMessages({
|
|
54
|
+
header: {
|
|
55
|
+
id: "pep.role.military.name.header",
|
|
56
|
+
},
|
|
57
|
+
placeholder: {
|
|
58
|
+
id: "pep.role.military.header",
|
|
59
|
+
},
|
|
60
|
+
required: {
|
|
61
|
+
id: "pep.role.military.required",
|
|
62
|
+
},
|
|
63
|
+
[MilitaryRank.GENERAL]: {
|
|
64
|
+
id: "pep.role.military.alt.GENERAL",
|
|
65
|
+
},
|
|
66
|
+
[MilitaryRank.LIEUTENANT_GENERAL]: {
|
|
67
|
+
id: "pep.role.military.alt.LIEUTENANT_GENERAL",
|
|
68
|
+
},
|
|
69
|
+
[MilitaryRank.MAJOR_GENERAL]: {
|
|
70
|
+
id: "pep.role.military.alt.MAJOR_GENERAL",
|
|
71
|
+
},
|
|
72
|
+
[MilitaryRank.ADMIRAL]: {
|
|
73
|
+
id: "pep.role.military.alt.ADMIRAL",
|
|
74
|
+
},
|
|
75
|
+
[MilitaryRank.VICE_ADMIRAL]: {
|
|
76
|
+
id: "pep.role.military.alt.VICE_ADMIRAL",
|
|
77
|
+
},
|
|
78
|
+
[MilitaryRank.REAR_ADMIRAL]: {
|
|
79
|
+
id: "pep.role.military.alt.REAR_ADMIRAL",
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
export const ambassadorMessages = defineMessages({
|
|
83
|
+
header: {
|
|
84
|
+
id: "pep.role.ambassador.header",
|
|
85
|
+
},
|
|
86
|
+
required: {
|
|
87
|
+
id: "pep.role.ambassador.required",
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
export const governmentCompanyMessages = defineMessages({
|
|
91
|
+
nameHeader: {
|
|
92
|
+
id: "pep.role.governmentCompany.name.header",
|
|
93
|
+
},
|
|
94
|
+
nameRequired: {
|
|
95
|
+
id: "pep.role.governmentCompany.name.required",
|
|
96
|
+
},
|
|
97
|
+
roleHeader: {
|
|
98
|
+
id: "pep.role.governmentCompany.role.header",
|
|
99
|
+
},
|
|
100
|
+
roleRequired: {
|
|
101
|
+
id: "pep.role.governmentCompany.role.required",
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
export const intCompanyMessages = defineMessages({
|
|
105
|
+
nameHeader: {
|
|
106
|
+
id: "pep.role.intCompany.name.header",
|
|
107
|
+
},
|
|
108
|
+
nameRequired: {
|
|
109
|
+
id: "pep.role.intCompany.name.required",
|
|
110
|
+
},
|
|
111
|
+
roleHeader: {
|
|
112
|
+
id: "pep.role.intCompany.role.header",
|
|
113
|
+
},
|
|
114
|
+
roleRequired: {
|
|
115
|
+
id: "pep.role.intCompany.role.required",
|
|
116
|
+
},
|
|
117
|
+
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
import { Alternative } from "@lysaab/ui-2/components/input/InputAPI";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare
|
|
11
|
-
export
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { Alternative } from "@lysaab/ui-2/components/input/InputAPI";
|
|
3
|
+
import { Language } from "@lysaab/ui-2";
|
|
4
|
+
import { Role, MilitaryRank } from "../PepContext";
|
|
5
|
+
import { IntlShape } from "react-intl";
|
|
6
|
+
interface Props {
|
|
7
|
+
language: Language;
|
|
8
|
+
next: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const RolePage: FunctionComponent<Props>;
|
|
11
|
+
export declare function getRoleAlts(intl: IntlShape): Alternative<Role>[];
|
|
12
|
+
export declare function getMilitaryAlts(intl: IntlShape): Alternative<MilitaryRank>[];
|
|
13
|
+
export {};
|