@teamnetwork-nz/teamlink-mcp-server 0.5.3 → 0.5.4

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.
Files changed (2) hide show
  1. package/build/index.js +3 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -163,9 +163,9 @@ server.tool('task_search', 'Search/filter tasks. Supports filtering by customer/
163
163
  page: z.number().optional(), pageSize: z.number().optional(),
164
164
  }, async (args) => get('/tasks/search', args));
165
165
  // --- Orders / PM (read) ---
166
- server.tool('order_get', 'Get an order header + totals.', { orderId: z.number() }, async ({ orderId }) => get(`/orders/${orderId}`));
166
+ server.tool('order_get', 'Get an order header + totals. `orderType` is returned as { code, label } from CSSelectors/OrderType.', { orderId: z.number() }, async ({ orderId }) => get(`/orders/${orderId}`));
167
167
  server.tool('order_list_items', 'List order line items.', { orderId: z.number() }, async ({ orderId }) => get(`/orders/${orderId}/items`));
168
- server.tool('order_search', 'Search/filter orders. Supports filtering by customer/account, branch, order type, a date-raised range, who entered or authorised the order, who received/approved/invoiced/returned/credited a line, received/invoiced/returned status, and/or free text (order id, invoice/credit/RA reference, or with advanced=true also notes and product codes/descriptions). Every filter is optional and combinable.', {
168
+ server.tool('order_search', 'Search/filter orders. Supports filtering by customer/account, branch, order type, a date-raised range, who entered or authorised the order, who received/approved/invoiced/returned/credited a line, received/invoiced/returned status, and/or free text (order id, invoice/credit/RA reference, or with advanced=true also notes and product codes/descriptions). Every filter is optional and combinable. Returned `orderType` is { code, label } resolved from CSSelectors/OrderType.', {
169
169
  q: z.string().optional().describe('Free text search — order id (exact), invoice/credit/RA reference (partial); with advanced=true also order notes and line product code/OEM code/descriptions.'),
170
170
  advanced: z.boolean().optional().describe('Widen `q` to also match order notes and line product code/OEM code/descriptions.'),
171
171
  accountId: z.number().optional().describe('Filter by customer/account/company (CSAID). Maps to PMOrder.PMO_CSAID.'),
@@ -178,7 +178,7 @@ server.tool('order_search', 'Search/filter orders. Supports filtering by custome
178
178
  invoicedByUserId: z.number().optional().describe('Filter by the staff member who recorded a supplier invoice on at least one line (PMDetails.PMDInvBy_CSCID).'),
179
179
  returnAuthorisedByUserId: z.number().optional().describe('Filter by the staff member who authorised a return on at least one line (PMDetails.PMDRABy_CSCID).'),
180
180
  creditedByUserId: z.number().optional().describe('Filter by the staff member who recorded a supplier credit on at least one line (PMDetails.PMDCdtBy_CSCID).'),
181
- orderType: z.string().optional().describe('Order type selector code (PMOrder.PMOType).'),
181
+ orderType: z.string().optional().describe('Filter by order type selector code (PMOrder.PMOType / CSSelectors OrderType CSSCode). Results return orderType as { code, label }.'),
182
182
  dateFrom: z.string().optional().describe('Order-date range start (inclusive), e.g. 2026-01-01.'),
183
183
  dateTo: z.string().optional().describe('Order-date range end (inclusive).'),
184
184
  received: z.enum(['yes', 'no']).optional().describe('Whether at least one line has been received. Not mutually exclusive with `no` — an order can have both received and unreceived lines.'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnetwork-nz/teamlink-mcp-server",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "private": false,
5
5
  "description": "stdio MCP server exposing tools that proxy the TEAMlink REST API",
6
6
  "main": "build/index.js",