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