@openfin/cloud-notification-core-api 0.0.1-alpha.95e2c08 → 0.0.1-alpha.9608686

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/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @openfin/cloud-notification-core-api
2
2
 
3
- This package contains the core notification library that handles all interactions with the Here™ Cloud Notification Service.
3
+ This package contains the core notification library that handles all interactions with the HERE Cloud Notification Service.
4
4
 
5
5
  It is callable via browser or node applications.
6
6
 
7
7
 
8
8
  ## Authentication
9
9
 
10
- The library supports authentication with the Here™ Cloud Notification Service using the following methods:
10
+ The library supports authentication with the HERE Cloud Notification Service using the following methods:
11
11
  - Basic Authentication
12
12
  - JWT Token Authentication
13
13
  - Default Authentication i.e. Interactive session based authentication using cookies
package/bundle.d.ts CHANGED
@@ -85,13 +85,13 @@ export declare class CloudNotificationAPI {
85
85
  /**
86
86
  * Posts a notification event to the Cloud Notification service.
87
87
  *
88
- * @param notificationId - The ID of the notification.
88
+ * @param notificationId - The ID of the notification or an array of notification IDs.
89
89
  * @param event - The event details, including category, type, and optional payload.
90
90
  * @returns A promise that resolves when the event is posted.
91
91
  * @throws {@link SessionNotConnectedError} If the session is not connected.
92
92
  * @throws {@link PublishError} If an error occurs during publishing.
93
93
  */
94
- postNotificationEvent(notificationId: string, event: {
94
+ postNotificationEvent(notificationId: string | string[], event: {
95
95
  category: string;
96
96
  type: string;
97
97
  payload?: unknown;
@@ -107,22 +107,22 @@ export declare class CloudNotificationAPI {
107
107
  /**
108
108
  * Post a notification-reminder-created event to the Cloud Notification service.
109
109
  *
110
- * @param notificationId - The ID of the notification to mark as a reminder.
110
+ * @param notificationId - The ID of the notification or an array of notification IDs to mark as a reminder.
111
111
  * @param payload - The payload of the reminder.
112
112
  * @returns A promise that resolves when the notification-reminder-created event is posted.
113
113
  * @throws {@link SessionNotConnectedError} If the session is not connected.
114
114
  */
115
115
  setReminder<T extends {
116
116
  reminderDate: Date;
117
- }>(notificationId: string, payload: T, targets: NotificationTargets): Promise<void>;
117
+ }>(notificationId: string | string[], payload: T, targets: NotificationTargets): Promise<void>;
118
118
  /**
119
119
  * Post a notification-reminder-removed event to the Cloud Notification service.
120
120
  *
121
- * @param notificationId - The ID of the notification to cancel the reminder for.
121
+ * @param notificationId - The ID of the notification or an array of notification IDs to cancel the reminder for.
122
122
  * @returns A promise that resolves when the notification-reminder-removed event is posted.
123
123
  * @throws {@link SessionNotConnectedError} If the session is not connected.
124
124
  */
125
- cancelReminder(notificationId: string, targets: NotificationTargets): Promise<void>;
125
+ cancelReminder(notificationId: string | string[], targets: NotificationTargets): Promise<void>;
126
126
  /**
127
127
  * Raises a notification to the Cloud Notification service.
128
128
  *
@@ -152,7 +152,7 @@ export declare class CloudNotificationAPI {
152
152
  * @returns A promise that resolves when the notification is deleted.
153
153
  * @throws {@link SessionNotConnectedError} If the session is not connected.
154
154
  */
155
- deleteNotification(notificationId: string): Promise<void>;
155
+ deleteNotification(notificationId: string | string[]): Promise<void>;
156
156
  /**
157
157
  * Replays notifications from the Cloud Notification service.
158
158
  *
@@ -420,6 +420,10 @@ export declare class CloudNotificationAPI {
420
420
  * The source identifier
421
421
  */
422
422
  sourceId: string;
423
+ /**
424
+ * The originating session identifier
425
+ */
426
+ originatingSessionId: string;
423
427
  /**
424
428
  * The platform identifier
425
429
  */