@sjcrh/proteinpaint-types 2.179.0 → 2.179.1-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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.179.0",
3
+ "version": "2.179.1-0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -1647,6 +1647,8 @@ keep this setting here for reason of:
1647
1647
  isTermVisible?: (clientAuthResult: any, ids: string) => boolean
1648
1648
  hiddenIds?: string[]
1649
1649
  getAdditionalFilter?: (__protected__: any, term: any) => Filter | undefined
1650
+ //Returns allowed values for role-restricted terms. Returns null for no restriction
1651
+ getRestrictedValues?: (clientAuthResult: any, termId: string) => (string | number)[] | null
1650
1652
  /** collections of dictionary terms (numeric or categorical) that are related and can be used together in some plots */
1651
1653
  termCollections?: TermCollection[]
1652
1654
  }