sowell-models 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowell-models",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "engines": {
@@ -17,6 +17,7 @@ export interface IUser extends IModel {
17
17
  lname?: string
18
18
  fullName?: string
19
19
  email?: string
20
+ code?: string
20
21
  company?: ICompany
21
22
  img?: string
22
23
  password?: string
@@ -25,6 +26,7 @@ export interface IUser extends IModel {
25
26
  recipients?: PhoneNumber[]
26
27
  assignations?: IAssignation[]
27
28
  canUpdateIssueReports?: boolean
29
+ emailNotificationsActivated?: boolean
28
30
  }
29
31
 
30
32
  export class UserCollection extends PouchCollection<IUser> {
@@ -71,9 +73,11 @@ export class SPUserItem extends ApplicationRecord implements IUser {
71
73
  @Attr() fullName!: string
72
74
  @Attr() password!: string
73
75
  @Attr() status!: string
76
+ @Attr() code!: string
74
77
  @Attr() recipients?: PhoneNumber[]
75
78
  @Attr() assignationsCount!: number | null
76
79
  @Attr() canUpdateIssueReports!: boolean
80
+ @Attr() emailNotificationsActivated!: boolean
77
81
  @BelongsTo() company!: SPCompany
78
82
  @HasMany() assignations!: SPAssignation[]
79
83
  @HasMany() unseenIssues!: SPUnseenIssue[]