Skip to content

Add Bitrix24Account read model for listing all active accounts #110

Description

@mesilov

User story

As an application developer, I need an LLM-friendly CLI command that can list Bitrix24 accounts by domain, by member-id, and show all active accounts, so I can inspect portal installation state from the terminal without writing ad-hoc SQL.

Current gap

The shared repository contract already supports:

  • findByDomain()
  • findByMemberId()

But there is no reusable read-only API for fetching all active accounts.

In the application, I can implement this locally with a Doctrine query, but this capability belongs in bitrix24-php-lib because it is a generic account-listing concern and should not force every consumer to add its own ORM query code.

Request

Please add a read model or repository method dedicated to fetching active Bitrix24 accounts:

  • read-only API
  • returns all accounts with Bitrix24AccountStatus::active
  • supports stable ordering for CLI/reporting use cases
  • lets consumer bounded contexts avoid direct Doctrine query code for this case

Acceptance hint

A consumer should be able to implement a CLI command like:

  • search accounts by exact domain
  • search accounts by exact member-id
  • list all active accounts

without adding a local Doctrine query for the last case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions