idea-toolbox
Advanced tools
Comparing version 6.0.4 to 6.0.5
@@ -12,2 +12,10 @@ import { Resource } from './resource.model'; | ||
/** | ||
* A brief description of the notification. | ||
*/ | ||
subject: string; | ||
/** | ||
* The content of the notification. | ||
*/ | ||
content: markdown; | ||
/** | ||
* The id of the team owner of the notification. Useful for branded notifications. | ||
@@ -27,13 +35,9 @@ */ | ||
/** | ||
* A brief description of the notification. | ||
* If set, an email notification is preferred to any other channel. | ||
*/ | ||
subject: string; | ||
forceEmail?: boolean; | ||
/** | ||
* The content of the notification. | ||
* The event that triggered the notification; useful to gather specific notification preferences. | ||
*/ | ||
content: markdown; | ||
/** | ||
* If set, an email notification is preferred to any other channel. | ||
*/ | ||
forceEmail?: boolean; | ||
event?: string; | ||
load(x: any): void; | ||
@@ -40,0 +44,0 @@ } |
@@ -12,8 +12,14 @@ "use strict"; | ||
this.project = this.clean(x.project, String); | ||
this.teamId = this.clean(x.teamId, String); | ||
this.userId = this.clean(x.userId, String); | ||
this.email = this.clean(x.email, String); | ||
this.subject = this.clean(x.subject, String); | ||
this.content = this.clean(x.content, String); | ||
this.forceEmail = this.clean(x.forceEmail, Boolean); | ||
if (x.teamId) | ||
this.teamId = this.clean(x.teamId, String); | ||
if (x.userId) | ||
this.userId = this.clean(x.userId, String); | ||
if (x.email) | ||
this.email = this.clean(x.email, String); | ||
if (x.forceEmail) | ||
this.forceEmail = true; | ||
if (x.event) | ||
this.event = this.clean(x.event, String); | ||
} | ||
@@ -20,0 +26,0 @@ } |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
230456
6768