Skip to content

Commit

Permalink
Merge pull request #131 from HubSpot/feature/updateDiscoveries
Browse files Browse the repository at this point in the history
Update Discoveries
  • Loading branch information
ksvirkou-hubspot authored Apr 14, 2022
2 parents ca79c61 + ea29faf commit 97ce02d
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Companies/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use HubSpot\Client\Crm\Companies\Api\AssociationsApi;
use HubSpot\Client\Crm\Companies\Api\BasicApi;
use HubSpot\Client\Crm\Companies\Api\BatchApi;
use HubSpot\Client\Crm\Companies\Api\PublicObjectApi;
use HubSpot\Client\Crm\Companies\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Contacts/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Contacts\Api\BasicApi;
use HubSpot\Client\Crm\Contacts\Api\BatchApi;
use HubSpot\Client\Crm\Contacts\Api\GDPRApi;
use HubSpot\Client\Crm\Contacts\Api\PublicObjectApi;
use HubSpot\Client\Crm\Contacts\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

Expand All @@ -14,6 +15,7 @@
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method GDPRApi gdprApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Deals/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use HubSpot\Client\Crm\Deals\Api\AssociationsApi;
use HubSpot\Client\Crm\Deals\Api\BasicApi;
use HubSpot\Client\Crm\Deals\Api\BatchApi;
use HubSpot\Client\Crm\Deals\Api\PublicObjectApi;
use HubSpot\Client\Crm\Deals\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/LineItems/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use HubSpot\Client\Crm\LineItems\Api\AssociationsApi;
use HubSpot\Client\Crm\LineItems\Api\BasicApi;
use HubSpot\Client\Crm\LineItems\Api\BatchApi;
use HubSpot\Client\Crm\LineItems\Api\PublicObjectApi;
use HubSpot\Client\Crm\LineItems\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Calls/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Calls\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends DiscoveryBase
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Objects\Api\BasicApi;
use HubSpot\Client\Crm\Objects\Api\BatchApi;
use HubSpot\Client\Crm\Objects\Api\GDPRApi;
use HubSpot\Client\Crm\Objects\Api\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

Expand All @@ -19,6 +20,7 @@
* @method FeedbackSubmissions\Discovery feedbackSubmissions()
* @method Meetings\Discovery meetings()
* @method Notes\Discovery notes()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
* @method Tasks\Discovery tasks()
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Emails/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Emails\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends DiscoveryBase
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Meetings/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Meetings\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends DiscoveryBase
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Notes/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Notes\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends DiscoveryBase
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Objects/Tasks/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Tasks\Api\SearchApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends DiscoveryBase
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Products/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use HubSpot\Client\Crm\Products\Api\AssociationsApi;
use HubSpot\Client\Crm\Products\Api\BasicApi;
use HubSpot\Client\Crm\Products\Api\BatchApi;
use HubSpot\Client\Crm\Products\Api\PublicObjectApi;
use HubSpot\Client\Crm\Products\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions lib/Discovery/Crm/Tickets/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use HubSpot\Client\Crm\Tickets\Api\AssociationsApi;
use HubSpot\Client\Crm\Tickets\Api\BasicApi;
use HubSpot\Client\Crm\Tickets\Api\BatchApi;
use HubSpot\Client\Crm\Tickets\Api\PublicObjectApi;
use HubSpot\Client\Crm\Tickets\Api\SearchApi;
use HubSpot\Discovery\Crm\ObjectDiscovery;

/**
* @method AssociationsApi associationsApi()
* @method BasicApi basicApi()
* @method BatchApi batchApi()
* @method PublicObjectApi publicObjectApi()
* @method SearchApi searchApi()
*/
class Discovery extends ObjectDiscovery
Expand Down
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Companies/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Companies\Api\AssociationsApi;
use HubSpot\Client\Crm\Companies\Api\BasicApi;
use HubSpot\Client\Crm\Companies\Api\BatchApi;
use HubSpot\Client\Crm\Companies\Api\PublicObjectApi;
use HubSpot\Client\Crm\Companies\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -27,6 +28,7 @@ public function it_creates_clients()
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Contacts/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use HubSpot\Client\Crm\Contacts\Api\BasicApi;
use HubSpot\Client\Crm\Contacts\Api\BatchApi;
use HubSpot\Client\Crm\Contacts\Api\GDPRApi;
use HubSpot\Client\Crm\Contacts\Api\PublicObjectApi;
use HubSpot\Client\Crm\Contacts\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -29,6 +30,7 @@ public function it_creates_clients()
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->gdprApi()->shouldHaveType(GDPRApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Deals/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Deals\Api\AssociationsApi;
use HubSpot\Client\Crm\Deals\Api\BasicApi;
use HubSpot\Client\Crm\Deals\Api\BatchApi;
use HubSpot\Client\Crm\Deals\Api\PublicObjectApi;
use HubSpot\Client\Crm\Deals\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -27,6 +28,7 @@ public function it_creates_clients()
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\LineItems\Api\AssociationsApi;
use HubSpot\Client\Crm\LineItems\Api\BasicApi;
use HubSpot\Client\Crm\LineItems\Api\BatchApi;
use HubSpot\Client\Crm\LineItems\Api\PublicObjectApi;
use HubSpot\Client\Crm\LineItems\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -27,6 +28,7 @@ public function it_creates_clients()
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/Calls/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Calls\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Calls\Discovery;
Expand All @@ -28,6 +29,7 @@ public function it_creates_clients()
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use HubSpot\Client\Crm\Objects\Api\BasicApi;
use HubSpot\Client\Crm\Objects\Api\BatchApi;
use HubSpot\Client\Crm\Objects\Api\GDPRApi;
use HubSpot\Client\Crm\Objects\Api\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Calls\Discovery as CallsDiscovery;
Expand Down Expand Up @@ -41,6 +42,7 @@ public function it_creates_clients()
$this->feedbackSubmissions()->shouldHaveType(FeedbackSubmissionsDiscovery::class);
$this->meetings()->shouldHaveType(MeetingsDiscovery::class);
$this->notes()->shouldHaveType(NotesDiscovery::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
$this->tasks()->shouldHaveType(TasksDiscovery::class);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/Emails/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Emails\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Emails\Discovery;
Expand All @@ -28,6 +29,7 @@ public function it_creates_clients()
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/Meetings/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Meetings\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Meetings\Discovery;
Expand All @@ -28,6 +29,7 @@ public function it_creates_clients()
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/Notes/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Notes\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Notes\Discovery;
Expand All @@ -28,6 +29,7 @@ public function it_creates_clients()
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Objects/Tasks/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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\PublicObjectApi;
use HubSpot\Client\Crm\Objects\Tasks\Api\SearchApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Objects\Tasks\Discovery;
Expand All @@ -28,6 +29,7 @@ public function it_creates_clients()
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Products/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Products\Api\AssociationsApi;
use HubSpot\Client\Crm\Products\Api\BasicApi;
use HubSpot\Client\Crm\Products\Api\BatchApi;
use HubSpot\Client\Crm\Products\Api\PublicObjectApi;
use HubSpot\Client\Crm\Products\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -27,6 +28,7 @@ public function it_creates_clients()
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}
2 changes: 2 additions & 0 deletions tests/spec/Discovery/Crm/Tickets/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use HubSpot\Client\Crm\Tickets\Api\AssociationsApi;
use HubSpot\Client\Crm\Tickets\Api\BasicApi;
use HubSpot\Client\Crm\Tickets\Api\BatchApi;
use HubSpot\Client\Crm\Tickets\Api\PublicObjectApi;
use HubSpot\Client\Crm\Tickets\Api\SearchApi;
use HubSpot\Config;
use PhpSpec\ObjectBehavior;
Expand All @@ -27,6 +28,7 @@ public function it_creates_clients()
$this->basicApi()->shouldHaveType(BasicApi::class);
$this->batchApi()->shouldHaveType(BatchApi::class);
$this->associationsApi()->shouldHaveType(AssociationsApi::class);
$this->publicObjectApi()->shouldHaveType(PublicObjectApi::class);
$this->searchApi()->shouldHaveType(SearchApi::class);
}
}

0 comments on commit 97ce02d

Please sign in to comment.