[MM-57348] Change result to status as a better descriptor of the notification status (#3005)

This commit is contained in:
Devin Binnie
2024-04-12 09:06:33 -04:00
committed by GitHub
parent 125ff06481
commit 1eda09ae25
7 changed files with 16 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ export type DesktopAPI = {
onLogout: () => void;
// Unreads/mentions/notifications
sendNotification: (title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) => Promise<{result: string; reason?: string; data?: string}>;
sendNotification: (title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) => Promise<{status: string; reason?: string; data?: string}>;
onNotificationClicked: (listener: (channelId: string, teamId: string, url: string) => void) => () => void;
setUnreadsAndMentions: (isUnread: boolean, mentionCount: number) => void;

View File

@@ -23,7 +23,7 @@ export type DesktopAPI = {
onLogin: () => void;
onLogout: () => void;
sendNotification: (title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) => Promise<{
result: string;
status: string;
reason?: string;
data?: string;
}>;

View File

@@ -1,12 +1,12 @@
{
"name": "@mattermost/desktop-api",
"version": "5.8.0-1",
"version": "5.8.0-5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@mattermost/desktop-api",
"version": "5.8.0-1",
"version": "5.8.0-5",
"license": "MIT",
"peerDependencies": {
"typescript": "^4.3.0 || ^5.0.0"

View File

@@ -1,6 +1,6 @@
{
"name": "@mattermost/desktop-api",
"version": "5.8.0-4",
"version": "5.8.0-5",
"description": "Shared types for the Desktop App API provided to the Web App",
"keywords": [
"mattermost"
@@ -29,6 +29,6 @@
"build": "tsc --build --verbose",
"run": "tsc --watch --preserveWatchOutput",
"clean": "rm -rf tsconfig.tsbuildinfo ./lib",
"prepublish": "npm run build && rm -rf tsconfig.tsbuildinfo"
"prepublishOnly": "npm run build && rm -rf ./lib/tsconfig.tsbuildinfo"
}
}