-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.ts
More file actions
82 lines (79 loc) · 1.46 KB
/
db.ts
File metadata and controls
82 lines (79 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export interface SampleTocEntry {
mf: string;
mw: number;
keyword: string[];
meta: Record<string, unknown>;
title: string;
nbNmr: number;
nbIR: number;
nbRaman: number;
nbMass: number;
nb1d: number;
nb2d: number;
nb1h: number;
nb13c: number;
nbTGA: number;
nbDSC: number;
nbXRD: number;
nbXPS: number;
nbUV: number;
nbChromatogram: number;
nbXray: number;
nbNucleic: number;
nbPeptidic: number;
modificationDate: number;
b64ShortId: string;
hidden: boolean;
names: string[];
reference: string;
}
export type SampleEntryId = [string, string];
export interface SampleEntry {
_id: string;
_rev: string;
$type: 'entry';
$id: SampleEntryId;
$kind: 'sample';
$owners: string[];
$content: SampleEntryContent;
}
export interface SampleEntryContent {
general: {
title?: string;
name?: Array<{ value: string }>;
mf: string;
mw: number;
em: number;
molfile: string;
ocl: {
value: string;
coordinates: string;
index: number[];
};
};
identifier: {
cas: Array<{ value: string }>;
};
spectra: {
nmr: SampleEntrySpectraNmr[];
};
}
export interface SampleEntrySpectraNmr {
dimension: number;
nucleus: string[];
isFid: boolean;
isFt: boolean;
title: string;
solvent: string;
pulse: string;
experiment: string;
temperature: number;
frequency: number;
type: string;
date: string;
range: unknown[];
jcamp: {
filename: string;
};
nmrium: any;
}