gm-mcp 2.0.13 → 2.0.14

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.
@@ -20,12 +20,15 @@ const FIELD_LABELS = {
20
20
  dda: "Trạng thái DDA",
21
21
  seniority: "Thâm niên làm việc",
22
22
  working_status: "Trạng thái làm việc",
23
- longest_overdue_bill: "Số ngày quá hạn thanh toán dài nhất",
23
+ longest_overdue_bill: "Bill quá hạn lâu nhất",
24
24
  outstanding_balance: "Số dư nợ",
25
25
  parnter_contract_expirity: "Hạn hợp đồng đối tác",
26
- time_sheet: "Dữ liệu chấm công",
26
+ time_sheet: "Công ca",
27
27
  product_type: "Loại sản phẩm",
28
28
  opreation_note: "Ghi chú vận hành",
29
+ employee_status: "Trạng thái nhân sự",
30
+ available_balance: "Số dư khả dụng",
31
+ wage: "Mức lương",
29
32
  };
30
33
  const PRODUCT_TYPE = {
31
34
  EWA_01: "EWA_01",
@@ -256,9 +259,9 @@ function elgibilityToolV2(phoneNumber) {
256
259
  if (ewaDeactiveReason) {
257
260
  reasons.push(`Reason for ewa status: ${ewaDeactiveReason}`);
258
261
  }
259
- const criteriaText = compareResult.map(formatter2).join('\n');
262
+ const criteriaText = compareResult.map(formatter2).join("\n");
260
263
  const result = `
261
- Customer ${customer.customer_full_name}, partner name ${customer.partner_name} has criteria: ${criteriaText}
264
+ Customer ${customer.customer_full_name}, partner name ${customer.partner_name}, product type: ${productType} has criteria: ${criteriaText}
262
265
  `;
263
266
  return { content: [{ type: "text", text: result }] };
264
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-mcp",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "Mcp server for Gm",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -19,12 +19,15 @@ const FIELD_LABELS: Record<string, string> = {
19
19
  dda: "Trạng thái DDA",
20
20
  seniority: "Thâm niên làm việc",
21
21
  working_status: "Trạng thái làm việc",
22
- longest_overdue_bill: "Số ngày quá hạn thanh toán dài nhất",
22
+ longest_overdue_bill: "Bill quá hạn lâu nhất",
23
23
  outstanding_balance: "Số dư nợ",
24
24
  parnter_contract_expirity: "Hạn hợp đồng đối tác",
25
- time_sheet: "Dữ liệu chấm công",
25
+ time_sheet: "Công ca",
26
26
  product_type: "Loại sản phẩm",
27
27
  opreation_note: "Ghi chú vận hành",
28
+ employee_status: "Trạng thái nhân sự",
29
+ available_balance: "Số dư khả dụng",
30
+ wage: "Mức lương",
28
31
  };
29
32
 
30
33
  const PRODUCT_TYPE = {
@@ -292,10 +295,10 @@ export async function elgibilityToolV2(phoneNumber: string): Promise<CallToolRes
292
295
  reasons.push(`Reason for ewa status: ${ewaDeactiveReason}`);
293
296
  }
294
297
 
295
- const criteriaText = compareResult.map(formatter2).join('\n');
298
+ const criteriaText = compareResult.map(formatter2).join("\n");
296
299
 
297
300
  const result = `
298
- Customer ${customer.customer_full_name}, partner name ${customer.partner_name} has criteria: ${criteriaText}
301
+ Customer ${customer.customer_full_name}, partner name ${customer.partner_name}, product type: ${productType} has criteria: ${criteriaText}
299
302
  `;
300
303
 
301
304
  return { content: [{ type: "text", text: result }] };