UNPKG

dynamicsmobile

Version:

Allows development of off-line mobile and web business apps over the Dynamics Mobile platform. More info on https://www.dynamicsmobile.com

24 lines (23 loc) 1.05 kB
import { DmsApplicationService } from '../lib-core/application-context-service'; export type ApiError = { message: string; statusCode: string; }; export declare class DmsAPIWrapper { protected dms: DmsApplicationService; static globalAjaxTimeoutMiliseconds: number; static _baseAPIUrl: string; static _isSandbox(): boolean; static executeApiRequest(appArea: string, apiUrlPath: string, method: string, authToken: string, contentType?: string, data?: any, responseType?: string): Promise<any>; static getCookie(name: string): string; static getAuthroizationToken(): string; constructor(dms: DmsApplicationService); static getUsername(): string | null; static getApparea(): Promise<string>; processApiError(err: any, doNotNavigateToLogin?: boolean): ApiError; private getAuthVersion; clearAccessTokens(): void; logOut(): Promise<void>; login(appArea: string, userName: string, password: string): Promise<void>; loginanonymous(appArea: string, appCode: string): Promise<void>; }