ropegeo-common 1.12.4 → 1.12.5

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.
Files changed (73) hide show
  1. package/README.md +11 -5
  2. package/dist/models/api/endpoints/ropewikiRegionView.d.ts +3 -3
  3. package/dist/models/api/endpoints/ropewikiRegionView.d.ts.map +1 -1
  4. package/dist/models/api/endpoints/ropewikiRegionView.js +3 -3
  5. package/dist/models/index.d.ts +13 -9
  6. package/dist/models/index.d.ts.map +1 -1
  7. package/dist/models/index.js +15 -11
  8. package/dist/models/minimap/abstract/centeredRegionMiniMap.d.ts +18 -0
  9. package/dist/models/minimap/abstract/centeredRegionMiniMap.d.ts.map +1 -0
  10. package/dist/models/minimap/{centeredRegionMiniMap.js → abstract/centeredRegionMiniMap.js} +16 -12
  11. package/dist/models/minimap/{miniMap.d.ts → abstract/miniMap.d.ts} +0 -2
  12. package/dist/models/minimap/abstract/miniMap.d.ts.map +1 -0
  13. package/dist/models/minimap/{miniMap.js → abstract/miniMap.js} +3 -10
  14. package/dist/models/minimap/abstract/miniMapType.d.ts +9 -0
  15. package/dist/models/minimap/abstract/miniMapType.d.ts.map +1 -0
  16. package/dist/models/minimap/abstract/miniMapType.js +12 -0
  17. package/dist/models/minimap/abstract/offlineMiniMap.d.ts +6 -0
  18. package/dist/models/minimap/abstract/offlineMiniMap.d.ts.map +1 -0
  19. package/dist/models/minimap/abstract/offlineMiniMap.js +2 -0
  20. package/dist/models/minimap/abstract/onlineMiniMap.d.ts +6 -0
  21. package/dist/models/minimap/abstract/onlineMiniMap.d.ts.map +1 -0
  22. package/dist/models/minimap/abstract/onlineMiniMap.js +2 -0
  23. package/dist/models/minimap/{pageMiniMap.d.ts → abstract/pageMiniMap.d.ts} +5 -5
  24. package/dist/models/minimap/abstract/pageMiniMap.d.ts.map +1 -0
  25. package/dist/models/minimap/{pageMiniMap.js → abstract/pageMiniMap.js} +15 -11
  26. package/dist/models/minimap/abstract/regionMiniMap.d.ts +16 -0
  27. package/dist/models/minimap/abstract/regionMiniMap.d.ts.map +1 -0
  28. package/dist/models/minimap/abstract/regionMiniMap.js +39 -0
  29. package/dist/models/minimap/{offlineCenteredRegionMiniMap.d.ts → concrete/offlineCenteredRegionMiniMap.d.ts} +3 -4
  30. package/dist/models/minimap/concrete/offlineCenteredRegionMiniMap.d.ts.map +1 -0
  31. package/dist/models/minimap/{offlineCenteredRegionMiniMap.js → concrete/offlineCenteredRegionMiniMap.js} +3 -5
  32. package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts +11 -0
  33. package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts.map +1 -0
  34. package/dist/models/minimap/{offlinePageMiniMap.js → concrete/offlinePageMiniMap.js} +3 -5
  35. package/dist/models/minimap/concrete/offlineRegionMiniMap.d.ts +14 -0
  36. package/dist/models/minimap/concrete/offlineRegionMiniMap.d.ts.map +1 -0
  37. package/dist/models/minimap/concrete/offlineRegionMiniMap.js +58 -0
  38. package/dist/models/minimap/{onlineCenteredRegionMiniMap.d.ts → concrete/onlineCenteredRegionMiniMap.d.ts} +4 -5
  39. package/dist/models/minimap/concrete/onlineCenteredRegionMiniMap.d.ts.map +1 -0
  40. package/dist/models/minimap/{onlineCenteredRegionMiniMap.js → concrete/onlineCenteredRegionMiniMap.js} +3 -8
  41. package/dist/models/minimap/{onlinePageMiniMap.d.ts → concrete/onlinePageMiniMap.d.ts} +4 -5
  42. package/dist/models/minimap/concrete/onlinePageMiniMap.d.ts.map +1 -0
  43. package/dist/models/minimap/{onlinePageMiniMap.js → concrete/onlinePageMiniMap.js} +3 -7
  44. package/dist/models/minimap/concrete/onlineRegionMiniMap.d.ts +14 -0
  45. package/dist/models/minimap/concrete/onlineRegionMiniMap.d.ts.map +1 -0
  46. package/dist/models/minimap/concrete/onlineRegionMiniMap.js +44 -0
  47. package/dist/models/minimap/registerMiniMapParsers.d.ts +6 -5
  48. package/dist/models/minimap/registerMiniMapParsers.d.ts.map +1 -1
  49. package/dist/models/minimap/registerMiniMapParsers.js +14 -5
  50. package/dist/models/pageViews/offlineRopewikiPageView.d.ts +2 -2
  51. package/dist/models/pageViews/offlineRopewikiPageView.d.ts.map +1 -1
  52. package/dist/models/pageViews/offlineRopewikiPageView.js +6 -6
  53. package/dist/models/pageViews/onlinePageView.d.ts +1 -1
  54. package/dist/models/pageViews/onlinePageView.d.ts.map +1 -1
  55. package/dist/models/pageViews/onlineRopewikiPageView.d.ts +4 -4
  56. package/dist/models/pageViews/onlineRopewikiPageView.d.ts.map +1 -1
  57. package/dist/models/pageViews/onlineRopewikiPageView.js +6 -6
  58. package/package.json +1 -1
  59. package/dist/models/minimap/centeredRegionMiniMap.d.ts +0 -18
  60. package/dist/models/minimap/centeredRegionMiniMap.d.ts.map +0 -1
  61. package/dist/models/minimap/miniMap.d.ts.map +0 -1
  62. package/dist/models/minimap/miniMapType.d.ts +0 -19
  63. package/dist/models/minimap/miniMapType.d.ts.map +0 -1
  64. package/dist/models/minimap/miniMapType.js +0 -22
  65. package/dist/models/minimap/offlineCenteredRegionMiniMap.d.ts.map +0 -1
  66. package/dist/models/minimap/offlinePageMiniMap.d.ts +0 -12
  67. package/dist/models/minimap/offlinePageMiniMap.d.ts.map +0 -1
  68. package/dist/models/minimap/onlineCenteredRegionMiniMap.d.ts.map +0 -1
  69. package/dist/models/minimap/onlinePageMiniMap.d.ts.map +0 -1
  70. package/dist/models/minimap/pageMiniMap.d.ts.map +0 -1
  71. package/dist/models/minimap/regionMiniMap.d.ts +0 -17
  72. package/dist/models/minimap/regionMiniMap.d.ts.map +0 -1
  73. package/dist/models/minimap/regionMiniMap.js +0 -45
package/README.md CHANGED
@@ -164,7 +164,7 @@ Helper tables use columns **Name**, **Description**, **Import**. Model tables ad
164
164
 
165
165
  | Name | Base class | Description | Import |
166
166
  | --- | --- | --- | --- |
167
- | `RoutesGeojson` | N/A | GeoJSON FeatureCollection of routes (features only; region bbox is on `RegionMiniMap.bounds` in GET /ropewiki/region/{id}). | `import { RoutesGeojson } from 'ropegeo-common/models'` |
167
+ | `RoutesGeojson` | N/A | GeoJSON FeatureCollection of routes (features only; region bbox is on `OnlineRegionMiniMap.bounds` in GET /ropewiki/region/{id}). | `import { RoutesGeojson } from 'ropegeo-common/models'` |
168
168
  | `RouteResult` | `PaginationResults` | Page of GET /routes (`RouteGeoJsonFeature[]`, `total`, `page`, `resultType` `route`). | `import { RouteResult } from 'ropegeo-common/models'` |
169
169
 
170
170
  ### Route preview API (`src/models/api/results/`)
@@ -242,16 +242,22 @@ Helper tables use columns **Name**, **Description**, **Import**. Model tables ad
242
242
 
243
243
  ### Minimap (`src/models/minimap/`)
244
244
 
245
+ Abstract classes live under `minimap/abstract/`, concrete under `minimap/concrete/`. `miniMapType` is `page`, `region`, or `centeredRegion`; online vs offline is distinguished by `fetchType`.
246
+
245
247
  | Name | Base class | Description | Import |
246
248
  | --- | --- | --- | --- |
247
249
  | `Bounds` | N/A | Geographic bounding box. | `import { Bounds } from 'ropegeo-common/models'` |
248
- | `MiniMapType` | N/A | Minimap discriminator (e.g. GeoJSON). | `import { MiniMapType } from 'ropegeo-common/models'` |
250
+ | `MiniMapType` | N/A | Minimap discriminator (`page`, `region`, `centeredRegion`). | `import { MiniMapType } from 'ropegeo-common/models'` |
251
+ | `OnlineMiniMap` | N/A | Interface: `fetchType: "online"` and `miniMapType`. | `import type { OnlineMiniMap } from 'ropegeo-common/models'` |
252
+ | `OfflineMiniMap` | N/A | Interface: `fetchType: "offline"` and `miniMapType`. | `import type { OfflineMiniMap } from 'ropegeo-common/models'` |
249
253
  | `MiniMap` | N/A | Abstract base for minimaps; `fromResult` parses API wire types only. | `import { MiniMap } from 'ropegeo-common/models'` |
250
- | `RegionMiniMap` | `MiniMap` | Region minimap (`geojson`): `routesParams`, `bounds` (or null), `title`. | `import { RegionMiniMap } from 'ropegeo-common/models'` |
251
- | `PageMiniMap` | `MiniMap` | Abstract base for page minimaps (online/offline tile templates). | `import { PageMiniMap } from 'ropegeo-common/models'` |
254
+ | `RegionMiniMap` | `MiniMap` | Abstract region minimap (`miniMapType: region`); online/offline concrete subclasses. | `import { RegionMiniMap } from 'ropegeo-common/models'` |
255
+ | `OnlineRegionMiniMap` | `RegionMiniMap` | API region routes (`routesParams`, `bounds` or null, `fetchType: "online"`). | `import { OnlineRegionMiniMap } from 'ropegeo-common/models'` |
256
+ | `OfflineRegionMiniMap` | `RegionMiniMap` | Bundled region routes GeoJSON path (`downloadedGeojson`, `fetchType: "offline"`). | `import { OfflineRegionMiniMap } from 'ropegeo-common/models'` |
257
+ | `PageMiniMap` | `MiniMap` | Abstract page minimap (`miniMapType: page`); online/offline tile templates. | `import { PageMiniMap } from 'ropegeo-common/models'` |
252
258
  | `OnlinePageMiniMap` | `PageMiniMap` | API page tiles template (`onlineTilesTemplate`, `fetchType: "online"`). | `import { OnlinePageMiniMap } from 'ropegeo-common/models'` |
253
259
  | `OfflinePageMiniMap` | `PageMiniMap` | Persisted local tiles template (`offlineTilesTemplate`, `fetchType: "offline"`). | `import { OfflinePageMiniMap } from 'ropegeo-common/models'` |
254
- | `CenteredRegionMiniMap` | `MiniMap` | Abstract base for centered region minimaps (online routes params / offline geojson path). | `import { CenteredRegionMiniMap } from 'ropegeo-common/models'` |
260
+ | `CenteredRegionMiniMap` | `MiniMap` | Abstract centered-route minimap (`miniMapType: centeredRegion`). | `import { CenteredRegionMiniMap } from 'ropegeo-common/models'` |
255
261
  | `OnlineCenteredRegionMiniMap` | `CenteredRegionMiniMap` | API centered-route fallback (`routesParams`, `fetchType: "online"`). | `import { OnlineCenteredRegionMiniMap } from 'ropegeo-common/models'` |
256
262
  | `OfflineCenteredRegionMiniMap` | `CenteredRegionMiniMap` | Persisted local centered-route geojson (`downloadedGeojson`, `fetchType: "offline"`). | `import { OfflineCenteredRegionMiniMap } from 'ropegeo-common/models'` |
257
263
 
@@ -1,5 +1,5 @@
1
1
  import { OnlineBetaSection } from '../../betaSections/onlineBetaSection';
2
- import { RegionMiniMap } from '../../minimap/regionMiniMap';
2
+ import { OnlineRegionMiniMap } from '../../minimap/concrete/onlineRegionMiniMap';
3
3
  /**
4
4
  * Region view for getRopewikiRegionView (GET /ropewiki/region/{id}).
5
5
  * Contains all RopewikiRegion info for the region except the region's id.
@@ -26,8 +26,8 @@ export declare class RopewikiRegionView {
26
26
  /** When the region was last synced (from updatedAt). */
27
27
  syncDate: Date;
28
28
  externalLink: string;
29
- miniMap: RegionMiniMap | null;
30
- constructor(name: string, latestRevisionDate: Date, url: string, updatedAt: Date, miniMap: RegionMiniMap | null, regions?: {
29
+ miniMap: OnlineRegionMiniMap | null;
30
+ constructor(name: string, latestRevisionDate: Date, url: string, updatedAt: Date, miniMap: OnlineRegionMiniMap | null, regions?: {
31
31
  name: string;
32
32
  id: string;
33
33
  }[], rawPageCount?: number | null, truePageCount?: number | null, trueRegionCount?: number | null, truePageCountWithDescendents?: number | null, overview?: string | null, bestMonths?: string[] | null, isMajorRegion?: boolean | null);
@@ -1 +1 @@
1
- {"version":3,"file":"ropewikiRegionView.d.ts","sourceRoot":"","sources":["../../../../src/models/api/endpoints/ropewikiRegionView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;GAGG;AACH,qBAAa,kBAAkB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,gHAAgH;IAChH,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE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C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,EACxB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAC5B,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI;IAqBlC;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;IAsCtD,OAAO,CAAC,MAAM,CAAC,YAAY;IAS3B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAYnC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAarC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAYtC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA+BjC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAmBhC,OAAO,CAAC,MAAM,CAAC,aAAa;IAY5B,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAkBtC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAUpC,OAAO,CAAC,MAAM,CAAC,cAAc;CAkBhC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RopewikiRegionView = void 0;
4
4
  const onlineBetaSection_1 = require("../../betaSections/onlineBetaSection");
5
- const regionMiniMap_1 = require("../../minimap/regionMiniMap");
5
+ const onlineRegionMiniMap_1 = require("../../minimap/concrete/onlineRegionMiniMap");
6
6
  /**
7
7
  * Region view for getRopewikiRegionView (GET /ropewiki/region/{id}).
8
8
  * Contains all RopewikiRegion info for the region except the region's id.
@@ -62,7 +62,7 @@ class RopewikiRegionView {
62
62
  r.miniMap = null;
63
63
  }
64
64
  else {
65
- r.miniMap = regionMiniMap_1.RegionMiniMap.fromResult(r.miniMap);
65
+ r.miniMap = onlineRegionMiniMap_1.OnlineRegionMiniMap.fromResult(r.miniMap);
66
66
  }
67
67
  Object.setPrototypeOf(r, RopewikiRegionView.prototype);
68
68
  return r;
@@ -144,7 +144,7 @@ class RopewikiRegionView {
144
144
  if (v === null || v === undefined)
145
145
  return;
146
146
  if (typeof v !== 'object') {
147
- throw new Error(`RopewikiRegionView.${key} must be a RegionMiniMap object or null, got: ${typeof v}`);
147
+ throw new Error(`RopewikiRegionView.${key} must be an OnlineRegionMiniMap object or null, got: ${typeof v}`);
148
148
  }
149
149
  }
150
150
  static assertValidUrl(obj, key) {
@@ -44,15 +44,19 @@ export { BetaSection } from './betaSections/betaSection';
44
44
  export { OnlineBetaSection } from './betaSections/onlineBetaSection';
45
45
  export { OfflineBetaSection } from './betaSections/offlineBetaSection';
46
46
  export { Bounds } from './minimap/bounds';
47
- export { MiniMapType } from './minimap/miniMapType';
48
- export { MiniMap } from './minimap/miniMap';
49
- export { RegionMiniMap } from './minimap/regionMiniMap';
50
- export { PageMiniMap } from './minimap/pageMiniMap';
51
- export { CenteredRegionMiniMap } from './minimap/centeredRegionMiniMap';
52
- export { OnlinePageMiniMap } from './minimap/onlinePageMiniMap';
53
- export { OfflinePageMiniMap } from './minimap/offlinePageMiniMap';
54
- export { OnlineCenteredRegionMiniMap } from './minimap/onlineCenteredRegionMiniMap';
55
- export { OfflineCenteredRegionMiniMap } from './minimap/offlineCenteredRegionMiniMap';
47
+ export { MiniMapType } from './minimap/abstract/miniMapType';
48
+ export type { OnlineMiniMap } from './minimap/abstract/onlineMiniMap';
49
+ export type { OfflineMiniMap } from './minimap/abstract/offlineMiniMap';
50
+ export { MiniMap } from './minimap/abstract/miniMap';
51
+ export { RegionMiniMap } from './minimap/abstract/regionMiniMap';
52
+ export { PageMiniMap } from './minimap/abstract/pageMiniMap';
53
+ export { CenteredRegionMiniMap } from './minimap/abstract/centeredRegionMiniMap';
54
+ export { OnlinePageMiniMap } from './minimap/concrete/onlinePageMiniMap';
55
+ export { OfflinePageMiniMap } from './minimap/concrete/offlinePageMiniMap';
56
+ export { OnlineRegionMiniMap } from './minimap/concrete/onlineRegionMiniMap';
57
+ export { OfflineRegionMiniMap } from './minimap/concrete/offlineRegionMiniMap';
58
+ export { OnlineCenteredRegionMiniMap } from './minimap/concrete/onlineCenteredRegionMiniMap';
59
+ export { OfflineCenteredRegionMiniMap } from './minimap/concrete/offlineCenteredRegionMiniMap';
56
60
  export { RopewikiPageView } from './api/endpoints/ropewikiPageView';
57
61
  export { RopewikiPageViewResult } from './api/results/ropewikiPageViewResult';
58
62
  export { PageViewType } from './pageViews/pageViewType';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,wCAAwC,CAAC;AAChD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACH,cAAc,EACd,UAAU,EACV,wBAAwB,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,UAAU,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,yCAAyC;AACzC,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACpF,qCAAqC;AACrC,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC5E,oCAAoC;AACpC,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,oCAAoC;AACpC,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EACH,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,sCAAsC,EACtC,mCAAmC,EACnC,wBAAwB,GAC3B,M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,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RoutesGeojson = exports.RouteType = exports.RouteGeoJsonFeature = exports.Route = exports.RegionPreview = exports.OfflinePagePreview = exports.OnlinePagePreview = exports.PagePreview = exports.PreviewType = exports.Preview = exports.PermitStatus = exports.SavedFilters = exports.SavedPagesFilter = exports.SearchFilter = exports.RouteFilter = exports.RiskMinMax = exports.TimeMinMax = exports.WaterMinMax = exports.TechnicalMinMax = exports.AcaDifficultyFilterOptions = exports.registerDifficultyFilterOptionsParser = exports.DifficultyFilterOptions = exports.Q_ACA_RISK = exports.Q_ACA_TIME = exports.Q_ACA_WATER = exports.Q_ACA_TECHNICAL = exports.Q_DIFFICULTY_TYPE = exports.AcaDifficultyParams = exports.isDifficultyParamsActive = exports.registerDifficultyParamsQueryParser = exports.registerDifficultyParamsQueryInference = exports.DifficultyParams = exports.DifficultyRisk = exports.DifficultyTime = exports.DifficultyWater = exports.DifficultyTechnical = exports.AcaDifficulty = exports.RISK_ORDER = exports.AcaWaterRating = exports.AcaTimeRating = exports.AcaTechnicalRating = exports.AcaRiskRating = exports.ACA_WATER_ORDER = exports.ACA_TIME_ORDER = exports.ACA_TECHNICAL_ORDER = exports.ACA_RISK_ORDER = exports.registerDifficultyParser = exports.Difficulty = exports.DifficultyType = exports.PageDataSource = void 0;
4
- exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = exports.BaseRopewikiPageView = exports.PageViewType = exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = void 0;
5
- exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = void 0;
4
+ exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = exports.BaseRopewikiPageView = exports.PageViewType = exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflineRegionMiniMap = exports.OnlineRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = void 0;
5
+ exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = void 0;
6
6
  require("./api/results/registerAllResultParsers");
7
7
  require("./difficulty/registerDifficultyParsers");
8
8
  require("./filters/registerDifficultyFilterOptionsParsers");
@@ -109,23 +109,27 @@ var offlineBetaSection_1 = require("./betaSections/offlineBetaSection");
109
109
  Object.defineProperty(exports, "OfflineBetaSection", { enumerable: true, get: function () { return offlineBetaSection_1.OfflineBetaSection; } });
110
110
  var bounds_1 = require("./minimap/bounds");
111
111
  Object.defineProperty(exports, "Bounds", { enumerable: true, get: function () { return bounds_1.Bounds; } });
112
- var miniMapType_1 = require("./minimap/miniMapType");
112
+ var miniMapType_1 = require("./minimap/abstract/miniMapType");
113
113
  Object.defineProperty(exports, "MiniMapType", { enumerable: true, get: function () { return miniMapType_1.MiniMapType; } });
114
- var miniMap_1 = require("./minimap/miniMap");
114
+ var miniMap_1 = require("./minimap/abstract/miniMap");
115
115
  Object.defineProperty(exports, "MiniMap", { enumerable: true, get: function () { return miniMap_1.MiniMap; } });
116
- var regionMiniMap_1 = require("./minimap/regionMiniMap");
116
+ var regionMiniMap_1 = require("./minimap/abstract/regionMiniMap");
117
117
  Object.defineProperty(exports, "RegionMiniMap", { enumerable: true, get: function () { return regionMiniMap_1.RegionMiniMap; } });
118
- var pageMiniMap_1 = require("./minimap/pageMiniMap");
118
+ var pageMiniMap_1 = require("./minimap/abstract/pageMiniMap");
119
119
  Object.defineProperty(exports, "PageMiniMap", { enumerable: true, get: function () { return pageMiniMap_1.PageMiniMap; } });
120
- var centeredRegionMiniMap_1 = require("./minimap/centeredRegionMiniMap");
120
+ var centeredRegionMiniMap_1 = require("./minimap/abstract/centeredRegionMiniMap");
121
121
  Object.defineProperty(exports, "CenteredRegionMiniMap", { enumerable: true, get: function () { return centeredRegionMiniMap_1.CenteredRegionMiniMap; } });
122
- var onlinePageMiniMap_1 = require("./minimap/onlinePageMiniMap");
122
+ var onlinePageMiniMap_1 = require("./minimap/concrete/onlinePageMiniMap");
123
123
  Object.defineProperty(exports, "OnlinePageMiniMap", { enumerable: true, get: function () { return onlinePageMiniMap_1.OnlinePageMiniMap; } });
124
- var offlinePageMiniMap_1 = require("./minimap/offlinePageMiniMap");
124
+ var offlinePageMiniMap_1 = require("./minimap/concrete/offlinePageMiniMap");
125
125
  Object.defineProperty(exports, "OfflinePageMiniMap", { enumerable: true, get: function () { return offlinePageMiniMap_1.OfflinePageMiniMap; } });
126
- var onlineCenteredRegionMiniMap_1 = require("./minimap/onlineCenteredRegionMiniMap");
126
+ var onlineRegionMiniMap_1 = require("./minimap/concrete/onlineRegionMiniMap");
127
+ Object.defineProperty(exports, "OnlineRegionMiniMap", { enumerable: true, get: function () { return onlineRegionMiniMap_1.OnlineRegionMiniMap; } });
128
+ var offlineRegionMiniMap_1 = require("./minimap/concrete/offlineRegionMiniMap");
129
+ Object.defineProperty(exports, "OfflineRegionMiniMap", { enumerable: true, get: function () { return offlineRegionMiniMap_1.OfflineRegionMiniMap; } });
130
+ var onlineCenteredRegionMiniMap_1 = require("./minimap/concrete/onlineCenteredRegionMiniMap");
127
131
  Object.defineProperty(exports, "OnlineCenteredRegionMiniMap", { enumerable: true, get: function () { return onlineCenteredRegionMiniMap_1.OnlineCenteredRegionMiniMap; } });
128
- var offlineCenteredRegionMiniMap_1 = require("./minimap/offlineCenteredRegionMiniMap");
132
+ var offlineCenteredRegionMiniMap_1 = require("./minimap/concrete/offlineCenteredRegionMiniMap");
129
133
  Object.defineProperty(exports, "OfflineCenteredRegionMiniMap", { enumerable: true, get: function () { return offlineCenteredRegionMiniMap_1.OfflineCenteredRegionMiniMap; } });
130
134
  var ropewikiPageView_1 = require("./api/endpoints/ropewikiPageView");
131
135
  Object.defineProperty(exports, "RopewikiPageView", { enumerable: true, get: function () { return ropewikiPageView_1.RopewikiPageView; } });
@@ -0,0 +1,18 @@
1
+ import { RoutesParams } from '../../api/params/routesParams';
2
+ import type { FetchType } from '../../fetchType';
3
+ import { MiniMap } from './miniMap';
4
+ import { MiniMapType } from './miniMapType';
5
+ export declare function registerCenteredRegionMiniMapParser(fetchType: FetchType, parse: (result: unknown) => CenteredRegionMiniMap): void;
6
+ /**
7
+ * Page fallback minimap: centered route GeoJSON via getRoutes (online) or bundled local GeoJSON (offline).
8
+ */
9
+ export declare abstract class CenteredRegionMiniMap extends MiniMap {
10
+ abstract readonly fetchType: FetchType;
11
+ readonly miniMapType = MiniMapType.CenteredRegion;
12
+ centeredRouteId: string;
13
+ protected constructor(centeredRouteId: string, title: string);
14
+ static fromResult(result: unknown): CenteredRegionMiniMap;
15
+ protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
16
+ protected static parseRoutesParams(r: Record<string, unknown>, context: string): RoutesParams;
17
+ }
18
+ //# sourceMappingURL=centeredRegionMiniMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"centeredRegionMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/centeredRegionMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5C,wBAAgB,mCAAmC,CAC/C,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,qBAAqB,GAClD,IAAI,CAEN;AAED;;GAEG;AACH,8BAAsB,qBAAsB,SAAQ,OAAO;IACvD,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,8BAA8B;IAClD,eAAe,EAAE,MAAM,CAAC;IAExB,SAAS,aAAa,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAK5D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,qBAAqB;IAyBzD,SAAS,CAAC,MAAM,CAAC,oBAAoB,CACjC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,iBAAiB,EAAE,SAAS,EAC5B,OAAO,EAAE,MAAM,GAChB,IAAI;IAmBP,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAC9B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,OAAO,EAAE,MAAM,GAChB,YAAY;CAOlB"}
@@ -2,21 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CenteredRegionMiniMap = void 0;
4
4
  exports.registerCenteredRegionMiniMapParser = registerCenteredRegionMiniMapParser;
5
- const routesParams_1 = require("../api/params/routesParams");
5
+ const routesParams_1 = require("../../api/params/routesParams");
6
6
  const miniMap_1 = require("./miniMap");
7
7
  const miniMapType_1 = require("./miniMapType");
8
8
  /** UUID v4 (same rule as {@link RoutesParams} region id). */
9
9
  const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
10
10
  const centeredRegionMiniMapParsers = new Map();
11
- function registerCenteredRegionMiniMapParser(miniMapType, parse) {
12
- centeredRegionMiniMapParsers.set(miniMapType, parse);
11
+ function registerCenteredRegionMiniMapParser(fetchType, parse) {
12
+ centeredRegionMiniMapParsers.set(fetchType, parse);
13
13
  }
14
14
  /**
15
- * Page fallback minimap: centered route GeoJSON via getRoutes using {@link RoutesParams} (region scope).
15
+ * Page fallback minimap: centered route GeoJSON via getRoutes (online) or bundled local GeoJSON (offline).
16
16
  */
17
17
  class CenteredRegionMiniMap extends miniMap_1.MiniMap {
18
18
  constructor(centeredRouteId, title) {
19
19
  super(title);
20
+ this.miniMapType = miniMapType_1.MiniMapType.CenteredRegion;
20
21
  this.centeredRouteId = centeredRouteId;
21
22
  }
22
23
  static fromResult(result) {
@@ -24,19 +25,22 @@ class CenteredRegionMiniMap extends miniMap_1.MiniMap {
24
25
  throw new Error('CenteredRegionMiniMap result must be an object');
25
26
  }
26
27
  const r = result;
27
- if (r.miniMapType !== miniMapType_1.MiniMapType.OnlineCenteredGeojson &&
28
- r.miniMapType !== miniMapType_1.MiniMapType.OfflineCenteredGeojson) {
29
- throw new Error(`CenteredRegionMiniMap.miniMapType must be "${miniMapType_1.MiniMapType.OnlineCenteredGeojson}" or "${miniMapType_1.MiniMapType.OfflineCenteredGeojson}", got: ${JSON.stringify(r.miniMapType)}`);
28
+ if (r.miniMapType !== miniMapType_1.MiniMapType.CenteredRegion) {
29
+ throw new Error(`CenteredRegionMiniMap.miniMapType must be "${miniMapType_1.MiniMapType.CenteredRegion}", got: ${JSON.stringify(r.miniMapType)}`);
30
30
  }
31
- const parser = centeredRegionMiniMapParsers.get(r.miniMapType);
31
+ const ft = r.fetchType;
32
+ if (ft !== 'online' && ft !== 'offline') {
33
+ throw new Error(`CenteredRegionMiniMap.fetchType must be "online" or "offline", got: ${JSON.stringify(ft)}`);
34
+ }
35
+ const parser = centeredRegionMiniMapParsers.get(ft);
32
36
  if (parser == null) {
33
- throw new Error(`No CenteredRegionMiniMap parser registered for miniMapType ${JSON.stringify(r.miniMapType)}`);
37
+ throw new Error(`No CenteredRegionMiniMap parser registered for fetchType ${JSON.stringify(ft)}`);
34
38
  }
35
39
  return parser(result);
36
40
  }
37
- static validateCommonFields(r, expectedType, expectedFetchType, context) {
38
- if (r.miniMapType !== expectedType) {
39
- throw new Error(`${context}.miniMapType must be "${expectedType}", got: ${JSON.stringify(r.miniMapType)}`);
41
+ static validateCommonFields(r, expectedFetchType, context) {
42
+ if (r.miniMapType !== miniMapType_1.MiniMapType.CenteredRegion) {
43
+ throw new Error(`${context}.miniMapType must be "${miniMapType_1.MiniMapType.CenteredRegion}", got: ${JSON.stringify(r.miniMapType)}`);
40
44
  }
41
45
  if (r.fetchType !== expectedFetchType) {
42
46
  throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(r.fetchType)}`);
@@ -2,8 +2,6 @@ import { MiniMapType } from './miniMapType';
2
2
  export declare function registerMiniMapParser(miniMapType: MiniMapType, parse: (result: unknown) => MiniMap): void;
3
3
  /**
4
4
  * Base type for region/page minimap payloads. Use {@link MiniMap.fromResult} to parse API `miniMapType` values.
5
- * Persisted {@link MiniMapType.DownloadedTilesTemplate} / {@link MiniMapType.DownloadedCenteredGeojson} objects
6
- * are parsed only via {@link SavedPage} / their concrete `fromResult` methods.
7
5
  */
8
6
  export declare abstract class MiniMap {
9
7
  abstract readonly miniMapType: MiniMapType;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"miniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/miniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAS5C,wBAAgB,qBAAqB,CACjC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,GACpC,IAAI,CAEN;AAED;;GAEG;AACH,8BAAsB,OAAO;IACzB,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,SAAS,aAAa,KAAK,EAAE,MAAM;IAKnC,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAOnE;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO;CAwB9C"}
@@ -3,11 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MiniMap = void 0;
4
4
  exports.registerMiniMapParser = registerMiniMapParser;
5
5
  const miniMapType_1 = require("./miniMapType");
6
- /** `MiniMap.fromResult` accepts only wire shapes produced by the WebScraper API. */
7
6
  const API_MINI_MAP_TYPES = new Set([
8
- miniMapType_1.MiniMapType.GeoJson,
9
- miniMapType_1.MiniMapType.OnlineTilesTemplate,
10
- miniMapType_1.MiniMapType.OnlineCenteredGeojson,
7
+ miniMapType_1.MiniMapType.Page,
8
+ miniMapType_1.MiniMapType.Region,
9
+ miniMapType_1.MiniMapType.CenteredRegion,
11
10
  ]);
12
11
  const miniMapParsers = new Map();
13
12
  function registerMiniMapParser(miniMapType, parse) {
@@ -15,8 +14,6 @@ function registerMiniMapParser(miniMapType, parse) {
15
14
  }
16
15
  /**
17
16
  * Base type for region/page minimap payloads. Use {@link MiniMap.fromResult} to parse API `miniMapType` values.
18
- * Persisted {@link MiniMapType.DownloadedTilesTemplate} / {@link MiniMapType.DownloadedCenteredGeojson} objects
19
- * are parsed only via {@link SavedPage} / their concrete `fromResult` methods.
20
17
  */
21
18
  class MiniMap {
22
19
  constructor(title) {
@@ -42,10 +39,6 @@ class MiniMap {
42
39
  throw new Error(`MiniMap.miniMapType must be a string, got: ${JSON.stringify(t)}`);
43
40
  }
44
41
  if (!API_MINI_MAP_TYPES.has(t)) {
45
- const all = Object.values(miniMapType_1.MiniMapType);
46
- if (all.includes(t)) {
47
- throw new Error(`MiniMap.fromResult does not accept miniMapType ${JSON.stringify(t)}; use the concrete class fromResult or SavedPage`);
48
- }
49
42
  throw new Error(`MiniMap.miniMapType must be one of [${[...API_MINI_MAP_TYPES].join(', ')}], got: ${JSON.stringify(t)}`);
50
43
  }
51
44
  const parser = miniMapParsers.get(t);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Discriminator for {@link MiniMap} subclasses (page tiles vs region routes vs centered region routes).
3
+ */
4
+ export declare enum MiniMapType {
5
+ Page = "page",
6
+ Region = "region",
7
+ CenteredRegion = "centeredRegion"
8
+ }
9
+ //# sourceMappingURL=miniMapType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"miniMapType.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/miniMapType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,cAAc,mBAAmB;CACpC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MiniMapType = void 0;
4
+ /**
5
+ * Discriminator for {@link MiniMap} subclasses (page tiles vs region routes vs centered region routes).
6
+ */
7
+ var MiniMapType;
8
+ (function (MiniMapType) {
9
+ MiniMapType["Page"] = "page";
10
+ MiniMapType["Region"] = "region";
11
+ MiniMapType["CenteredRegion"] = "centeredRegion";
12
+ })(MiniMapType || (exports.MiniMapType = MiniMapType = {}));
@@ -0,0 +1,6 @@
1
+ import type { MiniMapType } from './miniMapType';
2
+ export interface OfflineMiniMap {
3
+ readonly fetchType: 'offline';
4
+ readonly miniMapType: MiniMapType;
5
+ }
6
+ //# sourceMappingURL=offlineMiniMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offlineMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/offlineMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACrC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type { MiniMapType } from './miniMapType';
2
+ export interface OnlineMiniMap {
3
+ readonly fetchType: 'online';
4
+ readonly miniMapType: MiniMapType;
5
+ }
6
+ //# sourceMappingURL=onlineMiniMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onlineMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/onlineMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACrC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +1,19 @@
1
- import { Bounds } from './bounds';
2
- import { FetchType } from '../fetchType';
1
+ import type { FetchType } from '../../fetchType';
2
+ import { Bounds } from '../bounds';
3
3
  import { MiniMap } from './miniMap';
4
4
  import { MiniMapType } from './miniMapType';
5
- export declare function registerPageMiniMapParser(miniMapType: MiniMapType.OnlineTilesTemplate | MiniMapType.OfflineTilesTemplate, parse: (result: unknown) => PageMiniMap): void;
5
+ export declare function registerPageMiniMapParser(fetchType: FetchType, parse: (result: unknown) => PageMiniMap): void;
6
6
  /**
7
7
  * Page minimap: vector tiles for a single route/page.
8
8
  */
9
9
  export declare abstract class PageMiniMap extends MiniMap {
10
10
  abstract readonly fetchType: FetchType;
11
- abstract readonly miniMapType: MiniMapType.OnlineTilesTemplate | MiniMapType.OfflineTilesTemplate;
11
+ readonly miniMapType = MiniMapType.Page;
12
12
  layerId: string;
13
13
  bounds: Bounds;
14
14
  protected constructor(layerId: string, bounds: Bounds, title: string);
15
15
  static fromResult(result: unknown): PageMiniMap;
16
- protected static validateCommonFields(r: Record<string, unknown>, expectedType: MiniMapType.OnlineTilesTemplate | MiniMapType.OfflineTilesTemplate, expectedFetchType: FetchType, context: string): void;
16
+ protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
17
17
  protected static assertTemplate(value: unknown, keyName: string): void;
18
18
  }
19
19
  //# sourceMappingURL=pageMiniMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/pageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,wBAAgB,yBAAyB,CACrC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,WAAW,GACxC,IAAI,CAEN;AAED;;GAEG;AACH,8BAAsB,WAAY,SAAQ,OAAO;IAC7C,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,oBAAoB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,aAAa,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMpE,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,WAAW;IAuB/C,SAAS,CAAC,MAAM,CAAC,oBAAoB,CACjC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,iBAAiB,EAAE,SAAS,EAC5B,OAAO,EAAE,MAAM,GAChB,IAAI;IAoBP,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAQzE"}
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PageMiniMap = void 0;
4
4
  exports.registerPageMiniMapParser = registerPageMiniMapParser;
5
- const bounds_1 = require("./bounds");
5
+ const bounds_1 = require("../bounds");
6
6
  const miniMap_1 = require("./miniMap");
7
7
  const miniMapType_1 = require("./miniMapType");
8
8
  const pageMiniMapParsers = new Map();
9
- function registerPageMiniMapParser(miniMapType, parse) {
10
- pageMiniMapParsers.set(miniMapType, parse);
9
+ function registerPageMiniMapParser(fetchType, parse) {
10
+ pageMiniMapParsers.set(fetchType, parse);
11
11
  }
12
12
  /**
13
13
  * Page minimap: vector tiles for a single route/page.
@@ -15,6 +15,7 @@ function registerPageMiniMapParser(miniMapType, parse) {
15
15
  class PageMiniMap extends miniMap_1.MiniMap {
16
16
  constructor(layerId, bounds, title) {
17
17
  super(title);
18
+ this.miniMapType = miniMapType_1.MiniMapType.Page;
18
19
  this.layerId = layerId;
19
20
  this.bounds = bounds;
20
21
  }
@@ -23,19 +24,22 @@ class PageMiniMap extends miniMap_1.MiniMap {
23
24
  throw new Error('PageMiniMap result must be an object');
24
25
  }
25
26
  const r = result;
26
- if (r.miniMapType !== miniMapType_1.MiniMapType.OnlineTilesTemplate &&
27
- r.miniMapType !== miniMapType_1.MiniMapType.OfflineTilesTemplate) {
28
- throw new Error(`PageMiniMap.miniMapType must be "${miniMapType_1.MiniMapType.OnlineTilesTemplate}" or "${miniMapType_1.MiniMapType.OfflineTilesTemplate}", got: ${JSON.stringify(r.miniMapType)}`);
27
+ if (r.miniMapType !== miniMapType_1.MiniMapType.Page) {
28
+ throw new Error(`PageMiniMap.miniMapType must be "${miniMapType_1.MiniMapType.Page}", got: ${JSON.stringify(r.miniMapType)}`);
29
29
  }
30
- const parser = pageMiniMapParsers.get(r.miniMapType);
30
+ const ft = r.fetchType;
31
+ if (ft !== 'online' && ft !== 'offline') {
32
+ throw new Error(`PageMiniMap.fetchType must be "online" or "offline", got: ${JSON.stringify(ft)}`);
33
+ }
34
+ const parser = pageMiniMapParsers.get(ft);
31
35
  if (parser == null) {
32
- throw new Error(`No PageMiniMap parser registered for miniMapType ${JSON.stringify(r.miniMapType)}`);
36
+ throw new Error(`No PageMiniMap parser registered for fetchType ${JSON.stringify(ft)}`);
33
37
  }
34
38
  return parser(result);
35
39
  }
36
- static validateCommonFields(r, expectedType, expectedFetchType, context) {
37
- if (r.miniMapType !== expectedType) {
38
- throw new Error(`${context}.miniMapType must be "${expectedType}", got: ${JSON.stringify(r.miniMapType)}`);
40
+ static validateCommonFields(r, expectedFetchType, context) {
41
+ if (r.miniMapType !== miniMapType_1.MiniMapType.Page) {
42
+ throw new Error(`${context}.miniMapType must be "${miniMapType_1.MiniMapType.Page}", got: ${JSON.stringify(r.miniMapType)}`);
39
43
  }
40
44
  if (r.fetchType !== expectedFetchType) {
41
45
  throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(r.fetchType)}`);
@@ -0,0 +1,16 @@
1
+ import type { FetchType } from '../../fetchType';
2
+ import { Bounds } from '../bounds';
3
+ import { MiniMap } from './miniMap';
4
+ import { MiniMapType } from './miniMapType';
5
+ export declare function registerRegionMiniMapParser(fetchType: FetchType, parse: (result: unknown) => RegionMiniMap): void;
6
+ /**
7
+ * Region minimap: route GeoJSON via getRoutes (online) or bundled local GeoJSON (offline).
8
+ */
9
+ export declare abstract class RegionMiniMap extends MiniMap {
10
+ abstract readonly fetchType: FetchType;
11
+ readonly miniMapType = MiniMapType.Region;
12
+ bounds: Bounds | null;
13
+ protected constructor(bounds: Bounds | null, title: string);
14
+ static fromResult(result: unknown): RegionMiniMap;
15
+ }
16
+ //# sourceMappingURL=regionMiniMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regionMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/regionMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,aAAa,GAC1C,IAAI,CAEN;AAED;;GAEG;AACH,8BAAsB,aAAc,SAAQ,OAAO;IAC/C,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,sBAAsB;IAC1C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,aAAa,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM;IAK1D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa;CAwBpD"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegionMiniMap = void 0;
4
+ exports.registerRegionMiniMapParser = registerRegionMiniMapParser;
5
+ const miniMap_1 = require("./miniMap");
6
+ const miniMapType_1 = require("./miniMapType");
7
+ const regionMiniMapParsers = new Map();
8
+ function registerRegionMiniMapParser(fetchType, parse) {
9
+ regionMiniMapParsers.set(fetchType, parse);
10
+ }
11
+ /**
12
+ * Region minimap: route GeoJSON via getRoutes (online) or bundled local GeoJSON (offline).
13
+ */
14
+ class RegionMiniMap extends miniMap_1.MiniMap {
15
+ constructor(bounds, title) {
16
+ super(title);
17
+ this.miniMapType = miniMapType_1.MiniMapType.Region;
18
+ this.bounds = bounds;
19
+ }
20
+ static fromResult(result) {
21
+ if (result == null || typeof result !== 'object') {
22
+ throw new Error('RegionMiniMap result must be an object');
23
+ }
24
+ const r = result;
25
+ if (r.miniMapType !== miniMapType_1.MiniMapType.Region) {
26
+ throw new Error(`RegionMiniMap.miniMapType must be "${miniMapType_1.MiniMapType.Region}", got: ${JSON.stringify(r.miniMapType)}`);
27
+ }
28
+ const ft = r.fetchType;
29
+ if (ft !== 'online' && ft !== 'offline') {
30
+ throw new Error(`RegionMiniMap.fetchType must be "online" or "offline", got: ${JSON.stringify(ft)}`);
31
+ }
32
+ const parser = regionMiniMapParsers.get(ft);
33
+ if (parser == null) {
34
+ throw new Error(`No RegionMiniMap parser registered for fetchType ${JSON.stringify(ft)}`);
35
+ }
36
+ return parser(result);
37
+ }
38
+ }
39
+ exports.RegionMiniMap = RegionMiniMap;
@@ -1,8 +1,7 @@
1
- import { CenteredRegionMiniMap } from './centeredRegionMiniMap';
2
- import { MiniMapType } from './miniMapType';
3
- export declare class OfflineCenteredRegionMiniMap extends CenteredRegionMiniMap {
1
+ import { CenteredRegionMiniMap } from '../abstract/centeredRegionMiniMap';
2
+ import type { OfflineMiniMap } from '../abstract/offlineMiniMap';
3
+ export declare class OfflineCenteredRegionMiniMap extends CenteredRegionMiniMap implements OfflineMiniMap {
4
4
  readonly fetchType: "offline";
5
- readonly miniMapType = MiniMapType.OfflineCenteredGeojson;
6
5
  downloadedGeojson: string;
7
6
  constructor(downloadedGeojson: string, centeredRouteId: string, title: string);
8
7
  toPlain(): Record<string, unknown>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offlineCenteredRegionMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/offlineCenteredRegionMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EAExB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAKjE,qBAAa,4BAA6B,SAAQ,qBAAsB,YAAW,cAAc;IAC7F,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,iBAAiB,EAAE,MAAM,CAAC;gBAEd,iBAAiB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAK7E,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAUlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,4BAA4B;CAqBnE"}
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OfflineCenteredRegionMiniMap = void 0;
4
- const centeredRegionMiniMap_1 = require("./centeredRegionMiniMap");
5
- const miniMapType_1 = require("./miniMapType");
4
+ const centeredRegionMiniMap_1 = require("../abstract/centeredRegionMiniMap");
6
5
  /** UUID v4 (same rule as {@link CenteredRegionMiniMap}). */
7
6
  const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
8
7
  class OfflineCenteredRegionMiniMap extends centeredRegionMiniMap_1.CenteredRegionMiniMap {
9
8
  constructor(downloadedGeojson, centeredRouteId, title) {
10
9
  super(centeredRouteId, title);
11
10
  this.fetchType = 'offline';
12
- this.miniMapType = miniMapType_1.MiniMapType.OfflineCenteredGeojson;
13
11
  this.downloadedGeojson = downloadedGeojson;
14
12
  }
15
13
  toPlain() {
@@ -26,7 +24,7 @@ class OfflineCenteredRegionMiniMap extends centeredRegionMiniMap_1.CenteredRegio
26
24
  throw new Error('OfflineCenteredRegionMiniMap result must be an object');
27
25
  }
28
26
  const r = result;
29
- centeredRegionMiniMap_1.CenteredRegionMiniMap.validateCommonFields(r, miniMapType_1.MiniMapType.OfflineCenteredGeojson, 'offline', 'OfflineCenteredRegionMiniMap');
27
+ centeredRegionMiniMap_1.CenteredRegionMiniMap.validateCommonFields(r, 'offline', 'OfflineCenteredRegionMiniMap');
30
28
  const path = r.downloadedGeojson;
31
29
  if (typeof path !== 'string' || path.length === 0) {
32
30
  throw new Error(`OfflineCenteredRegionMiniMap.downloadedGeojson must be a non-empty string, got: ${typeof path}`);
@@ -40,4 +38,4 @@ class OfflineCenteredRegionMiniMap extends centeredRegionMiniMap_1.CenteredRegio
40
38
  }
41
39
  }
42
40
  exports.OfflineCenteredRegionMiniMap = OfflineCenteredRegionMiniMap;
43
- (0, centeredRegionMiniMap_1.registerCenteredRegionMiniMapParser)(miniMapType_1.MiniMapType.OfflineCenteredGeojson, (result) => OfflineCenteredRegionMiniMap.fromResult(result));
41
+ (0, centeredRegionMiniMap_1.registerCenteredRegionMiniMapParser)('offline', (res) => OfflineCenteredRegionMiniMap.fromResult(res));