@bitbar/cloud-api-client 1.4.15 → 1.4.16

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.
@@ -2,8 +2,8 @@ import { Method } from 'axios';
2
2
  import { APIAdminResource } from './APIAdminResource';
3
3
  import { APIList } from './APIList';
4
4
  import { APIResource } from './APIResource';
5
- import { AdminTestRun, RunsConfigParams } from './models/AdminTestRun';
6
- import { TestRunConfig } from './models/TestRun';
5
+ import { AdminTestRun } from './models/AdminTestRun';
6
+ import { RunsConfigParams, TestRunConfig } from './models/TestRun';
7
7
  export declare class APIAdminListRuns extends APIList<AdminTestRun> {
8
8
  protected ALLOWED_HTTP_METHODS: Array<Method>;
9
9
  constructor(parent: APIAdminResource);
@@ -1,8 +1,8 @@
1
1
  import { APIAdminResource } from './APIAdminResource';
2
2
  import { APIList } from './APIList';
3
3
  import { APIResource } from './APIResource';
4
- import { Account } from './models/Account';
5
- import { NoData, NoQueryParams } from './models/HTTP';
4
+ import { Account, AccountUsage, AccountUsageSummary } from './models/Account';
5
+ import { NoData, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
6
6
  import { Role, RoleData, RoleParams } from './models/Role';
7
7
  import { AccountService } from './models/AccountService';
8
8
  import { AccountPreferences } from './models/AccountPreference';
@@ -12,5 +12,7 @@ export declare class APIAdminResourceAccount extends APIResource<Account, NoQuer
12
12
  role(id: number): APIResource<Role, RoleParams, void>;
13
13
  accountServices(): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
14
14
  preferences(): APIResource<AccountPreferences, NoQueryParams, Partial<Omit<AccountPreferences, "id">>>;
15
+ usage(): APIList<SimpleCollectionResponse<AccountUsage>, import("./models/HTTP").CollectionQueryParams, any>;
16
+ usageSummary(): APIResource<AccountUsageSummary, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
15
17
  }
16
18
  export default APIAdminResourceAccount;
@@ -1,10 +1,9 @@
1
1
  import { APIList } from './APIList';
2
2
  import { APIResource } from './APIResource';
3
3
  import { APIResourceUser } from './APIResourceUser';
4
- import { NoQueryParams } from './models/HTTP';
5
- import { TestRun, TestRunConfig, TestRunsConfigData, TestRunsData, TestRunsQueryParams } from './models/TestRun';
4
+ import { RunsConfigParams, TestRun, TestRunConfig, TestRunsConfigData, TestRunsData, TestRunsQueryParams } from './models/TestRun';
6
5
  export declare class APIListRuns extends APIList<TestRun, TestRunsQueryParams, TestRunsData> {
7
6
  constructor(parent: APIResourceUser);
8
- config(): APIResource<TestRunConfig, NoQueryParams, TestRunsConfigData>;
7
+ config(): APIResource<TestRunConfig, RunsConfigParams, TestRunsConfigData>;
9
8
  }
10
9
  export default APIListRuns;
@@ -24,3 +24,23 @@ export type AccountData = Partial<{
24
24
  slmOrganizationId: string;
25
25
  userName: string;
26
26
  }>;
27
+ export type AccountUsageSummary = {
28
+ sessionsCount: number;
29
+ duration: number;
30
+ deviceModelsCount: number;
31
+ tunnelEnabledCount: number;
32
+ osVersionsCount: number;
33
+ projectsCount: number;
34
+ usersCount: number;
35
+ };
36
+ export type AccountUsage = {
37
+ timestamp: number;
38
+ timestampLabel: string;
39
+ sessionsCount: number;
40
+ automatedConcurrency: number;
41
+ automatedUsage: number;
42
+ dedicatedConcurrency: number;
43
+ dedicatedUsage: number;
44
+ manualConcurrency: number;
45
+ manualUsage: number;
46
+ };
@@ -20,11 +20,6 @@ export type AdminTestRun = {
20
20
  testRunName: string;
21
21
  userName: string;
22
22
  };
23
- export interface RunsConfigParams extends QueryParams {
24
- includeDeviceGroups: boolean;
25
- includeDevices: boolean;
26
- includeFrameworks: boolean;
27
- }
28
23
  export interface RunChangeBillableParams extends QueryParams {
29
24
  billable: boolean;
30
25
  }
@@ -64,6 +64,12 @@ export declare enum TestRunConfigFileAction {
64
64
  INSTALL = "INSTALL",
65
65
  RUN_TEST = "RUN_TEST"
66
66
  }
67
+ export type TestRunConfigFile = {
68
+ action: TestRunConfigFileAction;
69
+ availableActions: Array<TestRunConfigFileAction>;
70
+ file: UserFile;
71
+ id: number;
72
+ };
67
73
  export type TestRunConfig = {
68
74
  appCrawlerRun: boolean;
69
75
  appiumBrokerAddress: string;
@@ -73,6 +79,7 @@ export type TestRunConfig = {
73
79
  availableDevices: Array<Device>;
74
80
  availableFrameworks: any;
75
81
  availableOsTypes: Array<OsType>;
82
+ biometricInstrumentation: boolean;
76
83
  clientSideTestConfig: any;
77
84
  computedDevices: Array<number>;
78
85
  creditsPrice: number;
@@ -81,11 +88,7 @@ export type TestRunConfig = {
81
88
  deviceLanguageCode: string;
82
89
  deviceNamePattern: string;
83
90
  disableResigning: boolean;
84
- files: Array<{
85
- action: TestRunConfigFileAction;
86
- availableActions: Array<TestRunConfigFileAction>;
87
- file: UserFile;
88
- }>;
91
+ files: Array<TestRunConfigFile> | null;
89
92
  frameworkId: number;
90
93
  hookURL: string;
91
94
  id: number;
@@ -130,11 +133,13 @@ export interface RunQueryParam extends QueryParams {
130
133
  export interface TestRunsData {
131
134
  configuration: TestRunConfig;
132
135
  }
133
- export interface TestRunsConfigData extends TestRunsData {
136
+ export interface TestRunsIncludes {
134
137
  includeDeviceGroups: boolean;
135
138
  includeDevices: boolean;
136
139
  includeFrameworks: boolean;
137
140
  }
141
+ export type RunsConfigParams = TestRunsIncludes & QueryParams;
142
+ export type TestRunsConfigData = TestRunsIncludes & TestRunsData;
138
143
  export interface TestRunsQueryParams extends CollectionBasicQueryParams {
139
144
  forWholeAccount: boolean;
140
145
  skipCommonProject: boolean;
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.4.15 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.4.16 | 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.4.15";
8
+ var version = "1.4.16";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -545,6 +545,12 @@
545
545
  preferences() {
546
546
  return new APIResource(this).push('preferences');
547
547
  }
548
+ usage() {
549
+ return new APIList(this).push('usage');
550
+ }
551
+ usageSummary() {
552
+ return new APIResource(this).push('usage-summary');
553
+ }
548
554
  }
549
555
 
550
556
  class APIAdminResourceAccountService extends APIResource {