@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,31 @@
|
|
|
1
|
+
import { T as TemporalData } from '../temporal-data-t8Mzu8Ui.js';
|
|
2
|
+
import { M as MediaAttachment } from '../attachment-Hrg8uHuf.js';
|
|
3
|
+
import { SensorReading } from '../source/sensor/index.js';
|
|
4
|
+
import { P as PublicationStatus, b as ObservationInput, O as Observation } from '../types-CzNfaip-.js';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../location-56xtMNtC.js';
|
|
7
|
+
|
|
8
|
+
declare function createTemporalData(date: string, dateCertainty: TemporalData['dateCertainty'], options?: Partial<Omit<TemporalData, 'date' | 'dateCertainty'>>): TemporalData;
|
|
9
|
+
/**
|
|
10
|
+
* Build a {@link MediaAttachment}, auto-generating a stable `id` (so it can be
|
|
11
|
+
* targeted by a claim's `evidenceRef`) when one is not supplied.
|
|
12
|
+
*/
|
|
13
|
+
declare function createMediaAttachment(type: MediaAttachment['type'], url: string, options?: Partial<Omit<MediaAttachment, 'type' | 'url'>>): MediaAttachment;
|
|
14
|
+
/**
|
|
15
|
+
* Build a {@link SensorReading}, auto-generating a stable `id` (so it can be
|
|
16
|
+
* targeted by a claim's `evidenceRef`) when one is not supplied.
|
|
17
|
+
*/
|
|
18
|
+
declare function createSensorReading(sensorType: SensorReading['sensorType'], detectionMethod: SensorReading['detectionMethod'], options?: Partial<Omit<SensorReading, 'sensorType' | 'detectionMethod'>>): SensorReading;
|
|
19
|
+
interface CreateObservationOptions {
|
|
20
|
+
id?: string;
|
|
21
|
+
status?: PublicationStatus;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Build a **core** observation record from partial input, filling in id/status/
|
|
25
|
+
* timestamps and parsing against {@link ObservationSchema} (throws on invalid
|
|
26
|
+
* input). Cross-package slots (`observableAssessments`, `origin`) are not part
|
|
27
|
+
* of the core schema; attach them via the satellite packages' factories.
|
|
28
|
+
*/
|
|
29
|
+
declare function createObservation(input: ObservationInput, options?: CreateObservationOptions): Observation;
|
|
30
|
+
|
|
31
|
+
export { type CreateObservationOptions, createMediaAttachment, createObservation, createSensorReading, createTemporalData };
|