jaz-clio 9.8.2 → 9.8.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: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill whenever you call, debug, or review code that touches the Jaz
6
6
  REST API. Covers field names, response shapes, 148 production gotchas, error
@@ -2219,13 +2219,13 @@ POST /api/v1/payruns, POST /api/v1/payruns/search, GET|PUT|DELETE /api/v1/payrun
2219
2219
  - Payouts (`FINALIZED` runs): body `{ payoutMethod, paymentAccountResourceId (preview: optional, a preview without it works out everything else and leaves the account's checks out; recording needs it, `PAYRUN_PAYOUT_ACCOUNT_REQUIRED`; a wrong account is `PAYRUN_PAYOUT_ACCOUNT_NOT_FOUND` on both), valueDate?, reference?, internalNotes?, payslips?: [{ payslipResourceId, amount?, reference? }], hash? }`. `payoutMethod` `RECORD` books money paid outside Jaz (a journal per payslip, debit net pay account, credit the bank or cash account in the run currency); `DISBURSE` pays through a payment gateway and is NOT used by the clio tools or commands, which always send `RECORD`. No `payslips`: every payslip still owed, in full; part amounts are allowed. `payouts/preview` takes the same body and answers 200 with `{ valid, errors?, payouts[] (netPayAmount, paidAmount, owedAmount, payoutAmount, lines), totalPayoutAmount }`. `POST /payouts` answers 202 (job type `PAYRUN_CREATE_PAYOUTS` for `RECORD`). Errors: `PAYRUN_PAYOUT_EXCEEDS_OWED`, `PAYRUN_PAYOUT_NOTHING_OWED`, `PAYRUN_PAYOUT_ACCOUNT_INVALID_TYPE`, `PAYRUN_PAYOUT_ACCOUNT_CURRENCY_MISMATCH`, `PAYRUN_PAYOUT_NOT_FINALIZED`. The payslip `payoutStatus` goes `UNPAID`, `PARTIALLY_PAID`, `PAID`.
2220
2220
  - `hash` only dedups while its job runs (the same hash and request returns that job; the same hash with another request is `PAYRUN_PAYOUT_HASH_IN_USE`). Staging, 2026-11-17: the same hash and request sent after the job finished started a second job and recorded a part payout twice. Read the run's `payouts` before sending again.
2221
2221
  - The run's `payouts` list each payout with `journalResourceId` and `voidable`. `POST /payouts/:journalResourceId/void` `{ voidReason }` voids a recorded one (the payslip owes it again) and answers the run; deleting its cash entry is refused with `PAYRUN_PAYOUT_LINKED_TO_PAYRUN` (void it from the payrun: `void_payrun_payout`); a gateway payout is refused (`PAYRUN_PAYOUT_DISBURSED`). Payrun payouts also appear in `POST /employees/payouts/search` with `payrunResourceId` and `type` `PAYRUN_PAYOUT`; `payoutType` (`DIRECT_ENTRY` for a recorded payout, `DISBURSEMENT` for a payment gateway payout, `PAYRUN_PAYOUT` for a payrun's payouts, recorded or through the gateway, which the other two leave out; any other value is a 422) and `payoutStatus` are bare arrays in that filter, not `{ eq }` or `{ in }`. `POST /employees/balances/search` rows carry `unpaidPay` (net pay finalized runs still owe, per currency).
2222
- - Save lines `{ payslips: [{ payslipResourceId, lines: [{ resourceId?, payTypeId, amount, description? }], notes?, clearNotes? }] }`: a payslip's `lines` replaces its whole list; amounts 0 or more, 2 decimals. Answers `data` as an ARRAY of the payslips named. Lines added by hand have `origin` `MANUAL`.
2222
+ - Save lines `{ payslips: [{ payslipResourceId, lines: [{ resourceId?, payTypeId, amount, description? }], notes?, clearNotes? }] }`: a payslip's `lines` replaces its whole list; amounts 0 or more, 2 decimals. Answers `data` as an ARRAY of the payslips named. Lines added by hand have `origin` `MANUAL`; lines from a payrun import have `origin` `IMPORTED`.
2223
2223
 
2224
2224
  ### Payslips
2225
2225
  POST /api/v1/payslips/search, GET /api/v1/payslips/:resourceId, POST /api/v1/payslips/:resourceId/refresh, POST /api/v1/payruns/:resourceId/payslips/refresh, POST /api/v1/payruns/:resourceId/payslips/generate
2226
2226
  - Search takes `filter` only; sort `payrun.periodEndDate` and the other `payrun.` dates are valid. An employee's payslips, newest first: `employeeResourceId`, `payrun.status` `FINALIZED`, sort `payrun.periodEndDate` DESC.
2227
2227
  - A pro-rated payslip carries `proration: { periods: [{ startDate, endDate, daysCounted, daysInPeriod }], changes: [{ date, type }] }` (`type` is `JOINED`, `PAY_CHANGES` or `PAY_ENDS`); each line's proration parts carry `periodDays`.
2228
- - Refresh (draft only) rebuilds the pay-setup lines from the employee's current pay, pro-rated, replaces hand edits on them and keeps hand-added lines. One payslip answers `{ data: { payslip } }`; an employee with no pay in the period is refused with `PAYRUN_EMPLOYEE_NO_PAY_PROFILE` and the payslip is unchanged. `POST /payruns/:id/payslips/refresh` takes `{ payslipResourceIds? }` (none or empty: every payslip) and answers `{ payrun, refreshed, failed }`; a payslip that cannot be refreshed is in `failed` with an `errorCode`. This route answers on staging but is not in the public spec yet.
2228
+ - Refresh (draft only) rebuilds the pay-setup lines from the employee's current pay, pro-rated, and each replaces every line of its pay type whatever its origin (a hand edit, a hand-added line, an imported line); lines of other pay types are kept. One payslip answers `{ data: { payslip } }`; an employee with no pay in the period is refused with `PAYRUN_EMPLOYEE_NO_PAY_PROFILE` and the payslip is unchanged. `POST /payruns/:id/payslips/refresh` takes `{ payslipResourceIds? }` (none or empty: every payslip) and answers `{ payrun, refreshed, failed }`; a payslip that cannot be refreshed is in `failed` with an `errorCode`.
2229
2229
  - Generate (finalized runs only, 202, job type `PAYRUN_GENERATE_PAYSLIPS`) makes the PDFs again for the payslips named or all; the link is in the payslip's `generatedDocuments`. A draft is refused (`PAYRUN_NOT_FINALIZED`).
2230
2230
  - Not in the REST API: payrun import, emailing payslips, a ZIP of payslips, version history, a custom exchange rate at finalize.
2231
2231
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill when running Clio CLI commands, building shell scripts with
6
6
  Clio, debugging auth issues, understanding --json output, paginating results,
@@ -443,7 +443,7 @@ Drafts only change: a finalized run is refused (`PAYRUN_NOT_DRAFT`). Type, frequ
443
443
  |------------|-----------|
444
444
  | `get <id>` | Lines, amounts and the PDF link (`generatedDocuments`) |
445
445
  | `search` | `--payrun`, `--employee`, `--employee-name`, `--pay-profile`, `--payout-status`, `--payrun-status`, `--limit`, `--offset`, `--sort`, `--order` |
446
- | `refresh <id>` | Rebuild one draft payslip from current pay; hand-added lines stay |
446
+ | `refresh <id>` | Rebuild one draft payslip from current pay; a pay-setup line replaces every line of its pay type, lines of other pay types stay |
447
447
  | `refresh-payrun <payrunId>` | `--payslips <list>` (default all). Payslips that cannot be refreshed are listed and the exit code is 1 |
448
448
  | `generate <payrunId>` | `--payslips <list>` (default all). Makes the PDFs of a finalized run again; a 202 job |
449
449
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-conversion
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill when migrating accounting data into Jaz, importing from Xero,
6
6
  QuickBooks, Sage, MYOB, or Excel exports. Covers the full conversion pipeline:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-kit
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill when an accountant, bookkeeper, or owner is running real books
6
6
  in Jaz across one or more organizations from the terminal: setting up a
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-pseudo-sql
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill when answering ad-hoc data questions that aren't covered by
6
6
  download_export (canonical reports: anomaly, audit, aging, P&L, BS, GL,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-jobs
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill for recurring accounting workflows: month/quarter/year-end
6
6
  close, bank reconciliation, GST/VAT filing, payment runs, credit control,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 9.8.2
3
+ version: 9.8.4
4
4
  description: >-
5
5
  Use this skill when modeling complex multi-step accounting transactions:
6
6
  anything that spans multiple periods, involves changing amounts, or requires