@vertigis/viewer-spec 58.15.0 → 58.16.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/messaging/registry/network.d.ts +19 -0
- package/messaging/registry/network.js +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Command } from "../Command.js";
|
|
2
|
+
import type { Event } from "../Event.js";
|
|
3
|
+
import { EventRegistry } from "../EventRegistry.js";
|
|
2
4
|
import type { Operation } from "../Operation.js";
|
|
3
5
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
4
6
|
/** The status of a connection to a network host. */
|
|
@@ -10,6 +12,23 @@ export interface HostAndPortArgs {
|
|
|
10
12
|
/** The port number to connect to. Must be an integer. */
|
|
11
13
|
port: number;
|
|
12
14
|
}
|
|
15
|
+
export declare class NetworkEvents extends EventRegistry {
|
|
16
|
+
protected readonly _prefix = "network";
|
|
17
|
+
/**
|
|
18
|
+
* Raised when the user has blocked the app from making web requests. Mobile
|
|
19
|
+
* only.
|
|
20
|
+
*
|
|
21
|
+
* @mobileOnly
|
|
22
|
+
*/
|
|
23
|
+
get webRequestsDisabled(): Event;
|
|
24
|
+
/**
|
|
25
|
+
* Raised when the user has allowed the app to make web requests. Mobile
|
|
26
|
+
* only.
|
|
27
|
+
*
|
|
28
|
+
* @mobileOnly
|
|
29
|
+
*/
|
|
30
|
+
get webRequestsEnabled(): Event;
|
|
31
|
+
}
|
|
13
32
|
export declare class NetworkOperations extends OperationRegistry {
|
|
14
33
|
protected readonly _prefix = "network";
|
|
15
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{EventRegistry as e}from"../EventRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export class NetworkEvents extends e{_prefix="network";get webRequestsDisabled(){return this._get("web-requests-disabled")}get webRequestsEnabled(){return this._get("web-requests-enabled")}}export class NetworkOperations extends t{_prefix="network";get disableWebRequests(){return this._get("disable-web-requests")}get enableWebRequests(){return this._get("enable-web-requests")}get areWebRequestsDisabled(){return this._get("are-web-requests-disabled")}get hasConnection(){return this._get("has-connection")}get getStatus(){return this._get("get-status")}get canReachHost(){return this._get("can-reach-host")}get canReachUrl(){return this._get("can-reach-url")}}
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED