@enyo-energy/energy-app-sdk 0.0.98 → 0.0.99

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.
@@ -27,6 +27,21 @@ export type EnyoSelectDisplayOption = 'dropdown' | 'radioButtons';
27
27
  * - `stepper`: renders as a stepper control with +/- buttons
28
28
  */
29
29
  export type EnyoFloatDisplayOption = 'stepper';
30
+ /**
31
+ * Step option for time-type settings, defining the interval between selectable time values.
32
+ * - `'15min'`: 15-minute intervals (e.g., 00:00, 00:15, 00:30, ...)
33
+ * - `'30min'`: 30-minute intervals (e.g., 00:00, 00:30, 01:00, ...)
34
+ * - `'1hour'`: 1-hour intervals (e.g., 00:00, 01:00, 02:00, ...)
35
+ */
36
+ export type EnyoTimeStepOption = '15min' | '30min' | '1hour';
37
+ /**
38
+ * Configuration options for time-type settings.
39
+ * Time values are represented in "HH:mm" format (e.g., "08:00", "14:30").
40
+ */
41
+ export interface EnyoPackageConfigurationSettingTimeOptions {
42
+ /** The step interval between selectable time values */
43
+ stepOption: EnyoTimeStepOption;
44
+ }
30
45
  /**
31
46
  * Configuration options for float-type settings.
32
47
  */
@@ -58,7 +73,7 @@ export interface EnyoPackageConfigurationSetting {
58
73
  /** internal name of the setting - must be unique */
59
74
  name: string;
60
75
  /** the type of the setting */
61
- type: 'text' | 'select' | 'float' | 'integer' | 'checkbox';
76
+ type: 'text' | 'select' | 'float' | 'integer' | 'checkbox' | 'time';
62
77
  /** if the setting is required */
63
78
  required: boolean;
64
79
  /** The displayed name of the field */
@@ -75,6 +90,8 @@ export interface EnyoPackageConfigurationSetting {
75
90
  floatOptions?: EnyoPackageConfigurationSettingFloatOptions;
76
91
  integerOptions?: EnyoPackageConfigurationSettingIntegerOptions;
77
92
  textOptions?: EnyoPackageConfigurationSettingTextOptions;
93
+ /** Optional configuration for time-type settings. Values are in "HH:mm" format. */
94
+ timeOptions?: EnyoPackageConfigurationSettingTimeOptions;
78
95
  }
79
96
  /**
80
97
  * Represents a change event when a setting value is modified.
@@ -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.98';
12
+ exports.SDK_VERSION = '0.0.99';
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.98";
8
+ export declare const SDK_VERSION = "0.0.99";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -27,6 +27,21 @@ export type EnyoSelectDisplayOption = 'dropdown' | 'radioButtons';
27
27
  * - `stepper`: renders as a stepper control with +/- buttons
28
28
  */
29
29
  export type EnyoFloatDisplayOption = 'stepper';
30
+ /**
31
+ * Step option for time-type settings, defining the interval between selectable time values.
32
+ * - `'15min'`: 15-minute intervals (e.g., 00:00, 00:15, 00:30, ...)
33
+ * - `'30min'`: 30-minute intervals (e.g., 00:00, 00:30, 01:00, ...)
34
+ * - `'1hour'`: 1-hour intervals (e.g., 00:00, 01:00, 02:00, ...)
35
+ */
36
+ export type EnyoTimeStepOption = '15min' | '30min' | '1hour';
37
+ /**
38
+ * Configuration options for time-type settings.
39
+ * Time values are represented in "HH:mm" format (e.g., "08:00", "14:30").
40
+ */
41
+ export interface EnyoPackageConfigurationSettingTimeOptions {
42
+ /** The step interval between selectable time values */
43
+ stepOption: EnyoTimeStepOption;
44
+ }
30
45
  /**
31
46
  * Configuration options for float-type settings.
32
47
  */
@@ -58,7 +73,7 @@ export interface EnyoPackageConfigurationSetting {
58
73
  /** internal name of the setting - must be unique */
59
74
  name: string;
60
75
  /** the type of the setting */
61
- type: 'text' | 'select' | 'float' | 'integer' | 'checkbox';
76
+ type: 'text' | 'select' | 'float' | 'integer' | 'checkbox' | 'time';
62
77
  /** if the setting is required */
63
78
  required: boolean;
64
79
  /** The displayed name of the field */
@@ -75,6 +90,8 @@ export interface EnyoPackageConfigurationSetting {
75
90
  floatOptions?: EnyoPackageConfigurationSettingFloatOptions;
76
91
  integerOptions?: EnyoPackageConfigurationSettingIntegerOptions;
77
92
  textOptions?: EnyoPackageConfigurationSettingTextOptions;
93
+ /** Optional configuration for time-type settings. Values are in "HH:mm" format. */
94
+ timeOptions?: EnyoPackageConfigurationSettingTimeOptions;
78
95
  }
79
96
  /**
80
97
  * Represents a change event when a setting value is modified.
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.98";
8
+ export declare const SDK_VERSION = "0.0.99";
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.98';
8
+ export const SDK_VERSION = '0.0.99';
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.98",
3
+ "version": "0.0.99",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",