@luomus/laji-schema 2.0.99 → 2.0.100
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/Contact.js +12 -0
- package/dist/cjs/classes/index.js +4 -2
- package/dist/cjs/models/Contact.js +2 -0
- package/dist/cjs/models/index.js +6 -2
- package/dist/dto/Contact.dto.ts +19 -0
- package/dist/dto/Document.dto.ts +4 -0
- package/dist/dto/Person.dto.ts +1 -1
- package/dist/dto/index.dto.ts +1 -0
- package/dist/esm/classes/Contact.js +8 -0
- package/dist/esm/classes/index.js +1 -0
- package/dist/esm/models/Contact.js +1 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/types/classes/Contact.d.ts +13 -0
- package/dist/types/classes/Document.d.ts +4 -0
- package/dist/types/classes/Person.d.ts +1 -1
- package/dist/types/classes/index.d.ts +1 -0
- package/dist/types/models/Contact.d.ts +13 -0
- package/dist/types/models/Document.d.ts +4 -0
- package/dist/types/models/Person.d.ts +1 -1
- 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.Contact = 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 Contact {
|
|
11
|
+
}
|
|
12
|
+
exports.Contact = Contact;
|
|
@@ -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.ListResponse = 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;
|
|
13
|
+
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.Contact = 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.ListResponse = 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 = exports.Measurement = 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");
|
|
@@ -42,6 +42,8 @@ var Collection_1 = require("./Collection");
|
|
|
42
42
|
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return Collection_1.Collection; } });
|
|
43
43
|
var CompleteList_1 = require("./CompleteList");
|
|
44
44
|
Object.defineProperty(exports, "CompleteList", { enumerable: true, get: function () { return CompleteList_1.CompleteList; } });
|
|
45
|
+
var Contact_1 = require("./Contact");
|
|
46
|
+
Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return Contact_1.Contact; } });
|
|
45
47
|
var ContentContextDescription_1 = require("./ContentContextDescription");
|
|
46
48
|
Object.defineProperty(exports, "ContentContextDescription", { enumerable: true, get: function () { return ContentContextDescription_1.ContentContextDescription; } });
|
|
47
49
|
var DataField_1 = require("./DataField");
|
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 = exports.isIucnRedListTaxonGroup = void 0;
|
|
13
|
+
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.isContact = 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 = exports.isIucnRedListEvaluationYear = void 0;
|
|
15
15
|
__exportStar(require("./Enums"), exports);
|
|
16
16
|
function isLang(value) {
|
|
17
17
|
return typeof value === 'string' && ['en', 'fi', 'sv'].includes(value);
|
|
@@ -84,6 +84,10 @@ function isCompleteList(data) {
|
|
|
84
84
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.completeListClass');
|
|
85
85
|
}
|
|
86
86
|
exports.isCompleteList = isCompleteList;
|
|
87
|
+
function isContact(data) {
|
|
88
|
+
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MZ.contact');
|
|
89
|
+
}
|
|
90
|
+
exports.isContact = isContact;
|
|
87
91
|
function isContentContextDescription(data) {
|
|
88
92
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MX.contentContextDescription');
|
|
89
93
|
}
|
|
@@ -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 Contact {
|
|
8
|
+
"@context"?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
"@type"?: string;
|
|
11
|
+
emailAddress?: string;
|
|
12
|
+
inheritedName?: string;
|
|
13
|
+
preferredName?: string;
|
|
14
|
+
city?: string;
|
|
15
|
+
country?: string;
|
|
16
|
+
phoneNumber?: string;
|
|
17
|
+
postalCode?: string;
|
|
18
|
+
streetAddress?: string;
|
|
19
|
+
}
|
package/dist/dto/Document.dto.ts
CHANGED
|
@@ -78,6 +78,10 @@ export class Document {
|
|
|
78
78
|
* Notes on the defects of the specimen (missing parts or such). Empty value means same as "good" or "hyvä" - that there is nothing special to mention about the condition.
|
|
79
79
|
*/
|
|
80
80
|
condition?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Contacts for people involved in the document
|
|
83
|
+
*/
|
|
84
|
+
contacts?: string[];
|
|
81
85
|
/**
|
|
82
86
|
* Annuality/perenniality or other specialities about cultivation in our conditions.
|
|
83
87
|
*/
|
package/dist/dto/Person.dto.ts
CHANGED
package/dist/dto/index.dto.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { Checklist } from './Checklist.dto'
|
|
|
14
14
|
export { ChecklistVersion } from './ChecklistVersion.dto'
|
|
15
15
|
export { Collection } from './Collection.dto'
|
|
16
16
|
export { CompleteList } from './CompleteList.dto'
|
|
17
|
+
export { Contact } from './Contact.dto'
|
|
17
18
|
export { ContentContextDescription } from './ContentContextDescription.dto'
|
|
18
19
|
export { DataField } from './DataField.dto'
|
|
19
20
|
export { Dataset } from './Dataset.dto'
|
|
@@ -13,6 +13,7 @@ export { Checklist } from './Checklist';
|
|
|
13
13
|
export { ChecklistVersion } from './ChecklistVersion';
|
|
14
14
|
export { Collection } from './Collection';
|
|
15
15
|
export { CompleteList } from './CompleteList';
|
|
16
|
+
export { Contact } from './Contact';
|
|
16
17
|
export { ContentContextDescription } from './ContentContextDescription';
|
|
17
18
|
export { DataField } from './DataField';
|
|
18
19
|
export { Dataset } from './Dataset';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/models/index.js
CHANGED
|
@@ -53,6 +53,9 @@ export function isCollection(data) {
|
|
|
53
53
|
export function isCompleteList(data) {
|
|
54
54
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MY.completeListClass');
|
|
55
55
|
}
|
|
56
|
+
export function isContact(data) {
|
|
57
|
+
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MZ.contact');
|
|
58
|
+
}
|
|
56
59
|
export function isContentContextDescription(data) {
|
|
57
60
|
return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MX.contentContextDescription');
|
|
58
61
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class Contact {
|
|
2
|
+
"@context"?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
"@type"?: string;
|
|
5
|
+
emailAddress?: string;
|
|
6
|
+
inheritedName?: string;
|
|
7
|
+
preferredName?: string;
|
|
8
|
+
city?: string;
|
|
9
|
+
country?: string;
|
|
10
|
+
phoneNumber?: string;
|
|
11
|
+
postalCode?: string;
|
|
12
|
+
streetAddress?: string;
|
|
13
|
+
}
|
|
@@ -71,6 +71,10 @@ export declare class Document {
|
|
|
71
71
|
* Notes on the defects of the specimen (missing parts or such). Empty value means same as "good" or "hyvä" - that there is nothing special to mention about the condition.
|
|
72
72
|
*/
|
|
73
73
|
condition?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Contacts for people involved in the document
|
|
76
|
+
*/
|
|
77
|
+
contacts?: string[];
|
|
74
78
|
/**
|
|
75
79
|
* Annuality/perenniality or other specialities about cultivation in our conditions.
|
|
76
80
|
*/
|
|
@@ -13,6 +13,7 @@ export { Checklist } from './Checklist';
|
|
|
13
13
|
export { ChecklistVersion } from './ChecklistVersion';
|
|
14
14
|
export { Collection } from './Collection';
|
|
15
15
|
export { CompleteList } from './CompleteList';
|
|
16
|
+
export { Contact } from './Contact';
|
|
16
17
|
export { ContentContextDescription } from './ContentContextDescription';
|
|
17
18
|
export { DataField } from './DataField';
|
|
18
19
|
export { Dataset } from './Dataset';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Contact {
|
|
2
|
+
"@context"?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
"@type"?: string;
|
|
5
|
+
emailAddress?: string;
|
|
6
|
+
inheritedName?: string;
|
|
7
|
+
preferredName?: string;
|
|
8
|
+
city?: string;
|
|
9
|
+
country?: string;
|
|
10
|
+
phoneNumber?: string;
|
|
11
|
+
postalCode?: string;
|
|
12
|
+
streetAddress?: string;
|
|
13
|
+
}
|
|
@@ -71,6 +71,10 @@ export interface Document {
|
|
|
71
71
|
* Notes on the defects of the specimen (missing parts or such). Empty value means same as "good" or "hyvä" - that there is nothing special to mention about the condition.
|
|
72
72
|
*/
|
|
73
73
|
condition?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Contacts for people involved in the document
|
|
76
|
+
*/
|
|
77
|
+
contacts?: string[];
|
|
74
78
|
/**
|
|
75
79
|
* Annuality/perenniality or other specialities about cultivation in our conditions.
|
|
76
80
|
*/
|
|
@@ -28,6 +28,8 @@ import { Collection } from './Collection';
|
|
|
28
28
|
export type { Collection };
|
|
29
29
|
import { CompleteList } from './CompleteList';
|
|
30
30
|
export type { CompleteList };
|
|
31
|
+
import { Contact } from './Contact';
|
|
32
|
+
export type { Contact };
|
|
31
33
|
import { ContentContextDescription } from './ContentContextDescription';
|
|
32
34
|
export type { ContentContextDescription };
|
|
33
35
|
import { DataField } from './DataField';
|
|
@@ -183,7 +185,7 @@ export type { Video };
|
|
|
183
185
|
import { ListResponse } from './list-response';
|
|
184
186
|
export type { ListResponse };
|
|
185
187
|
export * from './Enums';
|
|
186
|
-
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;
|
|
188
|
+
export declare type StoreObject = BibliographicResource | Concept | Pinkka | AdministrativeStatus | Agent | Annotation | AnnotationOccurrence | Area | Audio | BirdSongRecognitionSkillLevel | Branch | Checklist | ChecklistVersion | Collection | CompleteList | Contact | 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;
|
|
187
189
|
export declare type KeyOfUnion<K extends StoreObject> = K extends keyof K ? K : never;
|
|
188
190
|
export declare type Lang = 'en' | 'fi' | 'sv';
|
|
189
191
|
export declare function isLang(value: unknown): value is Lang;
|
|
@@ -203,6 +205,7 @@ export declare function isChecklist(data: unknown): data is Checklist;
|
|
|
203
205
|
export declare function isChecklistVersion(data: unknown): data is ChecklistVersion;
|
|
204
206
|
export declare function isCollection(data: unknown): data is Collection;
|
|
205
207
|
export declare function isCompleteList(data: unknown): data is CompleteList;
|
|
208
|
+
export declare function isContact(data: unknown): data is Contact;
|
|
206
209
|
export declare function isContentContextDescription(data: unknown): data is ContentContextDescription;
|
|
207
210
|
export declare function isDataField(data: unknown): data is DataField;
|
|
208
211
|
export declare function isDataset(data: unknown): data is Dataset;
|