triangle-types 1.0.102 → 1.0.104
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.
|
@@ -7,7 +7,7 @@ export declare class Scout {
|
|
|
7
7
|
readonly scout_id: string;
|
|
8
8
|
readonly scout_type_id: ScoutTypeID;
|
|
9
9
|
readonly name: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly s3_id_img?: string;
|
|
11
11
|
readonly document_type_ids: DocumentTypeID[];
|
|
12
12
|
readonly [x: string]: any;
|
|
13
13
|
constructor(scout: any);
|
|
@@ -7,7 +7,7 @@ export class Scout {
|
|
|
7
7
|
scout_id;
|
|
8
8
|
scout_type_id;
|
|
9
9
|
name;
|
|
10
|
-
|
|
10
|
+
s3_id_img;
|
|
11
11
|
document_type_ids;
|
|
12
12
|
constructor(scout) {
|
|
13
13
|
if (!Scout.is(scout)) {
|
|
@@ -16,7 +16,7 @@ export class Scout {
|
|
|
16
16
|
this.scout_id = scout.scout_id;
|
|
17
17
|
this.scout_type_id = scout.scout_type_id;
|
|
18
18
|
this.name = scout.name;
|
|
19
|
-
this.
|
|
19
|
+
this.s3_id_img = scout.s3_id_img;
|
|
20
20
|
this.document_type_ids = scout.document_type_ids;
|
|
21
21
|
}
|
|
22
22
|
static is(scout) {
|
|
@@ -24,7 +24,7 @@ export class Scout {
|
|
|
24
24
|
typeof scout.scout_id === "string" &&
|
|
25
25
|
is_scout_type_id(scout.scout_type_id) &&
|
|
26
26
|
typeof scout.name === "string" &&
|
|
27
|
-
(scout.
|
|
27
|
+
(scout.s3_id_img === undefined || typeof scout.s3_id_img === "string") &&
|
|
28
28
|
Array.isArray(scout.document_type_ids) && scout.document_type_ids.every(is_document_type_id));
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -3,6 +3,8 @@ export declare class UserScout {
|
|
|
3
3
|
readonly user_scout_id: string;
|
|
4
4
|
readonly user_id: string;
|
|
5
5
|
readonly scout_id: string;
|
|
6
|
+
readonly is_conversation_allowed: boolean;
|
|
7
|
+
readonly is_search_allowed: boolean;
|
|
6
8
|
readonly [x: string]: any;
|
|
7
9
|
constructor(user_scout: any);
|
|
8
10
|
static is(user_scout: any): user_scout is UserScout;
|
|
@@ -3,6 +3,8 @@ export class UserScout {
|
|
|
3
3
|
user_scout_id;
|
|
4
4
|
user_id;
|
|
5
5
|
scout_id;
|
|
6
|
+
is_conversation_allowed;
|
|
7
|
+
is_search_allowed;
|
|
6
8
|
constructor(user_scout) {
|
|
7
9
|
if (!UserScout.is(user_scout)) {
|
|
8
10
|
throw Error("Invalid input.");
|
|
@@ -10,12 +12,16 @@ export class UserScout {
|
|
|
10
12
|
this.user_scout_id = user_scout.user_scout_id;
|
|
11
13
|
this.user_id = user_scout.user_id;
|
|
12
14
|
this.scout_id = user_scout.scout_id;
|
|
15
|
+
this.is_conversation_allowed = user_scout.is_conversation_allowed;
|
|
16
|
+
this.is_search_allowed = user_scout.is_search_allowed;
|
|
13
17
|
}
|
|
14
18
|
static is(user_scout) {
|
|
15
19
|
return (user_scout !== undefined &&
|
|
16
20
|
typeof user_scout.user_scout_id === "string" &&
|
|
17
21
|
typeof user_scout.user_id === "string" &&
|
|
18
|
-
typeof user_scout.scout_id === "string"
|
|
22
|
+
typeof user_scout.scout_id === "string" &&
|
|
23
|
+
typeof user_scout.is_conversation_allowed === "boolean" &&
|
|
24
|
+
typeof user_scout.is_search_allowed === "boolean");
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
export class UserScoutAux extends UserScout {
|
package/package.json
CHANGED
package/src/types/scout/Scout.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Scout {
|
|
|
13
13
|
readonly scout_id : string
|
|
14
14
|
readonly scout_type_id : ScoutTypeID
|
|
15
15
|
readonly name : string
|
|
16
|
-
readonly
|
|
16
|
+
readonly s3_id_img? : string
|
|
17
17
|
readonly document_type_ids : DocumentTypeID[]
|
|
18
18
|
readonly [x : string] : any
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ export class Scout {
|
|
|
24
24
|
this.scout_id = scout.scout_id
|
|
25
25
|
this.scout_type_id = scout.scout_type_id
|
|
26
26
|
this.name = scout.name
|
|
27
|
-
this.
|
|
27
|
+
this.s3_id_img = scout.s3_id_img
|
|
28
28
|
this.document_type_ids = scout.document_type_ids
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ export class Scout {
|
|
|
34
34
|
typeof scout.scout_id === "string" &&
|
|
35
35
|
is_scout_type_id(scout.scout_type_id) &&
|
|
36
36
|
typeof scout.name === "string" &&
|
|
37
|
-
(scout.
|
|
37
|
+
(scout.s3_id_img === undefined || typeof scout.s3_id_img === "string") &&
|
|
38
38
|
Array.isArray(scout.document_type_ids) && scout.document_type_ids.every(is_document_type_id)
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -4,6 +4,8 @@ export class UserScout {
|
|
|
4
4
|
readonly user_scout_id : string
|
|
5
5
|
readonly user_id : string
|
|
6
6
|
readonly scout_id : string
|
|
7
|
+
readonly is_conversation_allowed : boolean
|
|
8
|
+
readonly is_search_allowed : boolean
|
|
7
9
|
readonly [x : string] : any
|
|
8
10
|
|
|
9
11
|
constructor(user_scout : any) {
|
|
@@ -13,6 +15,8 @@ export class UserScout {
|
|
|
13
15
|
this.user_scout_id = user_scout.user_scout_id
|
|
14
16
|
this.user_id = user_scout.user_id
|
|
15
17
|
this.scout_id = user_scout.scout_id
|
|
18
|
+
this.is_conversation_allowed = user_scout.is_conversation_allowed
|
|
19
|
+
this.is_search_allowed = user_scout.is_search_allowed
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
static is(user_scout : any) : user_scout is UserScout {
|
|
@@ -20,7 +24,9 @@ export class UserScout {
|
|
|
20
24
|
user_scout !== undefined &&
|
|
21
25
|
typeof user_scout.user_scout_id === "string" &&
|
|
22
26
|
typeof user_scout.user_id === "string" &&
|
|
23
|
-
typeof user_scout.scout_id === "string"
|
|
27
|
+
typeof user_scout.scout_id === "string" &&
|
|
28
|
+
typeof user_scout.is_conversation_allowed === "boolean" &&
|
|
29
|
+
typeof user_scout.is_search_allowed === "boolean"
|
|
24
30
|
)
|
|
25
31
|
}
|
|
26
32
|
}
|