@signageos/front-applet 8.0.3 → 8.1.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.
Files changed (53) hide show
  1. package/dist/bundle.js +5 -5
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/sos/fileSystem.md +15 -0
  4. package/docs/sos_management/power.md +105 -0
  5. package/docs/sos_management/screen.md +35 -2
  6. package/docs/sos_management/wifi.md +82 -18
  7. package/es6/FrontApplet/DeviceInfo/IDeviceInfo.d.ts +1 -0
  8. package/es6/FrontApplet/FileSystem/FileSystem.d.ts +9 -0
  9. package/es6/FrontApplet/FileSystem/FileSystem.js +13 -0
  10. package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
  11. package/es6/FrontApplet/FileSystem/IFileSystem.d.ts +1 -0
  12. package/es6/FrontApplet/Management/Power/IPower.d.ts +35 -0
  13. package/es6/FrontApplet/Management/Power/IPower.js +25 -0
  14. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  15. package/es6/FrontApplet/Management/Power/Power.d.ts +56 -2
  16. package/es6/FrontApplet/Management/Power/Power.js +100 -0
  17. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  18. package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +3 -0
  19. package/es6/FrontApplet/Management/Power/PowerHelper.js +12 -0
  20. package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -0
  21. package/es6/FrontApplet/Management/Screen/IScreen.d.ts +5 -0
  22. package/es6/FrontApplet/Management/Screen/Screen.d.ts +18 -2
  23. package/es6/FrontApplet/Management/Screen/Screen.js +32 -23
  24. package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
  25. package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +3 -0
  26. package/es6/FrontApplet/Management/Wifi/IWifi.js +1 -0
  27. package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
  28. package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +56 -19
  29. package/es6/FrontApplet/Management/Wifi/Wifi.js +59 -20
  30. package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
  31. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.d.ts +29 -0
  32. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js +10 -0
  33. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js.map +1 -0
  34. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.d.ts +5 -0
  35. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js +30 -0
  36. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js.map +1 -0
  37. package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +21 -1
  38. package/es6/Monitoring/FileSystem/fileSystemCommands.js +5 -1
  39. package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
  40. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +14 -0
  41. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
  42. package/es6/Monitoring/Management/Power/handlePowerRequests.js +27 -0
  43. package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
  44. package/es6/Monitoring/Management/Power/powerCommands.d.ts +41 -1
  45. package/es6/Monitoring/Management/Power/powerCommands.js +9 -1
  46. package/es6/Monitoring/Management/Power/powerCommands.js.map +1 -1
  47. package/es6/Monitoring/Management/Screen/handleScreenRequests.js +3 -1
  48. package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
  49. package/es6/Monitoring/Management/Screen/screenCommands.d.ts +2 -0
  50. package/es6/Monitoring/Management/Screen/screenCommands.js.map +1 -1
  51. package/es6/Monitoring/Monitoring.js +2 -0
  52. package/es6/Monitoring/Monitoring.js.map +1 -1
  53. package/package.json +1 -1
@@ -574,6 +574,21 @@ removeStorageUnitsChangedListener(listener: () => void): void;
574
574
 
575
575
  <Separator />
576
576
 
577
+ ### wipeout()
578
+
579
+ The `wipeout()` method is used to wipe out all data from the file system, later when action is finished the device is rebooted.
580
+
581
+ :::danger
582
+ - Ensure that function is called only once, otherwise it will wipe out the file system again on applet start!
583
+ - This function is clearing internal file system storage, cache storage and cookies. Local storage will not be cleared.
584
+ :::
585
+
586
+ ```ts expandable
587
+ wipeout(): Promise<void>;
588
+ ```
589
+
590
+ <Separator />
591
+
577
592
  ### writeFile()
578
593
 
579
594
  The `writeFile()` method writes string content to the file specified by `filePath`. If the file does exist, it is created. If the directory
@@ -25,6 +25,22 @@ await sos.management.power.appRestart();
25
25
 
26
26
  <Separator />
27
27
 
28
+ ### clearScheduledReboots()
29
+
30
+ Removes all scheduled reboot rules from the device.
31
+
32
+ ```ts expandable
33
+ clearScheduledReboots(): Promise<void>;
34
+ ```
35
+
36
+ #### Example
37
+
38
+ ```ts
39
+ await sos.management.power.clearScheduledReboots();
40
+ ```
41
+
42
+ <Separator />
43
+
28
44
  ### getProprietaryTimers()
29
45
 
30
46
  The `getProprietaryTimers()` method returns a list of currently set
@@ -50,6 +66,33 @@ const timers = await sos.management.power.getProprietaryTimers();
50
66
 
51
67
  <Separator />
52
68
 
69
+ ### getScheduledReboots()
70
+
71
+ Returns all scheduled reboot rules on the device.
72
+
73
+ ```ts expandable
74
+ getScheduledReboots(): Promise<IScheduledRebootActions[]>;
75
+ // show-more
76
+ interface IScheduledRebootActions {
77
+ id: string;
78
+ rule: IScheduledRebootRule;
79
+ }
80
+
81
+ interface IScheduledRebootRule {
82
+ weekdays: number[] | string[];
83
+ time: string;
84
+ }
85
+
86
+ ```
87
+
88
+ #### Example
89
+
90
+ ```ts
91
+ await sos.management.power.getScheduledReboots();
92
+ ```
93
+
94
+ <Separator />
95
+
53
96
  ### getTimers()
54
97
 
55
98
  The `getTimers()` method returns a list of currently set native timers.
@@ -75,6 +118,32 @@ const timers = await sos.management.power.getTimers();
75
118
 
76
119
  <Separator />
77
120
 
121
+ ### removeScheduledReboot()
122
+
123
+ Removes scheduled reboot rule from the device.
124
+
125
+ ```ts expandable
126
+ removeScheduledReboot(id: string): Promise<void>;
127
+ ```
128
+
129
+ #### Params
130
+
131
+ | Name | Type | Description |
132
+ |------|----------|---------------------------------|
133
+ | `id` | `string` | - ID of the rule to be removed. |
134
+
135
+ #### Example
136
+
137
+ ```ts
138
+ // Get scheduled reboots
139
+ const scheduledReboots = await sos.management.power.getScheduledReboots();
140
+
141
+ // Remove scheduled reboot
142
+ await sos.management.power.removeScheduledReboot(scheduledReboots[0].id);
143
+ ```
144
+
145
+ <Separator />
146
+
78
147
  ### setProprietaryTimer()
79
148
 
80
149
  The `setProprietaryTimer()` method creates or updates a
@@ -102,6 +171,42 @@ await sos.management.power.setProprietaryTimer("TIMER_20", "08:00", "22:00", ["m
102
171
 
103
172
  <Separator />
104
173
 
174
+ ### setScheduledReboot()
175
+
176
+ Schedule automatic reboot on the device. Calling this function will create one rule.
177
+ It is possible to set multiple rules, which can be later obtained by `getScheduledReboots` function.
178
+
179
+ :::note
180
+ - Setting new scheduled reboot on device might take up to 10 minutes to show in Box.
181
+ - Every new scheduled reboot rule gets unique identifier generated by device, it might be later returned by `getScheduledReboots()`.
182
+ :::
183
+
184
+ ```ts expandable
185
+ setScheduledReboot(weekdays: WeekdayType[], time: string): Promise<void>;
186
+ // show-more
187
+ type WeekdayType = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
188
+
189
+ ```
190
+
191
+ #### Params
192
+
193
+ | Name | Type | Description |
194
+ |------------|-----------------|------------------------------------------------------------------|
195
+ | `weekdays` | `WeekdayType[]` | |
196
+ | `time` | `string` | - Time when the reboot should be executed. Format is `HH:mm:ss`. |
197
+
198
+ #### Example
199
+
200
+ ```ts
201
+ // Schedule reboot every Monday at 3:00 AM
202
+ await sos.management.power.setScheduledReboot(["MONDAY"], "03:00:00");
203
+
204
+ // Schedule reboot every Monday and Friday at 7:30 PM / 19:30
205
+ await sos.management.power.setScheduledReboot(["MONDAY", "FRIDAY"], "19:30:00");
206
+ ```
207
+
208
+ <Separator />
209
+
105
210
  ### setTimer()
106
211
 
107
212
  The `setTimers()` method creates or updates a native timer.
@@ -74,7 +74,7 @@ isPoweredOn(): Promise<boolean>;
74
74
 
75
75
  ### powerOff()
76
76
 
77
- The `powerOff()` method turn the screen off.
77
+ The `powerOff()` method turn the screen off. It will turn off the display backlight and the panel, and it will also disable applet.
78
78
 
79
79
  :::warning
80
80
 
@@ -183,7 +183,7 @@ await sos.management.screen.setBrightness(
183
183
 
184
184
  <Separator />
185
185
 
186
- ### takeAndUploadScreenshot()
186
+ ### takeAndUploadScreenshot(uploadBaseUrl, computeHash)
187
187
 
188
188
  The `takeAndUploadScreenshot()` method takes a screenshot and uploads it to a specified url. This can be either a signageOS upload url
189
189
  (`https://upload.signageos.io`) or a dedicated server url for uploading screenshots. Format in which the screenshot is uploaded may be
@@ -197,6 +197,39 @@ To implement a custom screenshot upload server, it needs to implement these endp
197
197
  signageOS provides standalone server which is implements all of those methods. It is provided to all of our partners through the
198
198
  [support ticketing system](https://box.signageos.io/support/).
199
199
 
200
+ ```ts expandable
201
+ takeAndUploadScreenshot(uploadBaseUrl: string, computeHash?: boolean): Promise<{
202
+ screenshotUrl: string;
203
+ aHash?: string;
204
+ }>;
205
+ ```
206
+
207
+ #### Params
208
+
209
+ | Name | Type | Description |
210
+ |----------------------------|-----------|---------------------------------------------------------------------------------------------------------------|
211
+ | `uploadBaseUrl` | `string` | URL to which the screenshot will be uploaded. It can be either a signageOS upload url or a custom server url. |
212
+ | `computeHash` *(optional)* | `boolean` | Whether to compute a hash of the screenshot and return it in the response. |
213
+
214
+ #### Example
215
+
216
+ ```ts
217
+ const { screenshotUrl, aHash } = await sos.management.screen.takeAndUploadScreenshot(
218
+ 'https://your.upload.server/upload/file?prefix=screenshot/',
219
+ true,
220
+ );
221
+ ```
222
+
223
+ <Separator />
224
+
225
+ ### ~takeAndUploadScreenshot(uploadBaseUrl)~
226
+
227
+ :::danger Deprecated
228
+
229
+ This method was deprecated. Use `takeAndUploadScreenshot(uploadBaseUrl: string, computeHash?: boolean): Promise<{ screenshotUrl: string; aHash?: string }>` instead.
230
+
231
+ :::
232
+
200
233
  ```ts expandable
201
234
  takeAndUploadScreenshot(uploadBaseUrl: string): Promise<string>;
202
235
  ```
@@ -4,11 +4,11 @@ sidebar_position: 0
4
4
 
5
5
  # wifi
6
6
 
7
- The `sos.management.wifi` API groups together methods for managing WIFI.
7
+ The `sos.management.wifi` API groups together methods for managing Wi-Fi.
8
8
 
9
9
  :::info
10
10
 
11
- Use `sos.management.supports('WIFI')` to check if the device supports managing WIFI setup.
11
+ Use `sos.management.supports('WIFI')` to check if the device supports managing Wi-Fi setup.
12
12
 
13
13
  :::
14
14
 
@@ -30,24 +30,67 @@ from `client` state to `ap` state directly, the state has to be `disabled` first
30
30
 
31
31
  The `connect()` method connects the device to a specified network.
32
32
 
33
+ :::warning
34
+ Connecting to a OPEN Wi-Fi network for Tizen and WebOS is different.
35
+ - For Tizen, make sure that the `password` is an empty string (`''`) and in options you have selected `OPEN` as encryption type.
36
+ - For WebOS, you can pass `undefined` as the `password` parameter.
37
+ :::
38
+
39
+ :::info
40
+ Security type of Wi-Fi is mandatory for Tizen.
41
+ :::
42
+
33
43
  ```ts expandable
34
44
  connect(ssid: string, password?: string, options?: IWifiConnectOptions): Promise<void>;
35
45
  // show-more
36
46
  interface IWifiConnectOptions {
37
47
  hidden?: boolean;
48
+ securityType?: WifiEncryptionType;
38
49
  }
39
50
 
51
+ type WifiEncryptionType = 'OPEN' | 'WEP' | 'WPA2' | 'WPA2_WPA_MIXED' | 'WPA3' | '802.1X_EAP';
52
+
40
53
  ```
41
54
 
55
+ #### Params
56
+
57
+ | Name | Type | Description |
58
+ |-------------------------|-----------------------|----------------------------------------------------------------------------|
59
+ | `ssid` | `string` | Name of the network, max. allowed length is 32 characters. |
60
+ | `password` *(optional)* | `string` | Password of the device, must be between 8 and 32 characters. |
61
+ | `options` *(optional)* | `IWifiConnectOptions` | Additional options for the connection, such as `hidden` or `securityType`. |
62
+
63
+ #### Return value
64
+
65
+ A promise that resolves when the connection is established or if connection fails.
66
+
42
67
  #### Possible errors
43
68
 
44
- The method throws an error if the Wi-Fi state is not in the `client` state.
69
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
70
+
71
+ #### Example
72
+
73
+ ```ts
74
+ // To connect on open Wi-Fi network ex. WebOS
75
+ await sos.management.wifi.connect('MyOpenNetwork');
76
+
77
+ // To connect on open Wi-Fi network with empty password (Tizen)
78
+ await sos.management.wifi.connect('MyOpenNetwork', '', { securityType: 'OPEN' });
79
+
80
+ // If the network is hidden
81
+ await sos.management.wifi.connect('MyOpenNetwork', undefined, { hidden: true });
82
+
83
+ // To connect on encrypted Wi-Fi network with WPA2 security
84
+ await sos.management.wifi.connect('MyEncryptedNetwork', 'my-password', { securityType: 'WPA2' });
85
+ ```
45
86
 
46
87
  <Separator />
47
88
 
48
89
  ### disable()
49
90
 
50
- The `disable()` method switches the Wi-Fi state to `disabled`. All previously configured networks will be forgotten.
91
+ The `disable()` method switches the Wi-Fi state to `disabled` and disconnect from connected Wi-Fi.
92
+
93
+ All previously configured networks will be forgotten.
51
94
 
52
95
  ```ts expandable
53
96
  disable(): Promise<void>;
@@ -65,18 +108,16 @@ disconnect(): Promise<void>;
65
108
 
66
109
  #### Possible errors
67
110
 
68
- The method throws an error if the Wi-Fi state is not in the `client` state.
111
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
69
112
 
70
113
  <Separator />
71
114
 
72
115
  ### enableAP()
73
116
 
74
- The `enabledClient()` method switches the Wi-Fi state from `disabled` to `ap` state.
117
+ The `enableAP()` method switches the Wi-Fi state from `disabled` to `ap` state.
75
118
 
76
119
  :::info
77
-
78
120
  Use `sos.management.supports('WIFI_AP')` to check if the device is able to be in the `ap` mode.
79
-
80
121
  :::
81
122
 
82
123
  ```ts expandable
@@ -92,7 +133,7 @@ enableAP(ssid: string, password: string): Promise<void>;
92
133
 
93
134
  #### Possible errors
94
135
 
95
- The method throws an error if the Wi-Fi state is in the `client` state.
136
+ The method throws an error error If the Wi-Fi state is in the `client` state.
96
137
 
97
138
  <Separator />
98
139
 
@@ -106,7 +147,7 @@ enableClient(): Promise<void>;
106
147
 
107
148
  #### Possible errors
108
149
 
109
- The method throws an error if the Wi-Fi state is in the `ap` state.
150
+ The method throws an error error If the Wi-Fi state is in the `ap` state.
110
151
 
111
152
  <Separator />
112
153
 
@@ -125,9 +166,22 @@ interface IWifiDevice {
125
166
 
126
167
  ```
127
168
 
169
+ #### Return value
170
+
171
+ An object containing the SSID, whether the network is encrypted, and the signal strength.
172
+ If the device is not connected to any network, it returns `null`.
173
+
128
174
  #### Possible errors
129
175
 
130
- The method throws an error if the Wi-Fi state is not in the `client` state.
176
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
177
+
178
+ #### Example
179
+
180
+ ```ts
181
+ // To get the network the device is currently connected to
182
+ const connectedTo = await sos.management.wifi.getConnectedTo();
183
+ console.log(`Connected to SSID: ${connectedTo?.ssid}, Strength: ${connectedTo?.strength}`);
184
+ ```
131
185
 
132
186
  <Separator />
133
187
 
@@ -141,20 +195,28 @@ settings. However, if you experience any problems, you might want to try changin
141
195
  getCountry(): Promise<string | null>;
142
196
  ```
143
197
 
198
+ #### Return value
199
+
200
+ The 2-letter country code from the ISO 3166 standard, or `null` if not set.
201
+
144
202
  #### Possible errors
145
203
 
146
- The method throws an error if the Wi-Fi state is not in the `client` state.
204
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
147
205
 
148
206
  <Separator />
149
207
 
150
208
  ### isAPEnabled()
151
209
 
152
- The `isClientEnabled()` method checks whether the Wi-Fi is in `ap` state.
210
+ The `isAPEnabled()` method checks whether the Wi-Fi is in `ap` state.
153
211
 
154
212
  ```ts expandable
155
213
  isAPEnabled(): Promise<boolean>;
156
214
  ```
157
215
 
216
+ #### Return value
217
+
218
+ if AP mode is enabled.
219
+
158
220
  <Separator />
159
221
 
160
222
  ### isClientEnabled()
@@ -165,9 +227,13 @@ The `isClientEnabled()` method checks whether the Wi-Fi is in `client` state.
165
227
  isClientEnabled(): Promise<boolean>;
166
228
  ```
167
229
 
230
+ #### Return value
231
+
232
+ if client mode is enabled.
233
+
168
234
  #### Possible errors
169
235
 
170
- The method throws an error if the Wi-Fi state is in the `ap` state.
236
+ The method throws an error error If the Wi-Fi state is in the `ap` state.
171
237
 
172
238
  <Separator />
173
239
 
@@ -328,9 +394,7 @@ enum WifiEvent {
328
394
  The `scanDevices()` method initializes a new network scan and available networks.
329
395
 
330
396
  :::info
331
-
332
397
  Use `sos.management.supports('WIFI_SCAN')` to check if the device supports scanning for devices.
333
-
334
398
  :::
335
399
 
336
400
  ```ts expandable
@@ -345,7 +409,7 @@ interface IScannedDevice {
345
409
 
346
410
  #### Possible errors
347
411
 
348
- The method throws an error if the Wi-Fi state is not in the `client` state.
412
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
349
413
 
350
414
  <Separator />
351
415
 
@@ -367,4 +431,4 @@ setCountry(countryCode: string): Promise<void>;
367
431
 
368
432
  #### Possible errors
369
433
 
370
- The method throws an error if the Wi-Fi state is not in the `client` state.
434
+ The method throws an error error If the Wi-Fi state is not in the `client` state.
@@ -1,6 +1,7 @@
1
1
  export interface IDeviceInfo {
2
2
  getLocation(): Promise<IDeviceLocation | null>;
3
3
  getOrganizationTags(): Promise<IOrganizationTag[]>;
4
+ getDeviceName(): Promise<string>;
4
5
  }
5
6
  export interface IDeviceLocation {
6
7
  name: string;
@@ -184,6 +184,15 @@ export default class FileSystem implements IFileSystem {
184
184
  * The `link()` method creates a symbolic link to `sourceFilePath` (existing path) from `destinationFilePath` (new path).
185
185
  */
186
186
  link(sourceFilePath: IFilePath, destinationFilePath: IFilePath): Promise<void>;
187
+ /**
188
+ * The `wipeout()` method is used to wipe out all data from the file system, later when action is finished the device is rebooted.
189
+ *
190
+ * :::danger
191
+ * - Ensure that function is called only once, otherwise it will wipe out the file system again on applet start!
192
+ * - This function is clearing internal file system storage, cache storage and cookies. Local storage will not be cleared.
193
+ * :::
194
+ */
195
+ wipeout(): Promise<void>;
187
196
  /** @internal */
188
197
  handleMessageData(data: StorageUnitsChangedMessage): void;
189
198
  private getMessage;
@@ -342,6 +342,19 @@ class FileSystem {
342
342
  destinationFilePath,
343
343
  });
344
344
  }
345
+ /**
346
+ * The `wipeout()` method is used to wipe out all data from the file system, later when action is finished the device is rebooted.
347
+ *
348
+ * :::danger
349
+ * - Ensure that function is called only once, otherwise it will wipe out the file system again on applet start!
350
+ * - This function is clearing internal file system storage, cache storage and cookies. Local storage will not be cleared.
351
+ * :::
352
+ */
353
+ async wipeout() {
354
+ await this.postMessage({
355
+ type: this.getMessage('wipeout'),
356
+ });
357
+ }
345
358
  /** @internal */
346
359
  handleMessageData(data) {
347
360
  switch (data.type) {
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystem.js","sourceRoot":"","sources":["../../../src/FrontApplet/FileSystem/FileSystem.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,mCAUiB;AAEjB,oEAA4C;AAI5C,MAAM,2BAA2B,GAAG,uBAAuB,CAAC;AAE5D;;;;;;;;;;;;;GAaG;AACH,MAAqB,UAAU;IAOrB;IACA;IAPF,MAAM,CAAC,cAAc,GAAW,aAAa,CAAC;IAE7C,YAAY,CAAe;IAEnC,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;QAEtC,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAC;IACxC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QAC5B,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC/C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;SAC3C,CAAC,CAAC;QACH,OAAO,YAAY,CAAC;IACrB,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,wBAAw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ACnB,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,OAAO;QACnB,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;SAChC,CAAC,CAAC;IACJ,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,IAAgC;QACxD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;gBAC5C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;gBACpD,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,UAAU,CAAC,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;IAC1E,CAAC;;AAlXF,6BAmXC"}
@@ -20,4 +20,5 @@ export default interface IFileSystem {
20
20
  createDirectory(directoryPath: IFilePath): Promise<void>;
21
21
  isDirectory(filePath: IFilePath): Promise<boolean>;
22
22
  link(sourceFilePath: IFilePath, destinationFilePath: IFilePath): Promise<void>;
23
+ wipeout(): Promise<void>;
23
24
  }
@@ -1,5 +1,36 @@
1
1
  import { ITimer, TimerType } from '../helpers/TimerHelper';
2
2
  import { IProprietaryTimer, ProprietaryTimerType } from '../helpers/ProprietaryTimerHelper';
3
+ export interface IScheduledRebootActions {
4
+ id: string;
5
+ rule: IScheduledRebootRule;
6
+ }
7
+ export interface IScheduledRebootRule {
8
+ weekdays: number[] | string[];
9
+ time: string;
10
+ }
11
+ export type WeekdayType = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
12
+ /**
13
+ * This enum is necessary to convert between the number representation of the weekday and the string representation.
14
+ * On device and servers values are stored as numbers, but in the JS API, we use strings for better human friendly values.
15
+ */
16
+ export declare enum WeekdayNumbered {
17
+ SUNDAY = 0,
18
+ MONDAY = 1,
19
+ TUESDAY = 2,
20
+ WEDNESDAY = 3,
21
+ THURSDAY = 4,
22
+ FRIDAY = 5,
23
+ SATURDAY = 6
24
+ }
25
+ export declare enum WeekdayNamed {
26
+ SUNDAY = "SUNDAY",
27
+ MONDAY = "MONDAY",
28
+ TUESDAY = "TUESDAY",
29
+ WEDNESDAY = "WEDNESDAY",
30
+ THURSDAY = "THURSDAY",
31
+ FRIDAY = "FRIDAY",
32
+ SATURDAY = "SATURDAY"
33
+ }
3
34
  export default interface IPower {
4
35
  systemReboot(): Promise<void>;
5
36
  appRestart(): Promise<void>;
@@ -9,4 +40,8 @@ export default interface IPower {
9
40
  getProprietaryTimers(): Promise<IProprietaryTimer[]>;
10
41
  setProprietaryTimer(type: ProprietaryTimerType, timeOn: string | null, timeOff: string | null, weekdays: string[], keepAppletRunning?: boolean): Promise<void>;
11
42
  unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
43
+ setScheduledReboot(weekdays: WeekdayType[], time: string): Promise<void>;
44
+ removeScheduledReboot(id: string): Promise<void>;
45
+ getScheduledReboots(): Promise<IScheduledRebootActions[]>;
46
+ clearScheduledReboots(): Promise<void>;
12
47
  }
@@ -1,3 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeekdayNamed = exports.WeekdayNumbered = void 0;
4
+ /**
5
+ * This enum is necessary to convert between the number representation of the weekday and the string representation.
6
+ * On device and servers values are stored as numbers, but in the JS API, we use strings for better human friendly values.
7
+ */
8
+ var WeekdayNumbered;
9
+ (function (WeekdayNumbered) {
10
+ WeekdayNumbered[WeekdayNumbered["SUNDAY"] = 0] = "SUNDAY";
11
+ WeekdayNumbered[WeekdayNumbered["MONDAY"] = 1] = "MONDAY";
12
+ WeekdayNumbered[WeekdayNumbered["TUESDAY"] = 2] = "TUESDAY";
13
+ WeekdayNumbered[WeekdayNumbered["WEDNESDAY"] = 3] = "WEDNESDAY";
14
+ WeekdayNumbered[WeekdayNumbered["THURSDAY"] = 4] = "THURSDAY";
15
+ WeekdayNumbered[WeekdayNumbered["FRIDAY"] = 5] = "FRIDAY";
16
+ WeekdayNumbered[WeekdayNumbered["SATURDAY"] = 6] = "SATURDAY";
17
+ })(WeekdayNumbered || (exports.WeekdayNumbered = WeekdayNumbered = {}));
18
+ var WeekdayNamed;
19
+ (function (WeekdayNamed) {
20
+ WeekdayNamed["SUNDAY"] = "SUNDAY";
21
+ WeekdayNamed["MONDAY"] = "MONDAY";
22
+ WeekdayNamed["TUESDAY"] = "TUESDAY";
23
+ WeekdayNamed["WEDNESDAY"] = "WEDNESDAY";
24
+ WeekdayNamed["THURSDAY"] = "THURSDAY";
25
+ WeekdayNamed["FRIDAY"] = "FRIDAY";
26
+ WeekdayNamed["SATURDAY"] = "SATURDAY";
27
+ })(WeekdayNamed || (exports.WeekdayNamed = WeekdayNamed = {}));
3
28
  //# sourceMappingURL=IPower.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IPower.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/IPower.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IPower.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/IPower.ts"],"names":[],"mappings":";;;AAeA;;;GAGG;AACH,IAAY,eAQX;AARD,WAAY,eAAe;IAC1B,yDAAU,CAAA;IACV,yDAAU,CAAA;IACV,2DAAW,CAAA;IACX,+DAAa,CAAA;IACb,6DAAY,CAAA;IACZ,yDAAU,CAAA;IACV,6DAAY,CAAA;AACb,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B;AAED,IAAY,YAQX;AARD,WAAY,YAAY;IACvB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACtB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB"}
@@ -1,7 +1,7 @@
1
1
  import IPostMessage from '../../IPostMessage';
2
- import { TimerType, ITimer } from '../helpers/TimerHelper';
2
+ import { ITimer, TimerType } from '../helpers/TimerHelper';
3
3
  import { IProprietaryTimer, ProprietaryTimerType } from '../helpers/ProprietaryTimerHelper';
4
- import IPower from './IPower';
4
+ import IPower, { IScheduledRebootActions, WeekdayType } from './IPower';
5
5
  /**
6
6
  * The `sos.management.power` API groups together methods related to the power state of the device. Such as rebooting, shutting down,
7
7
  * setting timers.
@@ -102,5 +102,59 @@ export default class Power implements IPower {
102
102
  * await sos.management.power.unsetProprietaryTimer("TIMER_2");
103
103
  */
104
104
  unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
105
+ /**
106
+ * Removes all scheduled reboot rules from the device.
107
+ *
108
+ * @since 8.1.0
109
+ *
110
+ * @example
111
+ * await sos.management.power.clearScheduledReboots();
112
+ */
113
+ clearScheduledReboots(): Promise<void>;
114
+ /**
115
+ * Returns all scheduled reboot rules on the device.
116
+ *
117
+ * @since 8.1.0
118
+ *
119
+ * @example
120
+ * await sos.management.power.getScheduledReboots();
121
+ */
122
+ getScheduledReboots(): Promise<IScheduledRebootActions[]>;
123
+ /**
124
+ * Removes scheduled reboot rule from the device.
125
+ * @param id {string} - ID of the rule to be removed.
126
+ *
127
+ * @since 8.1.0
128
+ *
129
+ * @example
130
+ * // Get scheduled reboots
131
+ * const scheduledReboots = await sos.management.power.getScheduledReboots();
132
+ *
133
+ * // Remove scheduled reboot
134
+ * await sos.management.power.removeScheduledReboot(scheduledReboots[0].id);
135
+ */
136
+ removeScheduledReboot(id: string): Promise<void>;
137
+ /**
138
+ * Schedule automatic reboot on the device. Calling this function will create one rule.
139
+ * It is possible to set multiple rules, which can be later obtained by `getScheduledReboots` function.
140
+ *
141
+ * :::note
142
+ * - Setting new scheduled reboot on device might take up to 10 minutes to show in Box.
143
+ * - Every new scheduled reboot rule gets unique identifier generated by device, it might be later returned by `getScheduledReboots()`.
144
+ * :::
145
+ *
146
+ * @param weekdays {@link WeekdayType[]} - Array of weekdays when the reboot should be executed.
147
+ * @param time {string} - Time when the reboot should be executed. Format is `HH:mm:ss`.
148
+ *
149
+ * @since 8.1.0
150
+ *
151
+ * @example
152
+ * // Schedule reboot every Monday at 3:00 AM
153
+ * await sos.management.power.setScheduledReboot(["MONDAY"], "03:00:00");
154
+ *
155
+ * // Schedule reboot every Monday and Friday at 7:30 PM / 19:30
156
+ * await sos.management.power.setScheduledReboot(["MONDAY", "FRIDAY"], "19:30:00");
157
+ */
158
+ setScheduledReboot(weekdays: WeekdayType[], time: string): Promise<void>;
105
159
  private getMessage;
106
160
  }