triangle-types 1.0.337 → 1.0.339
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/index.d.ts +1 -2
- package/dist/src/index.js +1 -2
- package/dist/src/types/legistar/LegistarAgencyDocument.d.ts +14 -0
- package/dist/src/types/legistar/LegistarAgencyDocument.js +40 -0
- package/package.json +1 -1
- package/src/index.ts +1 -2
- package/src/types/legistar/LegistarAgencyDocument.ts +44 -0
- package/src/types/federal_rules/FederalRuleSection.ts +0 -42
- package/src/types/legistar/LegistarDocument.ts +0 -44
package/dist/src/index.d.ts
CHANGED
|
@@ -60,7 +60,6 @@ export * from "./types/federal_dockets/FederalDocketDocument.js";
|
|
|
60
60
|
export * from "./types/federal_dockets/FederalDocketComment.js";
|
|
61
61
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment.js";
|
|
62
62
|
export * from "./types/federal_rules/FederalRuleTitle.js";
|
|
63
|
-
export * from "./types/federal_rules/FederalRuleSection.js";
|
|
64
63
|
export * from "./types/jurisdictions/County.js";
|
|
65
64
|
export * from "./types/jurisdictions/Jurisdiction.js";
|
|
66
65
|
export * from "./types/jurisdictions/JurisdictionMetric.js";
|
|
@@ -71,7 +70,7 @@ export * from "./types/label/Label.js";
|
|
|
71
70
|
export * from "./types/lal/LALFile.js";
|
|
72
71
|
export * from "./types/lal/LALFileVoter.js";
|
|
73
72
|
export * from "./types/legistar/LegistarAgency.js";
|
|
74
|
-
export * from "./types/legistar/
|
|
73
|
+
export * from "./types/legistar/LegistarAgencyDocument.js";
|
|
75
74
|
export * from "./types/prism/Prism.js";
|
|
76
75
|
export * from "./types/prism/PrismFeature.js";
|
|
77
76
|
export * from "./types/prism/PrismSegment.js";
|
package/dist/src/index.js
CHANGED
|
@@ -60,7 +60,6 @@ export * from "./types/federal_dockets/FederalDocketDocument.js";
|
|
|
60
60
|
export * from "./types/federal_dockets/FederalDocketComment.js";
|
|
61
61
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment.js";
|
|
62
62
|
export * from "./types/federal_rules/FederalRuleTitle.js";
|
|
63
|
-
export * from "./types/federal_rules/FederalRuleSection.js";
|
|
64
63
|
export * from "./types/jurisdictions/County.js";
|
|
65
64
|
export * from "./types/jurisdictions/Jurisdiction.js";
|
|
66
65
|
export * from "./types/jurisdictions/JurisdictionMetric.js";
|
|
@@ -71,7 +70,7 @@ export * from "./types/label/Label.js";
|
|
|
71
70
|
export * from "./types/lal/LALFile.js";
|
|
72
71
|
export * from "./types/lal/LALFileVoter.js";
|
|
73
72
|
export * from "./types/legistar/LegistarAgency.js";
|
|
74
|
-
export * from "./types/legistar/
|
|
73
|
+
export * from "./types/legistar/LegistarAgencyDocument.js";
|
|
75
74
|
export * from "./types/prism/Prism.js";
|
|
76
75
|
export * from "./types/prism/PrismFeature.js";
|
|
77
76
|
export * from "./types/prism/PrismSegment.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class LegistarAgencyDocument {
|
|
2
|
+
readonly legistar_id: string;
|
|
3
|
+
readonly agency_id: number;
|
|
4
|
+
readonly document_id: number;
|
|
5
|
+
readonly location?: string;
|
|
6
|
+
readonly date: string;
|
|
7
|
+
readonly url?: string;
|
|
8
|
+
readonly url_video?: string;
|
|
9
|
+
readonly url_agenda?: string;
|
|
10
|
+
readonly url_minutes?: String;
|
|
11
|
+
readonly s3_id_txt?: string;
|
|
12
|
+
constructor(legistar_agency_document: any);
|
|
13
|
+
static is(legistar_agency_document: any): legistar_agency_document is LegistarAgencyDocument;
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export class LegistarAgencyDocument {
|
|
2
|
+
legistar_id;
|
|
3
|
+
agency_id;
|
|
4
|
+
document_id;
|
|
5
|
+
location;
|
|
6
|
+
date;
|
|
7
|
+
url;
|
|
8
|
+
url_video;
|
|
9
|
+
url_agenda;
|
|
10
|
+
url_minutes;
|
|
11
|
+
s3_id_txt;
|
|
12
|
+
constructor(legistar_agency_document) {
|
|
13
|
+
if (!LegistarAgencyDocument.is(legistar_agency_document)) {
|
|
14
|
+
throw Error("Invalid input.");
|
|
15
|
+
}
|
|
16
|
+
this.legistar_id = legistar_agency_document.legistar_id;
|
|
17
|
+
this.agency_id = legistar_agency_document.agency_id;
|
|
18
|
+
this.document_id = legistar_agency_document.document_id;
|
|
19
|
+
this.location = legistar_agency_document.location;
|
|
20
|
+
this.date = legistar_agency_document.date;
|
|
21
|
+
this.url = legistar_agency_document.url;
|
|
22
|
+
this.url_video = legistar_agency_document.url_video;
|
|
23
|
+
this.url_agenda = legistar_agency_document.url_agenda;
|
|
24
|
+
this.url_minutes = legistar_agency_document.url_minutes;
|
|
25
|
+
this.s3_id_txt = legistar_agency_document.s3_id_txt;
|
|
26
|
+
}
|
|
27
|
+
static is(legistar_agency_document) {
|
|
28
|
+
return (legistar_agency_document !== undefined &&
|
|
29
|
+
typeof legistar_agency_document.legistar_id === "string" &&
|
|
30
|
+
typeof legistar_agency_document.agency_id === "number" &&
|
|
31
|
+
typeof legistar_agency_document.document_id === "number" &&
|
|
32
|
+
(legistar_agency_document.location === undefined || typeof legistar_agency_document.location === "string") &&
|
|
33
|
+
typeof legistar_agency_document.date === "string" &&
|
|
34
|
+
(legistar_agency_document.url === undefined || typeof legistar_agency_document.url === "string") &&
|
|
35
|
+
(legistar_agency_document.url_video === undefined || typeof legistar_agency_document.url_video === "string") &&
|
|
36
|
+
(legistar_agency_document.url_agenda === undefined || typeof legistar_agency_document.url_agenda === "string") &&
|
|
37
|
+
(legistar_agency_document.url_minutes === undefined || typeof legistar_agency_document.url_minutes === "string") &&
|
|
38
|
+
(legistar_agency_document.s3_id_txt === undefined || typeof legistar_agency_document.s3_id_txt === "string"));
|
|
39
|
+
}
|
|
40
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -71,7 +71,6 @@ export * from "./types/federal_dockets/FederalDocketComment"
|
|
|
71
71
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment"
|
|
72
72
|
|
|
73
73
|
export * from "./types/federal_rules/FederalRuleTitle"
|
|
74
|
-
export * from "./types/federal_rules/FederalRuleSection"
|
|
75
74
|
|
|
76
75
|
export * from "./types/jurisdictions/County"
|
|
77
76
|
export * from "./types/jurisdictions/Jurisdiction"
|
|
@@ -86,7 +85,7 @@ export * from "./types/lal/LALFile"
|
|
|
86
85
|
export * from "./types/lal/LALFileVoter"
|
|
87
86
|
|
|
88
87
|
export * from "./types/legistar/LegistarAgency"
|
|
89
|
-
export * from "./types/legistar/
|
|
88
|
+
export * from "./types/legistar/LegistarAgencyDocument"
|
|
90
89
|
|
|
91
90
|
export * from "./types/prism/Prism"
|
|
92
91
|
export * from "./types/prism/PrismFeature"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export class LegistarAgencyDocument {
|
|
2
|
+
readonly legistar_id : string
|
|
3
|
+
readonly agency_id : number
|
|
4
|
+
readonly document_id : number
|
|
5
|
+
readonly location? : string
|
|
6
|
+
readonly date : string
|
|
7
|
+
readonly url? : string
|
|
8
|
+
readonly url_video? : string
|
|
9
|
+
readonly url_agenda? : string
|
|
10
|
+
readonly url_minutes? : String
|
|
11
|
+
readonly s3_id_txt? : string
|
|
12
|
+
|
|
13
|
+
constructor(legistar_agency_document : any) {
|
|
14
|
+
if (!LegistarAgencyDocument.is(legistar_agency_document)) {
|
|
15
|
+
throw Error("Invalid input.")
|
|
16
|
+
}
|
|
17
|
+
this.legistar_id = legistar_agency_document.legistar_id
|
|
18
|
+
this.agency_id = legistar_agency_document.agency_id
|
|
19
|
+
this.document_id = legistar_agency_document.document_id
|
|
20
|
+
this.location = legistar_agency_document.location
|
|
21
|
+
this.date = legistar_agency_document.date
|
|
22
|
+
this.url = legistar_agency_document.url
|
|
23
|
+
this.url_video = legistar_agency_document.url_video
|
|
24
|
+
this.url_agenda = legistar_agency_document.url_agenda
|
|
25
|
+
this.url_minutes = legistar_agency_document.url_minutes
|
|
26
|
+
this.s3_id_txt = legistar_agency_document.s3_id_txt
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static is(legistar_agency_document : any) : legistar_agency_document is LegistarAgencyDocument {
|
|
30
|
+
return (
|
|
31
|
+
legistar_agency_document !== undefined &&
|
|
32
|
+
typeof legistar_agency_document.legistar_id === "string" &&
|
|
33
|
+
typeof legistar_agency_document.agency_id === "number" &&
|
|
34
|
+
typeof legistar_agency_document.document_id === "number" &&
|
|
35
|
+
(legistar_agency_document.location === undefined || typeof legistar_agency_document.location === "string") &&
|
|
36
|
+
typeof legistar_agency_document.date === "string" &&
|
|
37
|
+
(legistar_agency_document.url === undefined || typeof legistar_agency_document.url === "string") &&
|
|
38
|
+
(legistar_agency_document.url_video === undefined || typeof legistar_agency_document.url_video === "string") &&
|
|
39
|
+
(legistar_agency_document.url_agenda === undefined || typeof legistar_agency_document.url_agenda === "string") &&
|
|
40
|
+
(legistar_agency_document.url_minutes === undefined || typeof legistar_agency_document.url_minutes === "string") &&
|
|
41
|
+
(legistar_agency_document.s3_id_txt === undefined || typeof legistar_agency_document.s3_id_txt === "string")
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export class FederalRuleSection {
|
|
2
|
-
readonly federal_rule_section_id : string
|
|
3
|
-
readonly federal_rule_title_id : number
|
|
4
|
-
readonly section_id : string
|
|
5
|
-
readonly part_id : string
|
|
6
|
-
readonly subpart_id? : string
|
|
7
|
-
readonly name : string
|
|
8
|
-
readonly is_substantive : boolean
|
|
9
|
-
readonly is_removed : boolean
|
|
10
|
-
readonly s3_id? : string
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor(federal_rule_section : FederalRuleSection) {
|
|
14
|
-
if (!FederalRuleSection.is(federal_rule_section)) {
|
|
15
|
-
throw Error("Invalid input.")
|
|
16
|
-
}
|
|
17
|
-
this.federal_rule_section_id = federal_rule_section.federal_rule_section_id
|
|
18
|
-
this.federal_rule_title_id = federal_rule_section.federal_rule_title_id
|
|
19
|
-
this.section_id = federal_rule_section.section_id
|
|
20
|
-
this.part_id = federal_rule_section.part_id
|
|
21
|
-
this.subpart_id = federal_rule_section.subpart_id
|
|
22
|
-
this.name = federal_rule_section.name
|
|
23
|
-
this.is_substantive = federal_rule_section.is_substantive
|
|
24
|
-
this.is_removed = federal_rule_section.is_removed
|
|
25
|
-
this.s3_id = federal_rule_section.s3_id
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static is(federal_rule_section : any) : federal_rule_section is FederalRuleSection {
|
|
29
|
-
return (
|
|
30
|
-
federal_rule_section !== undefined &&
|
|
31
|
-
typeof federal_rule_section.federal_rule_section_id === "string" &&
|
|
32
|
-
typeof federal_rule_section.federal_rule_title_id === "number" && !isNaN(federal_rule_section.federal_rule_title_id) &&
|
|
33
|
-
typeof federal_rule_section.section_id === "string" &&
|
|
34
|
-
typeof federal_rule_section.part_id === "string" &&
|
|
35
|
-
(federal_rule_section.subpart_id === undefined || typeof federal_rule_section.subpart_id === "string") &&
|
|
36
|
-
typeof federal_rule_section.name === "string" &&
|
|
37
|
-
typeof federal_rule_section.is_substantive === "boolean" &&
|
|
38
|
-
typeof federal_rule_section.is_removed === "boolean" &&
|
|
39
|
-
(federal_rule_section.s3_id === undefined || typeof federal_rule_section.s3_id === "string")
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export class LegistarDocument {
|
|
2
|
-
readonly legistar_id : string
|
|
3
|
-
readonly agency_id : number
|
|
4
|
-
readonly document_id : number
|
|
5
|
-
readonly location? : string
|
|
6
|
-
readonly date : string
|
|
7
|
-
readonly url? : string
|
|
8
|
-
readonly url_video? : string
|
|
9
|
-
readonly url_agenda? : string
|
|
10
|
-
readonly url_minutes? : String
|
|
11
|
-
readonly s3_id_txt? : string
|
|
12
|
-
|
|
13
|
-
constructor(legistar_document : any) {
|
|
14
|
-
if (!LegistarDocument.is(legistar_document)) {
|
|
15
|
-
throw Error("Invalid input.")
|
|
16
|
-
}
|
|
17
|
-
this.legistar_id = legistar_document.legistar_id
|
|
18
|
-
this.agency_id = legistar_document.agency_id
|
|
19
|
-
this.document_id = legistar_document.document_id
|
|
20
|
-
this.location = legistar_document.location
|
|
21
|
-
this.date = legistar_document.date
|
|
22
|
-
this.url = legistar_document.url
|
|
23
|
-
this.url_video = legistar_document.url_video
|
|
24
|
-
this.url_agenda = legistar_document.url_agenda
|
|
25
|
-
this.url_minutes = legistar_document.url_minutes
|
|
26
|
-
this.s3_id_txt = legistar_document.s3_id_txt
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static is(legistar_document : any) : legistar_document is LegistarDocument {
|
|
30
|
-
return (
|
|
31
|
-
legistar_document !== undefined &&
|
|
32
|
-
typeof legistar_document.legistar_id === "string" &&
|
|
33
|
-
typeof legistar_document.agency_id === "number" &&
|
|
34
|
-
typeof legistar_document.document_id === "number" &&
|
|
35
|
-
(legistar_document.location === undefined || typeof legistar_document.location === "string") &&
|
|
36
|
-
typeof legistar_document.date === "string" &&
|
|
37
|
-
(legistar_document.url === undefined || typeof legistar_document.url === "string") &&
|
|
38
|
-
(legistar_document.url_video === undefined || typeof legistar_document.url_video === "string") &&
|
|
39
|
-
(legistar_document.url_agenda === undefined || typeof legistar_document.url_agenda === "string") &&
|
|
40
|
-
(legistar_document.url_minutes === undefined || typeof legistar_document.url_minutes === "string") &&
|
|
41
|
-
(legistar_document.s3_id_txt === undefined || typeof legistar_document.s3_id_txt === "string")
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
}
|