@ironcode/vas-lib 0.0.24 → 0.0.26
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-account.dto.d.ts +6 -0
- package/cjs/lib/entity/vas-account.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-account.dto.js +7 -0
- package/cjs/lib/entity/vas-account.dto.js.map +1 -1
- package/cjs/lib/entity/vas-fire-user.dto.d.ts +4 -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 +31 -1
- package/cjs/lib/entity/vas-fire-user.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-fire-user.model.js +54 -4
- package/cjs/lib/entity/vas-fire-user.model.js.map +1 -1
- package/esm2020/lib/entity/vas-account.dto.mjs +7 -2
- package/esm2020/lib/entity/vas-fire-user.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-fire-user.model.mjs +55 -5
- package/fesm2015/ironcode-vas-lib.mjs +62 -5
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +62 -5
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-account.dto.d.ts +6 -0
- package/lib/entity/vas-fire-user.dto.d.ts +4 -0
- package/lib/entity/vas-fire-user.model.d.ts +31 -1
- package/package.json +1 -1
|
@@ -9,6 +9,11 @@ import { VasJobTypeDto } from './vas-job-type.dto';
|
|
|
9
9
|
import { VasLookupTypeDto } from './vas-lookup-type.dto';
|
|
10
10
|
import { VasTaskTypeDto } from './vas-task-type.dto';
|
|
11
11
|
import { VasMembershipDto } from './vas-membership.dto';
|
|
12
|
+
export declare enum VasAccountIndexingMode {
|
|
13
|
+
DISABLED = 0,
|
|
14
|
+
ON_CHANGE = 1,
|
|
15
|
+
ON_REPORT = 2
|
|
16
|
+
}
|
|
12
17
|
export interface VasAccountDto extends VasBaseDto {
|
|
13
18
|
business: string;
|
|
14
19
|
title: string;
|
|
@@ -29,4 +34,5 @@ export interface VasAccountDto extends VasBaseDto {
|
|
|
29
34
|
lookupTypes: Array<VasLookupTypeDto>;
|
|
30
35
|
taskTypes: Array<VasTaskTypeDto>;
|
|
31
36
|
memberships: Array<VasMembershipDto>;
|
|
37
|
+
indexingMode: VasAccountIndexingMode;
|
|
32
38
|
}
|
|
@@ -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
|
-
|
|
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
|
}
|