Comparing version 4.0.0 to 4.0.1
@@ -140,2 +140,3 @@ declare module 'pushy' { | ||
} | ||
interface NotificationStatus { | ||
@@ -218,2 +219,22 @@ /** The creation date of the push notification (unix timestamp). */ | ||
/** | ||
* Options for extra request library parameters. | ||
*/ | ||
interface ExtraRequestOptions { | ||
/** | ||
* Custom headers for the request, represented as key-value pairs. | ||
*/ | ||
headers?: Record<string, string>; | ||
/** | ||
* Timeout for the request in milliseconds. | ||
*/ | ||
timeout?: number; | ||
/** | ||
* Allow any additional options to be specified. | ||
*/ | ||
[key: string]: any; | ||
} | ||
interface DevicePresenceInfo { | ||
@@ -259,2 +280,8 @@ /** The device token linked to this presence object. */ | ||
export default class Pushy { | ||
/** | ||
* Constructor | ||
* @see {@link https://pushy.me/docs/api} | ||
* | ||
* @param apiKey Pushy Secret API Key, available in the Pushy Dashboard (Click your app -> API Authentication tab). | ||
*/ | ||
constructor(apiKey: string); | ||
@@ -363,3 +390,24 @@ | ||
): Promise<TopicSuscribers>; | ||
/** | ||
* Set extra request library options to customize requests sent to the Pushy API. | ||
* | ||
* @param options An object containing additional request options. | ||
*/ | ||
setExtraRequestOptions(options: ExtraRequestOptions): void; | ||
/** | ||
* Set the Pushy Enterprise API endpoint hostname. | ||
* | ||
* @param endpoint The Pushy Enterprise API endpoint along with protocol (no trailing slash). | ||
*/ | ||
setEnterpriseConfig(endpoint: string): void; | ||
/** | ||
* Get the API endpoint being used by the Pushy instance. | ||
* | ||
* @returns The API endpoint URL as a string. | ||
*/ | ||
getApiEndpoint(): string; | ||
} | ||
} |
{ | ||
"name": "pushy", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "The official Node.js package for sending push notifications with Pushy.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61515
1087