@ironcode/vas-lib 0.0.27 → 0.0.30

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.
@@ -66,7 +66,7 @@ class VasUserModel extends VasBaseModel {
66
66
  }
67
67
 
68
68
  class VasFireUserModel extends VasUserModel {
69
- constructor(id, created = '', serverCreated = '', createdBy = '', modified = '', serverModified = '', modifiedBy = '', email, username, accounts, tokens, topics) {
69
+ constructor(id, created = '', serverCreated = '', createdBy = '', modified = '', serverModified = '', modifiedBy = '', email, username, accounts, tokens, topics, language, fullName) {
70
70
  super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, email, username);
71
71
  this.id = id;
72
72
  this.created = created;
@@ -80,12 +80,14 @@ class VasFireUserModel extends VasUserModel {
80
80
  this.accounts = accounts;
81
81
  this.tokens = tokens;
82
82
  this.topics = topics;
83
+ this.language = language;
84
+ this.fullName = fullName;
83
85
  }
84
86
  static fromDto(dto) {
85
- return new VasFireUserModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.email || '', dto.username || '', dto.accounts || {}, dto.tokens || [], dto.topics || []);
87
+ return new VasFireUserModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.email || '', dto.username || '', dto.accounts || {}, dto.tokens || [], dto.topics || [], dto.language || '', dto.fullName || '');
86
88
  }
87
89
  static newUser(uid, displayName, email) {
88
- return new VasFireUserModel(uid, moment().toISOString(), uid, moment().toISOString(), uid, moment().toISOString(), moment().toISOString(), email, displayName, {}, [], []);
90
+ return new VasFireUserModel(uid, moment().toISOString(), moment().toISOString(), uid, moment().toISOString(), moment().toISOString(), uid, email, displayName, {}, [], [], '', '');
89
91
  }
90
92
  toDto() {
91
93
  return {
@@ -100,7 +102,9 @@ class VasFireUserModel extends VasUserModel {
100
102
  username: this.username,
101
103
  accounts: this.accounts,
102
104
  tokens: this.tokens,
103
- topics: this.topics
105
+ topics: this.topics,
106
+ language: this.language,
107
+ fullName: this.fullName
104
108
  };
105
109
  }
106
110
  /**
@@ -1572,7 +1576,7 @@ class VasJobModel extends VasRestrictedAccountObjectModel {
1572
1576
  assigneeId: this.assigneeId || '~',
1573
1577
  timeZoneOffset: this.timeZoneOffset || 0,
1574
1578
  pendingFields: this.pendingFields || 0,
1575
- lastFormId: this.formId || '~'
1579
+ lastForm: this.formId || '~'
1576
1580
  };
1577
1581
  }
1578
1582
  }