Finishes the mechanical rollout: every resource using resource_methods!/crud_methods! in the SDK (list/get/create/update/ delete, no bulk/uploads/entity-actions) is now wired up, 33 in total. recurring_quotes.rs mirrors recurring_invoices.rs the same way quotes.rs mirrors invoices.rs, since RecurringQuote is also a type alias for RecurringInvoice in the SDK. client_gateway_tokens, companies, and system_logs use the SDK's crud_methods! rather than resource_methods! (no /bulk route in Invoice Ninja for these) - doesn't change anything here, since this CLI doesn't expose bulk actions yet either way. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Pre-1.0, per GOALS.md, a minor release can still break flags or output —
this file is where that gets written down instead of discovered at the
command line.
[Unreleased]
Added
- 33 resources, every one of them with a simple
list/get/create/update/deleteAPI in the SDK (resource_methods!/crud_methods!, no bulk/uploads/entity-actions) — seeinvoiceninja-cli --helpfor the full list.listtakes--allfor every page,--status, and--param key=valuefor anythingListParamsdoesn't have a typed setter for.quotesandcreditsareinvoicesunder different endpoints — Invoice Ninja stores all three in the same table, distinguished byentity_type, soQuoteandCreditare type aliases forInvoicein the SDK andcommands/quotes.rs/commands/credits.rsare otherwise identical tocommands/invoices.rs. Likewiserecurring_quotes/RecurringQuotemirrorrecurring_invoices/RecurringInvoice. updatefetches the current record, shallow-merges the caller's--data/--fileJSON on top, and writes the merged result back, rather than sending the patch alone — Invoice Ninja'sPUTis a full replace. SeeCLAUDE.mdand the comment insrc/body.rs.--output jsonon every command for the model's fullSerializeoutput (includingextra), suitable as input to a laterupdate/create; the default table view is a convenience subset of columns.- Global
--base-url,--token, and--api-passwordflags, each with a matching environment variable (IN_BASE_URL,IN_API_TOKEN,IN_API_PASSWORD); both secrets are hidden from--helpand any echoed default. - Depends on
invoiceninja-sdk0.2.0 from crates.io. - A
flake.nixwithdevShells.default,packages.default(built with a pinned toolchain), andoverlays.default(for pullinginvoiceninja-cliinto another flake's ownpkgs). - CI on GitHub Actions, mirroring
invoiceninja-sdk's ownci.yml: a pinned-toolchaintestjob, a build-onlymsrvjob on the declared 1.88 floor, and an advisorystablejob.