-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from marverix/master
Add /users/id/device-time-summary
- Loading branch information
Showing
65 changed files
with
4,254 additions
and
1,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 4% | ||
Firefox ESR | ||
not dead |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import './finka'; | ||
import ApiConfig from './ApiConfig'; | ||
import { AxiosInstance } from 'axios'; | ||
import APIList from './api/APIList'; | ||
import APIListDevices from './api/APIListDevices'; | ||
import APIListUsers from './api/APIListUsers'; | ||
import APIResourceUser from './api/APIResourceUser'; | ||
import APIResourceDevice from './api/APIResourceDevice'; | ||
import APIResourceDeviceGroup from './api/APIResourceDeviceGroup'; | ||
import APIResourceUserSession from './api/APIResourceUserSession'; | ||
import APIResourceAccessGroup from './api/APIResourceAccessGroup'; | ||
import APIAdminResource from './api/APIAdminResource'; | ||
import APIResourceAccount from "./api/APIResourceAccount"; | ||
declare class API { | ||
private config; | ||
private axiosConfig; | ||
axios: AxiosInstance; | ||
constructor(config: ApiConfig); | ||
userSession(): APIResourceUserSession; | ||
user(id: number | 'me'): APIResourceUser; | ||
users(): APIListUsers; | ||
me(): APIResourceUser; | ||
admin(): APIAdminResource; | ||
devices(): APIListDevices; | ||
device(id: number): APIResourceDevice; | ||
deviceGroups(): APIList; | ||
deviceGroup(id: number): APIResourceDeviceGroup; | ||
labelGroups(): APIList; | ||
deviceStatistics(): APIList; | ||
accessGroups(): APIList; | ||
accessGroup(id: number): APIResourceAccessGroup; | ||
account(id: number): APIResourceAccount; | ||
} | ||
export default API; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { AxiosBasicCredentials } from 'axios'; | ||
interface ApiConfig { | ||
baseURL: string; | ||
cloudUrl?: string; | ||
v2?: boolean; | ||
apiKey?: string; | ||
auth?: AxiosBasicCredentials; | ||
} | ||
export default ApiConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import API from './API'; | ||
import FilterBuilder from './FilterBuilder'; | ||
declare const CloudAPIClient: { | ||
API: typeof API; | ||
FilterBuilder: typeof FilterBuilder; | ||
}; | ||
export default CloudAPIClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare class Filter { | ||
name: string; | ||
value: any; | ||
operand: string; | ||
constructor(name: string, value: any, operand: string); | ||
} | ||
export default Filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import './finka'; | ||
import Filter from './Filter'; | ||
declare class FilterBuilder { | ||
private filters; | ||
constructor(); | ||
private add; | ||
gt(name: string, value: number): FilterBuilder; | ||
lt(name: string, value: number): FilterBuilder; | ||
after(name: string, value: Date | number): FilterBuilder; | ||
afterorequal(name: string, value: Date | number): FilterBuilder; | ||
before(name: string, value: Date | number): FilterBuilder; | ||
beforeorequal(name: string, value: Date | number): FilterBuilder; | ||
on(name: string, value: any): FilterBuilder; | ||
eq(name: string, value: any): FilterBuilder; | ||
contains(name: string, value: string): FilterBuilder; | ||
like(name: string, value: string): FilterBuilder; | ||
isnull(name: string): FilterBuilder; | ||
in(name: string, value: Array<any>): FilterBuilder; | ||
notin(name: string, value: Array<any>): FilterBuilder; | ||
raw(filter: Filter): void; | ||
isFilterPart(str: string): boolean; | ||
toString(): string; | ||
} | ||
export default FilterBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIList from './APIList'; | ||
declare class APIAdminListNotificationPlans extends APIList { | ||
constructor(parent: object); | ||
channels(): APIList; | ||
scopes(): APIList; | ||
} | ||
export default APIAdminListNotificationPlans; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import APIList from './APIList'; | ||
import APIResource from './APIResource'; | ||
import APIResourceFile from './APIResourceFile'; | ||
import APIAdminResourceCluster from './APIAdminResourceCluster'; | ||
import APIAdminResourceDeviceTime from './APIAdminResourceDeviceTime'; | ||
import APIAdminResourceRun from './APIAdminResourceRun'; | ||
import APIAdminResourceDevice from './APIAdminResourceDevice'; | ||
import APIAdminResourceDeviceSession from './APIAdminResourceDeviceSession'; | ||
import APIResourceProject from './APIResourceProject'; | ||
declare class APIAdminResource extends APIResource { | ||
constructor(parent: object); | ||
private withAdmin; | ||
clusters(): APIList; | ||
cluster(id: number): APIAdminResourceCluster; | ||
devices(): APIList; | ||
device(id: number): APIAdminResourceDevice; | ||
deviceModels(): APIList; | ||
deviceModel(id: number): APIResource; | ||
deviceSessions(): APIList; | ||
deviceSession(id: number): APIAdminResourceDeviceSession; | ||
deviceStatuses(): APIList; | ||
deviceTime(): APIAdminResourceDeviceTime; | ||
interactiveQueue(): APIList; | ||
files(): APIList; | ||
file(id: number): APIResourceFile; | ||
overview(): APIResource; | ||
projects(): APIList; | ||
project(id: number): APIResourceProject; | ||
runs(): APIList; | ||
run(id: number): APIAdminResourceRun; | ||
users(): APIList; | ||
} | ||
export default APIAdminResource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceCluster extends APIResource { | ||
constructor(parent: object, id: number); | ||
devices(): APIList; | ||
} | ||
export default APIAdminResourceCluster; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceDevice extends APIResource { | ||
constructor(parent: object, id: number); | ||
queue(): APIList; | ||
} | ||
export default APIAdminResourceDevice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
import InputFileset from './extra-class/InputFileset'; | ||
import OutputFileset from './extra-class/OutputFileset'; | ||
declare class APIAdminResourceDeviceSession extends APIResource { | ||
constructor(parent: object, id: number); | ||
changeBillable(): APIResource; | ||
connections(): APIList; | ||
connection(id: number): APIResource; | ||
input(): InputFileset; | ||
output(): OutputFileset; | ||
release(): APIResource; | ||
screenshots(): APIList; | ||
screenshot(id: number): APIResource; | ||
steps(): APIList; | ||
step(id: number | 'current'): APIResource; | ||
currentStep(): APIResource; | ||
testCaseRuns(): APIList; | ||
} | ||
export default APIAdminResourceDeviceSession; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceDeviceTime extends APIResource { | ||
constructor(parent: object); | ||
countSessionReport(): APIList; | ||
stepTimeReport(): APIList; | ||
} | ||
export default APIAdminResourceDeviceTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceFramework extends APIResource { | ||
constructor(parent: object, id: number); | ||
config(): APIResource; | ||
requiredRoles(): APIList; | ||
} | ||
export default APIAdminResourceFramework; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceNotificationPlan extends APIResource { | ||
constructor(parent: object, id: number); | ||
check(): APIList; | ||
test(): APIResource; | ||
execute(): APIResource; | ||
} | ||
export default APIAdminResourceNotificationPlan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import APIResource from './APIResource'; | ||
import APIResourceProject from './APIResourceProject'; | ||
declare class APIAdminResourceProject extends APIResourceProject { | ||
unarchive(): APIResource; | ||
} | ||
export default APIAdminResourceProject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import APIList from './APIList'; | ||
import APIResource from './APIResource'; | ||
import APIResourceRun from './APIResourceRun'; | ||
declare class APIAdminResourceRun extends APIResourceRun { | ||
abort(): APIResource; | ||
retry(ids?: Array<number>): APIResource; | ||
changeBillable(): APIResource; | ||
changePriority(): APIResource; | ||
screenshotNames(): APIList; | ||
screenshots(): APIList; | ||
dataAvailability(): APIList; | ||
buildLogsZip(ids?: Array<number>): APIResource; | ||
logsZip(): APIResource; | ||
performanceZip(): APIResource; | ||
screenshotsZip(): APIResource; | ||
} | ||
export default APIAdminResourceRun; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceService extends APIResource { | ||
constructor(parent: object, id: number); | ||
activate(): APIResource; | ||
deactivate(): APIResource; | ||
roles(): APIList; | ||
} | ||
export default APIAdminResourceService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import APIResource from './APIResource'; | ||
import APIList from './APIList'; | ||
declare class APIAdminResourceUser extends APIResource { | ||
constructor(parent: object, id: number); | ||
accountRoles(): APIList; | ||
accountRole(): APIResource; | ||
accountServices(): APIList; | ||
disable(): APIResource; | ||
enable(): APIResource; | ||
licenses(): APIList; | ||
resendActivation(): APIResource; | ||
updateAccount(): APIResource; | ||
} | ||
export default APIAdminResourceUser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { AxiosRequestConfig, Method } from 'axios'; | ||
declare class APIEntity { | ||
stack: Array<string | number>; | ||
protected requestConfig: AxiosRequestConfig; | ||
root: object; | ||
constructor(parent: APIEntity | object); | ||
push(...items: Array<string | number>): this; | ||
pop(): this; | ||
toUrl(absolute?: boolean): string; | ||
setRequestConfig(requestConfig: AxiosRequestConfig): this; | ||
removeRequestConfig(key: string): this; | ||
headers(headers: object): this; | ||
method(name: Method): this; | ||
get(): this; | ||
post(): this; | ||
params(params: object): this; | ||
getParams(): any; | ||
removeParam(key: string): this; | ||
data(data: object): this; | ||
jsonData(data: object): this; | ||
formData(data: FormData): this; | ||
private paramsSerializer; | ||
send(): any; | ||
} | ||
export default APIEntity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import APIEntity from './APIEntity'; | ||
import FilterBuilder from '../FilterBuilder'; | ||
declare enum APIOrder { | ||
'asc' = "a", | ||
'desc' = "d" | ||
} | ||
declare class APIList extends APIEntity { | ||
create(data: object): any; | ||
sort(name: string, order?: APIOrder): this; | ||
limit(limit?: number): this; | ||
getLimit(): any; | ||
noLimit(): this; | ||
offset(offset?: number): this; | ||
between(from: number, to: number): this; | ||
only(idx: number): this; | ||
page(page?: number): this; | ||
search(query: string): this; | ||
filter(filter: FilterBuilder | string): this; | ||
} | ||
interface APIList { | ||
all: typeof APIList.prototype.noLimit; | ||
cut: typeof APIList.prototype.between; | ||
} | ||
export default APIList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIList from './APIList'; | ||
declare class APIListDeviceTime extends APIList { | ||
constructor(parent: object); | ||
reserved(): APIList; | ||
used(): APIList; | ||
} | ||
export default APIListDeviceTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import APIList from './APIList'; | ||
import APIResource from './APIResource'; | ||
declare class APIListDevices extends APIList { | ||
constructor(parent: object); | ||
filters(): APIResource; | ||
cleanupConfigurations(): APIList; | ||
cleanupConfiguration(id: number): APIResource; | ||
} | ||
export default APIListDevices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import APIList from './APIList'; | ||
interface UploadObj { | ||
dir: string; | ||
filename: string; | ||
} | ||
declare class APIListFiles extends APIList { | ||
constructor(parent: object); | ||
upload(obj: UploadObj): void; | ||
} | ||
export default APIListFiles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIList from './APIList'; | ||
declare class APIListNotifications extends APIList { | ||
constructor(parent: object); | ||
scopes(): APIList; | ||
channels(): APIList; | ||
} | ||
export default APIListNotifications; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import APIList from './APIList'; | ||
declare class APIListProperties extends APIList { | ||
constructor(parent: object); | ||
appBan(id: number): void; | ||
} | ||
export default APIListProperties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import APIList from './APIList'; | ||
declare class APIListPurchased extends APIList { | ||
constructor(parent: object); | ||
} | ||
export default APIListPurchased; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import APIList from './APIList'; | ||
import APIResource from './APIResource'; | ||
declare class APIListRuns extends APIList { | ||
constructor(parent: object); | ||
config(): APIResource; | ||
} | ||
export default APIListRuns; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import APIList from './APIList'; | ||
import APIListPurchased from './APIListPurchased'; | ||
declare class APIListServices extends APIList { | ||
constructor(parent: object); | ||
purchased(): APIListPurchased; | ||
available(): void; | ||
} | ||
export default APIListServices; |
Oops, something went wrong.