@opsrev/acculynx-cli 1.13.0 → 1.13.1

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.
@@ -251,12 +251,10 @@ function jobRepsAssign(client, jobId, opts) {
251
251
  return client.post(`/jobs/${jobId}/representatives/${type}`, { id: opts.userId });
252
252
  }
253
253
  function jobSetWorkType(client, jobId, workTypeId) {
254
- return client.put(`/jobs/${jobId}/work-type`, { id: workTypeId });
254
+ return client.put(`/jobs/${jobId}/work-type`, { workTypeId });
255
255
  }
256
256
  function jobSetTradeTypes(client, jobId, tradeTypeIds) {
257
- return client.put(`/jobs/${jobId}/trade-types`, {
258
- items: tradeTypeIds.map((id) => ({ id }))
259
- });
257
+ return client.put(`/jobs/${jobId}/trade-types`, { tradeTypeIds });
260
258
  }
261
259
  function companyWorkTypes(client) {
262
260
  return paginate(client, "/company-settings/job-file-settings/work-types", {}, Infinity);
@@ -298,7 +296,7 @@ async function resolveWorkTypeId(client, value) {
298
296
  async function resolveTradeTypeIds(client, values) {
299
297
  const items = await companyTradeTypes(client);
300
298
  return values.map(
301
- (value) => resolveNamed(items, value, { label: "trade type", idKey: "tradeId", idIsNumeric: false })
299
+ (value) => resolveNamed(items, value, { label: "trade type", idKey: "id", idIsNumeric: false })
302
300
  );
303
301
  }
304
302
  function documentFolders(client, opts = {}) {
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  resolveTradeTypeIds,
40
40
  resolveWorkTypeId,
41
41
  usersList
42
- } from "./chunk-CX647QGX.js";
42
+ } from "./chunk-AKUPC2EI.js";
43
43
 
44
44
  // src/index.ts
45
45
  import { createRequire } from "module";
package/dist/mcp.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  resolveTradeTypeIds,
39
39
  resolveWorkTypeId,
40
40
  usersList
41
- } from "./chunk-CX647QGX.js";
41
+ } from "./chunk-AKUPC2EI.js";
42
42
 
43
43
  // src/mcp.ts
44
44
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opsrev/acculynx-cli",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "AccuLynx MCP server & CLI — use the AccuLynx roofing CRM in Claude Desktop, Cursor, and any MCP client. Also a JSON CLI for scripts and AI agents.",
5
5
  "repository": {
6
6
  "type": "git",