triangle-types 1.0.241 → 1.0.242
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.
|
@@ -2,6 +2,7 @@ import { TenantProvision } from "./TenantProvision.js";
|
|
|
2
2
|
export declare class Tenant {
|
|
3
3
|
readonly tenant_id: string;
|
|
4
4
|
readonly name: string;
|
|
5
|
+
readonly s3_id_img?: string;
|
|
5
6
|
readonly [x: string]: any;
|
|
6
7
|
constructor(tenant: Tenant);
|
|
7
8
|
static is(tenant: any): tenant is Tenant;
|
|
@@ -2,17 +2,20 @@ import { TenantProvision } from "./TenantProvision.js";
|
|
|
2
2
|
export class Tenant {
|
|
3
3
|
tenant_id;
|
|
4
4
|
name;
|
|
5
|
+
s3_id_img;
|
|
5
6
|
constructor(tenant) {
|
|
6
7
|
if (!Tenant.is(tenant)) {
|
|
7
8
|
throw Error("Invalid Input.");
|
|
8
9
|
}
|
|
9
10
|
this.tenant_id = tenant.tenant_id;
|
|
10
11
|
this.name = tenant.name;
|
|
12
|
+
this.s3_id_img = tenant.s3_id_img;
|
|
11
13
|
}
|
|
12
14
|
static is(tenant) {
|
|
13
15
|
return (tenant !== undefined &&
|
|
14
16
|
typeof tenant.tenant_id === "string" &&
|
|
15
|
-
typeof tenant.name === "string"
|
|
17
|
+
typeof tenant.name === "string" &&
|
|
18
|
+
typeof tenant.s3_id_img === "string");
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
export class TenantAux extends Tenant {
|
package/package.json
CHANGED
package/src/types/user/Tenant.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { TenantProvision } from "./TenantProvision"
|
|
|
3
3
|
export class Tenant {
|
|
4
4
|
readonly tenant_id : string
|
|
5
5
|
readonly name : string
|
|
6
|
+
readonly s3_id_img? : string
|
|
6
7
|
readonly [x : string] : any
|
|
7
8
|
|
|
8
9
|
constructor(tenant : Tenant) {
|
|
@@ -11,13 +12,15 @@ export class Tenant {
|
|
|
11
12
|
}
|
|
12
13
|
this.tenant_id = tenant.tenant_id
|
|
13
14
|
this.name = tenant.name
|
|
15
|
+
this.s3_id_img = tenant.s3_id_img
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
static is(tenant : any) : tenant is Tenant {
|
|
17
19
|
return (
|
|
18
20
|
tenant !== undefined &&
|
|
19
21
|
typeof tenant.tenant_id === "string" &&
|
|
20
|
-
typeof tenant.name === "string"
|
|
22
|
+
typeof tenant.name === "string" &&
|
|
23
|
+
typeof tenant.s3_id_img === "string"
|
|
21
24
|
)
|
|
22
25
|
}
|
|
23
26
|
}
|