gm-mcp 2.0.11 → 2.0.12
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.
|
@@ -83,6 +83,7 @@ const BASE_REQUIRED_CRITERIA = {
|
|
|
83
83
|
parnter_contract_expirity: "Not yet expired",
|
|
84
84
|
time_sheet: "The data exists",
|
|
85
85
|
available_balance: ">0",
|
|
86
|
+
wage: ">0",
|
|
86
87
|
};
|
|
87
88
|
const EWA_02_CRITERIA = Object.assign(Object.assign({}, BASE_REQUIRED_CRITERIA), { dda: "REGISTERED" });
|
|
88
89
|
const EWA_03_CRITERIA = Object.assign(Object.assign({}, BASE_REQUIRED_CRITERIA), { dda: "REGISTERED" });
|
|
@@ -132,6 +133,7 @@ function elgibilityTool(phoneNumber) {
|
|
|
132
133
|
longest_overdue_bill: customer.ewa_longest_over_due_day,
|
|
133
134
|
opreation_note: employee === null || employee === void 0 ? void 0 : employee.reason,
|
|
134
135
|
available_balance: currentPayperiodInfo === null || currentPayperiodInfo === void 0 ? void 0 : currentPayperiodInfo.accessible_amount,
|
|
136
|
+
wage: (employee === null || employee === void 0 ? void 0 : employee.wage) || 0,
|
|
135
137
|
};
|
|
136
138
|
const getRequriedCriteria = (productType) => {
|
|
137
139
|
if (productType === PRODUCT_TYPE.EWA_01) {
|
package/package.json
CHANGED
|
@@ -89,6 +89,7 @@ const BASE_REQUIRED_CRITERIA = {
|
|
|
89
89
|
parnter_contract_expirity: "Not yet expired",
|
|
90
90
|
time_sheet: "The data exists",
|
|
91
91
|
available_balance: ">0",
|
|
92
|
+
wage: ">0",
|
|
92
93
|
};
|
|
93
94
|
|
|
94
95
|
const EWA_02_CRITERIA = {
|
|
@@ -151,6 +152,7 @@ export async function elgibilityTool(phoneNumber: string): Promise<CallToolResul
|
|
|
151
152
|
longest_overdue_bill: customer.ewa_longest_over_due_day,
|
|
152
153
|
opreation_note: employee?.reason,
|
|
153
154
|
available_balance: currentPayperiodInfo?.accessible_amount,
|
|
155
|
+
wage: employee?.wage || 0,
|
|
154
156
|
};
|
|
155
157
|
|
|
156
158
|
const getRequriedCriteria = (productType: keyof typeof PRODUCT_TYPE | null) => {
|