nmr-processing 22.26.1 → 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.
@@ -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;
@@ -1686,6 +1694,15 @@ declare interface OptionsXYAutoRangesPickingCarbonDecoupled {
1686
1694
  identifyImpurities?: boolean;
1687
1695
  ranges?: OptionsPeaksToRanges;
1688
1696
  logger?: Logger;
1697
+ /**
1698
+ * Picks the regions outside the solvent window on their own, so their
1699
+ * threshold is relative to a local maximum instead of to the global one.
1700
+ * Without it, a solvent signal that is much more intense than the sample
1701
+ * signals makes `xyAutoPeaksPicking` discard all of them. It needs a known
1702
+ * solvent, either in `impurities.solvent` or in `ranges.solvent`.
1703
+ * @default true
1704
+ */
1705
+ localDynamicRange?: boolean;
1689
1706
  }
1690
1707
 
1691
1708
  declare interface OptionsXYAutoRangesPickingDefault {
@@ -2096,6 +2113,22 @@ export declare interface PredictionOptionsByExperiment {
2096
2113
  hmbc?: Partial<PredictHMBCOptions>;
2097
2114
  }
2098
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
+
2099
2132
  /**
2100
2133
  * A function that should make a prediction for the given molecule and return the result.
2101
2134
  */