triangle-types 1.0.220 → 1.0.222

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.
@@ -103,6 +103,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument.js";
103
103
  export * from "./types/user/Tenant.js";
104
104
  export * from "./types/user/TenantDocument.js";
105
105
  export * from "./types/user/TenantDocumentFragment.js";
106
+ export * from "./types/user/TenantDocumentTag.js";
106
107
  export * from "./types/user/TenantProvision.js";
107
108
  export * from "./types/user/User.js";
108
109
  export * from "./types/user/UserComment.js";
package/dist/src/index.js CHANGED
@@ -103,6 +103,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument.js";
103
103
  export * from "./types/user/Tenant.js";
104
104
  export * from "./types/user/TenantDocument.js";
105
105
  export * from "./types/user/TenantDocumentFragment.js";
106
+ export * from "./types/user/TenantDocumentTag.js";
106
107
  export * from "./types/user/TenantProvision.js";
107
108
  export * from "./types/user/User.js";
108
109
  export * from "./types/user/UserComment.js";
@@ -0,0 +1,7 @@
1
+ export declare class TenantDocumentTag {
2
+ readonly tenant_document_id: string;
3
+ readonly tag_id: string;
4
+ readonly [x: string]: any;
5
+ constructor(tenant_document_tag: TenantDocumentTag);
6
+ static is(tenant_document_tag: any): tenant_document_tag is TenantDocumentTag;
7
+ }
@@ -0,0 +1,16 @@
1
+ export class TenantDocumentTag {
2
+ tenant_document_id;
3
+ tag_id;
4
+ constructor(tenant_document_tag) {
5
+ if (!TenantDocumentTag.is(tenant_document_tag)) {
6
+ throw Error("Invalid input.");
7
+ }
8
+ this.tenant_document_id = tenant_document_tag.tenant_document_id;
9
+ this.tag_id = tenant_document_tag.tag_id;
10
+ }
11
+ static is(tenant_document_tag) {
12
+ return (tenant_document_tag !== undefined &&
13
+ typeof tenant_document_tag.tenant_document_id === "string" &&
14
+ typeof tenant_document_tag.tag_id === "string");
15
+ }
16
+ }
@@ -6,7 +6,7 @@ export declare class YoutubeVideo {
6
6
  readonly title: string;
7
7
  readonly description: string;
8
8
  readonly duration?: number;
9
- readonly s3_id?: string;
9
+ readonly s3_id_json?: string;
10
10
  readonly [x: string]: any;
11
11
  constructor(youtube_video: YoutubeVideo);
12
12
  static is(youtube_video: any): youtube_video is YoutubeVideo;
@@ -6,7 +6,7 @@ export class YoutubeVideo {
6
6
  title;
7
7
  description;
8
8
  duration;
9
- s3_id;
9
+ s3_id_json;
10
10
  constructor(youtube_video) {
11
11
  if (!YoutubeVideo.is(youtube_video)) {
12
12
  throw Error("Invalid input.");
@@ -17,7 +17,7 @@ export class YoutubeVideo {
17
17
  this.title = youtube_video.title;
18
18
  this.description = youtube_video.description;
19
19
  this.duration = youtube_video.duration;
20
- this.s3_id = youtube_video.s3_id;
20
+ this.s3_id_json = youtube_video.s3_id_json;
21
21
  }
22
22
  static is(youtube_video) {
23
23
  return (youtube_video !== undefined &&
@@ -27,7 +27,7 @@ export class YoutubeVideo {
27
27
  typeof youtube_video.title === "string" &&
28
28
  typeof youtube_video.description === "string" &&
29
29
  (youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
30
- (youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string"));
30
+ (youtube_video.s3_id_json === undefined || typeof youtube_video.s3_id_json === "string"));
31
31
  }
32
32
  }
33
33
  export class YoutubeVideoAux extends YoutubeVideo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.220",
3
+ "version": "1.0.222",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -126,6 +126,7 @@ export * from "./types/state_permits/WI/WIStatePermitDocument"
126
126
  export * from "./types/user/Tenant"
127
127
  export * from "./types/user/TenantDocument"
128
128
  export * from "./types/user/TenantDocumentFragment"
129
+ export * from "./types/user/TenantDocumentTag"
129
130
  export * from "./types/user/TenantProvision"
130
131
  export * from "./types/user/User"
131
132
  export * from "./types/user/UserComment"
@@ -0,0 +1,21 @@
1
+ export class TenantDocumentTag {
2
+ readonly tenant_document_id : string
3
+ readonly tag_id : string
4
+ readonly [x : string] : any
5
+
6
+ constructor(tenant_document_tag : TenantDocumentTag) {
7
+ if (!TenantDocumentTag.is(tenant_document_tag)) {
8
+ throw Error("Invalid input.")
9
+ }
10
+ this.tenant_document_id = tenant_document_tag.tenant_document_id
11
+ this.tag_id = tenant_document_tag.tag_id
12
+ }
13
+
14
+ static is(tenant_document_tag : any) : tenant_document_tag is TenantDocumentTag {
15
+ return (
16
+ tenant_document_tag !== undefined &&
17
+ typeof tenant_document_tag.tenant_document_id === "string" &&
18
+ typeof tenant_document_tag.tag_id === "string"
19
+ )
20
+ }
21
+ }
@@ -7,7 +7,7 @@ export class YoutubeVideo {
7
7
  readonly title : string
8
8
  readonly description : string
9
9
  readonly duration? : number
10
- readonly s3_id? : string
10
+ readonly s3_id_json? : string
11
11
  readonly [x : string] : any
12
12
 
13
13
  constructor(youtube_video : YoutubeVideo) {
@@ -20,7 +20,7 @@ export class YoutubeVideo {
20
20
  this.title = youtube_video.title
21
21
  this.description = youtube_video.description
22
22
  this.duration = youtube_video.duration
23
- this.s3_id = youtube_video.s3_id
23
+ this.s3_id_json = youtube_video.s3_id_json
24
24
  }
25
25
 
26
26
  static is(youtube_video : any) : youtube_video is YoutubeVideo {
@@ -32,7 +32,7 @@ export class YoutubeVideo {
32
32
  typeof youtube_video.title === "string" &&
33
33
  typeof youtube_video.description === "string" &&
34
34
  (youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
35
- (youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string")
35
+ (youtube_video.s3_id_json === undefined || typeof youtube_video.s3_id_json === "string")
36
36
  )
37
37
  }
38
38
  }