@teamnetwork-nz/teamlink-mcp-server 0.6.4 → 0.6.5
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 +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -234,6 +234,20 @@ if (READWRITE) {
|
|
|
234
234
|
// --- Lookups ---
|
|
235
235
|
strictTool('lookup_selectors', 'Get options for a CSSelectors list (Industry, Source, SalesStatus, OrderType, IncomeCat, City, Country, ...).', { selectorClass: z.string() }, async ({ selectorClass }) => get(`/lookups/selectors/${encodeURIComponent(selectorClass)}`));
|
|
236
236
|
strictTool('lookup_branches', 'List branches.', {}, async () => get('/lookups/branches'));
|
|
237
|
+
// --- Account fees (read) ---
|
|
238
|
+
strictTool('fee_get', 'Get one account fee record from vw_CSFee by feeId. Returns the account, logged-by and assigned-to people, task snapshot, time/income details, quantity/unit cost, and action metadata.', { feeId: z.number().describe('Fee record ID (CSFee.CSFeeId).') }, async ({ feeId }) => get(`/fees/${feeId}`));
|
|
239
|
+
strictTool('fee_search', 'Search the read-only account fee view (vw_CSFee). Filter by account, logged-by or assigned-to person, fee period, action type, start-date range, or free text. Results are newest-starting first.', {
|
|
240
|
+
q: z.string().optional().describe('Exact feeId or partial account, task, time, PO reference, action-note, or fee-note text.'),
|
|
241
|
+
accountId: z.number().optional().describe('Filter by customer/account/company. Maps to CSFee_TASK_CSAID.'),
|
|
242
|
+
loggedByUserId: z.number().optional().describe('Filter by the contact captured as the task requester/logger.'),
|
|
243
|
+
assignedToUserId: z.number().optional().describe('Filter by the staff contact captured as task assignee.'),
|
|
244
|
+
period: z.string().optional().describe('Exact CSFee_Period value.'),
|
|
245
|
+
actionType: z.string().optional().describe('Exact CSFee_ActionType value.'),
|
|
246
|
+
dateFrom: z.string().optional().describe('Fee start-date range start (inclusive), e.g. 2026-01-01.'),
|
|
247
|
+
dateTo: z.string().optional().describe('Fee start-date range end (inclusive).'),
|
|
248
|
+
page: z.number().optional(),
|
|
249
|
+
pageSize: z.number().optional(),
|
|
250
|
+
}, async (args) => get('/fees/search', args));
|
|
237
251
|
// --- CRM: sales activities / time (read) ---
|
|
238
252
|
strictTool('crm_activity_get', 'Get one CRM sales activity by id (CRMActivity.CRMAID). Returns account, enteredBy, assignedTo, targetContact, type/subType selector labels, due/completed dates, and completed boolean.', { activityId: z.number().describe('CRM activity ID (CRMActivity.CRMAID).') }, async ({ activityId }) => get(`/crm/activities/${activityId}`));
|
|
239
253
|
strictTool('crm_activity_search', 'Search/filter CRM sales activities (CRMActivity). Supports customer/account, assigned-to staff, targeted-at contact, entered-by staff, completed/open state, due-date range, and free text. `completed=true` means CRMADateCompleted is not null; `completed=false` means open.', {
|