jaz-clio 4.25.3 → 4.25.4

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-api
3
- version: 4.25.3
3
+ version: 4.25.4
4
4
  description: Complete reference for the Jaz REST API — the accounting platform backend. Use this skill whenever building, modifying, debugging, or extending any code that calls the API — including API clients, integrations, data seeding, test data, or new endpoint work. Contains every field name, response shape, error, gotcha, and edge case discovered through live production testing.
5
5
  license: MIT
6
6
  compatibility: Requires Jaz API key (x-jk-api-key header). Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown.
@@ -85,7 +85,7 @@ You are working with the **Jaz REST API** — the accounting platform backend. A
85
85
 
86
86
  ### Custom Fields
87
87
  35. **Do NOT send `appliesTo` on custom field POST** — causes "Invalid request body". Only send `name`, `type`, `printOnDocuments`.
88
- 35a. **Custom field values on transactions**: Set via `customFields: [{ customFieldName: "PO Number", actualValue: "PO-123" }]` on invoice/bill/customer-CN/supplier-CN/payment/item create/update. NOT on journals, cash entries, or cash transfers. Read from GET responses in the same shape.
88
+ 35a. **Custom field values on transactions**: Set via `customFields: [{ customFieldName: "PO Number", actualValue: "PO-123" }]` on invoice/bill/customer-CN/supplier-CN/payment/item/fixed-asset create/update. NOT on journals, cash entries, or cash transfers. Read from GET responses in the same shape.
89
89
  35b. **Custom field search**: `POST /custom-fields/search` with filter/sort/limit/offset. Filter by `customFieldName` (StringExpression), `datatypeCode` (StringExpression: TEXT, DATE, DROPDOWN).
90
90
  35c. **Custom field GET**: `GET /custom-fields/:resourceId` returns full definition including `applyToSales`, `applyToPurchase`, `applyToCreditNote`, `applyToPayment`, `printOnDocuments`, `listOptions`.
91
91
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-conversion
3
- version: 4.25.3
3
+ version: 4.25.4
4
4
  description: Accounting data conversion skill — migrates customer data from Xero, QuickBooks, Sage, MYOB, and Excel exports to Jaz. Covers config, quick, and full conversion workflows, Excel parsing, CoA/contact/tax/items mapping, clearing accounts, TTB, and TB verification.
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-jobs
3
- version: 4.25.3
3
+ version: 4.25.4
4
4
  description: 12 accounting jobs for SMB bookkeepers and accountants — month-end, quarter-end, and year-end close playbooks plus 9 ad-hoc operational jobs (bank recon, document collection, GST/VAT filing, payment runs, credit control, supplier recon, audit prep, fixed asset review, statutory filing). Jobs can have paired tools as nested subcommands (e.g., `clio jobs bank-recon match`, `clio jobs document-collection ingest`, `clio jobs statutory-filing sg-cs`). Paired with an interactive CLI blueprint generator (clio jobs).
5
5
  license: MIT
6
6
  compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill. For individual transaction patterns, load the jaz-recipes skill.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 4.25.3
3
+ version: 4.25.4
4
4
  description: 16 IFRS-compliant recipes for complex multi-step accounting in Jaz — prepaid amortization, deferred revenue, loan schedules, IFRS 16 leases, hire purchase, fixed deposits, asset disposal, FX revaluation, ECL provisioning, IAS 37 provisions, dividends, intercompany, and capital WIP. Each recipe includes journal entries, capsule structure, and verification steps. Paired with 13 financial calculators that produce execution-ready blueprints with workings.
5
5
  license: MIT
6
6
  compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill alongside this one.
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import { listFixedAssets, getFixedAsset, searchFixedAssets, createFixedAsset, updateFixedAsset, deleteFixedAsset, discardFixedAsset, markFixedAssetSold, transferFixedAsset, undoFixedAssetDisposal, } from '../core/api/fixed-assets.js';
3
3
  import { apiAction } from './api-action.js';
4
- import { parsePositiveInt, parseNonNegativeInt, readBodyInput } from './parsers.js';
4
+ import { parsePositiveInt, parseNonNegativeInt, readBodyInput, parseCustomFields } from './parsers.js';
5
5
  import { paginatedFetch } from './pagination.js';
6
6
  import { outputList } from './output.js';
7
7
  import { formatId, formatCurrency } from './format-helpers.js';
@@ -85,6 +85,7 @@ export function registerFixedAssetsCommand(program) {
85
85
  .command('create')
86
86
  .description('Register a new fixed asset')
87
87
  .option('--input <file>', 'Read request body from JSON file')
88
+ .option('--custom-fields <json>', 'Custom field values as JSON array: [{\"customFieldName\":\"PO Number\",\"actualValue\":\"PO-123\"}]')
88
89
  .option('--format <type>', 'Output format: table, json, csv, yaml')
89
90
  .option('--api-key <key>', 'API key')
90
91
  .option('--json', 'JSON output')
@@ -94,6 +95,8 @@ export function registerFixedAssetsCommand(program) {
94
95
  console.error(chalk.red('Use --input <file> to provide asset data.'));
95
96
  process.exit(1);
96
97
  }
98
+ if (opts.customFields)
99
+ body.customFields = parseCustomFields(opts.customFields);
97
100
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
101
  const res = await createFixedAsset(client, body);
99
102
  if (opts.json) {
@@ -121,6 +124,7 @@ export function registerFixedAssetsCommand(program) {
121
124
  .command('update <resourceId>')
122
125
  .description('Update a fixed asset')
123
126
  .option('--name <name>', 'New name')
127
+ .option('--custom-fields <json>', 'Custom field values as JSON array')
124
128
  .option('--input <file>', 'Read full update body from JSON file')
125
129
  .option('--format <type>', 'Output format: table, json, csv, yaml')
126
130
  .option('--api-key <key>', 'API key')
@@ -135,6 +139,8 @@ export function registerFixedAssetsCommand(program) {
135
139
  data = {};
136
140
  if (opts.name !== undefined)
137
141
  data.name = opts.name;
142
+ if (opts.customFields)
143
+ data.customFields = parseCustomFields(opts.customFields);
138
144
  }
139
145
  const res = await updateFixedAsset(client, resourceId, data);
140
146
  if (opts.json) {
@@ -40,6 +40,8 @@ export function registerPaymentsCommand(program) {
40
40
  .option('--to <YYYY-MM-DD>', 'Filter to date (inclusive)')
41
41
  .option('--method <method>', 'Filter by payment method')
42
42
  .option('--type <type>', 'Filter by transaction type (SALE, PURCHASE, etc.)')
43
+ .option('--direction <dir>', 'Filter by direction: PAYIN or PAYOUT')
44
+ .option('--account <resourceId>', 'Filter by account resourceId')
43
45
  .option('--ref <reference>', 'Filter by reference (contains)')
44
46
  .option('--sort <field>', 'Sort field (default: valueDate)')
45
47
  .option('--order <direction>', 'Sort order: ASC or DESC (default: DESC)')
@@ -56,6 +58,10 @@ export function registerPaymentsCommand(program) {
56
58
  filter.businessTransactionReference = { contains: opts.ref };
57
59
  if (opts.type)
58
60
  filter.businessTransactionType = { eq: opts.type };
61
+ if (opts.direction)
62
+ filter.direction = { eq: opts.direction };
63
+ if (opts.account)
64
+ filter.organizationAccountResourceId = { eq: opts.account };
59
65
  if (opts.from || opts.to) {
60
66
  const dateFilter = {};
61
67
  if (opts.from)
@@ -1924,10 +1924,15 @@ export const TOOL_DEFINITIONS = [
1924
1924
  },
1925
1925
  {
1926
1926
  name: 'search_payments',
1927
- description: 'Search payments with filters (date, type, direction).',
1927
+ description: 'Search payments with filters (date, type, direction, reference, account).',
1928
1928
  params: {
1929
1929
  ...SEARCH_PARAMS,
1930
- businessTransactionType: { type: 'string', description: 'Filter by type' },
1930
+ businessTransactionType: { type: 'string', description: 'Filter by type (SALE, PURCHASE, JOURNAL_MANUAL, etc.)' },
1931
+ direction: { type: 'string', description: 'Filter by direction: PAYIN or PAYOUT' },
1932
+ fromDate: { type: 'string', description: 'Filter from date (YYYY-MM-DD, inclusive)' },
1933
+ toDate: { type: 'string', description: 'Filter to date (YYYY-MM-DD, inclusive)' },
1934
+ reference: { type: 'string', description: 'Filter by reference (contains)' },
1935
+ accountResourceId: { type: 'string', description: 'Filter by account resourceId' },
1931
1936
  },
1932
1937
  required: [],
1933
1938
  group: 'payments',
@@ -1937,6 +1942,20 @@ export const TOOL_DEFINITIONS = [
1937
1942
  const filter = {};
1938
1943
  if (input.businessTransactionType)
1939
1944
  filter.businessTransactionType = { eq: input.businessTransactionType };
1945
+ if (input.direction)
1946
+ filter.direction = { eq: input.direction };
1947
+ if (input.reference)
1948
+ filter.businessTransactionReference = { contains: input.reference };
1949
+ if (input.accountResourceId)
1950
+ filter.organizationAccountResourceId = { eq: input.accountResourceId };
1951
+ if (input.fromDate || input.toDate) {
1952
+ const df = {};
1953
+ if (input.fromDate)
1954
+ df.gte = input.fromDate;
1955
+ if (input.toDate)
1956
+ df.lte = input.toDate;
1957
+ filter.valueDate = df;
1958
+ }
1940
1959
  return handlePaginationMode(mode, (off, lim) => searchPayments(ctx.client, {
1941
1960
  filter: Object.keys(filter).length > 0 ? filter : undefined,
1942
1961
  limit: lim, offset: off,
@@ -2925,6 +2944,7 @@ Auto-resolves accounts from chart of accounts. Provide bankAccountName for recip
2925
2944
  accumulatedDepreciationAccountResourceId: { type: 'string', description: 'Accumulated depreciation account resourceId' },
2926
2945
  internalNotes: { type: 'string', description: 'Internal notes' },
2927
2946
  saveAsDraft: { type: 'boolean', description: 'Save as draft (default true)' },
2947
+ customFields: CUSTOM_FIELDS_PARAM,
2928
2948
  },
2929
2949
  required: ['name', 'purchaseAmount', 'purchaseDate', 'purchaseAssetAccountResourceId'],
2930
2950
  group: 'fixed_assets',
@@ -2940,6 +2960,7 @@ Auto-resolves accounts from chart of accounts. Provide bankAccountName for recip
2940
2960
  internalNotes: { type: 'string' },
2941
2961
  depreciationMethod: { type: 'string' },
2942
2962
  effectiveLife: { type: 'number' },
2963
+ customFields: CUSTOM_FIELDS_PARAM,
2943
2964
  },
2944
2965
  required: ['resourceId'],
2945
2966
  group: 'fixed_assets',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaz-clio",
3
- "version": "4.25.3",
3
+ "version": "4.25.4",
4
4
  "description": "Clio — Command Line Interface Orchestrator for Jaz AI.",
5
5
  "type": "module",
6
6
  "bin": {