@bitbar/cloud-api-client 1.0.3 → 1.0.5

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.
@@ -14,6 +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, void>;
17
18
  screenshots(): APIList<Screenshot, SessionQueryParams | SessionRunStepQueryParams | SessionStepQueryParams, void>;
18
19
  screenshot(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
19
20
  steps(): APIList<DeviceSessionStep, SessionRunStepQueryParams | SessionStepQueryParams | CollectionBasicQueryParams, void>;
@@ -8,6 +8,7 @@ import { DeviceSessionStandalone } from './interface/DeviceSessionStandalone';
8
8
  import { Connection, ConnectionData } from './models/Connection';
9
9
  import { DeviceSession } from './models/DeviceSession';
10
10
  import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
11
+ import { VisualTestImage } from './models/VisualTestImage';
11
12
  export declare class APIResourceDeviceSessionStandalone extends APIResource<DeviceSession> implements DeviceSessionStandalone {
12
13
  constructor(parent: APIResourceUser | APIAdminResourceUser, id: number);
13
14
  connections(): APIList<Connection, CollectionBasicQueryParams, ConnectionData>;
@@ -15,5 +16,6 @@ export declare class APIResourceDeviceSessionStandalone extends APIResource<Devi
15
16
  input(): InputFileset;
16
17
  output(): OutputFileset;
17
18
  release(): APIResource<DeviceSession, NoQueryParams, void>;
19
+ visualTestsImages(): APIList<VisualTestImage, NoQueryParams, void>;
18
20
  }
19
21
  export default APIResourceDeviceSessionStandalone;
@@ -0,0 +1,17 @@
1
+ export declare enum VTImageType {
2
+ FULL_PAGE = "FULL_PAGE",
3
+ VIEWPORT = "VIEWPORT",
4
+ ELEMENT_SCREENSHOT = "ELEMENT_SCREENSHOT"
5
+ }
6
+ export declare type VisualTestImage = {
7
+ comparisonStatus: string;
8
+ comparisonUrl: string;
9
+ createdAt: string;
10
+ id: number;
11
+ imageName: string;
12
+ imageThumbnailUrl: string;
13
+ imageType: VTImageType;
14
+ imageUrl: string;
15
+ sessionId: string;
16
+ testUrl: string;
17
+ };
@@ -1,4 +1,4 @@
1
- /* @bitbar/cloud-api-client v1.0.3 | Copyright 2022 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.0.5 | Copyright 2022 (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.0.3";
13
+ var version = "1.0.5";
14
14
 
15
15
  /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
@@ -681,6 +681,9 @@
681
681
  output() {
682
682
  return new exports.OutputFileset(this);
683
683
  }
684
+ release() {
685
+ return new APIResource(this).push('release').post();
686
+ }
684
687
  screenshots() {
685
688
  return new APIList(this).push('screenshots');
686
689
  }
@@ -905,6 +908,9 @@
905
908
  release() {
906
909
  return new APIResource(this).push('release').post();
907
910
  }
911
+ visualTestsImages() {
912
+ return new APIList(this).push('visual-tests', 'images');
913
+ }
908
914
  }
909
915
 
910
916
  let APIAdminResourceUser = class APIAdminResourceUser extends APIResource {