ropegeo-common 1.22.0 → 1.23.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/models/betaSections/betaSectionImage.d.ts +4 -1
- package/dist/models/betaSections/betaSectionImage.d.ts.map +1 -1
- package/dist/models/betaSections/betaSectionImage.js +18 -1
- package/dist/models/betaSections/offlineBetaSectionImage.d.ts +1 -1
- package/dist/models/betaSections/offlineBetaSectionImage.d.ts.map +1 -1
- package/dist/models/betaSections/offlineBetaSectionImage.js +2 -2
- package/dist/models/betaSections/onlineBetaSectionImage.d.ts +1 -1
- package/dist/models/betaSections/onlineBetaSectionImage.d.ts.map +1 -1
- package/dist/models/betaSections/onlineBetaSectionImage.js +3 -3
- package/dist/models/minimap/abstract/pageMiniMap.d.ts +4 -1
- package/dist/models/minimap/abstract/pageMiniMap.d.ts.map +1 -1
- package/dist/models/minimap/abstract/pageMiniMap.js +18 -1
- package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts +1 -1
- package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts.map +1 -1
- package/dist/models/minimap/concrete/offlinePageMiniMap.js +3 -2
- package/dist/models/minimap/concrete/onlinePageMiniMap.d.ts +1 -1
- package/dist/models/minimap/concrete/onlinePageMiniMap.d.ts.map +1 -1
- package/dist/models/minimap/concrete/onlinePageMiniMap.js +3 -3
- package/dist/models/pageViews/offlineRopewikiPageView.d.ts +1 -1
- package/dist/models/pageViews/offlineRopewikiPageView.d.ts.map +1 -1
- package/dist/models/pageViews/offlineRopewikiPageView.js +2 -2
- package/dist/models/pageViews/onlineRopewikiPageView.d.ts +1 -1
- package/dist/models/pageViews/onlineRopewikiPageView.d.ts.map +1 -1
- package/dist/models/pageViews/onlineRopewikiPageView.js +3 -3
- package/dist/models/pageViews/ropewikiPageView.d.ts +4 -1
- package/dist/models/pageViews/ropewikiPageView.d.ts.map +1 -1
- package/dist/models/pageViews/ropewikiPageView.js +18 -1
- package/package.json +1 -1
|
@@ -8,12 +8,15 @@ export declare abstract class BetaSectionImage {
|
|
|
8
8
|
linkUrl: string;
|
|
9
9
|
caption: string | null;
|
|
10
10
|
latestRevisionDate: Date;
|
|
11
|
-
|
|
11
|
+
/** File contributors; null when not resolved. */
|
|
12
|
+
authors: string[] | null;
|
|
13
|
+
protected constructor(order: number, id: string, linkUrl: string, caption: string | null, latestRevisionDate: Date, authors?: string[] | null);
|
|
12
14
|
static fromResult(result: unknown, fetchType?: FetchType): BetaSectionImage;
|
|
13
15
|
protected static assertNumber(obj: Record<string, unknown>, key: string): void;
|
|
14
16
|
protected static assertNonEmptyString(obj: Record<string, unknown>, key: string): void;
|
|
15
17
|
protected static assertString(obj: Record<string, unknown>, key: string): void;
|
|
16
18
|
protected static assertStringOrNull(obj: Record<string, unknown>, key: string): void;
|
|
19
|
+
protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
|
|
17
20
|
protected static assertDownloadBytesOrNull(obj: Record<string, unknown>, key: string): void;
|
|
18
21
|
protected static assertIso8601DateString(obj: Record<string, unknown>, key: string): void;
|
|
19
22
|
protected static normalizeCommonFields(obj: Record<string, unknown>, context: string, expectedFetchType: FetchType): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"betaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/betaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,gBAAgB,GAC7C,IAAI,CAEN;AAED,8BAAsB,gBAAgB;IAClC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,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AAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAStF,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAS9E,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IASP,SAAS,CAAC,MAAM,CAAC,yBAAyB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAkBP,SAAS,CAAC,MAAM,CAAC,yBAAyB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IASP,SAAS,CAAC,MAAM,CAAC,uBAAuB,CACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAeP,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAClC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,SAAS,GAC7B,IAAI;CAeV"}
|
|
@@ -8,12 +8,13 @@ function registerBetaSectionImageParser(fetchType, parse) {
|
|
|
8
8
|
betaSectionImageParsers.set(fetchType, parse);
|
|
9
9
|
}
|
|
10
10
|
class BetaSectionImage {
|
|
11
|
-
constructor(order, id, linkUrl, caption, latestRevisionDate) {
|
|
11
|
+
constructor(order, id, linkUrl, caption, latestRevisionDate, authors = null) {
|
|
12
12
|
this.order = order;
|
|
13
13
|
this.id = id;
|
|
14
14
|
this.linkUrl = linkUrl;
|
|
15
15
|
this.caption = caption;
|
|
16
16
|
this.latestRevisionDate = new Date(latestRevisionDate);
|
|
17
|
+
this.authors = authors != null ? authors.slice() : null;
|
|
17
18
|
}
|
|
18
19
|
static fromResult(result, fetchType) {
|
|
19
20
|
if (result == null || typeof result !== 'object') {
|
|
@@ -58,6 +59,21 @@ class BetaSectionImage {
|
|
|
58
59
|
throw new Error(`BetaSectionImage.${key} must be a string or null, got: ${typeof v}`);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
62
|
+
static assertNullableStringArray(obj, key) {
|
|
63
|
+
const v = obj[key];
|
|
64
|
+
if (v === undefined || v === null) {
|
|
65
|
+
obj[key] = null;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (!Array.isArray(v)) {
|
|
69
|
+
throw new Error(`BetaSectionImage.${key} must be an array of strings or null, got: ${typeof v}`);
|
|
70
|
+
}
|
|
71
|
+
for (let i = 0; i < v.length; i++) {
|
|
72
|
+
if (typeof v[i] !== 'string') {
|
|
73
|
+
throw new Error(`BetaSectionImage.${key}[${i}] must be a string`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
61
77
|
static assertDownloadBytesOrNull(obj, key) {
|
|
62
78
|
const v = obj[key];
|
|
63
79
|
if (v === undefined || v === null) {
|
|
@@ -82,6 +98,7 @@ class BetaSectionImage {
|
|
|
82
98
|
BetaSectionImage.assertString(obj, 'linkUrl');
|
|
83
99
|
BetaSectionImage.assertStringOrNull(obj, 'caption');
|
|
84
100
|
BetaSectionImage.assertIso8601DateString(obj, 'latestRevisionDate');
|
|
101
|
+
BetaSectionImage.assertNullableStringArray(obj, 'authors');
|
|
85
102
|
const rawFetchType = obj.fetchType;
|
|
86
103
|
if (rawFetchType !== expectedFetchType) {
|
|
87
104
|
throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(rawFetchType)}`);
|
|
@@ -4,7 +4,7 @@ export declare class OfflineBetaSectionImage extends BetaSectionImage {
|
|
|
4
4
|
downloadedBannerPath: string | null;
|
|
5
5
|
downloadedFullPath: string | null;
|
|
6
6
|
downloadedPreviewPath: string | null;
|
|
7
|
-
constructor(order: number, id: string, downloadedBannerPath: string | null, downloadedFullPath: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadedPreviewPath?: string | null);
|
|
7
|
+
constructor(order: number, id: string, downloadedBannerPath: string | null, downloadedFullPath: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadedPreviewPath?: string | null, authors?: string[] | null);
|
|
8
8
|
static fromResult(result: unknown): OfflineBetaSectionImage;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=offlineBetaSectionImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/offlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AAEtF,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGjC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,GAAE,MAAM,GAAG,IAAW;
|
|
1
|
+
{"version":3,"file":"offlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/offlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AAEtF,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGjC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,GAAE,MAAM,GAAG,IAAW,EAC3C,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAQnC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,uBAAuB;CAgB9D"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OfflineBetaSectionImage = void 0;
|
|
4
4
|
const betaSectionImage_1 = require("./betaSectionImage");
|
|
5
5
|
class OfflineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
|
|
6
|
-
constructor(order, id, downloadedBannerPath, downloadedFullPath, linkUrl, caption, latestRevisionDate, downloadedPreviewPath = null) {
|
|
7
|
-
super(order, id, linkUrl, caption, latestRevisionDate);
|
|
6
|
+
constructor(order, id, downloadedBannerPath, downloadedFullPath, linkUrl, caption, latestRevisionDate, downloadedPreviewPath = null, authors = null) {
|
|
7
|
+
super(order, id, linkUrl, caption, latestRevisionDate, authors);
|
|
8
8
|
this.fetchType = 'offline';
|
|
9
9
|
this.downloadedBannerPath = downloadedBannerPath;
|
|
10
10
|
this.downloadedFullPath = downloadedFullPath;
|
|
@@ -8,7 +8,7 @@ export declare class OnlineBetaSectionImage extends BetaSectionImage {
|
|
|
8
8
|
previewUrl: string | null;
|
|
9
9
|
/** Byte sizes per rendition; null when not provided by API. */
|
|
10
10
|
downloadBytes: DownloadBytes | null;
|
|
11
|
-
constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null, previewUrl?: string | null);
|
|
11
|
+
constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null, previewUrl?: string | null, authors?: string[] | null);
|
|
12
12
|
toOffline(downloadedBannerPath: string | null, downloadedFullPath: string | null, downloadedPreviewPath?: string | null): OfflineBetaSectionImage;
|
|
13
13
|
static fromResult(result: unknown): OnlineBetaSectionImage;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+DAA+D;IAC/D,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;gBAGhC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,UAAU,GAAE,MAAM,GAAG,IAAW;
|
|
1
|
+
{"version":3,"file":"onlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+DAA+D;IAC/D,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;gBAGhC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IASnC,SAAS,CACL,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,qBAAqB,GAAE,MAAM,GAAG,IAAW,GAC5C,uBAAuB;IAc1B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;CAc7D"}
|
|
@@ -4,8 +4,8 @@ exports.OnlineBetaSectionImage = void 0;
|
|
|
4
4
|
const betaSectionImage_1 = require("./betaSectionImage");
|
|
5
5
|
const offlineBetaSectionImage_1 = require("./offlineBetaSectionImage");
|
|
6
6
|
class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
|
|
7
|
-
constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes, previewUrl = null) {
|
|
8
|
-
super(order, id, linkUrl, caption, latestRevisionDate);
|
|
7
|
+
constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes, previewUrl = null, authors = null) {
|
|
8
|
+
super(order, id, linkUrl, caption, latestRevisionDate, authors);
|
|
9
9
|
this.fetchType = 'online';
|
|
10
10
|
this.bannerUrl = bannerUrl;
|
|
11
11
|
this.fullUrl = fullUrl;
|
|
@@ -13,7 +13,7 @@ class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
|
|
|
13
13
|
this.previewUrl = previewUrl;
|
|
14
14
|
}
|
|
15
15
|
toOffline(downloadedBannerPath, downloadedFullPath, downloadedPreviewPath = null) {
|
|
16
|
-
return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate, downloadedPreviewPath);
|
|
16
|
+
return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate, downloadedPreviewPath, this.authors);
|
|
17
17
|
}
|
|
18
18
|
static fromResult(result) {
|
|
19
19
|
if (result == null || typeof result !== 'object') {
|
|
@@ -21,11 +21,14 @@ export declare abstract class PageMiniMap extends MiniMap {
|
|
|
21
21
|
pointLayerId: string;
|
|
22
22
|
bounds: Bounds;
|
|
23
23
|
legend?: Record<string, LegendItem>;
|
|
24
|
-
|
|
24
|
+
/** Map-file contributors; null when not resolved. */
|
|
25
|
+
authors: string[] | null;
|
|
26
|
+
protected constructor(polyLineLayerId: string, pointLayerId: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
|
|
25
27
|
getBounds(): Bounds;
|
|
26
28
|
static fromResult(result: unknown): PageMiniMap;
|
|
27
29
|
protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
|
|
28
30
|
protected static assertNullableMapDataId(obj: Record<string, unknown>, key: string): void;
|
|
31
|
+
protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
|
|
29
32
|
protected static assertTemplate(value: unknown, keyName: string): void;
|
|
30
33
|
}
|
|
31
34
|
//# sourceMappingURL=pageMiniMap.d.ts.map
|
|
@@ -1 +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,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,sCAAsC,CAAC;AAC9C,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,2EAA2E;IAC3E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iEAAiE;IACjE,eAAe,EAAE,MAAM,CAAC;IACxB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAA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AE,UAAU,CAAC,EACnC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAWnC,SAAS,IAAI,MAAM;IAInB,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;IA+BP,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAazF,SAAS,CAAC,MAAM,CAAC,yBAAyB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAkBP,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAQzE"}
|
|
@@ -17,7 +17,7 @@ function registerPageMiniMapParser(fetchType, parse) {
|
|
|
17
17
|
* Page minimap: vector tiles for a single route/page.
|
|
18
18
|
*/
|
|
19
19
|
class PageMiniMap extends miniMap_1.MiniMap {
|
|
20
|
-
constructor(polyLineLayerId, pointLayerId, bounds, title, mapDataId = null, legend) {
|
|
20
|
+
constructor(polyLineLayerId, pointLayerId, bounds, title, mapDataId = null, legend, authors = null) {
|
|
21
21
|
super(title);
|
|
22
22
|
this.miniMapType = miniMapType_1.MiniMapType.Page;
|
|
23
23
|
this.mapDataId = mapDataId;
|
|
@@ -25,6 +25,7 @@ class PageMiniMap extends miniMap_1.MiniMap {
|
|
|
25
25
|
this.pointLayerId = pointLayerId;
|
|
26
26
|
this.bounds = bounds;
|
|
27
27
|
this.legend = legend;
|
|
28
|
+
this.authors = authors != null ? authors.slice() : null;
|
|
28
29
|
}
|
|
29
30
|
getBounds() {
|
|
30
31
|
return this.bounds;
|
|
@@ -69,6 +70,7 @@ class PageMiniMap extends miniMap_1.MiniMap {
|
|
|
69
70
|
r.legend = legendItem_1.LegendItem.legendRecordFromResult(r.legend, `${context}.legend`);
|
|
70
71
|
}
|
|
71
72
|
PageMiniMap.assertNullableMapDataId(r, 'mapDataId');
|
|
73
|
+
PageMiniMap.assertNullableStringArray(r, 'authors');
|
|
72
74
|
}
|
|
73
75
|
static assertNullableMapDataId(obj, key) {
|
|
74
76
|
const v = obj[key];
|
|
@@ -80,6 +82,21 @@ class PageMiniMap extends miniMap_1.MiniMap {
|
|
|
80
82
|
throw new Error(`PageMiniMap.${key} must be a non-empty string or null, got: ${typeof v === 'string' ? 'empty string' : typeof v}`);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
85
|
+
static assertNullableStringArray(obj, key) {
|
|
86
|
+
const v = obj[key];
|
|
87
|
+
if (v === undefined || v === null) {
|
|
88
|
+
obj[key] = null;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (!Array.isArray(v)) {
|
|
92
|
+
throw new Error(`PageMiniMap.${key} must be an array of strings or null, got: ${typeof v}`);
|
|
93
|
+
}
|
|
94
|
+
for (let i = 0; i < v.length; i++) {
|
|
95
|
+
if (typeof v[i] !== 'string') {
|
|
96
|
+
throw new Error(`PageMiniMap.${key}[${i}] must be a string`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
83
100
|
static assertTemplate(value, keyName) {
|
|
84
101
|
if (typeof value !== 'string') {
|
|
85
102
|
throw new Error(`${keyName} must be a string, got: ${typeof value}`);
|
|
@@ -5,7 +5,7 @@ import type { LegendItem } from '../legend/abstract/legendItem';
|
|
|
5
5
|
export declare class OfflinePageMiniMap extends PageMiniMap implements OfflineMiniMap {
|
|
6
6
|
readonly fetchType: "offline";
|
|
7
7
|
offlineTilesTemplate: string;
|
|
8
|
-
constructor(polyLineLayerId: string, pointLayerId: string, offlineTilesTemplate: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem
|
|
8
|
+
constructor(polyLineLayerId: string, pointLayerId: string, offlineTilesTemplate: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
|
|
9
9
|
toPlain(): Record<string, unknown>;
|
|
10
10
|
static fromResult(result: unknown): OfflinePageMiniMap;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/offlinePageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,kBAAmB,SAAQ,WAAY,YAAW,cAAc;IACzE,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,CAAC;gBAGzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"offlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/offlinePageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,kBAAmB,SAAQ,WAAY,YAAW,cAAc;IACzE,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,CAAC;gBAGzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAMnC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAyBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;CAUzD"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OfflinePageMiniMap = void 0;
|
|
4
4
|
const pageMiniMap_1 = require("../abstract/pageMiniMap");
|
|
5
5
|
class OfflinePageMiniMap extends pageMiniMap_1.PageMiniMap {
|
|
6
|
-
constructor(polyLineLayerId, pointLayerId, offlineTilesTemplate, bounds, title, mapDataId = null, legend) {
|
|
7
|
-
super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend);
|
|
6
|
+
constructor(polyLineLayerId, pointLayerId, offlineTilesTemplate, bounds, title, mapDataId = null, legend, authors = null) {
|
|
7
|
+
super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend, authors);
|
|
8
8
|
this.fetchType = 'offline';
|
|
9
9
|
this.offlineTilesTemplate = offlineTilesTemplate;
|
|
10
10
|
}
|
|
@@ -23,6 +23,7 @@ class OfflinePageMiniMap extends pageMiniMap_1.PageMiniMap {
|
|
|
23
23
|
west: this.bounds.west,
|
|
24
24
|
},
|
|
25
25
|
title: this.title,
|
|
26
|
+
authors: this.authors,
|
|
26
27
|
};
|
|
27
28
|
if (this.legend !== undefined) {
|
|
28
29
|
plain.legend = Object.fromEntries(Object.entries(this.legend).map(([key, item]) => [key, item.toPlain()]));
|
|
@@ -8,7 +8,7 @@ export declare class OnlinePageMiniMap extends PageMiniMap implements OnlineMini
|
|
|
8
8
|
onlineTilesTemplate: string;
|
|
9
9
|
tileCount: number;
|
|
10
10
|
tileTotalBytes: number;
|
|
11
|
-
constructor(polyLineLayerId: string, pointLayerId: string, onlineTilesTemplate: string, bounds: Bounds, title: string, tileCount: number, tileTotalBytes: number, mapDataId?: string | null, legend?: Record<string, LegendItem
|
|
11
|
+
constructor(polyLineLayerId: string, pointLayerId: string, onlineTilesTemplate: string, bounds: Bounds, title: string, tileCount: number, tileTotalBytes: number, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
|
|
12
12
|
toOffline(offlineTilesTemplate: string): OfflinePageMiniMap;
|
|
13
13
|
static fromResult(result: unknown): OnlinePageMiniMap;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/onlinePageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,aAAa;IACvE,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;gBAGnB,eAAe,EAA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GAAG,iBAAiB;CAqBxD"}
|
|
@@ -5,15 +5,15 @@ const miniMap_1 = require("../abstract/miniMap");
|
|
|
5
5
|
const pageMiniMap_1 = require("../abstract/pageMiniMap");
|
|
6
6
|
const offlinePageMiniMap_1 = require("./offlinePageMiniMap");
|
|
7
7
|
class OnlinePageMiniMap extends pageMiniMap_1.PageMiniMap {
|
|
8
|
-
constructor(polyLineLayerId, pointLayerId, onlineTilesTemplate, bounds, title, tileCount, tileTotalBytes, mapDataId = null, legend) {
|
|
9
|
-
super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend);
|
|
8
|
+
constructor(polyLineLayerId, pointLayerId, onlineTilesTemplate, bounds, title, tileCount, tileTotalBytes, mapDataId = null, legend, authors = null) {
|
|
9
|
+
super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend, authors);
|
|
10
10
|
this.fetchType = 'online';
|
|
11
11
|
this.onlineTilesTemplate = onlineTilesTemplate;
|
|
12
12
|
this.tileCount = tileCount;
|
|
13
13
|
this.tileTotalBytes = tileTotalBytes;
|
|
14
14
|
}
|
|
15
15
|
toOffline(offlineTilesTemplate) {
|
|
16
|
-
return new offlinePageMiniMap_1.OfflinePageMiniMap(this.polyLineLayerId, this.pointLayerId, offlineTilesTemplate, this.bounds, this.title, this.mapDataId, this.legend);
|
|
16
|
+
return new offlinePageMiniMap_1.OfflinePageMiniMap(this.polyLineLayerId, this.pointLayerId, offlineTilesTemplate, this.bounds, this.title, this.mapDataId, this.legend, this.authors);
|
|
17
17
|
}
|
|
18
18
|
static fromResult(result) {
|
|
19
19
|
if (result == null || typeof result !== 'object') {
|
|
@@ -21,7 +21,7 @@ export declare class OfflineRopewikiPageView extends RopewikiPageView implements
|
|
|
21
21
|
}[], difficultyRating: import('../difficulty/difficultyRating').DifficultyRating, permit: import('../permitStatus').PermitStatus | null, rappelCount: MinMax<number> | number | null, jumps: number | null, vehicle: RopewikiVehicleType | null, rappelLongest: LengthMeasurement | null, shuttleTime: TimeMeasurement | null, overallLength: LengthMeasurement | null, descentLength: LengthMeasurement | null, exitLength: LengthMeasurement | null, approachLength: LengthMeasurement | null, overallTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachTime: TimeMeasurement | MinMax<TimeMeasurement> | null, descentTime: TimeMeasurement | MinMax<TimeMeasurement> | null, exitTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachElevGain: LengthMeasurement | null, descentElevGain: LengthMeasurement | null, exitElevGain: LengthMeasurement | null, months: string[], latestRevisionDate: Date, bannerImage: OfflineBetaSectionImage | null, betaSections: OfflineBetaSection[], miniMap: OfflinePageMiniMap | OfflineCenteredRegionMiniMap | null, coordinates: {
|
|
22
22
|
lat: number;
|
|
23
23
|
lon: number;
|
|
24
|
-
} | null);
|
|
24
|
+
} | null, authors?: string[] | null);
|
|
25
25
|
toBetaSectionLookup(): OfflineBetaSectionLookup;
|
|
26
26
|
toPagePreview(): OfflinePagePreview;
|
|
27
27
|
getMapboxPackBounds(): import('../minimap/bounds').Bounds | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offlineRopewikiPageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/offlineRopewikiPageView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EACH,KAAK,wBAAwB,EAC7B,eAAe,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAkC,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAA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AW,EAAE,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,IAAI,EAC7D,QAAQ,EAAE,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,IAAI,EAC1D,gBAAgB,EAAE,iBAAiB,GAAG,IAAI,EAC1C,eAAe,EAAE,iBAAiB,GAAG,IAAI,EACzC,YAAY,EAAE,iBAAiB,GAAG,IAAI,EACtC,MAAM,EAAE,MAAM,EAAE,EAChB,kBAAkB,EAAE,IAAI,EACxB,WAAW,EAAE,uBAAuB,GAAG,IAAI,EAC3C,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,kBAAkB,GAAG,4BAA4B,GAAG,IAAI,EACjE,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,EAChD,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAuCnC,mBAAmB,IAAI,wBAAwB;IAqB/C,aAAa,IAAI,kBAAkB;IAqBnC,mBAAmB,IAAI,OAAO,mBAAmB,EAAE,MAAM,GAAG,IAAI;IAOhE,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,uBAAuB;CA+CxF"}
|
|
@@ -14,8 +14,8 @@ const pageViewType_1 = require("./pageViewType");
|
|
|
14
14
|
const hydrateOfflinePageWirePaths_1 = require("../../helpers/hydrateOfflinePageWirePaths");
|
|
15
15
|
const lodash_1 = require("lodash");
|
|
16
16
|
class OfflineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
|
|
17
|
-
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates) {
|
|
18
|
-
super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates);
|
|
17
|
+
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, authors = null) {
|
|
18
|
+
super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates, authors);
|
|
19
19
|
this.fetchType = 'offline';
|
|
20
20
|
this.bannerImage = bannerImage;
|
|
21
21
|
this.betaSections = betaSections;
|
|
@@ -43,7 +43,7 @@ export declare class OnlineRopewikiPageView extends RopewikiPageView implements
|
|
|
43
43
|
} | number | null, approachElevGainFeet: number | null, descentElevGainFeet: number | null, exitElevGainFeet: number | null, months: string[], latestRevisionDate: Date, bannerImage: OnlineBetaSectionImage | null, betaSections: OnlineBetaSection[], miniMap: OnlinePageMiniMap | OnlineCenteredRegionMiniMap | null, coordinates: {
|
|
44
44
|
lat: number;
|
|
45
45
|
lon: number;
|
|
46
|
-
} | null, downloadFolder?: string | null);
|
|
46
|
+
} | null, downloadFolder?: string | null, authors?: string[] | null);
|
|
47
47
|
toBetaSectionLookup(): OnlineBetaSectionLookup;
|
|
48
48
|
planDownloadPhases(): DownloadPhase[];
|
|
49
49
|
getDependenciesForPhases(phases: DownloadPhase[]): Record<string, DownloadTaskDependency>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onlineRopewikiPageView.d.ts","sourceRo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,aAAa,EAAE;IAOrC,wBAAwB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC;IA6FnF,4BAA4B,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,uBAAuB,GACzC,OAAO,CAAC,eAAe,CAAC;IAS3B,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,WAAW;IAWrD,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlC,SAAS,CACL,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACtD,iBAAiB,CAAC,EAAE,kBAAkB,GAAG,4BAA4B,GAAG,IAAI,GAC7E,uBAAuB;IA0E1B,aAAa,IAAI,iBAAiB;IAsBlC,WAAW,IAAI,SAAS;IAIxB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;IAuD1D,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,wBAAwB;IAqEhC,OAAO,CAAC,8BAA8B;YA8BxB,uCAAuC;IA+BrD,OAAO,CAAC,wCAAwC;CAuCnD"}
|
|
@@ -38,8 +38,8 @@ const downloadConstants_1 = require("../../download/helpers/downloadConstants");
|
|
|
38
38
|
const offlinePageBundlePaths_1 = require("../../helpers/offlinePageBundlePaths");
|
|
39
39
|
const lodash_1 = require("lodash");
|
|
40
40
|
class OnlineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
|
|
41
|
-
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongestFeet, shuttleTimeMinutes, overallLengthMiles, descentLengthMiles, exitLengthMiles, approachLengthMiles, overallTimeHours, approachTimeHours, descentTimeHours, exitTimeHours, approachElevGainFeet, descentElevGainFeet, exitElevGainFeet, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, downloadFolder = null) {
|
|
42
|
-
super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, ropewikiPageView_1.RopewikiPageView.coerceRappelCount(rappelCount), jumps, vehicle, lengthMeasurement_1.LengthMeasurement.coerce(rappelLongestFeet, lengthMeasurement_1.FEET), timeMeasurement_1.TimeMeasurement.coerce(shuttleTimeMinutes, timeMeasurement_1.MINUTES), lengthMeasurement_1.LengthMeasurement.coerce(overallLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(descentLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(exitLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(approachLengthMiles, lengthMeasurement_1.MILES), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(overallTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(approachTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(descentTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(exitTimeHours, timeMeasurement_1.HOURS), lengthMeasurement_1.LengthMeasurement.coerce(approachElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(descentElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(exitElevGainFeet, lengthMeasurement_1.FEET), months, latestRevisionDate, coordinates);
|
|
41
|
+
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongestFeet, shuttleTimeMinutes, overallLengthMiles, descentLengthMiles, exitLengthMiles, approachLengthMiles, overallTimeHours, approachTimeHours, descentTimeHours, exitTimeHours, approachElevGainFeet, descentElevGainFeet, exitElevGainFeet, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, downloadFolder = null, authors = null) {
|
|
42
|
+
super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, ropewikiPageView_1.RopewikiPageView.coerceRappelCount(rappelCount), jumps, vehicle, lengthMeasurement_1.LengthMeasurement.coerce(rappelLongestFeet, lengthMeasurement_1.FEET), timeMeasurement_1.TimeMeasurement.coerce(shuttleTimeMinutes, timeMeasurement_1.MINUTES), lengthMeasurement_1.LengthMeasurement.coerce(overallLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(descentLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(exitLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(approachLengthMiles, lengthMeasurement_1.MILES), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(overallTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(approachTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(descentTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(exitTimeHours, timeMeasurement_1.HOURS), lengthMeasurement_1.LengthMeasurement.coerce(approachElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(descentElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(exitElevGainFeet, lengthMeasurement_1.FEET), months, latestRevisionDate, coordinates, authors);
|
|
43
43
|
this.fetchType = 'online';
|
|
44
44
|
this.bannerImage = bannerImage;
|
|
45
45
|
this.betaSections = betaSections;
|
|
@@ -178,7 +178,7 @@ class OnlineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
|
|
|
178
178
|
}
|
|
179
179
|
offlineMiniMap = downloadedMiniMap;
|
|
180
180
|
}
|
|
181
|
-
return new offlineRopewikiPageView_1.OfflineRopewikiPageView(this.id, this.routeType, this.name, this.aka, this.url, this.quality, this.userVotes, this.regions, this.difficultyRating, this.permit, this.rappelCount, this.jumps, this.vehicle, this.rappelLongest, this.shuttleTime, this.overallLength, this.descentLength, this.exitLength, this.approachLength, this.overallTime, this.approachTime, this.descentTime, this.exitTime, this.approachElevGain, this.descentElevGain, this.exitElevGain, this.months, this.latestRevisionDate, offlineBannerImage, offlineSections, offlineMiniMap, this.coordinates);
|
|
181
|
+
return new offlineRopewikiPageView_1.OfflineRopewikiPageView(this.id, this.routeType, this.name, this.aka, this.url, this.quality, this.userVotes, this.regions, this.difficultyRating, this.permit, this.rappelCount, this.jumps, this.vehicle, this.rappelLongest, this.shuttleTime, this.overallLength, this.descentLength, this.exitLength, this.approachLength, this.overallTime, this.approachTime, this.descentTime, this.exitTime, this.approachElevGain, this.descentElevGain, this.exitElevGain, this.months, this.latestRevisionDate, offlineBannerImage, offlineSections, offlineMiniMap, this.coordinates, this.authors);
|
|
182
182
|
}
|
|
183
183
|
toPagePreview() {
|
|
184
184
|
const mapData = this.miniMap != null && this.miniMap.miniMapType === miniMapType_1.MiniMapType.Page
|
|
@@ -47,13 +47,15 @@ export declare abstract class RopewikiPageView {
|
|
|
47
47
|
lat: number;
|
|
48
48
|
lon: number;
|
|
49
49
|
} | null;
|
|
50
|
+
/** Ropewiki page contributors; null when not resolved. */
|
|
51
|
+
authors: string[] | null;
|
|
50
52
|
protected constructor(id: string, routeType: RouteType, name: string, aka: string[], url: string, quality: number, userVotes: number, regions: {
|
|
51
53
|
name: string;
|
|
52
54
|
id: string;
|
|
53
55
|
}[], difficultyRating: DifficultyRating, permit: PermitStatus | null, rappelCount: MinMax<number> | number | null, jumps: number | null, vehicle: RopewikiVehicleType | null, rappelLongest: LengthMeasurement | null, shuttleTime: TimeMeasurement | null, overallLength: LengthMeasurement | null, descentLength: LengthMeasurement | null, exitLength: LengthMeasurement | null, approachLength: LengthMeasurement | null, overallTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachTime: TimeMeasurement | MinMax<TimeMeasurement> | null, descentTime: TimeMeasurement | MinMax<TimeMeasurement> | null, exitTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachElevGain: LengthMeasurement | null, descentElevGain: LengthMeasurement | null, exitElevGain: LengthMeasurement | null, months: string[], latestRevisionDate: Date, coordinates: {
|
|
54
56
|
lat: number;
|
|
55
57
|
lon: number;
|
|
56
|
-
} | null);
|
|
58
|
+
} | null, authors?: string[] | null);
|
|
57
59
|
static fromResult(result: unknown, fetchType?: FetchType): RopewikiPageView;
|
|
58
60
|
protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
|
|
59
61
|
/**
|
|
@@ -78,6 +80,7 @@ export declare abstract class RopewikiPageView {
|
|
|
78
80
|
protected static assertNumber(obj: Record<string, unknown>, key: string): void;
|
|
79
81
|
protected static assertNullableNumber(obj: Record<string, unknown>, key: string): void;
|
|
80
82
|
protected static assertStringArray(obj: Record<string, unknown>, key: string): void;
|
|
83
|
+
protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
|
|
81
84
|
protected static assertRegionsArray(obj: Record<string, unknown>, key: string): void;
|
|
82
85
|
protected static assertDifficultyRating(r: Record<string, unknown>): void;
|
|
83
86
|
protected static assertVehicle(obj: Record<string, unknown>, key: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ropewikiPageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/ropewikiPageView.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,CAAC;AACvD,OAAO,EACH,gBAAgB,EAEnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wB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CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAoBP,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA4BzE,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAgB/E,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAgB9E,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAwBP,SAAS,CAAC,MAAM,CAAC,uBAAuB,CACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;CAcV"}
|
|
@@ -16,7 +16,7 @@ function registerRopewikiPageViewParser(fetchType, parse) {
|
|
|
16
16
|
ropewikiPageViewParsers.set(fetchType, parse);
|
|
17
17
|
}
|
|
18
18
|
class RopewikiPageView {
|
|
19
|
-
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates) {
|
|
19
|
+
constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates, authors = null) {
|
|
20
20
|
this.pageViewType = pageViewType_1.PageViewType.Ropewiki;
|
|
21
21
|
this.id = id;
|
|
22
22
|
this.routeType = routeType;
|
|
@@ -50,6 +50,7 @@ class RopewikiPageView {
|
|
|
50
50
|
coordinates != null
|
|
51
51
|
? { lat: coordinates.lat, lon: coordinates.lon }
|
|
52
52
|
: null;
|
|
53
|
+
this.authors = authors != null ? authors.slice() : null;
|
|
53
54
|
}
|
|
54
55
|
static fromResult(result, fetchType) {
|
|
55
56
|
if (result == null || typeof result !== 'object') {
|
|
@@ -84,6 +85,7 @@ class RopewikiPageView {
|
|
|
84
85
|
RopewikiPageView.assertStringArray(r, 'months');
|
|
85
86
|
RopewikiPageView.assertIso8601DateString(r, 'latestRevisionDate');
|
|
86
87
|
RopewikiPageView.assertNullableCoordinates(r, 'coordinates');
|
|
88
|
+
RopewikiPageView.assertNullableStringArray(r, 'authors');
|
|
87
89
|
if (r.fetchType !== expectedFetchType) {
|
|
88
90
|
throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(r.fetchType)}`);
|
|
89
91
|
}
|
|
@@ -246,6 +248,21 @@ class RopewikiPageView {
|
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
}
|
|
251
|
+
static assertNullableStringArray(obj, key) {
|
|
252
|
+
const v = obj[key];
|
|
253
|
+
if (v === undefined || v === null) {
|
|
254
|
+
obj[key] = null;
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
if (!Array.isArray(v)) {
|
|
258
|
+
throw new Error(`RopewikiPageView.${key} must be an array of strings or null, got: ${typeof v}`);
|
|
259
|
+
}
|
|
260
|
+
for (let i = 0; i < v.length; i++) {
|
|
261
|
+
if (typeof v[i] !== 'string') {
|
|
262
|
+
throw new Error(`RopewikiPageView.${key}[${i}] must be a string`);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
249
266
|
static assertRegionsArray(obj, key) {
|
|
250
267
|
const v = obj[key];
|
|
251
268
|
if (!Array.isArray(v)) {
|