@windycom/plugin-devtools 3.0.0 → 3.0.1

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 (69) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/types/client/BottomSlide.d.ts +3 -0
  4. package/types/client/Color.d.ts +1 -1
  5. package/types/client/EcmwfProduct.d.ts +0 -22
  6. package/types/client/ExternalSveltePlugin.d.ts +6 -1
  7. package/types/client/IDB.d.ts +7 -1
  8. package/types/client/Metric.d.ts +5 -1
  9. package/types/client/Overlay.d.ts +1 -1
  10. package/types/client/Plugin.d.ts +4 -0
  11. package/types/client/Product.d.ts +2 -10
  12. package/types/client/RadarPlusProduct.d.ts +1 -1
  13. package/types/client/SatelliteProduct.d.ts +1 -1
  14. package/types/client/SveltePlugin.d.ts +7 -0
  15. package/types/client/WindowPlugin.d.ts +3 -2
  16. package/types/client/appsFlyer.d.ts +1 -2
  17. package/types/client/compatibilityCheck.d.ts +1 -0
  18. package/types/client/connection.d.ts +1 -1
  19. package/types/client/d.ts.files/Color.d.ts +1 -0
  20. package/types/client/d.ts.files/LabelsLayer.d.ts +2 -2
  21. package/types/client/d.ts.files/alerts.d.ts +1 -2
  22. package/types/client/d.ts.files/broadcast.d.ts +16 -11
  23. package/types/client/d.ts.files/dataSpecifications.d.ts +46 -21
  24. package/types/client/d.ts.files/favs.d.ts +19 -20
  25. package/types/client/d.ts.files/lib.d.ts +5 -7
  26. package/types/client/d.ts.files/plugin-params.d.ts +19 -11
  27. package/types/client/d.ts.files/plugins.d.ts +2 -1
  28. package/types/client/d.ts.files/products.d.ts +1 -2
  29. package/types/client/d.ts.files/rootScope.d.ts +12 -12
  30. package/types/client/d.ts.files/startup.d.ts +17 -11
  31. package/types/client/d.ts.files/user.d.ts +3 -0
  32. package/types/client/detectDevice.d.ts +0 -3
  33. package/types/client/device.d.ts +1 -0
  34. package/types/client/embed.d.ts +70 -0
  35. package/types/client/errorLogger.d.ts +28 -3
  36. package/types/client/errors.d.ts +6 -0
  37. package/types/client/fetch.d.ts +15 -3
  38. package/types/client/format.d.ts +1 -1
  39. package/types/client/http.d.ts +0 -6
  40. package/types/client/idbInstances.d.ts +21 -30
  41. package/types/client/imaker.d.ts +112 -0
  42. package/types/client/imakerMain.d.ts +49 -0
  43. package/types/client/latestBroadcasts.d.ts +1 -1
  44. package/types/client/lib.d.ts +1 -3
  45. package/types/client/libHtml.d.ts +1 -1
  46. package/types/client/liveAlerts.d.ts +5 -0
  47. package/types/client/liveAlerts.types.d.ts +28 -0
  48. package/types/client/location.d.ts +5 -0
  49. package/types/client/log.d.ts +3 -1
  50. package/types/client/mobile.d.ts +3 -2
  51. package/types/client/models.d.ts +7 -5
  52. package/types/client/notifications.d.ts +2 -5
  53. package/types/client/plugins.d.ts +4 -0
  54. package/types/client/promo.d.ts +1 -1
  55. package/types/client/pushNotifications.d.ts +1 -13
  56. package/types/client/rootScope.d.ts +9 -1
  57. package/types/client/router.d.ts +9 -33
  58. package/types/client/seoParser.d.ts +0 -35
  59. package/types/client/showableErrorsService.d.ts +6 -10
  60. package/types/client/storeLastPosition.d.ts +4 -1
  61. package/types/client/user.d.ts +2 -0
  62. package/types/client/userFavs.d.ts +10 -11
  63. package/types/client/utils.d.ts +40 -4
  64. package/types/iconfont.d.ts +7 -0
  65. package/types/interfaces.d.ts +150 -73
  66. package/types/lang-files.d.ts +625 -1
  67. package/types/types.d.ts +56 -17
  68. package/types/client/d.ts.files/errorLogger.d.ts +0 -35
  69. /package/types/client/d.ts.files/{Webcams.d.ts → webcams.d.ts} +0 -0
package/types/types.d.ts CHANGED
@@ -130,12 +130,11 @@ export type MeteogramLevels =
130
130
  | '1000h'
131
131
  | 'surface';
132
132
 
133
- export type CapAlertSeverity /** moderate **/ =
134
- | 'M'
135
- /** severe **/
136
- | 'S'
137
- | /** extreme **/ 'E'
138
- | /** unknown **/ 'A';
133
+ export type CapAlertSeverity =
134
+ | 'M' /** moderate **/
135
+ | 'S' /** severe **/
136
+ | 'E' /** extreme **/
137
+ | 'A' /** unknown **/;
139
138
 
140
139
  export type CapAlertType =
141
140
  | 'T' /** thunderstorm **/
@@ -172,7 +171,14 @@ export type RouteMotionSpeed = {
172
171
  };
173
172
 
174
173
  export type LocationPreferences = {
175
- status: 'notDetermined' | 'restricted' | 'denied' | 'authorized' | 'unknownState';
174
+ status:
175
+ | 'notDetermined' // Native popup asking for location permission, was not shown yet.
176
+ | 'restricted' // The user cannot change this app’s status, possibly due to active restrictions such as parental controls being in place.
177
+ | 'denied' // User disabled app permissions, turned off device location, or enabled Airplane mode.
178
+ | 'authorized' // Deprecated
179
+ | 'authorizedAlways' // This authorization allows you to use all location services and receive location events whether or not your app is in use.
180
+ | 'authorizedWhenInUse' // This authorization allows you to use location services only when your app is in the foreground.
181
+ | 'unknownState'; // Device may not have location services
176
182
  };
177
183
 
178
184
  export type NotificationPreferences = {
@@ -219,10 +225,6 @@ export type ShowableErrors = {
219
225
  closed: Set<string>;
220
226
  };
221
227
 
222
- export type MigrationResult = {
223
- status: 'migrationNotPerformed' | 'migratingData' | 'migrationPerformed';
224
- };
225
-
226
228
  /**
227
229
  * Overlay categories used for better UI navigation (mobile/tablet)
228
230
  */
@@ -274,6 +276,7 @@ export type LogPaths =
274
276
  | 'promo'
275
277
  | 'airport'
276
278
  | 'appRating'
279
+ | 'appOpening'
277
280
  | 'articles'
278
281
  | 'detail2'
279
282
  | 'appsflyer'
@@ -282,7 +285,17 @@ export type LogPaths =
282
285
  | 'weather'
283
286
  | 'events'
284
287
  | 'locationPermissionPopup'
285
- | 'widgetPromo';
288
+ | 'widgetPromo'
289
+ | 'storyEvent'
290
+ | 'garmin';
291
+
292
+ export type LogEvents =
293
+ | 'logout'
294
+ | 'animation-started'
295
+ | 'user-logged'
296
+ | 'click-on-hp'
297
+ | 'article-event'
298
+ | 'displayed-on-hp';
286
299
 
287
300
  /**
288
301
  * Type of user consent
@@ -373,6 +386,13 @@ export interface WindyBackupPlugin {
373
386
  */
374
387
  export type UsedMapLibrary = 'leaflet' | 'maplibre' | 'globe';
375
388
 
389
+ /**
390
+ * Time defined in hours
391
+ */
392
+ export type Hours = number;
393
+
394
+ export type Minutes = number;
395
+
376
396
  /**
377
397
  * All defined translation keys
378
398
  *
@@ -380,11 +400,6 @@ export type UsedMapLibrary = 'leaflet' | 'maplibre' | 'globe';
380
400
  */
381
401
  export type LoadedTranslations = MainLangFile & PluginTranslations;
382
402
 
383
- /*
384
- * Time defined in hours
385
- */
386
- export type Hours = number;
387
-
388
403
  export type UserInterest =
389
404
  | 'outdoor_activities'
390
405
  | 'water_sports'
@@ -395,3 +410,27 @@ export type UserInterest =
395
410
  | 'agriculture'
396
411
  | 'meteorologist'
397
412
  | 'other';
413
+
414
+ export type ParsedQueryString = Record<string, string | undefined>;
415
+
416
+ export type Size = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | 'ultra';
417
+
418
+ /**
419
+ * Custom app icon for Premium users
420
+ */
421
+ export type CustomAppIcon =
422
+ | 'aviation'
423
+ | 'boating'
424
+ | 'cycling'
425
+ | 'default'
426
+ | 'hiking'
427
+ | 'outdoor'
428
+ | 'paragliding'
429
+ | 'premium'
430
+ | 'running'
431
+ | 'scientist'
432
+ | 'swimming'
433
+ | 'water-sports'
434
+ | 'wind'
435
+ | 'windsurfing'
436
+ | 'winter-sports';
@@ -1,35 +0,0 @@
1
- import type { HttpError } from '@windy/http';
2
-
3
- /** Payload sent to backend */
4
- export interface ErrorPayload {
5
- timestamp: number;
6
- runningMs: number;
7
- type: string;
8
- module: string | null | undefined;
9
- msg: string;
10
- line: number | null | undefined;
11
- col: number | null | undefined;
12
- url: string | undefined;
13
- script: string | null | undefined;
14
- ver: string;
15
- target: string;
16
- stack: string | undefined;
17
- error: string;
18
- isOnline: boolean;
19
- repeated?: number;
20
- scriptLine?: string;
21
- latestBcast?: string;
22
- sessionName?: string;
23
- sessionCounter?: number;
24
- lang?: string;
25
- size?: string;
26
- platform?: string;
27
- errorID?: string;
28
- beta?: boolean;
29
- }
30
-
31
- export interface CustomError {
32
- msg: string;
33
- moduleName: string;
34
- errorObject?: Error | HttpError | Event | ErrorEvent;
35
- }