diff --git a/CHANGELOG.md b/CHANGELOG.md index de1abed5..0d7cbffe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ Change Log --- +## [8.2.0](https://github.com/AndrewBarba/apns2/releases/tag/8.2.0) + +1. Add correct TypeScript definitions for `NotificationOptions` + ## [8.1.0](https://github.com/AndrewBarba/apns2/releases/tag/8.1.0) 1. Add missing TypeScript interface for `NotificationOptions` diff --git a/index.d.ts b/index.d.ts index 084a92c5..db8736ef 100644 --- a/index.d.ts +++ b/index.d.ts @@ -69,21 +69,19 @@ declare interface APNSOptions { } declare interface NotificationOptions { + alert?: string | any; aps?: any; - actions?: NotificationAction[]; - badge?: string; - body?: string; + badge?: number; + category?: string; + collapseId?: string; + contentAvailable?: boolean; data?: any; - dir?: NotificationDirection; - icon?: string; - image?: string; - lang?: string; - renotify?: boolean; - requireInteraction?: boolean; - silent?: boolean; - tag?: string; - timestamp?: number; - vibrate?: VibratePattern; + expiration?: number; + priority?: string; + pushType?: string; + sound?: string; + threadId?: string; + topic?: string; } declare interface NotificationPriority { diff --git a/package.json b/package.json index eb9161ef..956a06dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apns2", - "version": "8.1.0", + "version": "8.2.0", "description": "Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.", "author": "Andrew Barba ", "main": "lib/apns.js",