nmr-processing 22.27.0 → 22.28.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.
- package/dist/nmr-processing.d.ts +24 -0
- package/dist/nmr-processing.js +2 -2
- package/package.json +2 -2
package/dist/nmr-processing.d.ts
CHANGED
|
@@ -1262,6 +1262,14 @@ export declare function isMolfileNotEmpty(molFile?: string): molFile is string;
|
|
|
1262
1262
|
*/
|
|
1263
1263
|
export declare function isMultiplicityValid(multiplicity: string, rejected?: OneLetterMultiplet[]): boolean;
|
|
1264
1264
|
|
|
1265
|
+
/**
|
|
1266
|
+
* Whether the prediction service refused the request because the usage quota
|
|
1267
|
+
* of the client is exhausted (HTTP 429).
|
|
1268
|
+
* @param error - Any value caught from a prediction call.
|
|
1269
|
+
* @returns `true` when the error is a rate-limit refusal.
|
|
1270
|
+
*/
|
|
1271
|
+
export declare function isPredictionRateLimitError(error: unknown): boolean;
|
|
1272
|
+
|
|
1265
1273
|
export declare function isRangeExists(range: Pick<Range_2, 'from' | 'to'>, spectrum: Entry1D, error: number): boolean;
|
|
1266
1274
|
|
|
1267
1275
|
export declare function isZoneExists(zone: Pick<Zone, 'x' | 'y'>, spectrum: Entry2D, error: Zone2DError): boolean;
|
|
@@ -2105,6 +2113,22 @@ export declare interface PredictionOptionsByExperiment {
|
|
|
2105
2113
|
hmbc?: Partial<PredictHMBCOptions>;
|
|
2106
2114
|
}
|
|
2107
2115
|
|
|
2116
|
+
/**
|
|
2117
|
+
* Error thrown when the NMR prediction web service answers with an HTTP error.
|
|
2118
|
+
*/
|
|
2119
|
+
export declare class PredictionServiceError extends Error {
|
|
2120
|
+
/**
|
|
2121
|
+
* HTTP status code returned by the prediction service.
|
|
2122
|
+
*/
|
|
2123
|
+
readonly status: number;
|
|
2124
|
+
/**
|
|
2125
|
+
* @param status - HTTP status code of the response.
|
|
2126
|
+
* @param statusText - HTTP status text, empty over HTTP/2.
|
|
2127
|
+
* @param body - Text body of the response.
|
|
2128
|
+
*/
|
|
2129
|
+
constructor(status: number, statusText: string, body: string);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2108
2132
|
/**
|
|
2109
2133
|
* A function that should make a prediction for the given molecule and return the result.
|
|
2110
2134
|
*/
|