Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

fix contracts for apps #327

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 2.0-beta.1 — 10.11.2022

### Added
* add `Symfony\Component\Uid\Uuid` requirements
* add contracts for bitrix24 applications based on bitrix24-php-sdk - `Bitrix24\SDK\Application\Contracts`, now added `Bitrix24Account`

### Changed
* ❗️Batch interface `BatchInterface` [renamed](https://github.com/mesilov/bitrix24-php-sdk/issues/324) to `Bitrix24\SDK\Core\Contracts\BatchOperationsInterface`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

declare(strict_types=1);

namespace Bitrix24\SDK\Application\Contracts;
namespace Bitrix24\SDK\Application\Contracts\Bitrix24Account;

use Symfony\Component\Uid\Uuid;

interface Bitrix24AccountRepositoryInterface
{
/**
* Сохранение аккаунта
* Save account
*
* @param Bitrix24AccountInterface $entity
* @param bool $flush
* @param bool $flush
*
* @return void
*/
public function saveAccount(Bitrix24AccountInterface $entity, bool $flush = false): void;

/**
* Получение аккаунта по его идентификатору
* Get by account id
*
* @param \Symfony\Component\Uid\Uuid $id
*
Expand All @@ -28,24 +28,24 @@ public function saveAccount(Bitrix24AccountInterface $entity, bool $flush = fals
public function getById(Uuid $id): Bitrix24AccountInterface;

/**
* Физическое удаление аккаунта
* Delete account
*
* @param Bitrix24AccountInterface $entity
* @param bool $flush
* @param bool $flush
*
* @return void
*/
public function deleteAccount(Bitrix24AccountInterface $entity, bool $flush = false): void;

/**
* Поиск аккаунта по member_id
* Find account by member_id
*
* @return ?Bitrix24AccountInterface Returns an array of Bitrix24Account objects
*/
public function findAccountByMemberId(string $memberId): ?Bitrix24AccountInterface;

/**
* Получение аккаунта по member_id
* Get account by member_id
*
* @param string $memberId
*
Expand All @@ -54,7 +54,7 @@ public function findAccountByMemberId(string $memberId): ?Bitrix24AccountInterfa
public function getAccountByMemberId(string $memberId): Bitrix24AccountInterface;

/**
* Поиск аккаунта по идентификатору контактного лица
* Find account by contact person id - person, who installed application
*
* @param \Symfony\Component\Uid\Uuid $contactPersonId
*
Expand All @@ -63,7 +63,7 @@ public function getAccountByMemberId(string $memberId): Bitrix24AccountInterface
public function findAccountByContactPersonId(Uuid $contactPersonId): ?Bitrix24AccountInterface;

/**
* Поиск аккаунта по URL домена
* Find account by domain url
*
* @param string $domainUrl
*
Expand Down