@bitbar/cloud-api-client 1.5.7 → 1.5.8

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.
@@ -0,0 +1,13 @@
1
+ import { API } from '../API';
2
+ import { APIEntity } from './APIEntity';
3
+ import { APIList } from './APIList';
4
+ import { UserFile } from './models/UserFile';
5
+ import { FilesQueryParams } from './class';
6
+ export declare class APIListOutputFiles extends APIList<UserFile, FilesQueryParams> {
7
+ constructor(parent: APIEntity | API);
8
+ performance(): this;
9
+ images(): this;
10
+ nonMediaFiles(): this;
11
+ videos(): this;
12
+ }
13
+ export default APIListOutputFiles;
@@ -5,17 +5,14 @@ import { APIResource } from '../APIResource';
5
5
  import { Screenshot } from '../models/Screenshot';
6
6
  import { UserFile } from '../models/UserFile';
7
7
  import { FilesQueryParams } from './FilesQueryParams';
8
+ import APIListOutputFiles from '../APIListOutputFiles';
8
9
  export declare class OutputFileset extends APIResource<UserFile, FilesQueryParams> {
9
10
  constructor(parent: APIEntity | API);
10
- files(): APIList<UserFile, FilesQueryParams, any>;
11
+ files(): APIListOutputFiles;
11
12
  file(id: number): APIResource<UserFile, FilesQueryParams, FilesQueryParams>;
12
13
  filesZip(): APIResource<Blob, FilesQueryParams, FilesQueryParams>;
13
14
  screenshots(): APIList<Screenshot, FilesQueryParams, any>;
14
15
  screenshot(id: number): APIResource<Screenshot, FilesQueryParams, FilesQueryParams>;
15
16
  screenshotFile(id: number): APIResource<Screenshot, FilesQueryParams, FilesQueryParams>;
16
- videos(): APIList<UserFile, FilesQueryParams, any>;
17
- nonMediaFiles(): APIList<UserFile, FilesQueryParams, any>;
18
- performance(): APIList<UserFile, FilesQueryParams, any>;
19
- images(): APIList<UserFile, FilesQueryParams, any>;
20
17
  }
21
18
  export default OutputFileset;
@@ -2,6 +2,7 @@ import { APIList as OriginAPIList } from './APIList';
2
2
  import { APIListCleanupConfigurations as OriginAPIListCleanupConfigurations } from './APIListCleanupConfigurations';
3
3
  import { APIListDevices as OriginAPIListDevices } from './APIListDevices';
4
4
  import { APIListFiles as OriginAPIListFiles } from './APIListFiles';
5
+ import { APIListOutputFiles as OriginAPIListOutputFiles } from './APIListOutputFiles';
5
6
  import { APIListNotifications as OriginAPIListNotifications } from './APIListNotifications';
6
7
  import { APIListProperties as OriginAPIListProperties } from './APIListProperties';
7
8
  import { APIListRuns as OriginAPIListRuns } from './APIListRuns';
@@ -12,6 +13,7 @@ export type APIList = InstanceType<typeof OriginAPIList>;
12
13
  export type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListCleanupConfigurations>;
13
14
  export type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
14
15
  export type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
16
+ export type APIListOutputFiles = InstanceType<typeof OriginAPIListOutputFiles>;
15
17
  export type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
16
18
  export type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
17
19
  export type APIListRuns = InstanceType<typeof OriginAPIListRuns>;
@@ -49,7 +49,7 @@ export type AdminDevice = {
49
49
  unlockGesture: string;
50
50
  };
51
51
  export type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
52
- export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture' | 'testTimeLimit' | 'comment' | 'forceRestore' | 'dedicationEndTime'> & {
52
+ export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture' | 'comment' | 'forceRestore' | 'dedicationEndTime'> & {
53
53
  apiLevel: number;
54
54
  releaseVersion: string;
55
55
  };
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.5.7 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.5.8 | 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.7";
8
+ var version = "1.5.8";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -634,13 +634,37 @@
634
634
  'video/mp4', 'video/avi', 'video/webm', 'video/ogg', 'video/mpeg'
635
635
  ]);
636
636
 
637
+ class APIListOutputFiles extends APIList {
638
+ constructor(parent) {
639
+ super(parent);
640
+ this.push('files');
641
+ }
642
+ performance() {
643
+ return this.params({
644
+ tag: ['performance']
645
+ });
646
+ }
647
+ images() {
648
+ return this.filter(IMAGE_FILES_FILTER);
649
+ }
650
+ nonMediaFiles() {
651
+ return this.filter(NON_MEDIA_FILES_FILTER);
652
+ }
653
+ videos() {
654
+ return this.params({
655
+ filter: 's_state_eq_READY',
656
+ tag: ['video']
657
+ });
658
+ }
659
+ }
660
+
637
661
  exports.OutputFileset = class OutputFileset extends APIResource {
638
662
  constructor(parent) {
639
663
  super(parent);
640
664
  this.push('output-file-set');
641
665
  }
642
666
  files() {
643
- return new APIList(this).push('files');
667
+ return new APIListOutputFiles(this);
644
668
  }
645
669
  file(id) {
646
670
  return new APIResource(this).push('files', id);
@@ -657,23 +681,6 @@
657
681
  screenshotFile(id) {
658
682
  return this.screenshot(id).push('file');
659
683
  }
660
- videos() {
661
- return this.files().params({
662
- filter: 's_state_eq_READY',
663
- tag: ['video']
664
- });
665
- }
666
- nonMediaFiles() {
667
- return this.files().filter(NON_MEDIA_FILES_FILTER);
668
- }
669
- performance() {
670
- return this.files().params({
671
- tag: ['performance']
672
- });
673
- }
674
- images() {
675
- return this.files().filter(IMAGE_FILES_FILTER);
676
- }
677
684
  };
678
685
  exports.OutputFileset = __decorate([
679
686
  NonRequestable