@lysaab/lysa-pep 5.0.0 → 5.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/Exports.d.ts +7 -7
- package/Exports.js +7 -7
- package/components/PepAnswers.d.ts +8 -8
- package/components/PepAnswers.js +103 -103
- package/model/PepModel.d.ts +7 -7
- package/model/PepModel.js +40 -40
- package/package.json +1 -1
- package/pages/IsPep/IsPepMessages.d.ts +20 -20
- package/pages/IsPep/IsPepMessages.js +10 -10
- 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 +67 -67
- package/pages/RelationPage/RelationMessages.js +69 -69
- package/pages/RelationPage/RelationPage.d.ts +6 -6
- package/pages/RelationPage/RelationPage.js +158 -158
- package/pages/RolePage/RoleMessages.d.ts +119 -119
- package/pages/RolePage/RoleMessages.js +121 -121
- package/pages/RolePage/RolePage.d.ts +13 -13
- package/pages/RolePage/RolePage.js +222 -222
- package/pages/StatusPage/StatusMessages.d.ts +51 -51
- package/pages/StatusPage/StatusMessages.js +53 -53
- package/pages/StatusPage/StatusPage.d.ts +10 -10
- package/pages/StatusPage/StatusPage.js +104 -104
- package/utils/Possession.d.ts +1 -1
- package/utils/Possession.js +27 -27
package/pages/PepContext.d.ts
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare enum EntityType {
|
|
3
|
-
PERSON = "PERSON",
|
|
4
|
-
CORPORATION = "CORPORATION"
|
|
5
|
-
}
|
|
6
|
-
export declare enum PepType {
|
|
7
|
-
NOT_PEP = "NOT_PEP",
|
|
8
|
-
ME = "ME",
|
|
9
|
-
RELATIVE = "RELATIVE",
|
|
10
|
-
COLLEAGUE = "COLLEAGUE"
|
|
11
|
-
}
|
|
12
|
-
export declare enum PepStatus {
|
|
13
|
-
ONGOING = "ONGOING",
|
|
14
|
-
ENDED = "ENDED"
|
|
15
|
-
}
|
|
16
|
-
export declare enum Role {
|
|
17
|
-
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
18
|
-
MINISTER = "MINISTER",
|
|
19
|
-
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
20
|
-
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
21
|
-
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
22
|
-
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
23
|
-
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
24
|
-
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
25
|
-
AMBASSADOR = "AMBASSADOR",
|
|
26
|
-
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
27
|
-
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
28
|
-
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
29
|
-
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"
|
|
30
|
-
}
|
|
31
|
-
export declare enum Relation {
|
|
32
|
-
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
33
|
-
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
34
|
-
CHILD = "CHILD",
|
|
35
|
-
PARENT = "PARENT",
|
|
36
|
-
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
37
|
-
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER"
|
|
38
|
-
}
|
|
39
|
-
export declare enum BusinessRelation {
|
|
40
|
-
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
41
|
-
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
42
|
-
COMPANY_FOR_PEP = "COMPANY_FOR_PEP"
|
|
43
|
-
}
|
|
44
|
-
export declare enum MilitaryRank {
|
|
45
|
-
GENERAL = "GENERAL",
|
|
46
|
-
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
47
|
-
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
48
|
-
ADMIRAL = "ADMIRAL",
|
|
49
|
-
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
50
|
-
REAR_ADMIRAL = "REAR_ADMIRAL"
|
|
51
|
-
}
|
|
52
|
-
export interface PepState {
|
|
53
|
-
legalEntityType?: EntityType;
|
|
54
|
-
type?: PepType;
|
|
55
|
-
role?: Role;
|
|
56
|
-
country?: string;
|
|
57
|
-
ended?: Date;
|
|
58
|
-
ambassadorCountry?: string;
|
|
59
|
-
militaryRank?: MilitaryRank;
|
|
60
|
-
governmentCompany?: string;
|
|
61
|
-
governmentCompanyRole?: string;
|
|
62
|
-
internationalOrganisation?: string;
|
|
63
|
-
internationalOrganisationRole?: string;
|
|
64
|
-
relationToPEP?: Relation;
|
|
65
|
-
nameOfPEP?: string;
|
|
66
|
-
birthdayOfPEP?: Date;
|
|
67
|
-
tin?: string;
|
|
68
|
-
businessRelation?: BusinessRelation;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
export
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
export declare const
|
|
80
|
-
export declare const
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare enum EntityType {
|
|
3
|
+
PERSON = "PERSON",
|
|
4
|
+
CORPORATION = "CORPORATION"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PepType {
|
|
7
|
+
NOT_PEP = "NOT_PEP",
|
|
8
|
+
ME = "ME",
|
|
9
|
+
RELATIVE = "RELATIVE",
|
|
10
|
+
COLLEAGUE = "COLLEAGUE"
|
|
11
|
+
}
|
|
12
|
+
export declare enum PepStatus {
|
|
13
|
+
ONGOING = "ONGOING",
|
|
14
|
+
ENDED = "ENDED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum Role {
|
|
17
|
+
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
18
|
+
MINISTER = "MINISTER",
|
|
19
|
+
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
20
|
+
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
21
|
+
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
22
|
+
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
23
|
+
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
24
|
+
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
25
|
+
AMBASSADOR = "AMBASSADOR",
|
|
26
|
+
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
27
|
+
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
28
|
+
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
29
|
+
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"
|
|
30
|
+
}
|
|
31
|
+
export declare enum Relation {
|
|
32
|
+
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
33
|
+
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
34
|
+
CHILD = "CHILD",
|
|
35
|
+
PARENT = "PARENT",
|
|
36
|
+
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
37
|
+
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER"
|
|
38
|
+
}
|
|
39
|
+
export declare enum BusinessRelation {
|
|
40
|
+
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
41
|
+
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
42
|
+
COMPANY_FOR_PEP = "COMPANY_FOR_PEP"
|
|
43
|
+
}
|
|
44
|
+
export declare enum MilitaryRank {
|
|
45
|
+
GENERAL = "GENERAL",
|
|
46
|
+
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
47
|
+
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
48
|
+
ADMIRAL = "ADMIRAL",
|
|
49
|
+
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
50
|
+
REAR_ADMIRAL = "REAR_ADMIRAL"
|
|
51
|
+
}
|
|
52
|
+
export interface PepState {
|
|
53
|
+
legalEntityType?: EntityType;
|
|
54
|
+
type?: PepType;
|
|
55
|
+
role?: Role;
|
|
56
|
+
country?: string;
|
|
57
|
+
ended?: Date;
|
|
58
|
+
ambassadorCountry?: string;
|
|
59
|
+
militaryRank?: MilitaryRank;
|
|
60
|
+
governmentCompany?: string;
|
|
61
|
+
governmentCompanyRole?: string;
|
|
62
|
+
internationalOrganisation?: string;
|
|
63
|
+
internationalOrganisationRole?: string;
|
|
64
|
+
relationToPEP?: Relation;
|
|
65
|
+
nameOfPEP?: string;
|
|
66
|
+
birthdayOfPEP?: Date;
|
|
67
|
+
tin?: string;
|
|
68
|
+
businessRelation?: BusinessRelation;
|
|
69
|
+
locked?: boolean;
|
|
70
|
+
isOngoing?: PepStatus;
|
|
71
|
+
isLocalCountry?: string;
|
|
72
|
+
ownerName?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare const EMPTY_PEP_STATE: PepState;
|
|
75
|
+
export interface PepContextProps {
|
|
76
|
+
state: PepState;
|
|
77
|
+
setState: (newState: Partial<PepState>) => void;
|
|
78
|
+
}
|
|
79
|
+
export declare const PepContext: React.Context<PepContextProps>;
|
|
80
|
+
export declare const withPep: <P extends object>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof PepContextProps>>;
|
|
81
|
+
export declare const PepContextProvider: React.FC;
|
package/pages/PepContext.js
CHANGED
|
@@ -1,88 +1,89 @@
|
|
|
1
|
-
import React, { useReducer } from "react";
|
|
2
|
-
export var EntityType;
|
|
3
|
-
(function (EntityType) {
|
|
4
|
-
EntityType["PERSON"] = "PERSON";
|
|
5
|
-
EntityType["CORPORATION"] = "CORPORATION";
|
|
6
|
-
})(EntityType || (EntityType = {}));
|
|
7
|
-
export var PepType;
|
|
8
|
-
(function (PepType) {
|
|
9
|
-
PepType["NOT_PEP"] = "NOT_PEP";
|
|
10
|
-
PepType["ME"] = "ME";
|
|
11
|
-
PepType["RELATIVE"] = "RELATIVE";
|
|
12
|
-
PepType["COLLEAGUE"] = "COLLEAGUE";
|
|
13
|
-
})(PepType || (PepType = {}));
|
|
14
|
-
export var PepStatus;
|
|
15
|
-
(function (PepStatus) {
|
|
16
|
-
PepStatus["ONGOING"] = "ONGOING";
|
|
17
|
-
PepStatus["ENDED"] = "ENDED";
|
|
18
|
-
})(PepStatus || (PepStatus = {}));
|
|
19
|
-
export var Role;
|
|
20
|
-
(function (Role) {
|
|
21
|
-
Role["HEAD_OF_GOVERNMENT"] = "HEAD_OF_GOVERNMENT";
|
|
22
|
-
Role["MINISTER"] = "MINISTER";
|
|
23
|
-
Role["PARLIMENT_MEMBER"] = "PARLIMENT_MEMBER";
|
|
24
|
-
Role["CENTRAL_BANK_MEMBER"] = "CENTRAL_BANK_MEMBER";
|
|
25
|
-
Role["BOARD_MEMBER_POLITICAL_PARTY"] = "BOARD_MEMBER_POLITICAL_PARTY";
|
|
26
|
-
Role["JUDGE_SUPREME_COURT"] = "JUDGE_SUPREME_COURT";
|
|
27
|
-
Role["JUDGE_OTHER_HIGH_COURT"] = "JUDGE_OTHER_HIGH_COURT";
|
|
28
|
-
Role["REVISION_INSTITUTE"] = "REVISION_INSTITUTE";
|
|
29
|
-
Role["AMBASSADOR"] = "AMBASSADOR";
|
|
30
|
-
Role["MILITARY_OFFICER"] = "MILITARY_OFFICER";
|
|
31
|
-
Role["GOVERNMENT_COMPANY"] = "GOVERNMENT_COMPANY";
|
|
32
|
-
Role["EU_HIGH_RANKING_POSITION"] = "EU_HIGH_RANKING_POSITION";
|
|
33
|
-
Role["HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"] = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP";
|
|
34
|
-
})(Role || (Role = {}));
|
|
35
|
-
export var Relation;
|
|
36
|
-
(function (Relation) {
|
|
37
|
-
Relation["MARRIED_PARTNER"] = "MARRIED_PARTNER";
|
|
38
|
-
Relation["COLIVING_PARTNER"] = "COLIVING_PARTNER";
|
|
39
|
-
Relation["CHILD"] = "CHILD";
|
|
40
|
-
Relation["PARENT"] = "PARENT";
|
|
41
|
-
Relation["CHILD_MARRIED_PARTNER"] = "CHILD_MARRIED_PARTNER";
|
|
42
|
-
Relation["CHILD_COLIVING_PARTNER"] = "CHILD_COLIVING_PARTNER";
|
|
43
|
-
})(Relation || (Relation = {}));
|
|
44
|
-
export var BusinessRelation;
|
|
45
|
-
(function (BusinessRelation) {
|
|
46
|
-
BusinessRelation["CO_OWNERSHIP"] = "CO_OWNERSHIP";
|
|
47
|
-
BusinessRelation["CLOSE_CONNECTION"] = "CLOSE_CONNECTION";
|
|
48
|
-
BusinessRelation["COMPANY_FOR_PEP"] = "COMPANY_FOR_PEP";
|
|
49
|
-
})(BusinessRelation || (BusinessRelation = {}));
|
|
50
|
-
export var MilitaryRank;
|
|
51
|
-
(function (MilitaryRank) {
|
|
52
|
-
MilitaryRank["GENERAL"] = "GENERAL";
|
|
53
|
-
MilitaryRank["LIEUTENANT_GENERAL"] = "LIEUTENANT_GENERAL";
|
|
54
|
-
MilitaryRank["MAJOR_GENERAL"] = "MAJOR_GENERAL";
|
|
55
|
-
MilitaryRank["ADMIRAL"] = "ADMIRAL";
|
|
56
|
-
MilitaryRank["VICE_ADMIRAL"] = "VICE_ADMIRAL";
|
|
57
|
-
MilitaryRank["REAR_ADMIRAL"] = "REAR_ADMIRAL";
|
|
58
|
-
})(MilitaryRank || (MilitaryRank = {}));
|
|
59
|
-
export const EMPTY_PEP_STATE = {
|
|
60
|
-
legalEntityType: undefined,
|
|
61
|
-
type: undefined,
|
|
62
|
-
role: undefined,
|
|
63
|
-
country: undefined,
|
|
64
|
-
ended: undefined,
|
|
65
|
-
ambassadorCountry: undefined,
|
|
66
|
-
militaryRank: undefined,
|
|
67
|
-
governmentCompany: undefined,
|
|
68
|
-
governmentCompanyRole: undefined,
|
|
69
|
-
internationalOrganisation: undefined,
|
|
70
|
-
internationalOrganisationRole: undefined,
|
|
71
|
-
relationToPEP: undefined,
|
|
72
|
-
nameOfPEP: undefined,
|
|
73
|
-
birthdayOfPEP: undefined,
|
|
74
|
-
tin: undefined,
|
|
75
|
-
businessRelation: undefined,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
export const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
1
|
+
import React, { useReducer } from "react";
|
|
2
|
+
export var EntityType;
|
|
3
|
+
(function (EntityType) {
|
|
4
|
+
EntityType["PERSON"] = "PERSON";
|
|
5
|
+
EntityType["CORPORATION"] = "CORPORATION";
|
|
6
|
+
})(EntityType || (EntityType = {}));
|
|
7
|
+
export var PepType;
|
|
8
|
+
(function (PepType) {
|
|
9
|
+
PepType["NOT_PEP"] = "NOT_PEP";
|
|
10
|
+
PepType["ME"] = "ME";
|
|
11
|
+
PepType["RELATIVE"] = "RELATIVE";
|
|
12
|
+
PepType["COLLEAGUE"] = "COLLEAGUE";
|
|
13
|
+
})(PepType || (PepType = {}));
|
|
14
|
+
export var PepStatus;
|
|
15
|
+
(function (PepStatus) {
|
|
16
|
+
PepStatus["ONGOING"] = "ONGOING";
|
|
17
|
+
PepStatus["ENDED"] = "ENDED";
|
|
18
|
+
})(PepStatus || (PepStatus = {}));
|
|
19
|
+
export var Role;
|
|
20
|
+
(function (Role) {
|
|
21
|
+
Role["HEAD_OF_GOVERNMENT"] = "HEAD_OF_GOVERNMENT";
|
|
22
|
+
Role["MINISTER"] = "MINISTER";
|
|
23
|
+
Role["PARLIMENT_MEMBER"] = "PARLIMENT_MEMBER";
|
|
24
|
+
Role["CENTRAL_BANK_MEMBER"] = "CENTRAL_BANK_MEMBER";
|
|
25
|
+
Role["BOARD_MEMBER_POLITICAL_PARTY"] = "BOARD_MEMBER_POLITICAL_PARTY";
|
|
26
|
+
Role["JUDGE_SUPREME_COURT"] = "JUDGE_SUPREME_COURT";
|
|
27
|
+
Role["JUDGE_OTHER_HIGH_COURT"] = "JUDGE_OTHER_HIGH_COURT";
|
|
28
|
+
Role["REVISION_INSTITUTE"] = "REVISION_INSTITUTE";
|
|
29
|
+
Role["AMBASSADOR"] = "AMBASSADOR";
|
|
30
|
+
Role["MILITARY_OFFICER"] = "MILITARY_OFFICER";
|
|
31
|
+
Role["GOVERNMENT_COMPANY"] = "GOVERNMENT_COMPANY";
|
|
32
|
+
Role["EU_HIGH_RANKING_POSITION"] = "EU_HIGH_RANKING_POSITION";
|
|
33
|
+
Role["HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"] = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP";
|
|
34
|
+
})(Role || (Role = {}));
|
|
35
|
+
export var Relation;
|
|
36
|
+
(function (Relation) {
|
|
37
|
+
Relation["MARRIED_PARTNER"] = "MARRIED_PARTNER";
|
|
38
|
+
Relation["COLIVING_PARTNER"] = "COLIVING_PARTNER";
|
|
39
|
+
Relation["CHILD"] = "CHILD";
|
|
40
|
+
Relation["PARENT"] = "PARENT";
|
|
41
|
+
Relation["CHILD_MARRIED_PARTNER"] = "CHILD_MARRIED_PARTNER";
|
|
42
|
+
Relation["CHILD_COLIVING_PARTNER"] = "CHILD_COLIVING_PARTNER";
|
|
43
|
+
})(Relation || (Relation = {}));
|
|
44
|
+
export var BusinessRelation;
|
|
45
|
+
(function (BusinessRelation) {
|
|
46
|
+
BusinessRelation["CO_OWNERSHIP"] = "CO_OWNERSHIP";
|
|
47
|
+
BusinessRelation["CLOSE_CONNECTION"] = "CLOSE_CONNECTION";
|
|
48
|
+
BusinessRelation["COMPANY_FOR_PEP"] = "COMPANY_FOR_PEP";
|
|
49
|
+
})(BusinessRelation || (BusinessRelation = {}));
|
|
50
|
+
export var MilitaryRank;
|
|
51
|
+
(function (MilitaryRank) {
|
|
52
|
+
MilitaryRank["GENERAL"] = "GENERAL";
|
|
53
|
+
MilitaryRank["LIEUTENANT_GENERAL"] = "LIEUTENANT_GENERAL";
|
|
54
|
+
MilitaryRank["MAJOR_GENERAL"] = "MAJOR_GENERAL";
|
|
55
|
+
MilitaryRank["ADMIRAL"] = "ADMIRAL";
|
|
56
|
+
MilitaryRank["VICE_ADMIRAL"] = "VICE_ADMIRAL";
|
|
57
|
+
MilitaryRank["REAR_ADMIRAL"] = "REAR_ADMIRAL";
|
|
58
|
+
})(MilitaryRank || (MilitaryRank = {}));
|
|
59
|
+
export const EMPTY_PEP_STATE = {
|
|
60
|
+
legalEntityType: undefined,
|
|
61
|
+
type: undefined,
|
|
62
|
+
role: undefined,
|
|
63
|
+
country: undefined,
|
|
64
|
+
ended: undefined,
|
|
65
|
+
ambassadorCountry: undefined,
|
|
66
|
+
militaryRank: undefined,
|
|
67
|
+
governmentCompany: undefined,
|
|
68
|
+
governmentCompanyRole: undefined,
|
|
69
|
+
internationalOrganisation: undefined,
|
|
70
|
+
internationalOrganisationRole: undefined,
|
|
71
|
+
relationToPEP: undefined,
|
|
72
|
+
nameOfPEP: undefined,
|
|
73
|
+
birthdayOfPEP: undefined,
|
|
74
|
+
tin: undefined,
|
|
75
|
+
businessRelation: undefined,
|
|
76
|
+
locked: undefined,
|
|
77
|
+
isOngoing: undefined,
|
|
78
|
+
isLocalCountry: undefined,
|
|
79
|
+
ownerName: undefined,
|
|
80
|
+
};
|
|
81
|
+
export const PepContext = React.createContext({});
|
|
82
|
+
export const withPep = (Component) => (props) => (React.createElement(PepContext.Consumer, null, (contextProps) => React.createElement(Component, Object.assign({}, props, contextProps))));
|
|
83
|
+
function stateReducer(state, newState) {
|
|
84
|
+
return Object.assign(Object.assign({}, state), newState);
|
|
85
|
+
}
|
|
86
|
+
export const PepContextProvider = ({ children }) => {
|
|
87
|
+
const [pep, setPep] = useReducer(stateReducer, {});
|
|
88
|
+
return (React.createElement(PepContext.Provider, { value: { state: pep, setState: setPep } }, children));
|
|
89
|
+
};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
export declare const relationMessages: {
|
|
2
|
-
header: {
|
|
3
|
-
id: string;
|
|
4
|
-
};
|
|
5
|
-
required: {
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
MARRIED_PARTNER: {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
COLIVING_PARTNER: {
|
|
12
|
-
id: string;
|
|
13
|
-
};
|
|
14
|
-
CHILD: {
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
PARENT: {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
CHILD_MARRIED_PARTNER: {
|
|
21
|
-
id: string;
|
|
22
|
-
};
|
|
23
|
-
CHILD_COLIVING_PARTNER: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const businessRelationMessages: {
|
|
28
|
-
header: {
|
|
29
|
-
id: string;
|
|
30
|
-
};
|
|
31
|
-
required: {
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
CO_OWNERSHIP: {
|
|
35
|
-
id: string;
|
|
36
|
-
};
|
|
37
|
-
CLOSE_CONNECTION: {
|
|
38
|
-
id: string;
|
|
39
|
-
};
|
|
40
|
-
COMPANY_FOR_PEP: {
|
|
41
|
-
id: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare const relativeNameMessages: {
|
|
45
|
-
header: {
|
|
46
|
-
id: string;
|
|
47
|
-
};
|
|
48
|
-
required: {
|
|
49
|
-
id: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare const birthdayMessages: {
|
|
53
|
-
header: {
|
|
54
|
-
id: string;
|
|
55
|
-
};
|
|
56
|
-
required: {
|
|
57
|
-
id: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export declare const colleagueNameMessages: {
|
|
61
|
-
header: {
|
|
62
|
-
id: string;
|
|
63
|
-
};
|
|
64
|
-
required: {
|
|
65
|
-
id: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
1
|
+
export declare const relationMessages: {
|
|
2
|
+
header: {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
required: {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
MARRIED_PARTNER: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
COLIVING_PARTNER: {
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
CHILD: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
PARENT: {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
CHILD_MARRIED_PARTNER: {
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
CHILD_COLIVING_PARTNER: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const businessRelationMessages: {
|
|
28
|
+
header: {
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
CO_OWNERSHIP: {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
CLOSE_CONNECTION: {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
COMPANY_FOR_PEP: {
|
|
41
|
+
id: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const relativeNameMessages: {
|
|
45
|
+
header: {
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
required: {
|
|
49
|
+
id: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const birthdayMessages: {
|
|
53
|
+
header: {
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
id: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const colleagueNameMessages: {
|
|
61
|
+
header: {
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
required: {
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
-
export const relationMessages = defineMessages({
|
|
4
|
-
header: {
|
|
5
|
-
id: "pep.relation.relationship.header",
|
|
6
|
-
},
|
|
7
|
-
required: {
|
|
8
|
-
id: "pep.relation.relation.required",
|
|
9
|
-
},
|
|
10
|
-
[Relation.MARRIED_PARTNER]: {
|
|
11
|
-
id: "pep.relation.relation.MARRIED_PARTNER",
|
|
12
|
-
},
|
|
13
|
-
[Relation.COLIVING_PARTNER]: {
|
|
14
|
-
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
15
|
-
},
|
|
16
|
-
[Relation.CHILD]: {
|
|
17
|
-
id: "pep.relation.relation.CHILD",
|
|
18
|
-
},
|
|
19
|
-
[Relation.PARENT]: {
|
|
20
|
-
id: "pep.relation.relation.PARENT",
|
|
21
|
-
},
|
|
22
|
-
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
23
|
-
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
24
|
-
},
|
|
25
|
-
[Relation.CHILD_COLIVING_PARTNER]: {
|
|
26
|
-
id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
export const businessRelationMessages = defineMessages({
|
|
30
|
-
header: {
|
|
31
|
-
id: "pep.relation.businessrelation.header",
|
|
32
|
-
},
|
|
33
|
-
required: {
|
|
34
|
-
id: "pep.relation.businessrelation.required",
|
|
35
|
-
},
|
|
36
|
-
[BusinessRelation.CO_OWNERSHIP]: {
|
|
37
|
-
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
38
|
-
},
|
|
39
|
-
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
40
|
-
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
41
|
-
},
|
|
42
|
-
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
43
|
-
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
export const relativeNameMessages = defineMessages({
|
|
47
|
-
header: {
|
|
48
|
-
id: "pep.relation.relative.name.header",
|
|
49
|
-
},
|
|
50
|
-
required: {
|
|
51
|
-
id: "pep.relation.relative.name.required",
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
export const birthdayMessages = defineMessages({
|
|
55
|
-
header: {
|
|
56
|
-
id: "pep.relation.birthday.header",
|
|
57
|
-
},
|
|
58
|
-
required: {
|
|
59
|
-
id: "pep.relation.birthday.required",
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
export const colleagueNameMessages = defineMessages({
|
|
63
|
-
header: {
|
|
64
|
-
id: "pep.relation.colleague.name.header",
|
|
65
|
-
},
|
|
66
|
-
required: {
|
|
67
|
-
id: "pep.relation.colleague.name.required",
|
|
68
|
-
},
|
|
69
|
-
});
|
|
1
|
+
import { defineMessages } from "react-intl";
|
|
2
|
+
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
+
export const relationMessages = defineMessages({
|
|
4
|
+
header: {
|
|
5
|
+
id: "pep.relation.relationship.header",
|
|
6
|
+
},
|
|
7
|
+
required: {
|
|
8
|
+
id: "pep.relation.relation.required",
|
|
9
|
+
},
|
|
10
|
+
[Relation.MARRIED_PARTNER]: {
|
|
11
|
+
id: "pep.relation.relation.MARRIED_PARTNER",
|
|
12
|
+
},
|
|
13
|
+
[Relation.COLIVING_PARTNER]: {
|
|
14
|
+
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
15
|
+
},
|
|
16
|
+
[Relation.CHILD]: {
|
|
17
|
+
id: "pep.relation.relation.CHILD",
|
|
18
|
+
},
|
|
19
|
+
[Relation.PARENT]: {
|
|
20
|
+
id: "pep.relation.relation.PARENT",
|
|
21
|
+
},
|
|
22
|
+
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
23
|
+
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
24
|
+
},
|
|
25
|
+
[Relation.CHILD_COLIVING_PARTNER]: {
|
|
26
|
+
id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
export const businessRelationMessages = defineMessages({
|
|
30
|
+
header: {
|
|
31
|
+
id: "pep.relation.businessrelation.header",
|
|
32
|
+
},
|
|
33
|
+
required: {
|
|
34
|
+
id: "pep.relation.businessrelation.required",
|
|
35
|
+
},
|
|
36
|
+
[BusinessRelation.CO_OWNERSHIP]: {
|
|
37
|
+
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
38
|
+
},
|
|
39
|
+
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
40
|
+
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
41
|
+
},
|
|
42
|
+
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
43
|
+
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
export const relativeNameMessages = defineMessages({
|
|
47
|
+
header: {
|
|
48
|
+
id: "pep.relation.relative.name.header",
|
|
49
|
+
},
|
|
50
|
+
required: {
|
|
51
|
+
id: "pep.relation.relative.name.required",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
export const birthdayMessages = defineMessages({
|
|
55
|
+
header: {
|
|
56
|
+
id: "pep.relation.birthday.header",
|
|
57
|
+
},
|
|
58
|
+
required: {
|
|
59
|
+
id: "pep.relation.birthday.required",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
export const colleagueNameMessages = defineMessages({
|
|
63
|
+
header: {
|
|
64
|
+
id: "pep.relation.colleague.name.header",
|
|
65
|
+
},
|
|
66
|
+
required: {
|
|
67
|
+
id: "pep.relation.colleague.name.required",
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
next: () => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const RelationPage: FunctionComponent<Props>;
|
|
6
|
-
export {};
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
next: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const RelationPage: FunctionComponent<Props>;
|
|
6
|
+
export {};
|