Fake Mirrors
    Preparing search index...

    Module @famir/domain

    @famir/domain

    npm version License

    Shared domain contracts for the Famir platform.

    This package defines the core interfaces, types, and protocol contracts used across the monorepo. It is intentionally framework and infrastructure-agnostic: concrete implementations live in other packages.

    The package is structured as:

    • src/domain.error.ts — Common domain-level error abstraction.
    • src/http-proto.ts — HTTP protocol primitives and shared types.
    • src/index.ts - Package public exports.
    • src/queues/* — Job representations and queue/worker contracts.
    • src/repositories/* — Model representations and repository contracts.
    • src/services/* — Infrastructure service contracts.
    • Keep the domain layer free from runtime infrastructure.
    • Define reusable contracts, not implementations.
    • Prefer explicit interfaces over ad-hoc shapes.
    • Keep cross-package boundaries stable.
    DomainError
    BaseQueue
    BaseWorker
    DomainErrorOptions
    ErrorContext
    HttpContentType
    HttpSetCookie
    HttpUrl
    HttpBody
    HttpConnection
    HttpCookie
    HttpCookies
    HttpError
    HttpHeader
    HttpHeaders
    HttpJson
    HttpMethod
    HttpPayload
    HttpQueryString
    HttpSetCookies
    HttpStrictHeaders
    HttpText
    HttpType
    CampaignModel
    FullCampaignModel
    CampaignRepository
    CAMPAIGN_REPOSITORY
    ProxyModel
    EnabledProxyModel
    ProxyRepository
    PROXY_REPOSITORY
    FullTargetModel
    TargetModel
    EnabledFullTargetModel
    EnabledTargetModel
    TargetRepository
    TargetAccessLevel
    TargetHosts
    TARGET_REPOSITORY
    FullRedirectorModel
    RedirectorModel
    RedirectorRepository
    RedirectorParams
    REDIRECTOR_REPOSITORY
    LureModel
    EnabledLureModel
    LureRepository
    LURE_REPOSITORY
    SessionModel
    SessionRepository
    UpgradeSessionParams
    SESSION_REPOSITORY
    FullMessageModel
    MessageModel
    MessageRepository
    MESSAGE_REPOSITORY
    AnalyzeJobData
    AnalyzeQueue
    AnalyzeWorker
    AnalyzeQueueName
    ANALYZE_QUEUE
    ANALYZE_QUEUE_NAME
    ANALYZE_WORKER
    WebhookJobData
    WebhookQueue
    WebhookWorker
    WebhookQueueName
    WEBHOOK_QUEUE
    WEBHOOK_QUEUE_NAME
    WEBHOOK_WORKER
    ValidatorError
    Validator
    ValidatorErrorOptions
    VALIDATOR
    Config
    ConfigData
    CONFIG
    Logger
    LoggerData
    LoggerLogLevel
    LOGGER
    TemplaterError
    Templater
    TemplaterData
    TEMPLATER
    DatabaseError
    DatabaseConnector
    DatabaseManager
    DatabaseErrorCode
    DatabaseErrorOptions
    DATABASE_CONNECTOR
    DATABASE_MANAGER
    StorageError
    Storage
    STORAGE
    ProducerError
    ProducerConnector
    ProducerErrorCode
    ProducerErrorOptions
    PRODUCER_CONNECTOR
    ConsumerError
    ConsumerConnector
    ConsumerErrorCode
    ConsumerErrorOptions
    CONSUMER_CONNECTOR
    HttpClientError
    HttpClient
    HttpClientSimpleResult
    HttpClientStreamResult
    HttpClientErrorCode
    HttpClientErrorOptions
    HTTP_CLIENT
    HttpServerError
    HttpServer
    HttpServerErrorCode
    HttpServerErrorOptions
    HTTP_SERVER
    ReplServerError
    ReplServer
    ReplServerErrorCode
    ReplServerErrorOptions
    REPL_SERVER
    LifecycleError