Represents a service that manages users in the CLI

interface ICliUsersStoreService {
    createUser(user: CliAddUser): Promise<ICliUser>;
    getUser(id: string): Observable<undefined | ICliUser>;
    getUsers(
        options?: { query?: string; skip?: number; take?: number },
    ): Observable<ICliUser[]>;
}

Methods

  • Gets a user by id

    Parameters

    • id: string

      The id of the user to get

    Returns Observable<undefined | ICliUser>

    An observable that emits the user with the specified id

  • Gets the current users

    Parameters

    • Optionaloptions: { query?: string; skip?: number; take?: number }

    Returns Observable<ICliUser[]>

    An observable that emits the current users