Skip to content

v0.3.0

Choose a tag to compare

@youyo youyo released this 10 Apr 03:15
· 213 commits to main since this release
7e37828

What's Changed

BOARD API エンドポイント全面修正

  • 書類リソース (estimates/orders/deliveries/receipts) のパスを /v1/documents/{type}/{id} に修正
  • ベンダー系パスを修正: vendors→payees, vendor_branches→payee_branches, vendor_contacts→payee_contacts, purchase_orders→expenditures, payments→expenditure_payments, purchase_types→expenditure_types
  • 書類リソースの List/Search を削除し、response_group 経由の hydrate フローに書き換え
  • GetByDocumentID + on-demand cache パターンを維持

ページネーション対応

  • PageResult[T], DoWithRetryFull によるページネーション基盤
  • 全 list コマンドに --page/--per-page フラグ追加
  • ListXxxPage メソッドを全リソースに追加

find コマンド改善

  • board find estimate--project-id フラグ追加、--text 削除
  • response_group + hydrate による新しい書類検索フロー
  • FindProject の結果に estimate 情報を付加

CLI エラー出力の改善

  • エラーを JSON 形式で stderr に出力
  • APIError.Hint() で各エラーコード (401/403/404/429/5xx) の対処法を表示
  • Cobra の Usage/Help 表示を抑制

テスト

  • boardapi + service/find の E2E テスト追加 (実 API 検証)