pushy 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +10 -10
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -45,25 +45,25 @@ declare module 'pushy' {
|
|
|
45
45
|
* The main alert message, visible on the lock screen and in other areas on iOS.
|
|
46
46
|
* Supports Apple Emojis via their unicode representation.
|
|
47
47
|
*/
|
|
48
|
-
body
|
|
48
|
+
body?: string;
|
|
49
49
|
|
|
50
50
|
/** The number to display as the badge of the app icon. */
|
|
51
|
-
badge
|
|
51
|
+
badge?: number;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* The filename of a sound in the app bundle or in the Library/Sounds folder of your app's data
|
|
55
55
|
* container, or a sound dictionary object for critical alerts (iOS 12, more info) .
|
|
56
56
|
*/
|
|
57
|
-
sound
|
|
57
|
+
sound?: unknown;
|
|
58
58
|
|
|
59
59
|
/** A short string describing the purpose of the notification, visible on Apple Watch and iOS 8.2+. */
|
|
60
|
-
title
|
|
60
|
+
title?: string;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Your app's Notification Content Extension with the matching category will be invoked in order to
|
|
64
64
|
* display custom notification UI.
|
|
65
65
|
*/
|
|
66
|
-
category
|
|
66
|
+
category?: string;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The localization key of a string present in your app's Localizable.strings file.
|
|
@@ -71,7 +71,7 @@ declare module 'pushy' {
|
|
|
71
71
|
* Use this parameter to localize the notification body. Refer to the APNs documentation for more
|
|
72
72
|
* information.
|
|
73
73
|
*/
|
|
74
|
-
loc_key
|
|
74
|
+
loc_key?: string;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The replacement strings to substitute in place of the %@ placeholders of the localization string
|
|
@@ -80,7 +80,7 @@ declare module 'pushy' {
|
|
|
80
80
|
* Use this parameter to localize the notification body. Refer to the APNs documentation for more
|
|
81
81
|
* information.
|
|
82
82
|
*/
|
|
83
|
-
loc_args
|
|
83
|
+
loc_args?: Array<string>;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The localization key of a string present in your app's Localizable.strings file.
|
|
@@ -88,7 +88,7 @@ declare module 'pushy' {
|
|
|
88
88
|
* Use this parameter to localize the notification title. Refer to the APNs documentation for more
|
|
89
89
|
* information.
|
|
90
90
|
*/
|
|
91
|
-
title_loc_key
|
|
91
|
+
title_loc_key?: string;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* The replacement strings to substitute in place of the %@ placeholders of the localization string
|
|
@@ -97,7 +97,7 @@ declare module 'pushy' {
|
|
|
97
97
|
* Use this parameter to localize the notification title. Refer to the APNs documentation for more
|
|
98
98
|
* information.
|
|
99
99
|
*/
|
|
100
|
-
title_loc_args
|
|
100
|
+
title_loc_args?: Array<string>;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Indicate the importance and delivery timing of a notification on iOS 15+, with possible values
|
|
@@ -106,7 +106,7 @@ declare module 'pushy' {
|
|
|
106
106
|
* Defaults to active. Anything above active requires capabilities to be enabled in your Xcode
|
|
107
107
|
* project. Refer to the APNs documentation for more information.
|
|
108
108
|
*/
|
|
109
|
-
interruption_level
|
|
109
|
+
interruption_level?: string;
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushy",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "The official Node.js package for sending push notifications with Pushy.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/pushy/pushy-node#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"axios": "^1.
|
|
20
|
+
"axios": "^1.12.1"
|
|
21
21
|
}
|
|
22
22
|
}
|