@@ -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,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]> |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace flipbox\hubspot\criteria\traits; |
| 10 | 10 | |
| 11 | 11 | use flipbox\hubspot\helpers\TransformerHelper; |
| 12 | -use flipbox\hubspot\traits\TransformerResolverTrait; |
|
| 13 | 12 | use flipbox\hubspot\transformers\collections\DynamicTransformerCollection; |
| 14 | 13 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 15 | 14 | |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\helpers; |
| 10 | 10 | |
| 11 | +use Flipbox\Skeleton\Helpers\ObjectHelper; |
|
| 12 | +use Flipbox\Transform\Transformers\TransformerInterface; |
|
| 11 | 13 | use flipbox\hubspot\HubSpot; |
| 12 | 14 | use flipbox\hubspot\transformers\collections\TransformerCollection; |
| 13 | 15 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 14 | -use Flipbox\Skeleton\Helpers\ObjectHelper; |
|
| 15 | -use Flipbox\Transform\Transformers\TransformerInterface; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @author Flipbox Factory <[email protected]> |
@@ -8,14 +8,14 @@ |
||
| 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\Skeleton\Object\AbstractObject; |
| 17 | 13 | use League\Pipeline\PipelineBuilderInterface; |
| 18 | 14 | use Psr\Log\LoggerInterface; |
| 15 | +use flipbox\hubspot\HubSpot; |
|
| 16 | +use flipbox\hubspot\pipeline\pipelines\HttpPipeline; |
|
| 17 | +use flipbox\hubspot\pipeline\stages\TransformerCollectionStage; |
|
| 18 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * A Relay pipeline builder intended to make building the Relay and Pipeline easier. |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * @param ConnectionInterface|string|null $connection |
|
| 47 | - * @param CacheInterface|string|null $cache |
|
| 46 | + * @param null|ConnectionInterface $connection |
|
| 47 | + * @param null|CacheInterface $cache |
|
| 48 | 48 | * @return callable |
| 49 | 49 | * @throws \yii\base\InvalidConfigException |
| 50 | 50 | */ |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @param ConnectionInterface|string|null $connection |
|
| 87 | - * @param CacheInterface|string|null $cache |
|
| 88 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 86 | + * @param null|ConnectionInterface $connection |
|
| 87 | + * @param null|CacheInterface $cache |
|
| 88 | + * @param null|TransformerCollectionInterface $transformer |
|
| 89 | 89 | * @param null $source |
| 90 | 90 | * @return mixed |
| 91 | 91 | * @throws \yii\base\InvalidConfigException |
@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * @param ConnectionInterface|string|null $connection |
|
| 123 | - * @param CacheInterface|string|null $cache |
|
| 124 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 122 | + * @param null|ConnectionInterface $connection |
|
| 123 | + * @param null|CacheInterface $cache |
|
| 124 | + * @param null|TransformerCollectionInterface $transformer |
|
| 125 | 125 | * @return PipelineBuilderInterface |
| 126 | 126 | * @throws \yii\base\InvalidConfigException |
| 127 | 127 | */ |
@@ -162,8 +162,8 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
| 165 | - * @param ConnectionInterface|string|null $connection |
|
| 166 | - * @param CacheInterface|string|null $cache |
|
| 165 | + * @param null|ConnectionInterface $connection |
|
| 166 | + * @param null|CacheInterface $cache |
|
| 167 | 167 | * @return ResponseInterface |
| 168 | 168 | * @throws \yii\base\InvalidConfigException |
| 169 | 169 | */ |
@@ -8,19 +8,19 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Limit\Daily\Read; |
|
| 13 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 14 | +use Psr\Http\Message\ResponseInterface; |
|
| 15 | +use Psr\SimpleCache\CacheInterface; |
|
| 16 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 17 | use flipbox\hubspot\connections\ConnectionInterface; |
| 12 | 18 | use flipbox\hubspot\criteria\IntegrationAccessorInterface; |
| 13 | 19 | use flipbox\hubspot\helpers\CacheHelper; |
| 14 | 20 | use flipbox\hubspot\helpers\ConnectionHelper; |
| 15 | 21 | use flipbox\hubspot\helpers\TransformerHelper; |
| 16 | -use flipbox\hubspot\HubSpot; |
|
| 17 | 22 | use flipbox\hubspot\pipeline\Resource; |
| 18 | 23 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 19 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 20 | -use Flipbox\Relay\HubSpot\Builder\Resources\Limit\Daily\Read; |
|
| 21 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 22 | -use Psr\Http\Message\ResponseInterface; |
|
| 23 | -use Psr\SimpleCache\CacheInterface; |
|
| 24 | 24 | use yii\base\Component; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param string $id |
| 35 | - * @param ConnectionInterface|string|null $connection |
|
| 36 | - * @param CacheInterface|string|null $cache |
|
| 35 | + * @param null|ConnectionInterface $connection |
|
| 36 | + * @param null|CacheInterface $cache |
|
| 37 | 37 | * @return callable |
| 38 | 38 | */ |
| 39 | 39 | public abstract function rawHttpReadRelay( |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param array $payload |
| 47 | 47 | * @param string|null $identifier |
| 48 | - * @param ConnectionInterface|string|null $connection |
|
| 49 | - * @param CacheInterface|string|null $cache |
|
| 48 | + * @param null|ConnectionInterface $connection |
|
| 49 | + * @param null|CacheInterface $cache |
|
| 50 | 50 | * @return callable |
| 51 | 51 | * @throws \yii\base\InvalidConfigException |
| 52 | 52 | */ |
@@ -8,22 +8,22 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
| 10 | 10 | |
| 11 | +use Flipbox\Pipeline\Pipelines\Pipeline; |
|
| 12 | +use Flipbox\Transform\Factory; |
|
| 13 | +use Psr\Http\Message\ResponseInterface; |
|
| 14 | +use Psr\SimpleCache\CacheInterface; |
|
| 11 | 15 | use craft\base\Element; |
| 12 | 16 | use craft\base\ElementInterface; |
| 13 | 17 | use craft\helpers\Json; |
| 18 | +use flipbox\hubspot\HubSpot; |
|
| 14 | 19 | use flipbox\hubspot\connections\ConnectionInterface; |
| 15 | 20 | use flipbox\hubspot\fields\Objects; |
| 16 | 21 | use flipbox\hubspot\helpers\ConnectionHelper; |
| 17 | -use flipbox\hubspot\HubSpot; |
|
| 18 | 22 | use flipbox\hubspot\pipeline\stages\ElementAssociationStage; |
| 19 | 23 | use flipbox\hubspot\pipeline\stages\ElementSaveStage; |
| 20 | 24 | use flipbox\hubspot\traits\TransformElementIdTrait; |
| 21 | 25 | use flipbox\hubspot\traits\TransformElementPayloadTrait; |
| 22 | 26 | use flipbox\hubspot\transformers\error\Interpret; |
| 23 | -use Flipbox\Pipeline\Pipelines\Pipeline; |
|
| 24 | -use Flipbox\Transform\Factory; |
|
| 25 | -use Psr\Http\Message\ResponseInterface; |
|
| 26 | -use Psr\SimpleCache\CacheInterface; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @author Flipbox Factory <[email protected]> |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * @param string $companyId |
| 133 | 133 | * @param string $contactId |
| 134 | - * @param ConnectionInterface|string|null $connection |
|
| 135 | - * @param CacheInterface|string|null $cache |
|
| 136 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 134 | + * @param null|ConnectionInterface $connection |
|
| 135 | + * @param null|CacheInterface $cache |
|
| 136 | + * @param null|TransformerCollectionInterface $transformer |
|
| 137 | 137 | * @param null $source |
| 138 | 138 | * @return mixed |
| 139 | 139 | * @throws \yii\base\InvalidConfigException |
@@ -175,9 +175,9 @@ discard block |
||
| 175 | 175 | /** |
| 176 | 176 | * @param string $companyId |
| 177 | 177 | * @param string $contactId |
| 178 | - * @param ConnectionInterface|string|null $connection |
|
| 179 | - * @param CacheInterface|string|null $cache |
|
| 180 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 178 | + * @param null|ConnectionInterface $connection |
|
| 179 | + * @param null|CacheInterface $cache |
|
| 180 | + * @param null|TransformerCollectionInterface $transformer |
|
| 181 | 181 | * @return PipelineBuilderInterface |
| 182 | 182 | * @throws \yii\base\InvalidConfigException |
| 183 | 183 | */ |
@@ -226,8 +226,8 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * @param string $companyId |
| 228 | 228 | * @param string $contactId |
| 229 | - * @param ConnectionInterface|string|null $connection |
|
| 230 | - * @param CacheInterface|string|null $cache |
|
| 229 | + * @param null|ConnectionInterface $connection |
|
| 230 | + * @param null|CacheInterface $cache |
|
| 231 | 231 | * @return callable |
| 232 | 232 | * @throws \yii\base\InvalidConfigException |
| 233 | 233 | */ |
@@ -270,8 +270,8 @@ discard block |
||
| 270 | 270 | /** |
| 271 | 271 | * @param string $companyId |
| 272 | 272 | * @param string $contactId |
| 273 | - * @param ConnectionInterface|string|null $connection |
|
| 274 | - * @param CacheInterface|string|null $cache |
|
| 273 | + * @param null|ConnectionInterface $connection |
|
| 274 | + * @param null|CacheInterface $cache |
|
| 275 | 275 | * @return ResponseInterface |
| 276 | 276 | * @throws \yii\base\InvalidConfigException |
| 277 | 277 | */ |
@@ -317,9 +317,9 @@ discard block |
||
| 317 | 317 | /** |
| 318 | 318 | * @param string $companyId |
| 319 | 319 | * @param string $contactId |
| 320 | - * @param ConnectionInterface|string|null $connection |
|
| 321 | - * @param CacheInterface|string|null $cache |
|
| 322 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 320 | + * @param null|ConnectionInterface $connection |
|
| 321 | + * @param null|CacheInterface $cache |
|
| 322 | + * @param null|TransformerCollectionInterface $transformer |
|
| 323 | 323 | * @param null $source |
| 324 | 324 | * @return mixed |
| 325 | 325 | * @throws \yii\base\InvalidConfigException |
@@ -361,9 +361,9 @@ discard block |
||
| 361 | 361 | /** |
| 362 | 362 | * @param string $companyId |
| 363 | 363 | * @param string $contactId |
| 364 | - * @param ConnectionInterface|string|null $connection |
|
| 365 | - * @param CacheInterface|string|null $cache |
|
| 366 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 364 | + * @param null|ConnectionInterface $connection |
|
| 365 | + * @param null|CacheInterface $cache |
|
| 366 | + * @param null|TransformerCollectionInterface $transformer |
|
| 367 | 367 | * @return PipelineBuilderInterface |
| 368 | 368 | * @throws \yii\base\InvalidConfigException |
| 369 | 369 | */ |
@@ -412,8 +412,8 @@ discard block |
||
| 412 | 412 | /** |
| 413 | 413 | * @param string $companyId |
| 414 | 414 | * @param string $contactId |
| 415 | - * @param ConnectionInterface|string|null $connection |
|
| 416 | - * @param CacheInterface|string|null $cache |
|
| 415 | + * @param null|ConnectionInterface $connection |
|
| 416 | + * @param null|CacheInterface $cache |
|
| 417 | 417 | * @return callable |
| 418 | 418 | * @throws \yii\base\InvalidConfigException |
| 419 | 419 | */ |
@@ -456,8 +456,8 @@ discard block |
||
| 456 | 456 | /** |
| 457 | 457 | * @param string $companyId |
| 458 | 458 | * @param string $contactId |
| 459 | - * @param ConnectionInterface|string|null $connection |
|
| 460 | - * @param CacheInterface|string|null $cache |
|
| 459 | + * @param null|ConnectionInterface $connection |
|
| 460 | + * @param null|CacheInterface $cache |
|
| 461 | 461 | * @return ResponseInterface |
| 462 | 462 | * @throws \yii\base\InvalidConfigException |
| 463 | 463 | */ |
@@ -8,6 +8,14 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
| 13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
| 14 | +use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
| 15 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 16 | +use Psr\Http\Message\ResponseInterface; |
|
| 17 | +use Psr\SimpleCache\CacheInterface; |
|
| 18 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 19 | use flipbox\hubspot\connections\ConnectionInterface; |
| 12 | 20 | use flipbox\hubspot\criteria\CompanyContactsAccessor; |
| 13 | 21 | use flipbox\hubspot\criteria\CompanyContactsMutator; |
@@ -16,19 +24,11 @@ discard block |
||
| 16 | 24 | use flipbox\hubspot\helpers\CacheHelper; |
| 17 | 25 | use flipbox\hubspot\helpers\ConnectionHelper; |
| 18 | 26 | use flipbox\hubspot\helpers\TransformerHelper; |
| 19 | -use flipbox\hubspot\HubSpot; |
|
| 20 | 27 | use flipbox\hubspot\pipeline\Resource; |
| 21 | 28 | use flipbox\hubspot\services\resources\traits\ReadObjectTrait; |
| 29 | +use flipbox\hubspot\transformers\DynamicModelSuccess; |
|
| 22 | 30 | use flipbox\hubspot\transformers\collections\DynamicTransformerCollection; |
| 23 | 31 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 24 | -use flipbox\hubspot\transformers\DynamicModelSuccess; |
|
| 25 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 26 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add; |
|
| 27 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All; |
|
| 28 | -use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove; |
|
| 29 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 30 | -use Psr\Http\Message\ResponseInterface; |
|
| 31 | -use Psr\SimpleCache\CacheInterface; |
|
| 32 | 32 | use yii\base\Component; |
| 33 | 33 | |
| 34 | 34 | /** |