ApiService
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Returns ApiService
Properties
publicstaticRuntimeConfig
Accessors
accessToken
Returns string
authenticated
Returns boolean
tokenLifetime
Returns number
staticInstance
Returns ApiService
Methods
publicclearLayout
Parameters
layoutName: string
Returns Promise<any>
publicclearPreferences
Parameters
keys: string[]
Returns Promise<any>
publicclearSnippet
Parameters
snippetName: string
Returns Promise<any>
publicclearWorkspace
Parameters
workspaceName: string
Returns Promise<any>
publicgetLayouts
Returns Promise<{}>
publicgetPreferences
Returns Promise<any>
publicgetSharedWorkspaceKey
Parameters
workspaceId: string
Returns Promise<string>
publicgetSnippets
Returns Promise<Map<string, Snippet>>
publicgetWorkspace
Parameters
name: string
isKey: boolean = false
Returns Promise<Workspace>
publicgetWorkspaceList
Returns Promise<WorkspaceListItem[]>
publiclogout
Returns Promise<void>
publicsetLayout
Parameters
layoutName: string
layout: any
Returns Promise<boolean>
publicsetPreference
Parameters
key: string
value: any
Returns Promise<any>
publicsetPreferences
Parameters
preferences: any
Returns Promise<any>
publicsetSnippet
Parameters
snippetName: string
snippet: Snippet
Returns Promise<any>
setToken
Parameters
tokenString: string
tokenLifetime: number = Number.MAX_VALUE
Returns boolean
publicsetWorkspace
Parameters
workspaceName: string
workspace: Workspace
Returns Promise<Workspace>
publicstopServer
Returns Promise<void>
publicstaticSetRuntimeConfig
Parameters
data: any
Returns void