@enyo-energy/energy-app-sdk 0.0.36 → 0.0.37

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.
@@ -1,4 +1,4 @@
1
- import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationParameters, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.cjs";
1
+ import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationStart, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.cjs";
2
2
  /**
3
3
  * Interface for requesting user authentication for appliances or the entire package.
4
4
  * Provides methods to handle authentication requests, listen for responses, and manage authentication state.
@@ -15,7 +15,7 @@ export interface EnergyAppAuthentication {
15
15
  /**
16
16
  * If you use oauth with clientIdName and clientSecretName, you need to listen to this and respond with the redirect url
17
17
  */
18
- listenForOauthParameters(listener: (response: EnyoOauthAuthenticationParameters) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
18
+ listenForOauthStart(listener: (response: EnyoOauthAuthenticationStart) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
19
19
  /**
20
20
  * Adds a listener for authentication responses.
21
21
  * The listener will be called when the user completes the authentication process.
@@ -18,9 +18,8 @@ export interface EnyoOauthAuthentication {
18
18
  /** If the client id and client secret need to be provided by the user*/
19
19
  clientIdName?: EnyoPackageConfigurationTranslatedValue[];
20
20
  clientSecretName?: EnyoPackageConfigurationTranslatedValue[];
21
- redirectUrl?: string;
22
21
  }
23
- export interface EnyoOauthAuthenticationParameters {
22
+ export interface EnyoOauthAuthenticationStart {
24
23
  clientId?: string;
25
24
  clientSecret?: string;
26
25
  }
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
9
9
  /**
10
10
  * Current version of the enyo Energy App SDK.
11
11
  */
12
- exports.SDK_VERSION = '0.0.36';
12
+ exports.SDK_VERSION = '0.0.37';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.36";
8
+ export declare const SDK_VERSION = "0.0.37";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -1,4 +1,4 @@
1
- import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationParameters, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.js";
1
+ import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationStart, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.js";
2
2
  /**
3
3
  * Interface for requesting user authentication for appliances or the entire package.
4
4
  * Provides methods to handle authentication requests, listen for responses, and manage authentication state.
@@ -15,7 +15,7 @@ export interface EnergyAppAuthentication {
15
15
  /**
16
16
  * If you use oauth with clientIdName and clientSecretName, you need to listen to this and respond with the redirect url
17
17
  */
18
- listenForOauthParameters(listener: (response: EnyoOauthAuthenticationParameters) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
18
+ listenForOauthStart(listener: (response: EnyoOauthAuthenticationStart) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
19
19
  /**
20
20
  * Adds a listener for authentication responses.
21
21
  * The listener will be called when the user completes the authentication process.
@@ -18,9 +18,8 @@ export interface EnyoOauthAuthentication {
18
18
  /** If the client id and client secret need to be provided by the user*/
19
19
  clientIdName?: EnyoPackageConfigurationTranslatedValue[];
20
20
  clientSecretName?: EnyoPackageConfigurationTranslatedValue[];
21
- redirectUrl?: string;
22
21
  }
23
- export interface EnyoOauthAuthenticationParameters {
22
+ export interface EnyoOauthAuthenticationStart {
24
23
  clientId?: string;
25
24
  clientSecret?: string;
26
25
  }
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.36";
8
+ export declare const SDK_VERSION = "0.0.37";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.36';
8
+ export const SDK_VERSION = '0.0.37';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",