@lysaab/lysa-pep 3.0.3 → 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/components/PepAnswers.js +1 -35
- 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/package.json +3 -3
- package/pages/IsPep/IsPepMessages.d.ts +0 -12
- package/pages/IsPep/IsPepMessages.js +6 -66
- package/pages/IsPep/IsPepPage.js +1 -1
- package/pages/RelationPage/RelationMessages.d.ts +0 -38
- package/pages/RelationPage/RelationMessages.js +0 -218
- package/pages/RelationPage/RelationPage.js +4 -2
- package/pages/RolePage/RoleMessages.d.ts +0 -70
- package/pages/RolePage/RoleMessages.js +0 -268
- package/pages/RolePage/RolePage.d.ts +2 -0
- package/pages/RolePage/RolePage.js +4 -5
- package/pages/StatusPage/StatusMessages.d.ts +0 -24
- package/pages/StatusPage/StatusMessages.js +0 -222
- package/pages/StatusPage/StatusPage.d.ts +2 -0
- package/pages/StatusPage/StatusPage.js +4 -5
- package/components/CountrySelect.d.ts +0 -11
- package/components/CountrySelect.js +0 -41
- package/messages/src/components/CountrySelect.json +0 -1
- package/model/Countries.d.ts +0 -4
- package/model/Countries.js +0 -1002
- package/model/PepTexts.d.ts +0 -380
- package/model/PepTexts.js +0 -552
- package/pages/PepIsPepPage.d.ts +0 -15
- package/pages/PepIsPepPage.js +0 -59
- package/pages/PepRelationPage.d.ts +0 -6
- package/pages/PepRelationPage.js +0 -79
- package/pages/PepRolePage.d.ts +0 -10
- package/pages/PepRolePage.js +0 -127
- package/pages/PepStatusPage.d.ts +0 -6
- package/pages/PepStatusPage.js +0 -58
package/components/PepAnswers.js
CHANGED
|
@@ -9,88 +9,54 @@ import { relationMessages, businessRelationMessages, } from "../pages/RelationPa
|
|
|
9
9
|
const messages = defineMessages({
|
|
10
10
|
whoIsPepLabel: {
|
|
11
11
|
id: "pep.answers.who.label",
|
|
12
|
-
description: "Who is pep label",
|
|
13
|
-
defaultMessage: "Who is PEP?",
|
|
14
12
|
},
|
|
15
13
|
relationLabel: {
|
|
16
14
|
id: "pep.answers.relationship.label",
|
|
17
|
-
description: "Relationship label",
|
|
18
|
-
defaultMessage: "Relationship",
|
|
19
15
|
},
|
|
20
16
|
businessRelationLabel: {
|
|
21
17
|
id: "pep.answers.businessRelationship.label",
|
|
22
|
-
description: "Business relationship label",
|
|
23
|
-
defaultMessage: "Who is PEP?",
|
|
24
18
|
},
|
|
25
19
|
nameOfPepLabel: {
|
|
26
20
|
id: "pep.answers.nameOfPep.label",
|
|
27
|
-
description: "Name of pep label",
|
|
28
|
-
defaultMessage: "The person's name",
|
|
29
21
|
},
|
|
30
22
|
birthdayOfPEPLabel: {
|
|
31
23
|
id: "pep.answers.birthdayOfPEP.label",
|
|
32
|
-
description: "Birthday of pep label",
|
|
33
|
-
defaultMessage: "The person's birthday",
|
|
34
24
|
},
|
|
35
25
|
statusLabel: {
|
|
36
26
|
id: "pep.answers.status.label",
|
|
37
|
-
description: "Status label",
|
|
38
|
-
defaultMessage: "Status",
|
|
39
27
|
},
|
|
40
28
|
statusEndedValue: {
|
|
41
29
|
id: "pep.answers.statusEnded.value",
|
|
42
|
-
description: "Status ended value",
|
|
43
|
-
defaultMessage: "Ended",
|
|
44
30
|
},
|
|
45
31
|
statusOngoingValue: {
|
|
46
32
|
id: "pep.answers.statusOngoing.value",
|
|
47
|
-
description: "Status ongoing value",
|
|
48
|
-
defaultMessage: "Ongoing",
|
|
49
33
|
},
|
|
50
34
|
endedLabel: {
|
|
51
35
|
id: "pep.answers.endedStatus.label",
|
|
52
|
-
description: "Ended label",
|
|
53
|
-
defaultMessage: "Ended",
|
|
54
36
|
},
|
|
55
37
|
roleLabel: {
|
|
56
38
|
id: "pep.answers.role.label",
|
|
57
|
-
description: "Role label",
|
|
58
|
-
defaultMessage: "Role",
|
|
59
39
|
},
|
|
60
40
|
countryLabel: {
|
|
61
41
|
id: "pep.answers.country.label",
|
|
62
|
-
description: "Country label",
|
|
63
|
-
defaultMessage: "Country",
|
|
64
42
|
},
|
|
65
43
|
ambassadorCountryLabel: {
|
|
66
44
|
id: "pep.answers.ambassadorCountry.label",
|
|
67
|
-
description: "Ambassador country label",
|
|
68
|
-
defaultMessage: "Ambassador country",
|
|
69
45
|
},
|
|
70
46
|
governmentCompanyNameLabel: {
|
|
71
47
|
id: "pep.answers.governmentCompanyName.label",
|
|
72
|
-
description: "Government company name label",
|
|
73
|
-
defaultMessage: "Company name",
|
|
74
48
|
},
|
|
75
49
|
governmentCompanyRoleLabel: {
|
|
76
50
|
id: "pep.answers.governmentCompanyRole.label",
|
|
77
|
-
description: "Government company role label",
|
|
78
|
-
defaultMessage: "Company role",
|
|
79
51
|
},
|
|
80
52
|
internationalOrganisationNameLabel: {
|
|
81
53
|
id: "pep.answers.companyName.label",
|
|
82
|
-
description: "International organisation name label",
|
|
83
|
-
defaultMessage: "Company name",
|
|
84
54
|
},
|
|
85
55
|
internationalOrganisationRoleLabel: {
|
|
86
56
|
id: "pep.answers.companyRole.label",
|
|
87
|
-
description: "International organisation role label",
|
|
88
|
-
defaultMessage: "Company role",
|
|
89
57
|
},
|
|
90
58
|
militaryGradeLabel: {
|
|
91
59
|
id: "pep.answers.militaryRank.label",
|
|
92
|
-
description: "Military rank label",
|
|
93
|
-
defaultMessage: "Military rank",
|
|
94
60
|
},
|
|
95
61
|
});
|
|
96
62
|
export const PepAnswers = ({ answer }) => {
|
|
@@ -99,7 +65,7 @@ export const PepAnswers = ({ answer }) => {
|
|
|
99
65
|
if (!answer.type || answer.type === PepType.NOT_PEP) {
|
|
100
66
|
return (React.createElement("div", null,
|
|
101
67
|
React.createElement("p", null,
|
|
102
|
-
React.createElement(FormattedMessage, { id: "pep.answers.notpep"
|
|
68
|
+
React.createElement(FormattedMessage, { id: "pep.answers.notpep" }))));
|
|
103
69
|
}
|
|
104
70
|
const entityType = answer.legalEntityType;
|
|
105
71
|
const lang = intl.locale.slice(0, 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.answers.who.label"
|
|
1
|
+
[{"id":"pep.answers.who.label"},{"id":"pep.answers.relationship.label"},{"id":"pep.answers.businessRelationship.label"},{"id":"pep.answers.nameOfPep.label"},{"id":"pep.answers.birthdayOfPEP.label"},{"id":"pep.answers.status.label"},{"id":"pep.answers.statusEnded.value"},{"id":"pep.answers.statusOngoing.value"},{"id":"pep.answers.endedStatus.label"},{"id":"pep.answers.role.label"},{"id":"pep.answers.country.label"},{"id":"pep.answers.ambassadorCountry.label"},{"id":"pep.answers.governmentCompanyName.label"},{"id":"pep.answers.governmentCompanyRole.label"},{"id":"pep.answers.companyName.label"},{"id":"pep.answers.companyRole.label"},{"id":"pep.answers.militaryRank.label"},{"id":"pep.answers.notpep"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.ispep.header"
|
|
1
|
+
[{"id":"pep.ispep.header"},{"id":"pep.ispep.required"},{"id":"pep.ispep.NOT_PEP"},{"id":"pep.ispep.ME"},{"id":"pep.ispep.RELATIVE"},{"id":"pep.ispep.COLLEAGUE"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.ispep.next"
|
|
1
|
+
[{"id":"pep.ispep.next"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.relation.relationship.header"
|
|
1
|
+
[{"id":"pep.relation.relationship.header"},{"id":"pep.relation.relation.required"},{"id":"pep.relation.relation.MARRIED_PARTNER"},{"id":"pep.relation.relation.COLIVING_PARTNER"},{"id":"pep.relation.relation.CHILD"},{"id":"pep.relation.relation.PARENT"},{"id":"pep.relation.relation.CHILD_MARRIED_PARTNER"},{"id":"pep.relation.relation.CHILD_COLIVING_PARTNER"},{"id":"pep.relation.businessrelation.header"},{"id":"pep.relation.businessrelation.required"},{"id":"pep.relation.businessrelation.alt.CO_OWNERSHIP"},{"id":"pep.relation.businessrelation.alt.CLOSE_CONNECTION"},{"id":"pep.relation.businessrelation.alt.COMPANY_FOR_PEP"},{"id":"pep.relation.relative.name.header"},{"id":"pep.relation.relative.name.required"},{"id":"pep.relation.birthday.header"},{"id":"pep.relation.birthday.required"},{"id":"pep.relation.colleague.name.header"},{"id":"pep.relation.colleague.name.required"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.relation.next"
|
|
1
|
+
[{"id":"pep.relation.next"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.role.roles.header","description":"Header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n State your role\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n State the role of your spouse\n }\n COLIVING_PARTNER { \n State the role of your partner\n }\n CHILD { \n State the role of your parent\n }\n PARENT { \n State the role of your child\n }\n CHILD_MARRIED_PARTNER { \n State the role of the parent of your spouce\n }\n CHILD_COLIVING_PARTNER { \n State the role of the parent of your partner\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n State the role of the person in a politically exposed position that you have a relationship with\n }\n CLOSE_CONNECTION { \n State the role of the person in a politically exposed position that you have a relationship with\n }\n COMPANY_FOR_PEP { \n State the role of the person in a politically exposed position that you have a relationship with\n }\n other {}\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n State the role of {name}\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n State the role of the spouse of {name}\n }\n COLIVING_PARTNER { \n State the role of the partner of {name}\n }\n CHILD { \n State the role of the parent of {name}\n }\n PARENT { \n State the role of the child of {name}\n }\n CHILD_MARRIED_PARTNER { \n State the role of the parent of the spouse of {name}\n }\n CHILD_COLIVING_PARTNER { \n State the role of the parent of the partner of {name}\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n State the role of the person in a politically exposed position that {name} has a relationship with\n }\n CLOSE_CONNECTION { \n State the role of the person in a politically exposed position that {name} has a relationship with\n }\n COMPANY_FOR_PEP { \n State the role of the person in a politically exposed position that {name} has a relationship with\n }\n other {}\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.role.roles.placeholder","description":"Role placeholder","defaultMessage":"Choose a role"},{"id":"pep.role.roles.required","description":"Required validation error","defaultMessage":"You need to choose a role"},{"id":"pep.role.roles.alt.HEAD_OF_GOVERNMENT","description":"Head of government alt","defaultMessage":"Head of state"},{"id":"pep.role.roles.alt.MINISTER","description":"Minister alt","defaultMessage":"Minister or Deputy Minister"},{"id":"pep.role.roles.alt.PARLIMENT_MEMBER","description":"Parlament alt","defaultMessage":"Member of the parliament"},{"id":"pep.role.roles.alt.CENTRAL_BANK_MEMBER","description":"Central bank member alt","defaultMessage":"Member of the Board of the Central Bank"},{"id":"pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY","description":"Political party board member alt","defaultMessage":"Member of the Board in a political party in the parliament"},{"id":"pep.role.roles.alt.JUDGE_SUPREME_COURT","description":"Supreme court judge alt","defaultMessage":"Supreme Court judge"},{"id":"pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT","description":"High court judge alt","defaultMessage":"Judge in a constitutional court of law or other high-level judicial body whose decisions only exceptionally can be appealed"},{"id":"pep.role.roles.alt.REVISION_INSTITUTE","description":"Revision institute worker alt","defaultMessage":"Senior official at a governmental audit authority"},{"id":"pep.role.roles.alt.AMBASSADOR","description":"Ambassador alt","defaultMessage":"Ambassador or head of mission"},{"id":"pep.role.roles.alt.MILITARY_OFFICER","description":"Military officer alt","defaultMessage":"Senior ranking officer in the armed forces"},{"id":"pep.role.roles.alt.GOVERNMENT_COMPANY","description":"Government company leader alt","defaultMessage":"Person part of a state-owned company's administrative-, managerial- or control bopdy"},{"id":"pep.role.roles.alt.EU_HIGH_RANKING_POSITION","description":"High ranking EU position alt","defaultMessage":"Member of the European Parliament"},{"id":"pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP","description":"High ranking position in an international organisation alt","defaultMessage":"Senior management in an international organisation"},{"id":"pep.role.military.name.header","description":"International company name header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n State your rank\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n State the rank of your spouce\n }\n COLIVING_PARTNER { \n State the rank of your partner\n }\n CHILD { \n State the rank of your parent\n }\n PARENT { \n State the rank of your child\n }\n CHILD_MARRIED_PARTNER { \n State the rank of your spouce's parent\n }\n CHILD_COLIVING_PARTNER { \n State the rank of your partner's parent\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n State the rank of the person that you have a relationship with that is controlling the company and is in a politically exposed position\n }\n CLOSE_CONNECTION { \n State the rank of the person that you have or have had a close relationship with \n }\n COMPANY_FOR_PEP { \n What rank does the person have\n }\n other {}\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n State the rank of {name}\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n State the rank of the spouse of {name}\n }\n COLIVING_PARTNER { \n State the rank of the partner of {name}\n }\n CHILD { \n State the rank of the parent of {name}\n }\n PARENT { \n State the rank of the child of {name}\n }\n CHILD_MARRIED_PARTNER { \n State the rank of the parent of the spouse of {name}\n }\n CHILD_COLIVING_PARTNER { \n State the rank of the parent of the partner of {name}\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n State the rank of the person in a politically exposed position that {name} has a relationship with\n }\n CLOSE_CONNECTION { \n State the rank of the person in a politically exposed position that {name} has a relationship with\n }\n COMPANY_FOR_PEP { \n What rank does the person have\n }\n other {}\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.role.military.header","description":"Header","defaultMessage":"Choose a role"},{"id":"pep.role.military.required","description":"Required validation error","defaultMessage":"You need to choose a role"},{"id":"pep.role.military.alt.GENERAL","description":"General alt","defaultMessage":"General"},{"id":"pep.role.military.alt.LIEUTENANT_GENERAL","description":"Lieutenant general alt","defaultMessage":"Lieutenant general"},{"id":"pep.role.military.alt.MAJOR_GENERAL","description":"Major general alt","defaultMessage":"Major general"},{"id":"pep.role.military.alt.ADMIRAL","description":"Admiral alt","defaultMessage":"Admiral"},{"id":"pep.role.military.alt.VICE_ADMIRAL","description":"Vice admiral alt","defaultMessage":"Vice admiral"},{"id":"pep.role.military.alt.REAR_ADMIRAL","description":"Rear admiral alt","defaultMessage":"Conter admiral"},{"id":"pep.role.ambassador.header","description":"Ambassador header","defaultMessage":"State the country"},{"id":"pep.role.ambassador.required","description":"Ambassador required error","defaultMessage":"You need to choose a country"},{"id":"pep.role.governmentCompany.name.header","description":"Government company name header","defaultMessage":"State the name of the company"},{"id":"pep.role.governmentCompany.name.required","description":"Government company name required error","defaultMessage":"You need to state a name"},{"id":"pep.role.governmentCompany.role.header","description":"Government company role header","defaultMessage":"State role"},{"id":"pep.role.governmentCompany.role.required","description":"Government company role required error","defaultMessage":"You need to state a role"},{"id":"pep.role.intCompany.name.header","description":"International company name header","defaultMessage":"State the organization's name"},{"id":"pep.role.intCompany.name.required","description":"International company name required error","defaultMessage":"You need to state a name"},{"id":"pep.role.intCompany.role.header","description":"International company role header","defaultMessage":"State role"},{"id":"pep.role.intCompany.role.required","description":"International company role required error","defaultMessage":"You need to state a role"}]
|
|
1
|
+
[{"id":"pep.role.roles.header"},{"id":"pep.role.roles.placeholder"},{"id":"pep.role.roles.required"},{"id":"pep.role.roles.alt.HEAD_OF_GOVERNMENT"},{"id":"pep.role.roles.alt.MINISTER"},{"id":"pep.role.roles.alt.PARLIMENT_MEMBER"},{"id":"pep.role.roles.alt.CENTRAL_BANK_MEMBER"},{"id":"pep.role.roles.alt.BOARD_MEMBER_POLITICAL_PARTY"},{"id":"pep.role.roles.alt.JUDGE_SUPREME_COURT"},{"id":"pep.role.roles.alt.JUDGE_OTHER_HIGH_COURT"},{"id":"pep.role.roles.alt.REVISION_INSTITUTE"},{"id":"pep.role.roles.alt.AMBASSADOR"},{"id":"pep.role.roles.alt.MILITARY_OFFICER"},{"id":"pep.role.roles.alt.GOVERNMENT_COMPANY"},{"id":"pep.role.roles.alt.EU_HIGH_RANKING_POSITION"},{"id":"pep.role.roles.alt.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"},{"id":"pep.role.military.name.header"},{"id":"pep.role.military.header"},{"id":"pep.role.military.required"},{"id":"pep.role.military.alt.GENERAL"},{"id":"pep.role.military.alt.LIEUTENANT_GENERAL"},{"id":"pep.role.military.alt.MAJOR_GENERAL"},{"id":"pep.role.military.alt.ADMIRAL"},{"id":"pep.role.military.alt.VICE_ADMIRAL"},{"id":"pep.role.military.alt.REAR_ADMIRAL"},{"id":"pep.role.ambassador.header"},{"id":"pep.role.ambassador.required"},{"id":"pep.role.governmentCompany.name.header"},{"id":"pep.role.governmentCompany.name.required"},{"id":"pep.role.governmentCompany.role.header"},{"id":"pep.role.governmentCompany.role.required"},{"id":"pep.role.intCompany.name.header"},{"id":"pep.role.intCompany.name.required"},{"id":"pep.role.intCompany.role.header"},{"id":"pep.role.intCompany.role.required"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.role.next"
|
|
1
|
+
[{"id":"pep.role.next"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.status.isongoing.header"
|
|
1
|
+
[{"id":"pep.status.isongoing.header"},{"id":"pep.status.isongoing.required"},{"id":"pep.status.ended.header"},{"id":"pep.status.ended.required"},{"id":"pep.status.localcountry.header"},{"id":"pep.status.localcountry.required"},{"id":"pep.status.countryselecton.header"},{"id":"pep.status.countryselecton.required"},{"id":"pep.status.localcountryalt.local"},{"id":"pep.status.othercountryalt.other"},{"id":"pep.status.state.ONGOING"},{"id":"pep.status.state.ENDED"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.status.next"
|
|
1
|
+
[{"id":"pep.status.next"}]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lysaab/lysa-pep",
|
|
3
3
|
"author": "Lysa AB",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"main": "./Exports.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@lysaab/countries": "^3.1.1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@formatjs/cli": "^1.1.22",
|
|
16
|
-
"@lysaab/ui-2": "^
|
|
16
|
+
"@lysaab/ui-2": "^33.2.2",
|
|
17
17
|
"@types/jest": "24.0.20",
|
|
18
18
|
"@types/luxon": "^1.15.2",
|
|
19
19
|
"@types/node": "12.11.7",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typescript": "^4.3.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@lysaab/ui-2": "^
|
|
35
|
+
"@lysaab/ui-2": "^33.2.1",
|
|
36
36
|
"react": "^17.0.1",
|
|
37
37
|
"react-intl": "^5.20.2",
|
|
38
38
|
"react-router-dom": "^5.2.0"
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
export declare const messages: {
|
|
2
2
|
header: {
|
|
3
3
|
id: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defaultMessage: string;
|
|
6
4
|
};
|
|
7
5
|
required: {
|
|
8
6
|
id: string;
|
|
9
|
-
description: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
7
|
};
|
|
12
8
|
NOT_PEP: {
|
|
13
9
|
id: string;
|
|
14
|
-
description: string;
|
|
15
|
-
defaultMessage: string;
|
|
16
10
|
};
|
|
17
11
|
ME: {
|
|
18
12
|
id: string;
|
|
19
|
-
description: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
13
|
};
|
|
22
14
|
RELATIVE: {
|
|
23
15
|
id: string;
|
|
24
|
-
description: string;
|
|
25
|
-
defaultMessage: string;
|
|
26
16
|
};
|
|
27
17
|
COLLEAGUE: {
|
|
28
18
|
id: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultMessage: string;
|
|
31
19
|
};
|
|
32
20
|
};
|
|
@@ -1,70 +1,10 @@
|
|
|
1
1
|
import { defineMessages } from "react-intl";
|
|
2
2
|
import { PepType } from "../PepContext";
|
|
3
3
|
export const messages = defineMessages({
|
|
4
|
-
header: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Are you or is a peer close to you a politically exposed person (PEP)?
|
|
11
|
-
}
|
|
12
|
-
CORPORATION {
|
|
13
|
-
Is {name} or a person close to {name} a politically exposed person (PEP)?
|
|
14
|
-
}
|
|
15
|
-
other {}
|
|
16
|
-
}`,
|
|
17
|
-
},
|
|
18
|
-
required: {
|
|
19
|
-
id: "pep.ispep.required",
|
|
20
|
-
description: "Required validator text",
|
|
21
|
-
defaultMessage: "You need to choose an alternative",
|
|
22
|
-
},
|
|
23
|
-
[PepType.NOT_PEP]: {
|
|
24
|
-
id: "pep.ispep.NOT_PEP",
|
|
25
|
-
description: "Not pep",
|
|
26
|
-
defaultMessage: "No",
|
|
27
|
-
},
|
|
28
|
-
[PepType.ME]: {
|
|
29
|
-
id: "pep.ispep.ME",
|
|
30
|
-
description: "The person is pep",
|
|
31
|
-
defaultMessage: `{
|
|
32
|
-
entityType, select,
|
|
33
|
-
PERSON {
|
|
34
|
-
I have a role which makes me a PEP
|
|
35
|
-
}
|
|
36
|
-
CORPORATION {
|
|
37
|
-
{name} is PEP because of his or her role
|
|
38
|
-
}
|
|
39
|
-
other {}
|
|
40
|
-
}`,
|
|
41
|
-
},
|
|
42
|
-
[PepType.RELATIVE]: {
|
|
43
|
-
id: "pep.ispep.RELATIVE",
|
|
44
|
-
description: "I have a relationship with a person that is a PEP",
|
|
45
|
-
defaultMessage: `{
|
|
46
|
-
entityType, select,
|
|
47
|
-
PERSON {
|
|
48
|
-
I have a relationship with a person that is a PEP
|
|
49
|
-
}
|
|
50
|
-
CORPORATION {
|
|
51
|
-
{name} has a relationship with a PEP
|
|
52
|
-
}
|
|
53
|
-
other {}
|
|
54
|
-
}`,
|
|
55
|
-
},
|
|
56
|
-
[PepType.COLLEAGUE]: {
|
|
57
|
-
id: "pep.ispep.COLLEAGUE",
|
|
58
|
-
description: "The person has a colleague that is a PEP",
|
|
59
|
-
defaultMessage: `{
|
|
60
|
-
entityType, select,
|
|
61
|
-
PERSON {
|
|
62
|
-
I work for, or have a business relationship with, a PEP
|
|
63
|
-
}
|
|
64
|
-
CORPORATION {
|
|
65
|
-
{name} works for, or has a business relationship with, a PEP
|
|
66
|
-
}
|
|
67
|
-
other {}
|
|
68
|
-
}`,
|
|
69
|
-
},
|
|
4
|
+
header: { id: "pep.ispep.header" },
|
|
5
|
+
required: { id: "pep.ispep.required" },
|
|
6
|
+
[PepType.NOT_PEP]: { id: "pep.ispep.NOT_PEP" },
|
|
7
|
+
[PepType.ME]: { id: "pep.ispep.ME" },
|
|
8
|
+
[PepType.RELATIVE]: { id: "pep.ispep.RELATIVE" },
|
|
9
|
+
[PepType.COLLEAGUE]: { id: "pep.ispep.COLLEAGUE" },
|
|
70
10
|
});
|
package/pages/IsPep/IsPepPage.js
CHANGED
|
@@ -57,5 +57,5 @@ export const IsPepPage = ({ next }) => {
|
|
|
57
57
|
React.createElement(Card, null,
|
|
58
58
|
React.createElement(IsPepQuestion, { ownerName: pepContext.state.ownerName, entityType: pepContext.state.legalEntityType || EntityType.PERSON, type: pepContext.state.type, onChange: (type) => pepContext.setState({ type }) })),
|
|
59
59
|
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
60
|
-
React.createElement(FormattedMessage, { id: "pep.ispep.next"
|
|
60
|
+
React.createElement(FormattedMessage, { id: "pep.ispep.next" }))));
|
|
61
61
|
};
|
|
@@ -1,105 +1,67 @@
|
|
|
1
1
|
export declare const relationMessages: {
|
|
2
2
|
header: {
|
|
3
3
|
id: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defaultMessage: string;
|
|
6
4
|
};
|
|
7
5
|
required: {
|
|
8
6
|
id: string;
|
|
9
|
-
description: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
7
|
};
|
|
12
8
|
MARRIED_PARTNER: {
|
|
13
9
|
id: string;
|
|
14
|
-
description: string;
|
|
15
|
-
defaultMessage: string;
|
|
16
10
|
};
|
|
17
11
|
COLIVING_PARTNER: {
|
|
18
12
|
id: string;
|
|
19
|
-
description: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
13
|
};
|
|
22
14
|
CHILD: {
|
|
23
15
|
id: string;
|
|
24
|
-
description: string;
|
|
25
|
-
defaultMessage: string;
|
|
26
16
|
};
|
|
27
17
|
PARENT: {
|
|
28
18
|
id: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultMessage: string;
|
|
31
19
|
};
|
|
32
20
|
CHILD_MARRIED_PARTNER: {
|
|
33
21
|
id: string;
|
|
34
|
-
description: string;
|
|
35
|
-
defaultMessage: string;
|
|
36
22
|
};
|
|
37
23
|
CHILD_COLIVING_PARTNER: {
|
|
38
24
|
id: string;
|
|
39
|
-
description: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
25
|
};
|
|
42
26
|
};
|
|
43
27
|
export declare const businessRelationMessages: {
|
|
44
28
|
header: {
|
|
45
29
|
id: string;
|
|
46
|
-
description: string;
|
|
47
|
-
defaultMessage: string;
|
|
48
30
|
};
|
|
49
31
|
required: {
|
|
50
32
|
id: string;
|
|
51
|
-
description: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
33
|
};
|
|
54
34
|
CO_OWNERSHIP: {
|
|
55
35
|
id: string;
|
|
56
|
-
description: string;
|
|
57
|
-
defaultMessage: string;
|
|
58
36
|
};
|
|
59
37
|
CLOSE_CONNECTION: {
|
|
60
38
|
id: string;
|
|
61
|
-
description: string;
|
|
62
|
-
defaultMessage: string;
|
|
63
39
|
};
|
|
64
40
|
COMPANY_FOR_PEP: {
|
|
65
41
|
id: string;
|
|
66
|
-
description: string;
|
|
67
|
-
defaultMessage: string;
|
|
68
42
|
};
|
|
69
43
|
};
|
|
70
44
|
export declare const relativeNameMessages: {
|
|
71
45
|
header: {
|
|
72
46
|
id: string;
|
|
73
|
-
description: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
47
|
};
|
|
76
48
|
required: {
|
|
77
49
|
id: string;
|
|
78
|
-
description: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
50
|
};
|
|
81
51
|
};
|
|
82
52
|
export declare const birthdayMessages: {
|
|
83
53
|
header: {
|
|
84
54
|
id: string;
|
|
85
|
-
description: string;
|
|
86
|
-
defaultMessage: string;
|
|
87
55
|
};
|
|
88
56
|
required: {
|
|
89
57
|
id: string;
|
|
90
|
-
description: string;
|
|
91
|
-
defaultMessage: string;
|
|
92
58
|
};
|
|
93
59
|
};
|
|
94
60
|
export declare const colleagueNameMessages: {
|
|
95
61
|
header: {
|
|
96
62
|
id: string;
|
|
97
|
-
description: string;
|
|
98
|
-
defaultMessage: string;
|
|
99
63
|
};
|
|
100
64
|
required: {
|
|
101
65
|
id: string;
|
|
102
|
-
description: string;
|
|
103
|
-
defaultMessage: string;
|
|
104
66
|
};
|
|
105
67
|
};
|