@@ -11,8 +11,8 @@ |
||
11 | 11 | use craft\base\Element; |
12 | 12 | use craft\base\ElementInterface; |
13 | 13 | use flipbox\ember\helpers\SiteHelper; |
14 | -use flipbox\hubspot\fields\Objects; |
|
15 | 14 | use flipbox\hubspot\HubSpot; |
15 | +use flipbox\hubspot\fields\Objects; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Flipbox Factory <[email protected]> |
@@ -8,11 +8,11 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\hubspot\helpers; |
10 | 10 | |
11 | +use Flipbox\Skeleton\Helpers\ObjectHelper; |
|
12 | +use flipbox\flux\helpers\TransformerHelper as BaseTransformerHelper; |
|
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\flux\helpers\TransformerHelper as BaseTransformerHelper; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Flipbox Factory <[email protected]> |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | * @param string $id |
111 | 111 | * @param string $typeId |
112 | 112 | * @param IntegrationConnectionInterface|null $connection |
113 | - * @param CacheInterface|string|null $cache |
|
114 | - * @param TransformerCollectionInterface|array|null $transformer |
|
113 | + * @param null|CacheInterface $cache |
|
114 | + * @param null|TransformerCollectionInterface $transformer |
|
115 | 115 | * @param array $extra |
116 | 116 | * @return mixed |
117 | 117 | * @throws \yii\base\InvalidConfigException |
@@ -154,8 +154,8 @@ discard block |
||
154 | 154 | * @param string $id |
155 | 155 | * @param string $typeId |
156 | 156 | * @param IntegrationConnectionInterface|null $connection |
157 | - * @param CacheInterface|string|null $cache |
|
158 | - * @param TransformerCollectionInterface|array|null $transformer |
|
157 | + * @param null|CacheInterface $cache |
|
158 | + * @param null|TransformerCollectionInterface $transformer |
|
159 | 159 | * @return PipelineBuilderInterface |
160 | 160 | * @throws \yii\base\InvalidConfigException |
161 | 161 | */ |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @param string $id |
206 | 206 | * @param string $typeId |
207 | 207 | * @param IntegrationConnectionInterface|null $connection |
208 | - * @param CacheInterface|string|null $cache |
|
208 | + * @param null|CacheInterface $cache |
|
209 | 209 | * @return ResponseInterface |
210 | 210 | * @throws \yii\base\InvalidConfigException |
211 | 211 | */ |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | |
226 | 226 | /** |
227 | 227 | * @param TimelineEventAccessorInterface $criteria |
228 | - * @return callable |
|
228 | + * @return \Flipbox\Relay\Runner\Runner |
|
229 | 229 | * @throws \yii\base\InvalidConfigException |
230 | 230 | */ |
231 | 231 | public function httpReadRelay( |
@@ -243,8 +243,8 @@ discard block |
||
243 | 243 | * @param string $id |
244 | 244 | * @param string $typeId |
245 | 245 | * @param IntegrationConnectionInterface|null $connection |
246 | - * @param CacheInterface|string|null $cache |
|
247 | - * @return callable |
|
246 | + * @param null|CacheInterface $cache |
|
247 | + * @return \Flipbox\Relay\Runner\Runner |
|
248 | 248 | * @throws \yii\base\InvalidConfigException |
249 | 249 | */ |
250 | 250 | public function rawHttpReadRelay( |
@@ -296,8 +296,8 @@ discard block |
||
296 | 296 | * @param string $id |
297 | 297 | * @param array $payload |
298 | 298 | * @param IntegrationConnectionInterface|null $connection |
299 | - * @param CacheInterface|string|null $cache |
|
300 | - * @param TransformerCollectionInterface|array|null $transformer |
|
299 | + * @param null|CacheInterface $cache |
|
300 | + * @param null|TransformerCollectionInterface $transformer |
|
301 | 301 | * @param array $extra |
302 | 302 | * @return mixed |
303 | 303 | * @throws \yii\base\InvalidConfigException |
@@ -344,8 +344,8 @@ discard block |
||
344 | 344 | * @param string $id |
345 | 345 | * @param array $payload |
346 | 346 | * @param IntegrationConnectionInterface|null $connection |
347 | - * @param CacheInterface|string|null $cache |
|
348 | - * @param TransformerCollectionInterface|array|null $transformer |
|
347 | + * @param null|CacheInterface $cache |
|
348 | + * @param null|TransformerCollectionInterface $transformer |
|
349 | 349 | * @return PipelineBuilderInterface |
350 | 350 | * @throws \yii\base\InvalidConfigException |
351 | 351 | */ |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | * @param string $id |
400 | 400 | * @param array $payload |
401 | 401 | * @param IntegrationConnectionInterface|null $connection |
402 | - * @param CacheInterface|string|null $cache |
|
402 | + * @param null|CacheInterface $cache |
|
403 | 403 | * @return ResponseInterface |
404 | 404 | * @throws \yii\base\InvalidConfigException |
405 | 405 | */ |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | |
422 | 422 | /** |
423 | 423 | * @param TimelineEventMutatorInterface $criteria |
424 | - * @return callable |
|
424 | + * @return \Flipbox\Relay\Runner\Runner |
|
425 | 425 | * @throws \yii\base\InvalidConfigException |
426 | 426 | */ |
427 | 427 | public function httpUpsertRelay( |
@@ -441,8 +441,8 @@ discard block |
||
441 | 441 | * @param string $id |
442 | 442 | * @param array $payload |
443 | 443 | * @param IntegrationConnectionInterface|null $connection |
444 | - * @param CacheInterface|string|null $cache |
|
445 | - * @return callable |
|
444 | + * @param null|CacheInterface $cache |
|
445 | + * @return \Flipbox\Relay\Runner\Runner |
|
446 | 446 | * @throws \yii\base\InvalidConfigException |
447 | 447 | */ |
448 | 448 | public function rawHttpUpsertRelay( |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * @param array $payload |
496 | 496 | * @param IntegrationConnectionInterface|null $connection |
497 | - * @param TransformerCollectionInterface|array|null $transformer |
|
497 | + * @param null|TransformerCollectionInterface $transformer |
|
498 | 498 | * @param array $extra |
499 | 499 | * @return mixed |
500 | 500 | * @throws \yii\base\InvalidConfigException |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | |
515 | 515 | /** |
516 | 516 | * @param TimelineEventBatchMutatorInterface $criteria |
517 | - * @return mixed |
|
517 | + * @return PipelineBuilderInterface |
|
518 | 518 | * @throws \yii\base\InvalidConfigException |
519 | 519 | */ |
520 | 520 | public function batchPipeline( |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | /** |
531 | 531 | * @param array $payload |
532 | 532 | * @param IntegrationConnectionInterface|null $connection |
533 | - * @param TransformerCollectionInterface|array|null $transformer |
|
533 | + * @param null|TransformerCollectionInterface $transformer |
|
534 | 534 | * @return PipelineBuilderInterface |
535 | 535 | * @throws \yii\base\InvalidConfigException |
536 | 536 | */ |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | |
573 | 573 | /** |
574 | 574 | * @param array $payload |
575 | - * @param IntegrationConnectionInterface|string|null $connection |
|
575 | + * @param null|IntegrationConnectionInterface $connection |
|
576 | 576 | * @return ResponseInterface |
577 | 577 | * @throws \yii\base\InvalidConfigException |
578 | 578 | */ |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | |
589 | 589 | /** |
590 | 590 | * @param TimelineEventBatchMutatorInterface $criteria |
591 | - * @return callable |
|
591 | + * @return \Flipbox\Relay\Runner\Runner |
|
592 | 592 | * @throws \yii\base\InvalidConfigException |
593 | 593 | */ |
594 | 594 | public function httpBatchRelay( |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | /** |
604 | 604 | * @param array $payload |
605 | 605 | * @param IntegrationConnectionInterface|null $connection |
606 | - * @return callable |
|
606 | + * @return \Flipbox\Relay\Runner\Runner |
|
607 | 607 | * @throws \yii\base\InvalidConfigException |
608 | 608 | */ |
609 | 609 | public function rawHttpBatchRelay( |
@@ -9,7 +9,13 @@ discard block |
||
9 | 9 | namespace flipbox\hubspot\services\resources; |
10 | 10 | |
11 | 11 | use Craft; |
12 | -use flipbox\hubspot\connections\ConnectionInterface; |
|
12 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Batch; |
|
13 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
14 | +use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
15 | +use League\Pipeline\PipelineBuilderInterface; |
|
16 | +use Psr\Http\Message\ResponseInterface; |
|
17 | +use Psr\SimpleCache\CacheInterface; |
|
18 | +use flipbox\hubspot\HubSpot; |
|
13 | 19 | use flipbox\hubspot\connections\IntegrationConnectionInterface; |
14 | 20 | use flipbox\hubspot\criteria\TimelineEventAccessorInterface; |
15 | 21 | use flipbox\hubspot\criteria\TimelineEventBatchMutatorInterface; |
@@ -17,16 +23,9 @@ discard block |
||
17 | 23 | use flipbox\hubspot\helpers\CacheHelper; |
18 | 24 | use flipbox\hubspot\helpers\ConnectionHelper; |
19 | 25 | use flipbox\hubspot\helpers\TransformerHelper; |
20 | -use flipbox\hubspot\HubSpot; |
|
21 | 26 | use flipbox\hubspot\pipeline\Resource; |
22 | 27 | use flipbox\hubspot\queue\jobs\UpsertTimelineEvent; |
23 | 28 | use flipbox\hubspot\transformers\collections\TransformerCollectionInterface; |
24 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Batch; |
|
25 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Read; |
|
26 | -use Flipbox\Relay\HubSpot\Builder\Resources\Timeline\Event\Upsert; |
|
27 | -use League\Pipeline\PipelineBuilderInterface; |
|
28 | -use Psr\Http\Message\ResponseInterface; |
|
29 | -use Psr\SimpleCache\CacheInterface; |
|
30 | 29 | use yii\base\Component; |
31 | 30 | |
32 | 31 | /** |