@@ -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]> |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | |
224 | 224 | /** |
225 | 225 | * @param TimelineEventCriteriaInterface $criteria |
226 | - * @return callable |
|
226 | + * @return \Flipbox\Relay\Runner\Runner |
|
227 | 227 | * @throws \yii\base\InvalidConfigException |
228 | 228 | */ |
229 | 229 | public function httpReadRelay( |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | * @param string $typeId |
243 | 243 | * @param IntegrationConnectionInterface|null $connection |
244 | 244 | * @param CacheInterface|null $cache |
245 | - * @return callable |
|
245 | + * @return \Flipbox\Relay\Runner\Runner |
|
246 | 246 | * @throws \yii\base\InvalidConfigException |
247 | 247 | */ |
248 | 248 | public function rawHttpReadRelay( |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * @param TimelineEventBuilderInterface $builder |
435 | 435 | * @param IntegrationConnectionInterface|null $connection |
436 | 436 | * @param CacheInterface|null $cache |
437 | - * @return callable |
|
437 | + * @return \Flipbox\Relay\Runner\Runner |
|
438 | 438 | * @throws \yii\base\InvalidConfigException |
439 | 439 | */ |
440 | 440 | public function httpUpsertRelay( |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | * @param array $payload |
458 | 458 | * @param IntegrationConnectionInterface|null $connection |
459 | 459 | * @param CacheInterface|null $cache |
460 | - * @return callable |
|
460 | + * @return \Flipbox\Relay\Runner\Runner |
|
461 | 461 | * @throws \yii\base\InvalidConfigException |
462 | 462 | */ |
463 | 463 | public function rawHttpUpsertRelay( |
@@ -9,22 +9,22 @@ |
||
9 | 9 | namespace flipbox\hubspot\services\resources; |
10 | 10 | |
11 | 11 | use Craft; |
12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
14 | +use League\Pipeline\PipelineBuilderInterface; |
|
15 | +use Psr\Http\Message\ResponseInterface; |
|
16 | +use Psr\SimpleCache\CacheInterface; |
|
12 | 17 | use craft\helpers\ArrayHelper; |
18 | +use flipbox\hubspot\HubSpot; |
|
13 | 19 | use flipbox\hubspot\builders\TimelineEventBuilderInterface; |
14 | 20 | use flipbox\hubspot\connections\IntegrationConnectionInterface; |
15 | 21 | use flipbox\hubspot\criteria\TimelineEventCriteriaInterface; |
16 | 22 | use flipbox\hubspot\helpers\CacheHelper; |
17 | 23 | use flipbox\hubspot\helpers\ConnectionHelper; |
18 | 24 | use flipbox\hubspot\helpers\TransformerHelper; |
19 | -use flipbox\hubspot\HubSpot; |
|
20 | 25 | use flipbox\hubspot\pipeline\Resource; |
21 | 26 | use flipbox\hubspot\queue\jobs\UpsertTimelineEvent; |
22 | 27 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
23 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
24 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
25 | -use League\Pipeline\PipelineBuilderInterface; |
|
26 | -use Psr\Http\Message\ResponseInterface; |
|
27 | -use Psr\SimpleCache\CacheInterface; |
|
28 | 28 | use yii\base\Component; |
29 | 29 | |
30 | 30 | /** |
@@ -172,8 +172,8 @@ |
||
172 | 172 | /** |
173 | 173 | * @param string $id |
174 | 174 | * @param array $payload |
175 | - * @param ConnectionInterface|null $connection |
|
176 | - * @param CacheInterface|null $cache |
|
175 | + * @param ConnectionInterface $connection |
|
176 | + * @param CacheInterface $cache |
|
177 | 177 | * @return ResponseInterface |
178 | 178 | * @throws \yii\base\InvalidConfigException |
179 | 179 | */ |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\services\resources\traits; |
10 | 10 | |
11 | -use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
12 | -use flipbox\hubspot\connections\ConnectionInterface; |
|
13 | -use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
14 | 11 | use League\Pipeline\PipelineBuilderInterface; |
15 | 12 | use Psr\Http\Message\ResponseInterface; |
16 | 13 | use Psr\SimpleCache\CacheInterface; |
14 | +use flipbox\hubspot\builders\ObjectBuilderInterface; |
|
15 | +use flipbox\hubspot\connections\ConnectionInterface; |
|
16 | +use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @author Flipbox Factory <[email protected]> |
@@ -160,8 +160,8 @@ |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * @param string $id |
163 | - * @param ConnectionInterface|null $connection |
|
164 | - * @param CacheInterface|null $cache |
|
163 | + * @param ConnectionInterface $connection |
|
164 | + * @param CacheInterface $cache |
|
165 | 165 | * @return ResponseInterface |
166 | 166 | * @throws \yii\base\InvalidConfigException |
167 | 167 | */ |
@@ -8,18 +8,18 @@ |
||
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 Psr\SimpleCache\CacheInterface; |
|
15 | +use flipbox\hubspot\HubSpot; |
|
11 | 16 | use flipbox\hubspot\builders\ObjectBuilderInterface; |
12 | 17 | use flipbox\hubspot\connections\ConnectionInterface; |
13 | 18 | use flipbox\hubspot\helpers\CacheHelper; |
14 | 19 | use flipbox\hubspot\helpers\ConnectionHelper; |
15 | 20 | use flipbox\hubspot\helpers\TransformerHelper; |
16 | -use flipbox\hubspot\HubSpot; |
|
17 | 21 | use flipbox\hubspot\pipeline\Resource; |
18 | 22 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
19 | -use Flipbox\Relay\Builder\RelayBuilderInterface; |
|
20 | -use League\Pipeline\PipelineBuilderInterface; |
|
21 | -use Psr\Http\Message\ResponseInterface; |
|
22 | -use Psr\SimpleCache\CacheInterface; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @author Flipbox Factory <[email protected]> |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * @param ConnectionInterface|null $connection |
97 | 97 | * @param CacheInterface|null $cache |
98 | 98 | * @param TransformerCollectionInterface|null $transformer |
99 | - * @return false|string |
|
99 | + * @return boolean |
|
100 | 100 | */ |
101 | 101 | public function syncUp( |
102 | 102 | ElementInterface $element, |
@@ -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]> |
@@ -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 |