{"version":3,"file":"indexerErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/indexerErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the indexer service API. Codes shared across all Nado backend\n * services (see {@link NADO_ERROR_CODES}) are inlined via spread; indexer-specific codes are in\n * the 3xxx range and come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`).\n *\n * The indexer failure envelope is returned on the v1 query routes (see\n * {@link IndexerServerFailureResponse}); the v2 routes return REST-style HTTP errors without an\n * `error_code` field.\n */\nexport const INDEXER_ERROR_CODES = {\n  ...NADO_ERROR_CODES,\n\n  // *** Indexer errors (3xxx) ***\n  /** digests cannot be combined with subaccount/product_ids filters. */\n  DIGESTS_NOT_ALLOWED: 3000,\n  /** Too many digests provided for the given limit. */\n  DIGESTS_EXCEED_LIMIT: 3001,\n  /** subaccount parameter is required for this query. */\n  MISSING_SUBACCOUNT: 3002,\n  /** Invalid max_timestamp / granularity / count interval. */\n  INVALID_INTERVAL: 3003,\n  /** Withdrawal transaction not found at the given index. */\n  INVALID_WITHDRAWAL_IDX: 3004,\n  /** Not enough fast-withdrawal signatures for the transaction. */\n  NOT_ENOUGH_FAST_WITHDRAWAL_SIGNATURES: 3005,\n  /** subaccounts parameter is required for this query. */\n  MISSING_SUBACCOUNTS: 3006,\n  /** Too many subaccounts provided. */\n  SUBACCOUNTS_LIMIT_EXCEEDED: 3007,\n} as const;\n\n/**\n * Union of all known indexer service API error codes.\n */\nexport type IndexerErrorCode =\n  (typeof INDEXER_ERROR_CODES)[keyof typeof INDEXER_ERROR_CODES];\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,sBAAsB;CACjC,2BAAGA,EAAAA;;CAIH,qBAAqB;;CAErB,sBAAsB;;CAEtB,oBAAoB;;CAEpB,kBAAkB;;CAElB,wBAAwB;;CAExB,uCAAuC;;CAEvC,qBAAqB;;CAErB,4BAA4B;AAC9B"}