@ironcode/vas-lib 0.0.29 → 0.0.31
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/cjs/lib/entity/vas-fire-user.dto.d.ts +2 -0
- package/cjs/lib/entity/vas-fire-user.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-fire-user.dto.js.map +1 -1
- package/cjs/lib/entity/vas-fire-user.model.d.ts +3 -1
- package/cjs/lib/entity/vas-fire-user.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-fire-user.model.js +8 -4
- package/cjs/lib/entity/vas-fire-user.model.js.map +1 -1
- package/esm2020/lib/entity/vas-fire-user.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-fire-user.model.mjs +9 -5
- package/fesm2015/ironcode-vas-lib.mjs +8 -4
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +8 -4
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-fire-user.dto.d.ts +2 -0
- package/lib/entity/vas-fire-user.model.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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(),
|
|
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
|
/**
|