@novu/client
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -18,2 +18,3 @@ import { IMessage, ButtonTypeEnum, MessageActionStatusEnum, IPaginatedResponse } from '@novu/shared'; | ||
removeMessage(messageId: string): Promise<any>; | ||
markAllMessagesAsRead(feedId?: string | string[]): Promise<any>; | ||
getNotificationsList(page: number, query?: IStoreQuery): Promise<IPaginatedResponse<IMessage>>; | ||
@@ -20,0 +21,0 @@ initializeSession(appId: string, subscriberId: string, hmacHash?: any): Promise<any>; |
@@ -65,2 +65,9 @@ "use strict"; | ||
} | ||
markAllMessagesAsRead(feedId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.httpClient.post(`/widgets/messages/read`, { | ||
feedId, | ||
}); | ||
}); | ||
} | ||
getNotificationsList(page, query = {}) { | ||
@@ -67,0 +74,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -18,2 +18,3 @@ import { IMessage, ButtonTypeEnum, MessageActionStatusEnum, IPaginatedResponse } from '@novu/shared'; | ||
removeMessage(messageId: string): Promise<any>; | ||
markAllMessagesAsRead(feedId?: string | string[]): Promise<any>; | ||
getNotificationsList(page: number, query?: IStoreQuery): Promise<IPaginatedResponse<IMessage>>; | ||
@@ -20,0 +21,0 @@ initializeSession(appId: string, subscriberId: string, hmacHash?: any): Promise<any>; |
@@ -62,2 +62,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
markAllMessagesAsRead(feedId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.httpClient.post(`/widgets/messages/read`, { | ||
feedId, | ||
}); | ||
}); | ||
} | ||
getNotificationsList(page, query = {}) { | ||
@@ -64,0 +71,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@novu/client", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"repository": "https://github.com/novuhq/novu", | ||
@@ -48,3 +48,3 @@ "description": "API client to be used in end user environments", | ||
"dependencies": { | ||
"@novu/shared": "^0.12.0" | ||
"@novu/shared": "^0.13.0" | ||
}, | ||
@@ -64,3 +64,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "89b5d99d45c58a4d2d13b2a0f59d0ed53b26f154" | ||
"gitHead": "83ab81ded688f81da436ac5b5c934beb27442476" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
23035
358
+ Added@novu/shared@0.13.0(transitive)
+ Addedaxios@1.2.0(transitive)
- Removed@novu/shared@0.12.0(transitive)
- Removedaxios@1.7.7(transitive)
Updated@novu/shared@^0.13.0