@zakodium/nmr-types 0.2.0 → 0.3.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.
@@ -331,7 +331,7 @@ export declare interface Integral {
331
331
  to: number;
332
332
  absolute: number;
333
333
  integral: number;
334
- kind: string;
334
+ kind: SignalKind;
335
335
  }
336
336
 
337
337
  export declare interface Integrals {
@@ -391,7 +391,7 @@ export declare type MatrixProperties = Record<string, Properties>;
391
391
 
392
392
  export declare interface NMRPeak1D extends PeakXYWidth {
393
393
  id?: string;
394
- kind?: string;
394
+ kind?: SignalKind;
395
395
  shape?: Shape1D;
396
396
  originalX?: number;
397
397
  }
@@ -402,7 +402,7 @@ export declare interface NMRRange {
402
402
  id?: string;
403
403
  assignment?: string;
404
404
  diaIDs?: string[];
405
- kind?: string;
405
+ kind?: SignalKind;
406
406
  pubIntegral?: number;
407
407
  integration?: number;
408
408
  multiplicity?: string;
@@ -415,7 +415,7 @@ export declare interface NMRSignal1D {
415
415
  js?: Jcoupling[];
416
416
  atoms?: number[];
417
417
  assignment?: string;
418
- kind?: string;
418
+ kind?: SignalKind;
419
419
  multiplicity?: string;
420
420
  diaIDs?: string[];
421
421
  nbAtoms?: number;
@@ -572,7 +572,7 @@ export declare interface ShiftXOptions {
572
572
 
573
573
  export declare interface Signal {
574
574
  id: string;
575
- kind?: string;
575
+ kind?: SignalKind;
576
576
  }
577
577
 
578
578
  export declare interface Signal1D extends Required<Pick<NMRSignal1D, ObjectKeys>>, Omit<NMRSignal1D, ObjectKeys> {
@@ -596,6 +596,8 @@ declare interface SignalAxis {
596
596
  originalDelta: number;
597
597
  }
598
598
 
599
+ export declare type SignalKind = 'unspecified' | 'unknown' | 'signal' | 'residualSolvent' | 'reference' | 'solvent' | 'impurity' | 'standard' | 'artifact' | 'p1' | 'p2' | 'p3';
600
+
599
601
  export declare interface SignalProcessingFilter extends BaseFilter {
600
602
  name: 'signalProcessing';
601
603
  value: MatrixOptions<FilterOptions>;
@@ -685,7 +687,7 @@ export declare interface Zone {
685
687
  x: ZoneAxis;
686
688
  y: ZoneAxis;
687
689
  signals: Signal2D[];
688
- kind?: string;
690
+ kind?: SignalKind;
689
691
  assignment?: string;
690
692
  }
691
693
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zakodium/nmr-types",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Types related to NMR data processing.",
5
5
  "author": "Zakodium Sàrl",
6
6
  "license": "CC-BY-NC-SA-4.0",
@@ -23,11 +23,12 @@
23
23
  "tsc": "tsc --project tsconfig.types.json"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^24.5.2",
26
+ "@types/node": "^24.7.2",
27
27
  "cheminfo-types": "^1.8.1",
28
28
  "esbuild": "^0.25.10",
29
29
  "rimraf": "^6.0.1",
30
- "vitest": "^3.2.4"
30
+ "typescript": "~5.9.3",
31
+ "vitest": "^4.0.1"
31
32
  },
32
33
  "dependencies": {
33
34
  "ml-peak-shape-generator": "^4.2.0",
@@ -37,5 +38,5 @@
37
38
  "volta": {
38
39
  "extends": "../../../package.json"
39
40
  },
40
- "gitHead": "1fe1f91e225b5c3140ff63df99a74ad8e88d87b8"
41
+ "gitHead": "9e3ff9aee0df39502b56fe15fab3d8e12d939b32"
41
42
  }