ropegeo-common 1.10.3 → 1.10.4
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/models/api/endpoints/ropewikiPageView.d.ts +11 -1
- package/dist/models/api/endpoints/ropewikiPageView.d.ts.map +1 -1
- package/dist/models/api/endpoints/ropewikiPageView.js +37 -1
- package/dist/models/mobile/savedPage.d.ts.map +1 -1
- package/dist/models/mobile/savedPage.js +1 -1
- package/package.json +1 -1
|
@@ -46,10 +46,18 @@ export declare class RopewikiPageView {
|
|
|
46
46
|
betaSections: BetaSection[];
|
|
47
47
|
/** Minimap for the page route (tiles template + bounds when present), or null. */
|
|
48
48
|
miniMap: MiniMap | null;
|
|
49
|
+
/** Page centroid in WGS84 degrees when known; otherwise null (same convention as search and Route). */
|
|
50
|
+
coordinates: {
|
|
51
|
+
lat: number;
|
|
52
|
+
lon: number;
|
|
53
|
+
} | null;
|
|
49
54
|
constructor(name: string, aka: string[], url: string, quality: number, userVotes: number, regions: {
|
|
50
55
|
name: string;
|
|
51
56
|
id: string;
|
|
52
|
-
}[], difficulty: Difficulty, permit: PermitStatus | null, rappelCount: MinMax | number | null, jumps: number | null, vehicle: string | null, rappelLongest: number | null, shuttleTime: number | null, overallLength: number | null, descentLength: number | null, exitLength: number | null, approachLength: number | null, overallTime: MinMax | number | null, approachTime: MinMax | number | null, descentTime: MinMax | number | null, exitTime: MinMax | number | null, approachElevGain: number | null, descentElevGain: number | null, exitElevGain: number | null, months: string[], latestRevisionDate: Date, bannerImage: BetaSectionImage | null, betaSections: BetaSection[], miniMap: MiniMap | null
|
|
57
|
+
}[], difficulty: Difficulty, permit: PermitStatus | null, rappelCount: MinMax | number | null, jumps: number | null, vehicle: string | null, rappelLongest: number | null, shuttleTime: number | null, overallLength: number | null, descentLength: number | null, exitLength: number | null, approachLength: number | null, overallTime: MinMax | number | null, approachTime: MinMax | number | null, descentTime: MinMax | number | null, exitTime: MinMax | number | null, approachElevGain: number | null, descentElevGain: number | null, exitElevGain: number | null, months: string[], latestRevisionDate: Date, bannerImage: BetaSectionImage | null, betaSections: BetaSection[], miniMap: MiniMap | null, coordinates: {
|
|
58
|
+
lat: number;
|
|
59
|
+
lon: number;
|
|
60
|
+
} | null);
|
|
53
61
|
/**
|
|
54
62
|
* Validates result has RopewikiPageView fields and returns a RopewikiPageView instance.
|
|
55
63
|
*/
|
|
@@ -62,6 +70,8 @@ export declare class RopewikiPageView {
|
|
|
62
70
|
private static assertString;
|
|
63
71
|
private static assertNullableString;
|
|
64
72
|
private static assertNullableMiniMap;
|
|
73
|
+
private static parseCoordinateComponent;
|
|
74
|
+
private static assertNullableCoordinates;
|
|
65
75
|
private static assertNumber;
|
|
66
76
|
private static assertNullableNumber;
|
|
67
77
|
private static assertStringArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ropewikiPageView.d.ts","sourceRoot":"","sources":["../../../../src/models/api/endpoints/ropewikiPageView.ts"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,KAAK,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3C;;GAEG;AACH,qBAAa,gBAAgB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MA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AAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAkBtC,OAAO,CAAC,MAAM,CAAC,yBAAyB;IAexC,OAAO,CAAC,MAAM,CAAC,uBAAuB;CAczC"}
|
|
@@ -14,7 +14,7 @@ const pagePreview_1 = require("../../previews/pagePreview");
|
|
|
14
14
|
* Response type for GET getRopewikiPageView (full page view).
|
|
15
15
|
*/
|
|
16
16
|
class RopewikiPageView {
|
|
17
|
-
constructor(name, aka, url, quality, userVotes, regions, difficulty, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap) {
|
|
17
|
+
constructor(name, aka, url, quality, userVotes, regions, difficulty, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates) {
|
|
18
18
|
this.name = name;
|
|
19
19
|
this.aka = Array.isArray(aka) ? aka.slice() : [];
|
|
20
20
|
this.url = url;
|
|
@@ -44,6 +44,10 @@ class RopewikiPageView {
|
|
|
44
44
|
this.bannerImage = bannerImage;
|
|
45
45
|
this.betaSections = Array.isArray(betaSections) ? betaSections : [];
|
|
46
46
|
this.miniMap = miniMap;
|
|
47
|
+
this.coordinates =
|
|
48
|
+
coordinates != null
|
|
49
|
+
? { lat: coordinates.lat, lon: coordinates.lon }
|
|
50
|
+
: null;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Validates result has RopewikiPageView fields and returns a RopewikiPageView instance.
|
|
@@ -82,6 +86,7 @@ class RopewikiPageView {
|
|
|
82
86
|
RopewikiPageView.assertNullableBannerImage(r, 'bannerImage');
|
|
83
87
|
RopewikiPageView.assertBetaSectionsArray(r, 'betaSections');
|
|
84
88
|
RopewikiPageView.assertNullableMiniMap(r, 'miniMap');
|
|
89
|
+
RopewikiPageView.assertNullableCoordinates(r, 'coordinates');
|
|
85
90
|
r.latestRevisionDate = new Date(r.latestRevisionDate);
|
|
86
91
|
r.difficulty = difficulty_1.Difficulty.fromResult(r.difficulty);
|
|
87
92
|
if (r.miniMap != null && r.miniMap !== undefined) {
|
|
@@ -124,6 +129,37 @@ class RopewikiPageView {
|
|
|
124
129
|
throw new Error(`RopewikiPageView.${key} must be a PageMiniMap object or null, got: ${typeof v}`);
|
|
125
130
|
}
|
|
126
131
|
}
|
|
132
|
+
static parseCoordinateComponent(value) {
|
|
133
|
+
if (typeof value === 'number' && Number.isFinite(value)) {
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
if (typeof value === 'string') {
|
|
137
|
+
const trimmed = value.trim();
|
|
138
|
+
if (trimmed === '')
|
|
139
|
+
return null;
|
|
140
|
+
const n = Number(trimmed);
|
|
141
|
+
if (Number.isFinite(n))
|
|
142
|
+
return n;
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
static assertNullableCoordinates(obj, key) {
|
|
147
|
+
const v = obj[key];
|
|
148
|
+
if (v === null || v === undefined) {
|
|
149
|
+
obj[key] = null;
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (typeof v !== 'object' || v === null || Array.isArray(v)) {
|
|
153
|
+
throw new Error(`RopewikiPageView.${key} must be { lat, lon } or null, got: ${typeof v}`);
|
|
154
|
+
}
|
|
155
|
+
const o = v;
|
|
156
|
+
const lat = RopewikiPageView.parseCoordinateComponent(o.lat);
|
|
157
|
+
const lon = RopewikiPageView.parseCoordinateComponent(o.lon);
|
|
158
|
+
if (lat === null || lon === null) {
|
|
159
|
+
throw new Error(`RopewikiPageView.${key}.lat and .lon must be finite numbers or numeric strings`);
|
|
160
|
+
}
|
|
161
|
+
obj[key] = { lat, lon };
|
|
162
|
+
}
|
|
127
163
|
static assertNumber(obj, key) {
|
|
128
164
|
const v = obj[key];
|
|
129
165
|
if (typeof v !== 'number' || Number.isNaN(v)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"savedPage.d.ts","sourceRoot":"","sources":["../../../src/models/mobile/savedPage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA8C9D;;;GAGG;AACH,qBAAa,SAAS;IAClB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAE9B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAE9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAEhE,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGtC,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,MAAM,EACf,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAW,EAC7D,iBAAiB,GAAE,MAAM,GAAG,IAAW;IAU3C,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS;IAwCpD;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CACvB,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,GAClB,SAAS;IAQZ;;OAEG;IACH,+BAA+B,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB;
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CAAC,MAAM,CAAC,YAAY;IAO3B,OAAO,CAAC,MAAM,CAAC,cAAc;CAsBhC"}
|
|
@@ -108,7 +108,7 @@ class SavedPage {
|
|
|
108
108
|
...sec,
|
|
109
109
|
images: sec.images.map((im) => SavedPage.patchBetaImage(im, this.downloadedImages?.[im.id])),
|
|
110
110
|
}));
|
|
111
|
-
return new ropewikiPageView_1.RopewikiPageView(data.name, data.aka, data.url, data.quality, data.userVotes, data.regions, data.difficulty, data.permit, data.rappelCount, data.jumps, data.vehicle, data.rappelLongest, data.shuttleTime, data.overallLength, data.descentLength, data.exitLength, data.approachLength, data.overallTime, data.approachTime, data.descentTime, data.exitTime, data.approachElevGain, data.descentElevGain, data.exitElevGain, data.months, data.latestRevisionDate, bannerImage, betaSections, data.miniMap);
|
|
111
|
+
return new ropewikiPageView_1.RopewikiPageView(data.name, data.aka, data.url, data.quality, data.userVotes, data.regions, data.difficulty, data.permit, data.rappelCount, data.jumps, data.vehicle, data.rappelLongest, data.shuttleTime, data.overallLength, data.descentLength, data.exitLength, data.approachLength, data.overallTime, data.approachTime, data.descentTime, data.exitTime, data.approachElevGain, data.descentElevGain, data.exitElevGain, data.months, data.latestRevisionDate, bannerImage, betaSections, data.miniMap, data.coordinates);
|
|
112
112
|
}
|
|
113
113
|
toString() {
|
|
114
114
|
const imagesPlain = this.downloadedImages == null
|