3namespace Bitrix\Rest\Repository;
5use Bitrix\Main\Entity\Query;
6use Bitrix\Rest\Entity\Collection\IntegrationCollection;
7use Bitrix\Rest\Entity\Integration;
8use Bitrix\Rest\Enum\APAuth\PasswordType;
9use Bitrix\Rest\Enum\Integration\ElementCodeType;
10use Bitrix\Rest\Preset\EO_Integration_Query;
11use Bitrix\Rest\Preset\IntegrationTable;
22 $integrationList = $this->buildNotSystemIntegrationsQuery()
24 ->setOrder([
'ID' =>
'ASC'])
27 return $this->createIntegrationCollectionFromModelArray($integrationList);
32 $integrationList = $this->buildNotSystemIntegrationsQuery()
34 ->setOrder([
'ID' =>
'ASC'])
35 ->addFilter(
'!=ELEMENT_CODE', ElementCodeType::IN_WEBHOOK->value)
38 return $this->createIntegrationCollectionFromModelArray($integrationList);
43 $integration = $this->buildNotSystemIntegrationsQuery()
47 return !empty($integration->fetch());
52 $query = $this->buildNotSystemIntegrationsQuery()
55 ->addFilter(
'!=ELEMENT_CODE', ElementCodeType::IN_WEBHOOK->value);
57 return !empty(
$query->fetch());
63 private function buildNotSystemIntegrationsQuery():
Query
65 return IntegrationTable::query()
66 ->where(Query::filter()
69 [
'PASSWORD.TYPE', PasswordType::User->value],
70 [
'PASSWORD.TYPE',
null]
77 $integration = IntegrationTable::query()
88 return $this->mapper->mapArrayToEntity($integration);
99 foreach ($modelCollection as $model)
101 $collection->add($this->mapper->mapArrayToEntity($model));
getBoxedPaidIntegrations()
__construct(private readonly \Bitrix\Rest\Model\Mapper\Integration $mapper,)
getCloudPaidIntegrations()
hasNotInWebhookUserIntegrations()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)