/** * Centralized parameter definitions for odoo-cli commands. * * ONE implementation for all shared flags: * - --fields, --domain, --domain-json, --domain-file, --filter * - --limit, --all, --offset, --page-size, --order * - --format, --confirm, --dry-run, --context * - Auth: --url, --db, --user, --password * * Commands compose these via Commander .addOption() calls. * Never duplicate these definitions in individual command files. */ import { Command, Option } from 'commander'; /** --url: Odoo base URL */ export declare const urlOption: () => Option; /** --db: Database name */ export declare const dbOption: () => Option; /** --user: Username */ export declare const userOption: () => Option; /** --password: Password (use env var instead) */ export declare const passwordOption: () => Option; /** All auth options as a group */ export declare function addAuthOptions(cmd: Command): Command; /** --format: Output format */ export declare const formatOption: () => Option; /** --fields: Comma-separated fields */ export declare const fieldsOption: () => Option; /** --domain: Odoo domain filter */ export declare const domainOption: () => Option; /** --domain-json: Strict JSON domain */ export declare const domainJsonOption: () => Option; /** --domain-file: Read domain from file */ export declare const domainFileOption: () => Option; /** --filter: Simple K=V equality shorthand — repeatable, values collected into array */ export declare const filterOption: () => Option; /** --limit: Max records */ export declare const limitOption: (defaultVal?: number) => Option; /** --all: Fetch all records (--limit 0 alias) */ export declare const allOption: () => Option; /** --offset: Skip first N records */ export declare const offsetOption: () => Option; /** --page-size: Paging chunk size */ export declare const pageSizeOption: () => Option; /** --order: Sort order */ export declare const orderOption: () => Option; /** --count: Print count instead of records */ export declare const countOption: () => Option; /** --confirm: Required for WRITE/DESTRUCTIVE */ export declare const confirmOption: () => Option; /** --dry-run: Preview without executing */ export declare const dryRunOption: () => Option; /** --context: Extra Odoo context JSON */ export declare const contextOption: () => Option; /** --no-color: Disable ANSI colors */ export declare const noColorOption: () => Option; /** --quiet: Suppress stderr progress/warnings */ export declare const quietOption: () => Option; /** --experimental: Required for experimental commands */ export declare const experimentalOption: () => Option; /** * Add search/filter options to a command. * Used by: records search, records count, attendance list, timesheets list, etc. */ export declare function addSearchOptions(cmd: Command): Command; /** * Add pagination options to a command. */ export declare function addPaginationOptions(cmd: Command, defaultLimit?: number): Command; /** * Add output options (format + fields) to a command. */ export declare function addOutputOptions(cmd: Command): Command; /** * Add write safety options to a command. */ export declare function addWriteOptions(cmd: Command): Command; /** * Parse --fields value into an array of field names. * Returns empty array if not specified (means "all fields"). */ export declare function parseFields(fields?: string): string[]; /** * Resolve the effective limit. * --all overrides --limit (sets to 0 = all). */ export declare function resolveLimit(options: { limit?: number; all?: boolean; }): number; //# sourceMappingURL=common-params.d.ts.map