@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:
|
|
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:
|
|
460
|
+
where: { column: "ID", operator: "EQ", value: leadId },
|
|
461
461
|
});
|
|
462
462
|
return response.data?.leads?.data?.[0]?.channels?.[0]?.slug ?? null;
|
|
463
463
|
}
|
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:
|
|
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