@vertigis/viewer-spec 47.0.0 → 47.3.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.",
@@ -5178,6 +5243,35 @@
5178
5243
  ],
5179
5244
  "type": "object"
5180
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
+ },
5181
5275
  "WebOpenUrlArgs": {
5182
5276
  "additionalProperties": false,
5183
5277
  "description": "VertiGIS Studio Web's arguments for the system.open-url command.",
@@ -5772,6 +5866,22 @@
5772
5866
  "drawing.set-sync:input": {
5773
5867
  "type": "boolean"
5774
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
+ },
5775
5885
  "edit.add-feature": {
5776
5886
  "description": "Adds a feature to a particular layer. `Feature[]` and `EditCommandArgs` are not supported on Mobile.",
5777
5887
  "enum": [
@@ -5806,6 +5916,15 @@
5806
5916
  "edit.create-feature:output": {
5807
5917
  "$ref": "#/definitions/HasFeatures"
5808
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
+ },
5809
5928
  "edit.delete-features": {
5810
5929
  "description": "Deletes the given feature or features from their feature sources. `EditCommandArgs` is not supported on Mobile.",
5811
5930
  "enum": [
@@ -14188,9 +14307,6 @@
14188
14307
  "geocode.batch-geocode:input": {
14189
14308
  "$ref": "#/definitions/BatchGeocodeArgs"
14190
14309
  },
14191
- "geocode.batch-geocode:output": {
14192
- "type": "undefined"
14193
- },
14194
14310
  "geocode.count": {
14195
14311
  "description": "Counts the number of locations corresponding to an address.",
14196
14312
  "enum": [
@@ -14200,9 +14316,6 @@
14200
14316
  "geocode.count:input": {
14201
14317
  "$ref": "#/definitions/GeocodeArgs"
14202
14318
  },
14203
- "geocode.count:output": {
14204
- "type": "undefined"
14205
- },
14206
14319
  "geocode.geocode": {
14207
14320
  "description": "Finds one or more locations corresponding to an address.",
14208
14321
  "enum": [
@@ -14212,9 +14325,6 @@
14212
14325
  "geocode.geocode:input": {
14213
14326
  "$ref": "#/definitions/GeocodeArgs"
14214
14327
  },
14215
- "geocode.geocode:output": {
14216
- "type": "undefined"
14217
- },
14218
14328
  "geocode.reverse-geocode": {
14219
14329
  "description": "Finds the address at a particular location. The geocoder must have the supportsReverseGeocoding capability.",
14220
14330
  "enum": [
@@ -14224,9 +14334,6 @@
14224
14334
  "geocode.reverse-geocode:input": {
14225
14335
  "$ref": "#/definitions/ReverseGeocodeArgs"
14226
14336
  },
14227
- "geocode.reverse-geocode:output": {
14228
- "type": "undefined"
14229
- },
14230
14337
  "geocode.suggest": {
14231
14338
  "description": "Suggests matching addresses to search for based on some input text. The geocoder must have the supportsSuggest capability.",
14232
14339
  "enum": [
@@ -14236,9 +14343,6 @@
14236
14343
  "geocode.suggest:input": {
14237
14344
  "$ref": "#/definitions/SuggestArgs"
14238
14345
  },
14239
- "geocode.suggest:output": {
14240
- "type": "undefined"
14241
- },
14242
14346
  "geolocation.auto-recenter": {
14243
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.",
14244
14348
  "enum": [
@@ -14288,9 +14392,6 @@
14288
14392
  "geolocation.get-location-permissions-enabled:input": {
14289
14393
  "type": "boolean"
14290
14394
  },
14291
- "geolocation.get-location-permissions-enabled:output": {
14292
- "type": "undefined"
14293
- },
14294
14395
  "geolocation.get-position": {
14295
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.",
14296
14397
  "enum": [
@@ -17410,6 +17511,22 @@
17410
17511
  ],
17411
17512
  "type": "object"
17412
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
+ },
17413
17530
  {
17414
17531
  "additionalProperties": false,
17415
17532
  "properties": {
@@ -17426,6 +17543,22 @@
17426
17543
  ],
17427
17544
  "type": "object"
17428
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
+ },
17429
17562
  {
17430
17563
  "additionalProperties": false,
17431
17564
  "properties": {
@@ -17490,6 +17623,86 @@
17490
17623
  ],
17491
17624
  "type": "object"
17492
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
+ },
17493
17706
  {
17494
17707
  "additionalProperties": false,
17495
17708
  "properties": {
@@ -17506,6 +17719,22 @@
17506
17719
  ],
17507
17720
  "type": "object"
17508
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
+ },
17509
17738
  {
17510
17739
  "additionalProperties": false,
17511
17740
  "properties": {
@@ -19161,9 +19390,15 @@
19161
19390
  {
19162
19391
  "$ref": "#/definitions/drawing.set-sync"
19163
19392
  },
19393
+ {
19394
+ "$ref": "#/definitions/edit.add-attachment"
19395
+ },
19164
19396
  {
19165
19397
  "$ref": "#/definitions/edit.add-feature"
19166
19398
  },
19399
+ {
19400
+ "$ref": "#/definitions/edit.delete-attachment"
19401
+ },
19167
19402
  {
19168
19403
  "$ref": "#/definitions/edit.delete-features"
19169
19404
  },
@@ -19176,12 +19411,30 @@
19176
19411
  {
19177
19412
  "$ref": "#/definitions/edit.update-feature"
19178
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
+ },
19179
19429
  {
19180
19430
  "$ref": "#/definitions/geolocation.auto-recenter"
19181
19431
  },
19182
19432
  {
19183
19433
  "$ref": "#/definitions/geolocation.display-location"
19184
19434
  },
19435
+ {
19436
+ "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
19437
+ },
19185
19438
  {
19186
19439
  "$ref": "#/definitions/geolocation.turn-off-geolocation"
19187
19440
  },
@@ -19657,102 +19910,6 @@
19657
19910
  ],
19658
19911
  "type": "object"
19659
19912
  },
19660
- {
19661
- "additionalProperties": false,
19662
- "properties": {
19663
- "arguments": {
19664
- "$ref": "#/definitions/geocode.batch-geocode:input"
19665
- },
19666
- "name": {
19667
- "$ref": "#/definitions/geocode.batch-geocode"
19668
- }
19669
- },
19670
- "required": [
19671
- "name",
19672
- "arguments"
19673
- ],
19674
- "type": "object"
19675
- },
19676
- {
19677
- "additionalProperties": false,
19678
- "properties": {
19679
- "arguments": {
19680
- "$ref": "#/definitions/geocode.count:input"
19681
- },
19682
- "name": {
19683
- "$ref": "#/definitions/geocode.count"
19684
- }
19685
- },
19686
- "required": [
19687
- "name",
19688
- "arguments"
19689
- ],
19690
- "type": "object"
19691
- },
19692
- {
19693
- "additionalProperties": false,
19694
- "properties": {
19695
- "arguments": {
19696
- "$ref": "#/definitions/geocode.geocode:input"
19697
- },
19698
- "name": {
19699
- "$ref": "#/definitions/geocode.geocode"
19700
- }
19701
- },
19702
- "required": [
19703
- "name",
19704
- "arguments"
19705
- ],
19706
- "type": "object"
19707
- },
19708
- {
19709
- "additionalProperties": false,
19710
- "properties": {
19711
- "arguments": {
19712
- "$ref": "#/definitions/geocode.reverse-geocode:input"
19713
- },
19714
- "name": {
19715
- "$ref": "#/definitions/geocode.reverse-geocode"
19716
- }
19717
- },
19718
- "required": [
19719
- "name",
19720
- "arguments"
19721
- ],
19722
- "type": "object"
19723
- },
19724
- {
19725
- "additionalProperties": false,
19726
- "properties": {
19727
- "arguments": {
19728
- "$ref": "#/definitions/geocode.suggest:input"
19729
- },
19730
- "name": {
19731
- "$ref": "#/definitions/geocode.suggest"
19732
- }
19733
- },
19734
- "required": [
19735
- "name",
19736
- "arguments"
19737
- ],
19738
- "type": "object"
19739
- },
19740
- {
19741
- "additionalProperties": false,
19742
- "properties": {
19743
- "arguments": {
19744
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled:input"
19745
- },
19746
- "name": {
19747
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
19748
- }
19749
- },
19750
- "required": [
19751
- "name",
19752
- "arguments"
19753
- ],
19754
- "type": "object"
19755
- },
19756
19913
  {
19757
19914
  "additionalProperties": false,
19758
19915
  "properties": {
@@ -20544,27 +20701,9 @@
20544
20701
  {
20545
20702
  "$ref": "#/definitions/edit.create-feature"
20546
20703
  },
20547
- {
20548
- "$ref": "#/definitions/geocode.batch-geocode"
20549
- },
20550
- {
20551
- "$ref": "#/definitions/geocode.count"
20552
- },
20553
- {
20554
- "$ref": "#/definitions/geocode.geocode"
20555
- },
20556
- {
20557
- "$ref": "#/definitions/geocode.reverse-geocode"
20558
- },
20559
- {
20560
- "$ref": "#/definitions/geocode.suggest"
20561
- },
20562
20704
  {
20563
20705
  "$ref": "#/definitions/geolocation.get-current-state"
20564
20706
  },
20565
- {
20566
- "$ref": "#/definitions/geolocation.get-location-permissions-enabled"
20567
- },
20568
20707
  {
20569
20708
  "$ref": "#/definitions/geolocation.get-position"
20570
20709
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "47.0.0",
3
+ "version": "47.3.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -34,32 +34,32 @@
34
34
  },
35
35
  "author": "VertiGIS Ltd.",
36
36
  "peerDependencies": {
37
- "@vertigis/arcgis-extensions": ">= 34.3.0 < 35.0.0"
37
+ "@vertigis/arcgis-extensions": ">= 34.5.0 < 35.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arcgis/core": "4.21.2",
41
- "@vertigis/arcgis-extensions": "34.3.0",
41
+ "@vertigis/arcgis-extensions": "34.5.2",
42
42
  "@types/glob": "7.2.0",
43
43
  "@types/node": "14.14.41",
44
- "@typescript-eslint/eslint-plugin": " 5.13.0",
45
- "@typescript-eslint/parser": " 5.13.0",
44
+ "@typescript-eslint/eslint-plugin": " 5.18.0",
45
+ "@typescript-eslint/parser": " 5.18.0",
46
46
  "cpy-cli": "3.1.1",
47
47
  "del-cli": "4.0.1",
48
- "eslint": "8.10.0",
48
+ "eslint": "8.12.0",
49
49
  "eslint-config-prettier": "8.5.0",
50
50
  "eslint-plugin-import": "2.25.4",
51
- "eslint-plugin-jsdoc": "37.9.6",
51
+ "eslint-plugin-jsdoc": "38.1.6",
52
52
  "eslint-plugin-no-autofix": "1.2.3",
53
53
  "eslint-plugin-only-warn": "1.0.3",
54
54
  "glob": "7.2.0",
55
- "highcharts": "9.3.3",
55
+ "highcharts": "10.0.0",
56
56
  "safe-stable-stringify": "2.3.1",
57
- "lint-staged": "12.3.4",
58
- "path-equal": "1.1.2",
59
- "prettier": "2.5.1",
57
+ "lint-staged": "12.3.7",
58
+ "path-equal": "1.1.3",
59
+ "prettier": "2.6.2",
60
60
  "simple-git-hooks": "2.7.0",
61
- "terser": "5.12.0",
62
- "typescript": "4.6.2",
61
+ "terser": "5.12.1",
62
+ "typescript": "4.6.3",
63
63
  "weaktuplemap": "1.0.0"
64
64
  },
65
65
  "simple-git-hooks": {
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 = "47.0.0";
4
+ export declare const version = "47.3.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 = "47.0.0";
4
+ export const version = "47.3.0";