@@ -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,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,6 +8,8 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
| 10 | 10 | |
| 11 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 12 | +use Psr\SimpleCache\CacheInterface; |
|
| 11 | 13 | use craft\base\Element; |
| 12 | 14 | use craft\base\ElementInterface; |
| 13 | 15 | use flipbox\hubspot\connections\ConnectionInterface; |
@@ -17,8 +19,6 @@ discard block |
||
| 17 | 19 | use flipbox\hubspot\traits\TransformElementIdTrait; |
| 18 | 20 | use flipbox\hubspot\traits\TransformElementPayloadTrait; |
| 19 | 21 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 20 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 21 | -use Psr\SimpleCache\CacheInterface; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @author Flipbox Factory <[email protected]> |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param string $id |
| 34 | - * @param ConnectionInterface|string|null $connection |
|
| 35 | - * @param CacheInterface|string|null $cache |
|
| 36 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 34 | + * @param null|ConnectionInterface $connection |
|
| 35 | + * @param null|CacheInterface $cache |
|
| 36 | + * @param null|TransformerCollectionInterface $transformer |
|
| 37 | 37 | * @return PipelineBuilderInterface |
| 38 | 38 | */ |
| 39 | 39 | public abstract function rawReadPipeline( |
@@ -46,9 +46,9 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @param array $payload |
| 48 | 48 | * @param string|null $identifier |
| 49 | - * @param ConnectionInterface|string|null $connection |
|
| 50 | - * @param CacheInterface|string|null $cache |
|
| 51 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 49 | + * @param null|ConnectionInterface $connection |
|
| 50 | + * @param null|CacheInterface $cache |
|
| 51 | + * @param null|TransformerCollectionInterface $transformer |
|
| 52 | 52 | * @return PipelineBuilderInterface |
| 53 | 53 | */ |
| 54 | 54 | public abstract function rawUpsertPipeline( |
@@ -62,9 +62,9 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param ElementInterface $element |
| 64 | 64 | * @param Objects $field |
| 65 | - * @param ConnectionInterface|string|null $connection |
|
| 66 | - * @param CacheInterface|string|null $cache |
|
| 67 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 65 | + * @param null|ConnectionInterface $connection |
|
| 66 | + * @param null|CacheInterface $cache |
|
| 67 | + * @param null|TransformerCollectionInterface $transformer |
|
| 68 | 68 | * @return bool |
| 69 | 69 | */ |
| 70 | 70 | public function syncDown( |
@@ -97,10 +97,10 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * @param ElementInterface $element |
| 99 | 99 | * @param Objects $field |
| 100 | - * @param ConnectionInterface|string|null $connection |
|
| 101 | - * @param CacheInterface|string|null $cache |
|
| 102 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 103 | - * @return false|string |
|
| 100 | + * @param null|ConnectionInterface $connection |
|
| 101 | + * @param null|CacheInterface $cache |
|
| 102 | + * @param null|TransformerCollectionInterface $transformer |
|
| 103 | + * @return boolean |
|
| 104 | 104 | */ |
| 105 | 105 | public function syncUp( |
| 106 | 106 | ElementInterface $element, |
@@ -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. |
@@ -8,16 +8,16 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
| 10 | 10 | |
| 11 | +use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 12 | +use League\Pipeline\PipelineBuilderInterface; |
|
| 13 | +use Psr\Http\Message\ResponseInterface; |
|
| 14 | +use flipbox\hubspot\HubSpot; |
|
| 11 | 15 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
| 12 | 16 | use flipbox\hubspot\connections\ConnectionInterface; |
| 13 | 17 | use flipbox\hubspot\helpers\ConnectionHelper; |
| 14 | 18 | use flipbox\hubspot\helpers\TransformerHelper; |
| 15 | -use flipbox\hubspot\HubSpot; |
|
| 16 | 19 | use flipbox\hubspot\pipeline\Resource; |
| 17 | 20 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
| 18 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
| 19 | -use League\Pipeline\PipelineBuilderInterface; |
|
| 20 | -use Psr\Http\Message\ResponseInterface; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @author Flipbox Factory <[email protected]> |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param ObjectBuilderInterface $builder |
| 35 | - * @param ConnectionInterface|string|null $connection |
|
| 36 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 35 | + * @param null|ConnectionInterface $connection |
|
| 36 | + * @param null|TransformerCollectionInterface $transformer |
|
| 37 | 37 | * @param null $source |
| 38 | 38 | * @return mixed |
| 39 | 39 | * @throws \yii\base\InvalidConfigException |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @param array $payload |
| 57 | - * @param ConnectionInterface|string|null $connection |
|
| 58 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 57 | + * @param null|ConnectionInterface $connection |
|
| 58 | + * @param null|TransformerCollectionInterface $transformer |
|
| 59 | 59 | * @param null $source |
| 60 | 60 | * @return mixed |
| 61 | 61 | * @throws \yii\base\InvalidConfigException |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @param ObjectBuilderInterface $builder |
| 78 | - * @param ConnectionInterface|string|null $connection |
|
| 79 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 78 | + * @param null|ConnectionInterface $connection |
|
| 79 | + * @param null|TransformerCollectionInterface $transformer |
|
| 80 | 80 | * @return PipelineBuilderInterface |
| 81 | 81 | * @throws \yii\base\InvalidConfigException |
| 82 | 82 | */ |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * @param array $payload |
| 97 | - * @param ConnectionInterface|string|null $connection |
|
| 98 | - * @param TransformerCollectionInterface|array|null $transformer |
|
| 97 | + * @param null|ConnectionInterface $connection |
|
| 98 | + * @param null|TransformerCollectionInterface $transformer |
|
| 99 | 99 | * @return PipelineBuilderInterface |
| 100 | 100 | * @throws \yii\base\InvalidConfigException |
| 101 | 101 | */ |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * @param ObjectBuilderInterface $builder |
| 126 | - * @param ConnectionInterface|string|null $connection |
|
| 126 | + * @param null|ConnectionInterface $connection |
|
| 127 | 127 | * @return callable |
| 128 | 128 | * @throws \yii\base\InvalidConfigException |
| 129 | 129 | */ |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * @param array $payload |
| 142 | - * @param ConnectionInterface|string|null $connection |
|
| 142 | + * @param null|ConnectionInterface $connection |
|
| 143 | 143 | * @return callable |
| 144 | 144 | * @throws \yii\base\InvalidConfigException |
| 145 | 145 | */ |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | 163 | * @param ObjectBuilderInterface $builder |
| 164 | - * @param ConnectionInterface|string|null $connection |
|
| 164 | + * @param null|ConnectionInterface $connection |
|
| 165 | 165 | * @return ResponseInterface |
| 166 | 166 | * @throws \yii\base\InvalidConfigException |
| 167 | 167 | */ |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | /** |
| 179 | 179 | * @param array $payload |
| 180 | - * @param ConnectionInterface|string|null $connection |
|
| 180 | + * @param null|ConnectionInterface $connection |
|
| 181 | 181 | * @return ResponseInterface |
| 182 | 182 | * @throws \yii\base\InvalidConfigException |
| 183 | 183 | */ |