1
0
Files
bigcapital/packages/cli/dist/config.d.ts
T
Ahmed Bouhuolia 9cd21ce11e feat(cli): implement Bigcapital CLI with full module support
- Add CLI package with commander.js for interacting with Bigcapital API
- Implement listing commands for all modules: items, invoices, customers,
  vendors, bills, accounts, expenses, credit-notes, vendor-credits,
  payments, estimates, receipts, journals, inventory, tax-rates,
  warehouses, and users
- Add comprehensive financial reports: balance-sheet, profit-loss,
  cashflow, trial-balance, general-ledger, journal, receivable-aging,
  payable-aging, customer-balance, vendor-balance, sales-by-items,
  purchases-by-items, inventory-valuation, and sales-tax-liability
- Support configuration management for API key, base URL, and org ID
- Add professional table formatting with chalk and cli-table3
- Include loading spinners and error handling

Usage:
  bigcapital config set api-key <key>
  bigcapital items list
  bigcapital reports balance-sheet --from 2024-01-01 --to 2024-12-31

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:58:52 +02:00

14 lines
519 B
TypeScript

import { ApiFetcher } from '@bigcapital/sdk-ts';
interface ConfigSchema {
apiKey: string;
baseUrl: string;
organizationId?: string;
}
export declare function getConfig(): ConfigSchema;
export declare function setApiKey(apiKey: string): void;
export declare function setBaseUrl(baseUrl: string): void;
export declare function setOrganizationId(organizationId: string): void;
export declare function validateConfig(): ConfigSchema;
export declare function createAuthenticatedFetcher(): ApiFetcher;
export {};