@luomus/laji-schema 2.0.23 → 2.0.25

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 (106) hide show
  1. package/dist/dto/AdministrativeStatus.dto.ts +21 -0
  2. package/dist/dto/Agent.dto.ts +11 -0
  3. package/dist/dto/Annotation.dto.ts +80 -0
  4. package/dist/dto/AnnotationOccurrence.dto.ts +20 -0
  5. package/dist/dto/Area.dto.ts +52 -0
  6. package/dist/dto/Audio.dto.ts +142 -0
  7. package/dist/dto/BibliographicResource.dto.ts +13 -0
  8. package/dist/dto/BirdSongRecognitionSkillLevel.dto.ts +19 -0
  9. package/dist/dto/Branch.dto.ts +28 -0
  10. package/dist/dto/Checklist.dto.ts +20 -0
  11. package/dist/dto/ChecklistVersion.dto.ts +23 -0
  12. package/dist/dto/Collection.dto.ts +347 -0
  13. package/dist/dto/CompleteList.dto.ts +19 -0
  14. package/dist/dto/Concept.dto.ts +17 -0
  15. package/dist/dto/ContentContextDescription.dto.ts +11 -0
  16. package/dist/dto/DataField.dto.ts +36 -0
  17. package/dist/dto/Dataset.dto.ts +67 -0
  18. package/dist/dto/DateRange.dto.ts +13 -0
  19. package/dist/dto/Device.dto.ts +19 -0
  20. package/dist/dto/DeviceIndividual.dto.ts +27 -0
  21. package/dist/dto/Document.dto.ts +319 -0
  22. package/dist/dto/DownloadRequest.dto.ts +32 -0
  23. package/dist/dto/Endangerment.dto.ts +42 -0
  24. package/dist/dto/Event.dto.ts +85 -0
  25. package/dist/dto/Field.dto.ts +35 -0
  26. package/dist/dto/Fieldset.dto.ts +11 -0
  27. package/dist/dto/Form.dto.ts +70 -0
  28. package/dist/dto/FormFooter.dto.ts +21 -0
  29. package/dist/dto/FormInstructions.dto.ts +11 -0
  30. package/dist/dto/FormNamedPlaceOptions.dto.ts +172 -0
  31. package/dist/dto/FormOptions.dto.ts +232 -0
  32. package/dist/dto/FormPermission.dto.ts +15 -0
  33. package/dist/dto/FormPermissionPerson.dto.ts +15 -0
  34. package/dist/dto/FormPermissionSingle.dto.ts +20 -0
  35. package/dist/dto/FormSeason.dto.ts +19 -0
  36. package/dist/dto/Gathering.dto.ts +546 -0
  37. package/dist/dto/GatheringEvent.dto.ts +114 -0
  38. package/dist/dto/GatheringFact.dto.ts +329 -0
  39. package/dist/dto/Habitat.dto.ts +124 -0
  40. package/dist/dto/Identification.dto.ts +204 -0
  41. package/dist/dto/Image.dto.ts +147 -0
  42. package/dist/dto/Individual.dto.ts +59 -0
  43. package/dist/dto/InformalTaxonGroup.dto.ts +21 -0
  44. package/dist/dto/InformationSystem.dto.ts +58 -0
  45. package/dist/dto/IucnRedListEvaluation.dto.ts +554 -0
  46. package/dist/dto/IucnRedListEvaluationYear.dto.ts +13 -0
  47. package/dist/dto/IucnRedListTaxonGroup.dto.ts +19 -0
  48. package/dist/dto/Measurement.dto.ts +38 -0
  49. package/dist/dto/Model.dto.ts +141 -0
  50. package/dist/dto/Multimedia.dto.ts +11 -0
  51. package/dist/dto/NamedPlace.dto.ts +83 -0
  52. package/dist/dto/News.dto.ts +23 -0
  53. package/dist/dto/Notification.dto.ts +24 -0
  54. package/dist/dto/Occurrence.dto.ts +65 -0
  55. package/dist/dto/Organization.dto.ts +136 -0
  56. package/dist/dto/Pdf.dto.ts +61 -0
  57. package/dist/dto/Permit.dto.ts +36 -0
  58. package/dist/dto/Person.dto.ts +80 -0
  59. package/dist/dto/Pinkka.dto.ts +11 -0
  60. package/dist/dto/Preparation.dto.ts +70 -0
  61. package/dist/dto/Profile.dto.ts +43 -0
  62. package/dist/dto/Publication.dto.ts +17 -0
  63. package/dist/dto/RegionalStatus.dto.ts +60 -0
  64. package/dist/dto/Reserve.dto.ts +13 -0
  65. package/dist/dto/Sample.dto.ts +246 -0
  66. package/dist/dto/SatelliteTrackingProject.dto.ts +22 -0
  67. package/dist/dto/SpecimenTransaction.dto.ts +234 -0
  68. package/dist/dto/SpecimenTransactionEvent.dto.ts +19 -0
  69. package/dist/dto/SubUnit.dto.ts +31 -0
  70. package/dist/dto/Tag.dto.ts +50 -0
  71. package/dist/dto/Taxon.dto.ts +600 -0
  72. package/dist/dto/TaxonCensus.dto.ts +44 -0
  73. package/dist/dto/TaxonConcept.dto.ts +15 -0
  74. package/dist/dto/TaxonGroupIucnEditors.dto.ts +13 -0
  75. package/dist/dto/TaxonInteraction.dto.ts +75 -0
  76. package/dist/dto/TaxonSet.dto.ts +11 -0
  77. package/dist/dto/Trait.dto.ts +20 -0
  78. package/dist/dto/TraitEnumValue.dto.ts +16 -0
  79. package/dist/dto/TraitGroup.dto.ts +13 -0
  80. package/dist/dto/Transaction.dto.ts +249 -0
  81. package/dist/dto/TransactionEvent.dto.ts +32 -0
  82. package/dist/dto/TransactionItem.dto.ts +29 -0
  83. package/dist/dto/Translation.dto.ts +20 -0
  84. package/dist/dto/TypeSpecimen.dto.ts +108 -0
  85. package/dist/dto/Unit.dto.ts +831 -0
  86. package/dist/dto/UnitFact.dto.ts +126 -0
  87. package/dist/dto/UnitGathering.dto.ts +25 -0
  88. package/dist/dto/UnitOfMeasurement.dto.ts +19 -0
  89. package/dist/dto/Validator.dto.ts +11 -0
  90. package/dist/dto/Video.dto.ts +139 -0
  91. package/dist/dto/index.dto.ts +181 -0
  92. package/dist/types/classes/Audio.d.ts +2 -0
  93. package/dist/types/classes/DataField.d.ts +1 -0
  94. package/dist/types/classes/Image.d.ts +1 -0
  95. package/dist/types/classes/InformationSystem.d.ts +4 -0
  96. package/dist/types/classes/Model.d.ts +1 -0
  97. package/dist/types/classes/TraitEnumValue.d.ts +1 -0
  98. package/dist/types/classes/Video.d.ts +1 -0
  99. package/dist/types/models/Audio.d.ts +2 -0
  100. package/dist/types/models/DataField.d.ts +1 -0
  101. package/dist/types/models/Image.d.ts +1 -0
  102. package/dist/types/models/InformationSystem.d.ts +4 -0
  103. package/dist/types/models/Model.d.ts +1 -0
  104. package/dist/types/models/TraitEnumValue.d.ts +1 -0
  105. package/dist/types/models/Video.d.ts +1 -0
  106. package/package.json +6 -2
@@ -0,0 +1,172 @@
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 FormNamedPlaceOptions {
8
+ "@context"?: string;
9
+ id?: string;
10
+ "@type"?: string;
11
+ /**
12
+ * Named place viewer shows button to copy the URL for the named place viewer
13
+ */
14
+ adminShowCopyLink?: boolean;
15
+ /**
16
+ * Form users can create new named places for the form
17
+ */
18
+ allowAddingPublic?: boolean;
19
+ /**
20
+ * Help text for bird association filter
21
+ */
22
+ birdAssociationAreaHelp?: string;
23
+ /**
24
+ * Description shown at named place choose page. Allows HTML.
25
+ */
26
+ chooseDescription?: string;
27
+ /**
28
+ * The latest document is copied to named place's prepopulatedDocument. if documents date is same or after the current prepopulated document's date, or if prepopulated document doesn't have date. Date is checked from gatheringEvent or from gatherings
29
+ */
30
+ copyLatestDocumentToNamedPlace?: boolean;
31
+ /**
32
+ * Description shown above named place form when creating new named place. Allows HTML.
33
+ */
34
+ createDescription?: string;
35
+ /**
36
+ * Label for new named place creation button at named place choose page
37
+ */
38
+ createNewButtonLabel?: string;
39
+ /**
40
+ * Label for text before new named place creation button at named place choose page
41
+ */
42
+ createNewButtonPrependingTextLabel?: string;
43
+ /**
44
+ * Theme own submissions page uses local document viewer (that shows more accurate data)
45
+ */
46
+ documentListUseLocalDocumentViewer?: boolean;
47
+ /**
48
+ * Forces local document viewer to show these fields
49
+ */
50
+ documentViewerForcedFields?: string[];
51
+ /**
52
+ * The path of geometry that document viewer should show
53
+ */
54
+ documentViewerGatheringGeometryJSONPath?: string[];
55
+ /**
56
+ * Document viewer zooms to data instead of locked zoom level
57
+ */
58
+ documentViewerZoomToData?: boolean;
59
+ /**
60
+ * Admin label for named place viewer's document list
61
+ */
62
+ earlierLabel?: string;
63
+ /**
64
+ * Description shown at top of page when editing named place
65
+ */
66
+ editDescription?: string;
67
+ /**
68
+ * The named place UI allows filtering by bird association area
69
+ */
70
+ filterByBirdAssociationArea?: boolean;
71
+ /**
72
+ * The named place UI allows filtering by municipality
73
+ */
74
+ filterByMunicipality?: boolean;
75
+ /**
76
+ * The named place UI allows filtering by tags
77
+ */
78
+ filterByTags?: boolean;
79
+ /**
80
+ * When recording a document for a named place, the named place's data of these fields will be shown at the top of the page (defaults to ["alternativeIDs", "name", "municipality"]
81
+ */
82
+ headerFields?: string[];
83
+ /**
84
+ * On named place chooser view, map tab is hidden
85
+ */
86
+ hideMapTab?: boolean;
87
+ /**
88
+ * Named places will be fetched with units included (hard coded to work only for HR.2049)
89
+ */
90
+ includeUnits?: boolean;
91
+ /**
92
+ * Fields that named place viewer shows (if not defined will be digged from uiSchema["ui:options"].fieldsScopes[form collectionID])
93
+ */
94
+ infoFields?: string[];
95
+ /**
96
+ * Label for named place viewer last census
97
+ */
98
+ lastCensusLabel?: string;
99
+ /**
100
+ * Overrides labels for named place list column headers
101
+ */
102
+ listColumnNameMapping?: {
103
+ [k: string]: string | undefined;
104
+ };
105
+ /**
106
+ * List of columns visible in the list view
107
+ */
108
+ listColumns?: string[];
109
+ listColumnsMultisort?: boolean;
110
+ /**
111
+ * Label for named place chooser list tab
112
+ */
113
+ listLabel?: string;
114
+ mapCluster?: boolean;
115
+ /**
116
+ * Overlays that named place chooser map should show
117
+ */
118
+ mapOverlayNames?: string[];
119
+ /**
120
+ * Tilelayer name that named place chooser map should show
121
+ */
122
+ mapTileLayerName?: string;
123
+ /**
124
+ * User label for named place viewer's document list
125
+ */
126
+ myEarlierLabel?: string;
127
+ /**
128
+ * Form ID of named place form (defaults to MHL.36)
129
+ */
130
+ namedPlaceFormID?: string;
131
+ /**
132
+ * Fields that named places list shows.
133
+ */
134
+ namedPlaceList?: string[];
135
+ /**
136
+ * When a new named place is created, the prepopulatedDocument will be populated according to this.
137
+ */
138
+ prepopulatedDocumentFields?: {
139
+ [k: string]: unknown | undefined;
140
+ };
141
+ /**
142
+ * Label for print button of named place viewer
143
+ */
144
+ printLabel?: string;
145
+ releaseLabel?: string;
146
+ reservableLabel?: string;
147
+ /**
148
+ * Places are reservable if defined. Value defines when the reservation should expire in ISO-8601. Example: ${year}-10-12
149
+ */
150
+ reservationUntil?: string;
151
+ reservedLabel?: string;
152
+ /**
153
+ * Named place list shows legend for the row colors
154
+ */
155
+ showLegendList?: boolean;
156
+ /**
157
+ * Named place chooser view starts with map tab instead of list
158
+ */
159
+ startWithMap?: boolean;
160
+ /**
161
+ * Instead of populating observation form with prepopulatedDocument, it is populated with acceptedDocument. Admin can change the acceptedDocument from observation list
162
+ */
163
+ useAcceptedDocument?: boolean;
164
+ /**
165
+ * Named place viewer label for button for recording new observation
166
+ */
167
+ useLabel?: string;
168
+ /**
169
+ * Named place chooser map is initialized with data fitted in view.
170
+ */
171
+ zoomToData?: boolean;
172
+ }
@@ -0,0 +1,232 @@
1
+ import { FormFooter } from './index.dto';
2
+ import { FormNamedPlaceOptions } from './index.dto';
3
+ import { Document } from './index.dto';
4
+ import { FormSeason } from './index.dto';
5
+ /* tslint:disable */
6
+ /*
7
+ * This file was automatically generated.
8
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
9
+ * and run the command to regenerate this file.
10
+ */
11
+ export enum PrintTypeEnum {
12
+ "empty" = "",
13
+ "printTypeLineTransect" = "MHL.printTypeLineTransect"
14
+ }
15
+ export enum RestrictAccessEnum {
16
+ "empty" = "",
17
+ "restrictAccessStrict" = "MHL.restrictAccessStrict",
18
+ "restrictAccessLoose" = "MHL.restrictAccessLoose"
19
+ }
20
+ export enum ResultServiceTypeEnum {
21
+ "empty" = "",
22
+ "resultServiceTypeLineTransect" = "MHL.resultServiceTypeLineTransect",
23
+ "resultServiceTypeNafi" = "MHL.resultServiceTypeNafi",
24
+ "resultServiceTypeBirdPointCount" = "MHL.resultServiceTypeBirdPointCount",
25
+ "resultServiceTypeWinterBirdCount" = "MHL.resultServiceTypeWinterBirdCount",
26
+ "resultServiceTypeSykeInsectProjects" = "MHL.resultServiceTypeSykeInsectProjects",
27
+ "resultServiceTypeInvasiveControl" = "MHL.resultServiceTypeInvasiveControl",
28
+ "resultServiceTypeCompleteLists" = "MHL.resultServiceTypeCompleteLists",
29
+ "resultServiceTypeWaterBirdCount" = "MHL.resultServiceTypeWaterBirdCount"
30
+ }
31
+ export enum ViewerTypeEnum {
32
+ "empty" = "",
33
+ "viewerTypeLineTransect" = "MHL.viewerTypeLineTransect",
34
+ "viewerTypeBirdPointCount" = "MHL.viewerTypeBirdPointCount"
35
+ }
36
+ export class FormOptions {
37
+ "@context"?: string;
38
+ id?: string;
39
+ "@type"?: string;
40
+ about?: {
41
+ en?: string;
42
+ fi?: string;
43
+ sv?: string;
44
+ };
45
+ /**
46
+ * Form admin can lock documents. Locked documents can't be edited
47
+ */
48
+ adminLockable?: boolean;
49
+ /**
50
+ * Allows usage in spreadsheet upload component
51
+ */
52
+ allowExcel?: boolean;
53
+ /**
54
+ * Allows creating templates from documents
55
+ */
56
+ allowTemplate?: boolean;
57
+ /**
58
+ * Label for the cancel button at the form footer
59
+ */
60
+ cancelLabel?: string;
61
+ /**
62
+ * Has dataset about page
63
+ */
64
+ dataset?: boolean;
65
+ /**
66
+ * Theme form introduction page doesn't show description for the form permission request button
67
+ */
68
+ disableRequestDescription?: boolean;
69
+ /**
70
+ * Prevent sending documents & named places
71
+ */
72
+ disabled?: boolean;
73
+ /**
74
+ * Only if has named places. All documents for admin
75
+ */
76
+ displayOwnSubmissions?: boolean;
77
+ /**
78
+ * The users can see all the documents with the form's collection ID instead of just their own
79
+ */
80
+ documentsViewableForAll?: boolean;
81
+ /**
82
+ * Label for the draft button at the form footer
83
+ */
84
+ draftLabel?: string;
85
+ editLabel?: string;
86
+ /**
87
+ * Units without count aren't considered in laji.fi viewer (including document viewers and datatables)
88
+ */
89
+ emptyOnNoCount?: boolean;
90
+ /**
91
+ * Excludes from the Vihko excel tools
92
+ */
93
+ excludeFromGlobalExcel?: boolean;
94
+ /**
95
+ * Options for footer of the observation form
96
+ */
97
+ footer?: FormFooter;
98
+ /**
99
+ * Label for the own submissions list at the header of document form
100
+ */
101
+ formOwnSubmissionsLabel?: string;
102
+ /**
103
+ * Shown at form permission intro page. Allows HTML
104
+ */
105
+ formPermissionDescription?: string;
106
+ forms?: string[];
107
+ /**
108
+ * The form has administrators. Administrators can handle user access permissions and admin roles for all forms with the collectionID of the form.
109
+ */
110
+ hasAdmins?: boolean;
111
+ /**
112
+ * Hides the cancel button at form footer
113
+ */
114
+ hideCancelButton?: boolean;
115
+ hideDraftButton?: boolean;
116
+ /**
117
+ * Hides the save/edit button at form footer
118
+ */
119
+ hideSaveButton?: boolean;
120
+ /**
121
+ * Terms of Service is hidden at the header of observation form
122
+ */
123
+ hideTES?: boolean;
124
+ /**
125
+ * Hides the draft button at form footer
126
+ */
127
+ hideTempButton?: boolean;
128
+ instructions?: {
129
+ en?: string;
130
+ fi?: string;
131
+ sv?: string;
132
+ };
133
+ /**
134
+ * Form UI has a greeting page for convenient mobile usage
135
+ */
136
+ mobile?: boolean;
137
+ namedPlaceOptions?: FormNamedPlaceOptions;
138
+ /**
139
+ * The title label for theme form sidebar
140
+ */
141
+ navigationTitle?: string;
142
+ /**
143
+ * Available actions for own submissions (only on the own submissions page). Defaults to ['edit', 'view', 'download', 'stats', 'delete']
144
+ */
145
+ ownSubmissionsActions?: string[];
146
+ /**
147
+ * Shown at sidebar link and title of all submissions page
148
+ */
149
+ ownSubmissionsAdminTitle?: string;
150
+ /**
151
+ * Columns for own submissions (only on the own submissions page). Defaults to ['dateEdited', 'dateObserved', 'taxon', 'namedPlaceName', 'observer', 'id']
152
+ */
153
+ ownSubmissionsColumns?: string[];
154
+ /**
155
+ * Shown at sidebar link and title of all submissions page
156
+ */
157
+ ownSubmissionsTitle?: string;
158
+ /**
159
+ * Periods that the "NoExistingGatheringsInNamedPlace" validation uses
160
+ */
161
+ periods?: string[];
162
+ prepopulateWithInformalTaxonGroups?: string[];
163
+ prepopulateWithTaxonSets?: string;
164
+ /**
165
+ * Initial document data
166
+ */
167
+ prepopulatedDocument?: Document;
168
+ printType?: PrintTypeEnum;
169
+ /**
170
+ * Users need to have permission to access the form
171
+ */
172
+ restrictAccess?: RestrictAccessEnum;
173
+ resultServiceType?: ResultServiceTypeEnum;
174
+ /**
175
+ * Message shown when document save failed
176
+ */
177
+ saveErrorMessage?: string;
178
+ /**
179
+ * Label for the save button at the form footer
180
+ */
181
+ saveLabel?: string;
182
+ /**
183
+ * Message shown when document was successfully saved
184
+ */
185
+ saveSuccessMessage?: string;
186
+ /**
187
+ * Message shown when document draft was successfully saved
188
+ */
189
+ saveTempSuccessMessage?: string;
190
+ /**
191
+ * Named places page shows the places as done if they have observation inside the season
192
+ */
193
+ season?: FormSeason;
194
+ /**
195
+ * Makes the documents reported with the form secondary
196
+ */
197
+ secondaryCopy?: boolean;
198
+ /**
199
+ * Overrides MHL.shortTitle usage
200
+ */
201
+ shortTitleFromCollectionName?: boolean;
202
+ /**
203
+ * Sub forms are shown only if they have this property
204
+ */
205
+ sidebarFormLabel?: string;
206
+ /**
207
+ * Has only a form page, no sidebar
208
+ */
209
+ simple?: boolean;
210
+ /**
211
+ * Documents can't have data not defined in form fields. Defaults to true.
212
+ */
213
+ strict?: boolean;
214
+ /**
215
+ * Label for the draft button at the form footer
216
+ */
217
+ tempLabel?: string;
218
+ /**
219
+ * Makes the form use named places
220
+ */
221
+ useNamedPlaces?: boolean;
222
+ /**
223
+ * Uses schema comments as form help texts
224
+ */
225
+ useSchemaCommentsAsHelpTexts?: boolean;
226
+ viewerType?: ViewerTypeEnum;
227
+ warnEditingOldDocument?: boolean;
228
+ /**
229
+ * Duration in ISO 8601 duration format. Defaults to P1W (one week)
230
+ */
231
+ warnEditingOldDocumentDuration?: boolean;
232
+ }
@@ -0,0 +1,15 @@
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 FormPermission {
8
+ "@context"?: string;
9
+ id?: string;
10
+ "@type"?: string;
11
+ admins?: string[];
12
+ collectionID: string;
13
+ editors?: string[];
14
+ permissionRequests?: string[];
15
+ }
@@ -0,0 +1,15 @@
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 FormPermissionPerson {
8
+ "@context"?: string;
9
+ id?: string;
10
+ "@type"?: string;
11
+ personID: string;
12
+ admins?: string[];
13
+ editors?: string[];
14
+ permissionRequests?: string[];
15
+ }
@@ -0,0 +1,20 @@
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 enum TypeEnum {
8
+ "empty" = "",
9
+ "typeAdmin" = "MFP.typeAdmin",
10
+ "typeEditor" = "MFP.typeEditor",
11
+ "typeAccessRequest" = "MFP.typeAccessRequest"
12
+ }
13
+ export class FormPermissionSingle {
14
+ "@context"?: string;
15
+ id?: string;
16
+ "@type"?: string;
17
+ collectionID: string;
18
+ type?: TypeEnum;
19
+ userID?: string;
20
+ }
@@ -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 FormSeason {
8
+ "@context"?: string;
9
+ id?: string;
10
+ "@type"?: string;
11
+ /**
12
+ * End of season
13
+ */
14
+ end?: string;
15
+ /**
16
+ * Start of season
17
+ */
18
+ start?: string;
19
+ }