@bitbar/cloud-api-client 1.4.11 → 1.4.13
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.
- package/dist/api/APIAdminListStatistics.d.ts +1 -3
- package/dist/api/APIAdminResourceDeviceTime.d.ts +0 -4
- package/dist/api/models/AdminDeviceSession.d.ts +1 -2
- package/dist/api/models/AdminFrameworkStatistics.d.ts +4 -0
- package/dist/api/models/BillingPeriod.d.ts +1 -2
- package/dist/api/models/DeviceSession.d.ts +0 -1
- package/dist/api/models/UserDeviceTime.d.ts +3 -7
- package/dist/api/models/UserDeviceTimeSummary.d.ts +0 -1
- package/dist/bitbar-cloud-api-client.js +2 -11
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +2 -2
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/dist/models.d.ts +0 -3
- package/package.json +1 -1
- package/dist/api/models/AdminDeviceSessionStatistics.d.ts +0 -22
- package/dist/api/models/DeviceTimeCountSessionReportEntry.d.ts +0 -12
- package/dist/api/models/DeviceTimeStepTimeReportEntry.d.ts +0 -12
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { APIAdminResource } from './APIAdminResource';
|
|
2
2
|
import { APIList } from './APIList';
|
|
3
|
-
import {
|
|
4
|
-
import { AdminFrameworkStatistics } from './models/AdminFrameworkStatistics';
|
|
3
|
+
import { AdminFrameworkStatistics, AdminStatisticsParams } from './models/AdminFrameworkStatistics';
|
|
5
4
|
export declare class APIAdminListStatistics extends APIList {
|
|
6
5
|
constructor(parent: APIAdminResource);
|
|
7
|
-
deviceSessions(): APIList<AdminDeviceSessionStatistics, AdminStatisticsParams, void>;
|
|
8
6
|
frameworks(): APIList<AdminFrameworkStatistics, AdminStatisticsParams, void>;
|
|
9
7
|
}
|
|
10
8
|
export default APIAdminListStatistics;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { APIAdminResource } from './APIAdminResource';
|
|
2
2
|
import { APIList } from './APIList';
|
|
3
|
-
import { DeviceTimeCountSessionReportEntry } from './models/DeviceTimeCountSessionReportEntry';
|
|
4
|
-
import { DeviceTimeStepTimeReportEntry } from './models/DeviceTimeStepTimeReportEntry';
|
|
5
3
|
import { NoData } from './models/HTTP';
|
|
6
4
|
import { DeviceTimeParams, UserDeviceTime } from './models/UserDeviceTime';
|
|
7
5
|
export declare class APIAdminResourceDeviceTime extends APIList<UserDeviceTime, DeviceTimeParams, NoData> {
|
|
8
6
|
constructor(parent: APIAdminResource);
|
|
9
|
-
countSessionReport(): APIList<DeviceTimeCountSessionReportEntry, import("./models/HTTP").CollectionQueryParams, any>;
|
|
10
|
-
stepTimeReport(): APIList<DeviceTimeStepTimeReportEntry, import("./models/HTTP").CollectionQueryParams, any>;
|
|
11
7
|
}
|
|
12
8
|
export default APIAdminResourceDeviceTime;
|
|
@@ -3,7 +3,7 @@ export type AdminDeviceSession = {
|
|
|
3
3
|
billable: boolean;
|
|
4
4
|
createTime: number;
|
|
5
5
|
currentStepType: DeviceSessionStepType;
|
|
6
|
-
|
|
6
|
+
duration: number;
|
|
7
7
|
endTime: number;
|
|
8
8
|
errorMessage: string;
|
|
9
9
|
id: number;
|
|
@@ -24,7 +24,6 @@ export type AdminInteractiveDeviceSession = {
|
|
|
24
24
|
deviceModelId: number;
|
|
25
25
|
deviceModelName: string;
|
|
26
26
|
deviceName: string;
|
|
27
|
-
deviceTime: number;
|
|
28
27
|
duration: number;
|
|
29
28
|
endTime: number;
|
|
30
29
|
errorMessage: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
1
2
|
import { DeviceSessionState } from './DeviceSession';
|
|
2
3
|
import { OsType } from './Enum';
|
|
3
4
|
export declare enum FrameworkType {
|
|
@@ -22,3 +23,6 @@ export type AdminFrameworkStatistics = {
|
|
|
22
23
|
userEmail: string;
|
|
23
24
|
userId: number;
|
|
24
25
|
};
|
|
26
|
+
export interface AdminStatisticsParams extends CollectionQueryParams {
|
|
27
|
+
days: number;
|
|
28
|
+
}
|
|
@@ -27,9 +27,8 @@ export type BillingPeriod = {
|
|
|
27
27
|
usages: Array<BillingPeriodUsage>;
|
|
28
28
|
};
|
|
29
29
|
export type BillingPeriodUsage = {
|
|
30
|
-
|
|
30
|
+
duration: number;
|
|
31
31
|
id: number;
|
|
32
|
-
nonBillableSeconds: number;
|
|
33
32
|
osType: OsType;
|
|
34
33
|
type: DeviceSessionType;
|
|
35
34
|
};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { DeviceSessionType } from './DeviceSession';
|
|
2
2
|
import { CollectionQueryParams } from './HTTP';
|
|
3
|
-
export type UserDeviceTime =
|
|
4
|
-
billableTime: number;
|
|
3
|
+
export type UserDeviceTime = {
|
|
5
4
|
createTime: number;
|
|
5
|
+
duration: number;
|
|
6
6
|
endTime: number;
|
|
7
|
-
|
|
7
|
+
id: number;
|
|
8
8
|
type: DeviceSessionType;
|
|
9
9
|
userId: number;
|
|
10
10
|
userName: string;
|
|
11
11
|
};
|
|
12
|
-
export type BasicDeviceTime = {
|
|
13
|
-
deviceTime: number;
|
|
14
|
-
id: number;
|
|
15
|
-
};
|
|
16
12
|
export interface DeviceTimeParams extends CollectionQueryParams {
|
|
17
13
|
forWholeAccount: boolean;
|
|
18
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.4.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.4.13 | 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.
|
|
8
|
+
var version = "1.4.13";
|
|
9
9
|
|
|
10
10
|
/******************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -517,9 +517,6 @@
|
|
|
517
517
|
super(parent);
|
|
518
518
|
this.push('admin', 'statistics');
|
|
519
519
|
}
|
|
520
|
-
deviceSessions() {
|
|
521
|
-
return new APIList(this).push('device-sessions');
|
|
522
|
-
}
|
|
523
520
|
frameworks() {
|
|
524
521
|
return new APIList(this).push('frameworks');
|
|
525
522
|
}
|
|
@@ -767,12 +764,6 @@
|
|
|
767
764
|
super(parent);
|
|
768
765
|
this.push('admin', 'device-time');
|
|
769
766
|
}
|
|
770
|
-
countSessionReport() {
|
|
771
|
-
return new APIList(this).push('count-session-report');
|
|
772
|
-
}
|
|
773
|
-
stepTimeReport() {
|
|
774
|
-
return new APIList(this).push('step-time-report');
|
|
775
|
-
}
|
|
776
767
|
}
|
|
777
768
|
|
|
778
769
|
class APIAdminResourceFramework extends APIResource {
|