@luomus/laji-schema 2.0.99 → 2.0.101

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.
@@ -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.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.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");
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.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;
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
+ }
@@ -1,4 +1,5 @@
1
1
  import { MXSecureLevels } from './index.dto';
2
+ import { Contact } from './index.dto';
2
3
  import { MYDataOriginEnum } from './index.dto';
3
4
  import { DocumentIdentification } from './index.dto';
4
5
  import { GatheringEvent } from './index.dto';
@@ -78,6 +79,10 @@ export class Document {
78
79
  * 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
80
  */
80
81
  condition?: string;
82
+ /**
83
+ * Contacts for people involved in the document
84
+ */
85
+ contacts?: Contact[];
81
86
  /**
82
87
  * Annuality/perenniality or other specialities about cultivation in our conditions.
83
88
  */
@@ -18,7 +18,7 @@ export class Person {
18
18
  defaultLanguage?: string;
19
19
  defaultQNamePrefix?: string;
20
20
  description?: string;
21
- emailAddress: string;
21
+ emailAddress?: string;
22
22
  facebookLoginName?: string;
23
23
  fieldjournalLoginName?: string[];
24
24
  firstJoined?: string;
@@ -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'
@@ -0,0 +1,8 @@
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
+ }
@@ -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 {};
@@ -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
+ }
@@ -1,4 +1,5 @@
1
1
  import { MXSecureLevels } from './';
2
+ import { Contact } from './';
2
3
  import { MYDataOriginEnum } from './';
3
4
  import { DocumentIdentification } from './';
4
5
  import { GatheringEvent } from './';
@@ -71,6 +72,10 @@ export declare class Document {
71
72
  * 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
73
  */
73
74
  condition?: string;
75
+ /**
76
+ * Contacts for people involved in the document
77
+ */
78
+ contacts?: Contact[];
74
79
  /**
75
80
  * Annuality/perenniality or other specialities about cultivation in our conditions.
76
81
  */
@@ -11,7 +11,7 @@ export declare class Person {
11
11
  defaultLanguage?: string;
12
12
  defaultQNamePrefix?: string;
13
13
  description?: string;
14
- emailAddress: string;
14
+ emailAddress?: string;
15
15
  facebookLoginName?: string;
16
16
  fieldjournalLoginName?: string[];
17
17
  firstJoined?: string;
@@ -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
+ }
@@ -1,4 +1,5 @@
1
1
  import { MXSecureLevels } from './';
2
+ import { Contact } from './';
2
3
  import { MYDataOriginEnum } from './';
3
4
  import { DocumentIdentification } from './';
4
5
  import { GatheringEvent } from './';
@@ -71,6 +72,10 @@ export interface Document {
71
72
  * 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
73
  */
73
74
  condition?: string;
75
+ /**
76
+ * Contacts for people involved in the document
77
+ */
78
+ contacts?: Contact[];
74
79
  /**
75
80
  * Annuality/perenniality or other specialities about cultivation in our conditions.
76
81
  */
@@ -11,7 +11,7 @@ export interface Person {
11
11
  defaultLanguage?: string;
12
12
  defaultQNamePrefix?: string;
13
13
  description?: string;
14
- emailAddress: string;
14
+ emailAddress?: string;
15
15
  facebookLoginName?: string;
16
16
  fieldjournalLoginName?: string[];
17
17
  firstJoined?: string;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-schema",
3
- "version": "2.0.99",
3
+ "version": "2.0.101",
4
4
  "description": "Common autogenerated Typescript interfaces and classes for the schemas used by LUOMUS.",
5
5
  "license": "MIT",
6
6
  "scripts": {