@@ -186,6 +186,15 @@ declare global {
186
186
role ?: string ;
187
187
}
188
188
189
+ type SmartNameObject = { [ lang in ioBroker . Languages ] ?: string } & {
190
+ /** Which kind of device it is */
191
+ smartType ?: string | null ;
192
+ /** Which value to set when the ON command is issued */
193
+ byON ?: string | null ;
194
+ } ;
195
+
196
+ type SmartName = null | false | string | SmartNameObject ;
197
+
189
198
interface StateCommon extends ObjectCommon {
190
199
/** Type of this state. See https://github.com/ioBroker/ioBroker/blob/master/doc/SCHEMA.md#state-commonrole for a detailed description */
191
200
type : CommonType ;
@@ -268,16 +277,7 @@ declare global {
268
277
* The string "ignore" (deprecated please use boolean `false` instead) or boolean value `false` is a special case, causing the state to be ignored.
269
278
* A value of `null` means that the device should be removed by the IOT adapters
270
279
*/
271
- smartName ?:
272
- | null
273
- | false
274
- | string
275
- | ( { [ lang in Languages ] ?: string } & {
276
- /** Which kind of device it is */
277
- smartType ?: string | null ;
278
- /** Which value to set when the ON command is issued */
279
- byON ?: string | null ;
280
- } ) ;
280
+ smartName ?: SmartName ;
281
281
}
282
282
283
283
interface ChannelCommon extends ObjectCommon {
@@ -320,6 +320,13 @@ declare global {
320
320
321
321
// Make it possible to narrow the object type using the custom property
322
322
custom ?: undefined ;
323
+
324
+ /**
325
+ * Settings for IOT adapters and how the state should be named in e.g., Alexa.
326
+ * The string "ignore" (deprecated please use boolean `false` instead) or boolean value `false` is a special case, causing the state to be ignored.
327
+ * A value of `null` means that the device should be removed by the IOT adapters
328
+ */
329
+ smartName ?: SmartName ;
323
330
}
324
331
325
332
interface MetaCommon extends ObjectCommon {
@@ -627,6 +634,21 @@ declare global {
627
634
singleton ?: boolean ;
628
635
/** Order number in admin tabs */
629
636
order ?: number ;
637
+ /**
638
+ * If page sends 'iobLoaded' event:
639
+ *
640
+ * if (window.parent !== window) {
641
+ * try {
642
+ * window.parent.postMessage('iobLoaded', '*');
643
+ * } catch {
644
+ * // ignore
645
+ * }
646
+ * }
647
+ *
648
+ * When loaded in iframe, inform parent window
649
+ * Admin will hide a loading spinner when the message will be received.
650
+ */
651
+ supportsLoadingMessage ?: boolean ;
630
652
} ;
631
653
/** If the mode is `schedule`, start one time adapter by ioBroker start, or by the configuration changes */
632
654
allowInit ?: boolean ;
0 commit comments