-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from HubSpot/feature/updateDiscoveries
add new client to discoveries
- Loading branch information
Showing
24 changed files
with
473 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Cms\SourceCode; | ||
|
||
use HubSpot\Client\Cms\SourceCode\Api\ContentApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\ExtractApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\MetadataApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\SourceCodeExtractApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\ValidationApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method ContentApi contentApi() | ||
* @method ExtractApi extractApi() | ||
* @method MetadataApi metadataApi() | ||
* @method SourceCodeExtractApi sourceCodeExtractApi() | ||
* @method ValidationApi validationApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Crm\Objects\Calls; | ||
|
||
use HubSpot\Client\Crm\Objects\Calls\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\SearchApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method AssociationsApi associationsApi() | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Crm\Objects\Emails; | ||
|
||
use HubSpot\Client\Crm\Objects\Emails\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\SearchApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method AssociationsApi associationsApi() | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Crm\Objects\Meetings; | ||
|
||
use HubSpot\Client\Crm\Objects\Meetings\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\SearchApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method AssociationsApi associationsApi() | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Crm\Objects\Notes; | ||
|
||
use HubSpot\Client\Crm\Objects\Notes\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Notes\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Notes\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Notes\Api\SearchApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method AssociationsApi associationsApi() | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Crm\Objects\Tasks; | ||
|
||
use HubSpot\Client\Crm\Objects\Tasks\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Tasks\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Tasks\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Tasks\Api\SearchApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method AssociationsApi associationsApi() | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Marketing\Events; | ||
|
||
use HubSpot\Client\Marketing\Events\Api\BasicApi; | ||
use HubSpot\Client\Marketing\Events\Api\BatchApi; | ||
use HubSpot\Client\Marketing\Events\Api\SearchApi; | ||
use HubSpot\Client\Marketing\Events\Api\SettingsApi; | ||
use HubSpot\Client\Marketing\Events\Api\SubscriberStateChangesApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method BasicApi basicApi() | ||
* @method BatchApi batchApi() | ||
* @method SearchApi searchApi() | ||
* @method SettingsApi settingsApi() | ||
* @method SubscriberStateChangesApi subscriberStateChangesApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Settings; | ||
|
||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method Users\Discovery users() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Settings\Users; | ||
|
||
use HubSpot\Client\Settings\Users\Api\RolesApi; | ||
use HubSpot\Client\Settings\Users\Api\TeamsApi; | ||
use HubSpot\Client\Settings\Users\Api\UsersApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method RolesApi rolesApi() | ||
* @method TeamsApi teamsApi() | ||
* @method UsersApi usersApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace spec\HubSpot\Discovery\Cms\SourceCode; | ||
|
||
use GuzzleHttp\Client; | ||
use HubSpot\Client\Cms\SourceCode\Api\ContentApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\ExtractApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\MetadataApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\SourceCodeExtractApi; | ||
use HubSpot\Client\Cms\SourceCode\Api\ValidationApi; | ||
use HubSpot\Config; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class DiscoverySpec extends ObjectBehavior | ||
{ | ||
public function let(Client $client, Config $config) | ||
{ | ||
$this->beConstructedWith($client, $config); | ||
} | ||
|
||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(\HubSpot\Discovery\Cms\SourceCode\Discovery::class); | ||
} | ||
|
||
public function it_creates_clients() | ||
{ | ||
$this->contentApi()->shouldHaveType(ContentApi::class); | ||
$this->extractApi()->shouldHaveType(ExtractApi::class); | ||
$this->metadataApi()->shouldHaveType(MetadataApi::class); | ||
$this->sourceCodeExtractApi()->shouldHaveType(SourceCodeExtractApi::class); | ||
$this->validationApi()->shouldHaveType(ValidationApi::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace spec\HubSpot\Discovery\Crm\Objects\Calls; | ||
|
||
use GuzzleHttp\Client; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Calls\Api\SearchApi; | ||
use HubSpot\Config; | ||
use HubSpot\Discovery\Crm\Objects\Calls\Discovery; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class DiscoverySpec extends ObjectBehavior | ||
{ | ||
public function let(Client $client, Config $config) | ||
{ | ||
$this->beConstructedWith($client, $config); | ||
} | ||
|
||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Discovery::class); | ||
} | ||
|
||
public function it_creates_clients() | ||
{ | ||
$this->associationsApi()->shouldHaveType(AssociationsApi::class); | ||
$this->basicApi()->shouldHaveType(BasicApi::class); | ||
$this->batchApi()->shouldHaveType(BatchApi::class); | ||
$this->searchApi()->shouldHaveType(SearchApi::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace spec\HubSpot\Discovery\Crm\Objects\Emails; | ||
|
||
use GuzzleHttp\Client; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Emails\Api\SearchApi; | ||
use HubSpot\Config; | ||
use HubSpot\Discovery\Crm\Objects\Emails\Discovery; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class DiscoverySpec extends ObjectBehavior | ||
{ | ||
public function let(Client $client, Config $config) | ||
{ | ||
$this->beConstructedWith($client, $config); | ||
} | ||
|
||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Discovery::class); | ||
} | ||
|
||
public function it_creates_clients() | ||
{ | ||
$this->associationsApi()->shouldHaveType(AssociationsApi::class); | ||
$this->basicApi()->shouldHaveType(BasicApi::class); | ||
$this->batchApi()->shouldHaveType(BatchApi::class); | ||
$this->searchApi()->shouldHaveType(SearchApi::class); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
tests/spec/Discovery/Crm/Objects/Meetings/DiscoverySpec.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace spec\HubSpot\Discovery\Crm\Objects\Meetings; | ||
|
||
use GuzzleHttp\Client; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\AssociationsApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\BasicApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\BatchApi; | ||
use HubSpot\Client\Crm\Objects\Meetings\Api\SearchApi; | ||
use HubSpot\Config; | ||
use HubSpot\Discovery\Crm\Objects\Meetings\Discovery; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class DiscoverySpec extends ObjectBehavior | ||
{ | ||
public function let(Client $client, Config $config) | ||
{ | ||
$this->beConstructedWith($client, $config); | ||
} | ||
|
||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Discovery::class); | ||
} | ||
|
||
public function it_creates_clients() | ||
{ | ||
$this->associationsApi()->shouldHaveType(AssociationsApi::class); | ||
$this->basicApi()->shouldHaveType(BasicApi::class); | ||
$this->batchApi()->shouldHaveType(BatchApi::class); | ||
$this->searchApi()->shouldHaveType(SearchApi::class); | ||
} | ||
} |
Oops, something went wrong.