Skip to content

Commit 6420859

Browse files
authored
Merge pull request #459 from piotrsapiejewskismartbear/master
SDCB-12198 add reason to session release call
2 parents 88606a9 + 12da385 commit 6420859

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

dist/api/APIResourceDeviceSessionCommon.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { APIResource } from './APIResource';
55
import { InputFileset } from './class/InputFileset';
66
import { OutputFileset } from './class/OutputFileset';
77
import { DeviceSessionCommon } from './interface/DeviceSessionCommon';
8-
import { DeviceSession, DeviceSessionCommand, DeviceSessionStep, SessionQueryParams, SessionRunStepQueryParams, SessionStepQueryParams } from './models/DeviceSession';
8+
import { DeviceSession, DeviceSessionCommand, DeviceSessionRelease, DeviceSessionStep, SessionQueryParams, SessionRunStepQueryParams, SessionStepQueryParams } from './models/DeviceSession';
99
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
1010
import { Screenshot } from './models/Screenshot';
1111
import { TestCaseRun } from './models/TestCaseRun';
@@ -14,7 +14,7 @@ export declare class APIResourceDeviceSessionCommon extends APIResource<DeviceSe
1414
commands(): APIList<DeviceSessionCommand, import("./models/HTTP").CollectionQueryParams, any>;
1515
input(): InputFileset;
1616
output(): OutputFileset;
17-
release(): APIResource<DeviceSession, NoQueryParams, void>;
17+
release(): APIResource<DeviceSession, NoQueryParams, DeviceSessionRelease>;
1818
screenshots(): APIList<Screenshot, SessionQueryParams | SessionRunStepQueryParams | SessionStepQueryParams, void>;
1919
screenshot(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
2020
steps(): APIList<DeviceSessionStep, SessionRunStepQueryParams | SessionStepQueryParams | CollectionBasicQueryParams, void>;

dist/api/models/DeviceSession.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@ export interface SessionStepQueryParams extends SessionRunStepQueryParams {
136136
export interface TRunDeviceSessionQueryParams extends CollectionBasicQueryParams {
137137
projectId: number;
138138
}
139+
export declare type DeviceSessionRelease = {
140+
reason: string;
141+
};

dist/bitbar-cloud-api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/APIResourceDeviceSessionCommon.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ import {APIResource} from './APIResource'
55
import {InputFileset} from './class/InputFileset'
66
import {OutputFileset} from './class/OutputFileset'
77
import {DeviceSessionCommon} from './interface/DeviceSessionCommon';
8-
import {DeviceSession, DeviceSessionCommand, DeviceSessionStep, SessionQueryParams, SessionRunStepQueryParams, SessionStepQueryParams} from './models/DeviceSession';
8+
import {
9+
DeviceSession,
10+
DeviceSessionCommand,
11+
DeviceSessionRelease,
12+
DeviceSessionStep,
13+
SessionQueryParams,
14+
SessionRunStepQueryParams,
15+
SessionStepQueryParams
16+
} from './models/DeviceSession';
917
import {CollectionBasicQueryParams, NoData, NoQueryParams} from './models/HTTP';
1018
import {Screenshot} from './models/Screenshot';
1119
import {TestCaseRun} from './models/TestCaseRun';
@@ -41,7 +49,7 @@ export class APIResourceDeviceSessionCommon extends APIResource<DeviceSession> i
4149

4250
// /device-sessions/{id}/release
4351
release() {
44-
return new APIResource<DeviceSession, NoQueryParams, NoData>(this).push('release').post();
52+
return new APIResource<DeviceSession, NoQueryParams, DeviceSessionRelease>(this).push('release').post();
4553
}
4654

4755
// /device-sessions/{id}/screenshots

src/api/models/DeviceSession.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,7 @@ export interface SessionStepQueryParams extends SessionRunStepQueryParams {
150150
export interface TRunDeviceSessionQueryParams extends CollectionBasicQueryParams {
151151
projectId: number;
152152
}
153+
154+
export type DeviceSessionRelease = {
155+
reason: string;
156+
}

0 commit comments

Comments
 (0)