Skip to content

Commit 989fcec

Browse files
authored
Merge pull request #549 from piotrsapiejewskismartbear/master
SDCB-14055 update AdminDevice model
2 parents de244d6 + 7d07f83 commit 989fcec

8 files changed

Lines changed: 24 additions & 19 deletions

dist/api/models/AdminDevice.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DevicesQueryParams, Platform, SoftwareVersion } from './Device';
22
import { OsType } from './Enum';
33
import { CollectionQueryParams } from './HTTP';
4+
import { Cluster } from './Cluster';
45
export declare enum InitStep {
56
SKIP = "SKIP",
67
REBOOT = "REBOOT",
@@ -18,11 +19,11 @@ export declare enum DeviceState {
1819
ONLINE_TESTING = "ONLINE_TESTING"
1920
}
2021
export type AdminDevice = {
21-
accountId: number;
22-
accountName: string;
23-
cluster: unknown;
22+
accountId: number | null;
23+
accountName: string | null;
24+
cluster: Cluster;
2425
comment: string;
25-
dedicationEndTime: number;
26+
dedicationEndTime: number | null;
2627
deviceModelId: number;
2728
deviceModelName: string;
2829
enabled: boolean;
@@ -48,7 +49,7 @@ export type AdminDevice = {
4849
unlockGesture: string;
4950
};
5051
export type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
51-
export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture'> & {
52+
export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture' | 'testTimeLimit' | 'comment' | 'forceRestore' | 'dedicationEndTime'> & {
5253
apiLevel: number;
5354
releaseVersion: string;
5455
};

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: 2 additions & 2 deletions
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.5.6",
3+
"version": "1.5.7",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

src/api/models/AdminDevice.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {DevicesQueryParams, Platform, SoftwareVersion} from './Device';
22
import {OsType} from './Enum';
33
import {CollectionQueryParams} from './HTTP';
4+
import {Cluster} from './Cluster';
45

56

67
export enum InitStep {
@@ -22,11 +23,11 @@ export enum DeviceState {
2223
}
2324

2425
export type AdminDevice = {
25-
accountId: number;
26-
accountName: string;
27-
cluster: unknown;
26+
accountId: number | null;
27+
accountName: string | null;
28+
cluster: Cluster;
2829
comment: string;
29-
dedicationEndTime: number;
30+
dedicationEndTime: number | null;
3031
deviceModelId: number;
3132
deviceModelName: string;
3233
enabled: boolean;
@@ -55,4 +56,7 @@ export type AdminDevice = {
5556
export type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
5657

5758
export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' |
58-
'serialId' | 'testTimeLimit' | 'unlockGesture'> & {apiLevel: number; releaseVersion: string};
59+
'serialId' | 'testTimeLimit' | 'unlockGesture' | 'comment' | 'forceRestore' | 'dedicationEndTime'> & {
60+
apiLevel: number;
61+
releaseVersion: string;
62+
};

0 commit comments

Comments
 (0)