triage-types 1.0.94 → 1.0.95

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.
@@ -3,7 +3,7 @@ export declare class FederalDocketCommentAttachment {
3
3
  readonly federal_docket_comment_id: string;
4
4
  readonly attachment_number: number;
5
5
  readonly urls: string[];
6
- readonly s3_filenames?: string[];
6
+ readonly s3_ids?: string[];
7
7
  constructor(federal_docket_comment_attachment: any);
8
8
  static is(federal_docket_comment_attachment: any): federal_docket_comment_attachment is FederalDocketCommentAttachment;
9
9
  }
@@ -3,7 +3,7 @@ export class FederalDocketCommentAttachment {
3
3
  federal_docket_comment_id;
4
4
  attachment_number;
5
5
  urls;
6
- s3_filenames;
6
+ s3_ids;
7
7
  constructor(federal_docket_comment_attachment) {
8
8
  if (!FederalDocketCommentAttachment.is(federal_docket_comment_attachment)) {
9
9
  throw Error("Invalid input.");
@@ -12,7 +12,7 @@ export class FederalDocketCommentAttachment {
12
12
  this.attachment_number = federal_docket_comment_attachment.attachment_number;
13
13
  this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id;
14
14
  this.urls = federal_docket_comment_attachment.urls;
15
- this.s3_filenames = federal_docket_comment_attachment.s3_filenames;
15
+ this.s3_ids = federal_docket_comment_attachment.s3_ids;
16
16
  }
17
17
  static is(federal_docket_comment_attachment) {
18
18
  return (federal_docket_comment_attachment !== undefined &&
@@ -20,6 +20,6 @@ export class FederalDocketCommentAttachment {
20
20
  typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
21
21
  typeof federal_docket_comment_attachment.attachment_number === "number" &&
22
22
  Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url) => typeof url === "string") &&
23
- (federal_docket_comment_attachment.s3_filenames === undefined || Array.isArray(federal_docket_comment_attachment.s3_filenames) && federal_docket_comment_attachment.s3_filenames.every((s3_filename) => typeof s3_filename === "string")));
23
+ (federal_docket_comment_attachment.s3_ids === undefined || Array.isArray(federal_docket_comment_attachment.s3_ids) && federal_docket_comment_attachment.s3_ids.every((s3_id) => typeof s3_id === "string")));
24
24
  }
25
25
  }
@@ -21,7 +21,7 @@ export declare class FederalDocketDocument {
21
21
  readonly media_type_id?: string;
22
22
  readonly abstract?: string;
23
23
  readonly urls: string[];
24
- readonly s3_filenames?: string[];
24
+ readonly s3_ids?: string[];
25
25
  constructor(federal_docket_document: any);
26
26
  static is(federal_docket_document: any): federal_docket_document is FederalDocketDocument;
27
27
  }
@@ -22,7 +22,7 @@ export class FederalDocketDocument {
22
22
  media_type_id;
23
23
  abstract;
24
24
  urls;
25
- s3_filenames;
25
+ s3_ids;
26
26
  constructor(federal_docket_document) {
27
27
  if (!FederalDocketDocument.is(federal_docket_document)) {
28
28
  throw Error("Invalid input.");
@@ -46,7 +46,7 @@ export class FederalDocketDocument {
46
46
  this.media_type_id = federal_docket_document.media_type_id;
47
47
  this.abstract = federal_docket_document.abstract;
48
48
  this.urls = federal_docket_document.urls;
49
- this.s3_filenames = federal_docket_document.s3_filenames;
49
+ this.s3_ids = federal_docket_document.s3_ids;
50
50
  }
51
51
  static is(federal_docket_document) {
52
52
  return (federal_docket_document !== undefined &&
@@ -69,6 +69,6 @@ export class FederalDocketDocument {
69
69
  (federal_docket_document.media_type_id === undefined || typeof federal_docket_document.media_type_id === "string") &&
70
70
  (federal_docket_document.abstract === undefined || typeof federal_docket_document.abstract === "string") &&
71
71
  Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url) => typeof url === "string") &&
72
- (federal_docket_document.s3_filenames === undefined || Array.isArray(federal_docket_document.s3_filenames) && federal_docket_document.s3_filenames.every((s3_filename) => typeof s3_filename === "string")));
72
+ (federal_docket_document.s3_ids === undefined || Array.isArray(federal_docket_document.s3_ids) && federal_docket_document.s3_ids.every((s3_id) => typeof s3_id === "string")));
73
73
  }
74
74
  }
@@ -14,7 +14,7 @@ export declare class FederalRegisterDocument {
14
14
  readonly abstract?: string;
15
15
  readonly url: string;
16
16
  readonly topics: string[];
17
- readonly s3_filename?: string;
17
+ readonly s3_id?: string;
18
18
  readonly vector_keys?: string[];
19
19
  constructor(federal_register_document: any);
20
20
  static is(federal_register_document: any): federal_register_document is FederalRegisterDocument;
@@ -15,7 +15,7 @@ export class FederalRegisterDocument {
15
15
  abstract;
16
16
  url;
17
17
  topics;
18
- s3_filename;
18
+ s3_id;
19
19
  vector_keys;
20
20
  constructor(federal_register_document) {
21
21
  if (!FederalRegisterDocument.is(federal_register_document)) {
@@ -33,7 +33,7 @@ export class FederalRegisterDocument {
33
33
  this.abstract = federal_register_document.abstract;
34
34
  this.url = federal_register_document.url;
35
35
  this.topics = federal_register_document.topics;
36
- this.s3_filename = federal_register_document.s3_filename;
36
+ this.s3_id = federal_register_document.s3_id;
37
37
  this.vector_keys = federal_register_document.vector_keys;
38
38
  }
39
39
  static is(federal_register_document) {
@@ -50,7 +50,7 @@ export class FederalRegisterDocument {
50
50
  (federal_register_document.abstract === undefined || typeof federal_register_document.abstract === "string") &&
51
51
  typeof federal_register_document.url === "string" &&
52
52
  Array.isArray(federal_register_document.topics) && federal_register_document.topics.every((topic) => typeof topic === "string") &&
53
- (federal_register_document.s3_filename === undefined || typeof federal_register_document.s3_filename === "string") &&
53
+ (federal_register_document.s3_id === undefined || typeof federal_register_document.s3_id === "string") &&
54
54
  (federal_register_document.vector_keys === undefined || Array.isArray(federal_register_document.vector_keys) && federal_register_document.vector_keys.every((topic) => typeof topic === "string")));
55
55
  }
56
56
  }
@@ -15,8 +15,8 @@ export declare class StatePermitDocument {
15
15
  readonly document_type: string;
16
16
  readonly document_type_id?: string;
17
17
  readonly name: string;
18
- readonly s3_filename?: string;
19
- readonly s3_text_filename?: string;
18
+ readonly s3_id?: string;
19
+ readonly s3_id_txt?: string;
20
20
  readonly source_ids?: string[];
21
21
  readonly comments?: StatePermitComment[];
22
22
  readonly [x: string]: any;
@@ -25,8 +25,8 @@ export class StatePermitDocument {
25
25
  document_type;
26
26
  document_type_id;
27
27
  name;
28
- s3_filename;
29
- s3_text_filename;
28
+ s3_id;
29
+ s3_id_txt;
30
30
  source_ids;
31
31
  comments;
32
32
  constructor(state_permit_document) {
@@ -41,8 +41,8 @@ export class StatePermitDocument {
41
41
  this.document_type = state_permit_document.document_type;
42
42
  this.document_type_id = state_permit_document.document_type_id;
43
43
  this.name = state_permit_document.name;
44
- this.s3_filename = state_permit_document.s3_filename;
45
- this.s3_text_filename = state_permit_document.s3_text_filename;
44
+ this.s3_id = state_permit_document.s3_id;
45
+ this.s3_id_txt = state_permit_document.s3_id_txt;
46
46
  this.source_ids = state_permit_document.source_ids;
47
47
  this.comments = state_permit_document.comments;
48
48
  }
@@ -56,8 +56,8 @@ export class StatePermitDocument {
56
56
  typeof state_permit_document.document_type === "string" &&
57
57
  (state_permit_document.document_type_id === undefined || typeof state_permit_document.document_type_id === "string") &&
58
58
  typeof state_permit_document.name === "string" &&
59
- (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string") &&
60
- (state_permit_document.s3_text_filename === undefined || typeof state_permit_document.s3_text_filename == "string") &&
59
+ (state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
60
+ (state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
61
61
  (state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id) => typeof source_id === "string")) &&
62
62
  (state_permit_document.comments === undefined || Array.isArray(state_permit_document.comments) && state_permit_document.comments.every(StatePermitComment.is)));
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,7 +3,7 @@ export class FederalDocketCommentAttachment {
3
3
  readonly federal_docket_comment_id : string
4
4
  readonly attachment_number : number
5
5
  readonly urls : string[]
6
- readonly s3_filenames? : string[]
6
+ readonly s3_ids? : string[]
7
7
 
8
8
  constructor(federal_docket_comment_attachment : any) {
9
9
  if (!FederalDocketCommentAttachment.is(federal_docket_comment_attachment)) {
@@ -13,7 +13,7 @@ export class FederalDocketCommentAttachment {
13
13
  this.attachment_number = federal_docket_comment_attachment.attachment_number
14
14
  this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id
15
15
  this.urls = federal_docket_comment_attachment.urls
16
- this.s3_filenames = federal_docket_comment_attachment.s3_filenames
16
+ this.s3_ids = federal_docket_comment_attachment.s3_ids
17
17
  }
18
18
 
19
19
  static is(federal_docket_comment_attachment : any) : federal_docket_comment_attachment is FederalDocketCommentAttachment {
@@ -23,7 +23,7 @@ export class FederalDocketCommentAttachment {
23
23
  typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
24
24
  typeof federal_docket_comment_attachment.attachment_number === "number" &&
25
25
  Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url : any) => typeof url === "string") &&
26
- (federal_docket_comment_attachment.s3_filenames === undefined || Array.isArray(federal_docket_comment_attachment.s3_filenames) && federal_docket_comment_attachment.s3_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
26
+ (federal_docket_comment_attachment.s3_ids === undefined || Array.isArray(federal_docket_comment_attachment.s3_ids) && federal_docket_comment_attachment.s3_ids.every((s3_id : any) => typeof s3_id === "string"))
27
27
  )
28
28
  }
29
29
  }
@@ -26,7 +26,7 @@ export class FederalDocketDocument {
26
26
  readonly media_type_id? : string
27
27
  readonly abstract? : string
28
28
  readonly urls : string[]
29
- readonly s3_filenames? : string[]
29
+ readonly s3_ids? : string[]
30
30
 
31
31
  constructor(federal_docket_document : any) {
32
32
  if (!FederalDocketDocument.is(federal_docket_document)) {
@@ -51,7 +51,7 @@ export class FederalDocketDocument {
51
51
  this.media_type_id = federal_docket_document.media_type_id
52
52
  this.abstract = federal_docket_document.abstract
53
53
  this.urls = federal_docket_document.urls
54
- this.s3_filenames = federal_docket_document.s3_filenames
54
+ this.s3_ids = federal_docket_document.s3_ids
55
55
  }
56
56
 
57
57
  static is(federal_docket_document : any) : federal_docket_document is FederalDocketDocument {
@@ -76,7 +76,7 @@ export class FederalDocketDocument {
76
76
  (federal_docket_document.media_type_id === undefined || typeof federal_docket_document.media_type_id === "string") &&
77
77
  (federal_docket_document.abstract === undefined || typeof federal_docket_document.abstract === "string") &&
78
78
  Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url : any) => typeof url === "string") &&
79
- (federal_docket_document.s3_filenames === undefined || Array.isArray(federal_docket_document.s3_filenames) && federal_docket_document.s3_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
79
+ (federal_docket_document.s3_ids === undefined || Array.isArray(federal_docket_document.s3_ids) && federal_docket_document.s3_ids.every((s3_id : any) => typeof s3_id === "string"))
80
80
  )
81
81
  }
82
82
  }
@@ -19,7 +19,7 @@ export class FederalRegisterDocument {
19
19
  readonly abstract? : string
20
20
  readonly url : string
21
21
  readonly topics : string[]
22
- readonly s3_filename? : string
22
+ readonly s3_id? : string
23
23
  readonly vector_keys? : string[]
24
24
 
25
25
  constructor(federal_register_document : any) {
@@ -38,7 +38,7 @@ export class FederalRegisterDocument {
38
38
  this.abstract = federal_register_document.abstract
39
39
  this.url = federal_register_document.url
40
40
  this.topics = federal_register_document.topics
41
- this.s3_filename = federal_register_document.s3_filename
41
+ this.s3_id = federal_register_document.s3_id
42
42
  this.vector_keys = federal_register_document.vector_keys
43
43
  }
44
44
 
@@ -57,7 +57,7 @@ export class FederalRegisterDocument {
57
57
  (federal_register_document.abstract === undefined || typeof federal_register_document.abstract === "string") &&
58
58
  typeof federal_register_document.url === "string" &&
59
59
  Array.isArray(federal_register_document.topics) && federal_register_document.topics.every((topic : any) => typeof topic === "string") &&
60
- (federal_register_document.s3_filename === undefined || typeof federal_register_document.s3_filename === "string") &&
60
+ (federal_register_document.s3_id === undefined || typeof federal_register_document.s3_id === "string") &&
61
61
  (federal_register_document.vector_keys === undefined || Array.isArray(federal_register_document.vector_keys) && federal_register_document.vector_keys.every((topic : any) => typeof topic === "string"))
62
62
  )
63
63
  }
@@ -33,8 +33,8 @@ export class StatePermitDocument {
33
33
  readonly document_type : string
34
34
  readonly document_type_id? : string
35
35
  readonly name : string
36
- readonly s3_filename? : string
37
- readonly s3_text_filename? : string
36
+ readonly s3_id? : string
37
+ readonly s3_id_txt? : string
38
38
  readonly source_ids? : string[]
39
39
  readonly comments? : StatePermitComment[]
40
40
  readonly [x : string] : any
@@ -51,8 +51,8 @@ export class StatePermitDocument {
51
51
  this.document_type = state_permit_document.document_type
52
52
  this.document_type_id = state_permit_document.document_type_id
53
53
  this.name = state_permit_document.name
54
- this.s3_filename = state_permit_document.s3_filename
55
- this.s3_text_filename = state_permit_document.s3_text_filename
54
+ this.s3_id = state_permit_document.s3_id
55
+ this.s3_id_txt = state_permit_document.s3_id_txt
56
56
  this.source_ids = state_permit_document.source_ids
57
57
  this.comments = state_permit_document.comments
58
58
  }
@@ -68,8 +68,8 @@ export class StatePermitDocument {
68
68
  typeof state_permit_document.document_type === "string" &&
69
69
  (state_permit_document.document_type_id === undefined || typeof state_permit_document.document_type_id === "string") &&
70
70
  typeof state_permit_document.name === "string" &&
71
- (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string") &&
72
- (state_permit_document.s3_text_filename === undefined || typeof state_permit_document.s3_text_filename == "string") &&
71
+ (state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
72
+ (state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
73
73
  (state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id : any) => typeof source_id === "string")) &&
74
74
  (state_permit_document.comments === undefined || Array.isArray(state_permit_document.comments) && state_permit_document.comments.every(StatePermitComment.is))
75
75
  )