@bitbar/cloud-api-client 1.4.16 → 1.4.17

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.
@@ -1,7 +1,7 @@
1
1
  import { APIAdminResource } from './APIAdminResource';
2
2
  import { APIList } from './APIList';
3
3
  import { APIResource } from './APIResource';
4
- import { Account, AccountUsage, AccountUsageSummary } from './models/Account';
4
+ import { Account, AccountUsage, AccountUsageParams, AccountUsageSummary, AccountUsageSummaryParams } from './models/Account';
5
5
  import { NoData, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
6
6
  import { Role, RoleData, RoleParams } from './models/Role';
7
7
  import { AccountService } from './models/AccountService';
@@ -12,7 +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
+ usage(): APIList<SimpleCollectionResponse<AccountUsage>, AccountUsageParams, any>;
16
+ usageSummary(): APIResource<AccountUsageSummary, AccountUsageSummaryParams, AccountUsageSummaryParams>;
17
17
  }
18
18
  export default APIAdminResourceAccount;
@@ -1,3 +1,4 @@
1
+ import { CollectionQueryParams } from './HTTP';
1
2
  export type Account = {
2
3
  activeServiceName: string;
3
4
  comment: string;
@@ -44,3 +45,25 @@ export type AccountUsage = {
44
45
  manualConcurrency: number;
45
46
  manualUsage: number;
46
47
  };
48
+ export declare enum UtilizationType {
49
+ ALL = "all",
50
+ PUBLIC = "public",
51
+ DEDICATED = "dedicated"
52
+ }
53
+ export declare enum SessionType {
54
+ ALL = "all",
55
+ AUTOMATED = "automated",
56
+ MANUAL = "manual"
57
+ }
58
+ export declare enum TimeResolution {
59
+ HOUR = "hour",
60
+ DAY = "day"
61
+ }
62
+ export type AccountUsageParams = CollectionQueryParams & {
63
+ grouping?: TimeResolution;
64
+ sessionType?: SessionType;
65
+ utilizationType?: UtilizationType;
66
+ };
67
+ export type AccountUsageSummaryParams = CollectionQueryParams & {
68
+ grouping?: TimeResolution;
69
+ };
@@ -4,7 +4,7 @@ export type Role = {
4
4
  expireTime: number;
5
5
  id: number;
6
6
  name: string;
7
- value: number;
7
+ value: number | null;
8
8
  valueCalculated: boolean;
9
9
  userRole: boolean;
10
10
  };
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.4.16 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.4.17 | 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.16";
8
+ var version = "1.4.17";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -1937,6 +1937,24 @@
1937
1937
  AccessGroupScope["GLOBAL"] = "GLOBAL";
1938
1938
  })(exports.AccessGroupScope || (exports.AccessGroupScope = {}));
1939
1939
 
1940
+ exports.UtilizationType = void 0;
1941
+ (function (UtilizationType) {
1942
+ UtilizationType["ALL"] = "all";
1943
+ UtilizationType["PUBLIC"] = "public";
1944
+ UtilizationType["DEDICATED"] = "dedicated";
1945
+ })(exports.UtilizationType || (exports.UtilizationType = {}));
1946
+ exports.SessionType = void 0;
1947
+ (function (SessionType) {
1948
+ SessionType["ALL"] = "all";
1949
+ SessionType["AUTOMATED"] = "automated";
1950
+ SessionType["MANUAL"] = "manual";
1951
+ })(exports.SessionType || (exports.SessionType = {}));
1952
+ exports.TimeResolution = void 0;
1953
+ (function (TimeResolution) {
1954
+ TimeResolution["HOUR"] = "hour";
1955
+ TimeResolution["DAY"] = "day";
1956
+ })(exports.TimeResolution || (exports.TimeResolution = {}));
1957
+
1940
1958
  exports.PaymentStatus = void 0;
1941
1959
  (function (PaymentStatus) {
1942
1960
  PaymentStatus["SUCCEEDED"] = "SUCCEEDED";