@bitbar/cloud-api-client 1.4.16 → 1.4.18
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/APIAdminResourceAccount.d.ts +3 -3
- package/dist/api/models/Account.d.ts +23 -0
- package/dist/api/models/Framework.d.ts +12 -10
- package/dist/api/models/Role.d.ts +1 -1
- package/dist/api/models/TestRun.d.ts +24 -15
- package/dist/bitbar-cloud-api-client.js +20 -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 +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIAdminResource } from './APIAdminResource';
|
|
2
2
|
import { APIList } from './APIList';
|
|
3
3
|
import { APIResource } from './APIResource';
|
|
4
|
-
import { Account, AccountUsage, AccountUsageSummary } from './models/Account';
|
|
4
|
+
import { Account, AccountUsage, AccountUsageParams, AccountUsageSummary, AccountUsageSummaryParams } from './models/Account';
|
|
5
5
|
import { NoData, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
|
|
6
6
|
import { Role, RoleData, RoleParams } from './models/Role';
|
|
7
7
|
import { AccountService } from './models/AccountService';
|
|
@@ -12,7 +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>,
|
|
16
|
-
usageSummary(): APIResource<AccountUsageSummary,
|
|
15
|
+
usage(): APIList<SimpleCollectionResponse<AccountUsage>, AccountUsageParams, any>;
|
|
16
|
+
usageSummary(): APIResource<AccountUsageSummary, AccountUsageSummaryParams, AccountUsageSummaryParams>;
|
|
17
17
|
}
|
|
18
18
|
export default APIAdminResourceAccount;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
1
2
|
export type Account = {
|
|
2
3
|
activeServiceName: string;
|
|
3
4
|
comment: string;
|
|
@@ -44,3 +45,25 @@ export type AccountUsage = {
|
|
|
44
45
|
manualConcurrency: number;
|
|
45
46
|
manualUsage: number;
|
|
46
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
|
+
};
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { OsType } from './Enum';
|
|
2
2
|
import { UserFile } from './UserFile';
|
|
3
|
-
export type
|
|
3
|
+
export type FrameworkOptions = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
type: string;
|
|
9
|
+
requiredAppExtensions: string;
|
|
10
|
+
requiredTestExtensions: string;
|
|
11
|
+
sampleApp: UserFile;
|
|
12
|
+
sampleTest: UserFile;
|
|
13
|
+
};
|
|
14
|
+
export type Framework = FrameworkOptions & {
|
|
4
15
|
accountId: number;
|
|
5
16
|
accountName: string;
|
|
6
17
|
canRunFromUI: boolean;
|
|
7
18
|
createTime: number;
|
|
8
|
-
description: string;
|
|
9
19
|
documentationUrl: string;
|
|
10
20
|
forProjects: boolean;
|
|
11
|
-
icon: string;
|
|
12
|
-
id: number;
|
|
13
21
|
labelId: number;
|
|
14
22
|
labelName: string;
|
|
15
|
-
name: string;
|
|
16
23
|
osType: OsType;
|
|
17
24
|
queueWait: number;
|
|
18
|
-
requiredAppExtensions: string;
|
|
19
|
-
requiredTestExtensions: string;
|
|
20
25
|
requiredTestFileTags: string;
|
|
21
26
|
retryable: boolean;
|
|
22
|
-
sampleApp: UserFile;
|
|
23
|
-
sampleTest: UserFile;
|
|
24
27
|
secured: boolean;
|
|
25
28
|
skipOlderSdk: boolean;
|
|
26
29
|
skipQueue: boolean;
|
|
27
|
-
type: string;
|
|
28
30
|
};
|
|
29
31
|
export type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'accountName' | 'sampleApp' | 'sampleTest'> & {
|
|
30
32
|
addLabelToDevices: boolean;
|
|
@@ -70,7 +70,30 @@ export type TestRunConfigFile = {
|
|
|
70
70
|
file: UserFile;
|
|
71
71
|
id: number;
|
|
72
72
|
};
|
|
73
|
-
export type
|
|
73
|
+
export type TestRunParameter = {
|
|
74
|
+
name: string;
|
|
75
|
+
key: string;
|
|
76
|
+
value: string;
|
|
77
|
+
label: string;
|
|
78
|
+
};
|
|
79
|
+
export type TRCDefaultSettings = {
|
|
80
|
+
deviceLanguageCode: string;
|
|
81
|
+
disableResigning: boolean;
|
|
82
|
+
hookURL: string;
|
|
83
|
+
instrumentationRunner: string;
|
|
84
|
+
limitationType: string;
|
|
85
|
+
limitationValue: string;
|
|
86
|
+
scheduler: string;
|
|
87
|
+
screenshotDir: string;
|
|
88
|
+
withAnnotation: string;
|
|
89
|
+
withoutAnnotation: string;
|
|
90
|
+
timeout: string;
|
|
91
|
+
projectName: string;
|
|
92
|
+
testRunName: string;
|
|
93
|
+
testRunParameters: TestRunParameter[];
|
|
94
|
+
biometricInstrumentation: boolean;
|
|
95
|
+
};
|
|
96
|
+
export type TestRunConfig = TRCDefaultSettings & {
|
|
74
97
|
appCrawlerRun: boolean;
|
|
75
98
|
appiumBrokerAddress: string;
|
|
76
99
|
applicationPassword: string;
|
|
@@ -79,47 +102,33 @@ export type TestRunConfig = {
|
|
|
79
102
|
availableDevices: Array<Device>;
|
|
80
103
|
availableFrameworks: any;
|
|
81
104
|
availableOsTypes: Array<OsType>;
|
|
82
|
-
biometricInstrumentation: boolean;
|
|
83
105
|
clientSideTestConfig: any;
|
|
84
106
|
computedDevices: Array<number>;
|
|
85
107
|
creditsPrice: number;
|
|
86
108
|
deviceGroupId: number;
|
|
87
109
|
deviceIds: any;
|
|
88
|
-
deviceLanguageCode: string;
|
|
89
110
|
deviceNamePattern: string;
|
|
90
|
-
disableResigning: boolean;
|
|
91
111
|
files: Array<TestRunConfigFile> | null;
|
|
92
112
|
frameworkId: number;
|
|
93
|
-
hookURL: string;
|
|
94
113
|
id: number;
|
|
95
|
-
instrumentationRunner: string;
|
|
96
|
-
limitationType: LimitationType;
|
|
97
|
-
limitationValue: string;
|
|
98
114
|
loadedPrevious: boolean;
|
|
99
115
|
example: true;
|
|
100
116
|
maxAutoRetriesCount: number;
|
|
101
117
|
maxTestTimeout: any;
|
|
102
118
|
osType: OsType;
|
|
103
119
|
projectId: number;
|
|
104
|
-
projectName: string;
|
|
105
120
|
resignFiles: boolean;
|
|
106
121
|
runAvailable: boolean;
|
|
107
|
-
scheduler: TestScheduler;
|
|
108
|
-
screenshotDir: string;
|
|
109
122
|
status: string;
|
|
110
123
|
statusCode: number;
|
|
111
124
|
testRunId: number;
|
|
112
|
-
testRunName: string;
|
|
113
125
|
testRunNameGrouping: string;
|
|
114
|
-
testRunParameters: any;
|
|
115
|
-
timeout: number;
|
|
116
126
|
tunnelSettings: TunnelSettings;
|
|
117
127
|
useSamples: boolean;
|
|
118
128
|
usedDeviceGroupId: number;
|
|
119
129
|
usedDeviceGroupName: string;
|
|
120
130
|
videoRecordingEnabled: boolean;
|
|
121
131
|
withAnnotation: string;
|
|
122
|
-
withoutAnnotation: string;
|
|
123
132
|
};
|
|
124
133
|
export interface TestRunData extends QueryParams {
|
|
125
134
|
displayName: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.4.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.4.18 | 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.18";
|
|
9
9
|
|
|
10
10
|
/******************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1937,6 +1937,24 @@
|
|
|
1937
1937
|
AccessGroupScope["GLOBAL"] = "GLOBAL";
|
|
1938
1938
|
})(exports.AccessGroupScope || (exports.AccessGroupScope = {}));
|
|
1939
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
|
+
|
|
1940
1958
|
exports.PaymentStatus = void 0;
|
|
1941
1959
|
(function (PaymentStatus) {
|
|
1942
1960
|
PaymentStatus["SUCCEEDED"] = "SUCCEEDED";
|