-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldMapping.json
176 lines (176 loc) · 6.3 KB
/
fieldMapping.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"Version": "v1",
"MappingFields": [
{
"Name": "Employee.BirthDate",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Details.BirthDate\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Employee.HireDate",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Fixed",
"Value": "\"Person.PrimaryContract.StartDate\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Employee.Language",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Fixed",
"Value": "\"1\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Person.FirstName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Name.GivenName\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Employee.SalaryNR",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.ExternalId\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Employee.TerminationDate",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Fixed",
"Value": "\"Person.PrimaryContract.EndDate\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Person.Name",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Complex",
"Value": "\"// generateSurnameOption1.js [/~https://github.com/Tools4everBV/HelloID-Lib-Prov-HelperFunctions/blob/master/Javascript/Target/Surname_Lastname/Scripts/generateSurnameOption1.js]\\r\\n//\\r\\n// Mapping logic to generate the Surname according to the following convention.\\r\\n// B\\tvan den Boele\\r\\n// BP\\tvan den Boele – de Vries\\r\\n// P\\tde Vries\\r\\n// PB de Vries – van den Boele\\r\\nfunction generateSurname() {\\r\\n let nickName = Person.Name.NickName;\\r\\n let middleName = Person.Name.FamilyNamePrefix;\\r\\n let lastName = Person.Name.FamilyName;\\r\\n let middleNamePartner = Person.Name.FamilyNamePartnerPrefix;\\r\\n let lastNamePartner = Person.Name.FamilyNamePartner;\\r\\n let convention = Person.Name.Convention;\\r\\n\\r\\n let surName = '';\\r\\n switch (convention) {\\r\\n case \\\"BP\\\":\\r\\n if (typeof middleName !== 'undefined' && middleName) { surName = surName + middleName + ' ' }\\r\\n surName = surName + lastName;\\r\\n\\r\\n surName = surName + ' - ';\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { surName = surName + middleNamePartner + ' ' }\\r\\n surName = surName + lastNamePartner;\\r\\n break;\\r\\n case \\\"PB\\\":\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { surName = surName + middleNamePartner + ' ' }\\r\\n surName = surName + lastNamePartner;\\r\\n\\r\\n surName = surName + ' - ';\\r\\n if (typeof middleName !== 'undefined' && middleName) { surName = surName + middleName + ' ' }\\r\\n surName = surName + lastName;\\r\\n break;\\r\\n case \\\"P\\\":\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { surName = surName + middleNamePartner + ' ' }\\r\\n surName = surName + lastNamePartner;\\r\\n break;\\r\\n case \\\"B\\\":\\r\\n default:\\r\\n if (typeof middleName !== 'undefined' && middleName) { surName = surName + middleName + ' ' }\\r\\n surName = surName + lastName;\\r\\n break;\\r\\n }\\r\\n // Trim spaces at start and end\\r\\n surName = surName.trim();\\r\\n\\r\\n // Shorten string to maxAttributeLength \\r\\n const maxAttributeLength = 64;\\r\\n surName = surName.substring(0, maxAttributeLength);\\r\\n\\r\\n return surName;\\r\\n}\\r\\n\\r\\ngenerateSurname();\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Person.Prefix",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Name.Initials\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Employee.employeeId",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "None",
"Value": "\"\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Person.PersonId",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "None",
"Value": "\"\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
}
],
"UniqueFieldNames": []
}