[MM-57348] Change result
to status
as a better descriptor of the notification status (#3005)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
2
api-types/lib/index.d.ts
vendored
2
api-types/lib/index.d.ts
vendored
@@ -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;
|
||||
}>;
|
||||
|
4
api-types/package-lock.json
generated
4
api-types/package-lock.json
generated
@@ -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"
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user