@ironcode/vas-lib 0.0.25 → 0.0.27

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.
@@ -6,4 +6,8 @@ export declare type VasFireUserDtoAccountType = Record<string, Omit<VasAccountDt
6
6
  }>;
7
7
  export interface VasFireUserDto extends VasUserDto {
8
8
  accounts: VasFireUserDtoAccountType;
9
+ tokens: Array<string>;
10
+ created: string;
11
+ modified: string;
12
+ topics: Array<string>;
9
13
  }
@@ -11,8 +11,38 @@ export declare class VasFireUserModel extends VasUserModel implements VasFireUse
11
11
  email: string;
12
12
  username: string;
13
13
  accounts: VasFireUserDtoAccountType;
14
- constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, email: string, username: string, accounts: VasFireUserDtoAccountType);
14
+ tokens: Array<string>;
15
+ topics: Array<string>;
16
+ constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, email: string, username: string, accounts: VasFireUserDtoAccountType, tokens: Array<string>, topics: Array<string>);
15
17
  static fromDto(dto: VasFireUserDto): VasFireUserModel;
16
18
  static newUser(uid: string, displayName: string, email: string): VasFireUserModel;
17
19
  toDto(): VasFireUserDto;
20
+ /**
21
+ * Adds token to tokens list if it is not already present
22
+ * @param token the new token
23
+ */
24
+ addToken(token: string): void;
25
+ /**
26
+ * Remove token from tokens list
27
+ * @param token the token to remove
28
+ */
29
+ removeToken(token: string): void;
30
+ /**
31
+ * Resets the tokens list
32
+ */
33
+ resetTokens(): void;
34
+ /**
35
+ * Adds topic to topics list if it is not already present
36
+ * @param topic the new token
37
+ */
38
+ addTopic(topic: string): void;
39
+ /**
40
+ * Remove topic from topic list
41
+ * @param topic the topic to remove
42
+ */
43
+ removeTopic(topic: string): void;
44
+ /**
45
+ * Resets the topic list
46
+ */
47
+ resetTopics(): void;
18
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironcode/vas-lib",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "peerDependencies": {
5
5
  "angular2-uuid": "^1.1.1",
6
6
  "moment": "^2.0.0"