@tomtom-org/maps-sdk-plugin-agent-toolkit 0.15.1 → 0.16.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.
package/dist/index.d.ts CHANGED
@@ -96,8 +96,8 @@ export declare const CHART_TYPES: Set<string>;
96
96
  export declare const isChartConfiguration: (value: unknown) => value is ChartConfiguration;
97
97
  /**
98
98
  * GeoJSON Feature with a Polygon or MultiPolygon geometry. Generic over
99
- * `properties` so callers that need a narrower property shape (e.g. place
100
- * footprints with `CommonPlaceProps`) get the typed result without a cast.
99
+ * `properties` so callers that need a narrower property shape get the typed
100
+ * result without a cast.
101
101
  *
102
102
  * @ignore
103
103
  */
@@ -1041,8 +1041,8 @@ export declare const GEOMETRIES_SOURCE_IDS_DESC = "Tagged input ids that contrib
1041
1041
  * Compact schema doc for the geometry polygons consumed/produced by sandboxed
1042
1042
  * code in `processData` / `analyseData`, injected per source as
1043
1043
  * `geometriesByEntry[key]`. Each item is a
1044
- * `PolygonFeature<CommonPlaceProps>`, and only its non-GeoJSON-standard bits
1045
- * are spelled out here.
1044
+ * `PolygonFeature`, and only its non-GeoJSON-standard bits are spelled out
1045
+ * here.
1046
1046
  */
1047
1047
  /** @ignore */
1048
1048
  export declare const GEOMETRIES_SCHEMA_DOC: string;
@@ -1261,7 +1261,7 @@ declare class PlacesState implements StateSlice {
1261
1261
  * the most recent entry is the relevant one to show on the map.
1262
1262
  */
1263
1263
  get latestPlace(): Place[] | undefined;
1264
- addPlaceResult(place: Place | Places, label: string, explicitId?: string, connections?: PlaceConnectionDisplay[], geometries?: PolygonFeature<CommonPlaceProps>[]): Promise<string>;
1264
+ addPlaceResult(place: Place | Places, label: string, explicitId?: string, connections?: PlaceConnectionDisplay[], geometries?: PolygonFeature[]): Promise<string>;
1265
1265
  findPlaceById(placeId: string): {
1266
1266
  place: Place;
1267
1267
  entryId: string;
@@ -1271,20 +1271,20 @@ declare class PlacesState implements StateSlice {
1271
1271
  * Returns the cached boundary polygon for a place id, or undefined if no geometry has been
1272
1272
  * fetched for it yet. Builds a lazy place-id → feature index per entry on first lookup.
1273
1273
  */
1274
- getGeometryForPlace(placeId: string): PolygonFeature<CommonPlaceProps> | undefined;
1274
+ getGeometryForPlace(placeId: string): PolygonFeature | undefined;
1275
1275
  /**
1276
1276
  * Fetches the boundary polygon for a place from the Geometry Data service and stores it on
1277
1277
  * the owning entry. Returns the cached feature if already fetched, or undefined if the place
1278
1278
  * is unknown or has no geometry data source.
1279
1279
  */
1280
- fetchPlaceGeometry(placeId: string, options?: ToolExecuteOptions): Promise<PolygonFeature<CommonPlaceProps> | undefined>;
1280
+ fetchPlaceGeometry(placeId: string, options?: ToolExecuteOptions): Promise<PolygonFeature | undefined>;
1281
1281
  /**
1282
1282
  * Batch-fetches boundary polygons for every place in an entry that has a geometry data source
1283
1283
  * but is not yet cached. Issues one Geometry Data request per chunk of {@link GEOMETRY_DATA_BATCH_SIZE}
1284
1284
  * place ids (the API caps each request) and stores the merged result on `entry.geometries`.
1285
1285
  * Returns the full geometries list for the entry, or an empty array if the entry is unknown.
1286
1286
  */
1287
- fetchGeometriesForEntry(entryId: string, options?: ToolExecuteOptions): Promise<PolygonFeature<CommonPlaceProps>[]>;
1287
+ fetchGeometriesForEntry(entryId: string, options?: ToolExecuteOptions): Promise<PolygonFeature[]>;
1288
1288
  /**
1289
1289
  * Renders the given polygons via the entry's GeometriesModule. The `mode` flag applies to
1290
1290
  * **this entry's layer only** and doesn't touch other entries. For cross-entry visibility,
@@ -1298,7 +1298,7 @@ declare class PlacesState implements StateSlice {
1298
1298
  * `entryId` defaults to the latest entry that owns geometries, which suits callers that only
1299
1299
  * render the most recently produced footprints. Pass an explicit id to target an older one.
1300
1300
  */
1301
- showPlaceGeometries(features: PolygonFeature<CommonPlaceProps>[], fillStyle?: GeometryFillStyle, mode?: 'add' | 'replace', entryId?: string): Promise<void>;
1301
+ showPlaceGeometries(features: PolygonFeature[], fillStyle?: GeometryFillStyle, mode?: 'add' | 'replace', entryId?: string): Promise<void>;
1302
1302
  private _latestGeometriesEntryId;
1303
1303
  private _buildGeometryIndex;
1304
1304
  /** IDs of all entries currently shown on the map. */
@@ -1366,11 +1366,11 @@ type PlacesEntry = BaseEntry<Place[]> & {
1366
1366
  * produced by tools like `processData`. Each feature's `id` is the geometry-data-source id
1367
1367
  * (`place.properties.dataSources.geometry.id`), matching the response shape of `geometryData`.
1368
1368
  */
1369
- geometries?: PolygonFeature<CommonPlaceProps>[];
1369
+ geometries?: PolygonFeature[];
1370
1370
  /** Lazy place-id → Place index, built on first ID lookup through PlacesState.findPlaceById. */
1371
1371
  _byId?: Record<string, Place>;
1372
1372
  /** Lazy place-id → boundary polygon index, built on first lookup through PlacesState.getGeometryForPlace. */
1373
- _geometryByPlaceId?: Record<string, PolygonFeature<CommonPlaceProps>>;
1373
+ _geometryByPlaceId?: Record<string, PolygonFeature>;
1374
1374
  /**
1375
1375
  * Per-entry display modules. An entry is rendered under at most one marker type at a time,
1376
1376
  * so a single PlacesModule covers all of them — `_showEntryAs` switches it via `updateConfig({ markerType })`.
@@ -3333,8 +3333,8 @@ export declare const routeUtils: {
3333
3333
  readonly getCoordinateAtRouteProgress: (route: import("@tomtom-org/maps-sdk/core").Route, query: import("@tomtom-org/maps-sdk/core").RouteProgressQuery) => import("@tomtom-org/maps-sdk/core").RouteCoordinateAtProgress | undefined;
3334
3334
  readonly getProgressAtNearestRoutePoint: (route: import("@tomtom-org/maps-sdk/core").Route, point: import("@tomtom-org/maps-sdk/core").HasLngLat) => import("@tomtom-org/maps-sdk/core").RouteCoordinateAtProgress | undefined;
3335
3335
  readonly getRouteProgressBetween: (route: import("@tomtom-org/maps-sdk/core").Route, startPathIndex: number, endPathIndex: number) => import("@tomtom-org/maps-sdk/core").RouteSegmentProgress | undefined;
3336
- readonly getRouteProgressForSection: (route: import("@tomtom-org/maps-sdk/core").Route, section: import("@tomtom-org/maps-sdk/core").SectionProps) => import("@tomtom-org/maps-sdk/core").RouteSegmentProgress | undefined;
3337
- readonly getSectionBBox: (route: import("@tomtom-org/maps-sdk/core").Route, section: import("@tomtom-org/maps-sdk/core").SectionProps) => import("@tomtom-org/maps-sdk/core").OptionalBBox;
3336
+ readonly getRouteProgressForSection: (route: import("@tomtom-org/maps-sdk/core").Route, section: import("@tomtom-org/maps-sdk/core").RouteSpan) => import("@tomtom-org/maps-sdk/core").RouteSegmentProgress | undefined;
3337
+ readonly getSectionBBox: (route: import("@tomtom-org/maps-sdk/core").Route, section: import("@tomtom-org/maps-sdk/core").RouteSpan) => import("@tomtom-org/maps-sdk/core").OptionalBBox;
3338
3338
  };
3339
3339
  //#endregion
3340
3340
  //#region src/tools/shared/routes-schema-doc.d.ts