@bitbar/cloud-api-client 1.1.1 → 1.1.3

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.
@@ -5,7 +5,7 @@ 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, DeviceSessionRelease, DeviceSessionStep, SessionQueryParams, SessionRunStepQueryParams, SessionStepQueryParams } from './models/DeviceSession';
8
+ import { DeviceSession, DeviceSessionCommand, DeviceSessionStep, SessionQueryParams, SessionRunStepQueryParams, SessionStepQueryParams } from './models/DeviceSession';
9
9
  import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
10
10
  import { Screenshot } from './models/Screenshot';
11
11
  import { TestCaseRun } from './models/TestCaseRun';
@@ -14,7 +14,7 @@ export declare class APIResourceDeviceSessionCommon extends APIResource<DeviceSe
14
14
  commands(): APIList<DeviceSessionCommand, import("./models/HTTP").CollectionQueryParams, any>;
15
15
  input(): InputFileset;
16
16
  output(): OutputFileset;
17
- release(): APIResource<DeviceSession, NoQueryParams, DeviceSessionRelease>;
17
+ release(): APIResource<DeviceSession, NoQueryParams, void>;
18
18
  screenshots(): APIList<Screenshot, SessionQueryParams | SessionRunStepQueryParams | SessionStepQueryParams, void>;
19
19
  screenshot(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
20
20
  steps(): APIList<DeviceSessionStep, SessionRunStepQueryParams | SessionStepQueryParams | CollectionBasicQueryParams, void>;
@@ -5,4 +5,5 @@ export declare type Account = {
5
5
  dedicatedDevicesCount: number;
6
6
  id: number;
7
7
  name: string;
8
+ userName: string;
8
9
  };
@@ -136,6 +136,13 @@ export interface SessionStepQueryParams extends SessionRunStepQueryParams {
136
136
  export interface TRunDeviceSessionQueryParams extends CollectionBasicQueryParams {
137
137
  projectId: number;
138
138
  }
139
+ export declare enum SessionReleaseReason {
140
+ INACTIVITY = "INACTIVITY",
141
+ TIMEOUT = "TIMEOUT",
142
+ USER_ACTION = "USER_ACTION",
143
+ CHANGE_DEVICE = "CHANGE_DEVICE",
144
+ WEBSOCKET_CLOSED = "WEBSOCKET_CLOSED"
145
+ }
139
146
  export declare type DeviceSessionRelease = {
140
- reason: string;
147
+ reason: SessionReleaseReason;
141
148
  };
@@ -26,7 +26,7 @@ export declare type Framework = {
26
26
  skipQueue: boolean;
27
27
  type: string;
28
28
  };
29
- export declare type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'mainUserEmail' | 'sampleApp' | 'sampleTest'> & {
29
+ export declare type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'accountName' | 'sampleApp' | 'sampleTest'> & {
30
30
  addLabelToDevices: boolean;
31
31
  roleIds: Array<number>;
32
32
  sampleAppId: number;
@@ -12,6 +12,7 @@ export declare enum UserStatus {
12
12
  }
13
13
  export declare type User = {
14
14
  accountId: number;
15
+ accountName: string;
15
16
  accountOwners: Array<User>;
16
17
  accountServiceIds: Array<number>;
17
18
  address: string;
@@ -1,4 +1,4 @@
1
- /* @bitbar/cloud-api-client v1.1.1 | Copyright 2024 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.1.3 | Copyright 2024 (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('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
@@ -10,7 +10,7 @@
10
10
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
11
11
  var finka__default = /*#__PURE__*/_interopDefaultLegacy(finka);
12
12
 
13
- var version = "1.1.1";
13
+ var version = "1.1.3";
14
14
 
15
15
  /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
@@ -2136,6 +2136,14 @@
2136
2136
  DeviceSessionStepType["SENDING_RESULTS"] = "SENDING_RESULTS";
2137
2137
  DeviceSessionStepType["PROCESSING_RESULTS"] = "PROCESSING_RESULTS";
2138
2138
  })(exports.DeviceSessionStepType || (exports.DeviceSessionStepType = {}));
2139
+ exports.SessionReleaseReason = void 0;
2140
+ (function (SessionReleaseReason) {
2141
+ SessionReleaseReason["INACTIVITY"] = "INACTIVITY";
2142
+ SessionReleaseReason["TIMEOUT"] = "TIMEOUT";
2143
+ SessionReleaseReason["USER_ACTION"] = "USER_ACTION";
2144
+ SessionReleaseReason["CHANGE_DEVICE"] = "CHANGE_DEVICE";
2145
+ SessionReleaseReason["WEBSOCKET_CLOSED"] = "WEBSOCKET_CLOSED";
2146
+ })(exports.SessionReleaseReason || (exports.SessionReleaseReason = {}));
2139
2147
 
2140
2148
  exports.OsType = void 0;
2141
2149
  (function (OsType) {