@azure/notification-hubs 1.0.0-beta.1

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.
Files changed (196) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +749 -0
  3. package/dist/index.js +2235 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist-esm/src/client/cancelScheduledNotification.js +23 -0
  6. package/dist-esm/src/client/cancelScheduledNotification.js.map +1 -0
  7. package/dist-esm/src/client/createOrUpdateInstallation.js +24 -0
  8. package/dist-esm/src/client/createOrUpdateInstallation.js.map +1 -0
  9. package/dist-esm/src/client/createOrUpdateRegistration.js +17 -0
  10. package/dist-esm/src/client/createOrUpdateRegistration.js.map +1 -0
  11. package/dist-esm/src/client/createRegistration.js +24 -0
  12. package/dist-esm/src/client/createRegistration.js.map +1 -0
  13. package/dist-esm/src/client/createRegistrationId.js +26 -0
  14. package/dist-esm/src/client/createRegistrationId.js.map +1 -0
  15. package/dist-esm/src/client/deleteInstallation.js +22 -0
  16. package/dist-esm/src/client/deleteInstallation.js.map +1 -0
  17. package/dist-esm/src/client/deleteRegistration.js +25 -0
  18. package/dist-esm/src/client/deleteRegistration.js.map +1 -0
  19. package/dist-esm/src/client/getFeedbackContainerUrl.js +23 -0
  20. package/dist-esm/src/client/getFeedbackContainerUrl.js.map +1 -0
  21. package/dist-esm/src/client/getInstallation.js +23 -0
  22. package/dist-esm/src/client/getInstallation.js.map +1 -0
  23. package/dist-esm/src/client/getNotificationHubJob.js +24 -0
  24. package/dist-esm/src/client/getNotificationHubJob.js.map +1 -0
  25. package/dist-esm/src/client/getNotificationOutcomeDetails.js +24 -0
  26. package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +1 -0
  27. package/dist-esm/src/client/getRegistration.js +24 -0
  28. package/dist-esm/src/client/getRegistration.js.map +1 -0
  29. package/dist-esm/src/client/index.js +44 -0
  30. package/dist-esm/src/client/index.js.map +1 -0
  31. package/dist-esm/src/client/internal/_client.js +75 -0
  32. package/dist-esm/src/client/internal/_client.js.map +1 -0
  33. package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js +31 -0
  34. package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
  35. package/dist-esm/src/client/internal/_scheduleNotificationPayload.js +37 -0
  36. package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +1 -0
  37. package/dist-esm/src/client/internal/_sendNotificationPayload.js +51 -0
  38. package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +1 -0
  39. package/dist-esm/src/client/listNotificationHubJobs.js +23 -0
  40. package/dist-esm/src/client/listNotificationHubJobs.js.map +1 -0
  41. package/dist-esm/src/client/listRegistrations.js +89 -0
  42. package/dist-esm/src/client/listRegistrations.js.map +1 -0
  43. package/dist-esm/src/client/listRegistrationsByTag.js +87 -0
  44. package/dist-esm/src/client/listRegistrationsByTag.js.map +1 -0
  45. package/dist-esm/src/client/scheduleBroadcastNotification.js +17 -0
  46. package/dist-esm/src/client/scheduleBroadcastNotification.js.map +1 -0
  47. package/dist-esm/src/client/scheduleNotification.js +18 -0
  48. package/dist-esm/src/client/scheduleNotification.js.map +1 -0
  49. package/dist-esm/src/client/sendBroadcastNotification.js +15 -0
  50. package/dist-esm/src/client/sendBroadcastNotification.js.map +1 -0
  51. package/dist-esm/src/client/sendDirectNotification.js +16 -0
  52. package/dist-esm/src/client/sendDirectNotification.js.map +1 -0
  53. package/dist-esm/src/client/sendNotification.js +16 -0
  54. package/dist-esm/src/client/sendNotification.js.map +1 -0
  55. package/dist-esm/src/client/submitNotificationHubJob.js +26 -0
  56. package/dist-esm/src/client/submitNotificationHubJob.js.map +1 -0
  57. package/dist-esm/src/client/updateInstallation.js +25 -0
  58. package/dist-esm/src/client/updateInstallation.js.map +1 -0
  59. package/dist-esm/src/client/updateRegistration.js +21 -0
  60. package/dist-esm/src/client/updateRegistration.js.map +1 -0
  61. package/dist-esm/src/index.js +12 -0
  62. package/dist-esm/src/index.js.map +1 -0
  63. package/dist-esm/src/models/installation.js +51 -0
  64. package/dist-esm/src/models/installation.js.map +1 -0
  65. package/dist-esm/src/models/notification.js +104 -0
  66. package/dist-esm/src/models/notification.js.map +1 -0
  67. package/dist-esm/src/models/notificationBuilder.js +169 -0
  68. package/dist-esm/src/models/notificationBuilder.js.map +1 -0
  69. package/dist-esm/src/models/notificationDetails.js +4 -0
  70. package/dist-esm/src/models/notificationDetails.js.map +1 -0
  71. package/dist-esm/src/models/notificationHubJob.js +4 -0
  72. package/dist-esm/src/models/notificationHubJob.js.map +1 -0
  73. package/dist-esm/src/models/options.js +4 -0
  74. package/dist-esm/src/models/options.js.map +1 -0
  75. package/dist-esm/src/models/registration.js +135 -0
  76. package/dist-esm/src/models/registration.js.map +1 -0
  77. package/dist-esm/src/models/response.js +4 -0
  78. package/dist-esm/src/models/response.js.map +1 -0
  79. package/dist-esm/src/notificationHubsClient.js +251 -0
  80. package/dist-esm/src/notificationHubsClient.js.map +1 -0
  81. package/dist-esm/src/serializers/notificationDetailsSerializer.js +58 -0
  82. package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -0
  83. package/dist-esm/src/serializers/notificationHubJobSerializer.js +74 -0
  84. package/dist-esm/src/serializers/notificationHubJobSerializer.js.map +1 -0
  85. package/dist-esm/src/serializers/registrationSerializer.js +375 -0
  86. package/dist-esm/src/serializers/registrationSerializer.js.map +1 -0
  87. package/dist-esm/src/utils/connectionStringUtils.js +37 -0
  88. package/dist-esm/src/utils/connectionStringUtils.js.map +1 -0
  89. package/dist-esm/src/utils/constants.js +11 -0
  90. package/dist-esm/src/utils/constants.js.map +1 -0
  91. package/dist-esm/src/utils/retryPolicy.js +144 -0
  92. package/dist-esm/src/utils/retryPolicy.js.map +1 -0
  93. package/dist-esm/src/utils/tracing.js +13 -0
  94. package/dist-esm/src/utils/tracing.js.map +1 -0
  95. package/dist-esm/src/utils/utils.js +130 -0
  96. package/dist-esm/src/utils/utils.js.map +1 -0
  97. package/dist-esm/src/utils/xmlUtils.js +101 -0
  98. package/dist-esm/src/utils/xmlUtils.js.map +1 -0
  99. package/package.json +144 -0
  100. package/types/3.1/notification-hubs.d.ts +1728 -0
  101. package/types/latest/notification-hubs.d.ts +1840 -0
  102. package/types/latest/tsdoc-metadata.json +11 -0
  103. package/types/src/client/cancelScheduledNotification.d.ts +13 -0
  104. package/types/src/client/cancelScheduledNotification.d.ts.map +1 -0
  105. package/types/src/client/createOrUpdateInstallation.d.ts +13 -0
  106. package/types/src/client/createOrUpdateInstallation.d.ts.map +1 -0
  107. package/types/src/client/createOrUpdateRegistration.d.ts +12 -0
  108. package/types/src/client/createOrUpdateRegistration.d.ts.map +1 -0
  109. package/types/src/client/createRegistration.d.ts +13 -0
  110. package/types/src/client/createRegistration.d.ts.map +1 -0
  111. package/types/src/client/createRegistrationId.d.ts +10 -0
  112. package/types/src/client/createRegistrationId.d.ts.map +1 -0
  113. package/types/src/client/deleteInstallation.d.ts +12 -0
  114. package/types/src/client/deleteInstallation.d.ts.map +1 -0
  115. package/types/src/client/deleteRegistration.d.ts +12 -0
  116. package/types/src/client/deleteRegistration.d.ts.map +1 -0
  117. package/types/src/client/getFeedbackContainerUrl.d.ts +11 -0
  118. package/types/src/client/getFeedbackContainerUrl.d.ts.map +1 -0
  119. package/types/src/client/getInstallation.d.ts +12 -0
  120. package/types/src/client/getInstallation.d.ts.map +1 -0
  121. package/types/src/client/getNotificationHubJob.d.ts +12 -0
  122. package/types/src/client/getNotificationHubJob.d.ts.map +1 -0
  123. package/types/src/client/getNotificationOutcomeDetails.d.ts +13 -0
  124. package/types/src/client/getNotificationOutcomeDetails.d.ts.map +1 -0
  125. package/types/src/client/getRegistration.d.ts +12 -0
  126. package/types/src/client/getRegistration.d.ts.map +1 -0
  127. package/types/src/client/index.d.ts +41 -0
  128. package/types/src/client/index.d.ts.map +1 -0
  129. package/types/src/client/internal/_client.d.ts +26 -0
  130. package/types/src/client/internal/_client.d.ts.map +1 -0
  131. package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts +8 -0
  132. package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
  133. package/types/src/client/internal/_scheduleNotificationPayload.d.ts +9 -0
  134. package/types/src/client/internal/_scheduleNotificationPayload.d.ts.map +1 -0
  135. package/types/src/client/internal/_sendNotificationPayload.d.ts +10 -0
  136. package/types/src/client/internal/_sendNotificationPayload.d.ts.map +1 -0
  137. package/types/src/client/listNotificationHubJobs.d.ts +11 -0
  138. package/types/src/client/listNotificationHubJobs.d.ts.map +1 -0
  139. package/types/src/client/listRegistrations.d.ts +12 -0
  140. package/types/src/client/listRegistrations.d.ts.map +1 -0
  141. package/types/src/client/listRegistrationsByTag.d.ts +13 -0
  142. package/types/src/client/listRegistrationsByTag.d.ts.map +1 -0
  143. package/types/src/client/scheduleBroadcastNotification.d.ts +16 -0
  144. package/types/src/client/scheduleBroadcastNotification.d.ts.map +1 -0
  145. package/types/src/client/scheduleNotification.d.ts +17 -0
  146. package/types/src/client/scheduleNotification.d.ts.map +1 -0
  147. package/types/src/client/sendBroadcastNotification.d.ts +14 -0
  148. package/types/src/client/sendBroadcastNotification.d.ts.map +1 -0
  149. package/types/src/client/sendDirectNotification.d.ts +16 -0
  150. package/types/src/client/sendDirectNotification.d.ts.map +1 -0
  151. package/types/src/client/sendNotification.d.ts +15 -0
  152. package/types/src/client/sendNotification.d.ts.map +1 -0
  153. package/types/src/client/submitNotificationHubJob.d.ts +13 -0
  154. package/types/src/client/submitNotificationHubJob.d.ts.map +1 -0
  155. package/types/src/client/updateInstallation.d.ts +14 -0
  156. package/types/src/client/updateInstallation.d.ts.map +1 -0
  157. package/types/src/client/updateRegistration.d.ts +12 -0
  158. package/types/src/client/updateRegistration.d.ts.map +1 -0
  159. package/types/src/index.d.ts +10 -0
  160. package/types/src/index.d.ts.map +1 -0
  161. package/types/src/models/installation.d.ts +200 -0
  162. package/types/src/models/installation.d.ts.map +1 -0
  163. package/types/src/models/notification.d.ts +166 -0
  164. package/types/src/models/notification.d.ts.map +1 -0
  165. package/types/src/models/notificationBuilder.d.ts +546 -0
  166. package/types/src/models/notificationBuilder.d.ts.map +1 -0
  167. package/types/src/models/notificationDetails.d.ts +87 -0
  168. package/types/src/models/notificationDetails.d.ts.map +1 -0
  169. package/types/src/models/notificationHubJob.d.ts +104 -0
  170. package/types/src/models/notificationHubJob.d.ts.map +1 -0
  171. package/types/src/models/options.d.ts +43 -0
  172. package/types/src/models/options.d.ts.map +1 -0
  173. package/types/src/models/registration.d.ts +368 -0
  174. package/types/src/models/registration.d.ts.map +1 -0
  175. package/types/src/models/response.d.ts +41 -0
  176. package/types/src/models/response.d.ts.map +1 -0
  177. package/types/src/notificationHubsClient.d.ts +190 -0
  178. package/types/src/notificationHubsClient.d.ts.map +1 -0
  179. package/types/src/serializers/notificationDetailsSerializer.d.ts +7 -0
  180. package/types/src/serializers/notificationDetailsSerializer.d.ts.map +1 -0
  181. package/types/src/serializers/notificationHubJobSerializer.d.ts +21 -0
  182. package/types/src/serializers/notificationHubJobSerializer.d.ts.map +1 -0
  183. package/types/src/serializers/registrationSerializer.d.ts +193 -0
  184. package/types/src/serializers/registrationSerializer.d.ts.map +1 -0
  185. package/types/src/utils/connectionStringUtils.d.ts +37 -0
  186. package/types/src/utils/connectionStringUtils.d.ts.map +1 -0
  187. package/types/src/utils/constants.d.ts +9 -0
  188. package/types/src/utils/constants.d.ts.map +1 -0
  189. package/types/src/utils/retryPolicy.d.ts +72 -0
  190. package/types/src/utils/retryPolicy.d.ts.map +1 -0
  191. package/types/src/utils/tracing.d.ts +6 -0
  192. package/types/src/utils/tracing.d.ts.map +1 -0
  193. package/types/src/utils/utils.d.ts +65 -0
  194. package/types/src/utils/utils.d.ts.map +1 -0
  195. package/types/src/utils/xmlUtils.d.ts +46 -0
  196. package/types/src/utils/xmlUtils.d.ts.map +1 -0
@@ -0,0 +1,546 @@
1
+ import { AdmNotification, AppleNotification, BaiduNotification, FirebaseLegacyNotification, WindowsNotification } from "./notification.js";
2
+ /**
3
+ * Represents what is in the APNs alert body.
4
+ */
5
+ export interface AppleAlert {
6
+ /**
7
+ * The title of the notification. Apple Watch displays this string in the short look notification
8
+ * interface. Specify a string that’s quickly understood by the user.
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Additional information that explains the purpose of the notification.
13
+ */
14
+ subtitle?: string;
15
+ /**
16
+ * The content of the alert message.
17
+ */
18
+ body?: string;
19
+ /**
20
+ * The name of the launch image file to display. If the user chooses to launch your app,
21
+ * the contents of the specified image or storyboard file are displayed instead of your app’s normal launch image.
22
+ */
23
+ launchImage?: string;
24
+ /**
25
+ * The key for a localized title string. Specify this key instead of the title key to retrieve
26
+ * the title from your app’s Localizable.strings files. The value must contain the name of a key in your strings file.
27
+ */
28
+ titleLocKey?: string;
29
+ /**
30
+ * An array of strings containing replacement values for variables in your title string.
31
+ * Each %\@ character in the string specified by the title-loc-key is replaced by a value
32
+ * from this array. The first item in the array replaces the first instance
33
+ * of the %\@ character in the string, the second item replaces the second instance, and so on.
34
+ */
35
+ titleLocArgs?: string[];
36
+ /**
37
+ * The key for a localized subtitle string. Use this key, instead of the subtitle key, to
38
+ * retrieve the subtitle from your app’s Localizable.strings file.
39
+ * The value must contain the name of a key in your strings file.
40
+ */
41
+ subtitleLocKey?: string;
42
+ /**
43
+ * An array of strings containing replacement values for variables in your title string.
44
+ * Each %\@ character in the string specified by subtitle-loc-key is replaced by a value
45
+ * from this array. The first item in the array replaces the first instance of the
46
+ * %\@ character in the string, the second item replaces the second instance, and so on.
47
+ */
48
+ subtitleLocArgs?: string[];
49
+ /**
50
+ * The key for a localized message string. Use this key, instead of the body key, to
51
+ * retrieve the message text from your app’s Localizable.strings file. The value must contain
52
+ * the name of a key in your strings file.
53
+ */
54
+ locKey?: string;
55
+ /**
56
+ * An array of strings containing replacement values for variables in your message text.
57
+ * Each %\@ character in the string specified by loc-key is replaced by a value from
58
+ * this array. The first item in the array replaces the first instance of the %\@ character
59
+ * in the string, the second item replaces the second instance, and so on.
60
+ */
61
+ locArgs?: string[];
62
+ }
63
+ /**
64
+ * Represents an APNs critical sound
65
+ */
66
+ export interface AppleCriticalSound {
67
+ /**
68
+ * The critical alert flag. Set to 1 to enable the critical alert.
69
+ */
70
+ critical: number;
71
+ /**
72
+ * The name of a sound file in your app’s main bundle or in the Library/Sounds folder
73
+ * of your app’s container directory. Specify the string “default” to play the system sound.
74
+ */
75
+ name: string;
76
+ /**
77
+ * The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).
78
+ */
79
+ volume: number;
80
+ }
81
+ /**
82
+ * Represents a native APNs message.
83
+ */
84
+ export interface AppleNativeMessage extends Record<string, any> {
85
+ /**
86
+ * The information for displaying an alert.
87
+ */
88
+ alert?: string | AppleAlert;
89
+ /**
90
+ * The number to display in a badge on your app’s icon.
91
+ */
92
+ badge?: number;
93
+ /**
94
+ * The name of a sound file in your app’s main bundle or in the Library/Sounds
95
+ * folder of your app’s container directory. Specify the string “default” to
96
+ * play the system sound. Use this key for regular notifications.
97
+ * For critical alerts, use the sound dictionary instead.
98
+ */
99
+ sound?: string | AppleCriticalSound;
100
+ /**
101
+ * An app-specific identifier for grouping related notifications.
102
+ */
103
+ threadId?: string;
104
+ /**
105
+ * The notification’s type.
106
+ */
107
+ category?: string;
108
+ /**
109
+ * The background notification flag. To perform a silent background update,
110
+ * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
111
+ */
112
+ contentAvailable?: number;
113
+ /**
114
+ * The notification service app extension flag. If the value is 1, the system passes
115
+ * the notification to your notification service app extension before delivery.
116
+ */
117
+ mutableContent?: number;
118
+ /**
119
+ * The identifier of the window brought forward.
120
+ */
121
+ targetContentId?: string;
122
+ /**
123
+ * The importance and delivery timing of a notification.
124
+ */
125
+ interruptionLevel?: "passive" | "active" | "time-sensitive" | "critical";
126
+ /**
127
+ * The relevance score, a number between 0 and 1, that the system uses to sort the
128
+ * notifications from your app. The highest score gets featured in the notification summary.
129
+ */
130
+ relevanceScore?: number;
131
+ /**
132
+ * The criteria the system evaluates to determine if it displays the notification in the current Focus.
133
+ */
134
+ filterCriteria?: string;
135
+ }
136
+ /**
137
+ * Creates an APNs native message to send to Notification Hubs.
138
+ * @param nativeMessage - The Apple native message properties to set.
139
+ * @param additionalProperties - Additional properties for Apple messages.
140
+ * @returns An AppleNotification to send to Notification Hubs.
141
+ */
142
+ export declare function buildAppleNativeMessage(nativeMessage: AppleNativeMessage, additionalProperties?: Record<string, any>): AppleNotification;
143
+ /**
144
+ * Represents the targets, options, and payload for HTTP JSON messages for the Firebase Legacy HTTP interface.
145
+ */
146
+ export interface FirebaseLegacyNativeMessage {
147
+ /**
148
+ * The recipient of a message.
149
+ */
150
+ to?: string;
151
+ /**
152
+ * The recipient of a multicast message, a message sent to more than one registration token.
153
+ */
154
+ registrationIds?: string[];
155
+ /**
156
+ * A logical expression of conditions that determine the message target.
157
+ */
158
+ condition?: string;
159
+ /**
160
+ * Used to identify a group of messages.
161
+ */
162
+ collapseKey?: string;
163
+ /**
164
+ * The priority of the message.
165
+ */
166
+ priority?: "normal" | "high";
167
+ /**
168
+ * The background notification flag. To perform a silent background update,
169
+ * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
170
+ */
171
+ contentAvailable?: boolean;
172
+ /**
173
+ * The notification service app extension flag. If the value is 1, the system passes
174
+ * the notification to your notification service app extension before delivery.
175
+ */
176
+ mutableContent?: number;
177
+ /**
178
+ * Specifies how long (in seconds) the message should be kept in FCM storage if the device is offline
179
+ */
180
+ timeToLive?: number;
181
+ /**
182
+ * The package name of the application where the registration tokens must match in order to receive the message.
183
+ */
184
+ restrictedPackageName?: string;
185
+ /**
186
+ * When set to true, allows developers to test a request without actually sending a message.
187
+ */
188
+ dryRun?: boolean;
189
+ /**
190
+ * Custom key-value pairs of the message's payload.
191
+ */
192
+ data?: Record<string, any>;
193
+ /**
194
+ * The predefined, user-visible key-value pairs of the notification payload.
195
+ */
196
+ notification?: FirebaseLegacyAppleNativePayload | FirebaseLegacyAndroidNativePayload | FirebaseLegacyWebNativePayload;
197
+ }
198
+ /**
199
+ * Represents an APNs native payload for the Firebase Legacy HTTP interface.
200
+ */
201
+ export interface FirebaseLegacyAppleNativePayload {
202
+ /**
203
+ * The notification's title.
204
+ */
205
+ title?: string;
206
+ /**
207
+ * The notification's body text.
208
+ */
209
+ body?: string;
210
+ /**
211
+ * The sound to play when the device receives the notification.
212
+ */
213
+ sound?: string;
214
+ /**
215
+ * The value of the badge on the home screen app icon.
216
+ */
217
+ badge?: string;
218
+ /**
219
+ * The action associated with a user click on the notification which corresponds to the APNs category.
220
+ */
221
+ clickAction?: string;
222
+ /**
223
+ * The notification's subtitle.
224
+ */
225
+ subtitle?: string;
226
+ /**
227
+ * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
228
+ */
229
+ bodyLocKey?: string;
230
+ /**
231
+ * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
232
+ */
233
+ bodyLocArgs?: string[];
234
+ /**
235
+ * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
236
+ */
237
+ titleLocKey?: string;
238
+ /**
239
+ * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
240
+ */
241
+ titleLocArgs?: string[];
242
+ }
243
+ /**
244
+ * Represents an Android native payload for the Firebase Legacy HTTP interface.
245
+ */
246
+ export interface FirebaseLegacyAndroidNativePayload {
247
+ /**
248
+ * The notification's title.
249
+ */
250
+ title?: string;
251
+ /**
252
+ * The notification's body text.
253
+ */
254
+ body?: string;
255
+ /**
256
+ * The notification's channel ID.
257
+ */
258
+ androidChannelId?: string;
259
+ /**
260
+ * The notification's icon.
261
+ */
262
+ icon?: string;
263
+ /**
264
+ * The sound to play when the device receives the notification.
265
+ */
266
+ sound?: string;
267
+ /**
268
+ * Identifier used to replace existing notifications in the notification drawer.
269
+ */
270
+ tag?: string;
271
+ /**
272
+ * The notification's icon color, expressed in #rrggbb format.
273
+ */
274
+ color?: string;
275
+ /**
276
+ * The action associated with a user click on the notification.
277
+ */
278
+ clickAction?: string;
279
+ /**
280
+ * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
281
+ */
282
+ bodyLocKey?: string;
283
+ /**
284
+ * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
285
+ */
286
+ bodyLocArgs?: string[];
287
+ /**
288
+ * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
289
+ */
290
+ titleLocKey?: string;
291
+ /**
292
+ * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
293
+ */
294
+ titleLocArgs?: string[];
295
+ }
296
+ /**
297
+ * Represents an Web Push native payload for the Firebase Legacy HTTP interface.
298
+ */
299
+ export interface FirebaseLegacyWebNativePayload {
300
+ /**
301
+ * The notification's title.
302
+ */
303
+ title?: string;
304
+ /**
305
+ * The notification's body text.
306
+ */
307
+ body?: string;
308
+ /**
309
+ * The URL to use for the notification's icon.
310
+ */
311
+ icon?: string;
312
+ /**
313
+ * The action associated with a user click on the notification.
314
+ */
315
+ clickAction?: string;
316
+ }
317
+ /**
318
+ * Creates a FirebaseLegacyNotification from a native Firebase payload.
319
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
320
+ * @returns The FirebaseLegacyNotification to send to Notification Hubs.
321
+ */
322
+ export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage): FirebaseLegacyNotification;
323
+ /**
324
+ * Describes ADM notification messages.
325
+ */
326
+ export interface AdmNativeNotification {
327
+ /**
328
+ * The notification's title.
329
+ */
330
+ title?: string;
331
+ /**
332
+ * The notification's body text.
333
+ */
334
+ body?: string;
335
+ /**
336
+ * The notification's icon.
337
+ */
338
+ icon?: string;
339
+ /**
340
+ * The notification's icon color, expressed in #rrggbb format.
341
+ */
342
+ color?: string;
343
+ /**
344
+ * The sound to play when the device receives the notification. Supports "default" or the filename of a sound resource bundled in the app.
345
+ */
346
+ sound?: string;
347
+ /**
348
+ * Identifier used to replace existing notifications in the notification drawer.
349
+ */
350
+ tag?: string;
351
+ /**
352
+ * The action associated with a user click on the notification.
353
+ */
354
+ clickAction?: string;
355
+ /**
356
+ * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
357
+ */
358
+ bodyLocKey?: string;
359
+ /**
360
+ * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
361
+ */
362
+ bodyLocArgs?: string[];
363
+ /**
364
+ * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
365
+ */
366
+ titleLocKey?: string;
367
+ /**
368
+ * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
369
+ */
370
+ titleLocArgs?: string[];
371
+ /**
372
+ * The notification's channel id.
373
+ */
374
+ channelId?: string;
375
+ /**
376
+ * Sets the "ticker" text, which is sent to accessibility services.
377
+ */
378
+ ticker?: string;
379
+ /**
380
+ * When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel.
381
+ */
382
+ sticky?: boolean;
383
+ /**
384
+ * Set the time that the event in the notification occurred. Must be a timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
385
+ */
386
+ eventTime?: string;
387
+ /**
388
+ * Set whether or not this notification is relevant only to the current device.
389
+ */
390
+ localOnly?: boolean;
391
+ /**
392
+ * Set the relative priority for this notification.
393
+ */
394
+ notificationPriority?: number;
395
+ /**
396
+ * If set to true, use the Android framework's default sound for the notification.
397
+ */
398
+ defaultSound?: boolean;
399
+ /**
400
+ * Set the Notification.visibility of the notification.
401
+ */
402
+ visibility?: number;
403
+ /**
404
+ * Sets the number of items this notification represents.
405
+ */
406
+ notificationCount?: number;
407
+ /**
408
+ * Contains the URL of an image that is going to be displayed in a notification.
409
+ */
410
+ image?: string;
411
+ }
412
+ /**
413
+ * Represents a native ADM notification message payload.
414
+ */
415
+ export interface AdmNativeMessage {
416
+ /**
417
+ * The notification payload to send with the message.
418
+ */
419
+ notification?: AdmNativeNotification;
420
+ /**
421
+ * The payload data to send with the message.
422
+ */
423
+ data?: Record<string, string>;
424
+ /**
425
+ * The priority of the msssage.
426
+ */
427
+ priority?: "normal" | "high";
428
+ /**
429
+ * This is an arbitrary string used to indicate that multiple messages are logically the same
430
+ * and that ADM is allowed to drop previously enqueued messages in favor of this new one.
431
+ */
432
+ consolidationKey?: string;
433
+ /**
434
+ * The number of seconds that ADM should retain the message if the device is offline.
435
+ */
436
+ expiresAfter?: number;
437
+ /**
438
+ * This is a base-64-encoded MD5 checksum of the data parameter.
439
+ */
440
+ md5?: string;
441
+ }
442
+ /**
443
+ * Creates a AdmNotification from a native ADM payload.
444
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
445
+ * @returns The AdmNotification to send to Notification Hubs.
446
+ */
447
+ export declare function buildAdmNativeMessage(nativeMessage: AdmNativeMessage): AdmNotification;
448
+ /**
449
+ * Represents the Baidu Apple native payload.
450
+ */
451
+ export interface BaiduAppleNativePayload {
452
+ /**
453
+ * The alert string.
454
+ */
455
+ alert?: string;
456
+ /**
457
+ * The APNs sound to play.
458
+ */
459
+ sound?: string;
460
+ /**
461
+ * The APNs badge count.
462
+ */
463
+ badge?: number;
464
+ }
465
+ /**
466
+ * Baidu Native Format:
467
+ * https://stackoverflow.com/questions/42591815/customize-baidu-push-json-payload
468
+ * http://www.tuicool.com/articles/ZnmANn
469
+ */
470
+ export interface BaiduNativeMessage extends Record<string, any> {
471
+ /**
472
+ * Notification title for Android.
473
+ */
474
+ title?: string;
475
+ /**
476
+ * Baidu Notification description for Android.
477
+ */
478
+ description?: string;
479
+ /**
480
+ * Baidu Notification builder ID.
481
+ */
482
+ notificationBuilderId?: number;
483
+ /**
484
+ * Baidu Notification Android basic style.
485
+ */
486
+ notificationBasicStyle?: number;
487
+ /**
488
+ * Baidu Android open type.
489
+ */
490
+ openType?: number;
491
+ /**
492
+ * Baidu Android net support option.
493
+ */
494
+ netSupport?: number;
495
+ /**
496
+ * Baidu Android user confirm.
497
+ */
498
+ userConfirm?: number;
499
+ /**
500
+ * Baidu Android URL.
501
+ */
502
+ url?: string;
503
+ /**
504
+ * Baidu Android package content.
505
+ */
506
+ pkgContent?: string;
507
+ /**
508
+ * Baidu Android package version.
509
+ */
510
+ pkgVersion?: string;
511
+ /**
512
+ * Baidu Android custom content dictionary.
513
+ */
514
+ customContent?: Record<string, any>;
515
+ /**
516
+ * Baidu APNs support.
517
+ */
518
+ aps?: BaiduAppleNativePayload;
519
+ }
520
+ /**
521
+ * Creates a BaiduNotification from a native Baidu payload.
522
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
523
+ * @param additionalProperties - Additional properties for Apple Baidu messages.
524
+ * @returns The BaiduNotification to send to Notification Hubs.
525
+ */
526
+ export declare function buildBaiduNativeMessage(nativeMessage: BaiduNativeMessage, additionalProperties?: Record<string, any>): BaiduNotification;
527
+ /**
528
+ * Represents the types of Windows Badge Glyphs
529
+ */
530
+ export declare type WindowsBadgeGlyphType = "none" | "activity" | "alarm" | "alert" | "attention" | "available" | "away" | "busy" | "error" | "newMessage" | "paused" | "playing" | "unavailable";
531
+ /**
532
+ * Represents the Windows Badge Message
533
+ */
534
+ export interface WindowsBadgeNativeMessage {
535
+ /**
536
+ * Either a numeric value or a string value that specifies a predefined badge glyph.
537
+ */
538
+ value: WindowsBadgeGlyphType | number;
539
+ }
540
+ /**
541
+ * Builds a WindowsNotification from a Windows Badge.
542
+ * @param nativeMessage - The Windows Badge Message to build.
543
+ * @returns A WindowsNotification created with the badge information.
544
+ */
545
+ export declare function buildWindowsBadgeNativeMessage(nativeMessage: WindowsBadgeNativeMessage): WindowsNotification;
546
+ //# sourceMappingURL=notificationBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/models/notificationBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EAMpB,MAAM,mBAAmB,CAAC;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aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEpC;;OAEG;IACH,GAAG,CAAC,EAAE,uBAAuB,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,kBAAkB,EACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzC,iBAAiB,CAoBnB;AAED;;GAEG;AACH,oBAAY,qBAAqB,GAC7B,MAAM,GACN,UAAU,GACV,OAAO,GACP,OAAO,GACP,WAAW,GACX,WAAW,GACX,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,qBAAqB,GAAG,MAAM,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,yBAAyB,GACvC,mBAAmB,CAQrB"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Represents the notification outcome states.
3
+ */
4
+ export declare type NotificationOutcomeState = "Enqueued" | "DetailedStateAvailable" | "Processing" | "Completed" | "Abandoned" | "Unknown" | "NoTargetFound" | "Cancelled";
5
+ /**
6
+ * The per platform count per state.
7
+ */
8
+ export interface NotificationOutcomeCollectionItem {
9
+ /**
10
+ * The state of the notification.
11
+ */
12
+ state: string;
13
+ /**
14
+ * The count of notifications per state.
15
+ */
16
+ count: number;
17
+ }
18
+ /**
19
+ * Represents Notification details.
20
+ */
21
+ export interface NotificationDetails {
22
+ /**
23
+ * The unique notification identifier.
24
+ */
25
+ notificationId?: string;
26
+ /**
27
+ * The notification location.
28
+ */
29
+ location?: string;
30
+ /**
31
+ * The notification state.
32
+ */
33
+ state?: NotificationOutcomeState;
34
+ /**
35
+ * The enqueue time of the notification.
36
+ */
37
+ enqueueTime?: Date;
38
+ /**
39
+ * The notification send start time.
40
+ */
41
+ startTime?: Date;
42
+ /**
43
+ * The notification send end time.
44
+ */
45
+ endTime?: Date;
46
+ /**
47
+ * The notification body.
48
+ */
49
+ notificationBody?: string;
50
+ /**
51
+ * The notification tags.
52
+ */
53
+ tags?: string;
54
+ /**
55
+ * The notification platforms targeted.
56
+ */
57
+ targetPlatforms?: string;
58
+ /**
59
+ * The URL for the platform notification services errors.
60
+ */
61
+ pnsErrorDetailsUrl?: string;
62
+ /**
63
+ * APNs outcomes counts per state.
64
+ */
65
+ apnsOutcomeCounts?: NotificationOutcomeCollectionItem[];
66
+ /**
67
+ * WNS outcomes counts per state.
68
+ */
69
+ wnsOutcomeCounts?: NotificationOutcomeCollectionItem[];
70
+ /**
71
+ * FCM outcome counts per state.
72
+ */
73
+ fcmOutcomeCounts?: NotificationOutcomeCollectionItem[];
74
+ /**
75
+ * ADM outcome counts per state.
76
+ */
77
+ admOutcomeCounts?: NotificationOutcomeCollectionItem[];
78
+ /**
79
+ * Baidu outcome counts per state.
80
+ */
81
+ baiduOutcomeCounts?: NotificationOutcomeCollectionItem[];
82
+ /**
83
+ * Web Push outcome counts per state.
84
+ */
85
+ browserOutcomeCounts?: NotificationOutcomeCollectionItem[];
86
+ }
87
+ //# sourceMappingURL=notificationDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationDetails.d.ts","sourceRoot":"","sources":["../../../src/models/notificationDetails.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,wBAAwB,GAChC,UAAU,GACV,wBAAwB,GACxB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,SAAS,GACT,eAAe,GACf,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAExD;;OAEG;IACH,gBAAgB,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAEvD;;OAEG;IACH,gBAAgB,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAEvD;;OAEG;IACH,gBAAgB,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAEvD;;OAEG;IACH,kBAAkB,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAEzD;;OAEG;IACH,oBAAoB,CAAC,EAAE,iCAAiC,EAAE,CAAC;CAC5D"}