@vertigis/viewer-spec 46.4.2 → 47.0.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,5 +1,7 @@
1
1
  import type { Command } from "../Command.js";
2
2
  import { CommandRegistry } from "../CommandRegistry.js";
3
+ import type { Event } from "../Event.js";
4
+ import { EventRegistry } from "../EventRegistry.js";
3
5
  import type { Operation } from "../Operation.js";
4
6
  import { OperationRegistry } from "../OperationRegistry.js";
5
7
  import type { Blob, File, HasFeatures, HasGeometry, HasLayers, HasMaps, HasUITarget } from "../common.js";
@@ -82,6 +84,34 @@ export interface OpenUrlArgs {
82
84
  */
83
85
  numberFormatterLocale?: string;
84
86
  }
87
+ /**
88
+ * Arguments for the system.disable-background-location-updates command.
89
+ */
90
+ export interface BackgroundLocationUpdatesArgs {
91
+ /**
92
+ * The task ID for enabling and disabling background location updates. Once
93
+ * enabled using a certain task ID, background location updates can only be
94
+ * stopped once they are disabled with that same task ID.
95
+ *
96
+ * Cannot be set to null, but if this argument is not provided, a preset
97
+ * default value will be used.
98
+ */
99
+ taskId?: string;
100
+ }
101
+ /**
102
+ * Arguments for the system.enable-background-location-updates command.
103
+ */
104
+ export interface EnableBackgroundLocationUpdateArgs extends BackgroundLocationUpdatesArgs {
105
+ /**
106
+ * The title used in the sticky notification on Android. If null or an empty
107
+ * string, a default title will be used.
108
+ */
109
+ androidNotificationTitle?: string;
110
+ /**
111
+ * The message used in the sticky notification on Android.
112
+ */
113
+ androidNotificationMessage?: string;
114
+ }
85
115
  export declare class SystemCommands extends CommandRegistry {
86
116
  /**
87
117
  * Displays a sharing link to the user.
@@ -121,6 +151,22 @@ export declare class SystemCommands extends CommandRegistry {
121
151
  * @mobileOnly
122
152
  */
123
153
  get keepScreenOn(): Command<boolean>;
154
+ /**
155
+ * Enables background location updates. While enabled, the application will
156
+ * continue to execute code while running in the background.
157
+ *
158
+ * Note for iOS: If the user has not accepted location permissions for the
159
+ * app, no code will be allowed to execute in the background.
160
+ *
161
+ * @mobileOnly
162
+ */
163
+ get enableBackgroundLocationUpdates(): Command<EnableBackgroundLocationUpdateArgs>;
164
+ /**
165
+ * Disables background location updates.
166
+ *
167
+ * @mobileOnly
168
+ */
169
+ get disableBackgroundLocationUpdates(): Command<BackgroundLocationUpdatesArgs>;
124
170
  }
125
171
  export declare class SystemOperations extends OperationRegistry {
126
172
  /**
@@ -143,3 +189,17 @@ export declare class SystemOperations extends OperationRegistry {
143
189
  */
144
190
  get getSharingLink(): Operation<void, string>;
145
191
  }
192
+ export declare class SystemEvents extends EventRegistry {
193
+ /**
194
+ * Raised when background location updates are enabled.
195
+ *
196
+ * @mobileOnly
197
+ */
198
+ get backgroundLocationUpdatesEnabled(): Event;
199
+ /**
200
+ * Raised when background location updates are disabled.
201
+ *
202
+ * @mobileOnly
203
+ */
204
+ get backgroundLocationUpdatesDisabled(): Event;
205
+ }
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class SystemCommands extends CommandRegistry{get displaySharingLink(){return this._messages.command("system.display-sharing-link")}get downloadFile(){return this._messages.command("system.download-file")}get openUrl(){return this._messages.command("system.open-url")}get keepScreenOn(){return this._messages.command("system.keep-screen-on")}}export class SystemOperations extends OperationRegistry{get readUrl(){return this._messages.operation("system.read-url")}get readFile(){return this._messages.operation("system.read-file")}get getSharingLink(){return this._messages.operation("system.get-sharing-link")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class SystemCommands extends CommandRegistry{get displaySharingLink(){return this._messages.command("system.display-sharing-link")}get downloadFile(){return this._messages.command("system.download-file")}get openUrl(){return this._messages.command("system.open-url")}get keepScreenOn(){return this._messages.command("system.keep-screen-on")}get enableBackgroundLocationUpdates(){return this._messages.command("system.enable-background-location-updates")}get disableBackgroundLocationUpdates(){return this._messages.command("system.disable-background-location-updates")}}export class SystemOperations extends OperationRegistry{get readUrl(){return this._messages.operation("system.read-url")}get readFile(){return this._messages.operation("system.read-file")}get getSharingLink(){return this._messages.operation("system.get-sharing-link")}}export class SystemEvents extends EventRegistry{get backgroundLocationUpdatesEnabled(){return this._messages.event("system.background-location-updates-enabled")}get backgroundLocationUpdatesDisabled(){return this._messages.event("system.background-location-updates-disabled")}}
@@ -633,6 +633,17 @@
633
633
  ],
634
634
  "type": "object"
635
635
  },
636
+ "BackgroundLocationUpdatesArgs": {
637
+ "additionalProperties": false,
638
+ "description": "Arguments for the system.disable-background-location-updates command.",
639
+ "properties": {
640
+ "taskId": {
641
+ "description": "The task ID for enabling and disabling background location updates. Once enabled using a certain task ID, background location updates can only be stopped once they are disabled with that same task ID. Cannot be set to null, but if this argument is not provided, a preset default value will be used.",
642
+ "type": "string"
643
+ }
644
+ },
645
+ "type": "object"
646
+ },
636
647
  "CalculatePointArgs": {
637
648
  "additionalProperties": false,
638
649
  "description": "Arguments for the geometry.calculate-point operation.",
@@ -1322,6 +1333,25 @@
1322
1333
  ],
1323
1334
  "type": "string"
1324
1335
  },
1336
+ "EnableBackgroundLocationUpdateArgs": {
1337
+ "additionalProperties": false,
1338
+ "description": "Arguments for the system.enable-background-location-updates command.",
1339
+ "properties": {
1340
+ "androidNotificationMessage": {
1341
+ "description": "The message used in the sticky notification on Android.",
1342
+ "type": "string"
1343
+ },
1344
+ "androidNotificationTitle": {
1345
+ "description": "The title used in the sticky notification on Android. If null or an empty string, a default title will be used.",
1346
+ "type": "string"
1347
+ },
1348
+ "taskId": {
1349
+ "description": "The task ID for enabling and disabling background location updates. Once enabled using a certain task ID, background location updates can only be stopped once they are disabled with that same task ID. Cannot be set to null, but if this argument is not provided, a preset default value will be used.",
1350
+ "type": "string"
1351
+ }
1352
+ },
1353
+ "type": "object"
1354
+ },
1325
1355
  "ExportMapImageArgs": {
1326
1356
  "additionalProperties": false,
1327
1357
  "description": "Arguments for the \"map.export-image\" operation.",
@@ -13185,6 +13215,24 @@
13185
13215
  "sketching.undo:input": {
13186
13216
  "$ref": "#/definitions/HasMaps"
13187
13217
  },
13218
+ "system.disable-background-location-updates": {
13219
+ "description": "Disables background location updates.",
13220
+ "enum": [
13221
+ "system.disable-background-location-updates"
13222
+ ]
13223
+ },
13224
+ "system.disable-background-location-updates:input": {
13225
+ "$ref": "#/definitions/BackgroundLocationUpdatesArgs"
13226
+ },
13227
+ "system.enable-background-location-updates": {
13228
+ "description": "Enables background location updates. While enabled, the application will continue to execute code while running in the background. Note for iOS: If the user has not accepted location permissions for the app, no code will be allowed to execute in the background.",
13229
+ "enum": [
13230
+ "system.enable-background-location-updates"
13231
+ ]
13232
+ },
13233
+ "system.enable-background-location-updates:input": {
13234
+ "$ref": "#/definitions/EnableBackgroundLocationUpdateArgs"
13235
+ },
13188
13236
  "system.keep-screen-on": {
13189
13237
  "description": "Allows to control if the screen should be kept on. Passing true as parameter will keep the screen on, ignoring possible system settings for screen timeouts. Passing false as parameter will make the app respect system settings again.",
13190
13238
  "enum": [
@@ -14744,6 +14792,38 @@
14744
14792
  ],
14745
14793
  "type": "object"
14746
14794
  },
14795
+ {
14796
+ "additionalProperties": false,
14797
+ "properties": {
14798
+ "arguments": {
14799
+ "$ref": "#/definitions/system.disable-background-location-updates:input"
14800
+ },
14801
+ "name": {
14802
+ "$ref": "#/definitions/system.disable-background-location-updates"
14803
+ }
14804
+ },
14805
+ "required": [
14806
+ "name",
14807
+ "arguments"
14808
+ ],
14809
+ "type": "object"
14810
+ },
14811
+ {
14812
+ "additionalProperties": false,
14813
+ "properties": {
14814
+ "arguments": {
14815
+ "$ref": "#/definitions/system.enable-background-location-updates:input"
14816
+ },
14817
+ "name": {
14818
+ "$ref": "#/definitions/system.enable-background-location-updates"
14819
+ }
14820
+ },
14821
+ "required": [
14822
+ "name",
14823
+ "arguments"
14824
+ ],
14825
+ "type": "object"
14826
+ },
14747
14827
  {
14748
14828
  "additionalProperties": false,
14749
14829
  "properties": {
@@ -15243,6 +15323,12 @@
15243
15323
  {
15244
15324
  "$ref": "#/definitions/sketching.undo"
15245
15325
  },
15326
+ {
15327
+ "$ref": "#/definitions/system.disable-background-location-updates"
15328
+ },
15329
+ {
15330
+ "$ref": "#/definitions/system.enable-background-location-updates"
15331
+ },
15246
15332
  {
15247
15333
  "$ref": "#/definitions/system.keep-screen-on"
15248
15334
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "46.4.2",
3
+ "version": "47.0.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 Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "46.4.2";
4
+ export declare const version = "47.0.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "46.4.2";
4
+ export const version = "47.0.0";