@zakodium/nmr-types 0.0.1 → 0.1.1
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/dist/nmr-types.d.ts +24 -4
- package/package.json +5 -7
package/dist/nmr-types.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare interface BaselineCorrectionFilterOptions extends BaseFilter {
|
|
|
99
99
|
value: BaselineCorrectionOptions;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export declare type BaselineCorrectionOptions = PolynomialOptions | AirplsOptions;
|
|
102
|
+
export declare type BaselineCorrectionOptions = PolynomialOptions | AirplsOptions | WhittakerOptions | BernsteinOptions | CubicOptions;
|
|
103
103
|
|
|
104
104
|
export declare interface BaselineCorrectionZone {
|
|
105
105
|
from: number;
|
|
@@ -111,12 +111,26 @@ export declare interface BasePeak {
|
|
|
111
111
|
id: string;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
export declare interface BernsteinOptions {
|
|
115
|
+
algorithm: 'bernstein';
|
|
116
|
+
degree: number;
|
|
117
|
+
maxIterations?: number;
|
|
118
|
+
tolerance?: number;
|
|
119
|
+
factorStd?: number;
|
|
120
|
+
learningRate?: number;
|
|
121
|
+
minWeight?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
114
124
|
declare interface BooleanField extends Field<boolean> {
|
|
115
125
|
type: 'boolean';
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
declare type CommonField = SelectField | StringField | NumberField | BooleanField | LabelField;
|
|
119
129
|
|
|
130
|
+
export declare interface CubicOptions {
|
|
131
|
+
algorithm: 'cubic';
|
|
132
|
+
}
|
|
133
|
+
|
|
120
134
|
export declare interface DigitalFilter2DOptions extends BaseFilter {
|
|
121
135
|
name: 'digitalFilter2D';
|
|
122
136
|
value: DigitalFilterOptions_2;
|
|
@@ -496,7 +510,7 @@ export declare interface PolynomialOptions {
|
|
|
496
510
|
|
|
497
511
|
declare type Properties = ListField | SelectField | StringField | NumberField | BooleanField | LabelField;
|
|
498
512
|
|
|
499
|
-
declare interface
|
|
513
|
+
export declare interface Range extends Omit<NMRRange, 'signals' | 'id'> {
|
|
500
514
|
id: string;
|
|
501
515
|
originalFrom?: number;
|
|
502
516
|
originalTo?: number;
|
|
@@ -505,10 +519,9 @@ declare interface Range_2 extends Omit<NMRRange, 'signals' | 'id'> {
|
|
|
505
519
|
integration: number;
|
|
506
520
|
nbAtoms?: number;
|
|
507
521
|
}
|
|
508
|
-
export { Range_2 as Range }
|
|
509
522
|
|
|
510
523
|
export declare interface Ranges {
|
|
511
|
-
values:
|
|
524
|
+
values: Range[];
|
|
512
525
|
options: SumOptions;
|
|
513
526
|
}
|
|
514
527
|
|
|
@@ -641,6 +654,13 @@ export declare interface TrafOptions {
|
|
|
641
654
|
lineBroadening: number;
|
|
642
655
|
}
|
|
643
656
|
|
|
657
|
+
export declare interface WhittakerOptions {
|
|
658
|
+
algorithm: 'whittaker';
|
|
659
|
+
lambda?: number;
|
|
660
|
+
scale?: number;
|
|
661
|
+
maxIterations?: number;
|
|
662
|
+
}
|
|
663
|
+
|
|
644
664
|
export declare interface ZeroFillingDimension1Options extends BaseFilter {
|
|
645
665
|
name: 'zeroFillingDimension1';
|
|
646
666
|
value: ZeroFillingOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/nmr-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Types related to NMR data processing.",
|
|
5
5
|
"author": "Zakodium Sàrl",
|
|
6
6
|
"license": "CC-BY-NC-SA-4.0",
|
|
@@ -18,21 +18,19 @@
|
|
|
18
18
|
"bundle": "node scripts/esbuild.js && npm run bundle-types",
|
|
19
19
|
"bundle-types": "npm run tsc && yarn g:api-extractor",
|
|
20
20
|
"clean": "rimraf types dist coverage",
|
|
21
|
-
"dev:eslint-fix": "eslint --cache --fix $(git diff --name-only --relative) --quiet",
|
|
22
21
|
"prepack": "npm run clean && npm run bundle",
|
|
23
|
-
"dev:prettier-write": "prettier --write $(git diff --name-only --relative)",
|
|
24
22
|
"test": "yarn g:test-only && yarn g:check-types && yarn g:eslint && yarn g:prettier",
|
|
25
23
|
"tsc": "tsc --project tsconfig.types.json"
|
|
26
24
|
},
|
|
27
25
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^24.2.0",
|
|
29
27
|
"cheminfo-types": "^1.8.1",
|
|
30
|
-
"esbuild": "^0.25.
|
|
28
|
+
"esbuild": "^0.25.8",
|
|
31
29
|
"rimraf": "^6.0.1",
|
|
32
|
-
"vitest": "^3.
|
|
30
|
+
"vitest": "^3.2.4"
|
|
33
31
|
},
|
|
34
32
|
"dependencies": {
|
|
35
|
-
"ml-peak-shape-generator": "^4.
|
|
33
|
+
"ml-peak-shape-generator": "^4.2.0",
|
|
36
34
|
"ml-signal-processing": "^2.0.0"
|
|
37
35
|
},
|
|
38
36
|
"volta": {
|