@databiosphere/findable-ui 50.7.1 → 50.8.0
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/lib/common/entities.d.ts +11 -1
- package/lib/common/entities.js +6 -0
- package/package.json +1 -1
package/lib/common/entities.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface Attribute {
|
|
|
12
12
|
name: string;
|
|
13
13
|
range: string;
|
|
14
14
|
rationale?: string;
|
|
15
|
-
required:
|
|
15
|
+
required: RequirementLevel;
|
|
16
16
|
title: string;
|
|
17
17
|
values?: string;
|
|
18
18
|
}
|
|
@@ -103,6 +103,16 @@ export interface Pagination {
|
|
|
103
103
|
* Possible pagination direction values.
|
|
104
104
|
*/
|
|
105
105
|
export type PaginationDirectionType = "next" | "prev";
|
|
106
|
+
/**
|
|
107
|
+
* Requirement level for an attribute.
|
|
108
|
+
*/
|
|
109
|
+
export declare const REQUIREMENT_LEVEL: {
|
|
110
|
+
readonly STRONGLY_RECOMMENDED: "strongly recommended";
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Requirement level type.
|
|
114
|
+
*/
|
|
115
|
+
export type RequirementLevel = boolean | (typeof REQUIREMENT_LEVEL)[keyof typeof REQUIREMENT_LEVEL];
|
|
106
116
|
/**
|
|
107
117
|
* Internal filter model of a multiselect category (e.g. library construction approach).
|
|
108
118
|
*/
|
package/lib/common/entities.js
CHANGED