@kanvas/openclaw-plugin 0.1.5 → 0.1.7

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.
@@ -154,7 +154,7 @@ export class CrmService {
154
154
  `;
155
155
  return this.client.query(query, {
156
156
  first: 1,
157
- where: [{ column: "ID", operator: "EQ", value: id }],
157
+ where: { column: "ID", operator: "EQ", value: id },
158
158
  });
159
159
  }
160
160
  async createLead(input) {
@@ -457,7 +457,7 @@ export class CrmService {
457
457
  }
458
458
  `, {
459
459
  first: 1,
460
- where: [{ column: "ID", operator: "EQ", value: leadId }],
460
+ where: { column: "ID", operator: "EQ", value: leadId },
461
461
  });
462
462
  return response.data?.leads?.data?.[0]?.channels?.[0]?.slug ?? null;
463
463
  }
@@ -48,7 +48,7 @@ export class InventoryService {
48
48
  `;
49
49
  return this.client.query(query, {
50
50
  first: 1,
51
- where: [{ column: "ID", operator: "EQ", value: id }],
51
+ where: { column: "ID", operator: "EQ", value: id },
52
52
  });
53
53
  }
54
54
  async listVariants(first = 25, where) {
@@ -51,7 +51,7 @@ export class OrdersService {
51
51
  `;
52
52
  return this.client.query(query, {
53
53
  first: 1,
54
- where: [{ column: "ID", operator: "EQ", value: id }],
54
+ where: { column: "ID", operator: "EQ", value: id },
55
55
  });
56
56
  }
57
57
  }
package/dist/index.js CHANGED
@@ -191,7 +191,7 @@ ALWAYS schedule follow-ups in Kanvas so the human team can see them — NEVER st
191
191
  - Leads live in pipelines with stages. Always check \`kanvas_list_pipelines\` to get valid stage IDs before creating leads.
192
192
  - Messages use \`message_verb\` to define their type (e.g. "comment", "note", "sms"). New verbs are auto-created.
193
193
  - The \`message\` field in social messages accepts arbitrary JSON — use it to store any structured data.
194
- - Filtering uses \`where: [{ column, operator, value }]\` format. Common operators: "EQ", "LIKE", "IN".
194
+ - Filtering uses \`where: { column, operator, value }\` format. Common operators: "EQ", "LIKE", "IN".
195
195
  - **Follow-ups and reminders MUST go in Kanvas** (events or messages), not local memory. The human team needs to see them in the dashboard.
196
196
  - When updating a lead, you don't need to provide branch_id or people_id — they are auto-fetched.
197
197
  - To add contacts to a person, call \`kanvas_list_contact_types\` first, then pass the contacts array to \`kanvas_update_people\`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanvas/openclaw-plugin",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Connects agents to Kanvas — your company's nervous system for CRM, inventory, orders, and messaging.",
5
5
  "license": "MIT",
6
6
  "repository": {