@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.
Files changed (39) hide show
  1. package/Exports.d.ts +7 -7
  2. package/Exports.js +7 -7
  3. package/components/PepAnswers.d.ts +8 -8
  4. package/components/PepAnswers.js +103 -137
  5. package/messages/src/components/PepAnswers.json +1 -1
  6. package/messages/src/pages/IsPep/IsPepMessages.json +1 -1
  7. package/messages/src/pages/IsPep/IsPepPage.json +1 -1
  8. package/messages/src/pages/RelationPage/RelationMessages.json +1 -1
  9. package/messages/src/pages/RelationPage/RelationPage.json +1 -1
  10. package/messages/src/pages/RolePage/RoleMessages.json +1 -1
  11. package/messages/src/pages/RolePage/RolePage.json +1 -1
  12. package/messages/src/pages/StatusPage/StatusMessages.json +1 -1
  13. package/messages/src/pages/StatusPage/StatusPage.json +1 -1
  14. package/model/PepModel.d.ts +7 -7
  15. package/model/PepModel.js +40 -40
  16. package/package.json +3 -3
  17. package/pages/IsPep/IsPepMessages.d.ts +20 -32
  18. package/pages/IsPep/IsPepMessages.js +10 -70
  19. package/pages/IsPep/IsPepPage.d.ts +15 -15
  20. package/pages/IsPep/IsPepPage.js +61 -61
  21. package/pages/PepContext.d.ts +80 -81
  22. package/pages/PepContext.js +88 -89
  23. package/pages/RelationPage/RelationMessages.d.ts +67 -105
  24. package/pages/RelationPage/RelationMessages.js +69 -287
  25. package/pages/RelationPage/RelationPage.d.ts +6 -6
  26. package/pages/RelationPage/RelationPage.js +158 -156
  27. package/pages/RolePage/RoleMessages.d.ts +119 -185
  28. package/pages/RolePage/RoleMessages.js +121 -385
  29. package/pages/RolePage/RolePage.d.ts +13 -11
  30. package/pages/RolePage/RolePage.js +222 -223
  31. package/pages/StatusPage/StatusMessages.d.ts +51 -72
  32. package/pages/StatusPage/StatusMessages.js +53 -272
  33. package/pages/StatusPage/StatusPage.d.ts +10 -8
  34. package/pages/StatusPage/StatusPage.js +104 -105
  35. package/utils/Possession.d.ts +1 -1
  36. package/utils/Possession.js +27 -27
  37. package/components/CountrySelect.d.ts +0 -11
  38. package/components/CountrySelect.js +0 -41
  39. package/messages/src/components/CountrySelect.json +0 -1
@@ -1,105 +1,67 @@
1
- export declare const relationMessages: {
2
- header: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- required: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- MARRIED_PARTNER: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- COLIVING_PARTNER: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- CHILD: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- PARENT: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- };
32
- CHILD_MARRIED_PARTNER: {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- };
37
- CHILD_COLIVING_PARTNER: {
38
- id: string;
39
- description: string;
40
- defaultMessage: string;
41
- };
42
- };
43
- export declare const businessRelationMessages: {
44
- header: {
45
- id: string;
46
- description: string;
47
- defaultMessage: string;
48
- };
49
- required: {
50
- id: string;
51
- description: string;
52
- defaultMessage: string;
53
- };
54
- CO_OWNERSHIP: {
55
- id: string;
56
- description: string;
57
- defaultMessage: string;
58
- };
59
- CLOSE_CONNECTION: {
60
- id: string;
61
- description: string;
62
- defaultMessage: string;
63
- };
64
- COMPANY_FOR_PEP: {
65
- id: string;
66
- description: string;
67
- defaultMessage: string;
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
- description: "Relationship header",
7
- defaultMessage: `{
8
- entityType, select,
9
- PERSON {
10
- What relationship do you have to the person in a politically exposed position?
11
- }
12
- CORPORATION {
13
- What relationship does {name} have to the person in a politically exposed position?
14
- }
15
- other {}
16
- }`,
17
- },
18
- required: {
19
- id: "pep.relation.relation.required",
20
- description: "Required error message",
21
- defaultMessage: "You need to choose an alternative",
22
- },
23
- [Relation.MARRIED_PARTNER]: {
24
- id: "pep.relation.relation.MARRIED_PARTNER",
25
- description: "The person is married to someone who is pep",
26
- defaultMessage: "Spouse of a PEP",
27
- },
28
- [Relation.COLIVING_PARTNER]: {
29
- id: "pep.relation.relation.COLIVING_PARTNER",
30
- description: "The person is a coliving partner to someone who is pep",
31
- defaultMessage: "Partner to a PEP",
32
- },
33
- [Relation.CHILD]: {
34
- id: "pep.relation.relation.CHILD",
35
- description: "The person is the child of someone who is pep",
36
- defaultMessage: "Child of a PEP",
37
- },
38
- [Relation.PARENT]: {
39
- id: "pep.relation.relation.PARENT",
40
- description: "The person is the parent of someone who is pep",
41
- defaultMessage: "Parent of a PEP",
42
- },
43
- [Relation.CHILD_MARRIED_PARTNER]: {
44
- id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
45
- description: "The person is married to the child of someone who is pep",
46
- defaultMessage: "Spouse of the child of a PEP",
47
- },
48
- [Relation.CHILD_COLIVING_PARTNER]: {
49
- id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
50
- description: "The person is married to someone who is pep",
51
- defaultMessage: "Partner to the child of a PEP",
52
- },
53
- });
54
- export const businessRelationMessages = defineMessages({
55
- header: {
56
- id: "pep.relation.businessrelation.header",
57
- description: "Business relation header",
58
- defaultMessage: `{
59
- entityType, select,
60
- PERSON {
61
- What relationship do you have to the person in a politically exposed position?
62
- }
63
- CORPORATION {
64
- What relationship does {name} have to the person in a politically exposed position?
65
- }
66
- other {}
67
- }`,
68
- },
69
- required: {
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 {};