@vertigis/viewer-spec 58.13.0 → 58.14.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.
@@ -1,24 +1,38 @@
1
+ import type { Command } from "../Command.js";
1
2
  import type { Operation } from "../Operation.js";
2
3
  import { OperationRegistry } from "../OperationRegistry.js";
3
- /**
4
- * The status of a connection to a network host.
5
- */
4
+ /** The status of a connection to a network host. */
6
5
  export type NetworkStatus = "NoConnection" | "ConnectedToCarrierDataNetwork" | "ConnectedToWiFiOrEthernet" | "Restricted";
7
- /**
8
- * Arguments for the network.can-reach-host operation.
9
- */
6
+ /** Arguments for the network.can-reach-host operation. */
10
7
  export interface HostAndPortArgs {
11
- /**
12
- * The host to connect to.
13
- */
8
+ /** The host to connect to. */
14
9
  host: string;
15
- /**
16
- * The port number to connect to. Must be an integer.
17
- */
10
+ /** The port number to connect to. Must be an integer. */
18
11
  port: number;
19
12
  }
20
13
  export declare class NetworkOperations extends OperationRegistry {
21
14
  protected readonly _prefix = "network";
15
+ /**
16
+ * Turns on Disconnected Mode which prevents the app from making web
17
+ * requests independent of the device's network connectivity.
18
+ *
19
+ * @mobileOnly
20
+ */
21
+ get disableWebRequests(): Command<void>;
22
+ /**
23
+ * Turns off Disconnected Mode allowing the device to make web requests if
24
+ * it has a network connection.
25
+ *
26
+ * @mobileOnly
27
+ */
28
+ get enableWebRequests(): Command<void>;
29
+ /**
30
+ * Determines if Disconnected Mode is enabled and web requests can be sent
31
+ * by the app.
32
+ *
33
+ * @mobileOnly
34
+ */
35
+ get areWebRequestsDisabled(): Operation<void, boolean>;
22
36
  /**
23
37
  * Determines if the device has a network connection. Mobile only.
24
38
  *
@@ -1 +1 @@
1
- import{OperationRegistry as t}from"../OperationRegistry.js";export class NetworkOperations extends t{_prefix="network";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")}}
1
+ import{OperationRegistry as e}from"../OperationRegistry.js";export class NetworkOperations extends e{_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")}}
@@ -15654,6 +15654,15 @@
15654
15654
  }
15655
15655
  ]
15656
15656
  },
15657
+ "network.are-web-requests-disabled": {
15658
+ "description": "Determines if Disconnected Mode is enabled and web requests can be sent by the app.",
15659
+ "enum": [
15660
+ "network.are-web-requests-disabled"
15661
+ ]
15662
+ },
15663
+ "network.are-web-requests-disabled:output": {
15664
+ "type": "boolean"
15665
+ },
15657
15666
  "network.can-reach-host": {
15658
15667
  "description": "Determines if the device can reach a given host and port. Mobile only.",
15659
15668
  "enum": [
@@ -19897,6 +19906,9 @@
19897
19906
  {
19898
19907
  "$ref": "#/definitions/map.stop-sketch"
19899
19908
  },
19909
+ {
19910
+ "$ref": "#/definitions/network.are-web-requests-disabled"
19911
+ },
19900
19912
  {
19901
19913
  "$ref": "#/definitions/network.can-reach-host"
19902
19914
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.13.0",
3
+ "version": "58.14.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "58.13.0";
4
+ export declare const version = "58.14.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "58.13.0";
4
+ export const version = "58.14.0";