@vertigis/viewer-spec 59.28.0 → 59.29.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.
@@ -2,3 +2,8 @@ export interface TimeSpan {
2
2
  }
3
3
  export interface ConsoleKeyInfo {
4
4
  }
5
+ /**
6
+ * {https://learn.microsoft.com/en-us/dotnet/api/system.datetime}.
7
+ */
8
+ export interface DateTime {
9
+ }
@@ -6,7 +6,7 @@ export declare class MessagingOperations extends OperationRegistry {
6
6
  * Attempts to merge an array of values into a single value that can be used
7
7
  * as an argument for a command or operation. For example:
8
8
  *
9
- * [features, { chart: "average-household-income" }];
9
+ * [features, { chart: "average-household-income" }];
10
10
  *
11
11
  * This would mix `features` obtained from some other source into arguments
12
12
  * intended for the "charts.display" command.
@@ -10,6 +10,7 @@ import type FeatureTable from "esri-runtime-sdk/FeatureTable";
10
10
  import type OfflineMapSyncLayerResult from "esri-runtime-sdk/OfflineMapSyncLayerResult";
11
11
  import type { Command } from "../Command.js";
12
12
  import { CommandRegistry } from "../CommandRegistry.js";
13
+ import type { DateTime } from "../DotNetTypes.js";
13
14
  import type { Event } from "../Event.js";
14
15
  import { EventRegistry } from "../EventRegistry.js";
15
16
  import type { Operation } from "../Operation.js";
@@ -32,6 +33,21 @@ export interface CreateOfflineAreaArgs {
32
33
  */
33
34
  areaDetails: CustomOfflineAreaDetails;
34
35
  }
36
+ /**
37
+ * Arguments for the "offline.get-areas" operation.
38
+ */
39
+ export interface GetOfflineAreasArgs {
40
+ /**
41
+ * The map to look for areas from.
42
+ */
43
+ mapExtension?: MapExtension;
44
+ /**
45
+ * Whether the operation should retrieve cached data (true), or fetch data
46
+ * over the network (false). Defaults to false (fetch data over the
47
+ * network).
48
+ */
49
+ getCached?: boolean;
50
+ }
35
51
  /**
36
52
  * Arguments for various offline commands.
37
53
  */
@@ -112,12 +128,123 @@ export interface AreaEditsSubmitStartedEventArgs {
112
128
  * the VertiGIS.Mobile SDK.
113
129
  */
114
130
  export interface OfflineAreaBase {
131
+ /**
132
+ * The Portal item ID of the online map this map area belongs to.
133
+ */
134
+ onlineMapId: string;
135
+ /**
136
+ * The time this map area was last updated.
137
+ */
138
+ updatedOn: DateTime;
139
+ /**
140
+ * The last time that this map area was activated.
141
+ */
142
+ lastActivated: DateTime;
143
+ /**
144
+ * A text string to display to the user describing this map area's current
145
+ * status.
146
+ */
147
+ statusText: string;
148
+ /**
149
+ * The title of this map area.
150
+ */
151
+ title: string;
152
+ /**
153
+ * A value indicating whether this map area can be removed from the list of
154
+ * available areas. Returns true for custom map areas; false for preplanned
155
+ * areas.
156
+ */
157
+ removable: boolean;
158
+ /**
159
+ * The file size of the map area, in bytes.
160
+ */
161
+ fileSizeInBytes: number;
162
+ /**
163
+ * The path to the mobile map package on the device.
164
+ */
165
+ path: string;
166
+ /**
167
+ * The name of a sideloaded TPK to use as a basemap. May be null.
168
+ */
169
+ sideloadedTilePackageName: string;
170
+ /**
171
+ * Whether the download of this area includes a basemap.
172
+ */
173
+ includesBasemap: boolean;
174
+ /**
175
+ * The current OfflineAreaState of this map area.
176
+ */
177
+ currentState: OfflineAreaStates;
178
+ /**
179
+ * The number of features which have been added to this map area and are
180
+ * pending sync.
181
+ */
182
+ numberOfAddedFeatures: number;
183
+ /**
184
+ * The number of features which have been removed from this map area and are
185
+ * pending sync.
186
+ */
187
+ numberOfDeletedFeatures: number;
188
+ /**
189
+ * The number of features which have been updated in this map area and are
190
+ * pending sync.
191
+ */
192
+ numberOfUpdatedFeatures: number;
193
+ /**
194
+ * The total number of edits pending sync; the sum of numberOfAddedFeatures,
195
+ * numberOfDeletedFeatures and numberOfUpdatedFeatures.
196
+ */
197
+ numberOfEditedFeatures: number;
198
+ /**
199
+ * A value indicating whether there are any edits pending sync in this map
200
+ * area; i.e. true if numberOfEditedFeatures is greater than 0.
201
+ */
202
+ hasEdits: boolean;
203
+ /**
204
+ * The progress of a download or sync operation in this map area. Value
205
+ * ranges from 0 to 1.
206
+ */
207
+ progress: number;
208
+ /**
209
+ * Whether this map area is currently active.
210
+ */
211
+ isActive: boolean;
212
+ /**
213
+ * Whether this map area is currently updating or submitting edits.
214
+ */
215
+ isSyncing: boolean;
216
+ /**
217
+ * The map that this map area belongs to.
218
+ */
219
+ map: MapExtension;
220
+ /**
221
+ * The geometry defining this map area.
222
+ */
223
+ areaOfInterest: GeometryUnion;
224
+ /**
225
+ * The collection of layers that failed being taken offline.
226
+ */
227
+ failedLayers: string[];
228
+ /**
229
+ * The collection of tables that failed being taken offline.
230
+ */
231
+ failedTables: string[];
232
+ /**
233
+ * The list of sources (layers and tables) that failed being taken offline;
234
+ * i.e. a union of failedLayers and failedTables.
235
+ */
236
+ failedSources: string[];
237
+ /**
238
+ * A value indicating whether there are any of the data sources failed being
239
+ * taken offline; i.e. true if failedSources count is greater than 0.
240
+ */
241
+ hasFailedSources: boolean;
115
242
  }
116
243
  /**
117
244
  * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.CustomOfflineArea` in
118
245
  * the VertiGIS.Mobile SDK.
119
246
  */
120
- export interface CustomOfflineArea {
247
+ export interface CustomOfflineArea extends OfflineAreaBase {
121
248
  }
122
249
  /**
123
250
  * Defines the details for the creation of a custom offline map area.
@@ -156,6 +283,62 @@ export interface CustomOfflineAreaDetails {
156
283
  */
157
284
  export interface OfflineAreaStatus {
158
285
  }
286
+ /**
287
+ * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.OfflineAreaStates` in
288
+ * the VertiGIS.Mobile SDK. This is a [flags
289
+ * enum](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum#enumeration-types-as-bit-flags).
290
+ */
291
+ export declare enum OfflineAreaStates {
292
+ /**
293
+ * Not downloaded.
294
+ */
295
+ AVAILABLE_TO_DOWNLOAD = 0,
296
+ /**
297
+ * Downloading.
298
+ */
299
+ DOWNLOADING = 1,
300
+ /**
301
+ * Downloaded but not active.
302
+ */
303
+ DOWNLOADED = 2,
304
+ /**
305
+ * Active.
306
+ */
307
+ ACTIVE = 4,
308
+ /**
309
+ * Currently updating.
310
+ */
311
+ UPDATING = 8,
312
+ /**
313
+ * Edits are being submitted.
314
+ */
315
+ SUBMITTING_EDITS = 16,
316
+ /**
317
+ * Deletion will begin shortly, for example after the user has confirmed a
318
+ * prompt.
319
+ */
320
+ DELETION_PENDING = 32,
321
+ /**
322
+ * Deletion is in progress.
323
+ */
324
+ DELETION_IN_PROGRESS = 64,
325
+ /**
326
+ * Download has been triggered but has not yet started.
327
+ */
328
+ DOWNLOAD_STARTING = 128,
329
+ /**
330
+ * Activating.
331
+ */
332
+ ACTIVATING = 256,
333
+ /**
334
+ * Deactivating.
335
+ */
336
+ DEACTIVATING = 512,
337
+ /**
338
+ * Processing.
339
+ */
340
+ PROCESSING = 1024
341
+ }
159
342
  /**
160
343
  * Corresponds to `VertiGIS.Mobile.Infrastructure.Offline.LayerEdits` in the
161
344
  * VertiGIS.Mobile SDK.
@@ -450,7 +633,14 @@ export declare class OfflineOperations extends OperationRegistry {
450
633
  *
451
634
  * @mobileOnly
452
635
  */
453
- get getAreas(): Operation<MapExtension, OfflineAreaBase[]>;
636
+ get getAreas(): Operation<GetOfflineAreasArgs, OfflineAreaBase[]>;
637
+ /**
638
+ * Gets a list of available custom offline areas for the web map. Mobile
639
+ * only.
640
+ *
641
+ * @mobileOnly
642
+ */
643
+ get getCustomAreas(): Operation<MapExtension, OfflineAreaBase[]>;
454
644
  /**
455
645
  * Gets a list of layer edits for a given map area. Mobile only.
456
646
  *
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as a}from"../OperationRegistry.js";export class OfflineCommands extends e{_prefix="offline";get cancelCreateArea(){return this._get("cancel-create-area")}get cancelDownload(){return this._get("cancel-download")}get deleteArea(){return this._get("delete-area")}get displayCreateArea(){return this._get("display-create-area")}}export class OfflineEvents extends t{_prefix="offline";get areaActivated(){return this._get("area-activated")}get areaActivating(){return this._get("area-activating")}get areaDeleted(){return this._get("area-deleted")}get areaDownloadStarted(){return this._get("area-download-started")}get areaDownloadCanceled(){return this._get("area-download-canceled")}get areaDownloadFailed(){return this._get("area-download-failed")}get areaDownloaded(){return this._get("area-downloaded")}get areaUpdateStarted(){return this._get("area-update-started")}get areaUpdated(){return this._get("area-updated")}get areaUpdateFailed(){return this._get("area-update-failed")}get areaEditsSubmitStarted(){return this._get("area-edits-submit-started")}get areaEditsSubmitted(){return this._get("area-edits-submitted")}get areaEditsSubmitFailed(){return this._get("area-edits-submit-failed")}get customAreaCreated(){return this._get("custom-area-created")}get customAreaDeleted(){return this._get("custom-area-deleted")}get userWentOnline(){return this._get("user-went-online")}}export class OfflineOperations extends a{_prefix="offline";get createArea(){return this._get("create-area")}get getAreas(){return this._get("get-areas")}get getEdits(){return this._get("get-edits")}get activateArea(){return this._get("activate-area")}get downloadArea(){return this._get("download-area")}get goOnline(){return this._get("go-online")}get checkForActiveArea(){return this._get("check-for-active-area")}get submitEdits(){return this._get("submit-edits")}get updateArea(){return this._get("update-area")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as a}from"../OperationRegistry.js";export var OfflineAreaStates;!function(e){e[e.AVAILABLE_TO_DOWNLOAD=0]="AVAILABLE_TO_DOWNLOAD",e[e.DOWNLOADING=1]="DOWNLOADING",e[e.DOWNLOADED=2]="DOWNLOADED",e[e.ACTIVE=4]="ACTIVE",e[e.UPDATING=8]="UPDATING",e[e.SUBMITTING_EDITS=16]="SUBMITTING_EDITS",e[e.DELETION_PENDING=32]="DELETION_PENDING",e[e.DELETION_IN_PROGRESS=64]="DELETION_IN_PROGRESS",e[e.DOWNLOAD_STARTING=128]="DOWNLOAD_STARTING",e[e.ACTIVATING=256]="ACTIVATING",e[e.DEACTIVATING=512]="DEACTIVATING",e[e.PROCESSING=1024]="PROCESSING"}(OfflineAreaStates||(OfflineAreaStates={}));export class OfflineCommands extends e{_prefix="offline";get cancelCreateArea(){return this._get("cancel-create-area")}get cancelDownload(){return this._get("cancel-download")}get deleteArea(){return this._get("delete-area")}get displayCreateArea(){return this._get("display-create-area")}}export class OfflineEvents extends t{_prefix="offline";get areaActivated(){return this._get("area-activated")}get areaActivating(){return this._get("area-activating")}get areaDeleted(){return this._get("area-deleted")}get areaDownloadStarted(){return this._get("area-download-started")}get areaDownloadCanceled(){return this._get("area-download-canceled")}get areaDownloadFailed(){return this._get("area-download-failed")}get areaDownloaded(){return this._get("area-downloaded")}get areaUpdateStarted(){return this._get("area-update-started")}get areaUpdated(){return this._get("area-updated")}get areaUpdateFailed(){return this._get("area-update-failed")}get areaEditsSubmitStarted(){return this._get("area-edits-submit-started")}get areaEditsSubmitted(){return this._get("area-edits-submitted")}get areaEditsSubmitFailed(){return this._get("area-edits-submit-failed")}get customAreaCreated(){return this._get("custom-area-created")}get customAreaDeleted(){return this._get("custom-area-deleted")}get userWentOnline(){return this._get("user-went-online")}}export class OfflineOperations extends a{_prefix="offline";get createArea(){return this._get("create-area")}get getAreas(){return this._get("get-areas")}get getCustomAreas(){return this._get("get-custom-areas")}get getEdits(){return this._get("get-edits")}get activateArea(){return this._get("activate-area")}get downloadArea(){return this._get("download-area")}get goOnline(){return this._get("go-online")}get checkForActiveArea(){return this._get("check-for-active-area")}get submitEdits(){return this._get("submit-edits")}get updateArea(){return this._get("update-area")}}
@@ -2955,6 +2955,21 @@
2955
2955
  ],
2956
2956
  "type": "object"
2957
2957
  },
2958
+ "GetOfflineAreasArgs": {
2959
+ "additionalProperties": false,
2960
+ "description": "Arguments for the \"offline.get-areas\" operation.",
2961
+ "properties": {
2962
+ "getCached": {
2963
+ "description": "Whether the operation should retrieve cached data (true), or fetch data over the network (false). Defaults to false (fetch data over the network).",
2964
+ "type": "boolean"
2965
+ },
2966
+ "mapExtension": {
2967
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension",
2968
+ "description": "The map to look for areas from."
2969
+ }
2970
+ },
2971
+ "type": "object"
2972
+ },
2958
2973
  "GetTransformationArgs": {
2959
2974
  "additionalProperties": false,
2960
2975
  "description": "Arguments for getting a list of geographic transformations.",
@@ -16988,7 +17003,7 @@
16988
17003
  ]
16989
17004
  },
16990
17005
  "offline.get-areas:input": {
16991
- "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
17006
+ "$ref": "#/definitions/GetOfflineAreasArgs"
16992
17007
  },
16993
17008
  "offline.get-areas:output": {
16994
17009
  "items": {
@@ -16996,6 +17011,21 @@
16996
17011
  },
16997
17012
  "type": "array"
16998
17013
  },
17014
+ "offline.get-custom-areas": {
17015
+ "description": "Gets a list of available custom offline areas for the web map. Mobile only.",
17016
+ "enum": [
17017
+ "offline.get-custom-areas"
17018
+ ]
17019
+ },
17020
+ "offline.get-custom-areas:input": {
17021
+ "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
17022
+ },
17023
+ "offline.get-custom-areas:output": {
17024
+ "items": {
17025
+ "$ref": "OfflineAreaBase"
17026
+ },
17027
+ "type": "array"
17028
+ },
16999
17029
  "offline.get-edits": {
17000
17030
  "description": "Gets a list of layer edits for a given map area. Mobile only.",
17001
17031
  "enum": [
@@ -20853,6 +20883,22 @@
20853
20883
  ],
20854
20884
  "type": "object"
20855
20885
  },
20886
+ {
20887
+ "additionalProperties": false,
20888
+ "properties": {
20889
+ "arguments": {
20890
+ "$ref": "#/definitions/offline.get-custom-areas:input"
20891
+ },
20892
+ "name": {
20893
+ "$ref": "#/definitions/offline.get-custom-areas"
20894
+ }
20895
+ },
20896
+ "required": [
20897
+ "name",
20898
+ "arguments"
20899
+ ],
20900
+ "type": "object"
20901
+ },
20856
20902
  {
20857
20903
  "additionalProperties": false,
20858
20904
  "properties": {
@@ -21302,6 +21348,9 @@
21302
21348
  {
21303
21349
  "$ref": "#/definitions/offline.get-areas"
21304
21350
  },
21351
+ {
21352
+ "$ref": "#/definitions/offline.get-custom-areas"
21353
+ },
21305
21354
  {
21306
21355
  "$ref": "#/definitions/offline.get-edits"
21307
21356
  },
@@ -24126,7 +24126,7 @@
24126
24126
  ]
24127
24127
  },
24128
24128
  "messaging.mix-in-args": {
24129
- "description": "Attempts to merge an array of values into a single value that can be used as an argument for a command or operation. For example:\n\n [features, { chart: \"average-household-income\" }];\n\nThis would mix `features` obtained from some other source into arguments intended for the \"charts.display\" command.\n\nIf the values cannot be merged, then the leftmost value is returned.\n\nNote that argument merging already occurs automatically in command chains; this explicit operation exists for advanced scenarios like VertiGIS Studio Workflow or custom code written using the SDK. Web only.",
24129
+ "description": "Attempts to merge an array of values into a single value that can be used as an argument for a command or operation. For example:\n\n[features, { chart: \"average-household-income\" }];\n\nThis would mix `features` obtained from some other source into arguments intended for the \"charts.display\" command.\n\nIf the values cannot be merged, then the leftmost value is returned.\n\nNote that argument merging already occurs automatically in command chains; this explicit operation exists for advanced scenarios like VertiGIS Studio Workflow or custom code written using the SDK. Web only.",
24130
24130
  "enum": [
24131
24131
  "messaging.mix-in-args"
24132
24132
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "59.28.0",
3
+ "version": "59.29.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "eslint-plugin-jsdoc": "48.2.1",
60
60
  "eslint-plugin-no-autofix": "1.2.3",
61
61
  "eslint-plugin-only-warn": "1.1.0",
62
- "glob": "11.0.1",
62
+ "glob": "11.1.0",
63
63
  "lint-staged": "15.5.2",
64
64
  "path-equal": "1.2.5",
65
65
  "prettier": "3.2.5",
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 = "59.28.0";
4
+ export declare const version = "59.29.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 = "59.28.0";
4
+ export const version = "59.29.0";