@vertigis/viewer-spec 50.0.0 → 50.2.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.
@@ -28,6 +28,54 @@ export declare type MobileAction = CommonAction
28
28
  * Generic action. Payload: [wkid, transformation name].
29
29
  */
30
30
  | "gnss-device-transformation-override"
31
+ /**
32
+ * RunTimedAction OR EndTimedAction.
33
+ */
34
+ | "map-area-download"
35
+ /**
36
+ * EndTimedAction.
37
+ */
38
+ | "map-area-download-layer-fail"
39
+ /**
40
+ * EndTimedAction.
41
+ */
42
+ | "map-area-download-table-fail"
43
+ /**
44
+ * RunTimedAction OR EndTimedAction.
45
+ */
46
+ | "map-area-changes-send"
47
+ /**
48
+ * EndTimedAction.
49
+ */
50
+ | "map-area-send-changes-layer-fail"
51
+ /**
52
+ * EndTimedAction.
53
+ */
54
+ | "map-area-send-changes-table-fail"
55
+ /**
56
+ * RunTimedAction OR EndTimedAction.
57
+ */
58
+ | "map-area-update"
59
+ /**
60
+ * EndTimedAction.
61
+ */
62
+ | "map-area-update-layer-fail"
63
+ /**
64
+ * EndTimedAction.
65
+ */
66
+ | "map-area-update-table-fail"
67
+ /**
68
+ * Map action. Payload: "{'custom' or 'predefined'} - {map area name}".
69
+ */
70
+ | "map-area-activate"
71
+ /**
72
+ * Map action. Payload: "{'custom' or 'predefined'} - {map area name}".
73
+ */
74
+ | "map-area-deactivate"
75
+ /**
76
+ * Map action. Payload: "{'custom' or 'predefined'} - {map area name}".
77
+ */
78
+ | "map-area-data-delete"
31
79
  /**
32
80
  * Generic action. Payload: log level.
33
81
  */
@@ -1,4 +1,6 @@
1
+ import type Geometry from "@arcgis/core/geometry/Geometry";
1
2
  import type Point from "@arcgis/core/geometry/Point";
3
+ import type { SpatialReference } from "@vertigis/arcgis-extensions/portal/SpatialReference";
2
4
  import type { Command } from "../Command.js";
3
5
  import { CommandRegistry } from "../CommandRegistry.js";
4
6
  import type { TimeSpan } from "../DotNetTypes.js";
@@ -7,6 +9,7 @@ import { EventRegistry } from "../EventRegistry.js";
7
9
  import type { Operation } from "../Operation.js";
8
10
  import { OperationRegistry } from "../OperationRegistry.js";
9
11
  import type { HasMaps, Maps } from "../common.js";
12
+ import type { CoordinateTransformation } from "./map.js";
10
13
  /**
11
14
  * Arguments for the "geolocation.accuracy-changed" event.
12
15
  */
@@ -144,6 +147,27 @@ declare enum GnssDeviceType {
144
147
  USB = "usb",
145
148
  EMULATOR = "emulator"
146
149
  }
150
+ /**
151
+ * Arguments for getting a list of geographic transformations.
152
+ */
153
+ export interface GetTransformationArgs {
154
+ /**
155
+ * The input spatial reference to transform. For example, the spatial
156
+ * reference of a GNSS receiver. If unspecified, defaults to WGS84.
157
+ */
158
+ inputSpatialReference?: SpatialReference;
159
+ /**
160
+ * Gets or sets the desired output spatial reference of the transformations.
161
+ * For example, the spatial reference of the map. If unspecified, the
162
+ * spatial reference of the first available map will be used.
163
+ */
164
+ outputSpatialReference?: SpatialReference;
165
+ /**
166
+ * Gets or sets the area of interest. If provided, this will be used to
167
+ * order the list of valid transformations in order of best-fit.
168
+ */
169
+ area?: Geometry;
170
+ }
147
171
  /**
148
172
  * Event args for the geolocation.gnss-lock-status-changed event.
149
173
  */
@@ -299,6 +323,13 @@ export declare class GeolocationOperations extends OperationRegistry {
299
323
  * not to perform this during startup.
300
324
  */
301
325
  get getPosition(): Operation<void, Point>;
326
+ /**
327
+ * Returns a list of valid coordinate transformations for given input and
328
+ * output spatial references.
329
+ *
330
+ * @mobileOnly
331
+ */
332
+ get getCoordinateTransformations(): Operation<GetTransformationArgs, CoordinateTransformation[]>;
302
333
  }
303
334
  export declare class GeolocationEvents extends EventRegistry {
304
335
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var GeolocateState;var GnssDeviceType;!function(e){e.DISABLED="Disabled",e.ENABLED="Enabled",e.RECENTERING="Recentering",e.RECENTERING_AND_REORIENTING="RecenteringAndReorienting"}(GeolocateState||(GeolocateState={})),function(e){e.INTEGRATED="integrated",e.BLUETOOTH="bluetooth",e.USB="usb",e.EMULATOR="emulator"}(GnssDeviceType||(GnssDeviceType={}));export var FixQuality;!function(e){e.INVALID="Invalid",e.GPS_FIX="GpsFix",e.DGPS_FIX="DgpsFix",e.PPS_FIX="PpsFix",e.RTK="Rtk",e.FLOAT_RTK="FloatRtk",e.ESTIMATED="Estimated",e.MANUAL_INPUT="ManualInput",e.SIMULATION="Simulation"}(FixQuality||(FixQuality={}));export var GpgsaFixMode;!function(e){e.NOT_AVAILABLE="NotAvailable",e.FIX_2D="Fix2D",e.FIX_3D="Fix3D"}(GpgsaFixMode||(GpgsaFixMode={}));export var GnssLockStatus;!function(e){e[e.Good=0]="Good",e[e.UncorrectedPosition=1]="UncorrectedPosition",e[e.EstimatedAccuracy=2]="EstimatedAccuracy",e[e.LostConnection=4]="LostConnection",e[e.NoLocation=16]="NoLocation",e[e.Integrated=32]="Integrated"}(GnssLockStatus||(GnssLockStatus={}));export class GeolocationCommands extends CommandRegistry{get autoRecenter(){return this._messages.command("geolocation.auto-recenter")}get autoRecenterAndReorient(){return this._messages.command("geolocation.auto-recenter-and-reorient")}get displayLocation(){return this._messages.command("geolocation.display-location")}get turnOffGeolocation(){return this._messages.command("geolocation.turn-off-geolocation")}get displayDeviceSettings(){return this._messages.command("geolocation.display-device-settings")}get displayDeviceMetadata(){return this._messages.command("geolocation.display-device-metadata")}get displayDeviceSelection(){return this._messages.command("geolocation.display-device-selection")}}export class GeolocationOperations extends OperationRegistry{get changeSource(){return this._messages.operation("geolocation.change-source")}get getActiveSource(){return this._messages.operation("geolocation.get-active-source")}get getAllSources(){return this._messages.operation("geolocation.get-all-sources")}get getCurrentState(){return this._messages.operation("geolocation.get-current-state")}get getLocationPermissionsEnabled(){return this._messages.operation("geolocation.get-location-permissions-enabled")}get getPosition(){return this._messages.operation("geolocation.get-position")}}export class GeolocationEvents extends EventRegistry{get accuracyChanged(){return this._messages.event("geolocation.accuracy-changed")}get metadataChanged(){return this._messages.event("geolocation.metadata-changed")}get autoRecenterStarted(){return this._messages.event("geolocation.auto-recenter-started")}get autoRecenterAndReorientStarted(){return this._messages.event("geolocation.auto-recenter-and-reorient-started")}get autoRecenterStopped(){return this._messages.event("geolocation.auto-recenter-stopped")}get autoRecenterAndReorientStopped(){return this._messages.event("geolocation.auto-recenter-and-reorient-stopped")}get gnssDeviceDetectionStarted(){return this._messages.event("geolocation.gnss-device-detection-started")}get gnssDeviceDetectionStopped(){return this._messages.event("geolocation.gnss-device-detection-stopped")}get gnssLockStatusChanged(){return this._messages.event("geolocation.gnss-lock-status-changed")}get headingChanged(){return this._messages.event("geolocation.heading-changed")}get positionAcquired(){return this._messages.event("geolocation.position-acquired")}get positionChanged(){return this._messages.event("geolocation.position-changed")}get positionLost(){return this._messages.event("geolocation.position-lost")}get sourceChanged(){return this._messages.event("geolocation.source-changed")}get statusChanged(){return this._messages.event("geolocation.status-changed")}get displayLocationStarted(){return this._messages.event("geolocation.display-location-started")}get displayLocationStopped(){return this._messages.event("geolocation.display-location-stopped")}get transformationChanged(){return this._messages.event("geolocation.gnss-transformation-changed")}get antennaHeightChanged(){return this._messages.event("geolocation.gnss-antenna-height-changed")}get locationDisplayModeChanged(){return this._messages.event("geolocation.display-mode-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var GeolocateState;var GnssDeviceType;!function(e){e.DISABLED="Disabled",e.ENABLED="Enabled",e.RECENTERING="Recentering",e.RECENTERING_AND_REORIENTING="RecenteringAndReorienting"}(GeolocateState||(GeolocateState={})),function(e){e.INTEGRATED="integrated",e.BLUETOOTH="bluetooth",e.USB="usb",e.EMULATOR="emulator"}(GnssDeviceType||(GnssDeviceType={}));export var FixQuality;!function(e){e.INVALID="Invalid",e.GPS_FIX="GpsFix",e.DGPS_FIX="DgpsFix",e.PPS_FIX="PpsFix",e.RTK="Rtk",e.FLOAT_RTK="FloatRtk",e.ESTIMATED="Estimated",e.MANUAL_INPUT="ManualInput",e.SIMULATION="Simulation"}(FixQuality||(FixQuality={}));export var GpgsaFixMode;!function(e){e.NOT_AVAILABLE="NotAvailable",e.FIX_2D="Fix2D",e.FIX_3D="Fix3D"}(GpgsaFixMode||(GpgsaFixMode={}));export var GnssLockStatus;!function(e){e[e.Good=0]="Good",e[e.UncorrectedPosition=1]="UncorrectedPosition",e[e.EstimatedAccuracy=2]="EstimatedAccuracy",e[e.LostConnection=4]="LostConnection",e[e.NoLocation=16]="NoLocation",e[e.Integrated=32]="Integrated"}(GnssLockStatus||(GnssLockStatus={}));export class GeolocationCommands extends CommandRegistry{get autoRecenter(){return this._messages.command("geolocation.auto-recenter")}get autoRecenterAndReorient(){return this._messages.command("geolocation.auto-recenter-and-reorient")}get displayLocation(){return this._messages.command("geolocation.display-location")}get turnOffGeolocation(){return this._messages.command("geolocation.turn-off-geolocation")}get displayDeviceSettings(){return this._messages.command("geolocation.display-device-settings")}get displayDeviceMetadata(){return this._messages.command("geolocation.display-device-metadata")}get displayDeviceSelection(){return this._messages.command("geolocation.display-device-selection")}}export class GeolocationOperations extends OperationRegistry{get changeSource(){return this._messages.operation("geolocation.change-source")}get getActiveSource(){return this._messages.operation("geolocation.get-active-source")}get getAllSources(){return this._messages.operation("geolocation.get-all-sources")}get getCurrentState(){return this._messages.operation("geolocation.get-current-state")}get getLocationPermissionsEnabled(){return this._messages.operation("geolocation.get-location-permissions-enabled")}get getPosition(){return this._messages.operation("geolocation.get-position")}get getCoordinateTransformations(){return this._messages.operation("geolocation.get-coordinate-transformations")}}export class GeolocationEvents extends EventRegistry{get accuracyChanged(){return this._messages.event("geolocation.accuracy-changed")}get metadataChanged(){return this._messages.event("geolocation.metadata-changed")}get autoRecenterStarted(){return this._messages.event("geolocation.auto-recenter-started")}get autoRecenterAndReorientStarted(){return this._messages.event("geolocation.auto-recenter-and-reorient-started")}get autoRecenterStopped(){return this._messages.event("geolocation.auto-recenter-stopped")}get autoRecenterAndReorientStopped(){return this._messages.event("geolocation.auto-recenter-and-reorient-stopped")}get gnssDeviceDetectionStarted(){return this._messages.event("geolocation.gnss-device-detection-started")}get gnssDeviceDetectionStopped(){return this._messages.event("geolocation.gnss-device-detection-stopped")}get gnssLockStatusChanged(){return this._messages.event("geolocation.gnss-lock-status-changed")}get headingChanged(){return this._messages.event("geolocation.heading-changed")}get positionAcquired(){return this._messages.event("geolocation.position-acquired")}get positionChanged(){return this._messages.event("geolocation.position-changed")}get positionLost(){return this._messages.event("geolocation.position-lost")}get sourceChanged(){return this._messages.event("geolocation.source-changed")}get statusChanged(){return this._messages.event("geolocation.status-changed")}get displayLocationStarted(){return this._messages.event("geolocation.display-location-started")}get displayLocationStopped(){return this._messages.event("geolocation.display-location-stopped")}get transformationChanged(){return this._messages.event("geolocation.gnss-transformation-changed")}get antennaHeightChanged(){return this._messages.event("geolocation.gnss-antenna-height-changed")}get locationDisplayModeChanged(){return this._messages.event("geolocation.display-mode-changed")}}
@@ -43,6 +43,63 @@ export interface OfflineCommandArgs {
43
43
  */
44
44
  maps: MapsLike;
45
45
  }
46
+ /**
47
+ * Arguments for the "offline.area-activated" event.
48
+ */
49
+ export interface AreaActivatedEventArgs {
50
+ /**
51
+ * The area that is now active.
52
+ */
53
+ activeArea: OfflineAreaBase;
54
+ /**
55
+ * The area that was previously active. Can be null if there was no
56
+ * previously active offline area.
57
+ */
58
+ previouslyActiveArea: OfflineAreaBase;
59
+ }
60
+ /**
61
+ * Arguments for the "offline.user-went-online" event.
62
+ */
63
+ export interface UserWentOnlineEventArgs {
64
+ /**
65
+ * The area that was previously active.
66
+ */
67
+ previouslyActiveArea: OfflineAreaBase;
68
+ }
69
+ /**
70
+ * Arguments for events that signify the end of an offline area operation.
71
+ */
72
+ export interface AreaOperationEndedEventArgs {
73
+ /**
74
+ * The offline area that is related to this event.
75
+ */
76
+ offlineArea: OfflineAreaBase;
77
+ /**
78
+ * The status of the offline area related to this event.
79
+ */
80
+ offlineAreaStatus: OfflineAreaStatus;
81
+ }
82
+ /**
83
+ * Arguments for the "offline.area-edits-submit-started" event.
84
+ */
85
+ export interface AreaEditsSubmitStartedEventArgs {
86
+ /**
87
+ * The offline area that is related to this event.
88
+ */
89
+ offlineArea: OfflineAreaBase;
90
+ /**
91
+ * The number of add edits that are being submitted.
92
+ */
93
+ adds: number;
94
+ /**
95
+ * The number of delete edits that are being submitted.
96
+ */
97
+ deletes: number;
98
+ /**
99
+ * The number of update edits that are being submitted.
100
+ */
101
+ updates: number;
102
+ }
46
103
  /**
47
104
  * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.OfflineAreaBase` in
48
105
  * the VertiGIS.Mobile SDK.
@@ -62,6 +119,12 @@ export interface CustomOfflineArea {
62
119
  */
63
120
  export interface CustomOfflineAreaDetails {
64
121
  }
122
+ /**
123
+ * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.OfflineAreaStatus` in
124
+ * the VertiGIS.Mobile SDK.
125
+ */
126
+ export interface OfflineAreaStatus {
127
+ }
65
128
  /**
66
129
  * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.LayerEdits` in the
67
130
  * VertiGIS.Mobile SDK.
@@ -139,6 +202,16 @@ export interface OfflineOperationResult {
139
202
  * on or updating a map area.
140
203
  */
141
204
  syncTableResults: IDictionary<FeatureTable, OfflineMapSyncLayerResult>;
205
+ /**
206
+ * A dictionary of layer errors that occurred during a sync (submit edits or
207
+ * update) operation.
208
+ */
209
+ syncLayerErrors: IDictionary<FeatureLayer, Exception>;
210
+ /**
211
+ * A dictionary of table errors that occurred during a sync (submit edits or
212
+ * update) operation.
213
+ */
214
+ syncTableErrors: IDictionary<FeatureTable, Exception>;
142
215
  }
143
216
  /**
144
217
  * An error code for a known offline operation error.
@@ -224,7 +297,7 @@ export declare class OfflineEvents extends EventRegistry {
224
297
  *
225
298
  * @mobileOnly
226
299
  */
227
- get areaActivated(): Event<OfflineAreaBase>;
300
+ get areaActivated(): Event<AreaActivatedEventArgs>;
228
301
  /**
229
302
  * Raised when an offline area is about to be activated.
230
303
  *
@@ -237,49 +310,67 @@ export declare class OfflineEvents extends EventRegistry {
237
310
  * @mobileOnly
238
311
  */
239
312
  get areaDeleted(): Event<OfflineAreaBase>;
313
+ /**
314
+ * Raised when an offline area download has started.
315
+ *
316
+ * @mobileOnly
317
+ */
318
+ get areaDownloadStarted(): Event<OfflineAreaBase>;
240
319
  /**
241
320
  * Raised when an offline area download is canceled by the user.
242
321
  *
243
322
  * @mobileOnly
244
323
  */
245
- get areaDownloadCanceled(): Event<OfflineAreaBase>;
324
+ get areaDownloadCanceled(): Event<AreaOperationEndedEventArgs>;
246
325
  /**
247
326
  * Raised when an offline area download fails.
248
327
  *
249
328
  * @mobileOnly
250
329
  */
251
- get areaDownloadFailed(): Event<OfflineAreaBase>;
330
+ get areaDownloadFailed(): Event<AreaOperationEndedEventArgs>;
252
331
  /**
253
332
  * Raised when an offline area download completes.
254
333
  *
255
334
  * @mobileOnly
256
335
  */
257
- get areaDownloaded(): Event<OfflineAreaBase>;
336
+ get areaDownloaded(): Event<AreaOperationEndedEventArgs>;
337
+ /**
338
+ * Raised when an offline area update has started.
339
+ *
340
+ * @mobileOnly
341
+ */
342
+ get areaUpdateStarted(): Event<OfflineAreaBase>;
258
343
  /**
259
344
  * Raised when an offline area has been updated.
260
345
  *
261
346
  * @mobileOnly
262
347
  */
263
- get areaUpdated(): Event<OfflineAreaBase>;
348
+ get areaUpdated(): Event<AreaOperationEndedEventArgs>;
264
349
  /**
265
350
  * Raised when an any error occurs during an offline map update.
266
351
  *
267
352
  * @mobileOnly
268
353
  */
269
- get areaUpdateFailed(): Event<OfflineAreaBase>;
354
+ get areaUpdateFailed(): Event<AreaOperationEndedEventArgs>;
355
+ /**
356
+ * Raised when an operation to submit offline area edits has started.
357
+ *
358
+ * @mobileOnly
359
+ */
360
+ get areaEditsSubmitStarted(): Event<AreaEditsSubmitStartedEventArgs>;
270
361
  /**
271
362
  * Raised when offline area edits have been submitted and this operation is
272
363
  * successfully completed.
273
364
  *
274
365
  * @mobileOnly
275
366
  */
276
- get areaEditsSubmitted(): Event<OfflineAreaBase>;
367
+ get areaEditsSubmitted(): Event<AreaOperationEndedEventArgs>;
277
368
  /**
278
369
  * Raised when any error occurs during an offline map submit edits.
279
370
  *
280
371
  * @mobileOnly
281
372
  */
282
- get areaEditsSubmitFailed(): Event<OfflineAreaBase>;
373
+ get areaEditsSubmitFailed(): Event<AreaOperationEndedEventArgs>;
283
374
  /**
284
375
  * Raised when a new custom offline map area is created.
285
376
  *
@@ -297,7 +388,7 @@ export declare class OfflineEvents extends EventRegistry {
297
388
  *
298
389
  * @mobileOnly
299
390
  */
300
- get userWentOnline(): Event;
391
+ get userWentOnline(): Event<UserWentOnlineEventArgs>;
301
392
  }
302
393
  export declare class OfflineOperations extends OperationRegistry {
303
394
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var OfflineErrorCode;!function(e){e[e.NETWORK_CONNECTION_REQUIRED=100]="NETWORK_CONNECTION_REQUIRED",e[e.PORTAL_CONNECTION_FAILURE=101]="PORTAL_CONNECTION_FAILURE",e[e.ALREADY_STARTED=102]="ALREADY_STARTED",e[e.EXCEPTION_THROWN=103]="EXCEPTION_THROWN",e[e.INVALID_MAP_AREA_DATA=104]="INVALID_MAP_AREA_DATA",e[e.BACKGROUND_TIME_EXPIRED=105]="BACKGROUND_TIME_EXPIRED",e[e.MULTIPLE_ERRORS=106]="MULTIPLE_ERRORS",e[e.WEBMAP_REQUIRED=200]="WEBMAP_REQUIRED",e[e.WEBMAP_LOAD_FAILURE=201]="WEBMAP_LOAD_FAILURE",e[e.WEBMAP_NOT_LOADED=202]="WEBMAP_NOT_LOADED",e[e.WEBMAP_UNAUTHORIZED=203]="WEBMAP_UNAUTHORIZED"}(OfflineErrorCode||(OfflineErrorCode={}));export class OfflineCommands extends CommandRegistry{get cancelCreateArea(){return this._messages.command("offline.cancel-create-area")}get cancelDownload(){return this._messages.command("offline.cancel-download")}get deleteArea(){return this._messages.command("offline.delete-area")}get displayCreateArea(){return this._messages.command("offline.display-create-area")}}export class OfflineEvents extends EventRegistry{get areaActivated(){return this._messages.event("offline.area-activated")}get areaActivating(){return this._messages.event("offline.area-activating")}get areaDeleted(){return this._messages.event("offline.area-deleted")}get areaDownloadCanceled(){return this._messages.event("offline.area-download-canceled")}get areaDownloadFailed(){return this._messages.event("offline.area-download-failed")}get areaDownloaded(){return this._messages.event("offline.area-downloaded")}get areaUpdated(){return this._messages.event("offline.area-updated")}get areaUpdateFailed(){return this._messages.event("offline.area-update-failed")}get areaEditsSubmitted(){return this._messages.event("offline.area-edits-submitted")}get areaEditsSubmitFailed(){return this._messages.event("offline.area-edits-submit-failed")}get customAreaCreated(){return this._messages.event("offline.custom-area-created")}get customAreaDeleted(){return this._messages.event("offline.custom-area-deleted")}get userWentOnline(){return this._messages.event("offline.user-went-online")}}export class OfflineOperations extends OperationRegistry{get createArea(){return this._messages.operation("offline.create-area")}get getAreas(){return this._messages.operation("offline.get-areas")}get getEdits(){return this._messages.operation("offline.get-edits")}get activateArea(){return this._messages.operation("offline.activate-area")}get downloadArea(){return this._messages.operation("offline.download-area")}get goOnline(){return this._messages.operation("offline.go-online")}get checkForActiveArea(){return this._messages.operation("offline.check-for-active-area")}get submitEdits(){return this._messages.operation("offline.submit-edits")}get updateArea(){return this._messages.operation("offline.update-area")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var OfflineErrorCode;!function(e){e[e.NETWORK_CONNECTION_REQUIRED=100]="NETWORK_CONNECTION_REQUIRED",e[e.PORTAL_CONNECTION_FAILURE=101]="PORTAL_CONNECTION_FAILURE",e[e.ALREADY_STARTED=102]="ALREADY_STARTED",e[e.EXCEPTION_THROWN=103]="EXCEPTION_THROWN",e[e.INVALID_MAP_AREA_DATA=104]="INVALID_MAP_AREA_DATA",e[e.BACKGROUND_TIME_EXPIRED=105]="BACKGROUND_TIME_EXPIRED",e[e.MULTIPLE_ERRORS=106]="MULTIPLE_ERRORS",e[e.WEBMAP_REQUIRED=200]="WEBMAP_REQUIRED",e[e.WEBMAP_LOAD_FAILURE=201]="WEBMAP_LOAD_FAILURE",e[e.WEBMAP_NOT_LOADED=202]="WEBMAP_NOT_LOADED",e[e.WEBMAP_UNAUTHORIZED=203]="WEBMAP_UNAUTHORIZED"}(OfflineErrorCode||(OfflineErrorCode={}));export class OfflineCommands extends CommandRegistry{get cancelCreateArea(){return this._messages.command("offline.cancel-create-area")}get cancelDownload(){return this._messages.command("offline.cancel-download")}get deleteArea(){return this._messages.command("offline.delete-area")}get displayCreateArea(){return this._messages.command("offline.display-create-area")}}export class OfflineEvents extends EventRegistry{get areaActivated(){return this._messages.event("offline.area-activated")}get areaActivating(){return this._messages.event("offline.area-activating")}get areaDeleted(){return this._messages.event("offline.area-deleted")}get areaDownloadStarted(){return this._messages.event("offline.area-download-started")}get areaDownloadCanceled(){return this._messages.event("offline.area-download-canceled")}get areaDownloadFailed(){return this._messages.event("offline.area-download-failed")}get areaDownloaded(){return this._messages.event("offline.area-downloaded")}get areaUpdateStarted(){return this._messages.event("offline.area-update-started")}get areaUpdated(){return this._messages.event("offline.area-updated")}get areaUpdateFailed(){return this._messages.event("offline.area-update-failed")}get areaEditsSubmitStarted(){return this._messages.event("offline.area-edits-submit-started")}get areaEditsSubmitted(){return this._messages.event("offline.area-edits-submitted")}get areaEditsSubmitFailed(){return this._messages.event("offline.area-edits-submit-failed")}get customAreaCreated(){return this._messages.event("offline.custom-area-created")}get customAreaDeleted(){return this._messages.event("offline.custom-area-deleted")}get userWentOnline(){return this._messages.event("offline.user-went-online")}}export class OfflineOperations extends OperationRegistry{get createArea(){return this._messages.operation("offline.create-area")}get getAreas(){return this._messages.operation("offline.get-areas")}get getEdits(){return this._messages.operation("offline.get-edits")}get activateArea(){return this._messages.operation("offline.activate-area")}get downloadArea(){return this._messages.operation("offline.download-area")}get goOnline(){return this._messages.operation("offline.go-online")}get checkForActiveArea(){return this._messages.operation("offline.check-for-active-area")}get submitEdits(){return this._messages.operation("offline.submit-edits")}get updateArea(){return this._messages.operation("offline.update-area")}}
@@ -1842,6 +1842,25 @@
1842
1842
  ],
1843
1843
  "type": "object"
1844
1844
  },
1845
+ "GetTransformationArgs": {
1846
+ "additionalProperties": false,
1847
+ "description": "Arguments for getting a list of geographic transformations.",
1848
+ "properties": {
1849
+ "area": {
1850
+ "$ref": "#/definitions/esri.Geometry",
1851
+ "description": "Gets or sets the area of interest. If provided, this will be used to order the list of valid transformations in order of best-fit."
1852
+ },
1853
+ "inputSpatialReference": {
1854
+ "$ref": "#/definitions/esri.rest-api.SpatialReference.SpatialReference",
1855
+ "description": "The input spatial reference to transform. For example, the spatial reference of a GNSS receiver. If unspecified, defaults to WGS84."
1856
+ },
1857
+ "outputSpatialReference": {
1858
+ "$ref": "#/definitions/esri.rest-api.SpatialReference.SpatialReference",
1859
+ "description": "Gets or sets the desired output spatial reference of the transformations. For example, the spatial reference of the map. If unspecified, the spatial reference of the first available map will be used."
1860
+ }
1861
+ },
1862
+ "type": "object"
1863
+ },
1845
1864
  "GetViewInsetsArgs": {
1846
1865
  "additionalProperties": false,
1847
1866
  "description": "Result of the \"map.get-view-insets\" operation.",
@@ -2335,10 +2354,18 @@
2335
2354
  "description": "A value indicating whether or not the operation was successful.",
2336
2355
  "type": "boolean"
2337
2356
  },
2357
+ "syncLayerErrors": {
2358
+ "$ref": "System.Collections.Generic.IDictionary_4",
2359
+ "description": "A dictionary of layer errors that occurred during a sync (submit edits or update) operation."
2360
+ },
2338
2361
  "syncLayerResults": {
2339
2362
  "$ref": "System.Collections.Generic.IDictionary_2",
2340
2363
  "description": "A dictionary of layer sync results that occurred while submitting edits on or updating a map area."
2341
2364
  },
2365
+ "syncTableErrors": {
2366
+ "$ref": "System.Collections.Generic.IDictionary_1",
2367
+ "description": "A dictionary of table errors that occurred during a sync (submit edits or update) operation."
2368
+ },
2342
2369
  "syncTableResults": {
2343
2370
  "$ref": "System.Collections.Generic.IDictionary_3",
2344
2371
  "description": "A dictionary of table sync results that occurred while submitting edits on or updating a map area."
@@ -2359,7 +2386,9 @@
2359
2386
  "errorCodeString",
2360
2387
  "errorMessage",
2361
2388
  "success",
2389
+ "syncLayerErrors",
2362
2390
  "syncLayerResults",
2391
+ "syncTableErrors",
2363
2392
  "syncTableResults",
2364
2393
  "warnings"
2365
2394
  ],
@@ -12854,6 +12883,21 @@
12854
12883
  },
12855
12884
  "type": "array"
12856
12885
  },
12886
+ "geolocation.get-coordinate-transformations": {
12887
+ "description": "Returns a list of valid coordinate transformations for given input and output spatial references.",
12888
+ "enum": [
12889
+ "geolocation.get-coordinate-transformations"
12890
+ ]
12891
+ },
12892
+ "geolocation.get-coordinate-transformations:input": {
12893
+ "$ref": "#/definitions/GetTransformationArgs"
12894
+ },
12895
+ "geolocation.get-coordinate-transformations:output": {
12896
+ "items": {
12897
+ "$ref": "#/definitions/CoordinateTransformation"
12898
+ },
12899
+ "type": "array"
12900
+ },
12857
12901
  "geolocation.get-current-state": {
12858
12902
  "description": "Gets the current geolocate state.",
12859
12903
  "enum": [
@@ -16938,6 +16982,22 @@
16938
16982
  ],
16939
16983
  "type": "object"
16940
16984
  },
16985
+ {
16986
+ "additionalProperties": false,
16987
+ "properties": {
16988
+ "arguments": {
16989
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations:input"
16990
+ },
16991
+ "name": {
16992
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations"
16993
+ }
16994
+ },
16995
+ "required": [
16996
+ "name",
16997
+ "arguments"
16998
+ ],
16999
+ "type": "object"
17000
+ },
16941
17001
  {
16942
17002
  "additionalProperties": false,
16943
17003
  "properties": {
@@ -17519,6 +17579,9 @@
17519
17579
  {
17520
17580
  "$ref": "#/definitions/geolocation.get-all-sources"
17521
17581
  },
17582
+ {
17583
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations"
17584
+ },
17522
17585
  {
17523
17586
  "$ref": "#/definitions/geolocation.get-current-state"
17524
17587
  },
@@ -383,6 +383,73 @@
383
383
  "additionalProperties": false,
384
384
  "type": "object"
385
385
  },
386
+ "AreaActivatedEventArgs": {
387
+ "additionalProperties": false,
388
+ "description": "Arguments for the \"offline.area-activated\" event.",
389
+ "properties": {
390
+ "activeArea": {
391
+ "$ref": "OfflineAreaBase",
392
+ "description": "The area that is now active."
393
+ },
394
+ "previouslyActiveArea": {
395
+ "$ref": "OfflineAreaBase",
396
+ "description": "The area that was previously active. Can be null if there was no previously active offline area."
397
+ }
398
+ },
399
+ "required": [
400
+ "activeArea",
401
+ "previouslyActiveArea"
402
+ ],
403
+ "type": "object"
404
+ },
405
+ "AreaEditsSubmitStartedEventArgs": {
406
+ "additionalProperties": false,
407
+ "description": "Arguments for the \"offline.area-edits-submit-started\" event.",
408
+ "properties": {
409
+ "adds": {
410
+ "description": "The number of add edits that are being submitted.",
411
+ "type": "number"
412
+ },
413
+ "deletes": {
414
+ "description": "The number of delete edits that are being submitted.",
415
+ "type": "number"
416
+ },
417
+ "offlineArea": {
418
+ "$ref": "OfflineAreaBase",
419
+ "description": "The offline area that is related to this event."
420
+ },
421
+ "updates": {
422
+ "description": "The number of update edits that are being submitted.",
423
+ "type": "number"
424
+ }
425
+ },
426
+ "required": [
427
+ "adds",
428
+ "deletes",
429
+ "offlineArea",
430
+ "updates"
431
+ ],
432
+ "type": "object"
433
+ },
434
+ "AreaOperationEndedEventArgs": {
435
+ "additionalProperties": false,
436
+ "description": "Arguments for events that signify the end of an offline area operation.",
437
+ "properties": {
438
+ "offlineArea": {
439
+ "$ref": "OfflineAreaBase",
440
+ "description": "The offline area that is related to this event."
441
+ },
442
+ "offlineAreaStatus": {
443
+ "$ref": "OfflineAreaStatus",
444
+ "description": "The status of the offline area related to this event."
445
+ }
446
+ },
447
+ "required": [
448
+ "offlineArea",
449
+ "offlineAreaStatus"
450
+ ],
451
+ "type": "object"
452
+ },
386
453
  "AttachmentEventArgs": {
387
454
  "additionalProperties": false,
388
455
  "description": "Event args for attachement events.",
@@ -1508,6 +1575,20 @@
1508
1575
  "additionalProperties": false,
1509
1576
  "type": "object"
1510
1577
  },
1578
+ "UserWentOnlineEventArgs": {
1579
+ "additionalProperties": false,
1580
+ "description": "Arguments for the \"offline.user-went-online\" event.",
1581
+ "properties": {
1582
+ "previouslyActiveArea": {
1583
+ "$ref": "OfflineAreaBase",
1584
+ "description": "The area that was previously active."
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "previouslyActiveArea"
1589
+ ],
1590
+ "type": "object"
1591
+ },
1511
1592
  "WorkflowErrorEventArgs": {
1512
1593
  "additionalProperties": false,
1513
1594
  "description": "Arguments for the \"workflow.workflow-error\" event.",
@@ -10689,7 +10770,7 @@
10689
10770
  ]
10690
10771
  },
10691
10772
  "offline.area-activated:input": {
10692
- "$ref": "OfflineAreaBase"
10773
+ "$ref": "#/definitions/AreaActivatedEventArgs"
10693
10774
  },
10694
10775
  "offline.area-activating": {
10695
10776
  "description": "Raised when an offline area is about to be activated.",
@@ -10716,7 +10797,7 @@
10716
10797
  ]
10717
10798
  },
10718
10799
  "offline.area-download-canceled:input": {
10719
- "$ref": "OfflineAreaBase"
10800
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10720
10801
  },
10721
10802
  "offline.area-download-failed": {
10722
10803
  "description": "Raised when an offline area download fails.",
@@ -10725,6 +10806,15 @@
10725
10806
  ]
10726
10807
  },
10727
10808
  "offline.area-download-failed:input": {
10809
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10810
+ },
10811
+ "offline.area-download-started": {
10812
+ "description": "Raised when an offline area download has started.",
10813
+ "enum": [
10814
+ "offline.area-download-started"
10815
+ ]
10816
+ },
10817
+ "offline.area-download-started:input": {
10728
10818
  "$ref": "OfflineAreaBase"
10729
10819
  },
10730
10820
  "offline.area-downloaded": {
@@ -10734,7 +10824,7 @@
10734
10824
  ]
10735
10825
  },
10736
10826
  "offline.area-downloaded:input": {
10737
- "$ref": "OfflineAreaBase"
10827
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10738
10828
  },
10739
10829
  "offline.area-edits-submit-failed": {
10740
10830
  "description": "Raised when any error occurs during an offline map submit edits.",
@@ -10743,7 +10833,16 @@
10743
10833
  ]
10744
10834
  },
10745
10835
  "offline.area-edits-submit-failed:input": {
10746
- "$ref": "OfflineAreaBase"
10836
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10837
+ },
10838
+ "offline.area-edits-submit-started": {
10839
+ "description": "Raised when an operation to submit offline area edits has started.",
10840
+ "enum": [
10841
+ "offline.area-edits-submit-started"
10842
+ ]
10843
+ },
10844
+ "offline.area-edits-submit-started:input": {
10845
+ "$ref": "#/definitions/AreaEditsSubmitStartedEventArgs"
10747
10846
  },
10748
10847
  "offline.area-edits-submitted": {
10749
10848
  "description": "Raised when offline area edits have been submitted and this operation is successfully completed.",
@@ -10752,7 +10851,7 @@
10752
10851
  ]
10753
10852
  },
10754
10853
  "offline.area-edits-submitted:input": {
10755
- "$ref": "OfflineAreaBase"
10854
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10756
10855
  },
10757
10856
  "offline.area-update-failed": {
10758
10857
  "description": "Raised when an any error occurs during an offline map update.",
@@ -10761,6 +10860,15 @@
10761
10860
  ]
10762
10861
  },
10763
10862
  "offline.area-update-failed:input": {
10863
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10864
+ },
10865
+ "offline.area-update-started": {
10866
+ "description": "Raised when an offline area update has started.",
10867
+ "enum": [
10868
+ "offline.area-update-started"
10869
+ ]
10870
+ },
10871
+ "offline.area-update-started:input": {
10764
10872
  "$ref": "OfflineAreaBase"
10765
10873
  },
10766
10874
  "offline.area-updated": {
@@ -10770,7 +10878,7 @@
10770
10878
  ]
10771
10879
  },
10772
10880
  "offline.area-updated:input": {
10773
- "$ref": "OfflineAreaBase"
10881
+ "$ref": "#/definitions/AreaOperationEndedEventArgs"
10774
10882
  },
10775
10883
  "offline.custom-area-created": {
10776
10884
  "description": "Raised when a new custom offline map area is created.",
@@ -10796,6 +10904,9 @@
10796
10904
  "offline.user-went-online"
10797
10905
  ]
10798
10906
  },
10907
+ "offline.user-went-online:input": {
10908
+ "$ref": "#/definitions/UserWentOnlineEventArgs"
10909
+ },
10799
10910
  "panel.host-panel-component-changed": {
10800
10911
  "description": "Raised when the component that is currently being displayed by the host panel is changed. Argument is the id of the component.",
10801
10912
  "enum": [
@@ -11239,18 +11350,27 @@
11239
11350
  {
11240
11351
  "$ref": "#/definitions/offline.area-download-failed"
11241
11352
  },
11353
+ {
11354
+ "$ref": "#/definitions/offline.area-download-started"
11355
+ },
11242
11356
  {
11243
11357
  "$ref": "#/definitions/offline.area-downloaded"
11244
11358
  },
11245
11359
  {
11246
11360
  "$ref": "#/definitions/offline.area-edits-submit-failed"
11247
11361
  },
11362
+ {
11363
+ "$ref": "#/definitions/offline.area-edits-submit-started"
11364
+ },
11248
11365
  {
11249
11366
  "$ref": "#/definitions/offline.area-edits-submitted"
11250
11367
  },
11251
11368
  {
11252
11369
  "$ref": "#/definitions/offline.area-update-failed"
11253
11370
  },
11371
+ {
11372
+ "$ref": "#/definitions/offline.area-update-started"
11373
+ },
11254
11374
  {
11255
11375
  "$ref": "#/definitions/offline.area-updated"
11256
11376
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "50.0.0",
3
+ "version": "50.2.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 = "50.0.0";
4
+ export declare const version = "50.2.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 = "50.0.0";
4
+ export const version = "50.2.0";