@signageos/front-applet 8.5.3 → 8.7.0
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/dist/bundle.js +7 -7
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +0 -270
- package/docs/sos/browser.md +0 -14
- package/docs/sos/command.md +0 -18
- package/docs/sos/deviceInfo.md +0 -17
- package/docs/sos/display.md +0 -8
- package/docs/sos/fileSystem.md +0 -488
- package/docs/sos/hardware/index.md +2 -49
- package/docs/sos/input.md +0 -12
- package/docs/sos/native/mdc.md +1 -35
- package/docs/sos/native/nmc.md +127 -0
- package/docs/sos/offline/cache.md +0 -6
- package/docs/sos/offline/index.md +0 -27
- package/docs/sos/proofOfPlay.md +0 -10
- package/docs/sos/stream.md +11 -781
- package/docs/sos/sync.md +5 -21
- package/docs/sos/video.md +0 -86
- package/docs/sos_management/app.md +32 -29
- package/docs/sos_management/index.md +0 -8
- package/docs/sos_management/network.md +0 -19
- package/docs/sos_management/os.md +0 -11
- package/docs/sos_management/power.md +50 -30
- package/docs/sos_management/screen.md +0 -7
- package/docs/sos_management/time.md +0 -3
- package/docs/sos_management/wifi.md +0 -101
- package/es6/FrontApplet/Management/App/App.d.ts +34 -24
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/Power/IPower.d.ts +32 -10
- package/es6/FrontApplet/Management/Power/IPower.js +3 -0
- package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +12 -8
- package/es6/FrontApplet/Management/Power/Power.js +23 -32
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +8 -3
- package/es6/FrontApplet/Management/Power/PowerHelper.js +32 -0
- package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +2 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +3 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js +66 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.d.ts +21 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.d.ts +50 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js +77 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +2 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +6 -0
- package/es6/FrontApplet/Sync/Sync.js +3 -1
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +5 -0
- package/es6/Monitoring/Management/Power/powerCommands.d.ts +3 -3
- package/package.json +1 -1
package/docs/fpath/index.md
CHANGED
|
@@ -57,43 +57,16 @@ Return the last portion of path, since it is not a valid path, a string is retur
|
|
|
57
57
|
```ts expandable
|
|
58
58
|
basename(filePath: IFilePath, suffix?: string): string;
|
|
59
59
|
// show-more
|
|
60
|
-
/**
|
|
61
|
-
* Base File System interface for methods.
|
|
62
|
-
*/
|
|
63
60
|
interface IFilePath {
|
|
64
|
-
/**
|
|
65
|
-
* Storage unit which is selected for performing file operations.
|
|
66
|
-
*/
|
|
67
61
|
storageUnit: IStorageUnit;
|
|
68
|
-
/**
|
|
69
|
-
* File path within the storage unit.
|
|
70
|
-
*/
|
|
71
62
|
filePath: string;
|
|
72
63
|
}
|
|
73
64
|
|
|
74
|
-
/**
|
|
75
|
-
* File System Storage Unit returned by the File System API.
|
|
76
|
-
*/
|
|
77
65
|
interface IStorageUnit {
|
|
78
|
-
/**
|
|
79
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
80
|
-
*/
|
|
81
66
|
type: string;
|
|
82
|
-
/**
|
|
83
|
-
* The total capacity of the storage unit in bytes.
|
|
84
|
-
*/
|
|
85
67
|
capacity: number;
|
|
86
|
-
/**
|
|
87
|
-
* The amount of free space available in the storage unit in bytes.
|
|
88
|
-
*/
|
|
89
68
|
freeSpace: number;
|
|
90
|
-
/**
|
|
91
|
-
* The amount of usable space in the storage unit in bytes.
|
|
92
|
-
*/
|
|
93
69
|
usableSpace: number;
|
|
94
|
-
/**
|
|
95
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
96
|
-
*/
|
|
97
70
|
removable: boolean;
|
|
98
71
|
}
|
|
99
72
|
|
|
@@ -126,43 +99,16 @@ Concatenate filePath with paths without adding separator.
|
|
|
126
99
|
```ts expandable
|
|
127
100
|
concat(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
128
101
|
// show-more
|
|
129
|
-
/**
|
|
130
|
-
* Base File System interface for methods.
|
|
131
|
-
*/
|
|
132
102
|
interface IFilePath {
|
|
133
|
-
/**
|
|
134
|
-
* Storage unit which is selected for performing file operations.
|
|
135
|
-
*/
|
|
136
103
|
storageUnit: IStorageUnit;
|
|
137
|
-
/**
|
|
138
|
-
* File path within the storage unit.
|
|
139
|
-
*/
|
|
140
104
|
filePath: string;
|
|
141
105
|
}
|
|
142
106
|
|
|
143
|
-
/**
|
|
144
|
-
* File System Storage Unit returned by the File System API.
|
|
145
|
-
*/
|
|
146
107
|
interface IStorageUnit {
|
|
147
|
-
/**
|
|
148
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
149
|
-
*/
|
|
150
108
|
type: string;
|
|
151
|
-
/**
|
|
152
|
-
* The total capacity of the storage unit in bytes.
|
|
153
|
-
*/
|
|
154
109
|
capacity: number;
|
|
155
|
-
/**
|
|
156
|
-
* The amount of free space available in the storage unit in bytes.
|
|
157
|
-
*/
|
|
158
110
|
freeSpace: number;
|
|
159
|
-
/**
|
|
160
|
-
* The amount of usable space in the storage unit in bytes.
|
|
161
|
-
*/
|
|
162
111
|
usableSpace: number;
|
|
163
|
-
/**
|
|
164
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
165
|
-
*/
|
|
166
112
|
removable: boolean;
|
|
167
113
|
}
|
|
168
114
|
|
|
@@ -195,43 +141,16 @@ Removes the last portion of path, returning the parent directory of the path. Ig
|
|
|
195
141
|
```ts expandable
|
|
196
142
|
dirname(filePath: IFilePath): IFilePath;
|
|
197
143
|
// show-more
|
|
198
|
-
/**
|
|
199
|
-
* Base File System interface for methods.
|
|
200
|
-
*/
|
|
201
144
|
interface IFilePath {
|
|
202
|
-
/**
|
|
203
|
-
* Storage unit which is selected for performing file operations.
|
|
204
|
-
*/
|
|
205
145
|
storageUnit: IStorageUnit;
|
|
206
|
-
/**
|
|
207
|
-
* File path within the storage unit.
|
|
208
|
-
*/
|
|
209
146
|
filePath: string;
|
|
210
147
|
}
|
|
211
148
|
|
|
212
|
-
/**
|
|
213
|
-
* File System Storage Unit returned by the File System API.
|
|
214
|
-
*/
|
|
215
149
|
interface IStorageUnit {
|
|
216
|
-
/**
|
|
217
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
218
|
-
*/
|
|
219
150
|
type: string;
|
|
220
|
-
/**
|
|
221
|
-
* The total capacity of the storage unit in bytes.
|
|
222
|
-
*/
|
|
223
151
|
capacity: number;
|
|
224
|
-
/**
|
|
225
|
-
* The amount of free space available in the storage unit in bytes.
|
|
226
|
-
*/
|
|
227
152
|
freeSpace: number;
|
|
228
|
-
/**
|
|
229
|
-
* The amount of usable space in the storage unit in bytes.
|
|
230
|
-
*/
|
|
231
153
|
usableSpace: number;
|
|
232
|
-
/**
|
|
233
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
234
|
-
*/
|
|
235
154
|
removable: boolean;
|
|
236
155
|
}
|
|
237
156
|
|
|
@@ -263,43 +182,16 @@ Returns extension of the path, from the last period, including the period.
|
|
|
263
182
|
```ts expandable
|
|
264
183
|
extname(filePath: IFilePath): string;
|
|
265
184
|
// show-more
|
|
266
|
-
/**
|
|
267
|
-
* Base File System interface for methods.
|
|
268
|
-
*/
|
|
269
185
|
interface IFilePath {
|
|
270
|
-
/**
|
|
271
|
-
* Storage unit which is selected for performing file operations.
|
|
272
|
-
*/
|
|
273
186
|
storageUnit: IStorageUnit;
|
|
274
|
-
/**
|
|
275
|
-
* File path within the storage unit.
|
|
276
|
-
*/
|
|
277
187
|
filePath: string;
|
|
278
188
|
}
|
|
279
189
|
|
|
280
|
-
/**
|
|
281
|
-
* File System Storage Unit returned by the File System API.
|
|
282
|
-
*/
|
|
283
190
|
interface IStorageUnit {
|
|
284
|
-
/**
|
|
285
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
286
|
-
*/
|
|
287
191
|
type: string;
|
|
288
|
-
/**
|
|
289
|
-
* The total capacity of the storage unit in bytes.
|
|
290
|
-
*/
|
|
291
192
|
capacity: number;
|
|
292
|
-
/**
|
|
293
|
-
* The amount of free space available in the storage unit in bytes.
|
|
294
|
-
*/
|
|
295
193
|
freeSpace: number;
|
|
296
|
-
/**
|
|
297
|
-
* The amount of usable space in the storage unit in bytes.
|
|
298
|
-
*/
|
|
299
194
|
usableSpace: number;
|
|
300
|
-
/**
|
|
301
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
302
|
-
*/
|
|
303
195
|
removable: boolean;
|
|
304
196
|
}
|
|
305
197
|
|
|
@@ -331,43 +223,16 @@ Always returns true, because all file paths are absolute
|
|
|
331
223
|
```ts expandable
|
|
332
224
|
isAbsolute(_: IFilePath): boolean;
|
|
333
225
|
// show-more
|
|
334
|
-
/**
|
|
335
|
-
* Base File System interface for methods.
|
|
336
|
-
*/
|
|
337
226
|
interface IFilePath {
|
|
338
|
-
/**
|
|
339
|
-
* Storage unit which is selected for performing file operations.
|
|
340
|
-
*/
|
|
341
227
|
storageUnit: IStorageUnit;
|
|
342
|
-
/**
|
|
343
|
-
* File path within the storage unit.
|
|
344
|
-
*/
|
|
345
228
|
filePath: string;
|
|
346
229
|
}
|
|
347
230
|
|
|
348
|
-
/**
|
|
349
|
-
* File System Storage Unit returned by the File System API.
|
|
350
|
-
*/
|
|
351
231
|
interface IStorageUnit {
|
|
352
|
-
/**
|
|
353
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
354
|
-
*/
|
|
355
232
|
type: string;
|
|
356
|
-
/**
|
|
357
|
-
* The total capacity of the storage unit in bytes.
|
|
358
|
-
*/
|
|
359
233
|
capacity: number;
|
|
360
|
-
/**
|
|
361
|
-
* The amount of free space available in the storage unit in bytes.
|
|
362
|
-
*/
|
|
363
234
|
freeSpace: number;
|
|
364
|
-
/**
|
|
365
|
-
* The amount of usable space in the storage unit in bytes.
|
|
366
|
-
*/
|
|
367
235
|
usableSpace: number;
|
|
368
|
-
/**
|
|
369
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
370
|
-
*/
|
|
371
236
|
removable: boolean;
|
|
372
237
|
}
|
|
373
238
|
|
|
@@ -388,43 +253,16 @@ Returns new filePath with paths appended to it and normalized (resolved . and ..
|
|
|
388
253
|
```ts expandable
|
|
389
254
|
join(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
390
255
|
// show-more
|
|
391
|
-
/**
|
|
392
|
-
* Base File System interface for methods.
|
|
393
|
-
*/
|
|
394
256
|
interface IFilePath {
|
|
395
|
-
/**
|
|
396
|
-
* Storage unit which is selected for performing file operations.
|
|
397
|
-
*/
|
|
398
257
|
storageUnit: IStorageUnit;
|
|
399
|
-
/**
|
|
400
|
-
* File path within the storage unit.
|
|
401
|
-
*/
|
|
402
258
|
filePath: string;
|
|
403
259
|
}
|
|
404
260
|
|
|
405
|
-
/**
|
|
406
|
-
* File System Storage Unit returned by the File System API.
|
|
407
|
-
*/
|
|
408
261
|
interface IStorageUnit {
|
|
409
|
-
/**
|
|
410
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
411
|
-
*/
|
|
412
262
|
type: string;
|
|
413
|
-
/**
|
|
414
|
-
* The total capacity of the storage unit in bytes.
|
|
415
|
-
*/
|
|
416
263
|
capacity: number;
|
|
417
|
-
/**
|
|
418
|
-
* The amount of free space available in the storage unit in bytes.
|
|
419
|
-
*/
|
|
420
264
|
freeSpace: number;
|
|
421
|
-
/**
|
|
422
|
-
* The amount of usable space in the storage unit in bytes.
|
|
423
|
-
*/
|
|
424
265
|
usableSpace: number;
|
|
425
|
-
/**
|
|
426
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
427
|
-
*/
|
|
428
266
|
removable: boolean;
|
|
429
267
|
}
|
|
430
268
|
|
|
@@ -457,43 +295,16 @@ Resolves `.` and `..` in the path and removes multiple slashes.
|
|
|
457
295
|
```ts expandable
|
|
458
296
|
normalize(filePath: IFilePath): IFilePath;
|
|
459
297
|
// show-more
|
|
460
|
-
/**
|
|
461
|
-
* Base File System interface for methods.
|
|
462
|
-
*/
|
|
463
298
|
interface IFilePath {
|
|
464
|
-
/**
|
|
465
|
-
* Storage unit which is selected for performing file operations.
|
|
466
|
-
*/
|
|
467
299
|
storageUnit: IStorageUnit;
|
|
468
|
-
/**
|
|
469
|
-
* File path within the storage unit.
|
|
470
|
-
*/
|
|
471
300
|
filePath: string;
|
|
472
301
|
}
|
|
473
302
|
|
|
474
|
-
/**
|
|
475
|
-
* File System Storage Unit returned by the File System API.
|
|
476
|
-
*/
|
|
477
303
|
interface IStorageUnit {
|
|
478
|
-
/**
|
|
479
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
480
|
-
*/
|
|
481
304
|
type: string;
|
|
482
|
-
/**
|
|
483
|
-
* The total capacity of the storage unit in bytes.
|
|
484
|
-
*/
|
|
485
305
|
capacity: number;
|
|
486
|
-
/**
|
|
487
|
-
* The amount of free space available in the storage unit in bytes.
|
|
488
|
-
*/
|
|
489
306
|
freeSpace: number;
|
|
490
|
-
/**
|
|
491
|
-
* The amount of usable space in the storage unit in bytes.
|
|
492
|
-
*/
|
|
493
307
|
usableSpace: number;
|
|
494
|
-
/**
|
|
495
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
496
|
-
*/
|
|
497
308
|
removable: boolean;
|
|
498
309
|
}
|
|
499
310
|
|
|
@@ -525,43 +336,16 @@ Works like `fpath.join()`, but if any of the paths is an absolute path, it will
|
|
|
525
336
|
```ts expandable
|
|
526
337
|
resolve(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
527
338
|
// show-more
|
|
528
|
-
/**
|
|
529
|
-
* Base File System interface for methods.
|
|
530
|
-
*/
|
|
531
339
|
interface IFilePath {
|
|
532
|
-
/**
|
|
533
|
-
* Storage unit which is selected for performing file operations.
|
|
534
|
-
*/
|
|
535
340
|
storageUnit: IStorageUnit;
|
|
536
|
-
/**
|
|
537
|
-
* File path within the storage unit.
|
|
538
|
-
*/
|
|
539
341
|
filePath: string;
|
|
540
342
|
}
|
|
541
343
|
|
|
542
|
-
/**
|
|
543
|
-
* File System Storage Unit returned by the File System API.
|
|
544
|
-
*/
|
|
545
344
|
interface IStorageUnit {
|
|
546
|
-
/**
|
|
547
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
548
|
-
*/
|
|
549
345
|
type: string;
|
|
550
|
-
/**
|
|
551
|
-
* The total capacity of the storage unit in bytes.
|
|
552
|
-
*/
|
|
553
346
|
capacity: number;
|
|
554
|
-
/**
|
|
555
|
-
* The amount of free space available in the storage unit in bytes.
|
|
556
|
-
*/
|
|
557
347
|
freeSpace: number;
|
|
558
|
-
/**
|
|
559
|
-
* The amount of usable space in the storage unit in bytes.
|
|
560
|
-
*/
|
|
561
348
|
usableSpace: number;
|
|
562
|
-
/**
|
|
563
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
564
|
-
*/
|
|
565
349
|
removable: boolean;
|
|
566
350
|
}
|
|
567
351
|
|
|
@@ -587,43 +371,16 @@ Similar to `fpath.join()`, but resulting path will always be subdirectory of bas
|
|
|
587
371
|
```ts expandable
|
|
588
372
|
safeJoin(base: IFilePath, ...paths: string[]): IFilePath;
|
|
589
373
|
// show-more
|
|
590
|
-
/**
|
|
591
|
-
* Base File System interface for methods.
|
|
592
|
-
*/
|
|
593
374
|
interface IFilePath {
|
|
594
|
-
/**
|
|
595
|
-
* Storage unit which is selected for performing file operations.
|
|
596
|
-
*/
|
|
597
375
|
storageUnit: IStorageUnit;
|
|
598
|
-
/**
|
|
599
|
-
* File path within the storage unit.
|
|
600
|
-
*/
|
|
601
376
|
filePath: string;
|
|
602
377
|
}
|
|
603
378
|
|
|
604
|
-
/**
|
|
605
|
-
* File System Storage Unit returned by the File System API.
|
|
606
|
-
*/
|
|
607
379
|
interface IStorageUnit {
|
|
608
|
-
/**
|
|
609
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
610
|
-
*/
|
|
611
380
|
type: string;
|
|
612
|
-
/**
|
|
613
|
-
* The total capacity of the storage unit in bytes.
|
|
614
|
-
*/
|
|
615
381
|
capacity: number;
|
|
616
|
-
/**
|
|
617
|
-
* The amount of free space available in the storage unit in bytes.
|
|
618
|
-
*/
|
|
619
382
|
freeSpace: number;
|
|
620
|
-
/**
|
|
621
|
-
* The amount of usable space in the storage unit in bytes.
|
|
622
|
-
*/
|
|
623
383
|
usableSpace: number;
|
|
624
|
-
/**
|
|
625
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
626
|
-
*/
|
|
627
384
|
removable: boolean;
|
|
628
385
|
}
|
|
629
386
|
|
|
@@ -656,43 +413,16 @@ Convert filePath to string, this string is not guaranteed to be unique and shoul
|
|
|
656
413
|
```ts expandable
|
|
657
414
|
stringify(filePath: IFilePath): string;
|
|
658
415
|
// show-more
|
|
659
|
-
/**
|
|
660
|
-
* Base File System interface for methods.
|
|
661
|
-
*/
|
|
662
416
|
interface IFilePath {
|
|
663
|
-
/**
|
|
664
|
-
* Storage unit which is selected for performing file operations.
|
|
665
|
-
*/
|
|
666
417
|
storageUnit: IStorageUnit;
|
|
667
|
-
/**
|
|
668
|
-
* File path within the storage unit.
|
|
669
|
-
*/
|
|
670
418
|
filePath: string;
|
|
671
419
|
}
|
|
672
420
|
|
|
673
|
-
/**
|
|
674
|
-
* File System Storage Unit returned by the File System API.
|
|
675
|
-
*/
|
|
676
421
|
interface IStorageUnit {
|
|
677
|
-
/**
|
|
678
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
679
|
-
*/
|
|
680
422
|
type: string;
|
|
681
|
-
/**
|
|
682
|
-
* The total capacity of the storage unit in bytes.
|
|
683
|
-
*/
|
|
684
423
|
capacity: number;
|
|
685
|
-
/**
|
|
686
|
-
* The amount of free space available in the storage unit in bytes.
|
|
687
|
-
*/
|
|
688
424
|
freeSpace: number;
|
|
689
|
-
/**
|
|
690
|
-
* The amount of usable space in the storage unit in bytes.
|
|
691
|
-
*/
|
|
692
425
|
usableSpace: number;
|
|
693
|
-
/**
|
|
694
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
695
|
-
*/
|
|
696
426
|
removable: boolean;
|
|
697
427
|
}
|
|
698
428
|
|
package/docs/sos/browser.md
CHANGED
|
@@ -61,13 +61,7 @@ user request or after a timeout. This doesn't fire between `open` calls or on su
|
|
|
61
61
|
```ts expandable
|
|
62
62
|
onClose(listener: (event: CloseEvent) => void): () => void;
|
|
63
63
|
// show-more
|
|
64
|
-
/**
|
|
65
|
-
* Interface representing a close event in the browser.
|
|
66
|
-
*/
|
|
67
64
|
interface CloseEvent extends Event<EventType.CLOSE> {
|
|
68
|
-
/**
|
|
69
|
-
* The reason for the browser being closed.
|
|
70
|
-
*/
|
|
71
65
|
reason: CloseReason;
|
|
72
66
|
}
|
|
73
67
|
|
|
@@ -106,9 +100,6 @@ The `open()` method opens the specified url in a browser window.
|
|
|
106
100
|
```ts expandable
|
|
107
101
|
open(uri: string, options?: IOpenLinkOptions): Promise<void>;
|
|
108
102
|
// show-more
|
|
109
|
-
/**
|
|
110
|
-
* Interface defines the options for opening a link in the browser.
|
|
111
|
-
*/
|
|
112
103
|
interface IOpenLinkOptions {
|
|
113
104
|
aclDomains?: string[];
|
|
114
105
|
aclMode?: 'blacklist' | 'whitelist';
|
|
@@ -124,10 +115,6 @@ interface IOpenLinkOptions {
|
|
|
124
115
|
headlessMode?: boolean;
|
|
125
116
|
clearData?: boolean;
|
|
126
117
|
canUserClose?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Method of opening the link.
|
|
129
|
-
* @default 'native'
|
|
130
|
-
*/
|
|
131
118
|
method?: 'native' | 'iframe';
|
|
132
119
|
}
|
|
133
120
|
|
|
@@ -230,7 +217,6 @@ This method was deprecated. use `sos.browser.open()` instead
|
|
|
230
217
|
```ts expandable
|
|
231
218
|
openLink(uri: string, options?: IDeprecatedOpenLinkOptions): Promise<void>;
|
|
232
219
|
// show-more
|
|
233
|
-
/** @deprecated */
|
|
234
220
|
interface IDeprecatedOpenLinkOptions {
|
|
235
221
|
acl?: RegExp[];
|
|
236
222
|
aclMode?: 'blacklist' | 'whitelist';
|
package/docs/sos/command.md
CHANGED
|
@@ -23,14 +23,8 @@ exact limit.
|
|
|
23
23
|
```ts expandable
|
|
24
24
|
dispatch<TCommand extends ICommand>(command: TCommand): Promise<void>;
|
|
25
25
|
// show-more
|
|
26
|
-
/**
|
|
27
|
-
* Interface represents a command structure with a type and additional data.
|
|
28
|
-
*/
|
|
29
26
|
interface ICommand {
|
|
30
27
|
type: string;
|
|
31
|
-
/**
|
|
32
|
-
* The `data` property is an object that contains additional data related to the command.
|
|
33
|
-
*/
|
|
34
28
|
[key: string]: any;
|
|
35
29
|
}
|
|
36
30
|
|
|
@@ -77,25 +71,13 @@ The `onCommand()` method sets up a listener, which is called whenever a new comm
|
|
|
77
71
|
```ts expandable
|
|
78
72
|
onCommand(listener: (command: ICommandEvent) => void): void;
|
|
79
73
|
// show-more
|
|
80
|
-
/**
|
|
81
|
-
* Received command event interface from signageOS.
|
|
82
|
-
*/
|
|
83
74
|
interface ICommandEvent {
|
|
84
75
|
type: 'command';
|
|
85
|
-
/**
|
|
86
|
-
* Command data received from occurred event.
|
|
87
|
-
*/
|
|
88
76
|
command: ICommand;
|
|
89
77
|
}
|
|
90
78
|
|
|
91
|
-
/**
|
|
92
|
-
* Interface represents a command structure with a type and additional data.
|
|
93
|
-
*/
|
|
94
79
|
interface ICommand {
|
|
95
80
|
type: string;
|
|
96
|
-
/**
|
|
97
|
-
* The `data` property is an object that contains additional data related to the command.
|
|
98
|
-
*/
|
|
99
81
|
[key: string]: any;
|
|
100
82
|
}
|
|
101
83
|
|
package/docs/sos/deviceInfo.md
CHANGED
|
@@ -47,16 +47,10 @@ Tags can be set only in CloudControl on Device Info page, or via [Rest API](http
|
|
|
47
47
|
```ts expandable
|
|
48
48
|
getDeviceTags(): Promise<IDeviceTag[]>;
|
|
49
49
|
// show-more
|
|
50
|
-
/**
|
|
51
|
-
* Represents a device tag which may have a parent (organization) tag.
|
|
52
|
-
*/
|
|
53
50
|
interface IDeviceTag extends ITag {
|
|
54
51
|
parentTag?: ITag;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
/**
|
|
58
|
-
* Represents organization tags assigned to a device.
|
|
59
|
-
*/
|
|
60
54
|
interface ITag {
|
|
61
55
|
name: string;
|
|
62
56
|
}
|
|
@@ -81,23 +75,13 @@ Location can be set only in CloudControl on Device Info page, or via [Rest API](
|
|
|
81
75
|
```ts expandable
|
|
82
76
|
getLocation(): Promise<IDeviceLocation | null>;
|
|
83
77
|
// show-more
|
|
84
|
-
/**
|
|
85
|
-
* Represents device location information set via Rest API.
|
|
86
|
-
*/
|
|
87
78
|
interface IDeviceLocation {
|
|
88
|
-
/** Name of the location. */
|
|
89
79
|
name: string;
|
|
90
|
-
/** Optional custom identifier for the location. */
|
|
91
80
|
customId?: string;
|
|
92
|
-
/** Optional description of the location. */
|
|
93
81
|
description?: string;
|
|
94
|
-
/** Optional child array of tags associated with the location. */
|
|
95
82
|
tags?: ITag[];
|
|
96
83
|
}
|
|
97
84
|
|
|
98
|
-
/**
|
|
99
|
-
* Represents organization tags assigned to a device.
|
|
100
|
-
*/
|
|
101
85
|
interface ITag {
|
|
102
86
|
name: string;
|
|
103
87
|
}
|
|
@@ -121,7 +105,6 @@ This method was deprecated. Please use `getDeviceTags()` method instead.
|
|
|
121
105
|
```ts expandable
|
|
122
106
|
getOrganizationTags(): Promise<IOrganizationTag[]>;
|
|
123
107
|
// show-more
|
|
124
|
-
/** @deprecated */
|
|
125
108
|
interface IOrganizationTag {
|
|
126
109
|
name: string;
|
|
127
110
|
}
|
package/docs/sos/display.md
CHANGED
|
@@ -18,10 +18,6 @@ For more information what are capabilities, see the description of the `supports
|
|
|
18
18
|
```ts expandable
|
|
19
19
|
getCapabilities(): Promise<DisplayCapability[]>;
|
|
20
20
|
// show-more
|
|
21
|
-
/**
|
|
22
|
-
* Represents the capabilities that a display can support.
|
|
23
|
-
* These capabilities are used to determine if a specific feature is available on the display.
|
|
24
|
-
*/
|
|
25
21
|
type DisplayCapability = 'FILE_SYSTEM_INTERNAL_STORAGE' | 'FILE_SYSTEM_EXTERNAL_STORAGE' | 'FILE_SYSTEM_FILE_CHECKSUM' | 'FILE_SYSTEM_LINK' | 'TIMERS_PROPRIETARY' | 'VIDEO_4K' | 'SERIAL' | 'BARCODE_SCANNER' | 'FRONT_OSD' | 'FILE_SYSTEM_CREATE_ARCHIVE' | 'FILE_SYSTEM_ARCHIVE_EXTRACT_INFO' | 'BROWSER' | 'PROXIMITY_SENSOR' | AnyString;
|
|
26
22
|
|
|
27
23
|
type AnyString = string & {};
|
|
@@ -60,10 +56,6 @@ or check the **DisplayCapability** type in `supports()` methods. It has a list o
|
|
|
60
56
|
```ts expandable
|
|
61
57
|
supports(capability: DisplayCapability): Promise<boolean>;
|
|
62
58
|
// show-more
|
|
63
|
-
/**
|
|
64
|
-
* Represents the capabilities that a display can support.
|
|
65
|
-
* These capabilities are used to determine if a specific feature is available on the display.
|
|
66
|
-
*/
|
|
67
59
|
type DisplayCapability = 'FILE_SYSTEM_INTERNAL_STORAGE' | 'FILE_SYSTEM_EXTERNAL_STORAGE' | 'FILE_SYSTEM_FILE_CHECKSUM' | 'FILE_SYSTEM_LINK' | 'TIMERS_PROPRIETARY' | 'VIDEO_4K' | 'SERIAL' | 'BARCODE_SCANNER' | 'FRONT_OSD' | 'FILE_SYSTEM_CREATE_ARCHIVE' | 'FILE_SYSTEM_ARCHIVE_EXTRACT_INFO' | 'BROWSER' | 'PROXIMITY_SENSOR' | AnyString;
|
|
68
60
|
|
|
69
61
|
type AnyString = string & {};
|