@@ -8,10 +8,10 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\helpers; |
| 10 | 10 | |
| 11 | -use flipbox\hubspot\HubSpot; |
|
| 12 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
| 13 | 11 | use Flipbox\Skeleton\Helpers\ObjectHelper; |
| 14 | 12 | use Flipbox\Transform\Transformers\TransformerInterface; |
| 13 | +use flipbox\hubspot\HubSpot; |
|
| 14 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * @author Flipbox Factory <[email protected]> |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | use craft\elements\db\ElementQueryInterface; |
| 15 | 15 | use flipbox\ember\helpers\ModelHelper; |
| 16 | 16 | use flipbox\ember\validators\MinMaxValidator; |
| 17 | +use flipbox\hubspot\HubSpot; |
|
| 17 | 18 | use flipbox\hubspot\criteria\CompanyCriteria; |
| 18 | 19 | use flipbox\hubspot\criteria\ContactCriteria; |
| 19 | 20 | use flipbox\hubspot\criteria\ContactListCriteria; |
| 20 | 21 | use flipbox\hubspot\criteria\ObjectCriteria; |
| 21 | 22 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
| 22 | 23 | use flipbox\hubspot\db\ObjectAssociationQuery; |
| 23 | -use flipbox\hubspot\HubSpot; |
|
| 24 | 24 | use flipbox\hubspot\records\ObjectAssociation; |
| 25 | 25 | use flipbox\hubspot\services\resources\Companies; |
| 26 | 26 | use flipbox\hubspot\services\resources\ContactLists; |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | use Craft; |
| 6 | 6 | use craft\base\ElementInterface; |
| 7 | 7 | use craft\queue\BaseJob; |
| 8 | -use flipbox\hubspot\fields\Objects; |
|
| 9 | 8 | use flipbox\hubspot\HubSpot; |
| 9 | +use flipbox\hubspot\fields\Objects; |
|
| 10 | 10 | use yii\base\Component; |
| 11 | 11 | use yii\base\InvalidConfigException; |
| 12 | 12 | |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | use craft\base\ElementInterface; |
| 13 | 13 | use flipbox\ember\actions\traits\Manage; |
| 14 | 14 | use flipbox\ember\helpers\SiteHelper; |
| 15 | -use flipbox\hubspot\fields\Objects; |
|
| 16 | 15 | use flipbox\hubspot\HubSpot; |
| 16 | +use flipbox\hubspot\fields\Objects; |
|
| 17 | 17 | use flipbox\hubspot\records\ObjectAssociation; |
| 18 | 18 | use yii\base\Action; |
| 19 | 19 | use yii\web\HttpException; |
@@ -8,15 +8,15 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\pipeline; |
| 10 | 10 | |
| 11 | -use flipbox\hubspot\HubSpot; |
|
| 12 | -use flipbox\hubspot\pipeline\pipelines\HttpPipeline; |
|
| 13 | -use flipbox\hubspot\pipeline\stages\TransformerCollectionStage; |
|
| 14 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
| 15 | 11 | use Flipbox\Pipeline\Builders\BuilderTrait; |
| 16 | 12 | use Flipbox\Relay\Runner\Runner; |
| 17 | 13 | use Flipbox\Skeleton\Object\AbstractObject; |
| 18 | 14 | use League\Pipeline\PipelineBuilderInterface; |
| 19 | 15 | use Psr\Log\LoggerInterface; |
| 16 | +use flipbox\hubspot\HubSpot; |
|
| 17 | +use flipbox\hubspot\pipeline\pipelines\HttpPipeline; |
|
| 18 | +use flipbox\hubspot\pipeline\stages\TransformerCollectionStage; |
|
| 19 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * A Relay pipeline builder intended to make building the Relay and Pipeline easier. |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\transformers\elements; |
| 10 | 10 | |
| 11 | +use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
| 11 | 12 | use craft\base\Element; |
| 12 | 13 | use craft\base\ElementInterface; |
| 13 | 14 | use craft\helpers\Json; |
| 14 | 15 | use flipbox\ember\helpers\SiteHelper; |
| 15 | -use flipbox\hubspot\fields\Objects; |
|
| 16 | 16 | use flipbox\hubspot\HubSpot; |
| 17 | -use Flipbox\Transform\Transformers\AbstractSimpleTransformer; |
|
| 17 | +use flipbox\hubspot\fields\Objects; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Flipbox Factory <[email protected]> |
@@ -8,23 +8,23 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Create; |
|
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Delete; |
|
| 13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Read; |
|
| 14 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Update; |
|
| 15 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 16 | +use Psr\SimpleCache\CacheInterface; |
|
| 17 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 18 | use flipbox\hubspot\builders\CompanyBuilder; |
| 12 | 19 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
| 13 | 20 | use flipbox\hubspot\connections\ConnectionInterface; |
| 14 | 21 | use flipbox\hubspot\criteria\CompanyCriteria; |
| 15 | 22 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
| 16 | 23 | use flipbox\hubspot\helpers\TransformerHelper; |
| 17 | -use flipbox\hubspot\HubSpot; |
|
| 18 | 24 | use flipbox\hubspot\pipeline\Resource; |
| 19 | 25 | use flipbox\hubspot\traits\CacheResolverTrait; |
| 20 | 26 | use flipbox\hubspot\traits\ConnectionResolverTrait; |
| 21 | 27 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 22 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Create; |
|
| 23 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Delete; |
|
| 24 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Read; |
|
| 25 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Update; |
|
| 26 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 27 | -use Psr\SimpleCache\CacheInterface; |
|
| 28 | 28 | use yii\base\Component; |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -91,6 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @inheritdoc |
| 94 | + * @return \Flipbox\Relay\Runner\Runner |
|
| 94 | 95 | */ |
| 95 | 96 | public function rawHttpReadRelay( |
| 96 | 97 | string $id, |
@@ -285,8 +286,8 @@ discard block |
||
| 285 | 286 | /** |
| 286 | 287 | * @param string $companyId |
| 287 | 288 | * @param string $contactId |
| 288 | - * @param ConnectionInterface|null $connection |
|
| 289 | - * @param CacheInterface|null $cache |
|
| 289 | + * @param ConnectionInterface $connection |
|
| 290 | + * @param CacheInterface $cache |
|
| 290 | 291 | * @return ResponseInterface |
| 291 | 292 | * @throws \yii\base\InvalidConfigException |
| 292 | 293 | */ |
@@ -483,8 +484,8 @@ discard block |
||
| 483 | 484 | /** |
| 484 | 485 | * @param string $companyId |
| 485 | 486 | * @param string $contactId |
| 486 | - * @param ConnectionInterface|null $connection |
|
| 487 | - * @param CacheInterface|null $cache |
|
| 487 | + * @param ConnectionInterface $connection |
|
| 488 | + * @param CacheInterface $cache |
|
| 488 | 489 | * @return ResponseInterface |
| 489 | 490 | * @throws \yii\base\InvalidConfigException |
| 490 | 491 | */ |
@@ -8,24 +8,24 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
| 13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
| 14 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 15 | +use Psr\Http\Message\ResponseInterface; |
|
| 16 | +use Psr\SimpleCache\CacheInterface; |
|
| 17 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 18 | use flipbox\hubspot\builders\CompanyContactsBuilder; |
| 12 | 19 | use flipbox\hubspot\builders\CompanyContactsBuilderInterface; |
| 13 | 20 | use flipbox\hubspot\connections\ConnectionInterface; |
| 14 | 21 | use flipbox\hubspot\criteria\CompanyContactsCriteria; |
| 15 | 22 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
| 16 | 23 | use flipbox\hubspot\helpers\TransformerHelper; |
| 17 | -use flipbox\hubspot\HubSpot; |
|
| 18 | 24 | use flipbox\hubspot\pipeline\Resource; |
| 19 | 25 | use flipbox\hubspot\services\resources\traits\ReadObjectTrait; |
| 20 | 26 | use flipbox\hubspot\traits\CacheResolverTrait; |
| 21 | 27 | use flipbox\hubspot\traits\ConnectionResolverTrait; |
| 22 | 28 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 23 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
| 24 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
| 25 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
| 26 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 27 | -use Psr\Http\Message\ResponseInterface; |
|
| 28 | -use Psr\SimpleCache\CacheInterface; |
|
| 29 | 29 | use yii\base\Component; |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -8,13 +8,18 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add; |
|
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All; |
|
| 13 | +use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove; |
|
| 14 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 15 | +use Psr\SimpleCache\CacheInterface; |
|
| 16 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 17 | use flipbox\hubspot\builders\ContactListContactsBuilder; |
| 12 | 18 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
| 13 | 19 | use flipbox\hubspot\connections\ConnectionInterface; |
| 14 | 20 | use flipbox\hubspot\criteria\ContactListContactsCriteria; |
| 15 | 21 | use flipbox\hubspot\criteria\ObjectCriteriaInterface; |
| 16 | 22 | use flipbox\hubspot\helpers\TransformerHelper; |
| 17 | -use flipbox\hubspot\HubSpot; |
|
| 18 | 23 | use flipbox\hubspot\pipeline\Resource; |
| 19 | 24 | use flipbox\hubspot\services\resources\traits\AddObjectTrait; |
| 20 | 25 | use flipbox\hubspot\services\resources\traits\ReadObjectTrait; |
@@ -22,11 +27,6 @@ discard block |
||
| 22 | 27 | use flipbox\hubspot\traits\CacheResolverTrait; |
| 23 | 28 | use flipbox\hubspot\traits\ConnectionResolverTrait; |
| 24 | 29 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 25 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add; |
|
| 26 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All; |
|
| 27 | -use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove; |
|
| 28 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 29 | -use Psr\SimpleCache\CacheInterface; |
|
| 30 | 30 | use yii\base\Component; |
| 31 | 31 | |
| 32 | 32 | /** |