@windycom/plugin-devtools 1.0.2-beta.2 → 1.0.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/README.md +4 -0
- package/index.mjs +3 -2
- package/package.json +1 -1
- package/publishExamples.sh +1 -1
- package/types/client/BindedDropDown.d.ts +14 -0
- package/types/client/CanvasLayer.d.ts +1 -0
- package/types/client/Detail1hCheckbox.d.ts +4 -0
- package/types/{ExternalSveltePlugin.d.ts → client/ExternalSveltePlugin.d.ts} +2 -1
- package/types/{Plugin.d.ts → client/Plugin.d.ts} +4 -2
- package/types/{Product.d.ts → client/Product.d.ts} +2 -2
- package/types/{ProductSwitch.d.ts → client/ProductSwitch.d.ts} +1 -1
- package/types/client/components.d.ts +1 -0
- package/types/client/debugPremiumIssues.d.ts +22 -0
- package/types/client/embed2.d.ts +93 -0
- package/types/client/errorLogger.d.ts +11 -0
- package/types/client/externalPlugins.d.ts +6 -0
- package/types/{geolocation.d.ts → client/geolocation.d.ts} +11 -3
- package/types/client/globals.d.ts +3 -0
- package/types/{http.d.ts → client/http.d.ts} +1 -1
- package/types/client/index.d.ts +1 -0
- package/types/client/keyboard.d.ts +1 -0
- package/types/client/lib.d.ts +112 -0
- package/types/client/libHtml.d.ts +2 -0
- package/types/client/loadersUI.d.ts +1 -0
- package/types/client/mapGlobeCtrl.d.ts +1 -0
- package/types/client/mobile.d.ts +138 -0
- package/types/{models.d.ts → client/models.d.ts} +1 -1
- package/types/client/nativeStorage.d.ts +17 -0
- package/types/{notifications.d.ts → client/notifications.d.ts} +4 -3
- package/types/client/ogTags.d.ts +22 -0
- package/types/client/params.d.ts +2 -0
- package/types/client/pluginsCtrl.d.ts +7 -0
- package/types/client/pushNotifications.d.ts +1 -0
- package/types/{renderers.d.ts → client/renderers.d.ts} +5 -5
- package/types/{reverseName.d.ts → client/reverseName.d.ts} +12 -0
- package/types/client/serviceWorker.d.ts +1 -0
- package/types/client/swDownloader.d.ts +16 -0
- package/types/client/swProxy.d.ts +4 -0
- package/types/client/swUtils.d.ts +16 -0
- package/types/client/timeAnimation.d.ts +1 -0
- package/types/client/typeGuards.d.ts +2 -0
- package/types/client/visibility.d.ts +5 -0
- package/types/interfaces.d.ts +54 -10
- package/types/leaflet.d.ts +2 -15
- package/types/glsl-modules.d.ts +0 -26
- package/types/index.d.ts +0 -1
- package/types/node-modules.d.ts +0 -16
- package/types/ts-interfaces.d.ts +0 -66
- package/types/ts-types.d.ts +0 -43
- package/types/variables.d.ts +0 -238
- package/types/windy-modules.d.ts +0 -7
- /package/types/{AromeProduct.d.ts → client/AromeProduct.d.ts} +0 -0
- /package/types/{Bar.d.ts → client/Bar.d.ts} +0 -0
- /package/types/{BindedBar.d.ts → client/BindedBar.d.ts} +0 -0
- /package/types/{BindedCheckbox.d.ts → client/BindedCheckbox.d.ts} +0 -0
- /package/types/{BindedSwitch.d.ts → client/BindedSwitch.d.ts} +0 -0
- /package/types/{BottomSlide.d.ts → client/BottomSlide.d.ts} +0 -0
- /package/types/{BottomTagPlugin.d.ts → client/BottomTagPlugin.d.ts} +0 -0
- /package/types/{Calendar.d.ts → client/Calendar.d.ts} +0 -0
- /package/types/{ClickHandler.d.ts → client/ClickHandler.d.ts} +0 -0
- /package/types/{Color.d.ts → client/Color.d.ts} +0 -0
- /package/types/{DataTiler.d.ts → client/DataTiler.d.ts} +0 -0
- /package/types/{Drag.d.ts → client/Drag.d.ts} +0 -0
- /package/types/{DraggableDiv.d.ts → client/DraggableDiv.d.ts} +0 -0
- /package/types/{DropDown.d.ts → client/DropDown.d.ts} +0 -0
- /package/types/{EcmwfAnalysisProduct.d.ts → client/EcmwfAnalysisProduct.d.ts} +0 -0
- /package/types/{EcmwfProduct.d.ts → client/EcmwfProduct.d.ts} +0 -0
- /package/types/{Evented.d.ts → client/Evented.d.ts} +0 -0
- /package/types/{GhostBox.d.ts → client/GhostBox.d.ts} +0 -0
- /package/types/{GlObj.d.ts → client/GlObj.d.ts} +0 -0
- /package/types/{HrrrProducts.d.ts → client/HrrrProducts.d.ts} +0 -0
- /package/types/{IconProducts.d.ts → client/IconProducts.d.ts} +0 -0
- /package/types/{LabelsLayer.d.ts → client/LabelsLayer.d.ts} +0 -0
- /package/types/{LandMask.d.ts → client/LandMask.d.ts} +0 -0
- /package/types/{Layer.d.ts → client/Layer.d.ts} +0 -0
- /package/types/{Legend.d.ts → client/Legend.d.ts} +0 -0
- /package/types/{LongTap.d.ts → client/LongTap.d.ts} +0 -0
- /package/types/{Metric.d.ts → client/Metric.d.ts} +0 -0
- /package/types/{MetricClasses.d.ts → client/MetricClasses.d.ts} +0 -0
- /package/types/{MobileCalendar.d.ts → client/MobileCalendar.d.ts} +0 -0
- /package/types/{NamProducts.d.ts → client/NamProducts.d.ts} +0 -0
- /package/types/{OfflineMessagesClasses.d.ts → client/OfflineMessagesClasses.d.ts} +0 -0
- /package/types/{Overlay.d.ts → client/Overlay.d.ts} +0 -0
- /package/types/{OverlayClasses.d.ts → client/OverlayClasses.d.ts} +0 -0
- /package/types/{Particles.d.ts → client/Particles.d.ts} +0 -0
- /package/types/{Renderer.d.ts → client/Renderer.d.ts} +0 -0
- /package/types/{SatelliteProduct.d.ts → client/SatelliteProduct.d.ts} +0 -0
- /package/types/{Scrollable.d.ts → client/Scrollable.d.ts} +0 -0
- /package/types/{StaticProduct.d.ts → client/StaticProduct.d.ts} +0 -0
- /package/types/{SveltePanePlugin.d.ts → client/SveltePanePlugin.d.ts} +0 -0
- /package/types/{SveltePlugin.d.ts → client/SveltePlugin.d.ts} +0 -0
- /package/types/{Swipe.d.ts → client/Swipe.d.ts} +0 -0
- /package/types/{Switch.d.ts → client/Switch.d.ts} +0 -0
- /package/types/{TagPlugin.d.ts → client/TagPlugin.d.ts} +0 -0
- /package/types/{TileLayer.d.ts → client/TileLayer.d.ts} +0 -0
- /package/types/{TileLayerCanvas.d.ts → client/TileLayerCanvas.d.ts} +0 -0
- /package/types/{TileLayerMultiPatch.d.ts → client/TileLayerMultiPatch.d.ts} +0 -0
- /package/types/{TimestampBar.d.ts → client/TimestampBar.d.ts} +0 -0
- /package/types/{Webcams.d.ts → client/Webcams.d.ts} +0 -0
- /package/types/{Window.d.ts → client/Window.d.ts} +0 -0
- /package/types/{WindowPlugin.d.ts → client/WindowPlugin.d.ts} +0 -0
- /package/types/{baseMap.d.ts → client/baseMap.d.ts} +0 -0
- /package/types/{broadcast.d.ts → client/broadcast.d.ts} +0 -0
- /package/types/{cityLabels.d.ts → client/cityLabels.d.ts} +0 -0
- /package/types/{cloudSync.d.ts → client/cloudSync.d.ts} +0 -0
- /package/types/{colors.d.ts → client/colors.d.ts} +0 -0
- /package/types/{connection.d.ts → client/connection.d.ts} +0 -0
- /package/types/{css.d.ts → client/css.d.ts} +0 -0
- /package/types/{dataLoader.d.ts → client/dataLoader.d.ts} +0 -0
- /package/types/{dataSpecifications.d.ts → client/dataSpecifications.d.ts} +0 -0
- /package/types/{detectDevice.d.ts → client/detectDevice.d.ts} +0 -0
- /package/types/{device.d.ts → client/device.d.ts} +0 -0
- /package/types/{deviceLogging.d.ts → client/deviceLogging.d.ts} +0 -0
- /package/types/{Favs.d.ts → client/favs.d.ts} +0 -0
- /package/types/{fetch.d.ts → client/fetch.d.ts} +0 -0
- /package/types/{format.d.ts → client/format.d.ts} +0 -0
- /package/types/{ga.d.ts → client/ga.d.ts} +0 -0
- /package/types/{glTileRender.d.ts → client/glTileRender.d.ts} +0 -0
- /package/types/{hp.d.ts → client/hp.d.ts} +0 -0
- /package/types/{interpolator.d.ts → client/interpolator.d.ts} +0 -0
- /package/types/{latestBroadcasts.d.ts → client/latestBroadcasts.d.ts} +0 -0
- /package/types/{layers.d.ts → client/layers.d.ts} +0 -0
- /package/types/{legends.d.ts → client/legends.d.ts} +0 -0
- /package/types/{levelUtils.d.ts → client/levelUtils.d.ts} +0 -0
- /package/types/{libGuard.d.ts → client/libGuard.d.ts} +0 -0
- /package/types/{location.d.ts → client/location.d.ts} +0 -0
- /package/types/{log.d.ts → client/log.d.ts} +0 -0
- /package/types/{lruCache.d.ts → client/lruCache.d.ts} +0 -0
- /package/types/{map.d.ts → client/map.d.ts} +0 -0
- /package/types/{metrics.d.ts → client/metrics.d.ts} +0 -0
- /package/types/{mobileUtils.d.ts → client/mobileUtils.d.ts} +0 -0
- /package/types/{offlineController.d.ts → client/offlineController.d.ts} +0 -0
- /package/types/{overlays.d.ts → client/overlays.d.ts} +0 -0
- /package/types/{particleRenderers.d.ts → client/particleRenderers.d.ts} +0 -0
- /package/types/{permanentPromos.d.ts → client/permanentPromos.d.ts} +0 -0
- /package/types/{picker.d.ts → client/picker.d.ts} +0 -0
- /package/types/{plugins.d.ts → client/plugins.d.ts} +0 -0
- /package/types/{pois.d.ts → client/pois.d.ts} +0 -0
- /package/types/{products.d.ts → client/products.d.ts} +0 -0
- /package/types/{promo.d.ts → client/promo.d.ts} +0 -0
- /package/types/{query.d.ts → client/query.d.ts} +0 -0
- /package/types/{queryString.d.ts → client/queryString.d.ts} +0 -0
- /package/types/{renderCtrl.d.ts → client/renderCtrl.d.ts} +0 -0
- /package/types/{renderTile.d.ts → client/renderTile.d.ts} +0 -0
- /package/types/{renderUtils.d.ts → client/renderUtils.d.ts} +0 -0
- /package/types/{rhMessage.d.ts → client/rhMessage.d.ts} +0 -0
- /package/types/{rootScope.d.ts → client/rootScope.d.ts} +0 -0
- /package/types/{router.d.ts → client/router.d.ts} +0 -0
- /package/types/{seoParser.d.ts → client/seoParser.d.ts} +0 -0
- /package/types/{share.d.ts → client/share.d.ts} +0 -0
- /package/types/{showableErrorsService.d.ts → client/showableErrorsService.d.ts} +0 -0
- /package/types/{singleclick.d.ts → client/singleclick.d.ts} +0 -0
- /package/types/{storage.d.ts → client/storage.d.ts} +0 -0
- /package/types/{store.d.ts → client/store.d.ts} +0 -0
- /package/types/{subscription.d.ts → client/subscription.d.ts} +0 -0
- /package/types/{tileInterpolator.d.ts → client/tileInterpolator.d.ts} +0 -0
- /package/types/{tileLayerInstance.d.ts → client/tileLayerInstance.d.ts} +0 -0
- /package/types/{timestampUtils.d.ts → client/timestampUtils.d.ts} +0 -0
- /package/types/{trans.d.ts → client/trans.d.ts} +0 -0
- /package/types/{user.d.ts → client/user.d.ts} +0 -0
- /package/types/{userFavs.d.ts → client/userFavs.d.ts} +0 -0
- /package/types/{utils.d.ts → client/utils.d.ts} +0 -0
package/types/variables.d.ts
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Complie options
|
|
3
|
-
*/
|
|
4
|
-
declare const TARGET: 'index' | 'mobile' | 'lib' | 'embed2';
|
|
5
|
-
declare const TARGET_MOBILE: boolean;
|
|
6
|
-
declare const TARGET_EMBED2: boolean;
|
|
7
|
-
declare const TARGET_LIB: boolean;
|
|
8
|
-
declare const TARGET_INDEX: boolean;
|
|
9
|
-
declare const DEBUG: boolean;
|
|
10
|
-
declare const BETA: boolean;
|
|
11
|
-
declare const IS_HUAWEI: boolean;
|
|
12
|
-
declare const PRODUCTION: boolean;
|
|
13
|
-
declare const DEVELOPMENT: boolean;
|
|
14
|
-
|
|
15
|
-
declare interface AdditionalPluginAssets {
|
|
16
|
-
__css?: string;
|
|
17
|
-
__html?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare interface AdditionalSvelteAssets {
|
|
21
|
-
__css?: string;
|
|
22
|
-
default: typeof import('svelte').SvelteComponent;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// we do not want to wrap into multiple-lines
|
|
26
|
-
// prettier-ignore
|
|
27
|
-
declare type WPluginModules = {
|
|
28
|
-
// svelte plugins (they all have wrapper, so same interface)
|
|
29
|
-
[I in (import('../types').SveltePluginIdent | import('../types').SveltePanePluginIdent)]: typeof import('@windy/SveltePlugin').SvelteApp;
|
|
30
|
-
} & {
|
|
31
|
-
// Plain, Tag and BottomTag plugins
|
|
32
|
-
'@plugins/patch': import('@windy/Plugin').Plugin<'patch'>;
|
|
33
|
-
|
|
34
|
-
// These plugins have stnadard export
|
|
35
|
-
'@plugins/browser': typeof import('../../plugins/browser/browser');
|
|
36
|
-
'@plugins/cap-alerts': typeof import('../../plugins/cap-alerts/cap-alerts');
|
|
37
|
-
'@plugins/contextmenu': typeof import('../../plugins/contextmenu/contextmenu');
|
|
38
|
-
'@plugins/day-switcher': typeof import('../../plugins/day-switcher/day-switcher');
|
|
39
|
-
'@plugins/fav-alert-menu': typeof import('../../plugins/fav-alert-menu/fav-alert-menu');
|
|
40
|
-
'@plugins/gl-particles': typeof import('../../plugins/gl-particles/gl-particles');
|
|
41
|
-
'@plugins/globe': typeof import('../../plugins/globe/globe');
|
|
42
|
-
'@plugins/hp-weather': typeof import('../../plugins/hp-weather/hp-weather');
|
|
43
|
-
'@plugins/isolines': typeof import('../../plugins/isolines/isolines');
|
|
44
|
-
'@plugins/legacy-tile-render': typeof import('../../plugins/legacy-tile-render/legacy-tile-render');
|
|
45
|
-
'@plugins/particles': typeof import('../../plugins/particles/particles');
|
|
46
|
-
'@plugins/picker': typeof import('../../plugins/picker/picker');
|
|
47
|
-
'@plugins/poi-libs': typeof import('../../plugins/poi-libs/poi-libs');
|
|
48
|
-
'@plugins/profile': typeof import('../../plugins/profile/profile');
|
|
49
|
-
'@plugins/promo-mobile-intro': typeof import('../../plugins/promo-mobile-intro/promo-mobile-intro');
|
|
50
|
-
'@plugins/radar': typeof import('../../plugins/_radar/radar');
|
|
51
|
-
'@plugins/satellite': typeof import('../../plugins/satellite/satellite');
|
|
52
|
-
'@plugins/save-password': typeof import('../../plugins/save-password/save-password');
|
|
53
|
-
'@plugins/screenshot': typeof import('../../plugins/screenshot/screenshot');
|
|
54
|
-
'@plugins/upload': typeof import('../../plugins/upload/upload');
|
|
55
|
-
'@plugins/picker-mobile': typeof import('../../plugins/picker-mobile/picker-mobile');
|
|
56
|
-
'@plugins/accumulations': typeof import('../../plugins/accumulations/accumulations');
|
|
57
|
-
'@plugins/mobile-calendar': typeof import('../../plugins/mobile-calendar/mobile-calendar');
|
|
58
|
-
'@plugins/progress-bar': typeof import('../../plugins/progress-bar/progress-bar');
|
|
59
|
-
'@plugins/rhpane-top': typeof import('../../plugins/rhpane-top/rhpane-top');
|
|
60
|
-
'@plugins/rhbottom': typeof import('../../plugins/rhbottom/rhbottom');
|
|
61
|
-
'@plugins/search': typeof import('../../plugins/search/search');
|
|
62
|
-
'@plugins/map-selector': typeof import('../../plugins/map-selector/map-selector');
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Main W object
|
|
67
|
-
*/
|
|
68
|
-
declare const W: {
|
|
69
|
-
/**
|
|
70
|
-
* Declared during compile time in index.html
|
|
71
|
-
*/
|
|
72
|
-
version: string;
|
|
73
|
-
assets: string;
|
|
74
|
-
target: typeof TARGET;
|
|
75
|
-
build: string;
|
|
76
|
-
startTs: number;
|
|
77
|
-
detectedDevice: import('../types').Device;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* TARGET_LIB only
|
|
81
|
-
*/
|
|
82
|
-
lib?: {
|
|
83
|
-
verbose: boolean;
|
|
84
|
-
initAuth: string;
|
|
85
|
-
initialized: boolean;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* TARGET_EMBED only
|
|
90
|
-
*/
|
|
91
|
-
embed?: {
|
|
92
|
-
queryString: Record<string, string>;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* All other modules go here
|
|
97
|
-
*/
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
declare interface Document {
|
|
102
|
-
webkitFullscreenEnabled?: boolean;
|
|
103
|
-
mozWebkitFullscreenEnabled?: boolean;
|
|
104
|
-
msWebkitFullscreenEnabled?: boolean;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Global objects
|
|
109
|
-
*/
|
|
110
|
-
declare interface Window {
|
|
111
|
-
/**
|
|
112
|
-
* Main Windy global object
|
|
113
|
-
*/
|
|
114
|
-
W: typeof W;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Google Recaptcha callback. Must be set on Window since it gets overwritten by external script.
|
|
118
|
-
* It is set when the recaptcha script is loaded.
|
|
119
|
-
* It gets nulled out when the registration form is closed.
|
|
120
|
-
*/
|
|
121
|
-
recaptchaV2callback: ((response: string) => void) | null;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Google Recaptcha error callback. Must be set on Window since it gets overwritten by external script.
|
|
125
|
-
*/
|
|
126
|
-
recaptchaV2error: (() => void) | null;
|
|
127
|
-
|
|
128
|
-
noUiSlider: noUiSlider.noUiSlider;
|
|
129
|
-
|
|
130
|
-
fastspringPopupWebhookHandler: (
|
|
131
|
-
data: import('@plugins/_shared/subscription-services/subscription-services.d').FSBuyResponse,
|
|
132
|
-
) => void;
|
|
133
|
-
fastspringPopupClosedHandler: () => void;
|
|
134
|
-
fastspringMarkupDataHandler: (
|
|
135
|
-
data: import('@plugins/_shared/subscription-services/subscription-services.d').FSMarkupData,
|
|
136
|
-
) => void;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Used in plugin widgets to enable iframe <-> communicaiotn
|
|
140
|
-
*/
|
|
141
|
-
updateDetail: (params: import('@windy/interfaces.d').LatLon) => void;
|
|
142
|
-
updateValues: (
|
|
143
|
-
map: import('@windy/interfaces.d').Coords,
|
|
144
|
-
params: {
|
|
145
|
-
overlay: import('@windy/rootScope.d').Overlays;
|
|
146
|
-
level: import('@windy/rootScope.d').Levels;
|
|
147
|
-
product: import('@windy/rootScope.d').Products;
|
|
148
|
-
},
|
|
149
|
-
) => void;
|
|
150
|
-
updateRange: (range: string) => void;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Color picker
|
|
154
|
-
*/
|
|
155
|
-
jsColorPicker: (
|
|
156
|
-
elId: string,
|
|
157
|
-
opts: {
|
|
158
|
-
customBG: string;
|
|
159
|
-
readOnly: boolean;
|
|
160
|
-
size: number;
|
|
161
|
-
init: (elm: HTMLInputElement) => void;
|
|
162
|
-
displayCallback: (
|
|
163
|
-
/** not used anywhere */
|
|
164
|
-
void1: unknown,
|
|
165
|
-
/** not used anywhere */
|
|
166
|
-
void2: unknown,
|
|
167
|
-
arg: { input: HTMLInputElement },
|
|
168
|
-
) => void;
|
|
169
|
-
},
|
|
170
|
-
) => unknown;
|
|
171
|
-
|
|
172
|
-
windyInit?: (
|
|
173
|
-
options: import('../../src/lib/lib.d').InitOptions,
|
|
174
|
-
cb: import('../../src/lib/lib.d').InitCb,
|
|
175
|
-
) => void;
|
|
176
|
-
TARGET_LIB?: boolean;
|
|
177
|
-
TARGET_INDEX?: boolean;
|
|
178
|
-
TARGET_EMBED2?: boolean;
|
|
179
|
-
TARGET_MOBILE?: boolean;
|
|
180
|
-
IS_HUAWEI?: boolean;
|
|
181
|
-
DEBUG?: boolean;
|
|
182
|
-
BETA?: boolean;
|
|
183
|
-
PRODUCTION?: boolean;
|
|
184
|
-
DEVELOPMENT?: boolean;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
declare const fastspring: {
|
|
188
|
-
builder: {
|
|
189
|
-
/** Set user data to popup store front */
|
|
190
|
-
recognize: (
|
|
191
|
-
data: import('@plugins/_shared/subscription-services/subscription-services.d').FSBuilderRecognize,
|
|
192
|
-
) => void;
|
|
193
|
-
|
|
194
|
-
/** Push product into cart */
|
|
195
|
-
push: (
|
|
196
|
-
data: import('@plugins/_shared/subscription-services/subscription-services.d').FSBuilderPush,
|
|
197
|
-
) => void;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
declare const inAppPurchase: {
|
|
202
|
-
/** Retrieves a list of full product data from Apple/Google. This function must be called before making purchases. */
|
|
203
|
-
getProducts: (
|
|
204
|
-
products: string[],
|
|
205
|
-
) => Promise<
|
|
206
|
-
import('@plugins/_shared/subscription-services/subscription-services.d').IAPProduct[]
|
|
207
|
-
>;
|
|
208
|
-
|
|
209
|
-
/** Buy the one-time product */
|
|
210
|
-
buy: (
|
|
211
|
-
productId: string,
|
|
212
|
-
) => Promise<
|
|
213
|
-
import('@plugins/_shared/subscription-services/subscription-services.d').IAPBuyResponse
|
|
214
|
-
>;
|
|
215
|
-
|
|
216
|
-
/** Buy the subscription */
|
|
217
|
-
subscribe: (
|
|
218
|
-
productId: string,
|
|
219
|
-
) => Promise<
|
|
220
|
-
import('@plugins/_shared/subscription-services/subscription-services.d').IAPBuyResponse
|
|
221
|
-
>;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* This function is only relevant to Android purchases. On Android, you must consume products that you want to let the user purchase multiple times.
|
|
225
|
-
* All 3 parameters are returned by the buy() or restorePurchases() functions.
|
|
226
|
-
*/
|
|
227
|
-
consume: (productType: string, stringifiedReceipt: string, signature: string) => Promise<void>;
|
|
228
|
-
|
|
229
|
-
restorePurchases: () => Promise<
|
|
230
|
-
import('@plugins/_shared/subscription-services/subscription-services.d').IAPRestoreResponse
|
|
231
|
-
>;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* On iOS, you can get the receipt at any moment by calling the getReceipt() function. Note that on iOS the receipt can contain multiple transactions. If successful, the promise returned by this function will resolve to a string with the receipt.
|
|
235
|
-
* On Android this function will always return an empty string since it's not needed for Android purchases.
|
|
236
|
-
*/
|
|
237
|
-
getReceipt: () => Promise<string>;
|
|
238
|
-
};
|
package/types/windy-modules.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// until we finish rewriting all modules into TS, we need to persude TS somehow it is safe to use JS modules
|
|
2
|
-
// once any module is rewritten to TS, it MUST be removed from here!!!
|
|
3
|
-
|
|
4
|
-
declare module 'virtual:langEn' {
|
|
5
|
-
const lang: import('../lang-files').MainLangFile;
|
|
6
|
-
export default lang;
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|