UNPKG

fsm-sdk

Version:

Node.JS sdk to interface with SAP Field Service Management APIs.

33 lines (32 loc) 1.56 kB
import { ClientConfig } from '../client-config.model'; import { HttpService } from '../http/http-service'; import { OAuthService } from '../oauth/oauth.service'; import { LabelTranslationDto, PageDto, ValueTranslationDataDto, ValueTranslationDto } from './translations.model'; declare type RSQLFilter = string; declare type RSQLSorter = string; export declare class TranslationApiService { private _config; private _http; private _auth; constructor(_config: Readonly<ClientConfig>, _http: Readonly<HttpService>, _auth: Readonly<OAuthService>); private getApiUrl; getLabels(params?: Partial<{ filter: RSQLFilter; size: number; page: number; sort: RSQLSorter; }>): Promise<PageDto<LabelTranslationDto> | null>; postLabel(data: Partial<LabelTranslationDto>): Promise<LabelTranslationDto | null>; putLabel(data: Partial<LabelTranslationDto>): Promise<LabelTranslationDto | null>; deleteLabel(id: string): Promise<"" | null>; getValues(params?: Partial<{ filter: RSQLFilter; size: number; page: number; sort: RSQLSorter; }>): Promise<PageDto<ValueTranslationDto<ValueTranslationDataDto>> | null>; postValue(data: Partial<ValueTranslationDto<Partial<ValueTranslationDataDto>>>): Promise<ValueTranslationDto<ValueTranslationDataDto> | null>; putValue(data: Partial<ValueTranslationDto<Partial<ValueTranslationDataDto>>>): Promise<ValueTranslationDto<ValueTranslationDataDto> | null>; deleteValue(id: string): Promise<"" | null>; } export {};