@maxim_mazurok/gapi.client.smartdevicemanagement-v1 0.0.20230823 → 0.0.20230907
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 -1
- package/package.json +1 -1
- package/readme.md +3 -3
- package/tests.ts +3 -3
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: 20230907
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -45,11 +45,11 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
45
45
|
// declare client_id registered in Google Developers Console
|
|
46
46
|
var client_id = '',
|
|
47
47
|
scope = [
|
|
48
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
49
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
50
|
+
|
|
48
51
|
// See and/or control the devices that you selected
|
|
49
52
|
'https://www.googleapis.com/auth/sdm.service',
|
|
50
|
-
|
|
51
|
-
// See your primary Google Account email address
|
|
52
|
-
'https://www.googleapis.com/auth/userinfo.email',
|
|
53
53
|
],
|
|
54
54
|
immediate = true;
|
|
55
55
|
// ...
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230907
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -15,10 +15,10 @@ gapi.load('client', async () => {
|
|
|
15
15
|
/** declare client_id registered in Google Developers Console */
|
|
16
16
|
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
17
|
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
18
20
|
/** See and/or control the devices that you selected */
|
|
19
21
|
'https://www.googleapis.com/auth/sdm.service',
|
|
20
|
-
/** See your primary Google Account email address */
|
|
21
|
-
'https://www.googleapis.com/auth/userinfo.email',
|
|
22
22
|
];
|
|
23
23
|
const immediate = false;
|
|
24
24
|
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|