gm-mcp 2.0.14 → 2.0.15
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.
|
@@ -185,22 +185,13 @@ function elgibilityToolV2(phoneNumber) {
|
|
|
185
185
|
requiredLabel: `>= 0.3 năm`,
|
|
186
186
|
pass: !!(employee === null || employee === void 0 ? void 0 : employee.seniority) && employee.seniority >= 0.3,
|
|
187
187
|
},
|
|
188
|
-
{
|
|
189
|
-
key: "seniority",
|
|
190
|
-
current: employee === null || employee === void 0 ? void 0 : employee.seniority,
|
|
191
|
-
currentLabel: `${employee === null || employee === void 0 ? void 0 : employee.seniority} năm`,
|
|
192
|
-
required: ">= 0.3",
|
|
193
|
-
requiredLabel: `>= 0.3 năm`,
|
|
194
|
-
pass: !!(employee === null || employee === void 0 ? void 0 : employee.seniority) && employee.seniority >= 0.3,
|
|
195
|
-
reason: ewaDeactiveReason,
|
|
196
|
-
},
|
|
197
188
|
{
|
|
198
189
|
key: "employee_status",
|
|
199
190
|
current: employee === null || employee === void 0 ? void 0 : employee.status,
|
|
200
191
|
currentLabel: ((_g = employee_1.EMPLOYEE_STATUS_MAPS[(employee === null || employee === void 0 ? void 0 : employee.status) || ""]) === null || _g === void 0 ? void 0 : _g.label) || "",
|
|
201
192
|
required: employee_1.EmployeeStatus.ACTIVE,
|
|
202
193
|
requiredLabel: employee_1.EMPLOYEE_STATUS_MAPS.ACTIVE.label,
|
|
203
|
-
pass: ((_h = employee === null || employee === void 0 ? void 0 : employee.status) === null || _h === void 0 ? void 0 : _h.toLowerCase()) === employee_1.EmployeeStatus.ACTIVE,
|
|
194
|
+
pass: ((_h = employee === null || employee === void 0 ? void 0 : employee.status) === null || _h === void 0 ? void 0 : _h.toLowerCase()) === employee_1.EmployeeStatus.ACTIVE.toLocaleLowerCase(),
|
|
204
195
|
reason: employee === null || employee === void 0 ? void 0 : employee.reason,
|
|
205
196
|
},
|
|
206
197
|
{
|
package/package.json
CHANGED
|
@@ -218,22 +218,14 @@ export async function elgibilityToolV2(phoneNumber: string): Promise<CallToolRes
|
|
|
218
218
|
requiredLabel: `>= 0.3 năm`,
|
|
219
219
|
pass: !!employee?.seniority && employee.seniority >= 0.3,
|
|
220
220
|
},
|
|
221
|
-
|
|
222
|
-
key: "seniority",
|
|
223
|
-
current: employee?.seniority,
|
|
224
|
-
currentLabel: `${employee?.seniority} năm`,
|
|
225
|
-
required: ">= 0.3",
|
|
226
|
-
requiredLabel: `>= 0.3 năm`,
|
|
227
|
-
pass: !!employee?.seniority && employee.seniority >= 0.3,
|
|
228
|
-
reason: ewaDeactiveReason,
|
|
229
|
-
},
|
|
221
|
+
|
|
230
222
|
{
|
|
231
223
|
key: "employee_status",
|
|
232
224
|
current: employee?.status,
|
|
233
225
|
currentLabel: EMPLOYEE_STATUS_MAPS[employee?.status || ""]?.label || "",
|
|
234
226
|
required: EmployeeStatus.ACTIVE,
|
|
235
227
|
requiredLabel: EMPLOYEE_STATUS_MAPS.ACTIVE.label,
|
|
236
|
-
pass: employee?.status?.toLowerCase() === EmployeeStatus.ACTIVE,
|
|
228
|
+
pass: employee?.status?.toLowerCase() === EmployeeStatus.ACTIVE.toLocaleLowerCase(),
|
|
237
229
|
reason: employee?.reason,
|
|
238
230
|
},
|
|
239
231
|
{
|