@bitbar/cloud-api-client 1.5.0 → 1.5.2

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,7 +2,7 @@ import { API } from '../API';
2
2
  import { APIList } from './APIList';
3
3
  import { APIResource } from './APIResource';
4
4
  import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
5
- import { Account, AccountData } from './models/Account';
5
+ import { Account, AccountData, AccountSessionUsage, AccountSessionUsageSummary } from './models/Account';
6
6
  import { AccountConcurrencyStatusMap } from './models/AccountConcurrencyStatusMap';
7
7
  import { AccountPreferences } from './models/AccountPreference';
8
8
  import { AccountService, ServicePaymentStatus } from './models/AccountService';
@@ -32,5 +32,7 @@ export declare class APIResourceAccount extends APIResource<Account, QueryParams
32
32
  accountServices(): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
33
33
  accountService(id: number): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
34
34
  services(): APIResource<ServicePaymentStatus, QueryParams, QueryParams>;
35
+ usageDetails(): APIList<AccountSessionUsage, import("./models/HTTP").CollectionQueryParams, any>;
36
+ usageDetailsSummary(): APIResource<AccountSessionUsageSummary, QueryParams, QueryParams>;
35
37
  }
36
38
  export default APIResourceAccount;
@@ -44,6 +44,23 @@ export type AccountUsage = {
44
44
  manualConcurrency: number;
45
45
  manualUsage: number;
46
46
  };
47
+ export type AccountSessionUsage = {
48
+ createTime: number;
49
+ duration: number;
50
+ type: SessionUsageType;
51
+ userId: number;
52
+ userName: string;
53
+ };
54
+ export type AccountSessionUsageSummary = {
55
+ totalTime: number;
56
+ usage: Record<SessionUsageType, number>;
57
+ };
58
+ export declare enum SessionUsageType {
59
+ AUTOMATIC = "AUTOMATIC",
60
+ MANUAL = "MANUAL",
61
+ DEDICATED_AUTOMATIC = "DEDICATED_AUTOMATIC",
62
+ DEDICATED_MANUAL = "DEDICATED_MANUAL"
63
+ }
47
64
  export declare enum UtilizationType {
48
65
  ALL = "all",
49
66
  PUBLIC = "public",
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.5.0 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.5.2 | 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.0";
8
+ var version = "1.5.2";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -1475,6 +1475,12 @@
1475
1475
  services() {
1476
1476
  return new APIResource(this).push('services');
1477
1477
  }
1478
+ usageDetails() {
1479
+ return new APIList(this).push('usage-details');
1480
+ }
1481
+ usageDetailsSummary() {
1482
+ return new APIResource(this).push('usage-details-summary');
1483
+ }
1478
1484
  }
1479
1485
 
1480
1486
  class APIResourceBroker extends APIResource {
@@ -1875,6 +1881,13 @@
1875
1881
  AccessGroupScope["GLOBAL"] = "GLOBAL";
1876
1882
  })(exports.AccessGroupScope || (exports.AccessGroupScope = {}));
1877
1883
 
1884
+ exports.SessionUsageType = void 0;
1885
+ (function (SessionUsageType) {
1886
+ SessionUsageType["AUTOMATIC"] = "AUTOMATIC";
1887
+ SessionUsageType["MANUAL"] = "MANUAL";
1888
+ SessionUsageType["DEDICATED_AUTOMATIC"] = "DEDICATED_AUTOMATIC";
1889
+ SessionUsageType["DEDICATED_MANUAL"] = "DEDICATED_MANUAL";
1890
+ })(exports.SessionUsageType || (exports.SessionUsageType = {}));
1878
1891
  exports.UtilizationType = void 0;
1879
1892
  (function (UtilizationType) {
1880
1893
  UtilizationType["ALL"] = "all";