@vertigis/viewer-spec 58.9.1 → 58.10.1

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.
@@ -0,0 +1,15 @@
1
+ import type { Geocoder, GeocoderProperties } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
2
+ import type { ServiceModelProperties } from "../common/ServiceModelProperties";
3
+ /**
4
+ * Properties that can be passed into the constructor for GeocodersService.
5
+ */
6
+ export interface GeocodersModelProperties extends ServiceModelProperties {
7
+ /**
8
+ * Contains all configured geocoders.
9
+ */
10
+ geocoders?: (Geocoder | GeocoderProperties)[];
11
+ /**
12
+ * A subset of geocoders to be used for geocode operations.
13
+ */
14
+ activeGeocoders: (Geocoder | GeocoderProperties)[];
15
+ }
@@ -0,0 +1 @@
1
+ export{};
@@ -672,9 +672,6 @@
672
672
  <complexType>
673
673
  <complexContent mixed="true">
674
674
  <extension base="tns:ComponentWithChildren">
675
- <choice>
676
- <element ref="tns:component" minOccurs="0" maxOccurs="unbounded" />
677
- </choice>
678
675
  <attribute name="resizable" type="boolean" default="false">
679
676
  <annotation>
680
677
  <documentation xml:lang="en">
@@ -699,9 +696,6 @@
699
696
  <complexType>
700
697
  <complexContent mixed="true">
701
698
  <extension base="tns:ComponentWithChildren">
702
- <choice>
703
- <element ref="tns:component" minOccurs="0" maxOccurs="unbounded" />
704
- </choice>
705
699
  <attribute name="resizable" type="boolean" default="false">
706
700
  <annotation>
707
701
  <documentation xml:lang="en">
@@ -1,10 +1,16 @@
1
1
  import type Geometry from "@arcgis/core/geometry/Geometry";
2
2
  import type { Feature } from "@vertigis/arcgis-extensions/data/Feature.js";
3
3
  import type { CountResult } from "@vertigis/arcgis-extensions/tasks/CountResult.js";
4
- import type { AddressLike, GeocodeOptions } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
4
+ import type { AddressLike, GeocodeOptions, Geocoder } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
5
+ import type { Command } from "../Command.js";
6
+ import { CommandRegistry } from "../CommandRegistry.js";
5
7
  import type { Operation } from "../Operation.js";
6
8
  import { OperationRegistry } from "../OperationRegistry.js";
7
9
  import type { Features } from "../common.js";
10
+ /**
11
+ * A type that represents a geocoder or an array of configurable geocoders.
12
+ */
13
+ export type GeocodersLike = Geocoder | Geocoder[];
8
14
  /**
9
15
  * Arguments for the "geocode.geocode" and "geocode.count" operations.
10
16
  */
@@ -57,6 +63,24 @@ export interface ReverseGeocodeArgs {
57
63
  */
58
64
  options: GeocodeOptions;
59
65
  }
66
+ /**
67
+ * Arguments for the "geocode.update-default-geocoder" operation.
68
+ */
69
+ export interface SetActiveGeocodersArgs {
70
+ /**
71
+ * Geocoders to be activated.
72
+ */
73
+ geocoders: GeocodersLike;
74
+ }
75
+ export declare class GeocodeCommands extends CommandRegistry {
76
+ protected readonly _prefix = "geocode";
77
+ /**
78
+ * Sets given geocoders as active. Web only.
79
+ *
80
+ * @webOnly
81
+ */
82
+ get setActiveGeocoders(): Command<SetActiveGeocodersArgs | GeocodersLike>;
83
+ }
60
84
  export declare class GeocodeOperations extends OperationRegistry {
61
85
  protected readonly _prefix = "geocode";
62
86
  /**
@@ -84,4 +108,16 @@ export declare class GeocodeOperations extends OperationRegistry {
84
108
  * supportsReverseGeocoding capability.
85
109
  */
86
110
  get reverseGeocode(): Operation<ReverseGeocodeArgs, Feature>;
111
+ /**
112
+ * Returns all configured geocoders including the active ones. Web only.
113
+ *
114
+ * @webOnly
115
+ */
116
+ get getGeocoders(): Operation<void, Geocoder[]>;
117
+ /**
118
+ * Returns the active configured geocoders. Web only.
119
+ *
120
+ * @webOnly
121
+ */
122
+ get activeGeocoders(): Operation<void, Geocoder[]>;
87
123
  }
@@ -1 +1 @@
1
- import{OperationRegistry as e}from"../OperationRegistry.js";export class GeocodeOperations extends e{_prefix="geocode";get geocode(){return this._get("geocode")}get batchGeocode(){return this._get("batch-geocode")}get count(){return this._get("count")}get suggest(){return this._get("suggest")}get reverseGeocode(){return this._get("reverse-geocode")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export class GeocodeCommands extends e{_prefix="geocode";get setActiveGeocoders(){return this._get("set-active-geocoders")}}export class GeocodeOperations extends t{_prefix="geocode";get geocode(){return this._get("geocode")}get batchGeocode(){return this._get("batch-geocode")}get count(){return this._get("count")}get suggest(){return this._get("suggest")}get reverseGeocode(){return this._get("reverse-geocode")}get getGeocoders(){return this._get("get-geocoders")}get activeGeocoders(){return this._get("active-geocoders")}}
@@ -18879,6 +18879,18 @@
18879
18879
  "filter-builder.set-filter:input": {
18880
18880
  "$ref": "#/definitions/SetFilterArgs"
18881
18881
  },
18882
+ "geocode.active-geocoders": {
18883
+ "description": "Returns the active configured geocoders. Web only.",
18884
+ "enum": [
18885
+ "geocode.active-geocoders"
18886
+ ]
18887
+ },
18888
+ "geocode.active-geocoders:output": {
18889
+ "items": {
18890
+ "$ref": "@vertigis.arcgis-extensions.tasks.geocoding.Geocoder.Geocoder"
18891
+ },
18892
+ "type": "array"
18893
+ },
18882
18894
  "geocode.batch-geocode": {
18883
18895
  "description": "Finds locations corresponding to multiple addresses. The geocoder must have the supportsBatchGeocoding capability. Web only.",
18884
18896
  "enum": [
@@ -18915,6 +18927,18 @@
18915
18927
  "geocode.geocode:output": {
18916
18928
  "$ref": "#/definitions/Features"
18917
18929
  },
18930
+ "geocode.get-geocoders": {
18931
+ "description": "Returns all configured geocoders including the active ones. Web only.",
18932
+ "enum": [
18933
+ "geocode.get-geocoders"
18934
+ ]
18935
+ },
18936
+ "geocode.get-geocoders:output": {
18937
+ "items": {
18938
+ "$ref": "@vertigis.arcgis-extensions.tasks.geocoding.Geocoder.Geocoder"
18939
+ },
18940
+ "type": "array"
18941
+ },
18918
18942
  "geocode.reverse-geocode": {
18919
18943
  "description": "Finds the address at a particular location. The geocoder must have the supportsReverseGeocoding capability.",
18920
18944
  "enum": [
@@ -27537,6 +27561,9 @@
27537
27561
  {
27538
27562
  "$ref": "#/definitions/filter-builder.get-filter"
27539
27563
  },
27564
+ {
27565
+ "$ref": "#/definitions/geocode.active-geocoders"
27566
+ },
27540
27567
  {
27541
27568
  "$ref": "#/definitions/geocode.batch-geocode"
27542
27569
  },
@@ -27546,6 +27573,9 @@
27546
27573
  {
27547
27574
  "$ref": "#/definitions/geocode.geocode"
27548
27575
  },
27576
+ {
27577
+ "$ref": "#/definitions/geocode.get-geocoders"
27578
+ },
27549
27579
  {
27550
27580
  "$ref": "#/definitions/geocode.reverse-geocode"
27551
27581
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.9.1",
3
+ "version": "58.10.1",
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 VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "58.9.1";
4
+ export declare const version = "58.10.1";
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 = "58.9.1";
4
+ export const version = "58.10.1";