UNPKG

@i4mi/ionic-on-fhir

Version:

IONIC wrapper for the I4MI fhir resource library

100 lines (99 loc) 2.96 kB
import { HttpParams } from '@angular/common/http'; /** ACCORDING http://www.hl7.org/fhir/smart-app-launch/index.html */ /** * The url parameters of the oauth request * according SMART on FHIR */ export interface AuthRequest { auth_url: string; response_type: 'code'; client_id: string; redirect_uri: string; launch?: string; scope: string; state: string; aud: string; } /** * A response to successful oauth request * according SMART on FHIR */ export interface AuthResponse { state: string; access_token: string; token_type: 'Bearer'; expires_in: number; scope: string; id_token?: string; patient: string; refresh_token: string; } /** * The interface for token exchange * response --> request */ export interface TokenExchangeRequest { token_url: string; code: string; redirect_uri: string; client_id: string; } /** * The token request payload */ export interface TokenRequest { encodedParams: HttpParams | URLSearchParams; } export declare const AUTH_RES_KEY = "AUTH_RES"; export interface InAppBrowserSettings { key: InAppBrowserSettingsAll | InAppBrowserSettingsAndroid | InAppBrowserSettingsIos; value: string; } /** * Settings dok : https://github.com/apache/cordova-plugin-inappbrowser */ export declare enum InAppBrowserSettingsAll { location = "location", hidden = "hidden", beforeload = "beforeload", clearcache = "clearcache", clearsessioncache = "clearsessioncache", closebuttoncolor = "closebuttoncolor", closebuttoncaption = "closebuttoncaption", hidenavigationbuttons = "hidenavigationbuttons", navigationbuttoncolor = "navigationbuttoncolor", toolbarcolor = "toolbarcolor", mediaPlaybackRequiresUserAction = "mediaPlaybackRequiresUserAction" } /** * Settings dok : https://github.com/apache/cordova-plugin-inappbrowser */ export declare enum InAppBrowserSettingsAndroid { footer = "footer", footercolor = "footercolor", hardwareback = "hardwareback", hideurlbar = "hideurlbar", lefttoright = "lefttoright", zoom = "zoom", shouldPauseOnSuspend = "shouldPauseOnSuspend", useWideViewPort = "useWideViewPort" } /** * Settings dok : https://github.com/apache/cordova-plugin-inappbrowser */ export declare enum InAppBrowserSettingsIos { usewkwebview = "usewkwebview", cleardata = "cleardata", disallowoverscroll = "disallowoverscroll", toolbar = "toolbar", toolbartranslucent = "toolbartranslucent", lefttoright = "lefttoright", enableViewportScale = "enableViewportScale", allowInlineMediaPlayback = "allowInlineMediaPlayback", keyboardDisplayRequiresUserAction = "keyboardDisplayRequiresUserAction", suppressesIncrementalRendering = "suppressesIncrementalRendering", presentationstyle = "presentationstyle", transitionstyle = "transitionstyle", toolbarposition = "toolbarposition", hidespinner = "hidespinner" }