@disclosureos/records 1.0.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.
- package/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/attachment-Hrg8uHuf.d.ts +23 -0
- package/dist/confidence-level-CV3P1W5_.d.ts +25 -0
- package/dist/constants/index.d.ts +28 -0
- package/dist/constants/index.js +885 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/credibility-CcQ0MUfQ.d.ts +14 -0
- package/dist/digital-ADBJTqSi.d.ts +278 -0
- package/dist/domains-CjIFZGBh.d.ts +330 -0
- package/dist/enum-guard-DzPkp2oJ.d.ts +101 -0
- package/dist/extensions/document/index.d.ts +47 -0
- package/dist/extensions/document/index.js +31 -0
- package/dist/extensions/document/index.js.map +1 -0
- package/dist/extensions/identifiers/index.d.ts +139 -0
- package/dist/extensions/identifiers/index.js +47 -0
- package/dist/extensions/identifiers/index.js.map +1 -0
- package/dist/extensions/physical/index.d.ts +84 -0
- package/dist/extensions/physical/index.js +84 -0
- package/dist/extensions/physical/index.js.map +1 -0
- package/dist/extensions/provenance/index.d.ts +153 -0
- package/dist/extensions/provenance/index.js +120 -0
- package/dist/extensions/provenance/index.js.map +1 -0
- package/dist/extensions/testimony/index.d.ts +400 -0
- package/dist/extensions/testimony/index.js +203 -0
- package/dist/extensions/testimony/index.js.map +1 -0
- package/dist/factories/index.d.ts +31 -0
- package/dist/factories/index.js +905 -0
- package/dist/factories/index.js.map +1 -0
- package/dist/formatters/index.d.ts +18 -0
- package/dist/formatters/index.js +156 -0
- package/dist/formatters/index.js.map +1 -0
- package/dist/geo/index.d.ts +16 -0
- package/dist/geo/index.js +146 -0
- package/dist/geo/index.js.map +1 -0
- package/dist/guards/index.d.ts +74 -0
- package/dist/guards/index.js +892 -0
- package/dist/guards/index.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +1350 -0
- package/dist/index.js.map +1 -0
- package/dist/labels/index.d.ts +33 -0
- package/dist/labels/index.js +181 -0
- package/dist/labels/index.js.map +1 -0
- package/dist/location-56xtMNtC.d.ts +408 -0
- package/dist/media/index.d.ts +3 -0
- package/dist/media/index.js +21 -0
- package/dist/media/index.js.map +1 -0
- package/dist/observation/index.d.ts +7 -0
- package/dist/observation/index.js +865 -0
- package/dist/observation/index.js.map +1 -0
- package/dist/shared/index.d.ts +29 -0
- package/dist/shared/index.js +87 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/source/index.d.ts +51 -0
- package/dist/source/index.js +45 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/sensor/index.d.ts +170 -0
- package/dist/source/sensor/index.js +69 -0
- package/dist/source/sensor/index.js.map +1 -0
- package/dist/temporal/index.d.ts +20 -0
- package/dist/temporal/index.js +78 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/temporal-data-t8Mzu8Ui.d.ts +148 -0
- package/dist/time-of-day-DLDBwTrn.d.ts +165 -0
- package/dist/types-CzNfaip-.d.ts +1267 -0
- package/dist/types-DH_-SdHj.d.ts +11 -0
- package/dist/types-clxXEQOH.d.ts +27 -0
- package/dist/validation-C-_QLXXf.d.ts +34 -0
- package/dist/validators/index.d.ts +15 -0
- package/dist/validators/index.js +895 -0
- package/dist/validators/index.js.map +1 -0
- package/package.json +146 -0
- package/schema/records.schema.json +2538 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const DateGranularitySchema: z.ZodEnum<{
|
|
4
|
+
exact: "exact";
|
|
5
|
+
unknown: "unknown";
|
|
6
|
+
month: "month";
|
|
7
|
+
quarter: "quarter";
|
|
8
|
+
year: "year";
|
|
9
|
+
decade: "decade";
|
|
10
|
+
century: "century";
|
|
11
|
+
}>;
|
|
12
|
+
type DateGranularity = z.infer<typeof DateGranularitySchema>;
|
|
13
|
+
declare const DateRangeTypeSchema: z.ZodEnum<{
|
|
14
|
+
span: "span";
|
|
15
|
+
uncertainty: "uncertainty";
|
|
16
|
+
active_period: "active_period";
|
|
17
|
+
investigation_period: "investigation_period";
|
|
18
|
+
observation_window: "observation_window";
|
|
19
|
+
}>;
|
|
20
|
+
type DateRangeType = z.infer<typeof DateRangeTypeSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* A single date whose precision is coarser than a calendar day (e.g. "summer 1947").
|
|
23
|
+
* Used as the bounds of a {@link DateRange}; for a top-level observation date,
|
|
24
|
+
* prefer `TemporalData.date` + `dateGranularity` (the flattened form).
|
|
25
|
+
*/
|
|
26
|
+
declare const FuzzyDateSchema: z.ZodObject<{
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
granularity: z.ZodEnum<{
|
|
29
|
+
exact: "exact";
|
|
30
|
+
unknown: "unknown";
|
|
31
|
+
month: "month";
|
|
32
|
+
quarter: "quarter";
|
|
33
|
+
year: "year";
|
|
34
|
+
decade: "decade";
|
|
35
|
+
century: "century";
|
|
36
|
+
}>;
|
|
37
|
+
certainty: z.ZodEnum<{
|
|
38
|
+
exact: "exact";
|
|
39
|
+
approximate: "approximate";
|
|
40
|
+
estimated: "estimated";
|
|
41
|
+
unknown: "unknown";
|
|
42
|
+
}>;
|
|
43
|
+
quarter: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
44
|
+
display: z.ZodOptional<z.ZodString>;
|
|
45
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
type FuzzyDate = z.infer<typeof FuzzyDateSchema>;
|
|
48
|
+
declare const DateRangeSchema: z.ZodObject<{
|
|
49
|
+
start: z.ZodObject<{
|
|
50
|
+
value: z.ZodString;
|
|
51
|
+
granularity: z.ZodEnum<{
|
|
52
|
+
exact: "exact";
|
|
53
|
+
unknown: "unknown";
|
|
54
|
+
month: "month";
|
|
55
|
+
quarter: "quarter";
|
|
56
|
+
year: "year";
|
|
57
|
+
decade: "decade";
|
|
58
|
+
century: "century";
|
|
59
|
+
}>;
|
|
60
|
+
certainty: z.ZodEnum<{
|
|
61
|
+
exact: "exact";
|
|
62
|
+
approximate: "approximate";
|
|
63
|
+
estimated: "estimated";
|
|
64
|
+
unknown: "unknown";
|
|
65
|
+
}>;
|
|
66
|
+
quarter: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
67
|
+
display: z.ZodOptional<z.ZodString>;
|
|
68
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
end: z.ZodObject<{
|
|
71
|
+
value: z.ZodString;
|
|
72
|
+
granularity: z.ZodEnum<{
|
|
73
|
+
exact: "exact";
|
|
74
|
+
unknown: "unknown";
|
|
75
|
+
month: "month";
|
|
76
|
+
quarter: "quarter";
|
|
77
|
+
year: "year";
|
|
78
|
+
decade: "decade";
|
|
79
|
+
century: "century";
|
|
80
|
+
}>;
|
|
81
|
+
certainty: z.ZodEnum<{
|
|
82
|
+
exact: "exact";
|
|
83
|
+
approximate: "approximate";
|
|
84
|
+
estimated: "estimated";
|
|
85
|
+
unknown: "unknown";
|
|
86
|
+
}>;
|
|
87
|
+
quarter: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
88
|
+
display: z.ZodOptional<z.ZodString>;
|
|
89
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
type: z.ZodEnum<{
|
|
92
|
+
span: "span";
|
|
93
|
+
uncertainty: "uncertainty";
|
|
94
|
+
active_period: "active_period";
|
|
95
|
+
investigation_period: "investigation_period";
|
|
96
|
+
observation_window: "observation_window";
|
|
97
|
+
}>;
|
|
98
|
+
display: z.ZodOptional<z.ZodString>;
|
|
99
|
+
inclusive: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
type DateRange = z.infer<typeof DateRangeSchema>;
|
|
102
|
+
declare const RelativeDateSchema: z.ZodObject<{
|
|
103
|
+
referenceEvent: z.ZodString;
|
|
104
|
+
referenceDate: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
value: z.ZodString;
|
|
106
|
+
granularity: z.ZodEnum<{
|
|
107
|
+
exact: "exact";
|
|
108
|
+
unknown: "unknown";
|
|
109
|
+
month: "month";
|
|
110
|
+
quarter: "quarter";
|
|
111
|
+
year: "year";
|
|
112
|
+
decade: "decade";
|
|
113
|
+
century: "century";
|
|
114
|
+
}>;
|
|
115
|
+
certainty: z.ZodEnum<{
|
|
116
|
+
exact: "exact";
|
|
117
|
+
approximate: "approximate";
|
|
118
|
+
estimated: "estimated";
|
|
119
|
+
unknown: "unknown";
|
|
120
|
+
}>;
|
|
121
|
+
quarter: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
122
|
+
display: z.ZodOptional<z.ZodString>;
|
|
123
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
relation: z.ZodEnum<{
|
|
126
|
+
before: "before";
|
|
127
|
+
after: "after";
|
|
128
|
+
during: "during";
|
|
129
|
+
around: "around";
|
|
130
|
+
}>;
|
|
131
|
+
offset: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
value: z.ZodNumber;
|
|
133
|
+
unit: z.ZodEnum<{
|
|
134
|
+
minutes: "minutes";
|
|
135
|
+
hours: "hours";
|
|
136
|
+
days: "days";
|
|
137
|
+
weeks: "weeks";
|
|
138
|
+
months: "months";
|
|
139
|
+
years: "years";
|
|
140
|
+
}>;
|
|
141
|
+
approximate: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
display: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
type RelativeDate = z.infer<typeof RelativeDateSchema>;
|
|
146
|
+
|
|
147
|
+
/** Twilight-aware time-of-day bucket for an observation. */
|
|
148
|
+
declare const TimeOfDaySchema: z.ZodEnum<{
|
|
149
|
+
unknown: "unknown";
|
|
150
|
+
astronomical_dawn: "astronomical_dawn";
|
|
151
|
+
nautical_dawn: "nautical_dawn";
|
|
152
|
+
civil_dawn: "civil_dawn";
|
|
153
|
+
sunrise: "sunrise";
|
|
154
|
+
morning: "morning";
|
|
155
|
+
noon: "noon";
|
|
156
|
+
afternoon: "afternoon";
|
|
157
|
+
sunset: "sunset";
|
|
158
|
+
civil_dusk: "civil_dusk";
|
|
159
|
+
nautical_dusk: "nautical_dusk";
|
|
160
|
+
astronomical_dusk: "astronomical_dusk";
|
|
161
|
+
night: "night";
|
|
162
|
+
}>;
|
|
163
|
+
type TimeOfDay = z.infer<typeof TimeOfDaySchema>;
|
|
164
|
+
|
|
165
|
+
export { type DateGranularity as D, type FuzzyDate as F, type RelativeDate as R, type TimeOfDay as T, DateGranularitySchema as a, type DateRange as b, DateRangeSchema as c, type DateRangeType as d, DateRangeTypeSchema as e, FuzzyDateSchema as f, RelativeDateSchema as g, TimeOfDaySchema as h };
|