@bitbar/cloud-api-client 1.5.13 → 1.5.15
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.d.ts +1 -1
- package/dist/api/APIList.d.ts +2 -1
- package/dist/api/APIListScreenshots.d.ts +8 -0
- package/dist/api/APIListTestCaseRuns.d.ts +9 -0
- package/dist/api/APIListTestRunDeviceSessions.d.ts +8 -0
- package/dist/api/APIResourceDeviceSession.d.ts +5 -3
- package/dist/api/APIResourceDeviceSessionCommon.d.ts +4 -6
- package/dist/api/APIResourceRun.d.ts +2 -1
- package/dist/api/APIResourceRunCommon.d.ts +3 -2
- package/dist/api/interface/DeviceSessionCommon.d.ts +1 -3
- package/dist/api/lists.d.ts +6 -0
- package/dist/api/models/DeviceSession.d.ts +0 -3
- package/dist/bitbar-cloud-api-client.js +28 -7
- 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
- package/dist/api/interface/DeviceSession.d.ts +0 -8
package/dist/API.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare class API {
|
|
|
42
42
|
deviceGroup(id: number): APIResourceDeviceGroup;
|
|
43
43
|
deviceGroups(): APIList<any, CollectionQueryParams, any>;
|
|
44
44
|
devices(): APIListDevices;
|
|
45
|
-
deviceSession(id: number): APIResourceDeviceSession
|
|
45
|
+
deviceSession(id: number): APIResourceDeviceSession<import("./models").SessionQueryParams>;
|
|
46
46
|
deviceSessions(): APIList<any, CollectionQueryParams, any>;
|
|
47
47
|
deviceStatistics(): APIList<any, CollectionQueryParams, any>;
|
|
48
48
|
enums(): APIResource<any, import("./api/models/HTTP").QueryParams, import("./api/models/HTTP").QueryParams>;
|
package/dist/api/APIList.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { APIEntity } from './APIEntity';
|
|
|
4
4
|
import { APIOrder, CollectionBasicQueryParams, CollectionQueryParams, CollectionResponse, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
|
|
5
5
|
export declare const DEFAULT_LIMIT: number;
|
|
6
6
|
export declare const DEFAULT_OFFSET: number;
|
|
7
|
-
export
|
|
7
|
+
export type APIListQuery = CollectionBasicQueryParams | CollectionQueryParams | NoQueryParams;
|
|
8
|
+
export declare class APIList<RESPONSE = any, QUERY_PARAMS extends APIListQuery = CollectionQueryParams, DATA = any> extends APIEntity<CollectionResponse<RESPONSE> | SimpleCollectionResponse<RESPONSE>, QUERY_PARAMS, DATA> {
|
|
8
9
|
create(data: DATA): Promise<AxiosResponse<RESPONSE>>;
|
|
9
10
|
sort(name: string, order?: APIOrder): this;
|
|
10
11
|
limit(limit?: number): this;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Screenshot } from './models/Screenshot';
|
|
2
|
+
import { CollectionBasicQueryParams, NoData } from './models/HTTP';
|
|
3
|
+
import APIList from './APIList';
|
|
4
|
+
import APIResourceDeviceSessionCommon from './APIResourceDeviceSessionCommon';
|
|
5
|
+
export declare class APIListScreenshots extends APIList<Screenshot, CollectionBasicQueryParams, NoData> {
|
|
6
|
+
constructor(parent: APIResourceDeviceSessionCommon);
|
|
7
|
+
}
|
|
8
|
+
export default APIListScreenshots;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NoData } from './models/HTTP';
|
|
2
|
+
import { TestCaseRun } from './models/TestCaseRun';
|
|
3
|
+
import APIList, { APIListQuery } from './APIList';
|
|
4
|
+
import { SessionQueryParams } from './models/DeviceSession';
|
|
5
|
+
import APIResourceDeviceSessionCommon from './APIResourceDeviceSessionCommon';
|
|
6
|
+
export declare class APIListTestCaseRuns<Q extends APIListQuery = SessionQueryParams> extends APIList<TestCaseRun, Q, NoData> {
|
|
7
|
+
constructor(parent: APIResourceDeviceSessionCommon);
|
|
8
|
+
}
|
|
9
|
+
export default APIListTestCaseRuns;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeviceSession } from './models/DeviceSession';
|
|
2
|
+
import { CollectionBasicQueryParams, NoData } from './models/HTTP';
|
|
3
|
+
import APIList from './APIList';
|
|
4
|
+
import APIResourceRunCommon from './APIResourceRunCommon';
|
|
5
|
+
export declare class APIListTestRunDeviceSessions extends APIList<DeviceSession, CollectionBasicQueryParams, NoData> {
|
|
6
|
+
constructor(parent: APIResourceRunCommon);
|
|
7
|
+
}
|
|
8
|
+
export default APIListTestRunDeviceSessions;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { APIResource } from './APIResource';
|
|
2
2
|
import { APIResourceDeviceSessionCommon } from './APIResourceDeviceSessionCommon';
|
|
3
|
-
import { DeviceSession } from './
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import { DeviceSession as DeviceSessionModel, SessionQueryParams } from './models/DeviceSession';
|
|
4
|
+
import APIListTestCaseRuns from './APIListTestCaseRuns';
|
|
5
|
+
import { APIListQuery } from './APIList';
|
|
6
|
+
export declare class APIResourceDeviceSession<QUERY_PARAMS extends APIListQuery = SessionQueryParams> extends APIResourceDeviceSessionCommon {
|
|
6
7
|
abort(): APIResource<DeviceSessionModel, import("..").QueryParams, import("..").QueryParams>;
|
|
7
8
|
retry(): APIResource<DeviceSessionModel, import("..").QueryParams, import("..").QueryParams>;
|
|
9
|
+
testCaseRuns(): APIListTestCaseRuns<QUERY_PARAMS>;
|
|
8
10
|
}
|
|
9
11
|
export default APIResourceDeviceSession;
|
|
@@ -5,22 +5,20 @@ import { APIResource } from './APIResource';
|
|
|
5
5
|
import { InputFileset } from './class/InputFileset';
|
|
6
6
|
import { OutputFileset } from './class/OutputFileset';
|
|
7
7
|
import { DeviceSessionCommon } from './interface/DeviceSessionCommon';
|
|
8
|
-
import { DeviceSession, DeviceSessionCommand, DeviceSessionStep,
|
|
8
|
+
import { DeviceSession, DeviceSessionCommand, DeviceSessionStep, SessionRunStepQueryParams, SessionStepQueryParams } from './models/DeviceSession';
|
|
9
9
|
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
|
|
10
|
-
import
|
|
11
|
-
import { TestCaseRun } from './models/TestCaseRun';
|
|
10
|
+
import APIListScreenshots from './APIListScreenshots';
|
|
12
11
|
export declare class APIResourceDeviceSessionCommon extends APIResource<DeviceSession> implements DeviceSessionCommon {
|
|
13
12
|
constructor(parent: APIEntity<any> | API, id: number);
|
|
14
13
|
commands(): APIList<DeviceSessionCommand, import("./models/HTTP").CollectionQueryParams, any>;
|
|
15
14
|
input(): InputFileset;
|
|
16
15
|
output(): OutputFileset;
|
|
17
16
|
release(): APIResource<DeviceSession, NoQueryParams, void>;
|
|
18
|
-
screenshots():
|
|
17
|
+
screenshots(): APIListScreenshots;
|
|
19
18
|
screenshot(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
20
|
-
steps(): APIList<DeviceSessionStep,
|
|
19
|
+
steps(): APIList<DeviceSessionStep, CollectionBasicQueryParams | SessionRunStepQueryParams | SessionStepQueryParams, void>;
|
|
21
20
|
step(id: number | 'current'): APIResource<DeviceSessionStep, NoQueryParams, void>;
|
|
22
21
|
currentStep(): APIResource<DeviceSessionStep, NoQueryParams, void>;
|
|
23
|
-
testCaseRuns(): APIList<TestCaseRun, SessionQueryParams | NoQueryParams, void>;
|
|
24
22
|
connections(): APIList<any, import("./models/HTTP").CollectionQueryParams, any>;
|
|
25
23
|
logs(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
26
24
|
clusterLogs(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResourceDeviceSession } from './APIResourceDeviceSession';
|
|
2
2
|
import { APIResourceRunCommon } from './APIResourceRunCommon';
|
|
3
|
+
import { CollectionQueryParams } from './models/HTTP';
|
|
3
4
|
export declare class APIResourceRun extends APIResourceRunCommon {
|
|
4
|
-
deviceSession(id: number): APIResourceDeviceSession
|
|
5
|
+
deviceSession(id: number): APIResourceDeviceSession<CollectionQueryParams>;
|
|
5
6
|
}
|
|
6
7
|
export default APIResourceRun;
|
|
@@ -3,17 +3,18 @@ import { APIEntity } from './APIEntity';
|
|
|
3
3
|
import { APIList } from './APIList';
|
|
4
4
|
import { APIResource } from './APIResource';
|
|
5
5
|
import { AdminTestRun } from './models/AdminTestRun';
|
|
6
|
-
import {
|
|
6
|
+
import { DeviceSessionStep } from './models/DeviceSession';
|
|
7
7
|
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
|
|
8
8
|
import { RunData, RunQueryParam, TestRun, TestRunData } from './models/TestRun';
|
|
9
9
|
import { TestRunDataAvailability, TestRunDataAvailabilityQueryParams } from './models/TestRunDataAvailability';
|
|
10
10
|
import { UserFile } from './models/UserFile';
|
|
11
|
+
import APIListTestRunDeviceSessions from './APIListTestRunDeviceSessions';
|
|
11
12
|
export declare class APIResourceRunCommon extends APIResource<TestRun, RunQueryParam, TestRunData | RunData> {
|
|
12
13
|
constructor(parent: APIEntity<any> | API, id: number);
|
|
13
14
|
abort(): APIResource<TestRun | AdminTestRun, NoQueryParams, RunData>;
|
|
14
15
|
buildLogsZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
15
16
|
dataAvailability(): APIResource<TestRunDataAvailability, TestRunDataAvailabilityQueryParams, void>;
|
|
16
|
-
deviceSessions():
|
|
17
|
+
deviceSessions(): APIListTestRunDeviceSessions;
|
|
17
18
|
filesZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
18
19
|
logsZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
19
20
|
performanceZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { APIList } from '../APIList';
|
|
2
2
|
import { APIResource } from '../APIResource';
|
|
3
|
-
import { DeviceSessionCommand, DeviceSessionStep
|
|
3
|
+
import { DeviceSessionCommand, DeviceSessionStep } from '../models/DeviceSession';
|
|
4
4
|
import { NoData, NoQueryParams } from '../models/HTTP';
|
|
5
5
|
import { Screenshot } from '../models/Screenshot';
|
|
6
|
-
import { TestCaseRun } from '../models/TestCaseRun';
|
|
7
6
|
import { DeviceSessionBase } from './DeviceSessionBase';
|
|
8
7
|
export interface DeviceSessionCommon extends DeviceSessionBase {
|
|
9
8
|
commands(): APIList<DeviceSessionCommand>;
|
|
@@ -12,6 +11,5 @@ export interface DeviceSessionCommon extends DeviceSessionBase {
|
|
|
12
11
|
steps(): APIList<DeviceSessionStep>;
|
|
13
12
|
step(id: number | 'current'): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
14
13
|
currentStep(): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
15
|
-
testCaseRuns(): APIList<TestCaseRun, SessionQueryParams | NoQueryParams, NoData>;
|
|
16
14
|
}
|
|
17
15
|
export default DeviceSessionCommon;
|
package/dist/api/lists.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { APIListCleanupConfigurations as OriginAPIListCleanupConfigurations } fr
|
|
|
3
3
|
import { APIListDevices as OriginAPIListDevices } from './APIListDevices';
|
|
4
4
|
import { APIListFiles as OriginAPIListFiles } from './APIListFiles';
|
|
5
5
|
import { APIListOutputFiles as OriginAPIListOutputFiles } from './APIListOutputFiles';
|
|
6
|
+
import { APIListScreenshots as OriginAPIListScreenshots } from './APIListScreenshots';
|
|
7
|
+
import { APIListTestCaseRuns as OriginAPIListTestCaseRuns } from './APIListTestCaseRuns';
|
|
8
|
+
import { APIListTestRunDeviceSessions as OriginAPIListTestRunDeviceSessions } from './APIListTestRunDeviceSessions';
|
|
6
9
|
import { APIListNotifications as OriginAPIListNotifications } from './APIListNotifications';
|
|
7
10
|
import { APIListProperties as OriginAPIListProperties } from './APIListProperties';
|
|
8
11
|
import { APIListRuns as OriginAPIListRuns } from './APIListRuns';
|
|
@@ -14,6 +17,9 @@ export type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListClea
|
|
|
14
17
|
export type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
|
|
15
18
|
export type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
|
|
16
19
|
export type APIListOutputFiles = InstanceType<typeof OriginAPIListOutputFiles>;
|
|
20
|
+
export type APIListScreenshots = InstanceType<typeof OriginAPIListScreenshots>;
|
|
21
|
+
export type APIListTestCaseRuns = InstanceType<typeof OriginAPIListTestCaseRuns>;
|
|
22
|
+
export type APIListTestRunDeviceSessions = InstanceType<typeof OriginAPIListTestRunDeviceSessions>;
|
|
17
23
|
export type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
|
|
18
24
|
export type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
|
|
19
25
|
export type APIListRuns = InstanceType<typeof OriginAPIListRuns>;
|
|
@@ -129,9 +129,6 @@ export interface SessionRunStepQueryParams extends CollectionBasicQueryParams {
|
|
|
129
129
|
export interface SessionStepQueryParams extends SessionRunStepQueryParams {
|
|
130
130
|
projectId: number;
|
|
131
131
|
}
|
|
132
|
-
export interface TestRunDeviceSessionQueryParams extends CollectionBasicQueryParams {
|
|
133
|
-
projectId: number;
|
|
134
|
-
}
|
|
135
132
|
export declare enum SessionReleaseReason {
|
|
136
133
|
INACTIVITY = "INACTIVITY",
|
|
137
134
|
TIMEOUT = "TIMEOUT",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.5.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.5.15 | 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.5.
|
|
8
|
+
var version = "1.5.15";
|
|
9
9
|
|
|
10
10
|
/******************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -686,6 +686,13 @@
|
|
|
686
686
|
NonRequestable
|
|
687
687
|
], exports.OutputFileset);
|
|
688
688
|
|
|
689
|
+
class APIListScreenshots extends APIList {
|
|
690
|
+
constructor(parent) {
|
|
691
|
+
super(parent);
|
|
692
|
+
this.push('screenshots');
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
689
696
|
class APIResourceDeviceSessionCommon extends APIResource {
|
|
690
697
|
constructor(parent, id) {
|
|
691
698
|
if (id == null) {
|
|
@@ -707,7 +714,7 @@
|
|
|
707
714
|
return new APIResource(this).push('release').post();
|
|
708
715
|
}
|
|
709
716
|
screenshots() {
|
|
710
|
-
return new
|
|
717
|
+
return new APIListScreenshots(this);
|
|
711
718
|
}
|
|
712
719
|
screenshot(id) {
|
|
713
720
|
if (id == null) {
|
|
@@ -727,9 +734,6 @@
|
|
|
727
734
|
currentStep() {
|
|
728
735
|
return this.step('current');
|
|
729
736
|
}
|
|
730
|
-
testCaseRuns() {
|
|
731
|
-
return new APIList(this).push('test-case-runs');
|
|
732
|
-
}
|
|
733
737
|
connections() {
|
|
734
738
|
return new APIList(this).push('connections');
|
|
735
739
|
}
|
|
@@ -1043,6 +1047,13 @@
|
|
|
1043
1047
|
}
|
|
1044
1048
|
}
|
|
1045
1049
|
|
|
1050
|
+
class APIListTestCaseRuns extends APIList {
|
|
1051
|
+
constructor(parent) {
|
|
1052
|
+
super(parent);
|
|
1053
|
+
this.push('test-case-runs');
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1046
1057
|
class APIResourceDeviceSession extends APIResourceDeviceSessionCommon {
|
|
1047
1058
|
abort() {
|
|
1048
1059
|
return new APIResource(this).push('abort').post();
|
|
@@ -1050,6 +1061,16 @@
|
|
|
1050
1061
|
retry() {
|
|
1051
1062
|
return new APIResource(this).push('retry').post();
|
|
1052
1063
|
}
|
|
1064
|
+
testCaseRuns() {
|
|
1065
|
+
return new APIListTestCaseRuns(this);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
class APIListTestRunDeviceSessions extends APIList {
|
|
1070
|
+
constructor(parent) {
|
|
1071
|
+
super(parent);
|
|
1072
|
+
this.push('device-sessions');
|
|
1073
|
+
}
|
|
1053
1074
|
}
|
|
1054
1075
|
|
|
1055
1076
|
class APIResourceRunCommon extends APIResource {
|
|
@@ -1070,7 +1091,7 @@
|
|
|
1070
1091
|
return new APIResource(this).push('data-availability');
|
|
1071
1092
|
}
|
|
1072
1093
|
deviceSessions() {
|
|
1073
|
-
return new
|
|
1094
|
+
return new APIListTestRunDeviceSessions(this);
|
|
1074
1095
|
}
|
|
1075
1096
|
filesZip(ids) {
|
|
1076
1097
|
return postDeviceRunIds(this, 'files.zip', ids);
|