triangle-types 1.0.217 → 1.0.218

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.
@@ -1,7 +1,7 @@
1
1
  import { FragmentTypeID } from "../fragments/Fragment.js";
2
2
  export declare class TenantDocument {
3
+ readonly tenant_document_id: string;
3
4
  readonly tenant_id: string;
4
- readonly document_id: string;
5
5
  readonly file_suffix_id: string;
6
6
  readonly name: string;
7
7
  readonly fragment_type_id?: FragmentTypeID;
@@ -1,7 +1,7 @@
1
1
  import { is_fragment_type_id } from "../fragments/Fragment.js";
2
2
  export class TenantDocument {
3
+ tenant_document_id;
3
4
  tenant_id;
4
- document_id;
5
5
  file_suffix_id;
6
6
  name;
7
7
  fragment_type_id;
@@ -13,8 +13,8 @@ export class TenantDocument {
13
13
  if (!TenantDocument.is(tenant_document)) {
14
14
  throw Error("Invalid input.");
15
15
  }
16
+ this.tenant_document_id = tenant_document.tenant_document_id;
16
17
  this.tenant_id = tenant_document.tenant_id;
17
- this.document_id = tenant_document.document_id;
18
18
  this.file_suffix_id = tenant_document.file_suffix_id;
19
19
  this.name = tenant_document.name;
20
20
  this.fragment_type_id = tenant_document.fragment_type_id;
@@ -25,8 +25,8 @@ export class TenantDocument {
25
25
  }
26
26
  static is(tenant_document) {
27
27
  return (tenant_document !== undefined &&
28
+ typeof tenant_document.tenant_document_id === "string" &&
28
29
  typeof tenant_document.tenant_id === "string" &&
29
- typeof tenant_document.document_id === "string" &&
30
30
  typeof tenant_document.file_suffix_id === "string" &&
31
31
  typeof tenant_document.name === "string" &&
32
32
  (tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.217",
3
+ "version": "1.0.218",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  import { FragmentTypeID, is_fragment_type_id } from "../fragments/Fragment"
2
2
 
3
3
  export class TenantDocument {
4
+ readonly tenant_document_id : string
4
5
  readonly tenant_id : string
5
- readonly document_id : string
6
6
  readonly file_suffix_id : string
7
7
  readonly name : string
8
8
  readonly fragment_type_id? : FragmentTypeID
@@ -16,8 +16,8 @@ export class TenantDocument {
16
16
  if (!TenantDocument.is(tenant_document)) {
17
17
  throw Error("Invalid input.")
18
18
  }
19
+ this.tenant_document_id = tenant_document.tenant_document_id
19
20
  this.tenant_id = tenant_document.tenant_id
20
- this.document_id = tenant_document.document_id
21
21
  this.file_suffix_id = tenant_document.file_suffix_id
22
22
  this.name = tenant_document.name
23
23
  this.fragment_type_id = tenant_document.fragment_type_id
@@ -30,8 +30,8 @@ export class TenantDocument {
30
30
  static is(tenant_document : any) : tenant_document is TenantDocument {
31
31
  return (
32
32
  tenant_document !== undefined &&
33
+ typeof tenant_document.tenant_document_id === "string" &&
33
34
  typeof tenant_document.tenant_id === "string" &&
34
- typeof tenant_document.document_id === "string" &&
35
35
  typeof tenant_document.file_suffix_id === "string" &&
36
36
  typeof tenant_document.name === "string" &&
37
37
  (tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&