@novu/api 3.14.3 → 3.14.4
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 +32 -32
- package/funcs/environmentVariablesCreate.d.ts +1 -1
- package/funcs/environmentVariablesCreate.js +1 -1
- package/funcs/environmentVariablesDelete.d.ts +1 -1
- package/funcs/environmentVariablesDelete.js +1 -1
- package/funcs/environmentVariablesList.d.ts +1 -1
- package/funcs/environmentVariablesList.js +1 -1
- package/funcs/environmentVariablesRetrieve.d.ts +1 -1
- package/funcs/environmentVariablesRetrieve.js +1 -1
- package/funcs/environmentVariablesUpdate.d.ts +1 -1
- package/funcs/environmentVariablesUpdate.js +1 -1
- package/funcs/environmentVariablesUsage.d.ts +2 -2
- package/funcs/environmentVariablesUsage.js +2 -2
- package/funcs/subscribersNotificationsArchive.d.ts +2 -2
- package/funcs/subscribersNotificationsArchive.js +2 -2
- package/funcs/subscribersNotificationsArchiveAll.d.ts +1 -1
- package/funcs/subscribersNotificationsArchiveAll.js +1 -1
- package/funcs/subscribersNotificationsArchiveAllRead.d.ts +1 -1
- package/funcs/subscribersNotificationsArchiveAllRead.js +1 -1
- package/funcs/subscribersNotificationsCompleteAction.d.ts +2 -2
- package/funcs/subscribersNotificationsCompleteAction.js +2 -2
- package/funcs/subscribersNotificationsCount.d.ts +2 -2
- package/funcs/subscribersNotificationsCount.js +2 -2
- package/funcs/subscribersNotificationsDelete.d.ts +2 -2
- package/funcs/subscribersNotificationsDelete.js +2 -2
- package/funcs/subscribersNotificationsDeleteAll.d.ts +1 -1
- package/funcs/subscribersNotificationsDeleteAll.js +1 -1
- package/funcs/subscribersNotificationsList.d.ts +1 -1
- package/funcs/subscribersNotificationsList.js +1 -1
- package/funcs/subscribersNotificationsMarkAllAsRead.d.ts +1 -1
- package/funcs/subscribersNotificationsMarkAllAsRead.js +1 -1
- package/funcs/subscribersNotificationsMarkAsRead.d.ts +2 -2
- package/funcs/subscribersNotificationsMarkAsRead.js +2 -2
- package/funcs/subscribersNotificationsMarkAsSeen.d.ts +1 -1
- package/funcs/subscribersNotificationsMarkAsSeen.js +1 -1
- package/funcs/subscribersNotificationsMarkAsUnread.d.ts +2 -2
- package/funcs/subscribersNotificationsMarkAsUnread.js +2 -2
- package/funcs/subscribersNotificationsRevertAction.d.ts +2 -2
- package/funcs/subscribersNotificationsRevertAction.js +2 -2
- package/funcs/subscribersNotificationsSnooze.d.ts +2 -2
- package/funcs/subscribersNotificationsSnooze.js +2 -2
- package/funcs/subscribersNotificationsUnarchive.d.ts +2 -2
- package/funcs/subscribersNotificationsUnarchive.js +2 -2
- package/funcs/subscribersNotificationsUnsnooze.d.ts +2 -2
- package/funcs/subscribersNotificationsUnsnooze.js +2 -2
- package/funcs/workflowsStepsGeneratePreview.d.ts +1 -1
- package/funcs/workflowsStepsGeneratePreview.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/getchannelconnectionresponsedto.d.ts +1 -0
- package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
- package/models/components/getchannelconnectionresponsedto.js +1 -0
- package/models/components/getchannelconnectionresponsedto.js.map +1 -1
- package/models/components/getchannelendpointresponsedto.d.ts +1 -0
- package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
- package/models/components/getchannelendpointresponsedto.js +1 -0
- package/models/components/getchannelendpointresponsedto.js.map +1 -1
- package/models/components/providersidenum.d.ts +1 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +1 -0
- package/models/components/providersidenum.js.map +1 -1
- package/package.json +1 -1
- package/sdk/environmentvariables.d.ts +7 -7
- package/sdk/environmentvariables.js +7 -7
- package/sdk/novunotifications.d.ts +26 -26
- package/sdk/novunotifications.js +26 -26
- package/sdk/steps.d.ts +1 -1
- package/sdk/steps.js +1 -1
- package/src/funcs/environmentVariablesCreate.ts +1 -1
- package/src/funcs/environmentVariablesDelete.ts +1 -1
- package/src/funcs/environmentVariablesList.ts +1 -1
- package/src/funcs/environmentVariablesRetrieve.ts +1 -1
- package/src/funcs/environmentVariablesUpdate.ts +1 -1
- package/src/funcs/environmentVariablesUsage.ts +2 -2
- package/src/funcs/subscribersNotificationsArchive.ts +2 -2
- package/src/funcs/subscribersNotificationsArchiveAll.ts +1 -1
- package/src/funcs/subscribersNotificationsArchiveAllRead.ts +1 -1
- package/src/funcs/subscribersNotificationsCompleteAction.ts +2 -2
- package/src/funcs/subscribersNotificationsCount.ts +2 -2
- package/src/funcs/subscribersNotificationsDelete.ts +2 -2
- package/src/funcs/subscribersNotificationsDeleteAll.ts +1 -1
- package/src/funcs/subscribersNotificationsList.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAllAsRead.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAsRead.ts +2 -2
- package/src/funcs/subscribersNotificationsMarkAsSeen.ts +1 -1
- package/src/funcs/subscribersNotificationsMarkAsUnread.ts +2 -2
- package/src/funcs/subscribersNotificationsRevertAction.ts +2 -2
- package/src/funcs/subscribersNotificationsSnooze.ts +2 -2
- package/src/funcs/subscribersNotificationsUnarchive.ts +2 -2
- package/src/funcs/subscribersNotificationsUnsnooze.ts +2 -2
- package/src/funcs/workflowsStepsGeneratePreview.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/getchannelconnectionresponsedto.ts +1 -0
- package/src/models/components/getchannelendpointresponsedto.ts +1 -0
- package/src/models/components/providersidenum.ts +1 -0
- package/src/sdk/environmentvariables.ts +7 -7
- package/src/sdk/novunotifications.ts +26 -26
- package/src/sdk/steps.ts +1 -1
|
@@ -30,7 +30,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
30
30
|
* Retrieve subscriber notifications
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Retrieve in-app notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
33
|
+
* Retrieve in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
34
34
|
* Supports filtering by tags, read/archived/snoozed/seen state, data attributes, severity, date range, and context keys.
|
|
35
35
|
*/
|
|
36
36
|
async list(
|
|
@@ -47,10 +47,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Delete notification
|
|
50
|
+
* Delete a notification
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Delete a specific notification by its unique identifier **notificationId**.
|
|
53
|
+
* Delete a specific in-app (inbox) notification permanently by its unique identifier **notificationId**.
|
|
54
54
|
*/
|
|
55
55
|
async delete(
|
|
56
56
|
request: operations.SubscribersControllerDeleteNotificationRequest,
|
|
@@ -66,10 +66,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Complete notification action
|
|
69
|
+
* Complete a notification action
|
|
70
70
|
*
|
|
71
71
|
* @remarks
|
|
72
|
-
* Mark a notification action (primary or secondary) as completed by its unique identifier **notificationId** and action type
|
|
72
|
+
* Mark a single in-app (inbox) notification's action (primary or secondary) as completed by its unique identifier **notificationId** and action type **actionType**.
|
|
73
73
|
*/
|
|
74
74
|
async completeAction(
|
|
75
75
|
request: operations.SubscribersControllerCompleteNotificationActionRequest,
|
|
@@ -85,10 +85,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Revert notification action
|
|
88
|
+
* Revert a notification action
|
|
89
89
|
*
|
|
90
90
|
* @remarks
|
|
91
|
-
* Revert a notification action (primary or secondary) to pending state by its unique identifier **notificationId** and action type
|
|
91
|
+
* Revert a single in-app (inbox) notification's action (primary or secondary) to pending state by its unique identifier **notificationId** and action type **actionType**.
|
|
92
92
|
*/
|
|
93
93
|
async revertAction(
|
|
94
94
|
request: operations.SubscribersControllerRevertNotificationActionRequest,
|
|
@@ -102,10 +102,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Archive notification
|
|
105
|
+
* Archive a notification
|
|
106
106
|
*
|
|
107
107
|
* @remarks
|
|
108
|
-
* Archive a specific notification by its unique identifier **notificationId**.
|
|
108
|
+
* Archive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
109
109
|
*/
|
|
110
110
|
async archive(
|
|
111
111
|
request: operations.SubscribersControllerArchiveNotificationRequest,
|
|
@@ -119,10 +119,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
|
-
* Mark notification as read
|
|
122
|
+
* Mark a notification as read
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* Mark a specific notification as read by its unique identifier **notificationId**.
|
|
125
|
+
* Mark a specific in-app (inbox) notification as read by its unique identifier **notificationId**.
|
|
126
126
|
*/
|
|
127
127
|
async markAsRead(
|
|
128
128
|
request: operations.SubscribersControllerMarkNotificationAsReadRequest,
|
|
@@ -136,10 +136,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Snooze notification
|
|
139
|
+
* Snooze a notification
|
|
140
140
|
*
|
|
141
141
|
* @remarks
|
|
142
|
-
* Snooze a specific notification by its unique identifier **notificationId** until a specified time.
|
|
142
|
+
* Snooze a specific in-app (inbox) notification by its unique identifier **notificationId** until a specified time.
|
|
143
143
|
*/
|
|
144
144
|
async snooze(
|
|
145
145
|
request: operations.SubscribersControllerSnoozeNotificationRequest,
|
|
@@ -153,10 +153,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* Unarchive notification
|
|
156
|
+
* Unarchive a notification
|
|
157
157
|
*
|
|
158
158
|
* @remarks
|
|
159
|
-
* Unarchive a specific notification by its unique identifier **notificationId**.
|
|
159
|
+
* Unarchive a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
160
160
|
*/
|
|
161
161
|
async unarchive(
|
|
162
162
|
request: operations.SubscribersControllerUnarchiveNotificationRequest,
|
|
@@ -170,10 +170,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
* Mark notification as unread
|
|
173
|
+
* Mark a notification as unread
|
|
174
174
|
*
|
|
175
175
|
* @remarks
|
|
176
|
-
* Mark a specific notification as unread by its unique identifier **notificationId**.
|
|
176
|
+
* Mark a specific in-app (inbox) notification as unread by its unique identifier **notificationId**.
|
|
177
177
|
*/
|
|
178
178
|
async markAsUnread(
|
|
179
179
|
request: operations.SubscribersControllerMarkNotificationAsUnreadRequest,
|
|
@@ -187,10 +187,10 @@ export class NovuNotifications extends ClientSDK {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* Unsnooze notification
|
|
190
|
+
* Unsnooze a notification
|
|
191
191
|
*
|
|
192
192
|
* @remarks
|
|
193
|
-
* Unsnooze a specific notification by its unique identifier **notificationId**.
|
|
193
|
+
* Unsnooze a specific in-app (inbox) notification by its unique identifier **notificationId**.
|
|
194
194
|
*/
|
|
195
195
|
async unsnooze(
|
|
196
196
|
request: operations.SubscribersControllerUnsnoozeNotificationRequest,
|
|
@@ -207,7 +207,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
207
207
|
* Archive all notifications
|
|
208
208
|
*
|
|
209
209
|
* @remarks
|
|
210
|
-
* Archive all notifications matching the specified filters. Supports context-based filtering.
|
|
210
|
+
* Archive all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
211
211
|
*/
|
|
212
212
|
async archiveAll(
|
|
213
213
|
updateAllSubscriberNotificationsDto:
|
|
@@ -231,8 +231,8 @@ export class NovuNotifications extends ClientSDK {
|
|
|
231
231
|
* Retrieve subscriber notifications count
|
|
232
232
|
*
|
|
233
233
|
* @remarks
|
|
234
|
-
* Retrieve count of notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
235
|
-
* Supports multiple filters to count notifications by different criteria, including context keys.
|
|
234
|
+
* Retrieve count of in-app (inbox) notifications for a subscriber by its unique key identifier **subscriberId**.
|
|
235
|
+
* Supports multiple filters to count in-app (inbox) notifications by different criteria, including context keys.
|
|
236
236
|
*/
|
|
237
237
|
async count(
|
|
238
238
|
subscriberId: string,
|
|
@@ -255,7 +255,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
255
255
|
* Delete all notifications
|
|
256
256
|
*
|
|
257
257
|
* @remarks
|
|
258
|
-
*
|
|
258
|
+
* Permanently delete all in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
259
259
|
*/
|
|
260
260
|
async deleteAll(
|
|
261
261
|
updateAllSubscriberNotificationsDto:
|
|
@@ -279,7 +279,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
279
279
|
* Mark all notifications as read
|
|
280
280
|
*
|
|
281
281
|
* @remarks
|
|
282
|
-
* Mark all notifications matching the specified filters as read. Supports context-based filtering.
|
|
282
|
+
* Mark all in-app (inbox) notifications matching the specified filters as read. Supports context-based filtering.
|
|
283
283
|
*/
|
|
284
284
|
async markAllAsRead(
|
|
285
285
|
updateAllSubscriberNotificationsDto:
|
|
@@ -304,7 +304,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
304
304
|
* Archive all read notifications
|
|
305
305
|
*
|
|
306
306
|
* @remarks
|
|
307
|
-
* Archive all read notifications matching the specified filters. Supports context-based filtering.
|
|
307
|
+
* Archive all read in-app (inbox) notifications matching the specified filters. Supports context-based filtering.
|
|
308
308
|
*/
|
|
309
309
|
async archiveAllRead(
|
|
310
310
|
updateAllSubscriberNotificationsDto:
|
|
@@ -329,7 +329,7 @@ export class NovuNotifications extends ClientSDK {
|
|
|
329
329
|
* Mark notifications as seen
|
|
330
330
|
*
|
|
331
331
|
* @remarks
|
|
332
|
-
* Mark specific
|
|
332
|
+
* Mark specific and multiple in-app (inbox) notifications as seen. Supports context-based filtering.
|
|
333
333
|
*/
|
|
334
334
|
async markAsSeen(
|
|
335
335
|
markSubscriberNotificationsAsSeenDto:
|
package/src/sdk/steps.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
|
|
11
11
|
export class Steps extends ClientSDK {
|
|
12
12
|
/**
|
|
13
|
-
* Generate step preview
|
|
13
|
+
* Generate a step preview
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* Generates a preview for a specific workflow step by its unique identifier **stepId**
|