onix-engine 0.1.0

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.
@@ -0,0 +1,58 @@
1
+ interface CodelistEntry {
2
+ readonly code: string;
3
+ readonly heading: string;
4
+ }
5
+ interface Codelist {
6
+ readonly number: number;
7
+ readonly heading: string;
8
+ readonly entries: readonly CodelistEntry[];
9
+ }
10
+
11
+ declare function getCodelist(number: number): Codelist | undefined;
12
+
13
+ declare function getCodelists(): readonly {
14
+ number: number;
15
+ heading: string;
16
+ }[];
17
+
18
+ declare function getCodelistEntries(number: number): readonly CodelistEntry[];
19
+
20
+ declare function getCodelistEntry(number: number, code: string): CodelistEntry | undefined;
21
+
22
+ declare function getCodelistHeading(number: number, code: string): string | undefined;
23
+
24
+ declare function hasCodelistCode(number: number, code: string): boolean;
25
+
26
+ interface ThemaEntry {
27
+ readonly code: string;
28
+ readonly heading: string;
29
+ readonly parentCode?: string;
30
+ readonly note?: string;
31
+ }
32
+ interface ThemaMetadata {
33
+ readonly issue: number;
34
+ readonly version: string;
35
+ readonly lastUpdated: string;
36
+ readonly generatedAt: string;
37
+ }
38
+
39
+ declare function getThemaChildren(parentCode?: string): readonly ThemaEntry[];
40
+
41
+ declare function getThemaEntries(): readonly ThemaEntry[];
42
+
43
+ declare function getThemaEntry(code: string): ThemaEntry | undefined;
44
+
45
+ declare function getThemaHeading(code: string): string | undefined;
46
+
47
+ declare function hasThemaCode(code: string): boolean;
48
+
49
+ interface CodelistMetadata {
50
+ readonly issue: number;
51
+ readonly generatedAt: string;
52
+ }
53
+
54
+ declare const metadata: CodelistMetadata;
55
+
56
+ declare const themaMetadata: ThemaMetadata;
57
+
58
+ export { type Codelist, type CodelistEntry, type CodelistMetadata, type ThemaEntry, type ThemaMetadata, getCodelist, getCodelistEntries, getCodelistEntry, getCodelistHeading, getCodelists, getThemaChildren, getThemaEntries, getThemaEntry, getThemaHeading, hasCodelistCode, hasThemaCode, metadata, themaMetadata };
@@ -0,0 +1,58 @@
1
+ interface CodelistEntry {
2
+ readonly code: string;
3
+ readonly heading: string;
4
+ }
5
+ interface Codelist {
6
+ readonly number: number;
7
+ readonly heading: string;
8
+ readonly entries: readonly CodelistEntry[];
9
+ }
10
+
11
+ declare function getCodelist(number: number): Codelist | undefined;
12
+
13
+ declare function getCodelists(): readonly {
14
+ number: number;
15
+ heading: string;
16
+ }[];
17
+
18
+ declare function getCodelistEntries(number: number): readonly CodelistEntry[];
19
+
20
+ declare function getCodelistEntry(number: number, code: string): CodelistEntry | undefined;
21
+
22
+ declare function getCodelistHeading(number: number, code: string): string | undefined;
23
+
24
+ declare function hasCodelistCode(number: number, code: string): boolean;
25
+
26
+ interface ThemaEntry {
27
+ readonly code: string;
28
+ readonly heading: string;
29
+ readonly parentCode?: string;
30
+ readonly note?: string;
31
+ }
32
+ interface ThemaMetadata {
33
+ readonly issue: number;
34
+ readonly version: string;
35
+ readonly lastUpdated: string;
36
+ readonly generatedAt: string;
37
+ }
38
+
39
+ declare function getThemaChildren(parentCode?: string): readonly ThemaEntry[];
40
+
41
+ declare function getThemaEntries(): readonly ThemaEntry[];
42
+
43
+ declare function getThemaEntry(code: string): ThemaEntry | undefined;
44
+
45
+ declare function getThemaHeading(code: string): string | undefined;
46
+
47
+ declare function hasThemaCode(code: string): boolean;
48
+
49
+ interface CodelistMetadata {
50
+ readonly issue: number;
51
+ readonly generatedAt: string;
52
+ }
53
+
54
+ declare const metadata: CodelistMetadata;
55
+
56
+ declare const themaMetadata: ThemaMetadata;
57
+
58
+ export { type Codelist, type CodelistEntry, type CodelistMetadata, type ThemaEntry, type ThemaMetadata, getCodelist, getCodelistEntries, getCodelistEntry, getCodelistHeading, getCodelists, getThemaChildren, getThemaEntries, getThemaEntry, getThemaHeading, hasCodelistCode, hasThemaCode, metadata, themaMetadata };