@luomus/laji-schema 2.0.75 → 2.0.76
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/cjs/classes/DocumentIdentification.js +12 -0
- package/dist/cjs/classes/index.js +4 -2
- package/dist/cjs/models/DocumentIdentification.js +2 -0
- package/dist/cjs/models/index.js +6 -2
- package/dist/dto/Document.dto.ts +1 -0
- package/dist/dto/DocumentIdentification.dto.ts +19 -0
- package/dist/dto/index.dto.ts +1 -0
- package/dist/esm/classes/DocumentIdentification.js +8 -0
- package/dist/esm/classes/index.js +1 -0
- package/dist/esm/models/DocumentIdentification.js +1 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/types/classes/Document.d.ts +1 -0
- package/dist/types/classes/DocumentIdentification.d.ts +13 -0
- package/dist/types/classes/index.d.ts +1 -0
- package/dist/types/models/Document.d.ts +1 -0
- package/dist/types/models/DocumentIdentification.d.ts +13 -0
- package/dist/types/models/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentIdentification = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/*
|
|
6
|
+
* This file was automatically generated.
|
|
7
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
8
|
+
* and run the command to regenerate this file.
|
|
9
|
+
*/
|
|
10
|
+
class DocumentIdentification {
|
|
11
|
+
}
|
|
12
|
+
exports.DocumentIdentification = DocumentIdentification;
|
|
@@ -10,8 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
14
|
-
exports.Video = exports.Validator = exports.UnitOfMeasurement = exports.UnitGathering = exports.UnitFact = exports.Unit = exports.TypeSpecimen = exports.Translation = exports.TransactionItem = exports.TransactionEvent = exports.Transaction = exports.TraitGroup = exports.TraitEnumValue = exports.Trait = exports.TaxonSet = exports.TaxonInteraction = exports.TaxonGroupIucnEditors = exports.TaxonConcept = exports.TaxonCensus = exports.Taxon = exports.Tag = exports.SubUnit = exports.SpecimenTransactionEvent = exports.SpecimenTransaction = exports.SatelliteTrackingProject = exports.Sample = exports.Reserve = exports.RegionalStatus = exports.Publication = exports.Profile = exports.Preparation = exports.Person = exports.Permit = exports.Pdf = exports.Organization = exports.Occurrence = exports.Notification = exports.News = exports.NamedPlace = exports.Multimedia = void 0;
|
|
13
|
+
exports.Measurement = exports.IucnRedListTaxonGroup = exports.IucnRedListEvaluationYear = exports.IucnRedListEvaluation = exports.InformationSystem = exports.InformalTaxonGroup = exports.Individual = exports.Image = exports.Identification = exports.Habitat = exports.GatheringFact = exports.GatheringEvent = exports.Gathering = exports.FormSeason = exports.FormPermissionSingle = exports.FormPermissionPerson = exports.FormPermission = exports.FormOptions = exports.FormNamedPlaceOptions = exports.FormInstructions = exports.FormFooter = exports.Form = exports.Fieldset = exports.Field = exports.Event = exports.Endangerment = exports.DownloadRequest = exports.DocumentIdentification = exports.Document = exports.DeviceIndividual = exports.Device = exports.DateRange = exports.Dataset = exports.DataField = exports.ContentContextDescription = exports.CompleteList = exports.Collection = exports.ChecklistVersion = exports.Checklist = exports.Branch = exports.BirdSongRecognitionSkillLevel = exports.Audio = exports.Area = exports.AnnotationOccurrence = exports.Annotation = exports.Agent = exports.AdministrativeStatus = exports.Pinkka = exports.Concept = exports.BibliographicResource = void 0;
|
|
14
|
+
exports.Video = exports.Validator = exports.UnitOfMeasurement = exports.UnitGathering = exports.UnitFact = exports.Unit = exports.TypeSpecimen = exports.Translation = exports.TransactionItem = exports.TransactionEvent = exports.Transaction = exports.TraitGroup = exports.TraitEnumValue = exports.Trait = exports.TaxonSet = exports.TaxonInteraction = exports.TaxonGroupIucnEditors = exports.TaxonConcept = exports.TaxonCensus = exports.Taxon = exports.Tag = exports.SubUnit = exports.SpecimenTransactionEvent = exports.SpecimenTransaction = exports.SatelliteTrackingProject = exports.Sample = exports.Reserve = exports.RegionalStatus = exports.Publication = exports.Profile = exports.Preparation = exports.Person = exports.Permit = exports.Pdf = exports.Organization = exports.Occurrence = exports.Notification = exports.News = exports.NamedPlace = exports.Multimedia = exports.Model = void 0;
|
|
15
15
|
var BibliographicResource_1 = require("./BibliographicResource");
|
|
16
16
|
Object.defineProperty(exports, "BibliographicResource", { enumerable: true, get: function () { return BibliographicResource_1.BibliographicResource; } });
|
|
17
17
|
var Concept_1 = require("./Concept");
|
|
@@ -56,6 +56,8 @@ var DeviceIndividual_1 = require("./DeviceIndividual");
|
|
|
56
56
|
Object.defineProperty(exports, "DeviceIndividual", { enumerable: true, get: function () { return DeviceIndividual_1.DeviceIndividual; } });
|
|
57
57
|
var Document_1 = require("./Document");
|
|
58
58
|
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return Document_1.Document; } });
|
|
59
|
+
var DocumentIdentification_1 = require("./DocumentIdentification");
|
|
60
|
+
Object.defineProperty(exports, "DocumentIdentification", { enumerable: true, get: function () { return DocumentIdentification_1.DocumentIdentification; } });
|
|
59
61
|
var DownloadRequest_1 = require("./DownloadRequest");
|
|
60
62
|
Object.defineProperty(exports, "DownloadRequest", { enumerable: true, get: function () { return DownloadRequest_1.DownloadRequest; } });
|
|
61
63
|
var Endangerment_1 = require("./Endangerment");
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
14
|
-
exports.isVideo = exports.isValidator = exports.isUnitOfMeasurement = exports.isUnitGathering = exports.isUnitFact = exports.isUnit = exports.isTypeSpecimen = exports.isTranslation = exports.isTransactionItem = exports.isTransactionEvent = exports.isTransaction = exports.isTraitGroup = exports.isTraitEnumValue = exports.isTrait = exports.isTaxonSet = exports.isTaxonInteraction = exports.isTaxonGroupIucnEditors = exports.isTaxonConcept = exports.isTaxonCensus = exports.isTaxon = exports.isTag = exports.isSubUnit = exports.isSpecimenTransactionEvent = exports.isSpecimenTransaction = exports.isSatelliteTrackingProject = exports.isSample = exports.isReserve = exports.isRegionalStatus = exports.isPublication = exports.isProfile = exports.isPreparation = exports.isPerson = exports.isPermit = exports.isPdf = exports.isOrganization = exports.isOccurrence = exports.isNotification = exports.isNews = exports.isNamedPlace = exports.isMultimedia = exports.isModel = exports.isMeasurement = void 0;
|
|
13
|
+
exports.isIucnRedListEvaluationYear = exports.isIucnRedListEvaluation = exports.isInformationSystem = exports.isInformalTaxonGroup = exports.isIndividual = exports.isImage = exports.isIdentification = exports.isHabitat = exports.isGatheringFact = exports.isGatheringEvent = exports.isGathering = exports.isFormSeason = exports.isFormPermissionSingle = exports.isFormPermissionPerson = exports.isFormPermission = exports.isFormOptions = exports.isFormNamedPlaceOptions = exports.isFormInstructions = exports.isFormFooter = exports.isForm = exports.isFieldset = exports.isField = exports.isEvent = exports.isEndangerment = exports.isDownloadRequest = exports.isDocumentIdentification = exports.isDocument = exports.isDeviceIndividual = exports.isDevice = exports.isDateRange = exports.isDataset = exports.isDataField = exports.isContentContextDescription = exports.isCompleteList = exports.isCollection = exports.isChecklistVersion = exports.isChecklist = exports.isBranch = exports.isBirdSongRecognitionSkillLevel = exports.isAudio = exports.isArea = exports.isAnnotationOccurrence = exports.isAnnotation = exports.isAgent = exports.isAdministrativeStatus = exports.isPinkka = exports.isConcept = exports.isBibliographicResource = exports.isLangObject = exports.isLang = void 0;
|
|
14
|
+
exports.isVideo = exports.isValidator = exports.isUnitOfMeasurement = exports.isUnitGathering = exports.isUnitFact = exports.isUnit = exports.isTypeSpecimen = exports.isTranslation = exports.isTransactionItem = exports.isTransactionEvent = exports.isTransaction = exports.isTraitGroup = exports.isTraitEnumValue = exports.isTrait = exports.isTaxonSet = exports.isTaxonInteraction = exports.isTaxonGroupIucnEditors = exports.isTaxonConcept = exports.isTaxonCensus = exports.isTaxon = exports.isTag = exports.isSubUnit = exports.isSpecimenTransactionEvent = exports.isSpecimenTransaction = exports.isSatelliteTrackingProject = exports.isSample = exports.isReserve = exports.isRegionalStatus = exports.isPublication = exports.isProfile = exports.isPreparation = exports.isPerson = exports.isPermit = exports.isPdf = exports.isOrganization = exports.isOccurrence = exports.isNotification = exports.isNews = exports.isNamedPlace = exports.isMultimedia = exports.isModel = exports.isMeasurement = exports.isIucnRedListTaxonGroup = void 0;
|
|
15
15
|
__exportStar(require("./Enums"), exports);
|
|
16
16
|
function isLang(value) {
|
|
17
17
|
return typeof value === 'string' && ['en', 'fi', 'sv'].includes(value);
|
|
@@ -112,6 +112,10 @@ function isDocument(data) {
|
|
|
112
112
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.document');
|
|
113
113
|
}
|
|
114
114
|
exports.isDocument = isDocument;
|
|
115
|
+
function isDocumentIdentification(data) {
|
|
116
|
+
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.documentIdentification');
|
|
117
|
+
}
|
|
118
|
+
exports.isDocumentIdentification = isDocumentIdentification;
|
|
115
119
|
function isDownloadRequest(data) {
|
|
116
120
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'HBF.downloadRequest');
|
|
117
121
|
}
|
package/dist/dto/Document.dto.ts
CHANGED
|
@@ -92,6 +92,7 @@ export class Document {
|
|
|
92
92
|
datasetID?: string[];
|
|
93
93
|
datatype?: string;
|
|
94
94
|
deviceID?: string;
|
|
95
|
+
documentIdentifications?: string[];
|
|
95
96
|
/**
|
|
96
97
|
* Location of the specimen so that museum personnel can find it. E.g. taxon under which it is stored (if not clear from the identification), or shelf number
|
|
97
98
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/*
|
|
3
|
+
* This file was automatically generated.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run the command to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
export class DocumentIdentification {
|
|
8
|
+
"@context"?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
"@type"?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the identifier (person) preferably in format "lastname, firstname"
|
|
13
|
+
*/
|
|
14
|
+
det?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Date or year when the identification was done, preferably in format "d.m.Y" or "Y"
|
|
17
|
+
*/
|
|
18
|
+
detDate?: string;
|
|
19
|
+
}
|
package/dist/dto/index.dto.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { DateRange } from './DateRange.dto'
|
|
|
21
21
|
export { Device } from './Device.dto'
|
|
22
22
|
export { DeviceIndividual } from './DeviceIndividual.dto'
|
|
23
23
|
export { Document } from './Document.dto'
|
|
24
|
+
export { DocumentIdentification } from './DocumentIdentification.dto'
|
|
24
25
|
export { DownloadRequest } from './DownloadRequest.dto'
|
|
25
26
|
export { Endangerment } from './Endangerment.dto'
|
|
26
27
|
export { Event } from './Event.dto'
|
|
@@ -20,6 +20,7 @@ export { DateRange } from './DateRange';
|
|
|
20
20
|
export { Device } from './Device';
|
|
21
21
|
export { DeviceIndividual } from './DeviceIndividual';
|
|
22
22
|
export { Document } from './Document';
|
|
23
|
+
export { DocumentIdentification } from './DocumentIdentification';
|
|
23
24
|
export { DownloadRequest } from './DownloadRequest';
|
|
24
25
|
export { Endangerment } from './Endangerment';
|
|
25
26
|
export { Event } from './Event';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/models/index.js
CHANGED
|
@@ -74,6 +74,9 @@ export function isDeviceIndividual(data) {
|
|
|
74
74
|
export function isDocument(data) {
|
|
75
75
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.document');
|
|
76
76
|
}
|
|
77
|
+
export function isDocumentIdentification(data) {
|
|
78
|
+
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.documentIdentification');
|
|
79
|
+
}
|
|
77
80
|
export function isDownloadRequest(data) {
|
|
78
81
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'HBF.downloadRequest');
|
|
79
82
|
}
|
|
@@ -85,6 +85,7 @@ export declare class Document {
|
|
|
85
85
|
datasetID?: string[];
|
|
86
86
|
datatype?: string;
|
|
87
87
|
deviceID?: string;
|
|
88
|
+
documentIdentifications?: string[];
|
|
88
89
|
/**
|
|
89
90
|
* Location of the specimen so that museum personnel can find it. E.g. taxon under which it is stored (if not clear from the identification), or shelf number
|
|
90
91
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class DocumentIdentification {
|
|
2
|
+
"@context"?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
"@type"?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Name of the identifier (person) preferably in format "lastname, firstname"
|
|
7
|
+
*/
|
|
8
|
+
det?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Date or year when the identification was done, preferably in format "d.m.Y" or "Y"
|
|
11
|
+
*/
|
|
12
|
+
detDate?: string;
|
|
13
|
+
}
|
|
@@ -20,6 +20,7 @@ export { DateRange } from './DateRange';
|
|
|
20
20
|
export { Device } from './Device';
|
|
21
21
|
export { DeviceIndividual } from './DeviceIndividual';
|
|
22
22
|
export { Document } from './Document';
|
|
23
|
+
export { DocumentIdentification } from './DocumentIdentification';
|
|
23
24
|
export { DownloadRequest } from './DownloadRequest';
|
|
24
25
|
export { Endangerment } from './Endangerment';
|
|
25
26
|
export { Event } from './Event';
|
|
@@ -85,6 +85,7 @@ export interface Document {
|
|
|
85
85
|
datasetID?: string[];
|
|
86
86
|
datatype?: string;
|
|
87
87
|
deviceID?: string;
|
|
88
|
+
documentIdentifications?: string[];
|
|
88
89
|
/**
|
|
89
90
|
* Location of the specimen so that museum personnel can find it. E.g. taxon under which it is stored (if not clear from the identification), or shelf number
|
|
90
91
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DocumentIdentification {
|
|
2
|
+
"@context"?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
"@type"?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Name of the identifier (person) preferably in format "lastname, firstname"
|
|
7
|
+
*/
|
|
8
|
+
det?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Date or year when the identification was done, preferably in format "d.m.Y" or "Y"
|
|
11
|
+
*/
|
|
12
|
+
detDate?: string;
|
|
13
|
+
}
|
|
@@ -42,6 +42,8 @@ import { DeviceIndividual } from './DeviceIndividual';
|
|
|
42
42
|
export type { DeviceIndividual };
|
|
43
43
|
import { Document } from './Document';
|
|
44
44
|
export type { Document };
|
|
45
|
+
import { DocumentIdentification } from './DocumentIdentification';
|
|
46
|
+
export type { DocumentIdentification };
|
|
45
47
|
import { DownloadRequest } from './DownloadRequest';
|
|
46
48
|
export type { DownloadRequest };
|
|
47
49
|
import { Endangerment } from './Endangerment';
|
|
@@ -179,7 +181,7 @@ export type { Validator };
|
|
|
179
181
|
import { Video } from './Video';
|
|
180
182
|
export type { Video };
|
|
181
183
|
export * from './Enums';
|
|
182
|
-
export declare type StoreObject = BibliographicResource | Concept | Pinkka | AdministrativeStatus | Agent | Annotation | AnnotationOccurrence | Area | Audio | BirdSongRecognitionSkillLevel | Branch | Checklist | ChecklistVersion | Collection | CompleteList | ContentContextDescription | DataField | Dataset | DateRange | Device | DeviceIndividual | Document | DownloadRequest | Endangerment | Event | Field | Fieldset | Form | FormFooter | FormInstructions | FormNamedPlaceOptions | FormOptions | FormPermission | FormPermissionPerson | FormPermissionSingle | FormSeason | Gathering | GatheringEvent | GatheringFact | Habitat | Identification | Image | Individual | InformalTaxonGroup | InformationSystem | IucnRedListEvaluation | IucnRedListEvaluationYear | IucnRedListTaxonGroup | Measurement | Model | Multimedia | NamedPlace | News | Notification | Occurrence | Organization | Pdf | Permit | Person | Preparation | Profile | Publication | RegionalStatus | Reserve | Sample | SatelliteTrackingProject | SpecimenTransaction | SpecimenTransactionEvent | SubUnit | Tag | Taxon | TaxonCensus | TaxonConcept | TaxonGroupIucnEditors | TaxonInteraction | TaxonSet | Trait | TraitEnumValue | TraitGroup | Transaction | TransactionEvent | TransactionItem | Translation | TypeSpecimen | Unit | UnitFact | UnitGathering | UnitOfMeasurement | Validator | Video;
|
|
184
|
+
export declare type StoreObject = BibliographicResource | Concept | Pinkka | AdministrativeStatus | Agent | Annotation | AnnotationOccurrence | Area | Audio | BirdSongRecognitionSkillLevel | Branch | Checklist | ChecklistVersion | Collection | CompleteList | ContentContextDescription | DataField | Dataset | DateRange | Device | DeviceIndividual | Document | DocumentIdentification | DownloadRequest | Endangerment | Event | Field | Fieldset | Form | FormFooter | FormInstructions | FormNamedPlaceOptions | FormOptions | FormPermission | FormPermissionPerson | FormPermissionSingle | FormSeason | Gathering | GatheringEvent | GatheringFact | Habitat | Identification | Image | Individual | InformalTaxonGroup | InformationSystem | IucnRedListEvaluation | IucnRedListEvaluationYear | IucnRedListTaxonGroup | Measurement | Model | Multimedia | NamedPlace | News | Notification | Occurrence | Organization | Pdf | Permit | Person | Preparation | Profile | Publication | RegionalStatus | Reserve | Sample | SatelliteTrackingProject | SpecimenTransaction | SpecimenTransactionEvent | SubUnit | Tag | Taxon | TaxonCensus | TaxonConcept | TaxonGroupIucnEditors | TaxonInteraction | TaxonSet | Trait | TraitEnumValue | TraitGroup | Transaction | TransactionEvent | TransactionItem | Translation | TypeSpecimen | Unit | UnitFact | UnitGathering | UnitOfMeasurement | Validator | Video;
|
|
183
185
|
export declare type KeyOfUnion<K extends StoreObject> = K extends keyof K ? K : never;
|
|
184
186
|
export declare type Lang = 'en' | 'fi' | 'sv';
|
|
185
187
|
export declare function isLang(value: unknown): value is Lang;
|
|
@@ -206,6 +208,7 @@ export declare function isDateRange(data: unknown): data is DateRange;
|
|
|
206
208
|
export declare function isDevice(data: unknown): data is Device;
|
|
207
209
|
export declare function isDeviceIndividual(data: unknown): data is DeviceIndividual;
|
|
208
210
|
export declare function isDocument(data: unknown): data is Document;
|
|
211
|
+
export declare function isDocumentIdentification(data: unknown): data is DocumentIdentification;
|
|
209
212
|
export declare function isDownloadRequest(data: unknown): data is DownloadRequest;
|
|
210
213
|
export declare function isEndangerment(data: unknown): data is Endangerment;
|
|
211
214
|
export declare function isEvent(data: unknown): data is Event;
|