jaz-clio 9.9.1 → 9.10.0
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/api/references/claims.md +14 -5
- package/assets/skills/api/references/errors.md +30 -2
- package/assets/skills/cli/SKILL.md +1 -1
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-api-reference/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 +334 -334
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ description: >-
|
|
|
13
13
|
license: MIT
|
|
14
14
|
compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown.
|
|
15
15
|
metadata:
|
|
16
|
-
version: "9.
|
|
16
|
+
version: "9.10.0"
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Jaz API Skill
|
|
@@ -150,11 +150,20 @@ Turn APPROVED claims into journal entries, and record books-only employee payout
|
|
|
150
150
|
|
|
151
151
|
## Employees (`employees` namespace)
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
bare list endpoint).
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
|
|
153
|
+
Claims members and payrun employees. CLI: `clio employees`. `list = search_employees`
|
|
154
|
+
(no bare list endpoint).
|
|
155
|
+
|
|
156
|
+
- **Eligibility.** Each employee has **Eligible for Claims** (`isEligibleClaims`) and **Eligible for
|
|
157
|
+
Payruns** (`isEligiblePayruns`); at least one is on. Only claims-eligible employees can be given
|
|
158
|
+
claims or advances, and only payruns-eligible ones can be put in a payrun. Both flags are returned
|
|
159
|
+
by `get_employee` / `search_employees` / `search_employee_balances` and filter as `{"isEligiblePayruns": {"eq": true}}`.
|
|
160
|
+
For a claim or advance picker search `isEligibleClaims` true; for a payrun, `isEligiblePayruns` true.
|
|
161
|
+
Turning one off while in use is refused (see errors.md); turning Claims off keeps the claim profile.
|
|
162
|
+
`update_employee` with a flag left out changes nothing.
|
|
163
|
+
- **`add_employee`**: **`name` is required.** Eligible for Claims needs `claimProfileResourceId`
|
|
164
|
+
(on by default when one is given; without a profile: `422 EMPLOYEE_CLAIM_PROFILE_REQUIRED`).
|
|
165
|
+
Eligible for Payruns is off unless `isEligiblePayruns` is true. A payroll-only employee is
|
|
166
|
+
created with `isEligiblePayruns: true` and no profile. `userResourceId` is optional: omit it
|
|
158
167
|
for an offline employee with no login. **`userResourceId` is the user's resourceId:
|
|
159
168
|
read it as the `userResourceId` FIELD on an org-user (`search_org_users`), NOT the
|
|
160
169
|
org-user record's own `resourceId`; passing the membership id returns
|
|
@@ -944,8 +944,36 @@ Two of the seven never reach you through this path: a zero `adjustmentValue` and
|
|
|
944
944
|
**Fix**: Use `search_org_users` and read the member's **`userResourceId`** field (not the org-user record's `resourceId`), then retry. Each user links to at most one employee per org. To move a link, relink with `update_employee` `userResourceId` or unlink with `clearFields: ["userResourceId"]`.
|
|
945
945
|
|
|
946
946
|
### "EMPLOYEE_CLAIM_PROFILE_REQUIRED" (422)
|
|
947
|
-
**Cause**:
|
|
948
|
-
**Fix**: Pick a profile via `search_claim_profiles` and pass its `resourceId` as `claimProfileResourceId`. The profile is locked while the employee has unsettled claims.
|
|
947
|
+
**Cause**: An employee with Eligible for Claims on has no claim profile ("An employee eligible for claims needs a claim profile"): `add_employee` with a profile left out and `isEligibleClaims` true, or `update_employee` turning Claims on or removing the profile while it is on. The org default is NOT auto-applied for employees (unlike claims). A profile is needed only while Claims is on.
|
|
948
|
+
**Fix**: Pick a profile via `search_claim_profiles` and pass its `resourceId` as `claimProfileResourceId`. For a payroll-only employee, leave Claims off and send `isEligiblePayruns: true` instead. The profile is locked while the employee has unsettled claims.
|
|
949
|
+
|
|
950
|
+
### "EMPLOYEE_ELIGIBILITY_REQUIRED" (422)
|
|
951
|
+
**Cause**: The save would leave both Eligible for Claims and Eligible for Payruns off ("Turn on Eligible for Claims, Eligible for Payruns or both"). `add_employee` with no profile and no `isEligiblePayruns` lands here.
|
|
952
|
+
**Fix**: Set `isEligiblePayruns: true`, or give a claim profile for Claims.
|
|
953
|
+
|
|
954
|
+
### "EMPLOYEE_PAYRUNS_ELIGIBILITY_LOCKED" (422)
|
|
955
|
+
**Cause**: `update_employee` turned Eligible for Payruns off while the employee is in a draft payrun ("The employee is in 1 draft payrun. Remove them from it before turning off Eligible for Payruns.").
|
|
956
|
+
**Fix**: Remove the employee from the draft payrun (`remove_payrun_employees`), then retry. Relay the message as is.
|
|
957
|
+
|
|
958
|
+
### "EMPLOYEE_CLAIMS_ELIGIBILITY_LOCKED" (422)
|
|
959
|
+
**Cause**: `update_employee` turned Eligible for Claims off while a claim awaits approval or posting, or a claims balance is left (owed, or an advance not yet claimed). The message names everything open ("The employee is still owed SGD 45.00 in claims. Record a payout for the balance before turning off Eligible for Claims.").
|
|
960
|
+
**Fix**: Settle what the message names (approve or reject the claim, record the payout), then retry. Relay the message as is.
|
|
961
|
+
|
|
962
|
+
### "EMPLOYEE_SETTLEMENT_CHECK_UNAVAILABLE" (422)
|
|
963
|
+
**Cause**: The claim balance could not be verified right now ("Could not verify this employee's claim balance right now, please try again"). Nothing changed.
|
|
964
|
+
**Fix**: Retry the same `update_employee` later.
|
|
965
|
+
|
|
966
|
+
### "CLAIM_EMPLOYEE_NOT_ELIGIBLE" (422)
|
|
967
|
+
**Cause**: A claim or advance was created, moved, submitted or paid out for an employee who is not eligible for claims ("Jane Lim is not eligible for claims").
|
|
968
|
+
**Fix**: Pick the employee with `search_employees` `isEligibleClaims` true, or turn Eligible for Claims on with `update_employee` (ask the user first).
|
|
969
|
+
|
|
970
|
+
### "PAYRUN_EMPLOYEE_NOT_ELIGIBLE" (422)
|
|
971
|
+
**Cause**: `add_payrun_employees` named an employee who is not eligible for payruns ("Raj Kumar is not eligible for payruns"). Fill and create-with-populate skip such employees silently.
|
|
972
|
+
**Fix**: Pick the employee with `search_employees` `isEligiblePayruns` true, or turn Eligible for Payruns on with `update_employee` (ask the user first).
|
|
973
|
+
|
|
974
|
+
### "EMPLOYEE_IMPORT_ELIGIBILITY_REQUIRED" / "EMPLOYEE_IMPORT_ELIGIBILITY_INVALID" (preprocess row error)
|
|
975
|
+
**Cause**: A `preprocess_employees_file` row has no Eligible For value ("Choose Claims, Payruns or Both in Eligible For") or an unknown one ("Use Claims, Payruns or Both, or leave it blank"). Blank is allowed on an existing employee only.
|
|
976
|
+
**Fix**: Set the Eligible For column to Claims, Payruns or Both. If the file has no such column, download the template again. A JSON create row that ends with both flags off is refused whole with `EMPLOYEE_IMPORT_VALIDATION_FAILED`.
|
|
949
977
|
|
|
950
978
|
### "DUPLICATE_REPORT_TEMPLATE_EXISTS" (422)
|
|
951
979
|
**Cause**: A report template of the same report type already has this name. Names are unique per report type, ignoring case and treating space and `_` alike ("My P&L" and "my_p&l" collide); the same name on another report type is fine.
|
|
@@ -15,7 +15,7 @@ description: >-
|
|
|
15
15
|
license: MIT
|
|
16
16
|
compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown. Load the jaz-api skill alongside this one.
|
|
17
17
|
metadata:
|
|
18
|
-
version: "9.
|
|
18
|
+
version: "9.10.0"
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
# Jaz API Reference Skill
|
|
@@ -10,7 +10,7 @@ description: >-
|
|
|
10
10
|
license: MIT
|
|
11
11
|
compatibility: Works with Claude Code, Codex CLI, Cursor, Copilot, Claude Cowork, Claude.ai, and any agent that reads markdown. Multi-organization workflows need the `clio` CLI (`npm i -g jaz-clio`); a single organization works through MCP tools alone. Load alongside jaz-jobs for close playbooks, jaz-recipes for IFRS patterns, jaz-api for payload shapes, jaz-conversion for migrations.
|
|
12
12
|
metadata:
|
|
13
|
-
version: "9.
|
|
13
|
+
version: "9.10.0"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# Jaz Kit
|
|
@@ -13,7 +13,7 @@ description: >-
|
|
|
13
13
|
license: MIT
|
|
14
14
|
compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For canonical report types and the standard analytics surface, load the jaz-api skill alongside this one.
|
|
15
15
|
metadata:
|
|
16
|
-
version: "9.
|
|
16
|
+
version: "9.10.0"
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Jaz Pseudo-SQL Skill
|
|
@@ -10,7 +10,7 @@ description: >-
|
|
|
10
10
|
license: MIT
|
|
11
11
|
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.
|
|
12
12
|
metadata:
|
|
13
|
-
version: "9.
|
|
13
|
+
version: "9.10.0"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# Jobs Skill
|
|
@@ -13,7 +13,7 @@ description: >-
|
|
|
13
13
|
license: MIT
|
|
14
14
|
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. For the operational close workflows these recipes plug into (month-end close, GST/VAT filing, year-end close), load the jaz-jobs skill.
|
|
15
15
|
metadata:
|
|
16
|
-
version: "9.
|
|
16
|
+
version: "9.10.0"
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Transaction Recipes Skill
|