@odla-ai/crm 0.1.1 → 0.1.3

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.
@@ -191,10 +191,15 @@ interface CrmConfigRow {
191
191
  settings: Record<string, unknown>;
192
192
  updatedAt: number;
193
193
  }
194
- /** Outcome of validating + coercing input for a type (see `prepare`). */
194
+ /** Outcome of validating + coercing input for a type (see `prepare`). On
195
+ * success, `attrs` are the columns to WRITE (never null — odla-db rejects null
196
+ * on a typed scalar) and `retract` names the slots/promoted columns to CLEAR
197
+ * because their field went empty (populated only on update; empty on create,
198
+ * where there is nothing to clear). */
195
199
  type PreparedWrite = {
196
200
  ok: true;
197
201
  attrs: CrmAttrs;
202
+ retract: string[];
198
203
  } | {
199
204
  ok: false;
200
205
  errors: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/crm",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A flexible CRM layer for odla apps — configurable record types (people, companies, anything), pipelines with gated transitions, tags, notes and follow-ups, email consent + audited sends, and saved views, all on odla-db with a mountable route factory and an admin UI kit over @odla-ai/ui.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/crm",
@@ -57,7 +57,7 @@
57
57
  "prepublishOnly": "npm run build && npm test"
58
58
  },
59
59
  "peerDependencies": {
60
- "@odla-ai/ui": ">=0.7.0 <0.8.0",
60
+ "@odla-ai/ui": ">=0.7.0 <0.9.0",
61
61
  "react": ">=18"
62
62
  },
63
63
  "peerDependenciesMeta": {