diff --git a/package.json b/package.json index 8d5d5e32c57c2edcdf552d9f11332693e417fe29..7dbad3a985783eb17ec7c23e7ba42a7da4f4ace9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@edata-portal/icat-plus-api", "private": false, - "version": "0.1.0", + "version": "0.1.1", "type": "module", "main": "./src/index.ts", "module": "./src/index.ts", diff --git a/src/api/models/preferences.ts b/src/api/models/preferences.ts index da6c304d19877bccd2f75d8776496c4332662793..025e93f90c1fd8e361bdc281dda3e39f15fc87f2 100644 --- a/src/api/models/preferences.ts +++ b/src/api/models/preferences.ts @@ -11,8 +11,25 @@ export type MXSettings = { autoProcessingRankingShell: string; autoProcessingRankingParameter: string; scanTypeFilters: string[]; + cutoffs?: { + [key in (typeof MX_SETTINGS_CUTOFF_STATS)[number]]?: { + [key in (typeof MX_SETTINGS_CUTOFF_SHELLS)[number]]?: number; + }; + }; }; +export const MX_SETTINGS_CUTOFF_STATS = [ + 'completeness', + 'resolution_limit_low', + 'resolution_limit_high', + 'r_merge', + 'mean_I_over_sigI', + 'cc_half', + 'cc_ano', +] as const; + +export const MX_SETTINGS_CUTOFF_SHELLS = ['inner', 'outer', 'overall'] as const; + export type RecentlyVisitedObject = { url: string; label: string;