Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vlmed committed Sep 5, 2023
1 parent 0ba10b8 commit e01192d
Show file tree
Hide file tree
Showing 285 changed files with 16,588 additions and 4,642 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
.DS_Store
desktop.ini
desktop.ini
15 changes: 15 additions & 0 deletions Api/Data/CronJobDataInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* @author Bloomreach
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/)
*/
namespace Bloomreach\EngagementConnector\Api\Data;

/**
* Cron Job Details Data Interface
*/
interface CronJobDataInterface
{
public const ITEM_COUNT = 'item_count';
public const UPDATED_AT = 'updated_at';
}
60 changes: 0 additions & 60 deletions Api/Data/ExportEntityInterface.php

This file was deleted.

68 changes: 67 additions & 1 deletion Api/Data/ExportQueueInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
*/
namespace Bloomreach\EngagementConnector\Api\Data;

use Magento\Framework\Api\ExtensibleDataInterface;

/**
* Export Queue Data Interface
*/
interface ExportQueueInterface
interface ExportQueueInterface extends ExtensibleDataInterface
{
/**
* Get Entity Id
Expand Down Expand Up @@ -113,6 +115,22 @@ public function setApiType(string $apiType): void;
*/
public function getRegistered(): string;

/**
* Get Number of items
*
* @return int
*/
public function getNumberOfItems(): int;

/**
* Set Number of items
*
* @param int $numberOfItems
*
* @return void
*/
public function setNumberOfItems(int $numberOfItems): void;

/**
* Set Registered
*
Expand Down Expand Up @@ -154,6 +172,38 @@ public function getTimeOfNextSendingAttempt(): int;
*/
public function setTimeOfNextSendingAttempt(int $time): void;

/**
* Get Error Message
*
* @return string
*/
public function getErrorMessage(): string;

/**
* Set error message
*
* @param string $errorMessage
*
* @return void
*/
public function setErrorMessage(string $errorMessage): void;

/**
* Get Additional Data
*
* @return string
*/
public function getAdditionalData(): string;

/**
* Set Additional Data
*
* @param string $additionalData
*
* @return void
*/
public function setAdditionalData(string $additionalData): void;

/**
* Get Created At
*
Expand Down Expand Up @@ -185,4 +235,20 @@ public function getUpdatedAt(): string;
* @return void
*/
public function setUpdatedAt(string $updatedAt): void;

/**
* Retrieve existing extension attributes object or create a new one.
*
* @return array
*/
public function getCustomAttributes(): array;

/**
* Set an extension attributes object.
*
* @param array $customAttributes
*
* @return void
*/
public function setCustomAttributes(array $customAttributes): void;
}
172 changes: 172 additions & 0 deletions Api/Data/InitialExportStatusInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<?php
/**
* @author Bloomreach
* @copyright Copyright (c) Bloomreach (https://www.bloomreach.com/)
*/
namespace Bloomreach\EngagementConnector\Api\Data;

/**
* Initial Export Status Data Interface
*/
interface InitialExportStatusInterface
{
/**
* 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
*/
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;

/**
* Set Status
*
* @param int $statusCode
*
* @return void
*/
public function setStatus(int $statusCode): void;

/**
* Get Total Items
*
* @return int
*/
public function getTotalItems(): int;

/**
* Set Total Items
*
* @param int $totalItems
*
* @return void
*/
public function setTotalItems(int $totalItems): void;

/**
* Get Total Exported
*
* @return int
*/
public function getTotalExported(): int;

/**
* Set Total Exported
*
* @param int $totalExported
*
* @return void
*/
public function setTotalExported(int $totalExported): void;

/**
* Get Total Error Items
*
* @return int
*/
public function getTotalErrorItems(): int;

/**
* Set Total Error Items
*
* @param int $totalErrorItems
*
* @return void
*/
public function setTotalErrorItems(int $totalErrorItems): void;

/**
* Get Errors
*
* @return string
*/
public function getErrors(): string;

/**
* Set Errors
*
* @param string $errors
*
* @return void
*/
public function setErrors(string $errors): void;

/**
* Get Is Locked
*
* @return bool
*/
public function isLocked(): bool;

/**
* Set Is Locked
*
* @param bool $isLocked
*
* @return void
*/
public function setIsLocked(bool $isLocked): void;

/**
* Get Started At
*
* @return string
*/
public function getStartedAt(): string;

/**
* Set Started At
*
* @param string|null $startedAt
*
* @return void
*/
public function setStartedAt(?string $startedAt): void;

/**
* Get Finished At
*
* @return string
*/
public function getFinishedAt(): string;

/**
* Set Finished At
*
* @param string|null $finishedAt
*
* @return void
*/
public function setFinishedAt(?string $finishedAt): void;
}
Loading

0 comments on commit e01192d

Please sign in to comment.