@maxim_mazurok/gapi.client.smartdevicemanagement-v1 0.2.20260303 → 0.2.20260601
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/index.d.ts +1 -7
- package/package.json +1 -1
- package/readme.md +17 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://smartdevicemanagement.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260601
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -29,8 +29,6 @@ declare namespace gapi.client {
|
|
|
29
29
|
|
|
30
30
|
namespace smartdevicemanagement {
|
|
31
31
|
interface GoogleHomeEnterpriseSdmV1Device {
|
|
32
|
-
/** Output only. The GHP device ID of the device. */
|
|
33
|
-
ghpName?: string;
|
|
34
32
|
/** Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". */
|
|
35
33
|
name?: string;
|
|
36
34
|
/** Assignee details of the device. */
|
|
@@ -65,8 +63,6 @@ declare namespace gapi.client {
|
|
|
65
63
|
interface GoogleHomeEnterpriseSdmV1ParentRelation {
|
|
66
64
|
/** Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. */
|
|
67
65
|
displayName?: string;
|
|
68
|
-
/** Output only. The GHP name of the relation -- e.g., structure/room where the device is assigned to. For example: "homegraph.googleapis.com/Structure/ABC" or "homegraph.googleapis.com/Room/ABC" */
|
|
69
|
-
ghpParent?: string;
|
|
70
66
|
/** Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ABC/rooms/123" */
|
|
71
67
|
parent?: string;
|
|
72
68
|
}
|
|
@@ -77,8 +73,6 @@ declare namespace gapi.client {
|
|
|
77
73
|
traits?: {[P in string]: any};
|
|
78
74
|
}
|
|
79
75
|
interface GoogleHomeEnterpriseSdmV1Structure {
|
|
80
|
-
/** Output only. The unique identifier for the structure in Google Home Platform. Format: homegraph.googleapis.com/Structure/{structure_id} */
|
|
81
|
-
ghpName?: string;
|
|
82
76
|
/** Output only. The resource name of the structure. For example: "enterprises/XYZ/structures/ABC". */
|
|
83
77
|
name?: string;
|
|
84
78
|
/** Structure traits. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Smart Device Management API:
|
|
|
11
11
|
npm install @types/gapi.client.smartdevicemanagement-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.smartdevicemanagement-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|