Skip to content

Latest commit

 

History

History
124 lines (90 loc) · 3.97 KB

CHANGELOG.md

File metadata and controls

124 lines (90 loc) · 3.97 KB

[5.0.1]

  • Update upsert function to throw an Exception in case of any errors during the request

[5.0.0]

Changes

[5.0.0-alpha]

Calendar changes

  • Calendar construct will now require clientId, clientSecret and token as required readonly parameters
public function __construct(
    private readonly string $clientId,
    private readonly string $clientSecret,
    private readonly string $token,
    array $args = []
)
  • Sync method is removed. Call push/pull to send and receive events from outlook

  • Get event and get event instances will require outlook id instead of url

public function getEventBy(
    string $id,
    ?EventItemRequestBuilderGetQueryParameters $params = null,
    ?Closure $beforeReturn = null,
    array $args = []
): ?ReaderEntityInterface

public function getEventInstances(
    string $id,
    ?InstancesRequestBuilderGetQueryParameters $params = null,
    array $args = []
): void
  • Writer/Delete entities are removed and are replaced by outlook model Event

  • Delete method will not return any response except a 204 status code

  • Batch push events will now return a generator instead of Batch Response entity

public function handleBatchResponse(?Generator $responses = null): void;
  • Update deleteEventLocal type declaration to ?string
public function deleteEventLocal(?string $eventId): void

Token Changes

  • None or very limited changes to Token handler

Subscription Changes

  • construct now requires clientId, clientSecret and token as required readonly parameters
public function __construct(
    private readonly string $clientId,
    private readonly string $clientSecret,
    private readonly string $token,
    array $args = []
)
  • Preparing for subscription
$subEntity = new \Microsoft\Graph\Generated\Models\Subscription();
$msEntity->setChangeType('created,deleted,updated,missed');
// reachable and should return a 200 response with same validation token param
$msEntity->setNotificationUrl('{{notificationUrl}}');
// required to get reauthorizationRequired notifications, subscription removed notifications & missed notifications
$msEntity->setLifecycleNotificationUrl('{{lifeTimeNotUrl}}');
$msEntity->setResource('me/events');
// Random client state generated by the app, will be sent on all outlook notifications
$msEntity->setClientState(\Ramsey\Uuid\Uuid::uuid4()->toString());
  • Subscription entity will not be available anymore. The graph api sdk Subscription model and entity is used instead.
public function subscribe(
    Microsoft\Graph\Generated\Models\Subscription $subscriptionEntity, array $args = []
): ?Microsoft\Graph\Generated\Models\Subscription
  • Renew subscription will only update the expiry date of the token.
public function renew(
    string $subscriptionId,
    \DateTime $expiration,
    array $args = []
): ?Microsoft\Graph\Generated\Models\Subscription

Notification Changes

  • With the new graph api the sequence number will not be available. Call the event api to get the changes and validate it.

[2.0.0]

Added

  • 2 - Add support for outlook push notifications
  • 82ef0 - Add retry handler for batch push
  • 5ac8b - Ability to pass skip query params to connection handler
  • 2bf32, 54e1f, e5e0d - Add support for batch requests

Removed

  • 4b134 - Remove concurrent pool upsert request option

[1.0.0]

Initial Release.