Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ingpeterpolak committed Nov 10, 2021
0 parents commit b383692
Show file tree
Hide file tree
Showing 217 changed files with 16,022 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/demo-deploy.yml
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'"
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
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"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.DS_Store
60 changes: 60 additions & 0 deletions Api/Data/ExportEntityInterface.php
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;
}
156 changes: 156 additions & 0 deletions Api/Data/ExportQueueInterface.php
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;
}
25 changes: 25 additions & 0 deletions Api/SaveExportEntityInterface.php
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;
}
25 changes: 25 additions & 0 deletions Api/SaveExportQueueInterface.php
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;
}
Loading

0 comments on commit b383692

Please sign in to comment.