triangle-types 1.0.240 → 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.
- package/dist/src/types/user/Tenant.d.ts +1 -0
- package/dist/src/types/user/Tenant.js +4 -1
- package/dist/src/types/user/TenantProvision.d.ts +1 -1
- package/dist/src/types/user/TenantProvision.js +1 -1
- package/package.json +1 -1
- package/src/types/user/Tenant.ts +4 -1
- package/src/types/user/TenantProvision.ts +1 -1
|
@@ -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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const resource_type_ids: readonly ["scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"];
|
|
1
|
+
declare const resource_type_ids: readonly ["role", "scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"];
|
|
2
2
|
export type ResourceTypeID = typeof resource_type_ids[number];
|
|
3
3
|
export declare function is_resource_type_id(resource_type_id: any): resource_type_id is ResourceTypeID;
|
|
4
4
|
export declare class TenantProvision {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const resource_type_ids = ["scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"];
|
|
1
|
+
const resource_type_ids = ["role", "scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"];
|
|
2
2
|
export function is_resource_type_id(resource_type_id) {
|
|
3
3
|
return resource_type_ids.includes(resource_type_id);
|
|
4
4
|
}
|
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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const resource_type_ids = ["scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"] as const
|
|
1
|
+
const resource_type_ids = ["role", "scout", "prism", "tag", "target", "user", "fragment_type", "client_theme"] as const
|
|
2
2
|
|
|
3
3
|
export type ResourceTypeID = typeof resource_type_ids[number]
|
|
4
4
|
|