-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b383692
Showing
217 changed files
with
16,022 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update demo website plugin | ||
env: | ||
DEMODEPLOY_COMMAND: ${{ secrets.DEMODEPLOY_COMMAND }} | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Generate Deploy Key | ||
run: 'echo "$DEPLOYKEY" > id_rsa ; chmod 400 id_rsa' | ||
shell: bash | ||
env: | ||
DEPLOYKEY: ${{secrets.DEPLOYKEY}} | ||
|
||
- name: Run Simple Deploy | ||
shell: bash | ||
run: "$DEMODEPLOY_COMMAND \ | ||
-i ./id_rsa \ | ||
-o StrictHostKeyChecking=no \ | ||
'cd /home/dev/sites/magento ; \ | ||
composer update bloomreach/bloomreach-engagement-connector-magento:dev-develop ; \ | ||
bin/magento setup:upgrade ; \ | ||
bin/magento deploy:mode:set production'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Update packagist | ||
env: | ||
WEBHOOK: ${{ secrets.WEBHOOK }} | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Run webhook | ||
shell: bash | ||
run: "$WEBHOOK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/** | ||
* @author Bloomreach | ||
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/) | ||
*/ | ||
namespace Bloomreach\EngagementConnector\Api\Data; | ||
|
||
/** | ||
* Export Entity Data Interface | ||
*/ | ||
interface ExportEntityInterface | ||
{ | ||
/** | ||
* Get Entity Id | ||
* | ||
* @return int | ||
*/ | ||
public function getEntityId(): int; | ||
|
||
/** | ||
* Set Entity Id | ||
* | ||
* @param int|string $entityId | ||
* | ||
* @return void | ||
*/ | ||
public function setEntityId($entityId): void; | ||
|
||
/** | ||
* Get Export Entity Id | ||
* | ||
* @return int | ||
*/ | ||
public function getExportEntityId(): int; | ||
|
||
/** | ||
* Set Export Entity Id | ||
* | ||
* @param int|string $exportEntityId | ||
* | ||
* @return void | ||
*/ | ||
public function setExportEntityId($exportEntityId): void; | ||
|
||
/** | ||
* Get Entity Type | ||
* | ||
* @return string | ||
*/ | ||
public function getEntityType(): string; | ||
|
||
/** | ||
* Set Entity Type | ||
* | ||
* @param string $entityType | ||
* | ||
* @return void | ||
*/ | ||
public function setEntityType(string $entityType): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<?php | ||
/** | ||
* @author Bloomreach | ||
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/) | ||
*/ | ||
namespace Bloomreach\EngagementConnector\Api\Data; | ||
|
||
/** | ||
* Export Queue Data Interface | ||
*/ | ||
interface ExportQueueInterface | ||
{ | ||
/** | ||
* Get Entity Id | ||
* | ||
* @return int|null | ||
*/ | ||
public function getEntityId(): ?int; | ||
|
||
/** | ||
* Set Entity Id | ||
* | ||
* @param int|string $entityId | ||
* | ||
* @return void | ||
*/ | ||
public function setEntityId($entityId): void; | ||
|
||
/** | ||
* Get Entity Type | ||
* | ||
* @return string|null | ||
*/ | ||
public function getEntityType(): ?string; | ||
|
||
/** | ||
* Set Entity Type | ||
* | ||
* @param string $entityType | ||
* | ||
* @return void | ||
*/ | ||
public function setEntityType(string $entityType): void; | ||
|
||
/** | ||
* Get Status | ||
* | ||
* @return int | ||
*/ | ||
public function getStatus(): int; | ||
|
||
/** | ||
* Get Status | ||
* | ||
* @param int|string $status | ||
* | ||
* @return void | ||
*/ | ||
public function setStatus($status): void; | ||
|
||
/** | ||
* Get Retries | ||
* | ||
* @return int | ||
*/ | ||
public function getRetries(): int; | ||
|
||
/** | ||
* Set Retries | ||
* | ||
* @param int|string $retires | ||
* | ||
* @return void | ||
*/ | ||
public function setRetries($retires): void; | ||
|
||
/** | ||
* Get Body | ||
* | ||
* @return string | ||
*/ | ||
public function getBody(): string; | ||
|
||
/** | ||
* Set Body | ||
* | ||
* @param string $body | ||
* | ||
* @return void | ||
*/ | ||
public function setBody(string $body): void; | ||
|
||
/** | ||
* Get Api Type | ||
* | ||
* @return string | ||
*/ | ||
public function getApiType(): string; | ||
|
||
/** | ||
* Set Api Type | ||
* | ||
* @param string $apiType | ||
* | ||
* @return void | ||
*/ | ||
public function setApiType(string $apiType): void; | ||
|
||
/** | ||
* Get Registered | ||
* | ||
* @return string | ||
*/ | ||
public function getRegistered(): string; | ||
|
||
/** | ||
* Set Registered | ||
* | ||
* @param string $registered | ||
* | ||
* @return void | ||
*/ | ||
public function setRegistered(string $registered): void; | ||
|
||
/** | ||
* Get Created At | ||
* | ||
* @return string | ||
*/ | ||
public function getCreatedAt(): string; | ||
|
||
/** | ||
* Set Created At | ||
* | ||
* @param string $createdAt | ||
* | ||
* @return void | ||
*/ | ||
public function setCreatedAt(string $createdAt): void; | ||
|
||
/** | ||
* Get Updated At | ||
* | ||
* @return string | ||
*/ | ||
public function getUpdatedAt(): string; | ||
|
||
/** | ||
* Set Updated At | ||
* | ||
* @param string $updatedAt | ||
* | ||
* @return void | ||
*/ | ||
public function setUpdatedAt(string $updatedAt): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* @author Bloomreach | ||
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/) | ||
*/ | ||
namespace Bloomreach\EngagementConnector\Api; | ||
|
||
use Bloomreach\EngagementConnector\Api\Data\ExportEntityInterface; | ||
use Magento\Framework\Exception\CouldNotSaveException; | ||
|
||
/** | ||
* Saves export entity | ||
*/ | ||
interface SaveExportEntityInterface | ||
{ | ||
/** | ||
* Saves export entity | ||
* | ||
* @param ExportEntityInterface $exportEntity | ||
* | ||
* @return ExportEntityInterface | ||
* @throws CouldNotSaveException | ||
*/ | ||
public function execute(ExportEntityInterface $exportEntity): ExportEntityInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* @author Bloomreach | ||
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/) | ||
*/ | ||
namespace Bloomreach\EngagementConnector\Api; | ||
|
||
use Bloomreach\EngagementConnector\Api\Data\ExportQueueInterface; | ||
use Magento\Framework\Exception\CouldNotSaveException; | ||
|
||
/** | ||
* Saves export queue | ||
*/ | ||
interface SaveExportQueueInterface | ||
{ | ||
/** | ||
* Saves export queue | ||
* | ||
* @param ExportQueueInterface $exportQueue | ||
* | ||
* @return ExportQueueInterface | ||
* @throws CouldNotSaveException | ||
*/ | ||
public function execute(ExportQueueInterface $exportQueue): ExportQueueInterface; | ||
} |
Oops, something went wrong.