@lysaab/lysa-pep 0.18.0 → 1.0.0-1
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/.vscode/settings.json +4 -0
- package/lib/Exports.d.ts +7 -8
- package/lib/Exports.js +7 -8
- package/lib/components/CountrySelect.d.ts +15 -22
- package/lib/components/CountrySelect.js +30 -21
- package/lib/components/PepAnswers.d.ts +8 -8
- package/lib/components/PepAnswers.js +131 -39
- package/lib/components/PepAnswers.scss +7 -7
- package/lib/model/Countries.d.ts +4 -4
- package/lib/model/Countries.js +1002 -1002
- package/lib/model/PepModel.d.ts +7 -7
- package/lib/model/PepModel.js +40 -40
- package/lib/model/PepTexts.d.ts +322 -380
- package/lib/model/PepTexts.js +467 -552
- package/lib/pages/IsPep/IsPepMessages.d.ts +32 -0
- package/lib/pages/IsPep/IsPepMessages.js +74 -0
- package/lib/pages/IsPep/IsPepPage.d.ts +14 -0
- package/lib/pages/IsPep/IsPepPage.js +39 -0
- package/lib/pages/PepContext.d.ts +80 -80
- package/lib/pages/PepContext.js +88 -88
- package/lib/pages/PepIsPepPage.d.ts +6 -15
- package/lib/pages/PepIsPepPage.js +57 -59
- package/lib/pages/PepRelationPage.d.ts +6 -6
- package/lib/pages/PepRelationPage.js +83 -79
- package/lib/pages/PepRolePage.d.ts +9 -10
- package/lib/pages/PepRolePage.js +127 -127
- package/lib/pages/PepStatusPage.d.ts +6 -6
- package/lib/pages/PepStatusPage.js +57 -58
- package/lib/pages/RelationPage/RelationMessages.d.ts +105 -0
- package/lib/pages/RelationPage/RelationMessages.js +282 -0
- package/lib/pages/RelationPage/RelationPage.d.ts +6 -0
- package/lib/pages/RelationPage/RelationPage.js +142 -0
- package/lib/pages/RolePage/RoleMessages.d.ts +185 -0
- package/lib/pages/RolePage/RoleMessages.js +381 -0
- package/lib/pages/RolePage/RolePage.d.ts +11 -0
- package/lib/pages/RolePage/RolePage.js +214 -0
- package/lib/pages/StatusPage/StatusMessages.d.ts +72 -0
- package/lib/pages/StatusPage/StatusMessages.js +74 -0
- package/lib/pages/StatusPage/StatusPage.d.ts +6 -0
- package/lib/pages/StatusPage/StatusPage.js +75 -0
- package/package.json +56 -53
- package/src/Exports.ts +12 -13
- package/src/components/CountrySelect.tsx +47 -43
- package/src/components/PepAnswers.scss +7 -7
- package/src/components/PepAnswers.tsx +252 -120
- package/src/demo/Done.tsx +16 -20
- package/src/demo/Pep.tsx +112 -106
- package/src/model/PepModel.ts +52 -52
- package/src/pages/IsPep/IsPepMessages.ts +75 -0
- package/src/pages/IsPep/IsPepPage.tsx +94 -0
- package/src/pages/PepContext.tsx +144 -144
- package/src/pages/RelationPage/RelationMessages.ts +287 -0
- package/src/pages/RelationPage/RelationPage.tsx +269 -0
- package/src/pages/RolePage/RoleMessages.ts +389 -0
- package/src/pages/RolePage/RolePage.tsx +342 -0
- package/src/pages/StatusPage/StatusMessages.ts +80 -0
- package/src/pages/StatusPage/StatusPage.tsx +172 -0
- package/src/model/PepTexts.ts +0 -607
- package/src/pages/PepIsPepPage.tsx +0 -107
- package/src/pages/PepRelationPage.tsx +0 -188
- package/src/pages/PepRolePage.tsx +0 -272
- package/src/pages/PepStatusPage.tsx +0 -157
package/src/pages/PepContext.tsx
CHANGED
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import React, { useReducer } from "react";
|
|
2
|
-
|
|
3
|
-
export enum EntityType {
|
|
4
|
-
PERSON = "PERSON",
|
|
5
|
-
CORPORATION = "CORPORATION",
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export enum PepType {
|
|
9
|
-
NOT_PEP = "NOT_PEP",
|
|
10
|
-
ME = "ME",
|
|
11
|
-
RELATIVE = "RELATIVE",
|
|
12
|
-
COLLEAGUE = "COLLEAGUE",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum PepStatus {
|
|
16
|
-
ONGOING = "ONGOING",
|
|
17
|
-
ENDED = "ENDED",
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export enum Role {
|
|
21
|
-
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
22
|
-
MINISTER = "MINISTER",
|
|
23
|
-
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
24
|
-
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
25
|
-
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
26
|
-
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
27
|
-
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
28
|
-
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
29
|
-
AMBASSADOR = "AMBASSADOR",
|
|
30
|
-
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
31
|
-
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
32
|
-
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
33
|
-
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export enum Relation {
|
|
37
|
-
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
38
|
-
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
39
|
-
CHILD = "CHILD",
|
|
40
|
-
PARENT = "PARENT",
|
|
41
|
-
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
42
|
-
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER",
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export enum BusinessRelation {
|
|
46
|
-
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
47
|
-
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
48
|
-
COMPANY_FOR_PEP = "COMPANY_FOR_PEP",
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export enum MilitaryRank {
|
|
52
|
-
GENERAL = "GENERAL",
|
|
53
|
-
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
54
|
-
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
55
|
-
ADMIRAL = "ADMIRAL",
|
|
56
|
-
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
57
|
-
REAR_ADMIRAL = "REAR_ADMIRAL",
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Types for the state
|
|
61
|
-
export interface PepState {
|
|
62
|
-
legalEntityType?: EntityType;
|
|
63
|
-
type?: PepType;
|
|
64
|
-
role?: Role;
|
|
65
|
-
country?: string;
|
|
66
|
-
ended?: Date;
|
|
67
|
-
ambassadorCountry?: string;
|
|
68
|
-
militaryRank?: MilitaryRank;
|
|
69
|
-
governmentCompany?: string;
|
|
70
|
-
governmentCompanyRole?: string;
|
|
71
|
-
internationalOrganisation?: string;
|
|
72
|
-
internationalOrganisationRole?: string;
|
|
73
|
-
relationToPEP?: Relation;
|
|
74
|
-
nameOfPEP?: string;
|
|
75
|
-
birthdayOfPEP?: Date;
|
|
76
|
-
tin?: string;
|
|
77
|
-
businessRelation?: BusinessRelation;
|
|
78
|
-
|
|
79
|
-
isOngoing?: PepStatus;
|
|
80
|
-
isSweden?: string;
|
|
81
|
-
ownerName?: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export const EMPTY_PEP_STATE: PepState = {
|
|
85
|
-
legalEntityType: undefined,
|
|
86
|
-
type: undefined,
|
|
87
|
-
role: undefined,
|
|
88
|
-
country: undefined,
|
|
89
|
-
ended: undefined,
|
|
90
|
-
ambassadorCountry: undefined,
|
|
91
|
-
militaryRank: undefined,
|
|
92
|
-
governmentCompany: undefined,
|
|
93
|
-
governmentCompanyRole: undefined,
|
|
94
|
-
internationalOrganisation: undefined,
|
|
95
|
-
internationalOrganisationRole: undefined,
|
|
96
|
-
relationToPEP: undefined,
|
|
97
|
-
nameOfPEP: undefined,
|
|
98
|
-
birthdayOfPEP: undefined,
|
|
99
|
-
tin: undefined,
|
|
100
|
-
businessRelation: undefined,
|
|
101
|
-
|
|
102
|
-
isOngoing: undefined,
|
|
103
|
-
isSweden: undefined,
|
|
104
|
-
ownerName: undefined,
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
// All types for the context. This includes setter methods
|
|
108
|
-
export interface PepContextProps {
|
|
109
|
-
state: PepState;
|
|
110
|
-
setState: (newState: Partial<PepState>) => void;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Create the context. (This will just create a template)
|
|
114
|
-
export const PepContext = React.createContext<PepContextProps>(
|
|
115
|
-
{} as PepContextProps
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* A Higher Order Component. This is used to wrap classes so that the context is injected
|
|
120
|
-
* There is quite a bit TS magic here. This is so that the internal props off the component
|
|
121
|
-
* will be stripped of the context props so that the external props will only show the relevant
|
|
122
|
-
* props
|
|
123
|
-
*/
|
|
124
|
-
export const withPep = <P extends object>(
|
|
125
|
-
Component: React.ComponentType<P>
|
|
126
|
-
): React.FC<Omit<P, keyof PepContextProps>> => props => (
|
|
127
|
-
<PepContext.Consumer>
|
|
128
|
-
{contextProps => <Component {...(props as P)} {...contextProps} />}
|
|
129
|
-
</PepContext.Consumer>
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
function stateReducer(state: PepState, newState: Partial<PepState>) {
|
|
133
|
-
return { ...state, ...newState };
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export const PepContextProvider: React.FC = ({ children }) => {
|
|
137
|
-
const [pep, setPep] = useReducer(stateReducer, {});
|
|
138
|
-
|
|
139
|
-
return (
|
|
140
|
-
<PepContext.Provider value={{ state: pep, setState: setPep }}>
|
|
141
|
-
{children}
|
|
142
|
-
</PepContext.Provider>
|
|
143
|
-
);
|
|
144
|
-
};
|
|
1
|
+
import React, { useReducer } from "react";
|
|
2
|
+
|
|
3
|
+
export enum EntityType {
|
|
4
|
+
PERSON = "PERSON",
|
|
5
|
+
CORPORATION = "CORPORATION",
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum PepType {
|
|
9
|
+
NOT_PEP = "NOT_PEP",
|
|
10
|
+
ME = "ME",
|
|
11
|
+
RELATIVE = "RELATIVE",
|
|
12
|
+
COLLEAGUE = "COLLEAGUE",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum PepStatus {
|
|
16
|
+
ONGOING = "ONGOING",
|
|
17
|
+
ENDED = "ENDED",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum Role {
|
|
21
|
+
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
22
|
+
MINISTER = "MINISTER",
|
|
23
|
+
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
24
|
+
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
25
|
+
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
26
|
+
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
27
|
+
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
28
|
+
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
29
|
+
AMBASSADOR = "AMBASSADOR",
|
|
30
|
+
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
31
|
+
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
32
|
+
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
33
|
+
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum Relation {
|
|
37
|
+
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
38
|
+
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
39
|
+
CHILD = "CHILD",
|
|
40
|
+
PARENT = "PARENT",
|
|
41
|
+
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
42
|
+
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export enum BusinessRelation {
|
|
46
|
+
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
47
|
+
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
48
|
+
COMPANY_FOR_PEP = "COMPANY_FOR_PEP",
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export enum MilitaryRank {
|
|
52
|
+
GENERAL = "GENERAL",
|
|
53
|
+
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
54
|
+
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
55
|
+
ADMIRAL = "ADMIRAL",
|
|
56
|
+
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
57
|
+
REAR_ADMIRAL = "REAR_ADMIRAL",
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Types for the state
|
|
61
|
+
export interface PepState {
|
|
62
|
+
legalEntityType?: EntityType;
|
|
63
|
+
type?: PepType;
|
|
64
|
+
role?: Role;
|
|
65
|
+
country?: string;
|
|
66
|
+
ended?: Date;
|
|
67
|
+
ambassadorCountry?: string;
|
|
68
|
+
militaryRank?: MilitaryRank;
|
|
69
|
+
governmentCompany?: string;
|
|
70
|
+
governmentCompanyRole?: string;
|
|
71
|
+
internationalOrganisation?: string;
|
|
72
|
+
internationalOrganisationRole?: string;
|
|
73
|
+
relationToPEP?: Relation;
|
|
74
|
+
nameOfPEP?: string;
|
|
75
|
+
birthdayOfPEP?: Date;
|
|
76
|
+
tin?: string;
|
|
77
|
+
businessRelation?: BusinessRelation;
|
|
78
|
+
|
|
79
|
+
isOngoing?: PepStatus;
|
|
80
|
+
isSweden?: string;
|
|
81
|
+
ownerName?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const EMPTY_PEP_STATE: PepState = {
|
|
85
|
+
legalEntityType: undefined,
|
|
86
|
+
type: undefined,
|
|
87
|
+
role: undefined,
|
|
88
|
+
country: undefined,
|
|
89
|
+
ended: undefined,
|
|
90
|
+
ambassadorCountry: undefined,
|
|
91
|
+
militaryRank: undefined,
|
|
92
|
+
governmentCompany: undefined,
|
|
93
|
+
governmentCompanyRole: undefined,
|
|
94
|
+
internationalOrganisation: undefined,
|
|
95
|
+
internationalOrganisationRole: undefined,
|
|
96
|
+
relationToPEP: undefined,
|
|
97
|
+
nameOfPEP: undefined,
|
|
98
|
+
birthdayOfPEP: undefined,
|
|
99
|
+
tin: undefined,
|
|
100
|
+
businessRelation: undefined,
|
|
101
|
+
|
|
102
|
+
isOngoing: undefined,
|
|
103
|
+
isSweden: undefined,
|
|
104
|
+
ownerName: undefined,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// All types for the context. This includes setter methods
|
|
108
|
+
export interface PepContextProps {
|
|
109
|
+
state: PepState;
|
|
110
|
+
setState: (newState: Partial<PepState>) => void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Create the context. (This will just create a template)
|
|
114
|
+
export const PepContext = React.createContext<PepContextProps>(
|
|
115
|
+
{} as PepContextProps
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A Higher Order Component. This is used to wrap classes so that the context is injected
|
|
120
|
+
* There is quite a bit TS magic here. This is so that the internal props off the component
|
|
121
|
+
* will be stripped of the context props so that the external props will only show the relevant
|
|
122
|
+
* props
|
|
123
|
+
*/
|
|
124
|
+
export const withPep = <P extends object>(
|
|
125
|
+
Component: React.ComponentType<P>
|
|
126
|
+
): React.FC<Omit<P, keyof PepContextProps>> => props => (
|
|
127
|
+
<PepContext.Consumer>
|
|
128
|
+
{contextProps => <Component {...(props as P)} {...contextProps} />}
|
|
129
|
+
</PepContext.Consumer>
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
function stateReducer(state: PepState, newState: Partial<PepState>) {
|
|
133
|
+
return { ...state, ...newState };
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const PepContextProvider: React.FC = ({ children }) => {
|
|
137
|
+
const [pep, setPep] = useReducer(stateReducer, {});
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
<PepContext.Provider value={{ state: pep, setState: setPep }}>
|
|
141
|
+
{children}
|
|
142
|
+
</PepContext.Provider>
|
|
143
|
+
);
|
|
144
|
+
};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { defineMessages } from "react-intl";
|
|
2
|
+
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
+
|
|
4
|
+
export const relationMessages = defineMessages({
|
|
5
|
+
header: {
|
|
6
|
+
id: "pep.relation.relation.header",
|
|
7
|
+
description: "Relation header",
|
|
8
|
+
defaultMessage: `{
|
|
9
|
+
entityType, select,
|
|
10
|
+
PERSON {
|
|
11
|
+
Vilken relation har du till personen i politiskt utsatt ställning?
|
|
12
|
+
}
|
|
13
|
+
CORPORATION {
|
|
14
|
+
Vilken relation har {name} till personen i politiskt utsatt ställning?
|
|
15
|
+
}
|
|
16
|
+
}`
|
|
17
|
+
},
|
|
18
|
+
required: {
|
|
19
|
+
id: "pep.relation.relation.required",
|
|
20
|
+
description: "Required error message",
|
|
21
|
+
defaultMessage: `Du måste välja ett alternativ`
|
|
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: `Make/Maka till PEP`
|
|
27
|
+
},
|
|
28
|
+
[Relation.COLIVING_PARTNER]: {
|
|
29
|
+
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
30
|
+
description: "The person is married to someone who is pep",
|
|
31
|
+
defaultMessage: `Sambo till PEP`
|
|
32
|
+
},
|
|
33
|
+
[Relation.CHILD]: {
|
|
34
|
+
id: "pep.relation.relation.CHILD",
|
|
35
|
+
description: "The person is married to someone who is pep",
|
|
36
|
+
defaultMessage: `Barn till PEP`
|
|
37
|
+
},
|
|
38
|
+
[Relation.PARENT]: {
|
|
39
|
+
id: "pep.relation.relation.PARENT",
|
|
40
|
+
description: "The person is married to someone who is pep",
|
|
41
|
+
defaultMessage: `Förälder till PEP`
|
|
42
|
+
},
|
|
43
|
+
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
44
|
+
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
45
|
+
description: "The person is married to someone who is pep",
|
|
46
|
+
defaultMessage: `Make/Maka till barn till 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: `Sambo till barn till PEP`
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const businessRelationMessages = defineMessages({
|
|
56
|
+
header: {
|
|
57
|
+
id: "pep.relation.businessrelation.header",
|
|
58
|
+
description: "Business relation header",
|
|
59
|
+
defaultMessage: `{
|
|
60
|
+
entityType, select,
|
|
61
|
+
PERSON {
|
|
62
|
+
Vilken relation har du till personen i politisk utsatt ställning?
|
|
63
|
+
}
|
|
64
|
+
CORPORATION {
|
|
65
|
+
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
66
|
+
}
|
|
67
|
+
}`
|
|
68
|
+
},
|
|
69
|
+
required: {
|
|
70
|
+
id: "pep.relation.businessrelation.required",
|
|
71
|
+
description: "Required error message",
|
|
72
|
+
defaultMessage: `Du måste välja ett alternativ`
|
|
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
|
+
Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
|
|
81
|
+
}
|
|
82
|
+
CORPORATION {
|
|
83
|
+
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
84
|
+
}
|
|
85
|
+
}`
|
|
86
|
+
},
|
|
87
|
+
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
88
|
+
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
89
|
+
description: "The person is married to someone who is pep",
|
|
90
|
+
defaultMessage: `{
|
|
91
|
+
entityType, select,
|
|
92
|
+
PERSON {
|
|
93
|
+
Jag är en person som på annat sätt har eller har haft nära förbindelser med en PEP
|
|
94
|
+
}
|
|
95
|
+
CORPORATION {
|
|
96
|
+
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
97
|
+
}
|
|
98
|
+
}`
|
|
99
|
+
},
|
|
100
|
+
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
101
|
+
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
102
|
+
description: "The person is married to someone who is pep",
|
|
103
|
+
defaultMessage: `{
|
|
104
|
+
entityType, select,
|
|
105
|
+
PERSON {
|
|
106
|
+
Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
|
|
107
|
+
}
|
|
108
|
+
CORPORATION {
|
|
109
|
+
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
110
|
+
}
|
|
111
|
+
}`
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export const relativeNameMessages = defineMessages({
|
|
116
|
+
header: {
|
|
117
|
+
id: "pep.relation.relative.name.header",
|
|
118
|
+
description: "Relative name",
|
|
119
|
+
defaultMessage: `{
|
|
120
|
+
entityType, select,
|
|
121
|
+
PERSON {
|
|
122
|
+
{
|
|
123
|
+
relation, select,
|
|
124
|
+
MARRIED_PARTNER {
|
|
125
|
+
Vad heter din make/maka?
|
|
126
|
+
}
|
|
127
|
+
COLIVING_PARTNER {
|
|
128
|
+
Vad heter din sambo?
|
|
129
|
+
}
|
|
130
|
+
CHILD {
|
|
131
|
+
Vad heter din förälder?
|
|
132
|
+
}
|
|
133
|
+
PARENT {
|
|
134
|
+
Vad heter ditt barn?
|
|
135
|
+
}
|
|
136
|
+
CHILD_MARRIED_PARTNER {
|
|
137
|
+
Vad heter föräldern till din make/maka?
|
|
138
|
+
}
|
|
139
|
+
CHILD_COLIVING_PARTNER {
|
|
140
|
+
Vad heter föräldern till din sambo?
|
|
141
|
+
}
|
|
142
|
+
other {}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
CORPORATION {
|
|
146
|
+
{
|
|
147
|
+
relation, select,
|
|
148
|
+
MARRIED_PARTNER {
|
|
149
|
+
Vad heter {name} make/maka?
|
|
150
|
+
}
|
|
151
|
+
COLIVING_PARTNER {
|
|
152
|
+
Vad heter {name} sambo?
|
|
153
|
+
}
|
|
154
|
+
CHILD {
|
|
155
|
+
Vad heter {name} förälder?
|
|
156
|
+
}
|
|
157
|
+
PARENT {
|
|
158
|
+
Vad heter {name} barn?
|
|
159
|
+
}
|
|
160
|
+
CHILD_MARRIED_PARTNER {
|
|
161
|
+
Vad heter föräldern till {name} make/maka?
|
|
162
|
+
}
|
|
163
|
+
CHILD_COLIVING_PARTNER {
|
|
164
|
+
Vad heter föräldern till {name} sambo?
|
|
165
|
+
}
|
|
166
|
+
other {}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
other {}
|
|
170
|
+
}`
|
|
171
|
+
},
|
|
172
|
+
required: {
|
|
173
|
+
id: "pep.relation.relative.name.required",
|
|
174
|
+
description: "Required error message",
|
|
175
|
+
defaultMessage: `Du måste välja ett alternativ`
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
export const birthdayMessages = defineMessages({
|
|
180
|
+
header: {
|
|
181
|
+
id: "pep.relation.birthday.header",
|
|
182
|
+
description: "Relative birthday",
|
|
183
|
+
defaultMessage: `{
|
|
184
|
+
entityType, select,
|
|
185
|
+
PERSON {
|
|
186
|
+
{
|
|
187
|
+
relation, select,
|
|
188
|
+
MARRIED_PARTNER {
|
|
189
|
+
När är din make/maka född?
|
|
190
|
+
}
|
|
191
|
+
COLIVING_PARTNER {
|
|
192
|
+
När är din sambo född?
|
|
193
|
+
}
|
|
194
|
+
CHILD {
|
|
195
|
+
När är din förälder född?
|
|
196
|
+
}
|
|
197
|
+
PARENT {
|
|
198
|
+
När är ditt barn fött?
|
|
199
|
+
}
|
|
200
|
+
CHILD_MARRIED_PARTNER {
|
|
201
|
+
När är föräldern till din make/maka född?
|
|
202
|
+
}
|
|
203
|
+
CHILD_COLIVING_PARTNER {
|
|
204
|
+
När är föräldern till din sambo född?
|
|
205
|
+
}
|
|
206
|
+
other {}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
CORPORATION {
|
|
210
|
+
{
|
|
211
|
+
relation, select,
|
|
212
|
+
MARRIED_PARTNER {
|
|
213
|
+
När är {name} make/maka född?
|
|
214
|
+
}
|
|
215
|
+
COLIVING_PARTNER {
|
|
216
|
+
När är {name} sambo född?
|
|
217
|
+
}
|
|
218
|
+
CHILD {
|
|
219
|
+
När är {name} förälder född?
|
|
220
|
+
}
|
|
221
|
+
PARENT {
|
|
222
|
+
När är {name} barn fött?
|
|
223
|
+
}
|
|
224
|
+
CHILD_MARRIED_PARTNER {
|
|
225
|
+
När är föräldern till {name} make/maka född?
|
|
226
|
+
}
|
|
227
|
+
CHILD_COLIVING_PARTNER {
|
|
228
|
+
När är föräldern till {name} sambo född?
|
|
229
|
+
}
|
|
230
|
+
other {}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
other {}
|
|
234
|
+
}`
|
|
235
|
+
},
|
|
236
|
+
required: {
|
|
237
|
+
id: "pep.relation.birthday.required",
|
|
238
|
+
description: "Required error message",
|
|
239
|
+
defaultMessage: `Ange datum`
|
|
240
|
+
}
|
|
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
|
+
Vad heter personen i politisk utsatt ställning som du har en relation till?
|
|
254
|
+
}
|
|
255
|
+
CLOSE_CONNECTION {
|
|
256
|
+
Vad heter personen i politisk utsatt ställning som du har en relation till?
|
|
257
|
+
}
|
|
258
|
+
COMPANY_FOR_PEP {
|
|
259
|
+
Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
|
|
260
|
+
}
|
|
261
|
+
other {}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
CORPORATION {
|
|
265
|
+
{
|
|
266
|
+
relation, select,
|
|
267
|
+
CO_OWNERSHIP {
|
|
268
|
+
Vad heter personen i politisk utsatt ställning som {name} har en relation till?
|
|
269
|
+
}
|
|
270
|
+
CLOSE_CONNECTION {
|
|
271
|
+
Vad heter personen i politisk utsatt ställning som {name} har en relation till?
|
|
272
|
+
}
|
|
273
|
+
COMPANY_FOR_PEP {
|
|
274
|
+
Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
|
|
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: `Du måste välja ett alternativ`
|
|
286
|
+
}
|
|
287
|
+
});
|