Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
smarthome: update homegraph client URLs
Browse files Browse the repository at this point in the history
Change-Id: Ibec9a52b6729c2d32a0cc4a5bd52b4c2dd475064
  • Loading branch information
proppy committed Apr 23, 2021
1 parent 02e833e commit 81158be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Deprecate SmartHomeApp homegraph wrapper methods: use [Google APIs Node.js
Client](https://www.npmjs.com/package/googleapis) bindings for [Home Graph](https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html).
Client for Home Graph](https://www.npmjs.com/package/@googleapis/homegraph).

## [2.13.0] - 2020-08-26
### Added
Expand Down
46 changes: 23 additions & 23 deletions src/service/smarthome/smarthome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import {google} from 'googleapis';

const encoding = 'utf8';
const homegraphWrapperDeprecationNotice = method =>
`SmartHomeApp.${method} homegraph wrapper method is deprecated. Use Google APIs Node.js Client: https://www.npmjs.com/package/googleapis bindings for Home Graph: https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html`;
`SmartHomeApp.${method} Home Graph wrapper method is deprecated. Use Google APIs Node.js Client for Home Graph: https://www.npmjs.com/package/@googleapis/homegraph`;

/**
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @public
* @deprecated Home Graph credentials are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
export interface SmartHomeJwt {
type: 'service_account';
Expand All @@ -51,9 +51,9 @@ export interface SmartHomeOptions extends AppOptions {
* https://console.cloud.google.com/apis/api/homegraph.googleapis.com/overview
* to learn more.
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph credentials are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
key?: string;

Expand All @@ -62,9 +62,9 @@ export interface SmartHomeOptions extends AppOptions {
* This is used for report state. See https://jwt.io/. A JWT can be
* created through the Google Cloud Console: https://console.cloud.google.com/apis/credentials
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph credentials are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
jwt?: SmartHomeJwt;
}
Expand Down Expand Up @@ -243,9 +243,9 @@ export interface SmartHomeApp extends ServiceBaseApp {
* @param agentUserId The user identifier.
*
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph wrapper methods are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
requestSync(agentUserId: string): Promise<string>;

Expand Down Expand Up @@ -289,27 +289,27 @@ export interface SmartHomeApp extends ServiceBaseApp {
* @param reportedState A payload containing a device or set of devices with their states
*
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph wrapper methods are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
reportState(
reportedState: Api.SmartHomeV1ReportStateRequest
): Promise<string>;

/**
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph credentials are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
key?: string;

/**
* @public
* @deprecated Use Google APIs Node.js Client:
* https://www.npmjs.com/package/googleapis bindings for Home Graph:
* https://googleapis.dev/nodejs/googleapis/latest/homegraph/classes/Homegraph.html
* @deprecated Home Graph credentials are deprecated.
* Use Google APIs Node.js Client for Home Graph:
* https://www.npmjs.com/package/@googleapis/homegraph
*/
jwt?: SmartHomeJwt;
}
Expand Down

0 comments on commit 81158be

Please sign in to comment.