From 7214c3f7ff76ee9cb720960b7d7bddecac2c803e Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 23 Oct 2024 16:54:35 +0300 Subject: [PATCH] Update CRM Lists discoveries --- lib/Discovery/Crm/Lists/Discovery.php | 4 ++++ tests/spec/Discovery/Crm/Lists/DiscoverySpec.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/Discovery/Crm/Lists/Discovery.php b/lib/Discovery/Crm/Lists/Discovery.php index d5f71f90..60e1f3f9 100644 --- a/lib/Discovery/Crm/Lists/Discovery.php +++ b/lib/Discovery/Crm/Lists/Discovery.php @@ -2,12 +2,16 @@ namespace HubSpot\Discovery\Crm\Lists; +use HubSpot\Client\Crm\Lists\Api\FoldersApi; use HubSpot\Client\Crm\Lists\Api\ListsApi; +use HubSpot\Client\Crm\Lists\Api\MappingApi; use HubSpot\Client\Crm\Lists\Api\MembershipsApi; use HubSpot\Discovery\DiscoveryBase; /** + * @method FoldersApi foldersApi() * @method ListsApi listsApi() + * @method MappingApi mappingApi() * @method MembershipsApi membershipsApi() */ class Discovery extends DiscoveryBase {} diff --git a/tests/spec/Discovery/Crm/Lists/DiscoverySpec.php b/tests/spec/Discovery/Crm/Lists/DiscoverySpec.php index 8be4fae2..12808a7b 100644 --- a/tests/spec/Discovery/Crm/Lists/DiscoverySpec.php +++ b/tests/spec/Discovery/Crm/Lists/DiscoverySpec.php @@ -3,7 +3,9 @@ namespace spec\HubSpot\Discovery\Crm\Lists; use GuzzleHttp\Client; +use HubSpot\Client\Crm\Lists\Api\FoldersApi; use HubSpot\Client\Crm\Lists\Api\ListsApi; +use HubSpot\Client\Crm\Lists\Api\MappingApi; use HubSpot\Client\Crm\Lists\Api\MembershipsApi; use HubSpot\Config; use HubSpot\Discovery\Crm\Lists\Discovery; @@ -23,7 +25,9 @@ public function it_is_initializable() public function it_creates_clients() { + $this->foldersApi()->shouldHaveType(FoldersApi::class); $this->listsApi()->shouldHaveType(ListsApi::class); + $this->mappingApi()->shouldHaveType(MappingApi::class); $this->membershipsApi()->shouldHaveType(MembershipsApi::class); } }