jaz-clio 5.47.23 → 5.47.25
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.
- package/assets/skills/api/SKILL.md +1 -1
- package/assets/skills/cli/SKILL.md +1 -1
- package/assets/skills/cli/references/field-guide.md +3 -3
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-kit/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +1 -1
- package/assets/skills/jobs/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +1 -1
- package/cli.mjs +185 -185
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| `--status DRAFT` | `status` | Uppercase enum |
|
|
18
18
|
| `--lines '[...]'` | `lineItems` array | Each needs: name, quantity, unitPrice, accountResourceId |
|
|
19
19
|
| `--entries '[...]'` | `journalEntries` array | Each needs: accountResourceId, debit OR credit |
|
|
20
|
-
| `--finalize` | `saveAsDraft: false` | CLI defaults to draft (saveAsDraft: true) |
|
|
20
|
+
| `--finalize` | `saveAsDraft: false` | Transaction commands only. CLI defaults to draft (saveAsDraft: true); master-data creates have no draft state |
|
|
21
21
|
| `--bank-account "name"` | `bankAccountResourceId` | Fuzzy-resolved |
|
|
22
22
|
| `--tax-profile "name"` | `taxProfileResourceId` | Fuzzy-resolved |
|
|
23
23
|
|
|
@@ -68,11 +68,11 @@ Use in search: `clio invoices search --status UNPAID --json`
|
|
|
68
68
|
|
|
69
69
|
1. **Create returns minimal response** — only `{ "resourceId": "uuid" }`. Run `clio invoices get <id> --json` for full data.
|
|
70
70
|
2. **Line-item accounts don't fuzzy-resolve** — `--lines` JSON requires exact account name or UUID. Top-level `--account` fuzzy-resolves.
|
|
71
|
-
3. **
|
|
71
|
+
3. **Transaction creates default to draft** — invoices, bills, journals, cash entries, credit notes and orders. Use `--finalize` to create as finalized (UNPAID for invoices, ACTIVE for journals). Master data has no draft state: contacts, items, accounts, tags, tax profiles and the rest are created live, and accept no `--finalize`.
|
|
72
72
|
4. **`--offset` is page number (0-indexed)** — not row skip count. offset=0 + limit=100 = page 1.
|
|
73
73
|
5. **`customer` is boolean** — `--customer true`, not `--customer "Acme"`.
|
|
74
74
|
6. **Dates are YYYY-MM-DD** — org-local timezone. API returns epoch ms but CLI formats them.
|
|
75
75
|
7. **`--all` caps at 10,000 rows** — use `--max-rows 50000` for larger datasets.
|
|
76
76
|
8. **JSON goes to stdout, errors to stderr** — `clio invoices list --json 2>/dev/null | jq .` is safe.
|
|
77
|
-
9. **`--finalize` skips draft** — creates finalized (e.g., UNPAID for invoices). Without it
|
|
77
|
+
9. **`--finalize` skips draft** — creates finalized (e.g., UNPAID for invoices). Without it a TRANSACTION is DRAFT; master data is live either way, because `saveAsDraft` does not exist for those entities.
|
|
78
78
|
10. **Currency codes are uppercase** — `SGD` not `sgd`. API rejects lowercase.
|