Skip to content

Commit 2899311

Browse files
SDCB-12558 preferences and delete account model updates
1 parent d1a667e commit 2899311

14 files changed

+34
-24
lines changed

dist/api/APIListProperties.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { CollectionQueryParams } from './models/HTTP';
44
import { Property, PropertyData } from './models/Property';
55
export declare class APIListProperties extends APIList<Property, CollectionQueryParams, PropertyData> {
66
constructor(parent: API);
7-
maintenance(): APIList<any, CollectionQueryParams, any>;
7+
maintenance(): APIList<Property, CollectionQueryParams, any>;
88
}
99
export default APIListProperties;

dist/api/APIResourceUser.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { DeviceUsage } from './models/DeviceUsage';
1919
import { Framework } from './models/Framework';
2020
import { Project, UserProjectData, UserProjectQueryParams } from './models/Project';
2121
import { Service } from './models/Service';
22-
import { User } from './models/User';
23-
import { UiPreferencesData, UserPreference } from './models/UserPreference';
22+
import { User, UserDeleteData } from './models/User';
23+
import { UiPreferencesData, UserPreference, UserPreferenceData } from './models/UserPreference';
2424
import { StatisticQueryParams, UserStatistics } from './models/UserStatistics';
2525
import { DeviceSession, DeviceSessionData, DeviceSessionQueryParams } from './models/DeviceSession';
2626
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
@@ -45,7 +45,7 @@ export declare class APIResourceUser extends APIResource<User> {
4545
feedback(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
4646
notifications(): APIListNotifications;
4747
notification(id: number): APIResourceNotification;
48-
preferences(): APIResource<UserPreference, NoQueryParams, UserPreference>;
48+
preferences(): APIResource<UserPreference, NoQueryParams, UserPreferenceData>;
4949
uiPreferences(): APIResource<string, NoQueryParams, UiPreferencesData>;
5050
deviceUsage(): APIList<DeviceUsage, DeviceUsageQueryParams, void>;
5151
statistics(): APIResource<UserStatistics, StatisticQueryParams, void>;
@@ -54,6 +54,6 @@ export declare class APIResourceUser extends APIResource<User> {
5454
accessGroup(id: number): APIResourceAccessGroup;
5555
smartbearTunnel(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
5656
smartbearTunnels(): APIListSmartbearTunnels;
57-
deleteAccount(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
57+
deleteAccount(): APIResource<User, void, UserDeleteData>;
5858
}
5959
export default APIResourceUser;

dist/api/models/User.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export interface UserParams extends CollectionQueryParams {
5555
withRoles: boolean;
5656
}
5757
export declare type UserUpdateAccount = Pick<User, 'accountId'>;
58+
export declare type UserDeleteData = {
59+
password: string;
60+
};
5861
export interface LoginData {
5962
username: string;
6063
password: string;

dist/api/models/UserPreference.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { QueryParams } from './HTTP';
22
export declare type UserPreference = {
33
defaultHttpSessionMaxInactiveInterval: number;
4-
defaultTestTimeout: number;
5-
httpSessionMaxInactiveInterval: number;
4+
httpSessionMaxInactiveInterval: number | null;
65
id: number;
7-
testTimeout: number;
6+
};
7+
export declare type UserPreferenceData = {
8+
httpSessionMaxInactiveInterval: number | null;
89
};
910
export interface UiPreferencesData extends QueryParams {
1011
data: string;

dist/bitbar-cloud-api-client.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)