gm-mcp 1.1.36 → 1.1.37
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/dist/index.js +8 -3
- package/package.json +1 -1
- package/src/index.ts +9 -4
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ exports.server.tool("statistic_salary_x3_in_range", "Get statistic salary x3 wit
|
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
73
|
exports.server.registerTool("debt_collection", {
|
|
74
|
-
description: "The company's debt collection by year (optional) information,
|
|
74
|
+
description: "The company's debt collection by year (optional) information,product type (optional)",
|
|
75
75
|
inputSchema: {
|
|
76
76
|
company_name: zod_1.default.string({ description: "Company name to get data" }),
|
|
77
77
|
year: zod_1.default
|
|
@@ -79,13 +79,18 @@ exports.server.registerTool("debt_collection", {
|
|
|
79
79
|
description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
|
|
80
80
|
})
|
|
81
81
|
.default("2025"),
|
|
82
|
+
product_type: zod_1.default
|
|
83
|
+
.string({
|
|
84
|
+
description: "Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ",
|
|
85
|
+
})
|
|
86
|
+
.default(product_type_1.PRODUCT_TYPE.EWA_02_03),
|
|
82
87
|
},
|
|
83
88
|
}, (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
84
|
-
const { company_name } = args;
|
|
89
|
+
const { company_name, product_type } = args;
|
|
85
90
|
return (0, lark_tool_1.debtCollectionRateTool)({
|
|
86
91
|
sendMessageToLark: (0, env_1.getEnv)().SEND_MESSAGE_TO_LARK === "true",
|
|
87
92
|
companyName: company_name,
|
|
88
|
-
productType:
|
|
93
|
+
productType: product_type,
|
|
89
94
|
});
|
|
90
95
|
}));
|
|
91
96
|
exports.server.tool("debt_collection_with_month", "The company's debt collection information with month", {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -93,8 +93,7 @@ server.tool(
|
|
|
93
93
|
server.registerTool(
|
|
94
94
|
"debt_collection",
|
|
95
95
|
{
|
|
96
|
-
description:
|
|
97
|
-
"The company's debt collection by year (optional) information, if year is not provided use this year (vietname time zone)",
|
|
96
|
+
description: "The company's debt collection by year (optional) information,product type (optional)",
|
|
98
97
|
inputSchema: {
|
|
99
98
|
company_name: z.string({ description: "Company name to get data" }),
|
|
100
99
|
year: z
|
|
@@ -102,14 +101,20 @@ server.registerTool(
|
|
|
102
101
|
description: "Year of company debt collection, if year is not provided use this year (vietname time zone)",
|
|
103
102
|
})
|
|
104
103
|
.default("2025"),
|
|
104
|
+
product_type: z
|
|
105
|
+
.string({
|
|
106
|
+
description:
|
|
107
|
+
"Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ",
|
|
108
|
+
})
|
|
109
|
+
.default(PRODUCT_TYPE.EWA_02_03),
|
|
105
110
|
},
|
|
106
111
|
},
|
|
107
112
|
async (args) => {
|
|
108
|
-
const { company_name } = args;
|
|
113
|
+
const { company_name, product_type } = args;
|
|
109
114
|
return debtCollectionRateTool({
|
|
110
115
|
sendMessageToLark: getEnv().SEND_MESSAGE_TO_LARK === "true",
|
|
111
116
|
companyName: company_name,
|
|
112
|
-
productType:
|
|
117
|
+
productType: product_type,
|
|
113
118
|
});
|
|
114
119
|
}
|
|
115
120
|
);
|