@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`, {
|
|
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: "
|
|
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
package/dist/mcp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opsrev/acculynx-cli",
|
|
3
|
-
"version": "1.13.
|
|
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",
|