@luomus/laji-schema 2.0.12 → 2.0.14

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.
Files changed (37) hide show
  1. package/dist/cjs/classes/FormOptions.js +1 -0
  2. package/dist/cjs/classes/Trait.js +12 -0
  3. package/dist/cjs/classes/TraitEnumValue.js +12 -0
  4. package/dist/cjs/classes/TraitGroup.js +12 -0
  5. package/dist/cjs/classes/UnitOfMeasurement.js +12 -0
  6. package/dist/cjs/classes/index.js +4 -0
  7. package/dist/cjs/models/Trait.js +2 -0
  8. package/dist/cjs/models/TraitEnumValue.js +2 -0
  9. package/dist/cjs/models/TraitGroup.js +2 -0
  10. package/dist/cjs/models/UnitOfMeasurement.js +2 -0
  11. package/dist/cjs/models/index.js +17 -1
  12. package/dist/esm/classes/FormOptions.js +1 -0
  13. package/dist/esm/classes/Trait.js +8 -0
  14. package/dist/esm/classes/TraitEnumValue.js +8 -0
  15. package/dist/esm/classes/TraitGroup.js +8 -0
  16. package/dist/esm/classes/UnitOfMeasurement.js +8 -0
  17. package/dist/esm/classes/index.js +4 -0
  18. package/dist/esm/models/Trait.js +1 -0
  19. package/dist/esm/models/TraitEnumValue.js +1 -0
  20. package/dist/esm/models/TraitGroup.js +1 -0
  21. package/dist/esm/models/UnitOfMeasurement.js +1 -0
  22. package/dist/esm/models/index.js +12 -0
  23. package/dist/types/classes/Collection.d.ts +2 -0
  24. package/dist/types/classes/FormOptions.d.ts +2 -1
  25. package/dist/types/classes/Trait.d.ts +14 -0
  26. package/dist/types/classes/TraitEnumValue.d.ts +9 -0
  27. package/dist/types/classes/TraitGroup.d.ts +7 -0
  28. package/dist/types/classes/UnitOfMeasurement.d.ts +13 -0
  29. package/dist/types/classes/index.d.ts +8 -0
  30. package/dist/types/models/Collection.d.ts +2 -0
  31. package/dist/types/models/FormOptions.d.ts +1 -1
  32. package/dist/types/models/Trait.d.ts +14 -0
  33. package/dist/types/models/TraitEnumValue.d.ts +9 -0
  34. package/dist/types/models/TraitGroup.d.ts +7 -0
  35. package/dist/types/models/UnitOfMeasurement.d.ts +13 -0
  36. package/dist/types/models/index.d.ts +13 -1
  37. package/package.json +1 -1
@@ -28,6 +28,7 @@ var ResultServiceTypeEnum;
28
28
  ResultServiceTypeEnum["resultServiceTypeSykeInsectProjects"] = "MHL.resultServiceTypeSykeInsectProjects";
29
29
  ResultServiceTypeEnum["resultServiceTypeInvasiveControl"] = "MHL.resultServiceTypeInvasiveControl";
30
30
  ResultServiceTypeEnum["resultServiceTypeCompleteLists"] = "MHL.resultServiceTypeCompleteLists";
31
+ ResultServiceTypeEnum["resultServiceTypeBirdCount"] = "MHL.resultServiceTypeBirdCount";
31
32
  })(ResultServiceTypeEnum = exports.ResultServiceTypeEnum || (exports.ResultServiceTypeEnum = {}));
32
33
  var ViewerTypeEnum;
33
34
  (function (ViewerTypeEnum) {
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Trait = 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 Trait {
11
+ }
12
+ exports.Trait = Trait;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TraitEnumValue = 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 TraitEnumValue {
11
+ }
12
+ exports.TraitEnumValue = TraitEnumValue;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TraitGroup = 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 TraitGroup {
11
+ }
12
+ exports.TraitGroup = TraitGroup;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnitOfMeasurement = 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 UnitOfMeasurement {
11
+ }
12
+ exports.UnitOfMeasurement = UnitOfMeasurement;
@@ -76,6 +76,9 @@ const TaxonConcept_1 = require("./TaxonConcept");
76
76
  const TaxonGroupIucnEditors_1 = require("./TaxonGroupIucnEditors");
77
77
  const TaxonInteraction_1 = require("./TaxonInteraction");
78
78
  const TaxonSet_1 = require("./TaxonSet");
79
+ const Trait_1 = require("./Trait");
80
+ const TraitEnumValue_1 = require("./TraitEnumValue");
81
+ const TraitGroup_1 = require("./TraitGroup");
79
82
  const Transaction_1 = require("./Transaction");
80
83
  const TransactionEvent_1 = require("./TransactionEvent");
81
84
  const TransactionItem_1 = require("./TransactionItem");
@@ -84,5 +87,6 @@ const TypeSpecimen_1 = require("./TypeSpecimen");
84
87
  const Unit_1 = require("./Unit");
85
88
  const UnitFact_1 = require("./UnitFact");
86
89
  const UnitGathering_1 = require("./UnitGathering");
90
+ const UnitOfMeasurement_1 = require("./UnitOfMeasurement");
87
91
  const Validator_1 = require("./Validator");
88
92
  const Video_1 = require("./Video");
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isIucnRedListTaxonGroup = 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.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;
4
- exports.isVideo = exports.isValidator = exports.isUnitGathering = exports.isUnitFact = exports.isUnit = exports.isTypeSpecimen = exports.isTranslation = exports.isTransactionItem = exports.isTransactionEvent = exports.isTransaction = 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;
4
+ 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;
5
5
  function isLang(value) {
6
6
  return typeof value === 'string' && ['en', 'fi', 'sv'].includes(value);
7
7
  }
@@ -317,6 +317,18 @@ function isTaxonSet(data) {
317
317
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MX.taxonSet');
318
318
  }
319
319
  exports.isTaxonSet = isTaxonSet;
320
+ function isTrait(data) {
321
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.trait');
322
+ }
323
+ exports.isTrait = isTrait;
324
+ function isTraitEnumValue(data) {
325
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.traitEnumValue');
326
+ }
327
+ exports.isTraitEnumValue = isTraitEnumValue;
328
+ function isTraitGroup(data) {
329
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.traitGroup');
330
+ }
331
+ exports.isTraitGroup = isTraitGroup;
320
332
  function isTransaction(data) {
321
333
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'HRA.transaction');
322
334
  }
@@ -349,6 +361,10 @@ function isUnitGathering(data) {
349
361
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MZ.unitGathering');
350
362
  }
351
363
  exports.isUnitGathering = isUnitGathering;
364
+ function isUnitOfMeasurement(data) {
365
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.unitOfMeasurement');
366
+ }
367
+ exports.isUnitOfMeasurement = isUnitOfMeasurement;
352
368
  function isValidator(data) {
353
369
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MHL.validator');
354
370
  }
@@ -25,6 +25,7 @@ export var ResultServiceTypeEnum;
25
25
  ResultServiceTypeEnum["resultServiceTypeSykeInsectProjects"] = "MHL.resultServiceTypeSykeInsectProjects";
26
26
  ResultServiceTypeEnum["resultServiceTypeInvasiveControl"] = "MHL.resultServiceTypeInvasiveControl";
27
27
  ResultServiceTypeEnum["resultServiceTypeCompleteLists"] = "MHL.resultServiceTypeCompleteLists";
28
+ ResultServiceTypeEnum["resultServiceTypeBirdCount"] = "MHL.resultServiceTypeBirdCount";
28
29
  })(ResultServiceTypeEnum || (ResultServiceTypeEnum = {}));
29
30
  export var ViewerTypeEnum;
30
31
  (function (ViewerTypeEnum) {
@@ -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 Trait {
8
+ }
@@ -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 TraitEnumValue {
8
+ }
@@ -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 TraitGroup {
8
+ }
@@ -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 UnitOfMeasurement {
8
+ }
@@ -74,6 +74,9 @@ import { TaxonConcept } from './TaxonConcept';
74
74
  import { TaxonGroupIucnEditors } from './TaxonGroupIucnEditors';
75
75
  import { TaxonInteraction } from './TaxonInteraction';
76
76
  import { TaxonSet } from './TaxonSet';
77
+ import { Trait } from './Trait';
78
+ import { TraitEnumValue } from './TraitEnumValue';
79
+ import { TraitGroup } from './TraitGroup';
77
80
  import { Transaction } from './Transaction';
78
81
  import { TransactionEvent } from './TransactionEvent';
79
82
  import { TransactionItem } from './TransactionItem';
@@ -82,5 +85,6 @@ import { TypeSpecimen } from './TypeSpecimen';
82
85
  import { Unit } from './Unit';
83
86
  import { UnitFact } from './UnitFact';
84
87
  import { UnitGathering } from './UnitGathering';
88
+ import { UnitOfMeasurement } from './UnitOfMeasurement';
85
89
  import { Validator } from './Validator';
86
90
  import { Video } from './Video';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -235,6 +235,15 @@ export function isTaxonInteraction(data) {
235
235
  export function isTaxonSet(data) {
236
236
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MX.taxonSet');
237
237
  }
238
+ export function isTrait(data) {
239
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.trait');
240
+ }
241
+ export function isTraitEnumValue(data) {
242
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.traitEnumValue');
243
+ }
244
+ export function isTraitGroup(data) {
245
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.traitGroup');
246
+ }
238
247
  export function isTransaction(data) {
239
248
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'HRA.transaction');
240
249
  }
@@ -259,6 +268,9 @@ export function isUnitFact(data) {
259
268
  export function isUnitGathering(data) {
260
269
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MZ.unitGathering');
261
270
  }
271
+ export function isUnitOfMeasurement(data) {
272
+ return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'TDF.unitOfMeasurement');
273
+ }
262
274
  export function isValidator(data) {
263
275
  return !!(data && typeof data === 'object' && '@type' in data && data['@type'] === 'MHL.validator');
264
276
  }
@@ -77,6 +77,7 @@ export declare class Collection {
77
77
  * Unofficial abbreviation (or acronym) for this collection
78
78
  */
79
79
  abbreviation?: string;
80
+ additionalIdentifier?: string[];
80
81
  /**
81
82
  * Admin field. Is it allowed to use collection with data warehouse /statistic endpoints.
82
83
  */
@@ -189,6 +190,7 @@ export declare class Collection {
189
190
  * How many percent of the collection is in digital form, e.g. in a database or Excel file? Fill in approximate number, describe more in notes if necessary.
190
191
  */
191
192
  digitizedSize?: string;
193
+ doi?: string;
192
194
  /**
193
195
  * Admin field. The identifier of the person responsible for handling requests for restricted data for this set (typically same person who's responsible for the collection)
194
196
  */
@@ -19,7 +19,8 @@ export declare enum ResultServiceTypeEnum {
19
19
  "resultServiceTypeWinterBirdCount" = "MHL.resultServiceTypeWinterBirdCount",
20
20
  "resultServiceTypeSykeInsectProjects" = "MHL.resultServiceTypeSykeInsectProjects",
21
21
  "resultServiceTypeInvasiveControl" = "MHL.resultServiceTypeInvasiveControl",
22
- "resultServiceTypeCompleteLists" = "MHL.resultServiceTypeCompleteLists"
22
+ "resultServiceTypeCompleteLists" = "MHL.resultServiceTypeCompleteLists",
23
+ "resultServiceTypeBirdCount" = "MHL.resultServiceTypeBirdCount"
23
24
  }
24
25
  export declare enum ViewerTypeEnum {
25
26
  "empty" = "",
@@ -0,0 +1,14 @@
1
+ export declare class Trait {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ baseUnit?: string;
6
+ dataEntryName: string;
7
+ description: string;
8
+ exampleValues?: string;
9
+ externalIdentifier?: string[];
10
+ hasEnumeration?: string[];
11
+ name: string;
12
+ partOfGroup: string;
13
+ reference?: string[];
14
+ }
@@ -0,0 +1,9 @@
1
+ export declare class TraitEnumValue {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ dataEntryName: string;
6
+ description: string;
7
+ name: string;
8
+ sortOrder?: number;
9
+ }
@@ -0,0 +1,7 @@
1
+ export declare class TraitGroup {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ description: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ export declare class UnitOfMeasurement {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ baseConversion: number;
6
+ baseUnit?: string;
7
+ isBaseUnit: boolean;
8
+ "rdfs:label"?: {
9
+ en?: string[];
10
+ fi?: string[];
11
+ sv?: string[];
12
+ };
13
+ }
@@ -150,6 +150,12 @@ import { TaxonInteraction } from './TaxonInteraction';
150
150
  export type { TaxonInteraction };
151
151
  import { TaxonSet } from './TaxonSet';
152
152
  export type { TaxonSet };
153
+ import { Trait } from './Trait';
154
+ export type { Trait };
155
+ import { TraitEnumValue } from './TraitEnumValue';
156
+ export type { TraitEnumValue };
157
+ import { TraitGroup } from './TraitGroup';
158
+ export type { TraitGroup };
153
159
  import { Transaction } from './Transaction';
154
160
  export type { Transaction };
155
161
  import { TransactionEvent } from './TransactionEvent';
@@ -166,6 +172,8 @@ import { UnitFact } from './UnitFact';
166
172
  export type { UnitFact };
167
173
  import { UnitGathering } from './UnitGathering';
168
174
  export type { UnitGathering };
175
+ import { UnitOfMeasurement } from './UnitOfMeasurement';
176
+ export type { UnitOfMeasurement };
169
177
  import { Validator } from './Validator';
170
178
  export type { Validator };
171
179
  import { Video } from './Video';
@@ -18,6 +18,7 @@ export interface Collection {
18
18
  * Unofficial abbreviation (or acronym) for this collection
19
19
  */
20
20
  abbreviation?: string;
21
+ additionalIdentifier?: string[];
21
22
  /**
22
23
  * Admin field. Is it allowed to use collection with data warehouse /statistic endpoints.
23
24
  */
@@ -130,6 +131,7 @@ export interface Collection {
130
131
  * How many percent of the collection is in digital form, e.g. in a database or Excel file? Fill in approximate number, describe more in notes if necessary.
131
132
  */
132
133
  digitizedSize?: string;
134
+ doi?: string;
133
135
  /**
134
136
  * Admin field. The identifier of the person responsible for handling requests for restricted data for this set (typically same person who's responsible for the collection)
135
137
  */
@@ -4,7 +4,7 @@ import { Document } from './';
4
4
  import { FormSeason } from './';
5
5
  export declare type PrintTypeEnum = "" | "MHL.printTypeLineTransect";
6
6
  export declare type RestrictAccessEnum = "" | "MHL.restrictAccessStrict" | "MHL.restrictAccessLoose";
7
- export declare type ResultServiceTypeEnum = "" | "MHL.resultServiceTypeLineTransect" | "MHL.resultServiceTypeNafi" | "MHL.resultServiceTypeBirdPointCount" | "MHL.resultServiceTypeWinterBirdCount" | "MHL.resultServiceTypeSykeInsectProjects" | "MHL.resultServiceTypeInvasiveControl" | "MHL.resultServiceTypeCompleteLists";
7
+ export declare type ResultServiceTypeEnum = "" | "MHL.resultServiceTypeLineTransect" | "MHL.resultServiceTypeNafi" | "MHL.resultServiceTypeBirdPointCount" | "MHL.resultServiceTypeWinterBirdCount" | "MHL.resultServiceTypeSykeInsectProjects" | "MHL.resultServiceTypeInvasiveControl" | "MHL.resultServiceTypeCompleteLists" | "MHL.resultServiceTypeBirdCount";
8
8
  export declare type ViewerTypeEnum = "" | "MHL.viewerTypeLineTransect" | "MHL.viewerTypeBirdPointCount";
9
9
  export interface FormOptions {
10
10
  "@context"?: string;
@@ -0,0 +1,14 @@
1
+ export interface Trait {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ baseUnit?: string;
6
+ dataEntryName: string;
7
+ description: string;
8
+ exampleValues?: string;
9
+ externalIdentifier?: string[];
10
+ hasEnumeration?: string[];
11
+ name: string;
12
+ partOfGroup: string;
13
+ reference?: string[];
14
+ }
@@ -0,0 +1,9 @@
1
+ export interface TraitEnumValue {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ dataEntryName: string;
6
+ description: string;
7
+ name: string;
8
+ sortOrder?: number;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface TraitGroup {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ description: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ export interface UnitOfMeasurement {
2
+ "@context"?: string;
3
+ id?: string;
4
+ "@type"?: string;
5
+ baseConversion: number;
6
+ baseUnit?: string;
7
+ isBaseUnit: boolean;
8
+ "rdfs:label"?: {
9
+ en?: string[];
10
+ fi?: string[];
11
+ sv?: string[];
12
+ };
13
+ }
@@ -150,6 +150,12 @@ import { TaxonInteraction } from './TaxonInteraction';
150
150
  export type { TaxonInteraction };
151
151
  import { TaxonSet } from './TaxonSet';
152
152
  export type { TaxonSet };
153
+ import { Trait } from './Trait';
154
+ export type { Trait };
155
+ import { TraitEnumValue } from './TraitEnumValue';
156
+ export type { TraitEnumValue };
157
+ import { TraitGroup } from './TraitGroup';
158
+ export type { TraitGroup };
153
159
  import { Transaction } from './Transaction';
154
160
  export type { Transaction };
155
161
  import { TransactionEvent } from './TransactionEvent';
@@ -166,11 +172,13 @@ import { UnitFact } from './UnitFact';
166
172
  export type { UnitFact };
167
173
  import { UnitGathering } from './UnitGathering';
168
174
  export type { UnitGathering };
175
+ import { UnitOfMeasurement } from './UnitOfMeasurement';
176
+ export type { UnitOfMeasurement };
169
177
  import { Validator } from './Validator';
170
178
  export type { Validator };
171
179
  import { Video } from './Video';
172
180
  export type { Video };
173
- 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 | Transaction | TransactionEvent | TransactionItem | Translation | TypeSpecimen | Unit | UnitFact | UnitGathering | Validator | Video;
181
+ 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;
174
182
  export declare type KeyOfUnion<K extends StoreObject> = K extends keyof K ? K : never;
175
183
  export declare type Lang = 'en' | 'fi' | 'sv';
176
184
  export declare function isLang(value: unknown): value is Lang;
@@ -251,6 +259,9 @@ export declare function isTaxonConcept(data: unknown): data is TaxonConcept;
251
259
  export declare function isTaxonGroupIucnEditors(data: unknown): data is TaxonGroupIucnEditors;
252
260
  export declare function isTaxonInteraction(data: unknown): data is TaxonInteraction;
253
261
  export declare function isTaxonSet(data: unknown): data is TaxonSet;
262
+ export declare function isTrait(data: unknown): data is Trait;
263
+ export declare function isTraitEnumValue(data: unknown): data is TraitEnumValue;
264
+ export declare function isTraitGroup(data: unknown): data is TraitGroup;
254
265
  export declare function isTransaction(data: unknown): data is Transaction;
255
266
  export declare function isTransactionEvent(data: unknown): data is TransactionEvent;
256
267
  export declare function isTransactionItem(data: unknown): data is TransactionItem;
@@ -259,5 +270,6 @@ export declare function isTypeSpecimen(data: unknown): data is TypeSpecimen;
259
270
  export declare function isUnit(data: unknown): data is Unit;
260
271
  export declare function isUnitFact(data: unknown): data is UnitFact;
261
272
  export declare function isUnitGathering(data: unknown): data is UnitGathering;
273
+ export declare function isUnitOfMeasurement(data: unknown): data is UnitOfMeasurement;
262
274
  export declare function isValidator(data: unknown): data is Validator;
263
275
  export declare function isVideo(data: unknown): data is Video;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-schema",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "Common autogenerated Typescript interfaces and classes for the schemas used by LUOMUS.",
5
5
  "license": "MIT",
6
6
  "scripts": {