ketcher-core
Version:
Web-based molecule sketcher
52 lines (51 loc) • 3.83 kB
TypeScript
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/
import { type AromatizeData, type AromatizeResult, type AutomapData, type AutomapResult, type CalculateCipData, type CalculateCipResult, type CalculateData, type CalculateMacromoleculePropertiesData, type CalculateMacromoleculePropertiesResult, type CalculateResult, type CheckData, type CheckResult, type CleanData, type CleanResult, type ConvertData, type ConvertResult, type DearomatizeData, type DearomatizeResult, type ExplicitHydrogensData, type ExplicitHydrogensResult, type GenerateImageOptions, type InfoResult, type LayoutData, type LayoutResult, type RecognizeResult, type StructService, type StructServiceOptions } from "../../../domain/services";
export declare function pickStandardServerOptions(ketcherId: string, options?: StructServiceOptions): {
'dearomatize-on-load': string | number | boolean | undefined;
'aromaticity-model': string;
'smart-layout': string | number | boolean | undefined;
'ignore-stereochemistry-errors': string | number | boolean | undefined;
'mass-skip-error-on-pseudoatoms': string | number | boolean | undefined;
'gross-formula-add-rsites': string | number | boolean | undefined;
'gross-formula-add-isotopes': string | number | boolean | undefined;
'ignore-no-chiral-flag': any;
'aromatize-skip-superatoms': boolean;
};
export declare class RemoteStructService implements StructService {
private readonly apiPath;
private readonly defaultOptions;
private readonly customHeaders?;
private ketcherId;
constructor(apiPath: string, defaultOptions: StructServiceOptions, customHeaders?: Record<string, string>);
addKetcherId(ketcherId: string): void;
getInChIKey(struct: string): Promise<string>;
private getStandardServerOptions;
info(): Promise<InfoResult>;
convert(data: ConvertData, options?: StructServiceOptions): Promise<ConvertResult>;
layout(data: LayoutData, options?: StructServiceOptions): Promise<LayoutResult>;
clean(data: CleanData, options?: StructServiceOptions): Promise<CleanResult>;
aromatize(data: AromatizeData, options?: StructServiceOptions): Promise<AromatizeResult>;
dearomatize(data: DearomatizeData, options?: StructServiceOptions): Promise<DearomatizeResult>;
calculateCip(data: CalculateCipData, options?: StructServiceOptions): Promise<CalculateCipResult>;
automap(data: AutomapData, options?: StructServiceOptions): Promise<AutomapResult>;
check(data: CheckData, options?: StructServiceOptions): Promise<CheckResult>;
calculate(data: CalculateData, options?: StructServiceOptions): Promise<CalculateResult>;
recognize(blob: Blob, version: string): Promise<RecognizeResult>;
generateImageAsBase64(data: string, options?: GenerateImageOptions): Promise<string>;
toggleExplicitHydrogens(data: ExplicitHydrogensData, options?: StructServiceOptions): Promise<ExplicitHydrogensResult>;
calculateMacromoleculeProperties(data: CalculateMacromoleculePropertiesData, options?: StructServiceOptions): Promise<CalculateMacromoleculePropertiesResult>;
}