| 18 | } |
| 19 | |
| 20 | export interface ProviderOptions { |
| 21 | /** |
| 22 | * Configuration for Provider Authentication Tokens. (Defaults to: null i.e. fallback to Certificates) |
| 23 | */ |
| 24 | token?: ProviderToken; |
| 25 | /** |
| 26 | * The filename of the connection certificate to load from disk, or a Buffer/String containing the certificate data. (Defaults to: `cert.pem`) |
| 27 | */ |
| 28 | cert?: string|Buffer; |
| 29 | /** |
| 30 | * The filename of the connection key to load from disk, or a Buffer/String containing the key data. (Defaults to: `key.pem`) |
| 31 | */ |
| 32 | key?: string|Buffer; |
| 33 | /** |
| 34 | * An array of trusted certificates. Each element should contain either a filename to load, or a Buffer/String (in PEM format) to be used directly. If this is omitted several well known "root" CAs will be used. - You may need to use this as some environments don't include the CA used by Apple (entrust_2048). |
| 35 | */ |
| 36 | ca?: (string|Buffer)[]; |
| 37 | /** |
| 38 | * File path for private key, certificate and CA certs in PFX or PKCS12 format, or a Buffer containing the PFX data. If supplied will always be used instead of certificate and key above. |
| 39 | */ |
| 40 | pfx?: string|Buffer; |
| 41 | /** |
| 42 | * The passphrase for the connection key, if required |
| 43 | */ |
| 44 | passphrase?: string; |
| 45 | /** |
| 46 | * Specifies which environment to connect to: Production (if true) or Sandbox - The hostname will be set automatically. (Defaults to NODE_ENV == "production", i.e. false unless the NODE_ENV environment variable is set accordingly) |
| 47 | */ |
| 48 | production?: boolean; |
| 49 | /** |
| 50 | * Reject Unauthorized property to be passed through to tls.connect() (Defaults to `true`) |
| 51 | */ |
| 52 | rejectUnauthorized?: boolean; |
| 53 | /** |
| 54 | * The maximum number of connection failures that will be tolerated before `apn` will "terminate". (Defaults to: 3) |
| 55 | */ |
| 56 | connectionRetryLimit?: number; |
| 57 | } |
| 58 | |
| 59 | interface ApsAlert { |
| 60 | body?: string |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…