@windycom/plugin-devtools 1.0.4 → 1.0.6
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/README.md +3 -1
- package/index.mjs +3 -2
- package/package.json +5 -2
- package/types/client/Calendar.d.ts +4 -4
- package/types/client/Color.d.ts +3 -3
- package/types/client/DataTiler.d.ts +2 -2
- package/types/client/GlObj.d.ts +1 -1
- package/types/client/Layer.d.ts +11 -11
- package/types/client/Metric.d.ts +5 -5
- package/types/client/Product.d.ts +6 -6
- package/types/client/Renderer.d.ts +4 -4
- package/types/client/Webcams.d.ts +4 -4
- package/types/client/d.ts.files/Calendar.d.ts +87 -0
- package/types/client/d.ts.files/CanvasLayer.d.ts +70 -0
- package/types/client/d.ts.files/Color.d.ts +82 -0
- package/types/client/d.ts.files/DataTiler.d.ts +45 -0
- package/types/client/d.ts.files/GlObj.d.ts +92 -0
- package/types/client/d.ts.files/LabelsLayer.d.ts +51 -0
- package/types/client/d.ts.files/LandMask.d.ts +17 -0
- package/types/client/d.ts.files/Layer.d.ts +184 -0
- package/types/client/d.ts.files/Metric.d.ts +192 -0
- package/types/client/d.ts.files/PoisOverlay.d.ts +27 -0
- package/types/client/d.ts.files/Product.d.ts +37 -0
- package/types/client/d.ts.files/Renderer.d.ts +23 -0
- package/types/client/d.ts.files/TileLayerCanvas.d.ts +78 -0
- package/types/client/d.ts.files/TileLayerMultiPatch.d.ts +13 -0
- package/types/client/d.ts.files/Webcams.d.ts +160 -0
- package/types/client/d.ts.files/broadcast.d.ts +177 -0
- package/types/client/d.ts.files/dataSpecifications.d.ts +943 -0
- package/types/client/d.ts.files/errorLogger.d.ts +35 -0
- package/types/client/d.ts.files/format.d.ts +48 -0
- package/types/client/d.ts.files/http.d.ts +87 -0
- package/types/client/d.ts.files/incomingMessages.d.ts +88 -0
- package/types/client/d.ts.files/lib.d.ts +74 -0
- package/types/client/d.ts.files/notifications.d.ts +39 -0
- package/types/client/d.ts.files/outgoingMessages.d.ts +75 -0
- package/types/client/d.ts.files/plugin-params.d.ts +236 -0
- package/types/client/d.ts.files/plugins.d.ts +132 -0
- package/types/client/d.ts.files/pois.d.ts +11 -0
- package/types/client/d.ts.files/products.d.ts +44 -0
- package/types/client/d.ts.files/rootScope.d.ts +43 -0
- package/types/client/d.ts.files/satellite.d.ts +50 -0
- package/types/client/d.ts.files/singleclick.d.ts +31 -0
- package/types/client/d.ts.files/storage.d.ts +120 -0
- package/types/client/d.ts.files/store.d.ts +61 -0
- package/types/client/d.ts.files/tileInterpolator.d.ts +35 -0
- package/types/client/d.ts.files/trans.d.ts +55 -0
- package/types/client/d.ts.files/user.d.ts +58 -0
- package/types/client/dataSpecifications.d.ts +1 -1
- package/types/client/embed2.d.ts +3 -4
- package/types/client/errorLogger.d.ts +1 -1
- package/types/client/fetch.d.ts +30 -3
- package/types/client/format.d.ts +2 -2
- package/types/client/http.d.ts +1 -1
- package/types/client/notifications.d.ts +2 -2
- package/types/client/plugins.d.ts +1 -1
- package/types/client/pois.d.ts +1 -1
- package/types/client/products.d.ts +1 -1
- package/types/client/rootScope.d.ts +4 -4
- package/types/client/singleclick.d.ts +2 -2
- package/types/client/storage.d.ts +1 -1
- package/types/client/store.d.ts +2 -2
- package/types/client/tileInterpolator.d.ts +3 -3
- package/types/client/trans.d.ts +3 -3
- package/types/client/user.d.ts +3 -3
- package/types/client/utils.d.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Defines global `logError( moduleName, msg, errObj )` for custom err loggin.
|
|
4
4
|
* Licences go here since this is the first minified file
|
|
5
5
|
*/
|
|
6
|
-
import type { ErrorPayload } from '
|
|
6
|
+
import type { ErrorPayload } from './d.ts.files/errorLogger.d';
|
|
7
7
|
/**
|
|
8
8
|
* Array of all errors reported to kibana, to show them in debug mode
|
|
9
9
|
* plugin
|
package/types/client/fetch.d.ts
CHANGED
|
@@ -7,12 +7,16 @@ interface LatLonStep extends LatLon {
|
|
|
7
7
|
step?: number;
|
|
8
8
|
interpolate?: boolean;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
10
13
|
export declare const getReftimeIso: (model: Products) => any;
|
|
11
14
|
/**
|
|
12
15
|
* Returns URL for webcam detail by id
|
|
13
16
|
*
|
|
14
17
|
* @param id Webcam id
|
|
15
18
|
* @returns URL for getting the webcam
|
|
19
|
+
* @ignore
|
|
16
20
|
*/
|
|
17
21
|
export declare const getWebcamDetailUrl: (id: string | number) => string;
|
|
18
22
|
/**
|
|
@@ -20,6 +24,7 @@ export declare const getWebcamDetailUrl: (id: string | number) => string;
|
|
|
20
24
|
*
|
|
21
25
|
* @param latLon Object with `lat` and `lon` properties
|
|
22
26
|
* @returns URL for getting list of webcams nearby lat and lon
|
|
27
|
+
* @ignore
|
|
23
28
|
*/
|
|
24
29
|
export declare const getWebcamsListUrl: <T extends LatLon & {
|
|
25
30
|
limit?: number;
|
|
@@ -29,6 +34,7 @@ export declare const getWebcamsListUrl: <T extends LatLon & {
|
|
|
29
34
|
*
|
|
30
35
|
* @param id Webcam id
|
|
31
36
|
* @returns URL for getting webcam archive
|
|
37
|
+
* @ignore
|
|
32
38
|
*/
|
|
33
39
|
export declare const getWebcamArchiveUrl: (id: string | number, hourly?: boolean) => string;
|
|
34
40
|
/**
|
|
@@ -37,6 +43,7 @@ export declare const getWebcamArchiveUrl: (id: string | number, hourly?: boolean
|
|
|
37
43
|
* @param {string} textQuery search query
|
|
38
44
|
* @param {LatLon} [latLon] circle center coordinates
|
|
39
45
|
* @returns {string} URL for searching webcam views
|
|
46
|
+
* @ignore
|
|
40
47
|
*/
|
|
41
48
|
export declare const getSearchWebcamViewsUrl: (textQuery: string, latLon?: LatLon) => string;
|
|
42
49
|
/**
|
|
@@ -44,18 +51,33 @@ export declare const getSearchWebcamViewsUrl: (textQuery: string, latLon?: LatLo
|
|
|
44
51
|
*
|
|
45
52
|
* @param id Webcam id
|
|
46
53
|
* @returns URL for ping webcam metrics
|
|
54
|
+
* @ignore
|
|
47
55
|
*/
|
|
48
56
|
export declare const getWebcamMetricsUrl: (id: string | number) => string;
|
|
49
57
|
/**
|
|
50
|
-
*
|
|
58
|
+
* Gets point forecast data for given location
|
|
59
|
+
*
|
|
60
|
+
* @param model Forecast model
|
|
61
|
+
* @param params LalLon of the location and additional parameters
|
|
62
|
+
* @param source Who is the initiator of this request (name of you plugin)
|
|
63
|
+
* @param qs Additional query string
|
|
64
|
+
* @param options Additional HTTP options
|
|
65
|
+
* @returns Promise with HTTP payload
|
|
51
66
|
*/
|
|
52
67
|
export declare const getPointForecastData: <T extends LatLonStep>(model: Products, { lat, lon, step, interpolate }: T, source: string, qs?: string, options?: HttpOptions) => Promise<HttpPayload<WeatherDataPayload<DataHash>>>;
|
|
53
68
|
/**
|
|
54
|
-
*
|
|
69
|
+
* Gets enhanced point forecast meteogram data for given location
|
|
70
|
+
* @param model Forecast model
|
|
71
|
+
* @param params LalLon of the location and additional parameters
|
|
72
|
+
* @param source Who is the initiator of this request (name of you plugin)
|
|
73
|
+
* @param qs Additional query string
|
|
74
|
+
* @param options Additional HTTP options
|
|
75
|
+
* @returns Promise with HTTP payload
|
|
55
76
|
*/
|
|
56
77
|
export declare const getMeteogramForecastData: <T extends LatLonStep>(model: Products, { lat, lon, step }: T, options?: HttpOptions) => Promise<HttpPayload<MeteogramDataPayload>>;
|
|
57
78
|
/**
|
|
58
79
|
* Returns URL for getting archive forecast
|
|
80
|
+
* @ignore
|
|
59
81
|
*/
|
|
60
82
|
export declare const getArchiveForecastData: <T extends LatLon>(model: Products, { lat, lon }: T, source: string, qs?: string, options?: HttpOptions) => Promise<HttpPayload<WeatherDataPayload<DataHash>>>;
|
|
61
83
|
/**
|
|
@@ -65,24 +87,29 @@ export declare const getArchiveForecastData: <T extends LatLon>(model: Products,
|
|
|
65
87
|
* @param frag Mercator frag in {z}/{x}/{y} format
|
|
66
88
|
* @param options HTTP options
|
|
67
89
|
* @returns URL for getting citytile forecast
|
|
90
|
+
* @ignore
|
|
68
91
|
*/
|
|
69
92
|
export declare const getCitytileData: (model: Products, frag: string, options?: HttpOptions) => Promise<HttpPayload<CityForecastData> | null>;
|
|
70
93
|
/**
|
|
71
94
|
* Returns URL for nearest POI items (stations, airQ, ...)
|
|
72
95
|
* @param param0
|
|
73
|
-
* @returns
|
|
96
|
+
* @returns URL for getting nearest POI items
|
|
97
|
+
* @ignore
|
|
74
98
|
*/
|
|
75
99
|
export declare const getNearestPoiItemsUrl: (type: Pois | 'stations', { lat, lon }: LatLon) => string;
|
|
76
100
|
/**
|
|
77
101
|
* Returns URL for tide forecast
|
|
102
|
+
* @ignore
|
|
78
103
|
*/
|
|
79
104
|
export declare const getTideForecastUrl: <T extends LatLonStep>({ lat, lon }: T) => string;
|
|
80
105
|
/**
|
|
81
106
|
* Returns URL for tide POI
|
|
107
|
+
* @ignore
|
|
82
108
|
*/
|
|
83
109
|
export declare const getTidePoiUrl: (id: string) => string;
|
|
84
110
|
/**
|
|
85
111
|
* Get observations URL
|
|
112
|
+
* @ignore
|
|
86
113
|
*/
|
|
87
114
|
export declare const getObservationsUrl: (type: ExtendedStationType, id: string, daysFrom: number, daysTo?: number) => string;
|
|
88
115
|
export {};
|
package/types/client/format.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Various formatting utils based on user language and settings
|
|
5
5
|
*/
|
|
6
|
-
import type { DirectionFunction, HowOldOptions, TimeFormatFunction } from '
|
|
7
|
-
import type { Timestamp } from '
|
|
6
|
+
import type { DirectionFunction, HowOldOptions, TimeFormatFunction } from './d.ts.files/format.d';
|
|
7
|
+
import type { Timestamp } from './d.ts.files/types';
|
|
8
8
|
/**
|
|
9
9
|
* Returns function for displaying hours (either 12,24h format) on a basis of locale store of a browser
|
|
10
10
|
* US, UK, PH, CA, AU, NZ, IN, EG, SA, CO, PK, MY - AM,PM format
|
package/types/client/http.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HTTP fetch lib using Promises, authorization and lru caching
|
|
3
3
|
*/
|
|
4
|
-
import type { HttpOptions, HttpPayload } from '
|
|
4
|
+
import type { HttpOptions, HttpPayload } from './d.ts.files/http.d';
|
|
5
5
|
export declare const getURL: (url: string) => string;
|
|
6
6
|
export declare class HttpError extends Error {
|
|
7
7
|
status: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Evented } from '@windy/Evented';
|
|
2
2
|
import * as http from '@windy/http';
|
|
3
|
-
import type { HttpPayload } from '
|
|
4
|
-
import type { NotificationInfo } from '
|
|
3
|
+
import type { HttpPayload } from './d.ts.files/http.d';
|
|
4
|
+
import type { NotificationInfo } from './d.ts.files/notifications.d';
|
|
5
5
|
declare class Notification extends Evented<Notification> {
|
|
6
6
|
data: Record<string, unknown>;
|
|
7
7
|
eventSource: null | EventSource;
|
package/types/client/pois.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module pois
|
|
3
3
|
* Single purpose of this module is to load `poi-libs` plugin whenever user selects non-empty poi or has/adds alert/favourite
|
|
4
4
|
*/
|
|
5
|
-
import type { PoisCheckboxes } from '
|
|
5
|
+
import type { PoisCheckboxes } from './d.ts.files/pois.d';
|
|
6
6
|
/**
|
|
7
7
|
* Config for checkboxes of specified poi
|
|
8
8
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Iconfont } from '
|
|
2
|
-
import type { Isolines, Pois } from '
|
|
3
|
-
import type { LoadedTranslations } from '
|
|
1
|
+
import type { Iconfont } from './d.ts.files/iconfont';
|
|
2
|
+
import type { Isolines, Pois } from './d.ts.files/rootScope.d';
|
|
3
|
+
import type { LoadedTranslations } from './d.ts.files/trans.d';
|
|
4
4
|
/**
|
|
5
5
|
* Version of Windy.com client (as taken from package.json)
|
|
6
6
|
* @ignore
|
|
@@ -10,7 +10,7 @@ export declare const version: string;
|
|
|
10
10
|
* Target
|
|
11
11
|
* @ignore
|
|
12
12
|
*/
|
|
13
|
-
export declare const target: "
|
|
13
|
+
export declare const target: "mobile" | "index" | "lib" | "embed2";
|
|
14
14
|
/**
|
|
15
15
|
* Platform
|
|
16
16
|
* @ignore
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* @module singleclick
|
|
20
20
|
*/
|
|
21
21
|
import { Evented } from '@windy/Evented';
|
|
22
|
-
import type { PluginIdent } from '
|
|
23
|
-
import type { SingleclickTypes, ListeningPriority } from '
|
|
22
|
+
import type { PluginIdent } from './d.ts.files/Plugin';
|
|
23
|
+
import type { SingleclickTypes, ListeningPriority } from './d.ts.files/singleclick.d';
|
|
24
24
|
/**
|
|
25
25
|
* Main singleclick event emitter (instance of class {@link Evented.Evented | Evented }.)
|
|
26
26
|
*
|
package/types/client/store.d.ts
CHANGED
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
* @module store
|
|
39
39
|
*/
|
|
40
40
|
import { Evented } from '@windy/Evented';
|
|
41
|
-
import type { DataSpecifications, DataSpecificationsObject } from '
|
|
42
|
-
import type { SetReturnType, StoreOptions, StoreTypes } from '
|
|
41
|
+
import type { DataSpecifications, DataSpecificationsObject } from './d.ts.files/dataSpecifications.d';
|
|
42
|
+
import type { SetReturnType, StoreOptions, StoreTypes } from './d.ts.files/store.d';
|
|
43
43
|
declare class Store extends Evented<StoreTypes> {
|
|
44
44
|
/**
|
|
45
45
|
* Set default value for given key
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* @module tileInterpolator
|
|
10
10
|
*/
|
|
11
11
|
import { DataTiler } from '@windy/DataTiler';
|
|
12
|
-
import type { PixelInterpolationFun, CoordsInterpolationFun } from '
|
|
12
|
+
import type { PixelInterpolationFun, CoordsInterpolationFun } from './d.ts.files/tileInterpolator.d';
|
|
13
13
|
import type { DataTile } from './dataLoader';
|
|
14
|
-
import type { ExtendedTileParams } from '
|
|
15
|
-
import type { FullRenderParameters } from '
|
|
14
|
+
import type { ExtendedTileParams } from './d.ts.files/DataTiler.d';
|
|
15
|
+
import type { FullRenderParameters } from './d.ts.files/Layer.d';
|
|
16
16
|
export declare class TileInterpolator extends DataTiler {
|
|
17
17
|
cb<T extends true | false>(f1: CoordsInterpolationFun, // async interpolator does not use fakeFun with null return type
|
|
18
18
|
f2: PixelInterpolationFun | (() => null), isAsync?: T & (true | false)): void;
|
package/types/client/trans.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SupportedLangFiles, Translations } from '
|
|
2
|
-
import type { LoadedTranslations, LoadingOptions, TransFileInfo } from '
|
|
1
|
+
import type { SupportedLangFiles, Translations } from './d.ts.files/lang-files.d';
|
|
2
|
+
import type { LoadedTranslations, LoadingOptions, TransFileInfo } from './d.ts.files/trans.d';
|
|
3
3
|
export declare const files: Record<keyof SupportedLangFiles, TransFileInfo>;
|
|
4
4
|
/**
|
|
5
5
|
* key-value pairs with all loaded lang strings
|
|
@@ -34,7 +34,7 @@ declare const getFile: (filename: string, options?: LoadingOptions) => Promise<T
|
|
|
34
34
|
* @param lang Optionally forced language, client lang is used by default
|
|
35
35
|
* @returns Translations in key-pair object. Missing translations are presented in default english lang.
|
|
36
36
|
*/
|
|
37
|
-
declare const loadLangFile: (id: keyof SupportedLangFiles, lang?: "
|
|
37
|
+
declare const loadLangFile: (id: keyof SupportedLangFiles, lang?: "en" | "zh-TW" | "zh" | "ja" | "fr" | "ko" | "it" | "ru" | "nl" | "cs" | "tr" | "pl" | "sv" | "fi" | "ro" | "el" | "hu" | "hr" | "ca" | "da" | "ar" | "fa" | "hi" | "ta" | "sk" | "uk" | "bg" | "he" | "is" | "lt" | "et" | "vi" | "sl" | "sr" | "id" | "th" | "sq" | "pt" | "nb" | "es" | "de" | "bn") => Promise<void | Translations>;
|
|
38
38
|
/**
|
|
39
39
|
* Replace all `[data-*]` translation tags with proper translation in HTML element. It overrides its innerHTML
|
|
40
40
|
* Supported data suffixes: 'title', 'placeholder', 't', 'afterbegin', 'beforeend', 'tooltipsrc'
|
package/types/client/user.d.ts
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* We use ./filename to motivate rollup treeshaking
|
|
14
14
|
*/
|
|
15
|
-
import type { User } from '
|
|
16
|
-
import type { HttpPayload } from '
|
|
17
|
-
import type { AccountLoginResponse, UserInfo } from '
|
|
15
|
+
import type { User } from './d.ts.files/dataSpecifications.d';
|
|
16
|
+
import type { HttpPayload } from './d.ts.files/http.d';
|
|
17
|
+
import type { AccountLoginResponse, UserInfo } from './d.ts.files/user.d';
|
|
18
18
|
export declare const isLoggedIn: () => boolean;
|
|
19
19
|
export declare const isPublisher: () => boolean;
|
|
20
20
|
export declare const getInfo: () => User | null;
|
package/types/client/utils.d.ts
CHANGED
|
@@ -271,7 +271,7 @@ export declare const getAdjustedNow: (syncTime?: number) => number;
|
|
|
271
271
|
* @param lang Language code
|
|
272
272
|
* @returns True if language is supported, false otherwise
|
|
273
273
|
*/
|
|
274
|
-
export declare const isValidLang: (lang: string) => lang is "
|
|
274
|
+
export declare const isValidLang: (lang: string) => lang is "en" | "zh-TW" | "zh" | "ja" | "fr" | "ko" | "it" | "ru" | "nl" | "cs" | "tr" | "pl" | "sv" | "fi" | "ro" | "el" | "hu" | "hr" | "ca" | "da" | "ar" | "fa" | "hi" | "ta" | "sk" | "uk" | "bg" | "he" | "is" | "lt" | "et" | "vi" | "sl" | "sr" | "id" | "th" | "sq" | "pt" | "nb" | "es" | "de" | "bn";
|
|
275
275
|
/**
|
|
276
276
|
* Safely joins server name (without trailing / ) and path
|
|
277
277
|
*
|