@lysaab/lysa-pep 3.0.4 → 5.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 +119 -185
- package/pages/RolePage/RoleMessages.js +121 -385
- package/pages/RolePage/RolePage.d.ts +13 -11
- package/pages/RolePage/RolePage.js +222 -223
- package/pages/StatusPage/StatusMessages.d.ts +51 -72
- package/pages/StatusPage/StatusMessages.js +53 -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,105 +1,67 @@
|
|
|
1
|
-
export declare const relationMessages: {
|
|
2
|
-
header: {
|
|
3
|
-
id: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
id: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
id: string;
|
|
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
|
-
id: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export declare const relativeNameMessages: {
|
|
71
|
-
header: {
|
|
72
|
-
id: string;
|
|
73
|
-
description: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
|
-
};
|
|
76
|
-
required: {
|
|
77
|
-
id: string;
|
|
78
|
-
description: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export declare const birthdayMessages: {
|
|
83
|
-
header: {
|
|
84
|
-
id: string;
|
|
85
|
-
description: string;
|
|
86
|
-
defaultMessage: string;
|
|
87
|
-
};
|
|
88
|
-
required: {
|
|
89
|
-
id: string;
|
|
90
|
-
description: string;
|
|
91
|
-
defaultMessage: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
export declare const colleagueNameMessages: {
|
|
95
|
-
header: {
|
|
96
|
-
id: string;
|
|
97
|
-
description: string;
|
|
98
|
-
defaultMessage: string;
|
|
99
|
-
};
|
|
100
|
-
required: {
|
|
101
|
-
id: string;
|
|
102
|
-
description: string;
|
|
103
|
-
defaultMessage: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
1
|
+
export declare const relationMessages: {
|
|
2
|
+
header: {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
required: {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
MARRIED_PARTNER: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
COLIVING_PARTNER: {
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
CHILD: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
PARENT: {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
CHILD_MARRIED_PARTNER: {
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
CHILD_COLIVING_PARTNER: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const businessRelationMessages: {
|
|
28
|
+
header: {
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
CO_OWNERSHIP: {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
CLOSE_CONNECTION: {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
COMPANY_FOR_PEP: {
|
|
41
|
+
id: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const relativeNameMessages: {
|
|
45
|
+
header: {
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
required: {
|
|
49
|
+
id: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const birthdayMessages: {
|
|
53
|
+
header: {
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
id: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const colleagueNameMessages: {
|
|
61
|
+
header: {
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
required: {
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -1,287 +1,69 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
-
export const relationMessages = defineMessages({
|
|
4
|
-
header: {
|
|
5
|
-
id: "pep.relation.relationship.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
|
-
id: "pep.relation.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
export const
|
|
55
|
-
header: {
|
|
56
|
-
id: "pep.relation.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
id: "pep.relation.businessrelation.required",
|
|
71
|
-
description: "Required error message",
|
|
72
|
-
defaultMessage: "You need to choose an alternative",
|
|
73
|
-
},
|
|
74
|
-
[BusinessRelation.CO_OWNERSHIP]: {
|
|
75
|
-
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
76
|
-
description: "Co-ownership alternative",
|
|
77
|
-
defaultMessage: `{
|
|
78
|
-
entityType, select,
|
|
79
|
-
PERSON {
|
|
80
|
-
I am the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
81
|
-
}
|
|
82
|
-
CORPORATION {
|
|
83
|
-
{name} is the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
84
|
-
}
|
|
85
|
-
other {}
|
|
86
|
-
}`,
|
|
87
|
-
},
|
|
88
|
-
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
89
|
-
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
90
|
-
description: "Close business relation",
|
|
91
|
-
defaultMessage: `{
|
|
92
|
-
entityType, select,
|
|
93
|
-
PERSON {
|
|
94
|
-
I am a person that in one way or the other have or have had a close relation with a PEP
|
|
95
|
-
}
|
|
96
|
-
CORPORATION {
|
|
97
|
-
{name} is a person that in one way or the other has or has had a close relation with a PEP
|
|
98
|
-
}
|
|
99
|
-
other {}
|
|
100
|
-
}`,
|
|
101
|
-
},
|
|
102
|
-
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
103
|
-
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
104
|
-
description: "Beneficial owner",
|
|
105
|
-
defaultMessage: `{
|
|
106
|
-
entityType, select,
|
|
107
|
-
PERSON {
|
|
108
|
-
I am the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
109
|
-
}
|
|
110
|
-
CORPORATION {
|
|
111
|
-
{name} is the lone beneficial owner to a legal person, or a legal structure together with a PEP
|
|
112
|
-
}
|
|
113
|
-
other {}
|
|
114
|
-
}`,
|
|
115
|
-
},
|
|
116
|
-
});
|
|
117
|
-
export const relativeNameMessages = defineMessages({
|
|
118
|
-
header: {
|
|
119
|
-
id: "pep.relation.relative.name.header",
|
|
120
|
-
description: "Relative name",
|
|
121
|
-
defaultMessage: `{
|
|
122
|
-
entityType, select,
|
|
123
|
-
PERSON {
|
|
124
|
-
{
|
|
125
|
-
relation, select,
|
|
126
|
-
MARRIED_PARTNER {
|
|
127
|
-
What is the name of your spouce?
|
|
128
|
-
}
|
|
129
|
-
COLIVING_PARTNER {
|
|
130
|
-
What is the name of your partner?
|
|
131
|
-
}
|
|
132
|
-
CHILD {
|
|
133
|
-
What is the name of your parent?
|
|
134
|
-
}
|
|
135
|
-
PARENT {
|
|
136
|
-
What is the name of your child?
|
|
137
|
-
}
|
|
138
|
-
CHILD_MARRIED_PARTNER {
|
|
139
|
-
What is the name of the parent of your spouse?
|
|
140
|
-
}
|
|
141
|
-
CHILD_COLIVING_PARTNER {
|
|
142
|
-
What is the name of the parent of your partner?
|
|
143
|
-
}
|
|
144
|
-
other {}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
CORPORATION {
|
|
148
|
-
{
|
|
149
|
-
relation, select,
|
|
150
|
-
MARRIED_PARTNER {
|
|
151
|
-
What is the name of the spouse of {name}?
|
|
152
|
-
}
|
|
153
|
-
COLIVING_PARTNER {
|
|
154
|
-
What is the name of the partner of {name}?
|
|
155
|
-
}
|
|
156
|
-
CHILD {
|
|
157
|
-
What is the name of the parent of {name}?
|
|
158
|
-
}
|
|
159
|
-
PARENT {
|
|
160
|
-
What is the name of the child of {name}?
|
|
161
|
-
}
|
|
162
|
-
CHILD_MARRIED_PARTNER {
|
|
163
|
-
What is the name of the parent of the spouse of {name}?
|
|
164
|
-
}
|
|
165
|
-
CHILD_COLIVING_PARTNER {
|
|
166
|
-
What is the name of the parent of the partner of {name}?
|
|
167
|
-
}
|
|
168
|
-
other {}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
other {}
|
|
172
|
-
}`,
|
|
173
|
-
},
|
|
174
|
-
required: {
|
|
175
|
-
id: "pep.relation.relative.name.required",
|
|
176
|
-
description: "Required error message",
|
|
177
|
-
defaultMessage: "You need to choose an alternative",
|
|
178
|
-
},
|
|
179
|
-
});
|
|
180
|
-
export const birthdayMessages = defineMessages({
|
|
181
|
-
header: {
|
|
182
|
-
id: "pep.relation.birthday.header",
|
|
183
|
-
description: "Relative birthday",
|
|
184
|
-
defaultMessage: `{
|
|
185
|
-
entityType, select,
|
|
186
|
-
PERSON {
|
|
187
|
-
{
|
|
188
|
-
relation, select,
|
|
189
|
-
MARRIED_PARTNER {
|
|
190
|
-
When is your spouse born?
|
|
191
|
-
}
|
|
192
|
-
COLIVING_PARTNER {
|
|
193
|
-
When is your partner born?
|
|
194
|
-
}
|
|
195
|
-
CHILD {
|
|
196
|
-
When is your parent born?
|
|
197
|
-
}
|
|
198
|
-
PARENT {
|
|
199
|
-
When is your child born?
|
|
200
|
-
}
|
|
201
|
-
CHILD_MARRIED_PARTNER {
|
|
202
|
-
When is the parent of your spouse born?
|
|
203
|
-
}
|
|
204
|
-
CHILD_COLIVING_PARTNER {
|
|
205
|
-
When is the parent of your partner born?
|
|
206
|
-
}
|
|
207
|
-
other {}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
CORPORATION {
|
|
211
|
-
{
|
|
212
|
-
relation, select,
|
|
213
|
-
MARRIED_PARTNER {
|
|
214
|
-
When is the spouse of {name} born?
|
|
215
|
-
}
|
|
216
|
-
COLIVING_PARTNER {
|
|
217
|
-
When is the partner of {name} born?
|
|
218
|
-
}
|
|
219
|
-
CHILD {
|
|
220
|
-
When is the child of {name} born?
|
|
221
|
-
}
|
|
222
|
-
PARENT {
|
|
223
|
-
When is the parent of {name} born?
|
|
224
|
-
}
|
|
225
|
-
CHILD_MARRIED_PARTNER {
|
|
226
|
-
When is the parent of the spouse of {name} born?
|
|
227
|
-
}
|
|
228
|
-
CHILD_COLIVING_PARTNER {
|
|
229
|
-
When is the parent of the partner of {name} born?
|
|
230
|
-
}
|
|
231
|
-
other {}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
other {}
|
|
235
|
-
}`,
|
|
236
|
-
},
|
|
237
|
-
required: {
|
|
238
|
-
id: "pep.relation.birthday.required",
|
|
239
|
-
description: "Required error message",
|
|
240
|
-
defaultMessage: "State the date",
|
|
241
|
-
},
|
|
242
|
-
});
|
|
243
|
-
export const colleagueNameMessages = defineMessages({
|
|
244
|
-
header: {
|
|
245
|
-
id: "pep.relation.colleague.name.header",
|
|
246
|
-
description: "Colleague name",
|
|
247
|
-
defaultMessage: `{
|
|
248
|
-
entityType, select,
|
|
249
|
-
PERSON {
|
|
250
|
-
{
|
|
251
|
-
relation, select,
|
|
252
|
-
CO_OWNERSHIP {
|
|
253
|
-
What is the name of the person in a politically exposed position that you have a relationship with?
|
|
254
|
-
}
|
|
255
|
-
CLOSE_CONNECTION {
|
|
256
|
-
What is the name of the person in a politically exposed position that you have a relationship with?
|
|
257
|
-
}
|
|
258
|
-
COMPANY_FOR_PEP {
|
|
259
|
-
What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
|
|
260
|
-
}
|
|
261
|
-
other {}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
CORPORATION {
|
|
265
|
-
{
|
|
266
|
-
relation, select,
|
|
267
|
-
CO_OWNERSHIP {
|
|
268
|
-
What is the name of the person in a politically exposed position that {name} has a relationship with?
|
|
269
|
-
}
|
|
270
|
-
CLOSE_CONNECTION {
|
|
271
|
-
What is the name of the person in a politically exposed position that {name} has a relationship with?
|
|
272
|
-
}
|
|
273
|
-
COMPANY_FOR_PEP {
|
|
274
|
-
What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
|
|
275
|
-
}
|
|
276
|
-
other {}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
other {}
|
|
280
|
-
}`,
|
|
281
|
-
},
|
|
282
|
-
required: {
|
|
283
|
-
id: "pep.relation.colleague.name.required",
|
|
284
|
-
description: "Required error message",
|
|
285
|
-
defaultMessage: "You need to choose an alternative",
|
|
286
|
-
},
|
|
287
|
-
});
|
|
1
|
+
import { defineMessages } from "react-intl";
|
|
2
|
+
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
+
export const relationMessages = defineMessages({
|
|
4
|
+
header: {
|
|
5
|
+
id: "pep.relation.relationship.header",
|
|
6
|
+
},
|
|
7
|
+
required: {
|
|
8
|
+
id: "pep.relation.relation.required",
|
|
9
|
+
},
|
|
10
|
+
[Relation.MARRIED_PARTNER]: {
|
|
11
|
+
id: "pep.relation.relation.MARRIED_PARTNER",
|
|
12
|
+
},
|
|
13
|
+
[Relation.COLIVING_PARTNER]: {
|
|
14
|
+
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
15
|
+
},
|
|
16
|
+
[Relation.CHILD]: {
|
|
17
|
+
id: "pep.relation.relation.CHILD",
|
|
18
|
+
},
|
|
19
|
+
[Relation.PARENT]: {
|
|
20
|
+
id: "pep.relation.relation.PARENT",
|
|
21
|
+
},
|
|
22
|
+
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
23
|
+
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
24
|
+
},
|
|
25
|
+
[Relation.CHILD_COLIVING_PARTNER]: {
|
|
26
|
+
id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
export const businessRelationMessages = defineMessages({
|
|
30
|
+
header: {
|
|
31
|
+
id: "pep.relation.businessrelation.header",
|
|
32
|
+
},
|
|
33
|
+
required: {
|
|
34
|
+
id: "pep.relation.businessrelation.required",
|
|
35
|
+
},
|
|
36
|
+
[BusinessRelation.CO_OWNERSHIP]: {
|
|
37
|
+
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
38
|
+
},
|
|
39
|
+
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
40
|
+
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
41
|
+
},
|
|
42
|
+
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
43
|
+
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
export const relativeNameMessages = defineMessages({
|
|
47
|
+
header: {
|
|
48
|
+
id: "pep.relation.relative.name.header",
|
|
49
|
+
},
|
|
50
|
+
required: {
|
|
51
|
+
id: "pep.relation.relative.name.required",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
export const birthdayMessages = defineMessages({
|
|
55
|
+
header: {
|
|
56
|
+
id: "pep.relation.birthday.header",
|
|
57
|
+
},
|
|
58
|
+
required: {
|
|
59
|
+
id: "pep.relation.birthday.required",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
export const colleagueNameMessages = defineMessages({
|
|
63
|
+
header: {
|
|
64
|
+
id: "pep.relation.colleague.name.header",
|
|
65
|
+
},
|
|
66
|
+
required: {
|
|
67
|
+
id: "pep.relation.colleague.name.required",
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
next: () => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const RelationPage: FunctionComponent<Props>;
|
|
6
|
-
export {};
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
next: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const RelationPage: FunctionComponent<Props>;
|
|
6
|
+
export {};
|