@pubid/pubid 0.1.3 → 0.1.4
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/artifact/corpus.json.gz +0 -0
- package/dist/conformance/cli.js +5 -1
- package/dist/flavors/amca/grammar.d.ts +4 -0
- package/dist/flavors/amca/grammar.js +87 -0
- package/dist/flavors/amca/index.d.ts +4 -0
- package/dist/flavors/amca/index.js +76 -0
- package/dist/flavors/amca/model.d.ts +29 -0
- package/dist/flavors/amca/model.js +146 -0
- package/dist/flavors/ansi/index.d.ts +24 -0
- package/dist/flavors/ansi/index.js +147 -0
- package/dist/flavors/api/grammar.d.ts +4 -0
- package/dist/flavors/api/grammar.js +79 -0
- package/dist/flavors/api/index.d.ts +4 -0
- package/dist/flavors/api/index.js +71 -0
- package/dist/flavors/api/model.d.ts +27 -0
- package/dist/flavors/api/model.js +114 -0
- package/dist/flavors/ashrae/grammar.d.ts +2 -0
- package/dist/flavors/ashrae/grammar.js +667 -0
- package/dist/flavors/ashrae/index.d.ts +4 -0
- package/dist/flavors/ashrae/index.js +306 -0
- package/dist/flavors/ashrae/model.d.ts +87 -0
- package/dist/flavors/ashrae/model.js +335 -0
- package/dist/flavors/ashrae/preprocessor.d.ts +7 -0
- package/dist/flavors/ashrae/preprocessor.js +44 -0
- package/dist/flavors/asme/grammar.d.ts +2 -0
- package/dist/flavors/asme/grammar.js +200 -0
- package/dist/flavors/asme/index.d.ts +4 -0
- package/dist/flavors/asme/index.js +138 -0
- package/dist/flavors/asme/model.d.ts +34 -0
- package/dist/flavors/asme/model.js +123 -0
- package/dist/flavors/astm/grammar.d.ts +2 -0
- package/dist/flavors/astm/grammar.js +110 -0
- package/dist/flavors/astm/index.d.ts +2 -0
- package/dist/flavors/astm/index.js +127 -0
- package/dist/flavors/astm/model.d.ts +42 -0
- package/dist/flavors/astm/model.js +263 -0
- package/dist/flavors/bipm/index.d.ts +30 -0
- package/dist/flavors/bipm/index.js +434 -0
- package/dist/flavors/bsi/grammar.d.ts +4 -0
- package/dist/flavors/bsi/grammar.js +535 -0
- package/dist/flavors/bsi/index.d.ts +4 -0
- package/dist/flavors/bsi/index.js +941 -0
- package/dist/flavors/bsi/model.d.ts +127 -0
- package/dist/flavors/bsi/model.js +863 -0
- package/dist/flavors/calconnect/index.d.ts +21 -0
- package/dist/flavors/calconnect/index.js +113 -0
- package/dist/flavors/cen_cenelec/grammar.d.ts +4 -0
- package/dist/flavors/cen_cenelec/grammar.js +107 -0
- package/dist/flavors/cen_cenelec/index.d.ts +5 -0
- package/dist/flavors/cen_cenelec/index.js +263 -0
- package/dist/flavors/cen_cenelec/model.d.ts +45 -0
- package/dist/flavors/cen_cenelec/model.js +490 -0
- package/dist/flavors/cie/grammar.d.ts +5 -0
- package/dist/flavors/cie/grammar.js +127 -0
- package/dist/flavors/cie/index.d.ts +2 -0
- package/dist/flavors/cie/index.js +311 -0
- package/dist/flavors/cie/model.d.ts +122 -0
- package/dist/flavors/cie/model.js +464 -0
- package/dist/flavors/csa/grammar.d.ts +6 -0
- package/dist/flavors/csa/grammar.js +239 -0
- package/dist/flavors/csa/index.d.ts +2 -0
- package/dist/flavors/csa/index.js +634 -0
- package/dist/flavors/csa/model.d.ts +33 -0
- package/dist/flavors/csa/model.js +505 -0
- package/dist/flavors/doi/index.d.ts +13 -0
- package/dist/flavors/doi/index.js +65 -0
- package/dist/flavors/easc/index.d.ts +4 -0
- package/dist/flavors/easc/index.js +107 -0
- package/dist/flavors/ecma/index.d.ts +4 -0
- package/dist/flavors/ecma/index.js +117 -0
- package/dist/flavors/etsi/index.d.ts +14 -0
- package/dist/flavors/etsi/index.js +307 -0
- package/dist/flavors/evs/grammar.d.ts +2 -0
- package/dist/flavors/evs/grammar.js +22 -0
- package/dist/flavors/evs/index.d.ts +2 -0
- package/dist/flavors/evs/index.js +24 -0
- package/dist/flavors/evs/model.d.ts +19 -0
- package/dist/flavors/evs/model.js +36 -0
- package/dist/flavors/gb/index.d.ts +24 -0
- package/dist/flavors/gb/index.js +111 -0
- package/dist/flavors/gost/grammar.d.ts +2 -0
- package/dist/flavors/gost/grammar.js +46 -0
- package/dist/flavors/gost/index.d.ts +2 -0
- package/dist/flavors/gost/index.js +165 -0
- package/dist/flavors/gost/model.d.ts +61 -0
- package/dist/flavors/gost/model.js +147 -0
- package/dist/flavors/gost/prefix_routes.d.ts +15 -0
- package/dist/flavors/gost/prefix_routes.js +192 -0
- package/dist/flavors/iala/index.d.ts +32 -0
- package/dist/flavors/iala/index.js +300 -0
- package/dist/flavors/iana/index.d.ts +19 -0
- package/dist/flavors/iana/index.js +71 -0
- package/dist/flavors/idf/grammar.d.ts +2 -0
- package/dist/flavors/idf/grammar.js +71 -0
- package/dist/flavors/idf/index.d.ts +2 -0
- package/dist/flavors/idf/index.js +100 -0
- package/dist/flavors/idf/model.d.ts +54 -0
- package/dist/flavors/idf/model.js +359 -0
- package/dist/flavors/iec/grammar.d.ts +3 -0
- package/dist/flavors/iec/grammar.js +187 -0
- package/dist/flavors/iec/index.d.ts +4 -0
- package/dist/flavors/iec/index.js +507 -0
- package/dist/flavors/iec/model.d.ts +54 -0
- package/dist/flavors/iec/model.js +437 -0
- package/dist/flavors/ieee/grammar.d.ts +2 -0
- package/dist/flavors/ieee/grammar.js +626 -0
- package/dist/flavors/ieee/index.d.ts +3 -0
- package/dist/flavors/ieee/index.js +1186 -0
- package/dist/flavors/ieee/model.d.ts +142 -0
- package/dist/flavors/ieee/model.js +1148 -0
- package/dist/flavors/ieee/preprocessor.d.ts +8 -0
- package/dist/flavors/ieee/preprocessor.js +410 -0
- package/dist/flavors/ieee/update_codes.d.ts +8 -0
- package/dist/flavors/ieee/update_codes.js +191 -0
- package/dist/flavors/ietf/index.d.ts +30 -0
- package/dist/flavors/ietf/index.js +151 -0
- package/dist/flavors/iho/index.d.ts +4 -0
- package/dist/flavors/iho/index.js +126 -0
- package/dist/flavors/index.d.ts +9 -0
- package/dist/flavors/index.js +136 -0
- package/dist/flavors/isbn/index.d.ts +13 -0
- package/dist/flavors/isbn/index.js +97 -0
- package/dist/flavors/iso/grammar.d.ts +2 -0
- package/dist/flavors/iso/grammar.js +207 -0
- package/dist/flavors/iso/index.d.ts +2 -0
- package/dist/flavors/iso/index.js +343 -0
- package/dist/flavors/iso/model.d.ts +159 -0
- package/dist/flavors/iso/model.js +802 -0
- package/dist/flavors/iso/stages.generated.d.ts +13 -0
- package/dist/flavors/iso/stages.generated.js +391 -0
- package/dist/flavors/itu/grammar.d.ts +4 -0
- package/dist/flavors/itu/grammar.js +205 -0
- package/dist/flavors/itu/index.d.ts +2 -0
- package/dist/flavors/itu/index.js +224 -0
- package/dist/flavors/itu/model.d.ts +184 -0
- package/dist/flavors/itu/model.js +599 -0
- package/dist/flavors/jcgm/index.d.ts +7 -0
- package/dist/flavors/jcgm/index.js +300 -0
- package/dist/flavors/jis/index.d.ts +4 -0
- package/dist/flavors/jis/index.js +267 -0
- package/dist/flavors/nist/grammar.d.ts +2 -0
- package/dist/flavors/nist/grammar.js +287 -0
- package/dist/flavors/nist/index.d.ts +2 -0
- package/dist/flavors/nist/index.js +1244 -0
- package/dist/flavors/nist/model.d.ts +155 -0
- package/dist/flavors/nist/model.js +823 -0
- package/dist/flavors/nist/preprocessor.d.ts +11 -0
- package/dist/flavors/nist/preprocessor.js +281 -0
- package/dist/flavors/oasis/index.d.ts +23 -0
- package/dist/flavors/oasis/index.js +110 -0
- package/dist/flavors/ogc/index.d.ts +20 -0
- package/dist/flavors/ogc/index.js +75 -0
- package/dist/flavors/oiml/grammar.d.ts +2 -0
- package/dist/flavors/oiml/grammar.js +180 -0
- package/dist/flavors/oiml/implementation.d.ts +9 -0
- package/dist/flavors/oiml/implementation.js +16 -0
- package/dist/flavors/oiml/model.d.ts +4 -0
- package/dist/flavors/oiml/model.js +462 -0
- package/dist/flavors/omg/index.d.ts +14 -0
- package/dist/flavors/omg/index.js +73 -0
- package/dist/flavors/plateau/index.d.ts +4 -0
- package/dist/flavors/plateau/index.js +97 -0
- package/dist/flavors/tgpp/index.d.ts +4 -0
- package/dist/flavors/tgpp/index.js +122 -0
- package/dist/flavors/un/index.d.ts +13 -0
- package/dist/flavors/un/index.js +90 -0
- package/dist/flavors/w3c/index.d.ts +14 -0
- package/dist/flavors/w3c/index.js +148 -0
- package/dist/flavors/xsf/index.d.ts +18 -0
- package/dist/flavors/xsf/index.js +65 -0
- package/dist/grammar/engine.d.ts +78 -0
- package/dist/grammar/engine.js +351 -0
- package/dist/model/attribute.d.ts +54 -0
- package/dist/model/attribute.js +53 -0
- package/dist/model/builder.d.ts +39 -0
- package/dist/model/builder.js +124 -0
- package/dist/model/component.d.ts +70 -0
- package/dist/model/component.js +170 -0
- package/dist/model/identifier.d.ts +83 -0
- package/dist/model/identifier.js +270 -0
- package/dist/model/urn-generator.d.ts +27 -0
- package/dist/model/urn-generator.js +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { BaseIdentifier } from "../../model/identifier.js";
|
|
2
|
+
import type { IdentifierStatic } from "../../model/identifier.js";
|
|
3
|
+
import { type FieldMapping } from "../../model/attribute.js";
|
|
4
|
+
import { Component } from "../../model/component.js";
|
|
5
|
+
/**
|
|
6
|
+
* Port of lib/pubid/nist/identifiers/base.rb + components/*. The wire
|
|
7
|
+
* hash mirrors the Ruby compact shape: series/subseries/volume are bare
|
|
8
|
+
* scalars, first/second_number are dropped (build artifacts), and the
|
|
9
|
+
* components serialize as their plain field hashes.
|
|
10
|
+
*/
|
|
11
|
+
export declare class NistCode extends Component {
|
|
12
|
+
readonly value: string;
|
|
13
|
+
constructor(attrs: Record<string, unknown>);
|
|
14
|
+
render(): string;
|
|
15
|
+
toWire(): Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export declare class NistPart {
|
|
18
|
+
readonly type: string;
|
|
19
|
+
readonly value: string;
|
|
20
|
+
constructor(attrs: Record<string, unknown>);
|
|
21
|
+
toWire(): Record<string, unknown>;
|
|
22
|
+
render(notation?: string): string;
|
|
23
|
+
}
|
|
24
|
+
export declare class NistVolume {
|
|
25
|
+
readonly value: string;
|
|
26
|
+
constructor(attrs: Record<string, unknown>);
|
|
27
|
+
toWire(): Record<string, unknown>;
|
|
28
|
+
render(): string;
|
|
29
|
+
}
|
|
30
|
+
export declare class NistIssueNumber {
|
|
31
|
+
readonly number: string;
|
|
32
|
+
constructor(attrs: Record<string, unknown>);
|
|
33
|
+
toWire(): Record<string, unknown>;
|
|
34
|
+
render(): string;
|
|
35
|
+
}
|
|
36
|
+
export declare class NistEdition {
|
|
37
|
+
readonly type: string | undefined;
|
|
38
|
+
readonly id: string | undefined;
|
|
39
|
+
readonly additional_text: string | undefined;
|
|
40
|
+
readonly original_prefix: string | undefined;
|
|
41
|
+
constructor(attrs: Record<string, unknown>);
|
|
42
|
+
toWire(): Record<string, unknown>;
|
|
43
|
+
render(): string;
|
|
44
|
+
}
|
|
45
|
+
export declare class NistUpdate {
|
|
46
|
+
readonly number: string | undefined;
|
|
47
|
+
readonly year: string | undefined;
|
|
48
|
+
readonly month: string | undefined;
|
|
49
|
+
readonly prefix: string | undefined;
|
|
50
|
+
constructor(attrs: Record<string, unknown>);
|
|
51
|
+
toWire(): Record<string, unknown>;
|
|
52
|
+
render(format?: "short" | "mr"): string;
|
|
53
|
+
private yearMonth;
|
|
54
|
+
}
|
|
55
|
+
export declare class NistTranslation {
|
|
56
|
+
readonly code: string;
|
|
57
|
+
constructor(attrs: Record<string, unknown>);
|
|
58
|
+
toWire(): Record<string, unknown>;
|
|
59
|
+
render(format?: "short" | "mr"): string;
|
|
60
|
+
}
|
|
61
|
+
export declare class NistStage {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly type: string;
|
|
64
|
+
constructor(attrs: Record<string, unknown>);
|
|
65
|
+
toWire(): Record<string, unknown>;
|
|
66
|
+
render(): string;
|
|
67
|
+
}
|
|
68
|
+
export declare class NistVersion {
|
|
69
|
+
readonly value: string;
|
|
70
|
+
constructor(attrs: Record<string, unknown>);
|
|
71
|
+
toWire(): Record<string, unknown>;
|
|
72
|
+
render(): string;
|
|
73
|
+
}
|
|
74
|
+
export declare class NistSupplement {
|
|
75
|
+
readonly number: string | undefined;
|
|
76
|
+
readonly year: string | undefined;
|
|
77
|
+
readonly month: string | undefined;
|
|
78
|
+
readonly month_end: string | undefined;
|
|
79
|
+
readonly year_end: string | undefined;
|
|
80
|
+
readonly has_revision: boolean;
|
|
81
|
+
readonly suffix: string | undefined;
|
|
82
|
+
constructor(attrs: Record<string, unknown>);
|
|
83
|
+
toWire(): Record<string, unknown> | undefined;
|
|
84
|
+
static fromRaw(value: string | undefined, hasRevision?: boolean): NistSupplement;
|
|
85
|
+
isRange(): boolean;
|
|
86
|
+
valueString(): string;
|
|
87
|
+
render(): string;
|
|
88
|
+
}
|
|
89
|
+
export type SeriesPolicy = {
|
|
90
|
+
preserveLetterSuffix: boolean;
|
|
91
|
+
modernEditionDate: boolean;
|
|
92
|
+
partNumAsComponent: boolean;
|
|
93
|
+
};
|
|
94
|
+
export declare function seriesPolicy(series: string | undefined): SeriesPolicy;
|
|
95
|
+
export declare abstract class NistIdentifier extends BaseIdentifier {
|
|
96
|
+
static attributes: import("../../model/attribute.js").AttributeTable;
|
|
97
|
+
static mappings: FieldMapping[];
|
|
98
|
+
readonly publisher: string | undefined;
|
|
99
|
+
readonly series: NistCode | undefined;
|
|
100
|
+
readonly subseries: NistCode | undefined;
|
|
101
|
+
readonly number: string | undefined;
|
|
102
|
+
readonly edition: NistEdition | undefined;
|
|
103
|
+
readonly volume: NistVolume | undefined;
|
|
104
|
+
readonly part: NistPart | undefined;
|
|
105
|
+
readonly stage: NistStage | undefined;
|
|
106
|
+
readonly version_component: NistVersion | undefined;
|
|
107
|
+
readonly update_component: NistUpdate | undefined;
|
|
108
|
+
readonly update: NistUpdate | undefined;
|
|
109
|
+
readonly translation_component: NistTranslation | undefined;
|
|
110
|
+
readonly translation: string | undefined;
|
|
111
|
+
readonly issue_number: NistIssueNumber | undefined;
|
|
112
|
+
readonly parsed_format: string | undefined;
|
|
113
|
+
readonly publisher_was_parsed: boolean | undefined;
|
|
114
|
+
readonly parts: string[] | undefined;
|
|
115
|
+
readonly revision_year: string | undefined;
|
|
116
|
+
readonly revision_month: string | undefined;
|
|
117
|
+
readonly edition_year: string | undefined;
|
|
118
|
+
readonly version: string | undefined;
|
|
119
|
+
readonly year: number | undefined;
|
|
120
|
+
readonly supplement: NistSupplement | undefined;
|
|
121
|
+
readonly errata: string | undefined;
|
|
122
|
+
readonly index: string | undefined;
|
|
123
|
+
readonly insert: string | undefined;
|
|
124
|
+
readonly section: string | undefined;
|
|
125
|
+
readonly appendix: string | undefined;
|
|
126
|
+
readonly addendum: string | undefined;
|
|
127
|
+
readonly addendum_number: string | undefined;
|
|
128
|
+
readonly draft: string | undefined;
|
|
129
|
+
readonly draft_number: string | undefined;
|
|
130
|
+
readonly date_year: string | undefined;
|
|
131
|
+
readonly date_month: string | undefined;
|
|
132
|
+
readonly date_day: string | undefined;
|
|
133
|
+
readonly dated_seq: string | undefined;
|
|
134
|
+
seriesCode(): string | undefined;
|
|
135
|
+
defaultPublisher(): string;
|
|
136
|
+
revision(): string | undefined;
|
|
137
|
+
supplementShort(): string;
|
|
138
|
+
appendShortComponents(skipPart?: boolean): string;
|
|
139
|
+
appendMrComponents(skipPart?: boolean): string;
|
|
140
|
+
effectiveSeries(): string | undefined;
|
|
141
|
+
shortRenderPublisher(): string | undefined;
|
|
142
|
+
renderShort(): string;
|
|
143
|
+
renderMr(): string;
|
|
144
|
+
render(): string;
|
|
145
|
+
}
|
|
146
|
+
export declare abstract class NistSupplementIdentifier extends NistIdentifier {
|
|
147
|
+
static attributes: import("../../model/attribute.js").AttributeTable;
|
|
148
|
+
readonly base: NistIdentifier | undefined;
|
|
149
|
+
readonly supplement_date_range_start: string | undefined;
|
|
150
|
+
readonly supplement_date_range_end: string | undefined;
|
|
151
|
+
readonly implicit_supplement: boolean | undefined;
|
|
152
|
+
render(): string;
|
|
153
|
+
}
|
|
154
|
+
export declare const NIST_CLASSES: Map<string, IdentifierStatic>;
|
|
155
|
+
export declare const SP_SUBSERIES: string[];
|