@bitbar/cloud-api-client 1.5.12 → 1.5.14
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/APIListScreenshots.d.ts +8 -0
- package/dist/api/APIListTestCaseRuns.d.ts +9 -0
- package/dist/api/APIListTestRunDeviceSessions.d.ts +8 -0
- package/dist/api/APIResourceDeviceSessionCommon.d.ts +5 -5
- package/dist/api/APIResourceRunCommon.d.ts +3 -2
- package/dist/api/lists.d.ts +4 -0
- package/dist/api/models/DeviceSession.d.ts +0 -3
- package/dist/api/models/TestRun.d.ts +1 -0
- package/dist/bitbar-cloud-api-client.js +26 -5
- 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
|
@@ -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 { SessionQueryParams } from './models/DeviceSession';
|
|
2
|
+
import { NoData, NoQueryParams } from './models/HTTP';
|
|
3
|
+
import APIList from './APIList';
|
|
4
|
+
import APIResourceDeviceSessionCommon from './APIResourceDeviceSessionCommon';
|
|
5
|
+
import { TestCaseRun } from './models/TestCaseRun';
|
|
6
|
+
export declare class APIListTestCaseRuns extends APIList<TestCaseRun, SessionQueryParams | NoQueryParams, 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;
|
|
@@ -5,22 +5,22 @@ 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
|
|
10
|
+
import APIListScreenshots from './APIListScreenshots';
|
|
11
|
+
import APIListTestCaseRuns from './APIListTestCaseRuns';
|
|
12
12
|
export declare class APIResourceDeviceSessionCommon extends APIResource<DeviceSession> implements DeviceSessionCommon {
|
|
13
13
|
constructor(parent: APIEntity<any> | API, id: number);
|
|
14
14
|
commands(): APIList<DeviceSessionCommand, import("./models/HTTP").CollectionQueryParams, any>;
|
|
15
15
|
input(): InputFileset;
|
|
16
16
|
output(): OutputFileset;
|
|
17
17
|
release(): APIResource<DeviceSession, NoQueryParams, void>;
|
|
18
|
-
screenshots():
|
|
18
|
+
screenshots(): APIListScreenshots;
|
|
19
19
|
screenshot(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
20
20
|
steps(): APIList<DeviceSessionStep, SessionRunStepQueryParams | SessionStepQueryParams | CollectionBasicQueryParams, void>;
|
|
21
21
|
step(id: number | 'current'): APIResource<DeviceSessionStep, NoQueryParams, void>;
|
|
22
22
|
currentStep(): APIResource<DeviceSessionStep, NoQueryParams, void>;
|
|
23
|
-
testCaseRuns():
|
|
23
|
+
testCaseRuns(): APIListTestCaseRuns;
|
|
24
24
|
connections(): APIList<any, import("./models/HTTP").CollectionQueryParams, any>;
|
|
25
25
|
logs(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
26
26
|
clusterLogs(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
@@ -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>;
|
package/dist/api/lists.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ 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 { APIListTestRunDeviceSessions as OriginAPIListTestRunDeviceSessions } from './APIListTestRunDeviceSessions';
|
|
6
8
|
import { APIListNotifications as OriginAPIListNotifications } from './APIListNotifications';
|
|
7
9
|
import { APIListProperties as OriginAPIListProperties } from './APIListProperties';
|
|
8
10
|
import { APIListRuns as OriginAPIListRuns } from './APIListRuns';
|
|
@@ -14,6 +16,8 @@ export type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListClea
|
|
|
14
16
|
export type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
|
|
15
17
|
export type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
|
|
16
18
|
export type APIListOutputFiles = InstanceType<typeof OriginAPIListOutputFiles>;
|
|
19
|
+
export type APIListScreenshots = InstanceType<typeof OriginAPIListScreenshots>;
|
|
20
|
+
export type APIListTestRunDeviceSessions = InstanceType<typeof OriginAPIListTestRunDeviceSessions>;
|
|
17
21
|
export type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
|
|
18
22
|
export type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
|
|
19
23
|
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.14 | 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.14";
|
|
9
9
|
|
|
10
10
|
/******************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -686,6 +686,20 @@
|
|
|
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
|
+
|
|
696
|
+
class APIListTestCaseRuns extends APIList {
|
|
697
|
+
constructor(parent) {
|
|
698
|
+
super(parent);
|
|
699
|
+
this.push('test-case-runs');
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
689
703
|
class APIResourceDeviceSessionCommon extends APIResource {
|
|
690
704
|
constructor(parent, id) {
|
|
691
705
|
if (id == null) {
|
|
@@ -707,7 +721,7 @@
|
|
|
707
721
|
return new APIResource(this).push('release').post();
|
|
708
722
|
}
|
|
709
723
|
screenshots() {
|
|
710
|
-
return new
|
|
724
|
+
return new APIListScreenshots(this);
|
|
711
725
|
}
|
|
712
726
|
screenshot(id) {
|
|
713
727
|
if (id == null) {
|
|
@@ -728,7 +742,7 @@
|
|
|
728
742
|
return this.step('current');
|
|
729
743
|
}
|
|
730
744
|
testCaseRuns() {
|
|
731
|
-
return new
|
|
745
|
+
return new APIListTestCaseRuns(this);
|
|
732
746
|
}
|
|
733
747
|
connections() {
|
|
734
748
|
return new APIList(this).push('connections');
|
|
@@ -1052,6 +1066,13 @@
|
|
|
1052
1066
|
}
|
|
1053
1067
|
}
|
|
1054
1068
|
|
|
1069
|
+
class APIListTestRunDeviceSessions extends APIList {
|
|
1070
|
+
constructor(parent) {
|
|
1071
|
+
super(parent);
|
|
1072
|
+
this.push('device-sessions');
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1055
1076
|
class APIResourceRunCommon extends APIResource {
|
|
1056
1077
|
constructor(parent, id) {
|
|
1057
1078
|
if (id == null) {
|
|
@@ -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);
|