You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "If `LinkedIn Handle` is provided, candidate creation will be de-duplicated. If a candidate with the provided `LinkedIn Handle already exists, a 400 error will be returned with `errors` containing information on the existing candidate in this shape: `{\"errors\": { \"duplicate_candidate\": { \"id\": \"string\", \"linked_in_handle\": \"string\" }}}`.",
51
+
description: "Enter your candidate's unique LinkedIn identifier (e.g., \"satyanadella\"). This helps the system check for duplicates before creating a new candidate entry.",
52
52
optional: true,
53
53
},
54
54
title: {
@@ -75,16 +75,18 @@ export default {
75
75
description: "Candidate's school",
76
76
optional: true,
77
77
},
78
-
educationInfo: {
79
-
type: "string[]",
80
-
label: "Education Info",
81
-
description: "A list of objects containing candidate's education information. **Format: [{\"school\": \"string\", \"parsed_university\": \"string\", \"parsed_school\": \"string\", \"start_date\": \"string\", \"end_date\": \"string\", \"field_of_study\": \"string\", \"parsed_major_1\": \"string\", \"parsed_major_2\": \"string\", \"degree\": \"string\"}]**. [See the documentation](https://api.gem.com/v0/reference#tag/Candidates/paths/~1v0~1candidates/post) for further details.",
78
+
educationInfoNumber: {
79
+
type: "integer",
80
+
label: "Education Info Quantity",
81
+
description: "The number of education info objects to be created",
82
+
reloadProps: true,
82
83
optional: true,
83
84
},
84
-
workInfo: {
85
-
type: "string[]",
86
-
label: "Work Info",
87
-
description: "A list of objects containing candidate's work information. **Format: [{\"company\": \"string\", \"title\": \"string\", \"work_start_date\": \"string\", \"work_end_date\": \"string\", \"is_current\": \"string\"}]**. [See the documentation](https://api.gem.com/v0/reference#tag/Candidates/paths/~1v0~1candidates/post) for further details.",
85
+
workInfoNumber: {
86
+
type: "integer",
87
+
label: "Work Info Quantity",
88
+
description: "The number of work info objects to be created",
89
+
reloadProps: true,
88
90
optional: true,
89
91
},
90
92
profileUrls: {
@@ -107,9 +109,9 @@ export default {
107
109
optional: true,
108
110
},
109
111
customFields: {
110
-
type: "string[]",
112
+
type: "object",
111
113
label: "Custom Fields",
112
-
description: "Array of objects containing new custom field values. Only custom fields specified in the array are updated. **Format: [{\"custom_field_id\": \"string\", \"value\": \"string\"}]**. [See the documentation](https://api.gem.com/v0/reference#tag/Candidates/paths/~1v0~1candidates/post) for further details.",
114
+
description: "An object containing new custom field values. Only custom fields specified are updated. **Format: {\"custom_field_id\": \"value\"}**. [See the documentation](https://api.gem.com/v0/reference#tag/Candidates/paths/~1v0~1candidates/post) for further details.",
113
115
optional: true,
114
116
},
115
117
sourcedFrom: {
@@ -126,7 +128,123 @@ export default {
126
128
optional: true,
127
129
},
128
130
},
131
+
asyncadditionalProps(){
132
+
constprops={};
133
+
if(this.educationInfoNumber){
134
+
for(leti=1;i<=this.educationInfoNumber;i++){
135
+
props[`educationInfo${i}School`]={
136
+
type: "string",
137
+
label: `Education Info ${i} - School`,
138
+
description: `Education info ${i} school of the candidate`,
139
+
optional: true,
140
+
};
141
+
props[`educationInfo${i}University`]={
142
+
type: "string",
143
+
label: `Education Info ${i} - University`,
144
+
description: `Education info ${i} university of the candidate`,
145
+
optional: true,
146
+
};
147
+
props[`educationInfo${i}StartDate`]={
148
+
type: "string",
149
+
label: `Education Info ${i} - Start Date`,
150
+
description: `Education info ${i} start date of the candidate`,
151
+
optional: true,
152
+
};
153
+
props[`educationInfo${i}EndDate`]={
154
+
type: "string",
155
+
label: `Education Info ${i} - End Date`,
156
+
description: `Education info ${i} end date of the candidate`,
157
+
optional: true,
158
+
};
159
+
props[`educationInfo${i}FieldOfSchool`]={
160
+
type: "string",
161
+
label: `Education Info ${i} - Field Of School`,
162
+
description: `Education info ${i} field of school of the candidate`,
163
+
optional: true,
164
+
};
165
+
props[`educationInfo${i}Major1`]={
166
+
type: "string",
167
+
label: `Education Info ${i} - Major 1`,
168
+
description: `Education info ${i} major 1 of the candidate`,
169
+
optional: true,
170
+
};
171
+
props[`educationInfo${i}Major2`]={
172
+
type: "string",
173
+
label: `Education Info ${i} - Major 2`,
174
+
description: `Education info ${i} major 2 of the candidate`,
175
+
optional: true,
176
+
};
177
+
props[`educationInfo${i}Degree`]={
178
+
type: "string",
179
+
label: `Education Info ${i} - Degree`,
180
+
description: `Education info ${i} degree of the candidate`,
181
+
optional: true,
182
+
};
183
+
}
184
+
}
185
+
if(this.workInfoNumber){
186
+
for(leti=1;i<=this.workInfoNumber;i++){
187
+
props[`WorkInfo${i}Company`]={
188
+
type: "string",
189
+
label: `Work Info ${i} - Company`,
190
+
description: `Work info ${i} company of the candidate`,
191
+
optional: true,
192
+
};
193
+
props[`WorkInfo${i}Title`]={
194
+
type: "string",
195
+
label: `Work Info ${i} - Title`,
196
+
description: `Work info ${i} title of the candidate`,
197
+
optional: true,
198
+
};
199
+
props[`WorkInfo${i}WorkStartDate`]={
200
+
type: "string",
201
+
label: `Work Info ${i} - Work Start Date`,
202
+
description: `Work info ${i} work start date of the candidate`,
203
+
optional: true,
204
+
};
205
+
props[`WorkInfo${i}WorkEndDate`]={
206
+
type: "string",
207
+
label: `Work Info ${i} - Work End Date`,
208
+
description: `Work info ${i} work end date of the candidate`,
209
+
optional: true,
210
+
};
211
+
props[`WorkInfo${i}IsCurrent`]={
212
+
type: "boolean",
213
+
label: `Work Info ${i} - Is Current`,
214
+
description: `Work info ${i} is Current of the candidate`,
0 commit comments