-
Notifications
You must be signed in to change notification settings - Fork 2
/
ionic-pro-deploy.interfaces.ts
47 lines (44 loc) · 1.3 KB
/
ionic-pro-deploy.interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Ionic Pro configuration
* appId: Application id from Ionic Pro
* channel: Deploy channel (case-sensitive)
* host: API host (default - https://api.ionicjs.com)
*/
export interface IonicProConfig {
appId?: string;
channel?: string;
host?: string;
}
/**
* IonicDeploy global variable
*
* The plugin API for the live updates feature.
*/
export interface IonicDeploy {
init: (config: IonicProConfig, success: Function, failure: Function) => void;
check: (success: Function, failure: Function) => void;
download: (success: Function, failure: Function) => void;
extract: (success: Function, failure: Function) => void;
redirect: (success: Function, failure: Function) => void;
info: (success: Function, failure: Function) => void;
getVersions: (success: Function, failure: Function) => void;
deleteVersion: (version: string, success: Function, failure: Function) => void;
parseUpdate: (jsonResponse: string | Object, success: Function, failure: Function) => void;
}
/**
* Ionic Deploy Information
*/
export interface IonicDeployInfo {
deploy_uuid: string;
channel: string;
binary_version: string;
}
/**
* Update progress
*/
export interface UpdateProgress {
/** Name of the step being completed */
step: string;
/** Percent progress for the current step */
percent: number;
}