gm-mcp 1.3.18 → 1.3.19
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 +1 -3
- package/dist/test.js +5 -7
- package/package.json +1 -1
- package/src/index.ts +1 -3
- package/src/test.ts +5 -6
package/dist/index.js
CHANGED
|
@@ -95,9 +95,7 @@ exports.server.registerTool("debt_collection", {
|
|
|
95
95
|
product_type: v4_1.default
|
|
96
96
|
.string()
|
|
97
97
|
.nullable()
|
|
98
|
-
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ")
|
|
99
|
-
.default(product_type_1.PRODUCT_TYPE.EWA_02_03)
|
|
100
|
-
.optional(),
|
|
98
|
+
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
|
|
101
99
|
month: v4_1.default.string().nullable().describe("Month to get company debt collection").default("").optional(),
|
|
102
100
|
}),
|
|
103
101
|
outputSchema: v4_1.default.object({
|
package/dist/test.js
CHANGED
|
@@ -14,22 +14,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const zod_1 = __importDefault(require("zod"));
|
|
16
16
|
const env_1 = require("./env");
|
|
17
|
-
const product_type_1 = require("./services/constants/product-type");
|
|
18
17
|
function setupTest() {
|
|
19
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
19
|
(0, env_1.ensureEnvVariables)();
|
|
21
|
-
console.log(zod_1.default
|
|
20
|
+
console.log(JSON.stringify(zod_1.default
|
|
22
21
|
.object({
|
|
23
22
|
company_name: zod_1.default.string().describe("Company name to get data"),
|
|
24
23
|
year: zod_1.default.string().describe("Year to get company debt collection").default("2025").optional(),
|
|
25
24
|
product_type: zod_1.default
|
|
26
25
|
.string()
|
|
27
|
-
.
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
month: zod_1.default.string().describe("Month to get company debt collection").default("").optional(),
|
|
26
|
+
.nullable()
|
|
27
|
+
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
|
|
28
|
+
month: zod_1.default.string().nullable().describe("Month to get company debt collection").default("").optional(),
|
|
31
29
|
})
|
|
32
|
-
.toJSONSchema());
|
|
30
|
+
.toJSONSchema()));
|
|
33
31
|
// const res = zodToJsonSchema();
|
|
34
32
|
// console.log(res);
|
|
35
33
|
// const r = await fetchDebtCollectionRecords();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -107,9 +107,7 @@ server.registerTool(
|
|
|
107
107
|
product_type: z
|
|
108
108
|
.string()
|
|
109
109
|
.nullable()
|
|
110
|
-
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF ")
|
|
111
|
-
.default(PRODUCT_TYPE.EWA_02_03)
|
|
112
|
-
.optional(),
|
|
110
|
+
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
|
|
113
111
|
month: z.string().nullable().describe("Month to get company debt collection").default("").optional(),
|
|
114
112
|
}),
|
|
115
113
|
outputSchema: z.object({
|
package/src/test.ts
CHANGED
|
@@ -18,18 +18,17 @@ import { PRODUCT_TYPE } from "./services/constants/product-type";
|
|
|
18
18
|
async function setupTest() {
|
|
19
19
|
ensureEnvVariables();
|
|
20
20
|
console.log(
|
|
21
|
-
z
|
|
21
|
+
JSON.stringify(z
|
|
22
22
|
.object({
|
|
23
23
|
company_name: z.string().describe("Company name to get data"),
|
|
24
24
|
year: z.string().describe("Year to get company debt collection").default("2025").optional(),
|
|
25
25
|
product_type: z
|
|
26
26
|
.string()
|
|
27
|
-
.
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
month: z.string().describe("Month to get company debt collection").default("").optional(),
|
|
27
|
+
.nullable()
|
|
28
|
+
.describe("Product type to get data one of follow values EWA 02 - 03 | EWA 04 | Lương X3 | Lương X3 - EVF "),
|
|
29
|
+
month: z.string().nullable().describe("Month to get company debt collection").default("").optional(),
|
|
31
30
|
})
|
|
32
|
-
.toJSONSchema()
|
|
31
|
+
.toJSONSchema())
|
|
33
32
|
);
|
|
34
33
|
|
|
35
34
|
// const res = zodToJsonSchema();
|