@types/node-pushnotifications
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -28,4 +28,4 @@ // Type definitions for node-pushnotifications 1.0 | ||
/** GCM or FCM token */ | ||
id?: string; | ||
}; | ||
id?: string | undefined; | ||
} | undefined; | ||
/** Apple Push Notifications */ | ||
@@ -39,8 +39,8 @@ apn?: { | ||
*/ | ||
key?: Buffer | string; | ||
key?: Buffer | string | undefined; | ||
/** The ID of the key issued by Apple */ | ||
keyId?: string; | ||
keyId?: string | undefined; | ||
/** ID of the team associated with the provider token key */ | ||
teamId?: string; | ||
}; | ||
teamId?: string | undefined; | ||
} | undefined; | ||
/** | ||
@@ -50,5 +50,5 @@ * The filename of the connection certificate to load from disk, or a Buffer/String containing the | ||
*/ | ||
cert?: string; | ||
cert?: string | undefined; | ||
/** The filename of the connection key to load from disk, or a Buffer or String containing the key data. */ | ||
key?: string; | ||
key?: string | undefined; | ||
/** | ||
@@ -60,3 +60,3 @@ * An array of trusted certificates. Each element should contain either a filename to load, or a | ||
*/ | ||
ca?: Array<Buffer | string>; | ||
ca?: Array<Buffer | string> | undefined; | ||
/** | ||
@@ -66,46 +66,46 @@ * File path for private key, certificate and CA certs in PFX or PKCS12 format, or a Buffer containing | ||
*/ | ||
pfx?: Buffer | string; | ||
pfx?: Buffer | string | undefined; | ||
/** The passphrase for the connection key, if required */ | ||
passphrase?: string; | ||
production?: boolean; | ||
voip?: boolean; | ||
address?: string; | ||
port?: number; | ||
rejectUnauthorized?: boolean; | ||
connectionRetryLimit?: number; | ||
cacheLength?: number; | ||
connectionTimeout?: number; | ||
autoAdjustCache?: boolean; | ||
maxConnections?: number; | ||
minConnections?: number; | ||
connectTimeout?: number; | ||
buffersNotifications?: boolean; | ||
fastMode?: boolean; | ||
disableNagle?: boolean; | ||
disableEPIPEFix?: boolean; | ||
}; | ||
passphrase?: string | undefined; | ||
production?: boolean | undefined; | ||
voip?: boolean | undefined; | ||
address?: string | undefined; | ||
port?: number | undefined; | ||
rejectUnauthorized?: boolean | undefined; | ||
connectionRetryLimit?: number | undefined; | ||
cacheLength?: number | undefined; | ||
connectionTimeout?: number | undefined; | ||
autoAdjustCache?: boolean | undefined; | ||
maxConnections?: number | undefined; | ||
minConnections?: number | undefined; | ||
connectTimeout?: number | undefined; | ||
buffersNotifications?: boolean | undefined; | ||
fastMode?: boolean | undefined; | ||
disableNagle?: boolean | undefined; | ||
disableEPIPEFix?: boolean | undefined; | ||
} | undefined; | ||
/** Amazon Device Messaging */ | ||
adm?: { | ||
client_id?: string; | ||
client_secret?: string; | ||
}; | ||
client_id?: string | undefined; | ||
client_secret?: string | undefined; | ||
} | undefined; | ||
/** Windows Push Notifications */ | ||
wns?: { | ||
client_id?: string; | ||
client_secret?: string; | ||
accessToken?: string; | ||
headers?: string; | ||
notificationMethod?: string; | ||
}; | ||
client_id?: string | undefined; | ||
client_secret?: string | undefined; | ||
accessToken?: string | undefined; | ||
headers?: string | undefined; | ||
notificationMethod?: string | undefined; | ||
} | undefined; | ||
/** Microsoft Push Notification Service */ | ||
mpns?: { | ||
options?: { | ||
client_id?: string; | ||
client_secret?: string; | ||
}; | ||
}; | ||
client_id?: string | undefined; | ||
client_secret?: string | undefined; | ||
} | undefined; | ||
} | undefined; | ||
/** Web */ | ||
web?: webPush.RequestOptions; | ||
web?: webPush.RequestOptions | undefined; | ||
/** Always use FCM? */ | ||
isAlwaysUseFCM?: boolean; | ||
isAlwaysUseFCM?: boolean | undefined; | ||
} | ||
@@ -117,3 +117,3 @@ interface Data { | ||
body: string; | ||
custom?: { [key: string]: string | number } | string; | ||
custom?: { [key: string]: string | number } | string | undefined; | ||
/** | ||
@@ -123,74 +123,74 @@ * gcm, apn. Supported values are 'high' or 'normal' (gcm). Will be translated to 10 and 5 for apn. Defaults | ||
*/ | ||
priority?: string; | ||
priority?: string | undefined; | ||
/** gcm for android, used as collapseId in apn */ | ||
collapseKey?: string; | ||
collapseKey?: string | undefined; | ||
/** gcm for android */ | ||
contentAvailable?: boolean | string; | ||
contentAvailable?: boolean | string | undefined; | ||
/** gcm for android */ | ||
delayWhileIdle?: boolean; | ||
delayWhileIdle?: boolean | undefined; | ||
/** gcm for android */ | ||
restrictedPackageName?: string; | ||
restrictedPackageName?: string | undefined; | ||
/** gcm for android */ | ||
dryRun?: boolean; | ||
dryRun?: boolean | undefined; | ||
/** gcm for android */ | ||
icon?: string; | ||
icon?: string | undefined; | ||
/** gcm for android */ | ||
tag?: string; | ||
tag?: string | undefined; | ||
/** gcm for android */ | ||
color?: string; | ||
color?: string | undefined; | ||
/** gcm for android. In ios, category will be used if not supplied */ | ||
clickAction?: string; | ||
clickAction?: string | undefined; | ||
/** gcm, apn */ | ||
locKey?: string; | ||
locKey?: string | undefined; | ||
/** gcm, apn */ | ||
bodyLocArgs?: string; | ||
bodyLocArgs?: string | undefined; | ||
/** gcm, apn */ | ||
titleLocKey?: string; | ||
titleLocKey?: string | undefined; | ||
/** gcm, apn */ | ||
titleLocArgs?: string; | ||
titleLocArgs?: string | undefined; | ||
/** gcm, apn */ | ||
retries?: number; | ||
retries?: number | undefined; | ||
/** apn */ | ||
encoding?: string; | ||
encoding?: string | undefined; | ||
/** gcm for ios, apn */ | ||
badge?: number; | ||
badge?: number | undefined; | ||
/** gcm, apn */ | ||
sound?: string; | ||
sound?: string | undefined; | ||
/** apn, will take precedence over title and body. It is also accepted a text message in alert */ | ||
alert?: {} | string; | ||
alert?: {} | string | undefined; | ||
/** apn and gcm for ios */ | ||
launchImage?: string; | ||
launchImage?: string | undefined; | ||
/** apn and gcm for ios */ | ||
action?: string; | ||
action?: string | undefined; | ||
/** apn and gcm for ios */ | ||
topic?: string; | ||
topic?: string | undefined; | ||
/** apn and gcm for ios */ | ||
category?: string; | ||
category?: string | undefined; | ||
/** apn and gcm for ios */ | ||
mdm?: string; | ||
mdm?: string | undefined; | ||
/** apn and gcm for ios */ | ||
urlArgs?: string; | ||
urlArgs?: string | undefined; | ||
/** apn and gcm for ios */ | ||
truncateAtWordEnd?: boolean; | ||
truncateAtWordEnd?: boolean | undefined; | ||
/** apn */ | ||
mutableContent?: number; | ||
mutableContent?: number | undefined; | ||
/** seconds */ | ||
expiry?: number; | ||
expiry?: number | undefined; | ||
/** if both expiry and timeToLive are given, expiry will take precedency */ | ||
timeToLive?: number; | ||
timeToLive?: number | undefined; | ||
/** wns */ | ||
headers?: string[]; | ||
headers?: string[] | undefined; | ||
/** wns */ | ||
launch?: string; | ||
launch?: string | undefined; | ||
/** wns */ | ||
duration?: string; | ||
duration?: string | undefined; | ||
/** ADM */ | ||
consolidationKey?: string; | ||
consolidationKey?: string | undefined; | ||
} | ||
interface Message { | ||
regId: string; | ||
originalRegId?: string; | ||
messageId?: string; | ||
error?: Error | null; | ||
errorMsg?: string; | ||
originalRegId?: string | undefined; | ||
messageId?: string | undefined; | ||
error?: Error | null | undefined; | ||
errorMsg?: string | undefined; | ||
} | ||
@@ -197,0 +197,0 @@ interface Result { |
{ | ||
"name": "@types/node-pushnotifications", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "TypeScript definitions for node-pushnotifications", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications", | ||
"license": "MIT", | ||
@@ -19,3 +20,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -31,4 +32,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "e7724ee717a1b2023b36a82eb96c3b35036e3b2cef18039337b9a62bf7e7791d", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "c01e20b4f95288a8a5d6c1a92bbd98f1d69489a67c2feefdd64707ec587ba8bd", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-pushnotifications. | ||
Additional Details | ||
* Last updated: Mon, 19 Aug 2019 18:22:50 GMT | ||
* Dependencies: @types/web-push, @types/node | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 18:51:24 GMT | ||
* Dependencies: [@types/web-push](https://npmjs.com/package/@types/web-push), [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Menushka Weeratunga <https://github.com/menushka>, and Julian Hundeloh <https://github.com/jaulz>. | ||
These definitions were written by [Menushka Weeratunga](https://github.com/menushka), and [Julian Hundeloh](https://github.com/jaulz). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11040
0