gm-mcp 2.0.15 → 2.0.16
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.
|
@@ -161,7 +161,7 @@ function elgibilityToolV2(phoneNumber) {
|
|
|
161
161
|
var _a;
|
|
162
162
|
let mess = "";
|
|
163
163
|
const name = (_a = FIELD_LABELS[criteria.key]) !== null && _a !== void 0 ? _a : criteria.key;
|
|
164
|
-
mess = `tiêu chí ${name} có giá trị: ${criteria.currentLabel}, yêu cầu: ${criteria.requiredLabel}, trạng thái kiểm tra: ${criteria.pass ? "
|
|
164
|
+
mess = `tiêu chí ${name} có giá trị: ${criteria.currentLabel}, yêu cầu: ${criteria.requiredLabel}, trạng thái kiểm tra: ${criteria.pass ? "đạt" : "không đạt"}`;
|
|
165
165
|
if (criteria.reason) {
|
|
166
166
|
mess = mess + `lý do: ${criteria.reason}`;
|
|
167
167
|
}
|
|
@@ -173,7 +173,7 @@ function elgibilityToolV2(phoneNumber) {
|
|
|
173
173
|
current: customer.ewa_status,
|
|
174
174
|
currentLabel: (_f = (_e = customer_ewa_1.CUSTOMER_EWA_STATUS_MAPS[customer.ewa_status]) === null || _e === void 0 ? void 0 : _e.label) !== null && _f !== void 0 ? _f : "",
|
|
175
175
|
required: "active",
|
|
176
|
-
requiredLabel: customer_ewa_1.CUSTOMER_EWA_STATUS_MAPS.ACTIVE.
|
|
176
|
+
requiredLabel: customer_ewa_1.CUSTOMER_EWA_STATUS_MAPS.ACTIVE.label,
|
|
177
177
|
pass: compare(customer.ewa_status, customer_ewa_1.CustomerEwaStatus.ACTIVE),
|
|
178
178
|
reason: ewaDeactiveReason,
|
|
179
179
|
},
|
package/package.json
CHANGED
|
@@ -193,7 +193,7 @@ export async function elgibilityToolV2(phoneNumber: string): Promise<CallToolRes
|
|
|
193
193
|
const formatter2 = (criteria: CompareResult) => {
|
|
194
194
|
let mess = "";
|
|
195
195
|
const name = FIELD_LABELS[criteria.key] ?? criteria.key;
|
|
196
|
-
mess = `tiêu chí ${name} có giá trị: ${criteria.currentLabel}, yêu cầu: ${criteria.requiredLabel}, trạng thái kiểm tra: ${criteria.pass ? "
|
|
196
|
+
mess = `tiêu chí ${name} có giá trị: ${criteria.currentLabel}, yêu cầu: ${criteria.requiredLabel}, trạng thái kiểm tra: ${criteria.pass ? "đạt" : "không đạt"}`;
|
|
197
197
|
if (criteria.reason) {
|
|
198
198
|
mess = mess + `lý do: ${criteria.reason}`;
|
|
199
199
|
}
|
|
@@ -206,7 +206,7 @@ export async function elgibilityToolV2(phoneNumber: string): Promise<CallToolRes
|
|
|
206
206
|
current: customer.ewa_status,
|
|
207
207
|
currentLabel: CUSTOMER_EWA_STATUS_MAPS[customer.ewa_status]?.label ?? "",
|
|
208
208
|
required: "active",
|
|
209
|
-
requiredLabel: CUSTOMER_EWA_STATUS_MAPS.ACTIVE.
|
|
209
|
+
requiredLabel: CUSTOMER_EWA_STATUS_MAPS.ACTIVE.label,
|
|
210
210
|
pass: compare(customer.ewa_status, CustomerEwaStatus.ACTIVE),
|
|
211
211
|
reason: ewaDeactiveReason,
|
|
212
212
|
},
|