triangle-types 1.0.338 → 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
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";
|
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";
|
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"
|
|
@@ -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
|
-
}
|