@bitbar/cloud-api-client 1.4.15 → 1.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/APIAdminListRuns.d.ts +2 -2
- package/dist/api/APIAdminResourceAccount.d.ts +4 -2
- package/dist/api/APIListRuns.d.ts +2 -3
- package/dist/api/models/Account.d.ts +43 -0
- package/dist/api/models/AdminTestRun.d.ts +0 -5
- package/dist/api/models/Role.d.ts +1 -1
- package/dist/api/models/TestRun.d.ts +11 -6
- package/dist/bitbar-cloud-api-client.js +26 -2
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +2 -2
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,8 +2,8 @@ import { Method } from 'axios';
|
|
|
2
2
|
import { APIAdminResource } from './APIAdminResource';
|
|
3
3
|
import { APIList } from './APIList';
|
|
4
4
|
import { APIResource } from './APIResource';
|
|
5
|
-
import { AdminTestRun
|
|
6
|
-
import { TestRunConfig } from './models/TestRun';
|
|
5
|
+
import { AdminTestRun } from './models/AdminTestRun';
|
|
6
|
+
import { RunsConfigParams, TestRunConfig } from './models/TestRun';
|
|
7
7
|
export declare class APIAdminListRuns extends APIList<AdminTestRun> {
|
|
8
8
|
protected ALLOWED_HTTP_METHODS: Array<Method>;
|
|
9
9
|
constructor(parent: APIAdminResource);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIAdminResource } from './APIAdminResource';
|
|
2
2
|
import { APIList } from './APIList';
|
|
3
3
|
import { APIResource } from './APIResource';
|
|
4
|
-
import { Account } from './models/Account';
|
|
5
|
-
import { NoData, NoQueryParams } from './models/HTTP';
|
|
4
|
+
import { Account, AccountUsage, AccountUsageParams, AccountUsageSummary, AccountUsageSummaryParams } from './models/Account';
|
|
5
|
+
import { NoData, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
|
|
6
6
|
import { Role, RoleData, RoleParams } from './models/Role';
|
|
7
7
|
import { AccountService } from './models/AccountService';
|
|
8
8
|
import { AccountPreferences } from './models/AccountPreference';
|
|
@@ -12,5 +12,7 @@ export declare class APIAdminResourceAccount extends APIResource<Account, NoQuer
|
|
|
12
12
|
role(id: number): APIResource<Role, RoleParams, void>;
|
|
13
13
|
accountServices(): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
|
|
14
14
|
preferences(): APIResource<AccountPreferences, NoQueryParams, Partial<Omit<AccountPreferences, "id">>>;
|
|
15
|
+
usage(): APIList<SimpleCollectionResponse<AccountUsage>, AccountUsageParams, any>;
|
|
16
|
+
usageSummary(): APIResource<AccountUsageSummary, AccountUsageSummaryParams, AccountUsageSummaryParams>;
|
|
15
17
|
}
|
|
16
18
|
export default APIAdminResourceAccount;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { APIList } from './APIList';
|
|
2
2
|
import { APIResource } from './APIResource';
|
|
3
3
|
import { APIResourceUser } from './APIResourceUser';
|
|
4
|
-
import {
|
|
5
|
-
import { TestRun, TestRunConfig, TestRunsConfigData, TestRunsData, TestRunsQueryParams } from './models/TestRun';
|
|
4
|
+
import { RunsConfigParams, TestRun, TestRunConfig, TestRunsConfigData, TestRunsData, TestRunsQueryParams } from './models/TestRun';
|
|
6
5
|
export declare class APIListRuns extends APIList<TestRun, TestRunsQueryParams, TestRunsData> {
|
|
7
6
|
constructor(parent: APIResourceUser);
|
|
8
|
-
config(): APIResource<TestRunConfig,
|
|
7
|
+
config(): APIResource<TestRunConfig, RunsConfigParams, TestRunsConfigData>;
|
|
9
8
|
}
|
|
10
9
|
export default APIListRuns;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
1
2
|
export type Account = {
|
|
2
3
|
activeServiceName: string;
|
|
3
4
|
comment: string;
|
|
@@ -24,3 +25,45 @@ export type AccountData = Partial<{
|
|
|
24
25
|
slmOrganizationId: string;
|
|
25
26
|
userName: string;
|
|
26
27
|
}>;
|
|
28
|
+
export type AccountUsageSummary = {
|
|
29
|
+
sessionsCount: number;
|
|
30
|
+
duration: number;
|
|
31
|
+
deviceModelsCount: number;
|
|
32
|
+
tunnelEnabledCount: number;
|
|
33
|
+
osVersionsCount: number;
|
|
34
|
+
projectsCount: number;
|
|
35
|
+
usersCount: number;
|
|
36
|
+
};
|
|
37
|
+
export type AccountUsage = {
|
|
38
|
+
timestamp: number;
|
|
39
|
+
timestampLabel: string;
|
|
40
|
+
sessionsCount: number;
|
|
41
|
+
automatedConcurrency: number;
|
|
42
|
+
automatedUsage: number;
|
|
43
|
+
dedicatedConcurrency: number;
|
|
44
|
+
dedicatedUsage: number;
|
|
45
|
+
manualConcurrency: number;
|
|
46
|
+
manualUsage: number;
|
|
47
|
+
};
|
|
48
|
+
export declare enum UtilizationType {
|
|
49
|
+
ALL = "all",
|
|
50
|
+
PUBLIC = "public",
|
|
51
|
+
DEDICATED = "dedicated"
|
|
52
|
+
}
|
|
53
|
+
export declare enum SessionType {
|
|
54
|
+
ALL = "all",
|
|
55
|
+
AUTOMATED = "automated",
|
|
56
|
+
MANUAL = "manual"
|
|
57
|
+
}
|
|
58
|
+
export declare enum TimeResolution {
|
|
59
|
+
HOUR = "hour",
|
|
60
|
+
DAY = "day"
|
|
61
|
+
}
|
|
62
|
+
export type AccountUsageParams = CollectionQueryParams & {
|
|
63
|
+
grouping?: TimeResolution;
|
|
64
|
+
sessionType?: SessionType;
|
|
65
|
+
utilizationType?: UtilizationType;
|
|
66
|
+
};
|
|
67
|
+
export type AccountUsageSummaryParams = CollectionQueryParams & {
|
|
68
|
+
grouping?: TimeResolution;
|
|
69
|
+
};
|
|
@@ -20,11 +20,6 @@ export type AdminTestRun = {
|
|
|
20
20
|
testRunName: string;
|
|
21
21
|
userName: string;
|
|
22
22
|
};
|
|
23
|
-
export interface RunsConfigParams extends QueryParams {
|
|
24
|
-
includeDeviceGroups: boolean;
|
|
25
|
-
includeDevices: boolean;
|
|
26
|
-
includeFrameworks: boolean;
|
|
27
|
-
}
|
|
28
23
|
export interface RunChangeBillableParams extends QueryParams {
|
|
29
24
|
billable: boolean;
|
|
30
25
|
}
|
|
@@ -64,6 +64,12 @@ export declare enum TestRunConfigFileAction {
|
|
|
64
64
|
INSTALL = "INSTALL",
|
|
65
65
|
RUN_TEST = "RUN_TEST"
|
|
66
66
|
}
|
|
67
|
+
export type TestRunConfigFile = {
|
|
68
|
+
action: TestRunConfigFileAction;
|
|
69
|
+
availableActions: Array<TestRunConfigFileAction>;
|
|
70
|
+
file: UserFile;
|
|
71
|
+
id: number;
|
|
72
|
+
};
|
|
67
73
|
export type TestRunConfig = {
|
|
68
74
|
appCrawlerRun: boolean;
|
|
69
75
|
appiumBrokerAddress: string;
|
|
@@ -73,6 +79,7 @@ export type TestRunConfig = {
|
|
|
73
79
|
availableDevices: Array<Device>;
|
|
74
80
|
availableFrameworks: any;
|
|
75
81
|
availableOsTypes: Array<OsType>;
|
|
82
|
+
biometricInstrumentation: boolean;
|
|
76
83
|
clientSideTestConfig: any;
|
|
77
84
|
computedDevices: Array<number>;
|
|
78
85
|
creditsPrice: number;
|
|
@@ -81,11 +88,7 @@ export type TestRunConfig = {
|
|
|
81
88
|
deviceLanguageCode: string;
|
|
82
89
|
deviceNamePattern: string;
|
|
83
90
|
disableResigning: boolean;
|
|
84
|
-
files: Array<
|
|
85
|
-
action: TestRunConfigFileAction;
|
|
86
|
-
availableActions: Array<TestRunConfigFileAction>;
|
|
87
|
-
file: UserFile;
|
|
88
|
-
}>;
|
|
91
|
+
files: Array<TestRunConfigFile> | null;
|
|
89
92
|
frameworkId: number;
|
|
90
93
|
hookURL: string;
|
|
91
94
|
id: number;
|
|
@@ -130,11 +133,13 @@ export interface RunQueryParam extends QueryParams {
|
|
|
130
133
|
export interface TestRunsData {
|
|
131
134
|
configuration: TestRunConfig;
|
|
132
135
|
}
|
|
133
|
-
export interface
|
|
136
|
+
export interface TestRunsIncludes {
|
|
134
137
|
includeDeviceGroups: boolean;
|
|
135
138
|
includeDevices: boolean;
|
|
136
139
|
includeFrameworks: boolean;
|
|
137
140
|
}
|
|
141
|
+
export type RunsConfigParams = TestRunsIncludes & QueryParams;
|
|
142
|
+
export type TestRunsConfigData = TestRunsIncludes & TestRunsData;
|
|
138
143
|
export interface TestRunsQueryParams extends CollectionBasicQueryParams {
|
|
139
144
|
forWholeAccount: boolean;
|
|
140
145
|
skipCommonProject: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.4.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.4.17 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global["@bitbar/finka"], global.qs, global["node-abort-controller"]));
|
|
6
6
|
})(this, (function (exports, finka, qs, nodeAbortController) { 'use strict';
|
|
7
7
|
|
|
8
|
-
var version = "1.4.
|
|
8
|
+
var version = "1.4.17";
|
|
9
9
|
|
|
10
10
|
/******************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -545,6 +545,12 @@
|
|
|
545
545
|
preferences() {
|
|
546
546
|
return new APIResource(this).push('preferences');
|
|
547
547
|
}
|
|
548
|
+
usage() {
|
|
549
|
+
return new APIList(this).push('usage');
|
|
550
|
+
}
|
|
551
|
+
usageSummary() {
|
|
552
|
+
return new APIResource(this).push('usage-summary');
|
|
553
|
+
}
|
|
548
554
|
}
|
|
549
555
|
|
|
550
556
|
class APIAdminResourceAccountService extends APIResource {
|
|
@@ -1931,6 +1937,24 @@
|
|
|
1931
1937
|
AccessGroupScope["GLOBAL"] = "GLOBAL";
|
|
1932
1938
|
})(exports.AccessGroupScope || (exports.AccessGroupScope = {}));
|
|
1933
1939
|
|
|
1940
|
+
exports.UtilizationType = void 0;
|
|
1941
|
+
(function (UtilizationType) {
|
|
1942
|
+
UtilizationType["ALL"] = "all";
|
|
1943
|
+
UtilizationType["PUBLIC"] = "public";
|
|
1944
|
+
UtilizationType["DEDICATED"] = "dedicated";
|
|
1945
|
+
})(exports.UtilizationType || (exports.UtilizationType = {}));
|
|
1946
|
+
exports.SessionType = void 0;
|
|
1947
|
+
(function (SessionType) {
|
|
1948
|
+
SessionType["ALL"] = "all";
|
|
1949
|
+
SessionType["AUTOMATED"] = "automated";
|
|
1950
|
+
SessionType["MANUAL"] = "manual";
|
|
1951
|
+
})(exports.SessionType || (exports.SessionType = {}));
|
|
1952
|
+
exports.TimeResolution = void 0;
|
|
1953
|
+
(function (TimeResolution) {
|
|
1954
|
+
TimeResolution["HOUR"] = "hour";
|
|
1955
|
+
TimeResolution["DAY"] = "day";
|
|
1956
|
+
})(exports.TimeResolution || (exports.TimeResolution = {}));
|
|
1957
|
+
|
|
1934
1958
|
exports.PaymentStatus = void 0;
|
|
1935
1959
|
(function (PaymentStatus) {
|
|
1936
1960
|
PaymentStatus["SUCCEEDED"] = "SUCCEEDED";
|