@lysaab/lysa-pep 3.0.2 → 3.0.4
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/CountrySelect.d.ts +11 -11
- package/components/CountrySelect.js +41 -41
- package/components/PepAnswers.d.ts +8 -8
- package/components/PepAnswers.js +137 -137
- package/messages/src/pages/IsPep/IsPepMessages.json +1 -1
- package/messages/src/pages/RelationPage/RelationMessages.json +1 -1
- package/messages/src/pages/StatusPage/StatusMessages.json +1 -1
- package/model/PepModel.d.ts +7 -7
- package/model/PepModel.js +40 -40
- package/package.json +1 -1
- package/pages/IsPep/IsPepMessages.d.ts +32 -32
- package/pages/IsPep/IsPepMessages.js +38 -34
- package/pages/IsPep/IsPepPage.d.ts +15 -15
- package/pages/IsPep/IsPepPage.js +61 -61
- package/pages/PepContext.d.ts +81 -80
- package/pages/PepContext.js +89 -88
- package/pages/RelationPage/RelationMessages.d.ts +105 -105
- package/pages/RelationPage/RelationMessages.js +112 -107
- package/pages/RelationPage/RelationPage.d.ts +6 -6
- package/pages/RelationPage/RelationPage.js +156 -156
- package/pages/RolePage/RoleMessages.d.ts +185 -185
- package/pages/RolePage/RoleMessages.js +187 -187
- package/pages/RolePage/RolePage.d.ts +11 -11
- package/pages/RolePage/RolePage.js +223 -223
- package/pages/StatusPage/StatusMessages.d.ts +72 -72
- package/pages/StatusPage/StatusMessages.js +82 -74
- package/pages/StatusPage/StatusPage.d.ts +8 -8
- package/pages/StatusPage/StatusPage.js +105 -105
- package/utils/Possession.d.ts +1 -1
- package/utils/Possession.js +27 -27
- 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/Exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./pages/PepContext";
|
|
2
|
-
export * from "./model/PepModel";
|
|
3
|
-
export * from "./pages/IsPep/IsPepPage";
|
|
4
|
-
export { RelationPage } from "./pages/RelationPage/RelationPage";
|
|
5
|
-
export { RolePage as PepRolePage, getMilitaryAlts, getRoleAlts } from "./pages/RolePage/RolePage";
|
|
6
|
-
export { StatusPage as PepStatusPage } from "./pages/StatusPage/StatusPage";
|
|
7
|
-
export { PepAnswers } from "./components/PepAnswers";
|
|
1
|
+
export * from "./pages/PepContext";
|
|
2
|
+
export * from "./model/PepModel";
|
|
3
|
+
export * from "./pages/IsPep/IsPepPage";
|
|
4
|
+
export { RelationPage } from "./pages/RelationPage/RelationPage";
|
|
5
|
+
export { RolePage as PepRolePage, getMilitaryAlts, getRoleAlts } from "./pages/RolePage/RolePage";
|
|
6
|
+
export { StatusPage as PepStatusPage } from "./pages/StatusPage/StatusPage";
|
|
7
|
+
export { PepAnswers } from "./components/PepAnswers";
|
package/Exports.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./pages/PepContext";
|
|
2
|
-
export * from "./model/PepModel";
|
|
3
|
-
export * from "./pages/IsPep/IsPepPage";
|
|
4
|
-
export { RelationPage } from "./pages/RelationPage/RelationPage";
|
|
5
|
-
export { RolePage as PepRolePage, getMilitaryAlts, getRoleAlts } from "./pages/RolePage/RolePage";
|
|
6
|
-
export { StatusPage as PepStatusPage } from "./pages/StatusPage/StatusPage";
|
|
7
|
-
export { PepAnswers } from "./components/PepAnswers";
|
|
1
|
+
export * from "./pages/PepContext";
|
|
2
|
+
export * from "./model/PepModel";
|
|
3
|
+
export * from "./pages/IsPep/IsPepPage";
|
|
4
|
+
export { RelationPage } from "./pages/RelationPage/RelationPage";
|
|
5
|
+
export { RolePage as PepRolePage, getMilitaryAlts, getRoleAlts } from "./pages/RolePage/RolePage";
|
|
6
|
+
export { StatusPage as PepStatusPage } from "./pages/StatusPage/StatusPage";
|
|
7
|
+
export { PepAnswers } from "./components/PepAnswers";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Alternative } from "@lysaab/ui-2";
|
|
3
|
-
import { ValidationProps } from "@lysaab/ui-2/hooks/useValidation";
|
|
4
|
-
interface Props extends ValidationProps {
|
|
5
|
-
value?: string;
|
|
6
|
-
onChange?(value: Alternative<string>): void;
|
|
7
|
-
label: string;
|
|
8
|
-
omitCountries?: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare const CountrySelect: ({ value, omitCountries, ...props }: Props) => JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Alternative } from "@lysaab/ui-2";
|
|
3
|
+
import { ValidationProps } from "@lysaab/ui-2/hooks/useValidation";
|
|
4
|
+
interface Props extends ValidationProps {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?(value: Alternative<string>): void;
|
|
7
|
+
label: string;
|
|
8
|
+
omitCountries?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const CountrySelect: ({ value, omitCountries, ...props }: Props) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useState, useEffect } from "react";
|
|
13
|
-
import { Select } from "@lysaab/ui-2";
|
|
14
|
-
import countries from "@lysaab/countries";
|
|
15
|
-
import { defineMessages, useIntl } from "react-intl";
|
|
16
|
-
const messages = defineMessages({
|
|
17
|
-
placeholder: {
|
|
18
|
-
id: "component.select.country",
|
|
19
|
-
description: "Select a country placeholder",
|
|
20
|
-
defaultMessage: "Select a country",
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
function getCountries(lang, omitCountries) {
|
|
24
|
-
return (countries[lang] || countries["en"])
|
|
25
|
-
.filter((country) => !omitCountries.includes(country.value))
|
|
26
|
-
.map((country) => ({
|
|
27
|
-
text: country.label,
|
|
28
|
-
value: country.value,
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
const EMPTY_OMIT_COUNTRIES = [];
|
|
32
|
-
export const CountrySelect = (_a) => {
|
|
33
|
-
var { value, omitCountries = EMPTY_OMIT_COUNTRIES } = _a, props = __rest(_a, ["value", "omitCountries"]);
|
|
34
|
-
const intl = useIntl();
|
|
35
|
-
const lang = intl.locale.slice(0, 2);
|
|
36
|
-
const [countryAlternatives, setCountryAlternatives] = useState(getCountries(lang, omitCountries));
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
setCountryAlternatives(getCountries(lang, omitCountries));
|
|
39
|
-
}, [lang, omitCountries]);
|
|
40
|
-
return (React.createElement(Select, Object.assign({ alternatives: countryAlternatives, placeholder: intl.formatMessage(messages.placeholder), value: countryAlternatives.find((country) => country.value === value) }, props)));
|
|
41
|
-
};
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { useState, useEffect } from "react";
|
|
13
|
+
import { Select } from "@lysaab/ui-2";
|
|
14
|
+
import countries from "@lysaab/countries";
|
|
15
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
16
|
+
const messages = defineMessages({
|
|
17
|
+
placeholder: {
|
|
18
|
+
id: "component.select.country",
|
|
19
|
+
description: "Select a country placeholder",
|
|
20
|
+
defaultMessage: "Select a country",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
function getCountries(lang, omitCountries) {
|
|
24
|
+
return (countries[lang] || countries["en"])
|
|
25
|
+
.filter((country) => !omitCountries.includes(country.value))
|
|
26
|
+
.map((country) => ({
|
|
27
|
+
text: country.label,
|
|
28
|
+
value: country.value,
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
const EMPTY_OMIT_COUNTRIES = [];
|
|
32
|
+
export const CountrySelect = (_a) => {
|
|
33
|
+
var { value, omitCountries = EMPTY_OMIT_COUNTRIES } = _a, props = __rest(_a, ["value", "omitCountries"]);
|
|
34
|
+
const intl = useIntl();
|
|
35
|
+
const lang = intl.locale.slice(0, 2);
|
|
36
|
+
const [countryAlternatives, setCountryAlternatives] = useState(getCountries(lang, omitCountries));
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
setCountryAlternatives(getCountries(lang, omitCountries));
|
|
39
|
+
}, [lang, omitCountries]);
|
|
40
|
+
return (React.createElement(Select, Object.assign({ alternatives: countryAlternatives, placeholder: intl.formatMessage(messages.placeholder), value: countryAlternatives.find((country) => country.value === value) }, props)));
|
|
41
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
import "./PepAnswers.scss";
|
|
3
|
-
import { PepRequest } from "../model/PepModel";
|
|
4
|
-
interface Props {
|
|
5
|
-
answer: PepRequest;
|
|
6
|
-
}
|
|
7
|
-
export declare const PepAnswers: FunctionComponent<Props>;
|
|
8
|
-
export {};
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import "./PepAnswers.scss";
|
|
3
|
+
import { PepRequest } from "../model/PepModel";
|
|
4
|
+
interface Props {
|
|
5
|
+
answer: PepRequest;
|
|
6
|
+
}
|
|
7
|
+
export declare const PepAnswers: FunctionComponent<Props>;
|
|
8
|
+
export {};
|
package/components/PepAnswers.js
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./PepAnswers.scss";
|
|
3
|
-
import countries from "@lysaab/countries";
|
|
4
|
-
import { getRoleAlts, getMilitaryAlts } from "../pages/RolePage/RolePage";
|
|
5
|
-
import { PepType } from "../pages/PepContext";
|
|
6
|
-
import { useIntl, defineMessages, FormattedMessage } from "react-intl";
|
|
7
|
-
import { messages as isPepMessages } from "../pages/IsPep/IsPepMessages";
|
|
8
|
-
import { relationMessages, businessRelationMessages, } from "../pages/RelationPage/RelationMessages";
|
|
9
|
-
const messages = defineMessages({
|
|
10
|
-
whoIsPepLabel: {
|
|
11
|
-
id: "pep.answers.who.label",
|
|
12
|
-
description: "Who is pep label",
|
|
13
|
-
defaultMessage: "Who is PEP?",
|
|
14
|
-
},
|
|
15
|
-
relationLabel: {
|
|
16
|
-
id: "pep.answers.relationship.label",
|
|
17
|
-
description: "Relationship label",
|
|
18
|
-
defaultMessage: "Relationship",
|
|
19
|
-
},
|
|
20
|
-
businessRelationLabel: {
|
|
21
|
-
id: "pep.answers.businessRelationship.label",
|
|
22
|
-
description: "Business relationship label",
|
|
23
|
-
defaultMessage: "Who is PEP?",
|
|
24
|
-
},
|
|
25
|
-
nameOfPepLabel: {
|
|
26
|
-
id: "pep.answers.nameOfPep.label",
|
|
27
|
-
description: "Name of pep label",
|
|
28
|
-
defaultMessage: "The person's name",
|
|
29
|
-
},
|
|
30
|
-
birthdayOfPEPLabel: {
|
|
31
|
-
id: "pep.answers.birthdayOfPEP.label",
|
|
32
|
-
description: "Birthday of pep label",
|
|
33
|
-
defaultMessage: "The person's birthday",
|
|
34
|
-
},
|
|
35
|
-
statusLabel: {
|
|
36
|
-
id: "pep.answers.status.label",
|
|
37
|
-
description: "Status label",
|
|
38
|
-
defaultMessage: "Status",
|
|
39
|
-
},
|
|
40
|
-
statusEndedValue: {
|
|
41
|
-
id: "pep.answers.statusEnded.value",
|
|
42
|
-
description: "Status ended value",
|
|
43
|
-
defaultMessage: "Ended",
|
|
44
|
-
},
|
|
45
|
-
statusOngoingValue: {
|
|
46
|
-
id: "pep.answers.statusOngoing.value",
|
|
47
|
-
description: "Status ongoing value",
|
|
48
|
-
defaultMessage: "Ongoing",
|
|
49
|
-
},
|
|
50
|
-
endedLabel: {
|
|
51
|
-
id: "pep.answers.endedStatus.label",
|
|
52
|
-
description: "Ended label",
|
|
53
|
-
defaultMessage: "Ended",
|
|
54
|
-
},
|
|
55
|
-
roleLabel: {
|
|
56
|
-
id: "pep.answers.role.label",
|
|
57
|
-
description: "Role label",
|
|
58
|
-
defaultMessage: "Role",
|
|
59
|
-
},
|
|
60
|
-
countryLabel: {
|
|
61
|
-
id: "pep.answers.country.label",
|
|
62
|
-
description: "Country label",
|
|
63
|
-
defaultMessage: "Country",
|
|
64
|
-
},
|
|
65
|
-
ambassadorCountryLabel: {
|
|
66
|
-
id: "pep.answers.ambassadorCountry.label",
|
|
67
|
-
description: "Ambassador country label",
|
|
68
|
-
defaultMessage: "Ambassador country",
|
|
69
|
-
},
|
|
70
|
-
governmentCompanyNameLabel: {
|
|
71
|
-
id: "pep.answers.governmentCompanyName.label",
|
|
72
|
-
description: "Government company name label",
|
|
73
|
-
defaultMessage: "Company name",
|
|
74
|
-
},
|
|
75
|
-
governmentCompanyRoleLabel: {
|
|
76
|
-
id: "pep.answers.governmentCompanyRole.label",
|
|
77
|
-
description: "Government company role label",
|
|
78
|
-
defaultMessage: "Company role",
|
|
79
|
-
},
|
|
80
|
-
internationalOrganisationNameLabel: {
|
|
81
|
-
id: "pep.answers.companyName.label",
|
|
82
|
-
description: "International organisation name label",
|
|
83
|
-
defaultMessage: "Company name",
|
|
84
|
-
},
|
|
85
|
-
internationalOrganisationRoleLabel: {
|
|
86
|
-
id: "pep.answers.companyRole.label",
|
|
87
|
-
description: "International organisation role label",
|
|
88
|
-
defaultMessage: "Company role",
|
|
89
|
-
},
|
|
90
|
-
militaryGradeLabel: {
|
|
91
|
-
id: "pep.answers.militaryRank.label",
|
|
92
|
-
description: "Military rank label",
|
|
93
|
-
defaultMessage: "Military rank",
|
|
94
|
-
},
|
|
95
|
-
});
|
|
96
|
-
export const PepAnswers = ({ answer }) => {
|
|
97
|
-
var _a;
|
|
98
|
-
const intl = useIntl();
|
|
99
|
-
if (!answer.type || answer.type === PepType.NOT_PEP) {
|
|
100
|
-
return (React.createElement("div", null,
|
|
101
|
-
React.createElement("p", null,
|
|
102
|
-
React.createElement(FormattedMessage, { id: "pep.answers.notpep", description: "Not pep", defaultMessage: "The person is not PEP" }))));
|
|
103
|
-
}
|
|
104
|
-
const entityType = answer.legalEntityType;
|
|
105
|
-
const lang = intl.locale.slice(0, 2);
|
|
106
|
-
const country = (countries[lang] || countries["en"]).find((country) => country.value === answer.country);
|
|
107
|
-
const role = getRoleAlts(intl).find((alt) => alt.value === answer.role);
|
|
108
|
-
const militaryRank = getMilitaryAlts(intl).find((alt) => alt.value === answer.militaryRank);
|
|
109
|
-
return (React.createElement("div", null,
|
|
110
|
-
answer.type && (React.createElement(StaticInput, { label: intl.formatMessage(messages.whoIsPepLabel), value: intl.formatMessage(isPepMessages[answer.type], {
|
|
111
|
-
entityType,
|
|
112
|
-
name: answer.ownerName,
|
|
113
|
-
}) })),
|
|
114
|
-
answer.relationToPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.relationLabel), value: intl.formatMessage(relationMessages[answer.relationToPEP], {
|
|
115
|
-
entityType,
|
|
116
|
-
name: answer.ownerName,
|
|
117
|
-
}) })),
|
|
118
|
-
answer.businessRelation && (React.createElement(StaticInput, { label: intl.formatMessage(messages.businessRelationLabel), value: intl.formatMessage(businessRelationMessages[answer.businessRelation], { entityType, name: answer.ownerName }) })),
|
|
119
|
-
answer.nameOfPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.nameOfPepLabel), value: answer.nameOfPEP })),
|
|
120
|
-
answer.birthdayOfPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.birthdayOfPEPLabel), value: answer.birthdayOfPEP })),
|
|
121
|
-
answer.ended ? (React.createElement(React.Fragment, null,
|
|
122
|
-
React.createElement(StaticInput, { label: intl.formatMessage(messages.statusLabel), value: intl.formatMessage(messages.statusEndedValue) }),
|
|
123
|
-
React.createElement(StaticInput, { label: intl.formatMessage(messages.endedLabel), value: answer.ended }))) : (React.createElement(StaticInput, { label: intl.formatMessage(messages.statusLabel), value: intl.formatMessage(messages.statusOngoingValue) })),
|
|
124
|
-
answer.country && (React.createElement(StaticInput, { label: intl.formatMessage(messages.countryLabel), value: country ? country.label : answer.country })),
|
|
125
|
-
role && (React.createElement(StaticInput, { label: intl.formatMessage(messages.roleLabel), value: role.text })),
|
|
126
|
-
answer.ambassadorCountry && (React.createElement(StaticInput, { label: intl.formatMessage(messages.ambassadorCountryLabel), value: ((_a = (countries[lang] || countries["en"]).find((country) => country.value === answer.ambassadorCountry)) === null || _a === void 0 ? void 0 : _a.label) || answer.ambassadorCountry })),
|
|
127
|
-
answer.governmentCompany && (React.createElement(StaticInput, { label: intl.formatMessage(messages.governmentCompanyNameLabel), value: answer.governmentCompany })),
|
|
128
|
-
answer.governmentCompanyRole && (React.createElement(StaticInput, { label: intl.formatMessage(messages.governmentCompanyRoleLabel), value: answer.governmentCompanyRole })),
|
|
129
|
-
answer.internationalOrganisation && (React.createElement(StaticInput, { label: intl.formatMessage(messages.internationalOrganisationNameLabel), value: answer.internationalOrganisation })),
|
|
130
|
-
answer.internationalOrganisationRole && (React.createElement(StaticInput, { label: intl.formatMessage(messages.internationalOrganisationRoleLabel), value: answer.internationalOrganisationRole })),
|
|
131
|
-
militaryRank && (React.createElement(StaticInput, { label: intl.formatMessage(messages.militaryGradeLabel), value: militaryRank.text }))));
|
|
132
|
-
};
|
|
133
|
-
const StaticInput = ({ label, value }) => {
|
|
134
|
-
return (React.createElement("div", { className: "static-input" },
|
|
135
|
-
React.createElement("div", { className: "label" }, label),
|
|
136
|
-
React.createElement("div", { className: "value" }, value)));
|
|
137
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./PepAnswers.scss";
|
|
3
|
+
import countries from "@lysaab/countries";
|
|
4
|
+
import { getRoleAlts, getMilitaryAlts } from "../pages/RolePage/RolePage";
|
|
5
|
+
import { PepType } from "../pages/PepContext";
|
|
6
|
+
import { useIntl, defineMessages, FormattedMessage } from "react-intl";
|
|
7
|
+
import { messages as isPepMessages } from "../pages/IsPep/IsPepMessages";
|
|
8
|
+
import { relationMessages, businessRelationMessages, } from "../pages/RelationPage/RelationMessages";
|
|
9
|
+
const messages = defineMessages({
|
|
10
|
+
whoIsPepLabel: {
|
|
11
|
+
id: "pep.answers.who.label",
|
|
12
|
+
description: "Who is pep label",
|
|
13
|
+
defaultMessage: "Who is PEP?",
|
|
14
|
+
},
|
|
15
|
+
relationLabel: {
|
|
16
|
+
id: "pep.answers.relationship.label",
|
|
17
|
+
description: "Relationship label",
|
|
18
|
+
defaultMessage: "Relationship",
|
|
19
|
+
},
|
|
20
|
+
businessRelationLabel: {
|
|
21
|
+
id: "pep.answers.businessRelationship.label",
|
|
22
|
+
description: "Business relationship label",
|
|
23
|
+
defaultMessage: "Who is PEP?",
|
|
24
|
+
},
|
|
25
|
+
nameOfPepLabel: {
|
|
26
|
+
id: "pep.answers.nameOfPep.label",
|
|
27
|
+
description: "Name of pep label",
|
|
28
|
+
defaultMessage: "The person's name",
|
|
29
|
+
},
|
|
30
|
+
birthdayOfPEPLabel: {
|
|
31
|
+
id: "pep.answers.birthdayOfPEP.label",
|
|
32
|
+
description: "Birthday of pep label",
|
|
33
|
+
defaultMessage: "The person's birthday",
|
|
34
|
+
},
|
|
35
|
+
statusLabel: {
|
|
36
|
+
id: "pep.answers.status.label",
|
|
37
|
+
description: "Status label",
|
|
38
|
+
defaultMessage: "Status",
|
|
39
|
+
},
|
|
40
|
+
statusEndedValue: {
|
|
41
|
+
id: "pep.answers.statusEnded.value",
|
|
42
|
+
description: "Status ended value",
|
|
43
|
+
defaultMessage: "Ended",
|
|
44
|
+
},
|
|
45
|
+
statusOngoingValue: {
|
|
46
|
+
id: "pep.answers.statusOngoing.value",
|
|
47
|
+
description: "Status ongoing value",
|
|
48
|
+
defaultMessage: "Ongoing",
|
|
49
|
+
},
|
|
50
|
+
endedLabel: {
|
|
51
|
+
id: "pep.answers.endedStatus.label",
|
|
52
|
+
description: "Ended label",
|
|
53
|
+
defaultMessage: "Ended",
|
|
54
|
+
},
|
|
55
|
+
roleLabel: {
|
|
56
|
+
id: "pep.answers.role.label",
|
|
57
|
+
description: "Role label",
|
|
58
|
+
defaultMessage: "Role",
|
|
59
|
+
},
|
|
60
|
+
countryLabel: {
|
|
61
|
+
id: "pep.answers.country.label",
|
|
62
|
+
description: "Country label",
|
|
63
|
+
defaultMessage: "Country",
|
|
64
|
+
},
|
|
65
|
+
ambassadorCountryLabel: {
|
|
66
|
+
id: "pep.answers.ambassadorCountry.label",
|
|
67
|
+
description: "Ambassador country label",
|
|
68
|
+
defaultMessage: "Ambassador country",
|
|
69
|
+
},
|
|
70
|
+
governmentCompanyNameLabel: {
|
|
71
|
+
id: "pep.answers.governmentCompanyName.label",
|
|
72
|
+
description: "Government company name label",
|
|
73
|
+
defaultMessage: "Company name",
|
|
74
|
+
},
|
|
75
|
+
governmentCompanyRoleLabel: {
|
|
76
|
+
id: "pep.answers.governmentCompanyRole.label",
|
|
77
|
+
description: "Government company role label",
|
|
78
|
+
defaultMessage: "Company role",
|
|
79
|
+
},
|
|
80
|
+
internationalOrganisationNameLabel: {
|
|
81
|
+
id: "pep.answers.companyName.label",
|
|
82
|
+
description: "International organisation name label",
|
|
83
|
+
defaultMessage: "Company name",
|
|
84
|
+
},
|
|
85
|
+
internationalOrganisationRoleLabel: {
|
|
86
|
+
id: "pep.answers.companyRole.label",
|
|
87
|
+
description: "International organisation role label",
|
|
88
|
+
defaultMessage: "Company role",
|
|
89
|
+
},
|
|
90
|
+
militaryGradeLabel: {
|
|
91
|
+
id: "pep.answers.militaryRank.label",
|
|
92
|
+
description: "Military rank label",
|
|
93
|
+
defaultMessage: "Military rank",
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
export const PepAnswers = ({ answer }) => {
|
|
97
|
+
var _a;
|
|
98
|
+
const intl = useIntl();
|
|
99
|
+
if (!answer.type || answer.type === PepType.NOT_PEP) {
|
|
100
|
+
return (React.createElement("div", null,
|
|
101
|
+
React.createElement("p", null,
|
|
102
|
+
React.createElement(FormattedMessage, { id: "pep.answers.notpep", description: "Not pep", defaultMessage: "The person is not PEP" }))));
|
|
103
|
+
}
|
|
104
|
+
const entityType = answer.legalEntityType;
|
|
105
|
+
const lang = intl.locale.slice(0, 2);
|
|
106
|
+
const country = (countries[lang] || countries["en"]).find((country) => country.value === answer.country);
|
|
107
|
+
const role = getRoleAlts(intl).find((alt) => alt.value === answer.role);
|
|
108
|
+
const militaryRank = getMilitaryAlts(intl).find((alt) => alt.value === answer.militaryRank);
|
|
109
|
+
return (React.createElement("div", null,
|
|
110
|
+
answer.type && (React.createElement(StaticInput, { label: intl.formatMessage(messages.whoIsPepLabel), value: intl.formatMessage(isPepMessages[answer.type], {
|
|
111
|
+
entityType,
|
|
112
|
+
name: answer.ownerName,
|
|
113
|
+
}) })),
|
|
114
|
+
answer.relationToPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.relationLabel), value: intl.formatMessage(relationMessages[answer.relationToPEP], {
|
|
115
|
+
entityType,
|
|
116
|
+
name: answer.ownerName,
|
|
117
|
+
}) })),
|
|
118
|
+
answer.businessRelation && (React.createElement(StaticInput, { label: intl.formatMessage(messages.businessRelationLabel), value: intl.formatMessage(businessRelationMessages[answer.businessRelation], { entityType, name: answer.ownerName }) })),
|
|
119
|
+
answer.nameOfPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.nameOfPepLabel), value: answer.nameOfPEP })),
|
|
120
|
+
answer.birthdayOfPEP && (React.createElement(StaticInput, { label: intl.formatMessage(messages.birthdayOfPEPLabel), value: answer.birthdayOfPEP })),
|
|
121
|
+
answer.ended ? (React.createElement(React.Fragment, null,
|
|
122
|
+
React.createElement(StaticInput, { label: intl.formatMessage(messages.statusLabel), value: intl.formatMessage(messages.statusEndedValue) }),
|
|
123
|
+
React.createElement(StaticInput, { label: intl.formatMessage(messages.endedLabel), value: answer.ended }))) : (React.createElement(StaticInput, { label: intl.formatMessage(messages.statusLabel), value: intl.formatMessage(messages.statusOngoingValue) })),
|
|
124
|
+
answer.country && (React.createElement(StaticInput, { label: intl.formatMessage(messages.countryLabel), value: country ? country.label : answer.country })),
|
|
125
|
+
role && (React.createElement(StaticInput, { label: intl.formatMessage(messages.roleLabel), value: role.text })),
|
|
126
|
+
answer.ambassadorCountry && (React.createElement(StaticInput, { label: intl.formatMessage(messages.ambassadorCountryLabel), value: ((_a = (countries[lang] || countries["en"]).find((country) => country.value === answer.ambassadorCountry)) === null || _a === void 0 ? void 0 : _a.label) || answer.ambassadorCountry })),
|
|
127
|
+
answer.governmentCompany && (React.createElement(StaticInput, { label: intl.formatMessage(messages.governmentCompanyNameLabel), value: answer.governmentCompany })),
|
|
128
|
+
answer.governmentCompanyRole && (React.createElement(StaticInput, { label: intl.formatMessage(messages.governmentCompanyRoleLabel), value: answer.governmentCompanyRole })),
|
|
129
|
+
answer.internationalOrganisation && (React.createElement(StaticInput, { label: intl.formatMessage(messages.internationalOrganisationNameLabel), value: answer.internationalOrganisation })),
|
|
130
|
+
answer.internationalOrganisationRole && (React.createElement(StaticInput, { label: intl.formatMessage(messages.internationalOrganisationRoleLabel), value: answer.internationalOrganisationRole })),
|
|
131
|
+
militaryRank && (React.createElement(StaticInput, { label: intl.formatMessage(messages.militaryGradeLabel), value: militaryRank.text }))));
|
|
132
|
+
};
|
|
133
|
+
const StaticInput = ({ label, value }) => {
|
|
134
|
+
return (React.createElement("div", { className: "static-input" },
|
|
135
|
+
React.createElement("div", { className: "label" }, label),
|
|
136
|
+
React.createElement("div", { className: "value" }, value)));
|
|
137
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.ispep.header","description":"Is PEP question header","defaultMessage":"{ \n entityType, select,\n PERSON {\n Are you or is a peer close to you a politically exposed person (PEP)?\n }\n CORPORATION {\n Is {name} or a person close to {name} a politically exposed person (PEP)?\n }\n }"},{"id":"pep.ispep.required","description":"Required validator text","defaultMessage":"You need to choose an alternative"},{"id":"pep.ispep.NOT_PEP","description":"Not pep","defaultMessage":"No"},{"id":"pep.ispep.ME","description":"The person is pep","defaultMessage":"{ \n entityType, select,\n PERSON {\n I have a role which makes me a PEP\n }\n CORPORATION {\n {name} is PEP because of his or her role\n }\n }"},{"id":"pep.ispep.RELATIVE","description":"I have a relationship with a person that is a PEP","defaultMessage":"{ \n entityType, select,\n PERSON {\n I have a relationship with a person that is a PEP\n }\n CORPORATION {\n {name} has a relationship with a PEP\n }\n }"},{"id":"pep.ispep.COLLEAGUE","description":"The person has a colleague that is a PEP","defaultMessage":"{ \n entityType, select,\n PERSON {\n I work for, or have a business relationship with, a PEP\n }\n CORPORATION {\n {name} works for, or has a business relationship with, a PEP\n }\n }"}]
|
|
1
|
+
[{"id":"pep.ispep.header","description":"Is PEP question header","defaultMessage":"{ \n entityType, select,\n PERSON {\n Are you or is a peer close to you a politically exposed person (PEP)?\n }\n CORPORATION {\n Is {name} or a person close to {name} a politically exposed person (PEP)?\n }\n other {}\n }"},{"id":"pep.ispep.required","description":"Required validator text","defaultMessage":"You need to choose an alternative"},{"id":"pep.ispep.NOT_PEP","description":"Not pep","defaultMessage":"No"},{"id":"pep.ispep.ME","description":"The person is pep","defaultMessage":"{ \n entityType, select,\n PERSON {\n I have a role which makes me a PEP\n }\n CORPORATION {\n {name} is PEP because of his or her role\n }\n other {}\n }"},{"id":"pep.ispep.RELATIVE","description":"I have a relationship with a person that is a PEP","defaultMessage":"{ \n entityType, select,\n PERSON {\n I have a relationship with a person that is a PEP\n }\n CORPORATION {\n {name} has a relationship with a PEP\n }\n other {}\n }"},{"id":"pep.ispep.COLLEAGUE","description":"The person has a colleague that is a PEP","defaultMessage":"{ \n entityType, select,\n PERSON {\n I work for, or have a business relationship with, a PEP\n }\n CORPORATION {\n {name} works for, or has a business relationship with, a PEP\n }\n other {}\n }"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.relation.relationship.header","description":"Relationship header","defaultMessage":"{ \n entityType, select,\n PERSON {\n What relationship do you have to the person in a politically exposed position?\n }\n CORPORATION {\n What relationship does {name} have to the person in a politically exposed position?\n }\n }"},{"id":"pep.relation.relation.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.relation.MARRIED_PARTNER","description":"The person is married to someone who is pep","defaultMessage":"Spouse of a PEP"},{"id":"pep.relation.relation.COLIVING_PARTNER","description":"The person is a coliving partner to someone who is pep","defaultMessage":"Partner to a PEP"},{"id":"pep.relation.relation.CHILD","description":"The person is the child of someone who is pep","defaultMessage":"Child of a PEP"},{"id":"pep.relation.relation.PARENT","description":"The person is the parent of someone who is pep","defaultMessage":"Parent of a PEP"},{"id":"pep.relation.relation.CHILD_MARRIED_PARTNER","description":"The person is married to the child of someone who is pep","defaultMessage":"Spouse of the child of a PEP"},{"id":"pep.relation.relation.CHILD_COLIVING_PARTNER","description":"The person is married to someone who is pep","defaultMessage":"Partner to the child of a PEP"},{"id":"pep.relation.businessrelation.header","description":"Business relation header","defaultMessage":"{ \n entityType, select,\n PERSON {\n What relationship do you have to the person in a politically exposed position?\n }\n CORPORATION {\n What relationship does {name} have to the person in a politically exposed position?\n }\n }"},{"id":"pep.relation.businessrelation.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.businessrelation.alt.CO_OWNERSHIP","description":"Co-ownership alternative","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n CORPORATION {\n {name} is the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n }"},{"id":"pep.relation.businessrelation.alt.CLOSE_CONNECTION","description":"Close business relation","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am a person that in one way or the other have or have had a close relation with a PEP\n }\n CORPORATION {\n {name} is a person that in one way or the other has or has had a close relation with a PEP\n }\n }"},{"id":"pep.relation.businessrelation.alt.COMPANY_FOR_PEP","description":"Beneficial owner","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n CORPORATION {\n {name} is the lone beneficial owner to a legal person, or a legal structure together with a PEP\n }\n }"},{"id":"pep.relation.relative.name.header","description":"Relative name","defaultMessage":"{ \n entityType, select,\n PERSON {\n {\n relation, select, \n MARRIED_PARTNER {\n What is the name of your spouce?\n }\n COLIVING_PARTNER {\n What is the name of your partner?\n }\n CHILD {\n What is the name of your parent?\n }\n PARENT {\n What is the name of your child?\n }\n CHILD_MARRIED_PARTNER {\n What is the name of the parent of your spouse?\n }\n CHILD_COLIVING_PARTNER {\n What is the name of the parent of your partner?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select, \n MARRIED_PARTNER {\n What is the name of the spouse of {name}?\n }\n COLIVING_PARTNER {\n What is the name of the partner of {name}?\n }\n CHILD {\n What is the name of the parent of {name}?\n }\n PARENT {\n What is the name of the child of {name}?\n }\n CHILD_MARRIED_PARTNER {\n What is the name of the parent of the spouse of {name}?\n }\n CHILD_COLIVING_PARTNER {\n What is the name of the parent of the partner of {name}?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.relative.name.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.birthday.header","description":"Relative birthday","defaultMessage":"{ \n entityType, select,\n PERSON {\n {\n relation, select, \n MARRIED_PARTNER { \n When is your spouse born? \n } \n COLIVING_PARTNER { \n When is your partner born? \n } \n CHILD { \n When is your parent born? \n } \n PARENT { \n When is your child born? \n } \n CHILD_MARRIED_PARTNER { \n When is the parent of your spouse born?\n } \n CHILD_COLIVING_PARTNER { \n When is the parent of your partner born?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select, \n MARRIED_PARTNER {\n When is the spouse of {name} born?\n }\n COLIVING_PARTNER {\n When is the partner of {name} born?\n }\n CHILD {\n When is the child of {name} born?\n }\n PARENT {\n When is the parent of {name} born?\n }\n CHILD_MARRIED_PARTNER {\n When is the parent of the spouse of {name} born?\n }\n CHILD_COLIVING_PARTNER {\n When is the parent of the partner of {name} born?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.birthday.required","description":"Required error message","defaultMessage":"State the date"},{"id":"pep.relation.colleague.name.header","description":"Colleague name","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n relation, select, \n CO_OWNERSHIP { \n What is the name of the person in a politically exposed position that you have a relationship with?\n }\n CLOSE_CONNECTION { \n What is the name of the person in a politically exposed position that you have a relationship with?\n }\n COMPANY_FOR_PEP { \n What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select,\n CO_OWNERSHIP { \n What is the name of the person in a politically exposed position that {name} has a relationship with?\n }\n CLOSE_CONNECTION { \n What is the name of the person in a politically exposed position that {name} has a relationship with?\n }\n COMPANY_FOR_PEP { \n What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.colleague.name.required","description":"Required error message","defaultMessage":"You need to choose an alternative"}]
|
|
1
|
+
[{"id":"pep.relation.relationship.header","description":"Relationship header","defaultMessage":"{ \n entityType, select,\n PERSON {\n What relationship do you have to the person in a politically exposed position?\n }\n CORPORATION {\n What relationship does {name} have to the person in a politically exposed position?\n }\n other {}\n }"},{"id":"pep.relation.relation.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.relation.MARRIED_PARTNER","description":"The person is married to someone who is pep","defaultMessage":"Spouse of a PEP"},{"id":"pep.relation.relation.COLIVING_PARTNER","description":"The person is a coliving partner to someone who is pep","defaultMessage":"Partner to a PEP"},{"id":"pep.relation.relation.CHILD","description":"The person is the child of someone who is pep","defaultMessage":"Child of a PEP"},{"id":"pep.relation.relation.PARENT","description":"The person is the parent of someone who is pep","defaultMessage":"Parent of a PEP"},{"id":"pep.relation.relation.CHILD_MARRIED_PARTNER","description":"The person is married to the child of someone who is pep","defaultMessage":"Spouse of the child of a PEP"},{"id":"pep.relation.relation.CHILD_COLIVING_PARTNER","description":"The person is married to someone who is pep","defaultMessage":"Partner to the child of a PEP"},{"id":"pep.relation.businessrelation.header","description":"Business relation header","defaultMessage":"{ \n entityType, select,\n PERSON {\n What relationship do you have to the person in a politically exposed position?\n }\n CORPORATION {\n What relationship does {name} have to the person in a politically exposed position?\n }\n other {}\n }"},{"id":"pep.relation.businessrelation.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.businessrelation.alt.CO_OWNERSHIP","description":"Co-ownership alternative","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n CORPORATION {\n {name} is the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n other {}\n }"},{"id":"pep.relation.businessrelation.alt.CLOSE_CONNECTION","description":"Close business relation","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am a person that in one way or the other have or have had a close relation with a PEP\n }\n CORPORATION {\n {name} is a person that in one way or the other has or has had a close relation with a PEP\n }\n other {}\n }"},{"id":"pep.relation.businessrelation.alt.COMPANY_FOR_PEP","description":"Beneficial owner","defaultMessage":"{ \n entityType, select,\n PERSON {\n I am the beneficial owner to a legal person, or a legal structure together with a PEP\n }\n CORPORATION {\n {name} is the lone beneficial owner to a legal person, or a legal structure together with a PEP\n }\n other {}\n }"},{"id":"pep.relation.relative.name.header","description":"Relative name","defaultMessage":"{ \n entityType, select,\n PERSON {\n {\n relation, select, \n MARRIED_PARTNER {\n What is the name of your spouce?\n }\n COLIVING_PARTNER {\n What is the name of your partner?\n }\n CHILD {\n What is the name of your parent?\n }\n PARENT {\n What is the name of your child?\n }\n CHILD_MARRIED_PARTNER {\n What is the name of the parent of your spouse?\n }\n CHILD_COLIVING_PARTNER {\n What is the name of the parent of your partner?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select, \n MARRIED_PARTNER {\n What is the name of the spouse of {name}?\n }\n COLIVING_PARTNER {\n What is the name of the partner of {name}?\n }\n CHILD {\n What is the name of the parent of {name}?\n }\n PARENT {\n What is the name of the child of {name}?\n }\n CHILD_MARRIED_PARTNER {\n What is the name of the parent of the spouse of {name}?\n }\n CHILD_COLIVING_PARTNER {\n What is the name of the parent of the partner of {name}?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.relative.name.required","description":"Required error message","defaultMessage":"You need to choose an alternative"},{"id":"pep.relation.birthday.header","description":"Relative birthday","defaultMessage":"{ \n entityType, select,\n PERSON {\n {\n relation, select, \n MARRIED_PARTNER { \n When is your spouse born? \n } \n COLIVING_PARTNER { \n When is your partner born? \n } \n CHILD { \n When is your parent born? \n } \n PARENT { \n When is your child born? \n } \n CHILD_MARRIED_PARTNER { \n When is the parent of your spouse born?\n } \n CHILD_COLIVING_PARTNER { \n When is the parent of your partner born?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select, \n MARRIED_PARTNER {\n When is the spouse of {name} born?\n }\n COLIVING_PARTNER {\n When is the partner of {name} born?\n }\n CHILD {\n When is the child of {name} born?\n }\n PARENT {\n When is the parent of {name} born?\n }\n CHILD_MARRIED_PARTNER {\n When is the parent of the spouse of {name} born?\n }\n CHILD_COLIVING_PARTNER {\n When is the parent of the partner of {name} born?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.birthday.required","description":"Required error message","defaultMessage":"State the date"},{"id":"pep.relation.colleague.name.header","description":"Colleague name","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n relation, select, \n CO_OWNERSHIP { \n What is the name of the person in a politically exposed position that you have a relationship with?\n }\n CLOSE_CONNECTION { \n What is the name of the person in a politically exposed position that you have a relationship with?\n }\n COMPANY_FOR_PEP { \n What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?\n }\n other {}\n }\n }\n CORPORATION {\n {\n relation, select,\n CO_OWNERSHIP { \n What is the name of the person in a politically exposed position that {name} has a relationship with?\n }\n CLOSE_CONNECTION { \n What is the name of the person in a politically exposed position that {name} has a relationship with?\n }\n COMPANY_FOR_PEP { \n What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.relation.colleague.name.required","description":"Required error message","defaultMessage":"You need to choose an alternative"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"pep.status.isongoing.header","description":"Is ongoing header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n Is your position ongoing or ended?\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n Is your spouse's position ongoing or ended?\n }\n COLIVING_PARTNER { \n Is your partner's position ongoing or ended?\n }\n CHILD { \n Is your parent's position ongoing or ended?\n }\n PARENT { \n Is your child's position ongoing or ended?\n }\n CHILD_MARRIED_PARTNER { \n Is your spouse's parent's position ongoing or ended?\n }\n CHILD_COLIVING_PARTNER { \n Is your partner's parent's position ongoing or ended?\n }\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n Is the position for the person in a politically exposed position, who is a beneficial owner in a company together with you, ongoing or ended?\n }\n CLOSE_CONNECTION { \n Is the position for the person in a politically exposed position, who you have or have had a close relationship to, ongoing or ended?\n }\n COMPANY_FOR_PEP { \n Is the position for the person in a politically exposed position, who you have a close relationship to, ongoing or ended?\n }\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n Is the position of {name} ongoing or ended\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n Is the position of the spouse of {name} ongoing or ended?\n }\n COLIVING_PARTNER { \n Is the position of the partner of {name} ongoing or ended?\n }\n CHILD { \n Is the position of the parent of {name} ongoing or ended?\n }\n PARENT { \n Is the position of the child of {name} ongoing or ended?\n }\n CHILD_MARRIED_PARTNER { \n Is the position of the parent of the spouse of {name} ongoing or ended?\n }\n CHILD_COLIVING_PARTNER { \n Is the position of the parent of the partner of {name} ongoing or ended?\n }\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n Is the position of the person in a politically exposed position, who is the beneficial owner in a company together with {name}, ongoing or ended?\n }\n CLOSE_CONNECTION { \n Is the position for the person in a politically exposed position, who {name} have or have had a close relationship to, ongoing or ended?\n }\n COMPANY_FOR_PEP { \n Is the position for the person in a politically exposed position, who {name} have a close relationship to, ongoing or ended?\n }\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.status.isongoing.required","description":"Is ongoing required error","defaultMessage":"You need to choose an alternative"},{"id":"pep.status.ended.header","description":"When did it end header","defaultMessage":"When did the assignment end?"},{"id":"pep.status.ended.required","description":"When did it end required error","defaultMessage":"You need to provide an end date"},{"id":"pep.status.localcountry.header","description":"What country header","defaultMessage":"What country is the position in?"},{"id":"pep.status.localcountry.required","description":"Is local country required error","defaultMessage":"You need to choose a country"},{"id":"pep.status.countryselecton.header","description":"Country selection header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n In what country is/was your position?\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n In what country is/was your spouse's position?\n }\n COLIVING_PARTNER { \n In what country is/was your partner's position?\n }\n CHILD { \n In what country is/was your parent's position?\n }\n PARENT { \n In what country is/was your child's position?\n }\n CHILD_MARRIED_PARTNER { \n In what country is/was your spouse's parent's position?\n }\n CHILD_COLIVING_PARTNER { \n In what country is/was your partner's parent's position?\n }\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n CLOSE_CONNECTION { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n COMPANY_FOR_PEP { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n In what country is/was the position of {name}\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n In what country is/was the position of the spouse of {name}\n }\n COLIVING_PARTNER { \n In what country is/was the position of the partner of {name}\n }\n CHILD { \n In what country is/was the position of the parent of {name}\n }\n PARENT { \n In what country is/was the position of the child of {name}\n }\n CHILD_MARRIED_PARTNER { \n In what country is/was the position of the parent of the spouse of {name}\n }\n CHILD_COLIVING_PARTNER { \n In what country is/was the position of the parent of the partner of {name}\n }\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n In what country is/was the position of the beneficial owner that {name} has a relationship to?\n }\n CLOSE_CONNECTION { \n In what country is/was the position of the person that {name} has/had a relationship to?\n }\n COMPANY_FOR_PEP { \n In what country has/had the person in a politically exposed position, that {name} has a relationship to, his or her position?\n }\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.status.countryselecton.required","description":"Country selection required error","defaultMessage":"You have to choose a country"},{"id":"pep.status.localcountryalt.local","description":"Local country name","defaultMessage":"{countryName}"},{"id":"pep.status.othercountryalt.other","description":"Other country","defaultMessage":"Other"},{"id":"pep.status.state.ONGOING","description":"Ongoing alt","defaultMessage":"Ongoing"},{"id":"pep.status.state.ENDED","description":"Ended alt","defaultMessage":"Ended"}]
|
|
1
|
+
[{"id":"pep.status.isongoing.header","description":"Is ongoing header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n Is your position ongoing or ended?\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n Is your spouse's position ongoing or ended?\n }\n COLIVING_PARTNER { \n Is your partner's position ongoing or ended?\n }\n CHILD { \n Is your parent's position ongoing or ended?\n }\n PARENT { \n Is your child's position ongoing or ended?\n }\n CHILD_MARRIED_PARTNER { \n Is your spouse's parent's position ongoing or ended?\n }\n CHILD_COLIVING_PARTNER { \n Is your partner's parent's position ongoing or ended?\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n Is the position for the person in a politically exposed position, who is a beneficial owner in a company together with you, ongoing or ended?\n }\n CLOSE_CONNECTION { \n Is the position for the person in a politically exposed position, who you have or have had a close relationship to, ongoing or ended?\n }\n COMPANY_FOR_PEP { \n Is the position for the person in a politically exposed position, who you have a close relationship to, ongoing or ended?\n }\n other {}\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n Is the position of {name} ongoing or ended\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n Is the position of the spouse of {name} ongoing or ended?\n }\n COLIVING_PARTNER { \n Is the position of the partner of {name} ongoing or ended?\n }\n CHILD { \n Is the position of the parent of {name} ongoing or ended?\n }\n PARENT { \n Is the position of the child of {name} ongoing or ended?\n }\n CHILD_MARRIED_PARTNER { \n Is the position of the parent of the spouse of {name} ongoing or ended?\n }\n CHILD_COLIVING_PARTNER { \n Is the position of the parent of the partner of {name} ongoing or ended?\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n Is the position of the person in a politically exposed position, who is the beneficial owner in a company together with {name}, ongoing or ended?\n }\n CLOSE_CONNECTION { \n Is the position for the person in a politically exposed position, who {name} have or have had a close relationship to, ongoing or ended?\n }\n COMPANY_FOR_PEP { \n Is the position for the person in a politically exposed position, who {name} have a close relationship to, ongoing or ended?\n }\n other {}\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.status.isongoing.required","description":"Is ongoing required error","defaultMessage":"You need to choose an alternative"},{"id":"pep.status.ended.header","description":"When did it end header","defaultMessage":"When did the assignment end?"},{"id":"pep.status.ended.required","description":"When did it end required error","defaultMessage":"You need to provide an end date"},{"id":"pep.status.localcountry.header","description":"What country header","defaultMessage":"What country is the position in?"},{"id":"pep.status.localcountry.required","description":"Is local country required error","defaultMessage":"You need to choose a country"},{"id":"pep.status.countryselecton.header","description":"Country selection header","defaultMessage":"{ \n entityType, select,\n PERSON {\n { \n pepType, select, \n ME { \n In what country is/was your position?\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n In what country is/was your spouse's position?\n }\n COLIVING_PARTNER { \n In what country is/was your partner's position?\n }\n CHILD { \n In what country is/was your parent's position?\n }\n PARENT { \n In what country is/was your child's position?\n }\n CHILD_MARRIED_PARTNER { \n In what country is/was your spouse's parent's position?\n }\n CHILD_COLIVING_PARTNER { \n In what country is/was your partner's parent's position?\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n CLOSE_CONNECTION { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n COMPANY_FOR_PEP { \n In what country is/was the position of the person in a politically exposed position you have or have had a relationship to?\n }\n other {}\n }\n }\n other {}\n }\n }\n CORPORATION {\n { \n pepType, select, \n ME { \n In what country is/was the position of {name}\n }\n RELATIVE { \n {\n relation, select,\n MARRIED_PARTNER { \n In what country is/was the position of the spouse of {name}\n }\n COLIVING_PARTNER { \n In what country is/was the position of the partner of {name}\n }\n CHILD { \n In what country is/was the position of the parent of {name}\n }\n PARENT { \n In what country is/was the position of the child of {name}\n }\n CHILD_MARRIED_PARTNER { \n In what country is/was the position of the parent of the spouse of {name}\n }\n CHILD_COLIVING_PARTNER { \n In what country is/was the position of the parent of the partner of {name}\n }\n other {}\n }\n }\n COLLEAGUE { \n {\n relation, select,\n CO_OWNERSHIP { \n In what country is/was the position of the beneficial owner that {name} has a relationship to?\n }\n CLOSE_CONNECTION { \n In what country is/was the position of the person that {name} has/had a relationship to?\n }\n COMPANY_FOR_PEP { \n In what country has/had the person in a politically exposed position, that {name} has a relationship to, his or her position?\n }\n other {}\n }\n }\n other {}\n }\n }\n other {}\n }"},{"id":"pep.status.countryselecton.required","description":"Country selection required error","defaultMessage":"You have to choose a country"},{"id":"pep.status.localcountryalt.local","description":"Local country name","defaultMessage":"{countryName}"},{"id":"pep.status.othercountryalt.other","description":"Other country","defaultMessage":"Other"},{"id":"pep.status.state.ONGOING","description":"Ongoing alt","defaultMessage":"Ongoing"},{"id":"pep.status.state.ENDED","description":"Ended alt","defaultMessage":"Ended"}]
|
package/model/PepModel.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PepState } from "../pages/PepContext";
|
|
2
|
-
export interface PepRequest extends Omit<PepState, "isLocalCountry" | "isOngoing" | "ended" | "birthdayOfPEP"> {
|
|
3
|
-
ended?: string;
|
|
4
|
-
birthdayOfPEP?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function stateToRequest(pepState: PepState): PepRequest;
|
|
7
|
-
export declare function requestToState({ ended, birthdayOfPEP, ...serverData }: PepRequest, countryCode: string): PepState;
|
|
1
|
+
import { PepState } from "../pages/PepContext";
|
|
2
|
+
export interface PepRequest extends Omit<PepState, "isLocalCountry" | "isOngoing" | "ended" | "birthdayOfPEP"> {
|
|
3
|
+
ended?: string;
|
|
4
|
+
birthdayOfPEP?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function stateToRequest(pepState: PepState): PepRequest;
|
|
7
|
+
export declare function requestToState({ ended, birthdayOfPEP, ...serverData }: PepRequest, countryCode: string): PepState;
|