triangle-types 1.0.238 → 1.0.239

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,7 +2,6 @@ import { TenantRoleProvision } from "./TenantRoleProvision.js";
2
2
  export declare class TenantRole {
3
3
  readonly tenant_id: string;
4
4
  readonly role_id: string;
5
- readonly name: string;
6
5
  readonly [x: string]: any;
7
6
  constructor(tenant_role: TenantRole);
8
7
  static is(tenant_role: any): tenant_role is TenantRole;
@@ -2,20 +2,17 @@ import { TenantRoleProvision } from "./TenantRoleProvision.js";
2
2
  export class TenantRole {
3
3
  tenant_id;
4
4
  role_id;
5
- name;
6
5
  constructor(tenant_role) {
7
6
  if (!TenantRole.is(tenant_role)) {
8
7
  throw Error("Invalid input.");
9
8
  }
10
9
  this.tenant_id = tenant_role.tenant_id;
11
10
  this.role_id = tenant_role.role_id;
12
- this.name = tenant_role.name;
13
11
  }
14
12
  static is(tenant_role) {
15
13
  return (tenant_role !== undefined &&
16
14
  typeof tenant_role.tenant_id === "string" &&
17
- typeof tenant_role.role_id === "string" &&
18
- typeof tenant_role.name === "string");
15
+ typeof tenant_role.role_id === "string");
19
16
  }
20
17
  }
21
18
  export class TenantRoleAux extends TenantRole {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.238",
3
+ "version": "1.0.239",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -3,7 +3,6 @@ import { TenantRoleProvision } from "./TenantRoleProvision"
3
3
  export class TenantRole {
4
4
  readonly tenant_id : string
5
5
  readonly role_id : string
6
- readonly name : string
7
6
 
8
7
  readonly [x : string] : any
9
8
 
@@ -13,15 +12,13 @@ export class TenantRole {
13
12
  }
14
13
  this.tenant_id = tenant_role.tenant_id
15
14
  this.role_id = tenant_role.role_id
16
- this.name = tenant_role.name
17
15
  }
18
16
 
19
17
  static is(tenant_role : any) : tenant_role is TenantRole {
20
18
  return (
21
19
  tenant_role !== undefined &&
22
20
  typeof tenant_role.tenant_id === "string" &&
23
- typeof tenant_role.role_id === "string" &&
24
- typeof tenant_role.name === "string"
21
+ typeof tenant_role.role_id === "string"
25
22
  )
26
23
  }
27
24
  }