@novu/client
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -11,4 +11,2 @@ import { IMessage, ButtonTypeEnum, MessageActionStatusEnum, IPaginatedResponse } from '@novu/shared'; | ||
updateAction(messageId: string, executedType: ButtonTypeEnum, status: MessageActionStatusEnum, payload?: Record<string, unknown>): Promise<any>; | ||
markMessageAsSeen(messageId: string | string[]): Promise<any>; | ||
markMessageAsRead(messageId: string | string[]): Promise<any>; | ||
markMessageAs(messageId: string | string[], mark: { | ||
@@ -15,0 +13,0 @@ seen?: boolean; |
@@ -37,14 +37,2 @@ "use strict"; | ||
} | ||
markMessageAsSeen(messageId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const messageIdString = messageId ? messageId.toString() : ''; | ||
return yield this.httpClient.post(`/widgets/messages/${messageIdString}/seen`, {}); | ||
}); | ||
} | ||
markMessageAsRead(messageId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const messageIdString = messageId ? messageId.toString() : ''; | ||
return yield this.httpClient.post(`/widgets/messages/${messageIdString}/read`, {}); | ||
}); | ||
} | ||
markMessageAs(messageId, mark) { | ||
@@ -51,0 +39,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -11,4 +11,2 @@ import { IMessage, ButtonTypeEnum, MessageActionStatusEnum, IPaginatedResponse } from '@novu/shared'; | ||
updateAction(messageId: string, executedType: ButtonTypeEnum, status: MessageActionStatusEnum, payload?: Record<string, unknown>): Promise<any>; | ||
markMessageAsSeen(messageId: string | string[]): Promise<any>; | ||
markMessageAsRead(messageId: string | string[]): Promise<any>; | ||
markMessageAs(messageId: string | string[], mark: { | ||
@@ -15,0 +13,0 @@ seen?: boolean; |
@@ -34,14 +34,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
markMessageAsSeen(messageId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const messageIdString = messageId ? messageId.toString() : ''; | ||
return yield this.httpClient.post(`/widgets/messages/${messageIdString}/seen`, {}); | ||
}); | ||
} | ||
markMessageAsRead(messageId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const messageIdString = messageId ? messageId.toString() : ''; | ||
return yield this.httpClient.post(`/widgets/messages/${messageIdString}/read`, {}); | ||
}); | ||
} | ||
markMessageAs(messageId, mark) { | ||
@@ -48,0 +36,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@novu/client", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"repository": "https://github.com/novuhq/novu", | ||
@@ -47,6 +47,6 @@ "description": "API client to be used in end user environments", | ||
"dependencies": { | ||
"@novu/shared": "^0.15.0" | ||
"@novu/shared": "^0.16.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "27.5.2", | ||
"@types/jest": "29.5.1", | ||
"@types/node": "^14.6.0", | ||
@@ -64,3 +64,3 @@ "codecov": "^3.5.0", | ||
}, | ||
"gitHead": "6fedeccbd9598a6b445bfbfd732098193a7c7e42" | ||
"gitHead": "8a562d7395c5c16e98af84ebd9773657320af26a" | ||
} |
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
23558
374
+ Added@novu/shared@0.16.4(transitive)
- Removed@novu/shared@0.15.0(transitive)
Updated@novu/shared@^0.16.0