expressions: set exception as message field
This commit is contained in:
		| @ -1,25 +1,24 @@ | ||||
| import { DefaultClient, QueryArguments, PBResponse } from "./Client"; | ||||
| import { Event } from "./Events"; | ||||
|  | ||||
| export class Notification { | ||||
|     pk: string; | ||||
|     name: string; | ||||
|     mode: string; | ||||
|     mode_verbose: string; | ||||
|     webhook_url: string; | ||||
|     severity: string; | ||||
|     body: string; | ||||
|     created: string; | ||||
|     event?: Event; | ||||
|     seen: boolean; | ||||
|  | ||||
|     constructor() { | ||||
|         throw Error(); | ||||
|     } | ||||
|  | ||||
|     static get(pk: string): Promise<Transport> { | ||||
|         return DefaultClient.fetch<Transport>(["events", "transports", pk]); | ||||
|     static get(pk: string): Promise<Notification> { | ||||
|         return DefaultClient.fetch<Notification>(["events", "notifications", pk]); | ||||
|     } | ||||
|  | ||||
|     static list(filter?: QueryArguments): Promise<PBResponse<Transport>> { | ||||
|         return DefaultClient.fetch<PBResponse<Transport>>(["events", "transports"], filter); | ||||
|     static list(filter?: QueryArguments): Promise<PBResponse<Notification>> { | ||||
|         return DefaultClient.fetch<PBResponse<Notification>>(["events", "notifications"], filter); | ||||
|     } | ||||
|  | ||||
|     static adminUrl(rest: string): string { | ||||
|         return `/administration/events/transports/${rest}`; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer