@vertigis/viewer-spec 46.4.1 → 47.1.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.
@@ -543,6 +543,46 @@
543
543
  ],
544
544
  "description": "A reference to a portal item."
545
545
  },
546
+ "AddAttachmentArgs": {
547
+ "additionalProperties": false,
548
+ "description": "Arguments for the \"edit.add-attachment\" command. Supported by both Web and Mobile.",
549
+ "properties": {
550
+ "contentType": {
551
+ "description": "The MIME content type of the attachment.",
552
+ "type": "string"
553
+ },
554
+ "data": {
555
+ "description": "The binary data for the attachment.",
556
+ "items": {
557
+ "type": "number"
558
+ },
559
+ "type": "array"
560
+ },
561
+ "features": {
562
+ "description": "The feature(s) to add the attachment to.",
563
+ "items": {
564
+ "$ref": "@vertigis.arcgis-extensions.data.Feature.Feature"
565
+ },
566
+ "type": "array"
567
+ },
568
+ "maps": {
569
+ "$ref": "MapsLike",
570
+ "description": "The map."
571
+ },
572
+ "name": {
573
+ "description": "The name of the attachment.",
574
+ "type": "string"
575
+ }
576
+ },
577
+ "required": [
578
+ "contentType",
579
+ "data",
580
+ "features",
581
+ "maps",
582
+ "name"
583
+ ],
584
+ "type": "object"
585
+ },
546
586
  "AddLayersArgs": {
547
587
  "additionalProperties": false,
548
588
  "description": "Arguments for the map.add-layers command.",
@@ -1275,6 +1315,31 @@
1275
1315
  ],
1276
1316
  "type": "object"
1277
1317
  },
1318
+ "DeleteAttachmentArgs": {
1319
+ "additionalProperties": false,
1320
+ "description": "Arguments for the \"edit.delete-attachment\" command.",
1321
+ "properties": {
1322
+ "attachments": {
1323
+ "description": "The attachment(s) to remove from the feature(s). This property can be populated with the title(s) or ID(s) of the attachments(s). Any and all matching attachments found on the input features will be deleted. Web only.",
1324
+ "items": {
1325
+ "type": "string"
1326
+ },
1327
+ "type": "array"
1328
+ },
1329
+ "features": {
1330
+ "$ref": "#/definitions/Features",
1331
+ "description": "The feature(s) to remove the attachment(s) from."
1332
+ },
1333
+ "gcxAttachment": {
1334
+ "$ref": "@vertigis.arcgis-extensions.data.Attachment.Attachment",
1335
+ "description": "The attachment to remove from the feature(s). Mobile only."
1336
+ }
1337
+ },
1338
+ "required": [
1339
+ "features"
1340
+ ],
1341
+ "type": "object"
1342
+ },
1278
1343
  "DeleteGeometryArgs": {
1279
1344
  "additionalProperties": false,
1280
1345
  "description": "Arguments for the \"sketching.delete\" command.",
@@ -2820,6 +2885,24 @@
2820
2885
  ],
2821
2886
  "type": "object"
2822
2887
  },
2888
+ "GetViewpointResult": {
2889
+ "additionalProperties": false,
2890
+ "description": "The result of getting a Viewpoint.",
2891
+ "properties": {
2892
+ "maps": {
2893
+ "$ref": "MapsLike",
2894
+ "description": "The map(s) used in the operation."
2895
+ },
2896
+ "viewpoint": {
2897
+ "$ref": "#/definitions/esri.Viewpoint",
2898
+ "description": "The viewpoint."
2899
+ }
2900
+ },
2901
+ "required": [
2902
+ "viewpoint"
2903
+ ],
2904
+ "type": "object"
2905
+ },
2823
2906
  "GraphicsLike": {
2824
2907
  "anyOf": [
2825
2908
  {
@@ -5160,6 +5243,35 @@
5160
5243
  ],
5161
5244
  "type": "object"
5162
5245
  },
5246
+ "WebAddAttachmentArgs": {
5247
+ "additionalProperties": false,
5248
+ "description": "VertiGIS Studio Web's arguments for the \"edit.add-attachment\" command. Not supported by Mobile.",
5249
+ "properties": {
5250
+ "blobs": {
5251
+ "anyOf": [
5252
+ {
5253
+ "$ref": "File"
5254
+ },
5255
+ {
5256
+ "items": {
5257
+ "$ref": "File"
5258
+ },
5259
+ "type": "array"
5260
+ }
5261
+ ],
5262
+ "description": "The blob(s) that contains the file attachment(s). If multiple attachments are specified, all attachment will be added to the feature(s)."
5263
+ },
5264
+ "features": {
5265
+ "$ref": "#/definitions/Features",
5266
+ "description": "The feature(s) to add the attachment(s) to. If multiple features are specified, the attachment(s) will be added to all features."
5267
+ }
5268
+ },
5269
+ "required": [
5270
+ "blobs",
5271
+ "features"
5272
+ ],
5273
+ "type": "object"
5274
+ },
5163
5275
  "WebOpenUrlArgs": {
5164
5276
  "additionalProperties": false,
5165
5277
  "description": "VertiGIS Studio Web's arguments for the system.open-url command.",
@@ -5754,6 +5866,22 @@
5754
5866
  "drawing.set-sync:input": {
5755
5867
  "type": "boolean"
5756
5868
  },
5869
+ "edit.add-attachment": {
5870
+ "description": "Create and add an attachment to a provided feature, using the given attachment data.",
5871
+ "enum": [
5872
+ "edit.add-attachment"
5873
+ ]
5874
+ },
5875
+ "edit.add-attachment:input": {
5876
+ "anyOf": [
5877
+ {
5878
+ "$ref": "#/definitions/AddAttachmentArgs"
5879
+ },
5880
+ {
5881
+ "$ref": "#/definitions/WebAddAttachmentArgs"
5882
+ }
5883
+ ]
5884
+ },
5757
5885
  "edit.add-feature": {
5758
5886
  "description": "Adds a feature to a particular layer. `Feature[]` and `EditCommandArgs` are not supported on Mobile.",
5759
5887
  "enum": [
@@ -5788,6 +5916,15 @@
5788
5916
  "edit.create-feature:output": {
5789
5917
  "$ref": "#/definitions/HasFeatures"
5790
5918
  },
5919
+ "edit.delete-attachment": {
5920
+ "description": "Deletes attachments from feature(s).",
5921
+ "enum": [
5922
+ "edit.delete-attachment"
5923
+ ]
5924
+ },
5925
+ "edit.delete-attachment:input": {
5926
+ "$ref": "#/definitions/DeleteAttachmentArgs"
5927
+ },
5791
5928
  "edit.delete-features": {
5792
5929
  "description": "Deletes the given feature or features from their feature sources. `EditCommandArgs` is not supported on Mobile.",
5793
5930
  "enum": [
@@ -14170,9 +14307,6 @@
14170
14307
  "geocode.batch-geocode:input": {
14171
14308
  "$ref": "#/definitions/BatchGeocodeArgs"
14172
14309
  },
14173
- "geocode.batch-geocode:output": {
14174
- "type": "undefined"
14175
- },
14176
14310
  "geocode.count": {
14177
14311
  "description": "Counts the number of locations corresponding to an address.",
14178
14312
  "enum": [
@@ -14182,9 +14316,6 @@
14182
14316
  "geocode.count:input": {
14183
14317
  "$ref": "#/definitions/GeocodeArgs"
14184
14318
  },
14185
- "geocode.count:output": {
14186
- "type": "undefined"
14187
- },
14188
14319
  "geocode.geocode": {
14189
14320
  "description": "Finds one or more locations corresponding to an address.",
14190
14321
  "enum": [
@@ -14194,9 +14325,6 @@
14194
14325
  "geocode.geocode:input": {
14195
14326
  "$ref": "#/definitions/GeocodeArgs"
14196
14327
  },
14197
- "geocode.geocode:output": {
14198
- "type": "undefined"
14199
- },
14200
14328
  "geocode.reverse-geocode": {
14201
14329
  "description": "Finds the address at a particular location. The geocoder must have the supportsReverseGeocoding capability.",
14202
14330
  "enum": [
@@ -14206,9 +14334,6 @@
14206
14334
  "geocode.reverse-geocode:input": {
14207
14335
  "$ref": "#/definitions/ReverseGeocodeArgs"
14208
14336
  },
14209
- "geocode.reverse-geocode:output": {
14210
- "type": "undefined"
14211
- },
14212
14337
  "geocode.suggest": {
14213
14338
  "description": "Suggests matching addresses to search for based on some input text. The geocoder must have the supportsSuggest capability.",
14214
14339
  "enum": [
@@ -14218,9 +14343,6 @@
14218
14343
  "geocode.suggest:input": {
14219
14344
  "$ref": "#/definitions/SuggestArgs"
14220
14345
  },
14221
- "geocode.suggest:output": {
14222
- "type": "undefined"
14223
- },
14224
14346
  "geolocation.auto-recenter": {
14225
14347
  "description": "Centers the map on the user's current location and keeps the location centered as it moves around. The maps parameter is only supported in Geocortex Mobile Viewer. In Geocortex Web Viewer, all maps are affected.",
14226
14348
  "enum": [
@@ -14270,9 +14392,6 @@
14270
14392
  "geolocation.get-location-permissions-enabled:input": {
14271
14393
  "type": "boolean"
14272
14394
  },
14273
- "geolocation.get-location-permissions-enabled:output": {
14274
- "type": "undefined"
14275
- },
14276
14395
  "geolocation.get-position": {
14277
14396
  "description": "Returns the current user position. This Operation can block while the user is prompted for permission, as such it is considered best practice not to perform this during startup.",
14278
14397
  "enum": [
@@ -14957,7 +15076,7 @@
14957
15076
  "$ref": "#/definitions/GetExtentResult"
14958
15077
  },
14959
15078
  "map.get-initial-viewpoint": {
14960
- "description": "Returns the initial viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the initial viewpoint for the first available map.",
15079
+ "description": "Returns the initial viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the initial viewpoint for the first available map. Also returns the map(s) used for the operation.",
14961
15080
  "enum": [
14962
15081
  "map.get-initial-viewpoint"
14963
15082
  ]
@@ -14982,7 +15101,7 @@
14982
15101
  ]
14983
15102
  },
14984
15103
  "map.get-initial-viewpoint:output": {
14985
- "$ref": "#/definitions/esri.Viewpoint"
15104
+ "$ref": "#/definitions/GetViewpointResult"
14986
15105
  },
14987
15106
  "map.get-markup": {
14988
15107
  "description": "Returns markup from the specified map that are intersected by the supplied geometry.",
@@ -15037,7 +15156,7 @@
15037
15156
  "$ref": "#/definitions/GetCoordinateResult"
15038
15157
  },
15039
15158
  "map.get-viewpoint": {
15040
- "description": "Returns the current viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the viewpoint for the first available map.",
15159
+ "description": "Returns the current viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the viewpoint for the first available map. Also returns the map(s) used for the operation.",
15041
15160
  "enum": [
15042
15161
  "map.get-viewpoint"
15043
15162
  ]
@@ -15062,7 +15181,7 @@
15062
15181
  ]
15063
15182
  },
15064
15183
  "map.get-viewpoint:output": {
15065
- "$ref": "#/definitions/esri.Viewpoint"
15184
+ "$ref": "#/definitions/GetViewpointResult"
15066
15185
  },
15067
15186
  "map.go-to-features": {
15068
15187
  "description": "Zooms to (without animation) one or many features on the targeted map(s).",
@@ -17392,6 +17511,22 @@
17392
17511
  ],
17393
17512
  "type": "object"
17394
17513
  },
17514
+ {
17515
+ "additionalProperties": false,
17516
+ "properties": {
17517
+ "arguments": {
17518
+ "$ref": "#/definitions/edit.add-attachment:input"
17519
+ },
17520
+ "name": {
17521
+ "$ref": "#/definitions/edit.add-attachment"
17522
+ }
17523
+ },
17524
+ "required": [
17525
+ "name",
17526
+ "arguments"
17527
+ ],
17528
+ "type": "object"
17529
+ },
17395
17530
  {
17396
17531
  "additionalProperties": false,
17397
17532
  "properties": {
@@ -17408,6 +17543,22 @@
17408
17543
  ],
17409
17544
  "type": "object"
17410
17545
  },
17546
+ {
17547
+ "additionalProperties": false,
17548
+ "properties": {
17549
+ "arguments": {
17550
+ "$ref": "#/definitions/edit.delete-attachment:input"
17551
+ },
17552
+ "name": {
17553
+ "$ref": "#/definitions/edit.delete-attachment"
17554
+ }
17555
+ },
17556
+ "required": [
17557
+ "name",
17558
+ "arguments"
17559
+ ],
17560
+ "type": "object"
17561
+ },
17411
17562
  {
17412
17563
  "additionalProperties": false,
17413
17564
  "properties": {
@@ -17472,6 +17623,86 @@
17472
17623
  ],
17473
17624
  "type": "object"
17474
17625
  },
17626
+ {
17627
+ "additionalProperties": false,
17628
+ "properties": {
17629
+ "arguments": {
17630
+ "$ref": "#/definitions/geocode.batch-geocode:input"
17631
+ },
17632
+ "name": {
17633
+ "$ref": "#/definitions/geocode.batch-geocode"
17634
+ }
17635
+ },
17636
+ "required": [
17637
+ "name",
17638
+ "arguments"
17639
+ ],
17640
+ "type": "object"
17641
+ },
17642
+ {
17643
+ "additionalProperties": false,
17644
+ "properties": {
17645
+ "arguments": {
17646
+ "$ref": "#/definitions/geocode.count:input"
17647
+ },
17648
+ "name": {
17649
+ "$ref": "#/definitions/geocode.count"
17650
+ }
17651
+ },
17652
+ "required": [
17653
+ "name",
17654
+ "arguments"
17655
+ ],
17656
+ "type": "object"
17657
+ },
17658
+ {
17659
+ "additionalProperties": false,
17660
+ "properties": {
17661
+ "arguments": {
17662
+ "$ref": "#/definitions/geocode.geocode:input"
17663
+ },
17664
+ "name": {
17665
+ "$ref": "#/definitions/geocode.geocode"
17666
+ }
17667
+ },
17668
+ "required": [
17669
+ "name",
17670
+ "arguments"
17671
+ ],
17672
+ "type": "object"
17673
+ },
17674
+ {
17675
+ "additionalProperties": false,
17676
+ "properties": {
17677
+ "arguments": {
17678
+ "$ref": "#/definitions/geocode.reverse-geocode:input"
17679
+ },
17680
+ "name": {
17681
+ "$ref": "#/definitions/geocode.reverse-geocode"
17682
+ }
17683
+ },
17684
+ "required": [
17685
+ "name",
17686
+ "arguments"
17687
+ ],
17688
+ "type": "object"
17689
+ },
17690
+ {
17691
+ "additionalProperties": false,
17692
+ "properties": {
17693
+ "arguments": {
17694
+ "$ref": "#/definitions/geocode.suggest:input"
17695
+ },
17696
+ "name": {
17697
+ "$ref": "#/definitions/geocode.suggest"
17698
+ }
17699
+ },
17700
+ "required": [
17701
+ "name",
17702
+ "arguments"
17703
+ ],
17704
+ "type": "object"
17705
+ },
17475
17706
  {
17476
17707
  "additionalProperties": false,
17477
17708
  "properties": {
@@ -17488,6 +17719,22 @@
17488
17719
  ],
17489
17720
  "type": "object"
17490
17721
  },
17722
+ {
17723
+ "additionalProperties": false,
17724
+ "properties": {
17725
+ "arguments": {
17726
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled:input"
17727
+ },
17728
+ "name": {
17729
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
17730
+ }
17731
+ },
17732
+ "required": [
17733
+ "name",
17734
+ "arguments"
17735
+ ],
17736
+ "type": "object"
17737
+ },
17491
17738
  {
17492
17739
  "additionalProperties": false,
17493
17740
  "properties": {
@@ -19143,9 +19390,15 @@
19143
19390
  {
19144
19391
  "$ref": "#/definitions/drawing.set-sync"
19145
19392
  },
19393
+ {
19394
+ "$ref": "#/definitions/edit.add-attachment"
19395
+ },
19146
19396
  {
19147
19397
  "$ref": "#/definitions/edit.add-feature"
19148
19398
  },
19399
+ {
19400
+ "$ref": "#/definitions/edit.delete-attachment"
19401
+ },
19149
19402
  {
19150
19403
  "$ref": "#/definitions/edit.delete-features"
19151
19404
  },
@@ -19158,12 +19411,30 @@
19158
19411
  {
19159
19412
  "$ref": "#/definitions/edit.update-feature"
19160
19413
  },
19414
+ {
19415
+ "$ref": "#/definitions/geocode.batch-geocode"
19416
+ },
19417
+ {
19418
+ "$ref": "#/definitions/geocode.count"
19419
+ },
19420
+ {
19421
+ "$ref": "#/definitions/geocode.geocode"
19422
+ },
19423
+ {
19424
+ "$ref": "#/definitions/geocode.reverse-geocode"
19425
+ },
19426
+ {
19427
+ "$ref": "#/definitions/geocode.suggest"
19428
+ },
19161
19429
  {
19162
19430
  "$ref": "#/definitions/geolocation.auto-recenter"
19163
19431
  },
19164
19432
  {
19165
19433
  "$ref": "#/definitions/geolocation.display-location"
19166
19434
  },
19435
+ {
19436
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
19437
+ },
19167
19438
  {
19168
19439
  "$ref": "#/definitions/geolocation.turn-off-geolocation"
19169
19440
  },
@@ -19639,102 +19910,6 @@
19639
19910
  ],
19640
19911
  "type": "object"
19641
19912
  },
19642
- {
19643
- "additionalProperties": false,
19644
- "properties": {
19645
- "arguments": {
19646
- "$ref": "#/definitions/geocode.batch-geocode:input"
19647
- },
19648
- "name": {
19649
- "$ref": "#/definitions/geocode.batch-geocode"
19650
- }
19651
- },
19652
- "required": [
19653
- "name",
19654
- "arguments"
19655
- ],
19656
- "type": "object"
19657
- },
19658
- {
19659
- "additionalProperties": false,
19660
- "properties": {
19661
- "arguments": {
19662
- "$ref": "#/definitions/geocode.count:input"
19663
- },
19664
- "name": {
19665
- "$ref": "#/definitions/geocode.count"
19666
- }
19667
- },
19668
- "required": [
19669
- "name",
19670
- "arguments"
19671
- ],
19672
- "type": "object"
19673
- },
19674
- {
19675
- "additionalProperties": false,
19676
- "properties": {
19677
- "arguments": {
19678
- "$ref": "#/definitions/geocode.geocode:input"
19679
- },
19680
- "name": {
19681
- "$ref": "#/definitions/geocode.geocode"
19682
- }
19683
- },
19684
- "required": [
19685
- "name",
19686
- "arguments"
19687
- ],
19688
- "type": "object"
19689
- },
19690
- {
19691
- "additionalProperties": false,
19692
- "properties": {
19693
- "arguments": {
19694
- "$ref": "#/definitions/geocode.reverse-geocode:input"
19695
- },
19696
- "name": {
19697
- "$ref": "#/definitions/geocode.reverse-geocode"
19698
- }
19699
- },
19700
- "required": [
19701
- "name",
19702
- "arguments"
19703
- ],
19704
- "type": "object"
19705
- },
19706
- {
19707
- "additionalProperties": false,
19708
- "properties": {
19709
- "arguments": {
19710
- "$ref": "#/definitions/geocode.suggest:input"
19711
- },
19712
- "name": {
19713
- "$ref": "#/definitions/geocode.suggest"
19714
- }
19715
- },
19716
- "required": [
19717
- "name",
19718
- "arguments"
19719
- ],
19720
- "type": "object"
19721
- },
19722
- {
19723
- "additionalProperties": false,
19724
- "properties": {
19725
- "arguments": {
19726
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled:input"
19727
- },
19728
- "name": {
19729
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
19730
- }
19731
- },
19732
- "required": [
19733
- "name",
19734
- "arguments"
19735
- ],
19736
- "type": "object"
19737
- },
19738
19913
  {
19739
19914
  "additionalProperties": false,
19740
19915
  "properties": {
@@ -20526,27 +20701,9 @@
20526
20701
  {
20527
20702
  "$ref": "#/definitions/edit.create-feature"
20528
20703
  },
20529
- {
20530
- "$ref": "#/definitions/geocode.batch-geocode"
20531
- },
20532
- {
20533
- "$ref": "#/definitions/geocode.count"
20534
- },
20535
- {
20536
- "$ref": "#/definitions/geocode.geocode"
20537
- },
20538
- {
20539
- "$ref": "#/definitions/geocode.reverse-geocode"
20540
- },
20541
- {
20542
- "$ref": "#/definitions/geocode.suggest"
20543
- },
20544
20704
  {
20545
20705
  "$ref": "#/definitions/geolocation.get-current-state"
20546
20706
  },
20547
- {
20548
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
20549
- },
20550
20707
  {
20551
20708
  "$ref": "#/definitions/geolocation.get-position"
20552
20709
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "46.4.1",
3
+ "version": "47.1.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "author": "VertiGIS Ltd.",
36
36
  "peerDependencies": {
37
- "@vertigis/arcgis-extensions": ">= 34.2.3 < 35.0.0"
37
+ "@vertigis/arcgis-extensions": ">= 34.3.0 < 35.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arcgis/core": "4.21.2",
41
- "@vertigis/arcgis-extensions": "34.2.3",
41
+ "@vertigis/arcgis-extensions": "34.4.2",
42
42
  "@types/glob": "7.2.0",
43
43
  "@types/node": "14.14.41",
44
44
  "@typescript-eslint/eslint-plugin": " 5.13.0",
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.1";
4
+ export declare const version = "47.1.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.1";
4
+ export const version = "47.1.0";