capacitor-gleap-plugin 18.1.0 → 19.0.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/CapacitorGleapPlugin.podspec +7 -2
- package/Package.swift +31 -0
- package/README.md +247 -759
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/gleapplugins/capacitor/GleapPlugin.java +184 -37
- package/dist/docs.json +267 -3893
- package/dist/esm/definitions.d.ts +145 -3
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logs/body.d.ts +58 -0
- package/dist/esm/logs/body.js +303 -0
- package/dist/esm/logs/body.js.map +1 -0
- package/dist/esm/logs/consoleCapture.d.ts +29 -0
- package/dist/esm/logs/consoleCapture.js +189 -0
- package/dist/esm/logs/consoleCapture.js.map +1 -0
- package/dist/esm/logs/format.d.ts +16 -0
- package/dist/esm/logs/format.js +394 -0
- package/dist/esm/logs/format.js.map +1 -0
- package/dist/esm/logs/networkCapture.d.ts +65 -0
- package/dist/esm/logs/networkCapture.js +654 -0
- package/dist/esm/logs/networkCapture.js.map +1 -0
- package/dist/esm/logs/redaction.d.ts +54 -0
- package/dist/esm/logs/redaction.js +388 -0
- package/dist/esm/logs/redaction.js.map +1 -0
- package/dist/esm/logs/webViewLogs.d.ts +70 -0
- package/dist/esm/logs/webViewLogs.js +297 -0
- package/dist/esm/logs/webViewLogs.js.map +1 -0
- package/dist/esm/logs/zone.d.ts +5 -0
- package/dist/esm/logs/zone.js +15 -0
- package/dist/esm/logs/zone.js.map +1 -0
- package/dist/esm/web.d.ts +37 -2
- package/dist/esm/web.js +34 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +2254 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +2254 -1
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/GleapPlugin}/GleapPlugin.swift +195 -12
- package/package.json +18 -4
- package/ios/Plugin/GleapPlugin.h +0 -10
- package/ios/Plugin/GleapPlugin.m +0 -68
- package/ios/Plugin/Info.plist +0 -24
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Add AI-native customer support, live chat, in-app bug reporting, a help center and surveys to your Capacitor and Ionic apps with [Gleap](https://www.gleap.ai). Gleap is an Intercom alternative for software teams that connects customer conversations and feedback with product development.
|
|
4
4
|
|
|
5
|
-
This plugin supports Capacitor 7. See the instructions below for earlier Capacitor versions.
|
|
5
|
+
This plugin supports Capacitor 7 and later (iOS via Swift Package Manager or CocoaPods). See the instructions below for earlier Capacitor versions.
|
|
6
6
|
|
|
7
7
|
Thanks to Stephan Nagel (congrapp) for his work on the Gleap Capacitor plugin.
|
|
8
8
|
|
|
@@ -15,6 +15,24 @@ npm install capacitor-gleap-plugin
|
|
|
15
15
|
npx cap sync
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
### iOS
|
|
19
|
+
|
|
20
|
+
The plugin needs Capacitor 7 or later and an iOS deployment target of **15.0** or higher. On iOS it is a Swift package (`Package.swift`) and pulls the native [Gleap iOS SDK](https://github.com/GleapSDK/Gleap-iOS-SDK) from GitHub; it still ships a podspec for apps that use CocoaPods.
|
|
21
|
+
|
|
22
|
+
**Swift Package Manager (recommended).** New apps: `npx cap add ios --packagemanager SPM`. Existing CocoaPods apps can move with `npx cap spm-migration-assistant` once all their plugins support SPM (see [Capacitor: Swift Package Manager](https://capacitorjs.com/docs/ios/spm)). Set the app target's iOS deployment target to 15.0 in Xcode, then run `npx cap sync ios` again so `CapApp-SPM/Package.swift` declares iOS 15 as well (the plugin's package requires it).
|
|
23
|
+
|
|
24
|
+
**CocoaPods.** Set `platform :ios, '15.0'` in `ios/App/Podfile` and run `npx cap sync ios`. CocoaPods trunk becomes read-only on December 2, 2026, so Gleap iOS SDK versions released after that date are not on trunk. For those, `pod install` fails with `None of your spec sources contain Gleap (= X.Y.Z)`; add the SDK from GitHub to your app target in the Podfile, with the version the plugin requires (`s.dependency 'Gleap', 'X.Y.Z'` in `node_modules/capacitor-gleap-plugin/CapacitorGleapPlugin.podspec`):
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
target 'App' do
|
|
28
|
+
capacitor_pods
|
|
29
|
+
# Add your Pods here
|
|
30
|
+
pod 'Gleap', :git => 'https://github.com/GleapSDK/Gleap-iOS-SDK.git', :tag => '19.0.0'
|
|
31
|
+
end
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Swift Package Manager is the recommended setup: after December 2, 2026 new Gleap iOS SDK versions are only released through GitHub and Swift Package Manager.
|
|
35
|
+
|
|
18
36
|
## Capacitor 6
|
|
19
37
|
|
|
20
38
|
Please install the plugin version from our capacitor-v6 brunch with `npm install GleapSDK/Capacitor-SDK#capacitor-v6 --save` if you are using capacitor 6.
|
|
@@ -53,6 +71,17 @@ await Gleap.setDisableEnvData({ disableEnvData: true });
|
|
|
53
71
|
|
|
54
72
|
Both can be called at any time and apply to the next ticket. Each `setEnvDataPropsToIgnore` call replaces the previous list, an empty array resets it. `setDisableEnvData({ disableEnvData: false })` turns the collection back on.
|
|
55
73
|
|
|
74
|
+
## Dark mode
|
|
75
|
+
|
|
76
|
+
Switch the widget between dark and light mode. `auto` follows the device appearance (on web: the page theme); if your app has its own theme toggle, pass `light` or `dark` explicitly and call it again whenever the theme changes:
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
await Gleap.setColorScheme({ colorScheme: "auto" });
|
|
80
|
+
await Gleap.setColorScheme({ colorScheme: isDarkTheme ? "dark" : "light", darkBackgroundColor: "#121212" });
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`setColorScheme` only takes effect when "Adapt to dark / light mode" is enabled in the Gleap dashboard; it then overrides the dashboard's color scheme. Before the first call the dashboard setting applies. In dark mode the widget uses the dark mode colors, logo, header image and composer glow set in the Gleap dashboard; without dark colors it keeps its normal colors. `lightBackgroundColor` / `darkBackgroundColor` override the background in light / dark mode. Can be called before or after `initialize`.
|
|
84
|
+
|
|
56
85
|
## API
|
|
57
86
|
|
|
58
87
|
<docgen-index>
|
|
@@ -76,10 +105,13 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
|
|
|
76
105
|
* [`setTags(...)`](#settags)
|
|
77
106
|
* [`setNetworkLogsBlacklist(...)`](#setnetworklogsblacklist)
|
|
78
107
|
* [`setNetworkLogPropsToIgnore(...)`](#setnetworklogpropstoignore)
|
|
108
|
+
* [`attachNetworkLogs(...)`](#attachnetworklogs)
|
|
109
|
+
* [`attachConsoleLogs(...)`](#attachconsolelogs)
|
|
79
110
|
* [`setEnvDataPropsToIgnore(...)`](#setenvdatapropstoignore)
|
|
80
111
|
* [`registerAgentTool(...)`](#registeragenttool)
|
|
81
112
|
* [`sendAgentToolResult(...)`](#sendagenttoolresult)
|
|
82
113
|
* [`addListener('agentToolExecution', ...)`](#addlisteneragenttoolexecution-)
|
|
114
|
+
* [`addListener('logConfigLoaded', ...)`](#addlistenerlogconfigloaded-)
|
|
83
115
|
* [`setTicketAttribute(...)`](#setticketattribute)
|
|
84
116
|
* [`unsetTicketAttribute(...)`](#unsetticketattribute)
|
|
85
117
|
* [`clearTicketAttributes()`](#clearticketattributes)
|
|
@@ -94,6 +126,9 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
|
|
|
94
126
|
* [`addAttachment(...)`](#addattachment)
|
|
95
127
|
* [`removeAllAttachments()`](#removeallattachments)
|
|
96
128
|
* [`open()`](#open)
|
|
129
|
+
* [`openChecklists(...)`](#openchecklists)
|
|
130
|
+
* [`openChecklist(...)`](#openchecklist)
|
|
131
|
+
* [`startChecklist(...)`](#startchecklist)
|
|
97
132
|
* [`openNews(...)`](#opennews)
|
|
98
133
|
* [`openNewsArticle(...)`](#opennewsarticle)
|
|
99
134
|
* [`openHelpCenter(...)`](#openhelpcenter)
|
|
@@ -108,10 +143,12 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
|
|
|
108
143
|
* [`startClassicForm(...)`](#startclassicform)
|
|
109
144
|
* [`startConversation(...)`](#startconversation)
|
|
110
145
|
* [`openConversation(...)`](#openconversation)
|
|
146
|
+
* [`openConversations(...)`](#openconversations)
|
|
111
147
|
* [`startBot(...)`](#startbot)
|
|
112
148
|
* [`showFeedbackButton(...)`](#showfeedbackbutton)
|
|
113
149
|
* [`setDisableInAppNotifications(...)`](#setdisableinappnotifications)
|
|
114
150
|
* [`setDisableEnvData(...)`](#setdisableenvdata)
|
|
151
|
+
* [`setColorScheme(...)`](#setcolorscheme)
|
|
115
152
|
* [`setLanguage(...)`](#setlanguage)
|
|
116
153
|
* [`disableConsoleLogOverwrite()`](#disableconsolelogoverwrite)
|
|
117
154
|
* [`enableDebugConsoleLog()`](#enabledebugconsolelog)
|
|
@@ -281,14 +318,14 @@ Set a custom modal url. Must be called before initialize.
|
|
|
281
318
|
### identify(...)
|
|
282
319
|
|
|
283
320
|
```typescript
|
|
284
|
-
identify(options: { userId: string; userHash?: string; name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?:
|
|
321
|
+
identify(options: { userId: string; userHash?: string; name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: Record<string, any>; }) => Promise<{ identify: boolean; }>
|
|
285
322
|
```
|
|
286
323
|
|
|
287
324
|
Set user identity
|
|
288
325
|
|
|
289
|
-
| Param | Type
|
|
290
|
-
| ------------- |
|
|
291
|
-
| **`options`** | <code>{ userId: string; userHash?: string; name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: <a href="#
|
|
326
|
+
| Param | Type |
|
|
327
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
328
|
+
| **`options`** | <code>{ userId: string; userHash?: string; name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: <a href="#record">Record</a><string, any>; }</code> |
|
|
292
329
|
|
|
293
330
|
**Returns:** <code>Promise<{ identify: boolean; }></code>
|
|
294
331
|
|
|
@@ -300,14 +337,14 @@ Set user identity
|
|
|
300
337
|
### updateContact(...)
|
|
301
338
|
|
|
302
339
|
```typescript
|
|
303
|
-
updateContact(options: { name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?:
|
|
340
|
+
updateContact(options: { name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: Record<string, any>; }) => Promise<{ identify: boolean; }>
|
|
304
341
|
```
|
|
305
342
|
|
|
306
343
|
Update user properties
|
|
307
344
|
|
|
308
|
-
| Param | Type
|
|
309
|
-
| ------------- |
|
|
310
|
-
| **`options`** | <code>{ name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: <a href="#
|
|
345
|
+
| Param | Type |
|
|
346
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
347
|
+
| **`options`** | <code>{ name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: <a href="#record">Record</a><string, any>; }</code> |
|
|
311
348
|
|
|
312
349
|
**Returns:** <code>Promise<{ identify: boolean; }></code>
|
|
313
350
|
|
|
@@ -475,6 +512,49 @@ Set network logs props to ignore
|
|
|
475
512
|
--------------------
|
|
476
513
|
|
|
477
514
|
|
|
515
|
+
### attachNetworkLogs(...)
|
|
516
|
+
|
|
517
|
+
```typescript
|
|
518
|
+
attachNetworkLogs(options: { logs: GleapNetworkLogEntry[]; }) => Promise<{ networkLogsAttached: boolean; }>
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
Hands the network requests made inside the app's WebView (fetch and XMLHttpRequest) to the native SDK, so they
|
|
522
|
+
show up in the network logs of tickets. The plugin calls this for you on iOS and Android; each call replaces
|
|
523
|
+
the previously attached WebView network logs. No-op on web, where the JavaScript SDK records requests itself.
|
|
524
|
+
|
|
525
|
+
| Param | Type |
|
|
526
|
+
| ------------- | ---------------------------------------------- |
|
|
527
|
+
| **`options`** | <code>{ logs: GleapNetworkLogEntry[]; }</code> |
|
|
528
|
+
|
|
529
|
+
**Returns:** <code>Promise<{ networkLogsAttached: boolean; }></code>
|
|
530
|
+
|
|
531
|
+
**Since:** 19.0.0
|
|
532
|
+
|
|
533
|
+
--------------------
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
### attachConsoleLogs(...)
|
|
537
|
+
|
|
538
|
+
```typescript
|
|
539
|
+
attachConsoleLogs(options: { logs: GleapConsoleLogEntry[]; }) => Promise<{ consoleLogsAttached: boolean; }>
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
Hands the console output of the app's WebView (console.log/info/warn/error/debug, uncaught errors and
|
|
543
|
+
unhandled promise rejections) to the native SDK, so it shows up in the console logs of tickets. The plugin
|
|
544
|
+
calls this for you on iOS and Android; each call replaces the previously attached WebView console logs.
|
|
545
|
+
No-op on web, where the JavaScript SDK records the console itself.
|
|
546
|
+
|
|
547
|
+
| Param | Type |
|
|
548
|
+
| ------------- | ---------------------------------------------- |
|
|
549
|
+
| **`options`** | <code>{ logs: GleapConsoleLogEntry[]; }</code> |
|
|
550
|
+
|
|
551
|
+
**Returns:** <code>Promise<{ consoleLogsAttached: boolean; }></code>
|
|
552
|
+
|
|
553
|
+
**Since:** 19.0.0
|
|
554
|
+
|
|
555
|
+
--------------------
|
|
556
|
+
|
|
557
|
+
|
|
478
558
|
### setEnvDataPropsToIgnore(...)
|
|
479
559
|
|
|
480
560
|
```typescript
|
|
@@ -554,6 +634,27 @@ Called when a registered agent tool should execute.
|
|
|
554
634
|
--------------------
|
|
555
635
|
|
|
556
636
|
|
|
637
|
+
### addListener('logConfigLoaded', ...)
|
|
638
|
+
|
|
639
|
+
```typescript
|
|
640
|
+
addListener(eventName: 'logConfigLoaded', listenerFunc: (config: GleapLogConfig) => void) => Promise<PluginListenerHandle>
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
Called on iOS and Android when the project config is loaded, with the network log settings the plugin's
|
|
644
|
+
WebView log capture needs (network logs are only recorded when they are enabled for your project).
|
|
645
|
+
|
|
646
|
+
| Param | Type |
|
|
647
|
+
| ------------------ | ------------------------------------------------------------------------------ |
|
|
648
|
+
| **`eventName`** | <code>'logConfigLoaded'</code> |
|
|
649
|
+
| **`listenerFunc`** | <code>(config: <a href="#gleaplogconfig">GleapLogConfig</a>) => void</code> |
|
|
650
|
+
|
|
651
|
+
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
652
|
+
|
|
653
|
+
**Since:** 19.0.0
|
|
654
|
+
|
|
655
|
+
--------------------
|
|
656
|
+
|
|
657
|
+
|
|
557
658
|
### setTicketAttribute(...)
|
|
558
659
|
|
|
559
660
|
```typescript
|
|
@@ -802,6 +903,63 @@ Open widget
|
|
|
802
903
|
--------------------
|
|
803
904
|
|
|
804
905
|
|
|
906
|
+
### openChecklists(...)
|
|
907
|
+
|
|
908
|
+
```typescript
|
|
909
|
+
openChecklists(options: { showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
|
|
910
|
+
```
|
|
911
|
+
|
|
912
|
+
Open checklists
|
|
913
|
+
|
|
914
|
+
| Param | Type |
|
|
915
|
+
| ------------- | ------------------------------------------ |
|
|
916
|
+
| **`options`** | <code>{ showBackButton?: boolean; }</code> |
|
|
917
|
+
|
|
918
|
+
**Returns:** <code>Promise<{ opened: boolean; }></code>
|
|
919
|
+
|
|
920
|
+
**Since:** 19.0.0
|
|
921
|
+
|
|
922
|
+
--------------------
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
### openChecklist(...)
|
|
926
|
+
|
|
927
|
+
```typescript
|
|
928
|
+
openChecklist(options: { checklistId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
Open checklist
|
|
932
|
+
|
|
933
|
+
| Param | Type |
|
|
934
|
+
| ------------- | --------------------------------------------------------------- |
|
|
935
|
+
| **`options`** | <code>{ checklistId: string; showBackButton?: boolean; }</code> |
|
|
936
|
+
|
|
937
|
+
**Returns:** <code>Promise<{ opened: boolean; }></code>
|
|
938
|
+
|
|
939
|
+
**Since:** 19.0.0
|
|
940
|
+
|
|
941
|
+
--------------------
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
### startChecklist(...)
|
|
945
|
+
|
|
946
|
+
```typescript
|
|
947
|
+
startChecklist(options: { outboundId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
Start checklist
|
|
951
|
+
|
|
952
|
+
| Param | Type |
|
|
953
|
+
| ------------- | -------------------------------------------------------------- |
|
|
954
|
+
| **`options`** | <code>{ outboundId: string; showBackButton?: boolean; }</code> |
|
|
955
|
+
|
|
956
|
+
**Returns:** <code>Promise<{ opened: boolean; }></code>
|
|
957
|
+
|
|
958
|
+
**Since:** 19.0.0
|
|
959
|
+
|
|
960
|
+
--------------------
|
|
961
|
+
|
|
962
|
+
|
|
805
963
|
### openNews(...)
|
|
806
964
|
|
|
807
965
|
```typescript
|
|
@@ -1060,6 +1218,25 @@ Opens the conversations tab.
|
|
|
1060
1218
|
--------------------
|
|
1061
1219
|
|
|
1062
1220
|
|
|
1221
|
+
### openConversations(...)
|
|
1222
|
+
|
|
1223
|
+
```typescript
|
|
1224
|
+
openConversations(options: { showBackButton?: boolean; }) => Promise<{ conversationsOpened: boolean; }>
|
|
1225
|
+
```
|
|
1226
|
+
|
|
1227
|
+
Opens the conversations tab (same as openConversation).
|
|
1228
|
+
|
|
1229
|
+
| Param | Type |
|
|
1230
|
+
| ------------- | ------------------------------------------ |
|
|
1231
|
+
| **`options`** | <code>{ showBackButton?: boolean; }</code> |
|
|
1232
|
+
|
|
1233
|
+
**Returns:** <code>Promise<{ conversationsOpened: boolean; }></code>
|
|
1234
|
+
|
|
1235
|
+
**Since:** 19.0.0
|
|
1236
|
+
|
|
1237
|
+
--------------------
|
|
1238
|
+
|
|
1239
|
+
|
|
1063
1240
|
### startBot(...)
|
|
1064
1241
|
|
|
1065
1242
|
```typescript
|
|
@@ -1137,6 +1314,33 @@ and tickets are sent without it. Pass false to collect env data again. Can be ca
|
|
|
1137
1314
|
--------------------
|
|
1138
1315
|
|
|
1139
1316
|
|
|
1317
|
+
### setColorScheme(...)
|
|
1318
|
+
|
|
1319
|
+
```typescript
|
|
1320
|
+
setColorScheme(options: { colorScheme: 'auto' | 'light' | 'dark'; lightBackgroundColor?: string; darkBackgroundColor?: string; }) => Promise<{ colorScheme: string; }>
|
|
1321
|
+
```
|
|
1322
|
+
|
|
1323
|
+
Set the color scheme of the widget. Overrides the color scheme configured in the Gleap dashboard.
|
|
1324
|
+
Only takes effect when "Adapt to dark / light mode" is enabled in the dashboard; otherwise the widget
|
|
1325
|
+
always keeps its normal colors. Before the first call the dashboard setting applies.
|
|
1326
|
+
"auto" follows the device appearance (dark/light mode) on iOS and Android, and the page theme on web.
|
|
1327
|
+
Apps with their own in-app theme toggle should pass "light" / "dark" explicitly and call it again whenever
|
|
1328
|
+
the theme changes.
|
|
1329
|
+
In dark mode the widget uses the dark mode colors, logo, header image and composer glow set in the Gleap dashboard;
|
|
1330
|
+
without dark colors it keeps its normal colors. lightBackgroundColor / darkBackgroundColor override the background.
|
|
1331
|
+
Can be called before or after initialize and applies live.
|
|
1332
|
+
|
|
1333
|
+
| Param | Type |
|
|
1334
|
+
| ------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
1335
|
+
| **`options`** | <code>{ colorScheme: 'auto' \| 'light' \| 'dark'; lightBackgroundColor?: string; darkBackgroundColor?: string; }</code> |
|
|
1336
|
+
|
|
1337
|
+
**Returns:** <code>Promise<{ colorScheme: string; }></code>
|
|
1338
|
+
|
|
1339
|
+
**Since:** 19.0.0
|
|
1340
|
+
|
|
1341
|
+
--------------------
|
|
1342
|
+
|
|
1343
|
+
|
|
1140
1344
|
### setLanguage(...)
|
|
1141
1345
|
|
|
1142
1346
|
```typescript
|
|
@@ -1162,7 +1366,8 @@ Set Language
|
|
|
1162
1366
|
disableConsoleLogOverwrite() => Promise<{ consoleLogDisabled: boolean; }>
|
|
1163
1367
|
```
|
|
1164
1368
|
|
|
1165
|
-
Disable console log overwrite
|
|
1369
|
+
Disable console log overwrite: stops recording the console output of the app's WebView
|
|
1370
|
+
(console methods are restored) and drops the WebView console logs recorded so far.
|
|
1166
1371
|
|
|
1167
1372
|
**Returns:** <code>Promise<{ consoleLogDisabled: boolean; }></code>
|
|
1168
1373
|
|
|
@@ -1208,695 +1413,30 @@ Set the notification container offset
|
|
|
1208
1413
|
### Interfaces
|
|
1209
1414
|
|
|
1210
1415
|
|
|
1211
|
-
####
|
|
1212
|
-
|
|
1213
|
-
Provides functionality common to all JavaScript objects.
|
|
1214
|
-
|
|
1215
|
-
| Prop | Type | Description |
|
|
1216
|
-
| ----------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1217
|
-
| **`constructor`** | <code><a href="#function">Function</a></code> | The initial value of <a href="#object">Object</a>.prototype.constructor is the standard built-in <a href="#object">Object</a> constructor. |
|
|
1218
|
-
|
|
1219
|
-
| Method | Signature | Description |
|
|
1220
|
-
| ------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
1221
|
-
| **toString** | () => string | Returns a string representation of an object. |
|
|
1222
|
-
| **toLocaleString** | () => string | Returns a date converted to a string using the current locale. |
|
|
1223
|
-
| **valueOf** | () => <a href="#object">Object</a> | Returns the primitive value of the specified object. |
|
|
1224
|
-
| **hasOwnProperty** | (v: <a href="#propertykey">PropertyKey</a>) => boolean | Determines whether an object has a property with the specified name. |
|
|
1225
|
-
| **isPrototypeOf** | (v: <a href="#object">Object</a>) => boolean | Determines whether an object exists in another object's prototype chain. |
|
|
1226
|
-
| **propertyIsEnumerable** | (v: <a href="#propertykey">PropertyKey</a>) => boolean | Determines whether a specified property is enumerable. |
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
#### Function
|
|
1230
|
-
|
|
1231
|
-
Creates a new function.
|
|
1232
|
-
|
|
1233
|
-
| Prop | Type |
|
|
1234
|
-
| --------------- | --------------------------------------------- |
|
|
1235
|
-
| **`prototype`** | <code>any</code> |
|
|
1236
|
-
| **`length`** | <code>number</code> |
|
|
1237
|
-
| **`arguments`** | <code>any</code> |
|
|
1238
|
-
| **`caller`** | <code><a href="#function">Function</a></code> |
|
|
1239
|
-
|
|
1240
|
-
| Method | Signature | Description |
|
|
1241
|
-
| ------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1242
|
-
| **apply** | (this: <a href="#function">Function</a>, thisArg: any, argArray?: any) => any | Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. |
|
|
1243
|
-
| **call** | (this: <a href="#function">Function</a>, thisArg: any, ...argArray: any[]) => any | Calls a method of an object, substituting another object for the current object. |
|
|
1244
|
-
| **bind** | (this: <a href="#function">Function</a>, thisArg: any, ...argArray: any[]) => any | For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters. |
|
|
1245
|
-
| **toString** | () => string | Returns a string representation of a function. |
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
#### FunctionDeclaration
|
|
1249
|
-
|
|
1250
|
-
| Prop | Type | Description |
|
|
1251
|
-
| -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
1252
|
-
| **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a function declaration is a part of the `export default function` statement |
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
#### Identifier
|
|
1256
|
-
|
|
1257
|
-
| Prop | Type |
|
|
1258
|
-
| ---------- | --------------------------------------------------- |
|
|
1259
|
-
| **`type`** | <code>'<a href="#identifier">Identifier</a>'</code> |
|
|
1260
|
-
| **`name`** | <code>string</code> |
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
#### FunctionExpression
|
|
1264
|
-
|
|
1265
|
-
| Prop | Type |
|
|
1266
|
-
| ---------- | ------------------------------------------------------------------- |
|
|
1267
|
-
| **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
|
|
1268
|
-
| **`type`** | <code>'<a href="#functionexpression">FunctionExpression</a>'</code> |
|
|
1269
|
-
| **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
#### BlockStatement
|
|
1273
|
-
|
|
1274
|
-
| Prop | Type |
|
|
1275
|
-
| ------------------- | ----------------------------------------------------------- |
|
|
1276
|
-
| **`type`** | <code>'<a href="#blockstatement">BlockStatement</a>'</code> |
|
|
1277
|
-
| **`body`** | <code>Statement[]</code> |
|
|
1278
|
-
| **`innerComments`** | <code>Comment[]</code> |
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
#### ExpressionStatement
|
|
1282
|
-
|
|
1283
|
-
| Prop | Type |
|
|
1284
|
-
| ---------------- | --------------------------------------------------------------------- |
|
|
1285
|
-
| **`type`** | <code>'<a href="#expressionstatement">ExpressionStatement</a>'</code> |
|
|
1286
|
-
| **`expression`** | <code><a href="#expression">Expression</a></code> |
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
#### ExpressionMap
|
|
1290
|
-
|
|
1291
|
-
| Prop | Type |
|
|
1292
|
-
| ------------------------------ | ----------------------------------------------------------------------------- |
|
|
1293
|
-
| **`ArrayExpression`** | <code><a href="#arrayexpression">ArrayExpression</a></code> |
|
|
1294
|
-
| **`ArrowFunctionExpression`** | <code><a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code> |
|
|
1295
|
-
| **`AssignmentExpression`** | <code><a href="#assignmentexpression">AssignmentExpression</a></code> |
|
|
1296
|
-
| **`AwaitExpression`** | <code><a href="#awaitexpression">AwaitExpression</a></code> |
|
|
1297
|
-
| **`BinaryExpression`** | <code><a href="#binaryexpression">BinaryExpression</a></code> |
|
|
1298
|
-
| **`CallExpression`** | <code><a href="#callexpression">CallExpression</a></code> |
|
|
1299
|
-
| **`ChainExpression`** | <code><a href="#chainexpression">ChainExpression</a></code> |
|
|
1300
|
-
| **`ClassExpression`** | <code><a href="#classexpression">ClassExpression</a></code> |
|
|
1301
|
-
| **`ConditionalExpression`** | <code><a href="#conditionalexpression">ConditionalExpression</a></code> |
|
|
1302
|
-
| **`FunctionExpression`** | <code><a href="#functionexpression">FunctionExpression</a></code> |
|
|
1303
|
-
| **`Identifier`** | <code><a href="#identifier">Identifier</a></code> |
|
|
1304
|
-
| **`ImportExpression`** | <code><a href="#importexpression">ImportExpression</a></code> |
|
|
1305
|
-
| **`Literal`** | <code><a href="#literal">Literal</a></code> |
|
|
1306
|
-
| **`LogicalExpression`** | <code><a href="#logicalexpression">LogicalExpression</a></code> |
|
|
1307
|
-
| **`MemberExpression`** | <code><a href="#memberexpression">MemberExpression</a></code> |
|
|
1308
|
-
| **`MetaProperty`** | <code><a href="#metaproperty">MetaProperty</a></code> |
|
|
1309
|
-
| **`NewExpression`** | <code><a href="#newexpression">NewExpression</a></code> |
|
|
1310
|
-
| **`ObjectExpression`** | <code><a href="#objectexpression">ObjectExpression</a></code> |
|
|
1311
|
-
| **`SequenceExpression`** | <code><a href="#sequenceexpression">SequenceExpression</a></code> |
|
|
1312
|
-
| **`TaggedTemplateExpression`** | <code><a href="#taggedtemplateexpression">TaggedTemplateExpression</a></code> |
|
|
1313
|
-
| **`TemplateLiteral`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
|
|
1314
|
-
| **`ThisExpression`** | <code><a href="#thisexpression">ThisExpression</a></code> |
|
|
1315
|
-
| **`UnaryExpression`** | <code><a href="#unaryexpression">UnaryExpression</a></code> |
|
|
1316
|
-
| **`UpdateExpression`** | <code><a href="#updateexpression">UpdateExpression</a></code> |
|
|
1317
|
-
| **`YieldExpression`** | <code><a href="#yieldexpression">YieldExpression</a></code> |
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
#### ArrayExpression
|
|
1321
|
-
|
|
1322
|
-
| Prop | Type |
|
|
1323
|
-
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1324
|
-
| **`type`** | <code>'<a href="#arrayexpression">ArrayExpression</a>'</code> |
|
|
1325
|
-
| **`elements`** | <code><a href="#array">Array</a><<a href="#expression">Expression</a> \| <a href="#spreadelement">SpreadElement</a> \| null></code> |
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
#### Array
|
|
1329
|
-
|
|
1330
|
-
| Prop | Type | Description |
|
|
1331
|
-
| ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
1332
|
-
| **`length`** | <code>number</code> | Gets or sets the length of the array. This is a number one higher than the highest index in the array. |
|
|
1333
|
-
|
|
1334
|
-
| Method | Signature | Description |
|
|
1335
|
-
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1336
|
-
| **toString** | () => string | Returns a string representation of an array. |
|
|
1337
|
-
| **toLocaleString** | () => string | Returns a string representation of an array. The elements are converted to string using their toLocalString methods. |
|
|
1338
|
-
| **pop** | () => T \| undefined | Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. |
|
|
1339
|
-
| **push** | (...items: T[]) => number | Appends new elements to the end of an array, and returns the new length of the array. |
|
|
1340
|
-
| **concat** | (...items: <a href="#concatarray">ConcatArray</a><T>[]) => T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
|
|
1341
|
-
| **concat** | (...items: (T \| <a href="#concatarray">ConcatArray</a><T>)[]) => T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
|
|
1342
|
-
| **join** | (separator?: string \| undefined) => string | Adds all the elements of an array into a string, separated by the specified separator string. |
|
|
1343
|
-
| **reverse** | () => T[] | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array. |
|
|
1344
|
-
| **shift** | () => T \| undefined | Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. |
|
|
1345
|
-
| **slice** | (start?: number \| undefined, end?: number \| undefined) => T[] | Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array. |
|
|
1346
|
-
| **sort** | (compareFn?: ((a: T, b: T) => number) \| undefined) => this | Sorts an array in place. This method mutates the array and returns a reference to the same array. |
|
|
1347
|
-
| **splice** | (start: number, deleteCount?: number \| undefined) => T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
|
|
1348
|
-
| **splice** | (start: number, deleteCount: number, ...items: T[]) => T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
|
|
1349
|
-
| **unshift** | (...items: T[]) => number | Inserts new elements at the start of an array, and returns the new length of the array. |
|
|
1350
|
-
| **indexOf** | (searchElement: T, fromIndex?: number \| undefined) => number | Returns the index of the first occurrence of a value in an array, or -1 if it is not present. |
|
|
1351
|
-
| **lastIndexOf** | (searchElement: T, fromIndex?: number \| undefined) => number | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. |
|
|
1352
|
-
| **every** | <S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => this is S[] | Determines whether all the members of an array satisfy the specified test. |
|
|
1353
|
-
| **every** | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean | Determines whether all the members of an array satisfy the specified test. |
|
|
1354
|
-
| **some** | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean | Determines whether the specified callback function returns true for any element of an array. |
|
|
1355
|
-
| **forEach** | (callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any) => void | Performs the specified action for each element in an array. |
|
|
1356
|
-
| **map** | <U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[] | Calls a defined callback function on each element of an array, and returns an array that contains the results. |
|
|
1357
|
-
| **filter** | <S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => S[] | Returns the elements of an array that meet the condition specified in a callback function. |
|
|
1358
|
-
| **filter** | (predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => T[] | Returns the elements of an array that meet the condition specified in a callback function. |
|
|
1359
|
-
| **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
|
|
1360
|
-
| **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T | |
|
|
1361
|
-
| **reduce** | <U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
|
|
1362
|
-
| **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
|
|
1363
|
-
| **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T | |
|
|
1364
|
-
| **reduceRight** | <U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
#### ConcatArray
|
|
1368
|
-
|
|
1369
|
-
| Prop | Type |
|
|
1370
|
-
| ------------ | ------------------- |
|
|
1371
|
-
| **`length`** | <code>number</code> |
|
|
1372
|
-
|
|
1373
|
-
| Method | Signature |
|
|
1374
|
-
| --------- | ------------------------------------------------------------------ |
|
|
1375
|
-
| **join** | (separator?: string \| undefined) => string |
|
|
1376
|
-
| **slice** | (start?: number \| undefined, end?: number \| undefined) => T[] |
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
#### SpreadElement
|
|
1380
|
-
|
|
1381
|
-
| Prop | Type |
|
|
1382
|
-
| -------------- | --------------------------------------------------------- |
|
|
1383
|
-
| **`type`** | <code>'<a href="#spreadelement">SpreadElement</a>'</code> |
|
|
1384
|
-
| **`argument`** | <code><a href="#expression">Expression</a></code> |
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
#### ArrowFunctionExpression
|
|
1388
|
-
|
|
1389
|
-
| Prop | Type |
|
|
1390
|
-
| ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
1391
|
-
| **`type`** | <code>'<a href="#arrowfunctionexpression">ArrowFunctionExpression</a>'</code> |
|
|
1392
|
-
| **`expression`** | <code>boolean</code> |
|
|
1393
|
-
| **`body`** | <code><a href="#expression">Expression</a> \| <a href="#blockstatement">BlockStatement</a></code> |
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
#### AssignmentExpression
|
|
1397
|
-
|
|
1398
|
-
| Prop | Type |
|
|
1399
|
-
| -------------- | ----------------------------------------------------------------------- |
|
|
1400
|
-
| **`type`** | <code>'<a href="#assignmentexpression">AssignmentExpression</a>'</code> |
|
|
1401
|
-
| **`operator`** | <code><a href="#assignmentoperator">AssignmentOperator</a></code> |
|
|
1402
|
-
| **`left`** | <code><a href="#pattern">Pattern</a></code> |
|
|
1403
|
-
| **`right`** | <code><a href="#expression">Expression</a></code> |
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
#### ObjectPattern
|
|
1407
|
-
|
|
1408
|
-
| Prop | Type |
|
|
1409
|
-
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1410
|
-
| **`type`** | <code>'<a href="#objectpattern">ObjectPattern</a>'</code> |
|
|
1411
|
-
| **`properties`** | <code><a href="#array">Array</a><<a href="#assignmentproperty">AssignmentProperty</a> \| <a href="#restelement">RestElement</a>></code> |
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
#### AssignmentProperty
|
|
1415
|
-
|
|
1416
|
-
| Prop | Type |
|
|
1417
|
-
| ------------ | ------------------------------------------- |
|
|
1418
|
-
| **`value`** | <code><a href="#pattern">Pattern</a></code> |
|
|
1419
|
-
| **`kind`** | <code>'init'</code> |
|
|
1420
|
-
| **`method`** | <code>boolean</code> |
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
#### RestElement
|
|
1424
|
-
|
|
1425
|
-
| Prop | Type |
|
|
1426
|
-
| -------------- | ----------------------------------------------------- |
|
|
1427
|
-
| **`type`** | <code>'<a href="#restelement">RestElement</a>'</code> |
|
|
1428
|
-
| **`argument`** | <code><a href="#pattern">Pattern</a></code> |
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
#### ArrayPattern
|
|
1432
|
-
|
|
1433
|
-
| Prop | Type |
|
|
1434
|
-
| -------------- | ------------------------------------------------------------------------------------- |
|
|
1435
|
-
| **`type`** | <code>'<a href="#arraypattern">ArrayPattern</a>'</code> |
|
|
1436
|
-
| **`elements`** | <code><a href="#array">Array</a><<a href="#pattern">Pattern</a> \| null></code> |
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
#### AssignmentPattern
|
|
1440
|
-
|
|
1441
|
-
| Prop | Type |
|
|
1442
|
-
| ----------- | ----------------------------------------------------------------- |
|
|
1443
|
-
| **`type`** | <code>'<a href="#assignmentpattern">AssignmentPattern</a>'</code> |
|
|
1444
|
-
| **`left`** | <code><a href="#pattern">Pattern</a></code> |
|
|
1445
|
-
| **`right`** | <code><a href="#expression">Expression</a></code> |
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
#### MemberExpression
|
|
1449
|
-
|
|
1450
|
-
| Prop | Type |
|
|
1451
|
-
| -------------- | ------------------------------------------------------------------------------------------------------- |
|
|
1452
|
-
| **`type`** | <code>'<a href="#memberexpression">MemberExpression</a>'</code> |
|
|
1453
|
-
| **`object`** | <code><a href="#expression">Expression</a> \| <a href="#super">Super</a></code> |
|
|
1454
|
-
| **`property`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
|
|
1455
|
-
| **`computed`** | <code>boolean</code> |
|
|
1456
|
-
| **`optional`** | <code>boolean</code> |
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
#### Super
|
|
1460
|
-
|
|
1461
|
-
| Prop | Type |
|
|
1462
|
-
| ---------- | ----------------------------------------- |
|
|
1463
|
-
| **`type`** | <code>'<a href="#super">Super</a>'</code> |
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
#### PrivateIdentifier
|
|
1467
|
-
|
|
1468
|
-
| Prop | Type |
|
|
1469
|
-
| ---------- | ----------------------------------------------------------------- |
|
|
1470
|
-
| **`type`** | <code>'<a href="#privateidentifier">PrivateIdentifier</a>'</code> |
|
|
1471
|
-
| **`name`** | <code>string</code> |
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
#### AwaitExpression
|
|
1475
|
-
|
|
1476
|
-
| Prop | Type |
|
|
1477
|
-
| -------------- | ------------------------------------------------------------- |
|
|
1478
|
-
| **`type`** | <code>'<a href="#awaitexpression">AwaitExpression</a>'</code> |
|
|
1479
|
-
| **`argument`** | <code><a href="#expression">Expression</a></code> |
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
#### BinaryExpression
|
|
1483
|
-
|
|
1484
|
-
| Prop | Type |
|
|
1485
|
-
| -------------- | ------------------------------------------------------------------------------------------------------- |
|
|
1486
|
-
| **`type`** | <code>'<a href="#binaryexpression">BinaryExpression</a>'</code> |
|
|
1487
|
-
| **`operator`** | <code><a href="#binaryoperator">BinaryOperator</a></code> |
|
|
1488
|
-
| **`left`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
|
|
1489
|
-
| **`right`** | <code><a href="#expression">Expression</a></code> |
|
|
1490
|
-
|
|
1416
|
+
#### GleapNetworkLogEntry
|
|
1491
1417
|
|
|
1492
|
-
|
|
1418
|
+
A network log entry (fetch / XMLHttpRequest) as the plugin hands it to the native SDK.
|
|
1493
1419
|
|
|
1494
|
-
| Prop | Type
|
|
1495
|
-
| -------------- |
|
|
1496
|
-
| **`
|
|
1497
|
-
| **`
|
|
1420
|
+
| Prop | Type | Description |
|
|
1421
|
+
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
1422
|
+
| **`date`** | <code>string</code> | ISO-8601 UTC timestamp of the request start. |
|
|
1423
|
+
| **`type`** | <code>string</code> | HTTP method, uppercase. |
|
|
1424
|
+
| **`url`** | <code>string</code> | |
|
|
1425
|
+
| **`duration`** | <code>number</code> | Milliseconds from the request start to the response headers (or the failure). |
|
|
1426
|
+
| **`success`** | <code>boolean</code> | true when an HTTP response arrived (any status), false on a transport error, abort or timeout. |
|
|
1427
|
+
| **`request`** | <code>{ headers?: { [name: string]: string; }; payload?: string; }</code> | |
|
|
1428
|
+
| **`response`** | <code>{ status?: number; statusText?: string; headers?: { [name: string]: string; }; responseText?: string; errorText?: string; }</code> | |
|
|
1498
1429
|
|
|
1499
1430
|
|
|
1500
|
-
####
|
|
1431
|
+
#### GleapConsoleLogEntry
|
|
1501
1432
|
|
|
1502
|
-
|
|
1503
|
-
| ---------- | --------------------------------------------------------- |
|
|
1504
|
-
| **`type`** | <code>'<a href="#newexpression">NewExpression</a>'</code> |
|
|
1433
|
+
A console log entry as the plugin hands it to the native SDK.
|
|
1505
1434
|
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
|
1510
|
-
|
|
|
1511
|
-
| **`type`** | <code>'<a href="#chainexpression">ChainExpression</a>'</code> |
|
|
1512
|
-
| **`expression`** | <code><a href="#chainelement">ChainElement</a></code> |
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
#### ClassExpression
|
|
1516
|
-
|
|
1517
|
-
| Prop | Type |
|
|
1518
|
-
| ---------- | ------------------------------------------------------------- |
|
|
1519
|
-
| **`type`** | <code>'<a href="#classexpression">ClassExpression</a>'</code> |
|
|
1520
|
-
| **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
#### ConditionalExpression
|
|
1524
|
-
|
|
1525
|
-
| Prop | Type |
|
|
1526
|
-
| ---------------- | ------------------------------------------------------------------------- |
|
|
1527
|
-
| **`type`** | <code>'<a href="#conditionalexpression">ConditionalExpression</a>'</code> |
|
|
1528
|
-
| **`test`** | <code><a href="#expression">Expression</a></code> |
|
|
1529
|
-
| **`alternate`** | <code><a href="#expression">Expression</a></code> |
|
|
1530
|
-
| **`consequent`** | <code><a href="#expression">Expression</a></code> |
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
#### ImportExpression
|
|
1534
|
-
|
|
1535
|
-
| Prop | Type |
|
|
1536
|
-
| ------------- | --------------------------------------------------------------- |
|
|
1537
|
-
| **`type`** | <code>'<a href="#importexpression">ImportExpression</a>'</code> |
|
|
1538
|
-
| **`source`** | <code><a href="#expression">Expression</a></code> |
|
|
1539
|
-
| **`options`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
#### SimpleLiteral
|
|
1543
|
-
|
|
1544
|
-
| Prop | Type |
|
|
1545
|
-
| ----------- | ------------------------------------------------ |
|
|
1546
|
-
| **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
|
|
1547
|
-
| **`value`** | <code>string \| number \| boolean \| null</code> |
|
|
1548
|
-
| **`raw`** | <code>string</code> |
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
#### RegExpLiteral
|
|
1552
|
-
|
|
1553
|
-
| Prop | Type |
|
|
1554
|
-
| ----------- | ------------------------------------------------- |
|
|
1555
|
-
| **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
|
|
1556
|
-
| **`value`** | <code><a href="#regexp">RegExp</a> \| null</code> |
|
|
1557
|
-
| **`regex`** | <code>{ pattern: string; flags: string; }</code> |
|
|
1558
|
-
| **`raw`** | <code>string</code> |
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
#### RegExp
|
|
1562
|
-
|
|
1563
|
-
| Prop | Type | Description |
|
|
1564
|
-
| ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1565
|
-
| **`source`** | <code>string</code> | Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. |
|
|
1566
|
-
| **`global`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. |
|
|
1567
|
-
| **`ignoreCase`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. |
|
|
1568
|
-
| **`multiline`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. |
|
|
1569
|
-
| **`lastIndex`** | <code>number</code> | |
|
|
1570
|
-
|
|
1571
|
-
| Method | Signature | Description |
|
|
1572
|
-
| ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
1573
|
-
| **exec** | (string: string) => <a href="#regexpexecarray">RegExpExecArray</a> \| null | Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. |
|
|
1574
|
-
| **test** | (string: string) => boolean | Returns a <a href="#boolean">Boolean</a> value that indicates whether or not a pattern exists in a searched string. |
|
|
1575
|
-
| **compile** | () => this | |
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
#### RegExpExecArray
|
|
1579
|
-
|
|
1580
|
-
| Prop | Type |
|
|
1581
|
-
| ----------- | ------------------- |
|
|
1582
|
-
| **`index`** | <code>number</code> |
|
|
1583
|
-
| **`input`** | <code>string</code> |
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
#### BigIntLiteral
|
|
1587
|
-
|
|
1588
|
-
| Prop | Type |
|
|
1589
|
-
| ------------ | --------------------------------------------- |
|
|
1590
|
-
| **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
|
|
1591
|
-
| **`value`** | <code>bigint \| null</code> |
|
|
1592
|
-
| **`bigint`** | <code>string</code> |
|
|
1593
|
-
| **`raw`** | <code>string</code> |
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
#### LogicalExpression
|
|
1597
|
-
|
|
1598
|
-
| Prop | Type |
|
|
1599
|
-
| -------------- | ----------------------------------------------------------------- |
|
|
1600
|
-
| **`type`** | <code>'<a href="#logicalexpression">LogicalExpression</a>'</code> |
|
|
1601
|
-
| **`operator`** | <code><a href="#logicaloperator">LogicalOperator</a></code> |
|
|
1602
|
-
| **`left`** | <code><a href="#expression">Expression</a></code> |
|
|
1603
|
-
| **`right`** | <code><a href="#expression">Expression</a></code> |
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
#### MetaProperty
|
|
1607
|
-
|
|
1608
|
-
| Prop | Type |
|
|
1609
|
-
| -------------- | ------------------------------------------------------- |
|
|
1610
|
-
| **`type`** | <code>'<a href="#metaproperty">MetaProperty</a>'</code> |
|
|
1611
|
-
| **`meta`** | <code><a href="#identifier">Identifier</a></code> |
|
|
1612
|
-
| **`property`** | <code><a href="#identifier">Identifier</a></code> |
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
#### ObjectExpression
|
|
1616
|
-
|
|
1617
|
-
| Prop | Type |
|
|
1618
|
-
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
1619
|
-
| **`type`** | <code>'<a href="#objectexpression">ObjectExpression</a>'</code> |
|
|
1620
|
-
| **`properties`** | <code><a href="#array">Array</a><<a href="#property">Property</a> \| <a href="#spreadelement">SpreadElement</a>></code> |
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
#### Property
|
|
1624
|
-
|
|
1625
|
-
| Prop | Type |
|
|
1626
|
-
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1627
|
-
| **`type`** | <code>'<a href="#property">Property</a>'</code> |
|
|
1628
|
-
| **`key`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
|
|
1629
|
-
| **`value`** | <code><a href="#classexpression">ClassExpression</a> \| <a href="#arrayexpression">ArrayExpression</a> \| <a href="#arrowfunctionexpression">ArrowFunctionExpression</a> \| <a href="#assignmentexpression">AssignmentExpression</a> \| <a href="#awaitexpression">AwaitExpression</a> \| <a href="#binaryexpression">BinaryExpression</a> \| <a href="#simplecallexpression">SimpleCallExpression</a> \| <a href="#newexpression">NewExpression</a> \| <a href="#chainexpression">ChainExpression</a> \| <a href="#conditionalexpression">ConditionalExpression</a> \| <a href="#functionexpression">FunctionExpression</a> \| <a href="#identifier">Identifier</a> \| <a href="#importexpression">ImportExpression</a> \| <a href="#simpleliteral">SimpleLiteral</a> \| <a href="#regexpliteral">RegExpLiteral</a> \| <a href="#bigintliteral">BigIntLiteral</a> \| <a href="#logicalexpression">LogicalExpression</a> \| <a href="#memberexpression">MemberExpression</a> \| <a href="#metaproperty">MetaProperty</a> \| <a href="#objectexpression">ObjectExpression</a> \| <a href="#sequenceexpression">SequenceExpression</a> \| <a href="#taggedtemplateexpression">TaggedTemplateExpression</a> \| <a href="#templateliteral">TemplateLiteral</a> \| <a href="#thisexpression">ThisExpression</a> \| <a href="#unaryexpression">UnaryExpression</a> \| <a href="#updateexpression">UpdateExpression</a> \| <a href="#yieldexpression">YieldExpression</a> \| <a href="#objectpattern">ObjectPattern</a> \| <a href="#arraypattern">ArrayPattern</a> \| <a href="#restelement">RestElement</a> \| <a href="#assignmentpattern">AssignmentPattern</a></code> |
|
|
1630
|
-
| **`kind`** | <code>'init' \| 'get' \| 'set'</code> |
|
|
1631
|
-
| **`method`** | <code>boolean</code> |
|
|
1632
|
-
| **`shorthand`** | <code>boolean</code> |
|
|
1633
|
-
| **`computed`** | <code>boolean</code> |
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
#### SequenceExpression
|
|
1637
|
-
|
|
1638
|
-
| Prop | Type |
|
|
1639
|
-
| ----------------- | ------------------------------------------------------------------- |
|
|
1640
|
-
| **`type`** | <code>'<a href="#sequenceexpression">SequenceExpression</a>'</code> |
|
|
1641
|
-
| **`expressions`** | <code>Expression[]</code> |
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
#### TaggedTemplateExpression
|
|
1645
|
-
|
|
1646
|
-
| Prop | Type |
|
|
1647
|
-
| ----------- | ------------------------------------------------------------------------------- |
|
|
1648
|
-
| **`type`** | <code>'<a href="#taggedtemplateexpression">TaggedTemplateExpression</a>'</code> |
|
|
1649
|
-
| **`tag`** | <code><a href="#expression">Expression</a></code> |
|
|
1650
|
-
| **`quasi`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
#### TemplateLiteral
|
|
1654
|
-
|
|
1655
|
-
| Prop | Type |
|
|
1656
|
-
| ----------------- | ------------------------------------------------------------- |
|
|
1657
|
-
| **`type`** | <code>'<a href="#templateliteral">TemplateLiteral</a>'</code> |
|
|
1658
|
-
| **`quasis`** | <code>TemplateElement[]</code> |
|
|
1659
|
-
| **`expressions`** | <code>Expression[]</code> |
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
#### TemplateElement
|
|
1663
|
-
|
|
1664
|
-
| Prop | Type |
|
|
1665
|
-
| ----------- | ------------------------------------------------------------- |
|
|
1666
|
-
| **`type`** | <code>'<a href="#templateelement">TemplateElement</a>'</code> |
|
|
1667
|
-
| **`tail`** | <code>boolean</code> |
|
|
1668
|
-
| **`value`** | <code>{ cooked?: string \| null; raw: string; }</code> |
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
#### ThisExpression
|
|
1672
|
-
|
|
1673
|
-
| Prop | Type |
|
|
1674
|
-
| ---------- | ----------------------------------------------------------- |
|
|
1675
|
-
| **`type`** | <code>'<a href="#thisexpression">ThisExpression</a>'</code> |
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
#### UnaryExpression
|
|
1679
|
-
|
|
1680
|
-
| Prop | Type |
|
|
1681
|
-
| -------------- | ------------------------------------------------------------- |
|
|
1682
|
-
| **`type`** | <code>'<a href="#unaryexpression">UnaryExpression</a>'</code> |
|
|
1683
|
-
| **`operator`** | <code><a href="#unaryoperator">UnaryOperator</a></code> |
|
|
1684
|
-
| **`prefix`** | <code>true</code> |
|
|
1685
|
-
| **`argument`** | <code><a href="#expression">Expression</a></code> |
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
#### UpdateExpression
|
|
1689
|
-
|
|
1690
|
-
| Prop | Type |
|
|
1691
|
-
| -------------- | --------------------------------------------------------------- |
|
|
1692
|
-
| **`type`** | <code>'<a href="#updateexpression">UpdateExpression</a>'</code> |
|
|
1693
|
-
| **`operator`** | <code><a href="#updateoperator">UpdateOperator</a></code> |
|
|
1694
|
-
| **`argument`** | <code><a href="#expression">Expression</a></code> |
|
|
1695
|
-
| **`prefix`** | <code>boolean</code> |
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
#### YieldExpression
|
|
1699
|
-
|
|
1700
|
-
| Prop | Type |
|
|
1701
|
-
| -------------- | ------------------------------------------------------------- |
|
|
1702
|
-
| **`type`** | <code>'<a href="#yieldexpression">YieldExpression</a>'</code> |
|
|
1703
|
-
| **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1704
|
-
| **`delegate`** | <code>boolean</code> |
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
#### StaticBlock
|
|
1708
|
-
|
|
1709
|
-
| Prop | Type |
|
|
1710
|
-
| ---------- | ----------------------------------------------------- |
|
|
1711
|
-
| **`type`** | <code>'<a href="#staticblock">StaticBlock</a>'</code> |
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
#### EmptyStatement
|
|
1715
|
-
|
|
1716
|
-
| Prop | Type |
|
|
1717
|
-
| ---------- | ----------------------------------------------------------- |
|
|
1718
|
-
| **`type`** | <code>'<a href="#emptystatement">EmptyStatement</a>'</code> |
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
#### DebuggerStatement
|
|
1722
|
-
|
|
1723
|
-
| Prop | Type |
|
|
1724
|
-
| ---------- | ----------------------------------------------------------------- |
|
|
1725
|
-
| **`type`** | <code>'<a href="#debuggerstatement">DebuggerStatement</a>'</code> |
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
#### WithStatement
|
|
1729
|
-
|
|
1730
|
-
| Prop | Type |
|
|
1731
|
-
| ------------ | --------------------------------------------------------- |
|
|
1732
|
-
| **`type`** | <code>'<a href="#withstatement">WithStatement</a>'</code> |
|
|
1733
|
-
| **`object`** | <code><a href="#expression">Expression</a></code> |
|
|
1734
|
-
| **`body`** | <code><a href="#statement">Statement</a></code> |
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
#### ReturnStatement
|
|
1738
|
-
|
|
1739
|
-
| Prop | Type |
|
|
1740
|
-
| -------------- | ------------------------------------------------------------- |
|
|
1741
|
-
| **`type`** | <code>'<a href="#returnstatement">ReturnStatement</a>'</code> |
|
|
1742
|
-
| **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
#### LabeledStatement
|
|
1746
|
-
|
|
1747
|
-
| Prop | Type |
|
|
1748
|
-
| ----------- | --------------------------------------------------------------- |
|
|
1749
|
-
| **`type`** | <code>'<a href="#labeledstatement">LabeledStatement</a>'</code> |
|
|
1750
|
-
| **`label`** | <code><a href="#identifier">Identifier</a></code> |
|
|
1751
|
-
| **`body`** | <code><a href="#statement">Statement</a></code> |
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
#### BreakStatement
|
|
1755
|
-
|
|
1756
|
-
| Prop | Type |
|
|
1757
|
-
| ----------- | ----------------------------------------------------------- |
|
|
1758
|
-
| **`type`** | <code>'<a href="#breakstatement">BreakStatement</a>'</code> |
|
|
1759
|
-
| **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
#### ContinueStatement
|
|
1763
|
-
|
|
1764
|
-
| Prop | Type |
|
|
1765
|
-
| ----------- | ----------------------------------------------------------------- |
|
|
1766
|
-
| **`type`** | <code>'<a href="#continuestatement">ContinueStatement</a>'</code> |
|
|
1767
|
-
| **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
#### IfStatement
|
|
1771
|
-
|
|
1772
|
-
| Prop | Type |
|
|
1773
|
-
| ---------------- | ------------------------------------------------------- |
|
|
1774
|
-
| **`type`** | <code>'<a href="#ifstatement">IfStatement</a>'</code> |
|
|
1775
|
-
| **`test`** | <code><a href="#expression">Expression</a></code> |
|
|
1776
|
-
| **`consequent`** | <code><a href="#statement">Statement</a></code> |
|
|
1777
|
-
| **`alternate`** | <code><a href="#statement">Statement</a> \| null</code> |
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
#### SwitchStatement
|
|
1781
|
-
|
|
1782
|
-
| Prop | Type |
|
|
1783
|
-
| ------------------ | ------------------------------------------------------------- |
|
|
1784
|
-
| **`type`** | <code>'<a href="#switchstatement">SwitchStatement</a>'</code> |
|
|
1785
|
-
| **`discriminant`** | <code><a href="#expression">Expression</a></code> |
|
|
1786
|
-
| **`cases`** | <code>SwitchCase[]</code> |
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
#### SwitchCase
|
|
1790
|
-
|
|
1791
|
-
| Prop | Type |
|
|
1792
|
-
| ---------------- | --------------------------------------------------------- |
|
|
1793
|
-
| **`type`** | <code>'<a href="#switchcase">SwitchCase</a>'</code> |
|
|
1794
|
-
| **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1795
|
-
| **`consequent`** | <code>Statement[]</code> |
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
#### ThrowStatement
|
|
1799
|
-
|
|
1800
|
-
| Prop | Type |
|
|
1801
|
-
| -------------- | ----------------------------------------------------------- |
|
|
1802
|
-
| **`type`** | <code>'<a href="#throwstatement">ThrowStatement</a>'</code> |
|
|
1803
|
-
| **`argument`** | <code><a href="#expression">Expression</a></code> |
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
#### TryStatement
|
|
1807
|
-
|
|
1808
|
-
| Prop | Type |
|
|
1809
|
-
| --------------- | ----------------------------------------------------------------- |
|
|
1810
|
-
| **`type`** | <code>'<a href="#trystatement">TryStatement</a>'</code> |
|
|
1811
|
-
| **`block`** | <code><a href="#blockstatement">BlockStatement</a></code> |
|
|
1812
|
-
| **`handler`** | <code><a href="#catchclause">CatchClause</a> \| null</code> |
|
|
1813
|
-
| **`finalizer`** | <code><a href="#blockstatement">BlockStatement</a> \| null</code> |
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
#### CatchClause
|
|
1817
|
-
|
|
1818
|
-
| Prop | Type |
|
|
1819
|
-
| ----------- | --------------------------------------------------------- |
|
|
1820
|
-
| **`type`** | <code>'<a href="#catchclause">CatchClause</a>'</code> |
|
|
1821
|
-
| **`param`** | <code><a href="#pattern">Pattern</a> \| null</code> |
|
|
1822
|
-
| **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
#### WhileStatement
|
|
1826
|
-
|
|
1827
|
-
| Prop | Type |
|
|
1828
|
-
| ---------- | ----------------------------------------------------------- |
|
|
1829
|
-
| **`type`** | <code>'<a href="#whilestatement">WhileStatement</a>'</code> |
|
|
1830
|
-
| **`test`** | <code><a href="#expression">Expression</a></code> |
|
|
1831
|
-
| **`body`** | <code><a href="#statement">Statement</a></code> |
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
#### DoWhileStatement
|
|
1835
|
-
|
|
1836
|
-
| Prop | Type |
|
|
1837
|
-
| ---------- | --------------------------------------------------------------- |
|
|
1838
|
-
| **`type`** | <code>'<a href="#dowhilestatement">DoWhileStatement</a>'</code> |
|
|
1839
|
-
| **`body`** | <code><a href="#statement">Statement</a></code> |
|
|
1840
|
-
| **`test`** | <code><a href="#expression">Expression</a></code> |
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
#### ForStatement
|
|
1844
|
-
|
|
1845
|
-
| Prop | Type |
|
|
1846
|
-
| ------------ | ------------------------------------------------------------------------------------------------------------------- |
|
|
1847
|
-
| **`type`** | <code>'<a href="#forstatement">ForStatement</a>'</code> |
|
|
1848
|
-
| **`init`** | <code><a href="#expression">Expression</a> \| <a href="#variabledeclaration">VariableDeclaration</a> \| null</code> |
|
|
1849
|
-
| **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1850
|
-
| **`update`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1851
|
-
| **`body`** | <code><a href="#statement">Statement</a></code> |
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
#### VariableDeclaration
|
|
1855
|
-
|
|
1856
|
-
| Prop | Type |
|
|
1857
|
-
| ------------------ | --------------------------------------------------------------------- |
|
|
1858
|
-
| **`type`** | <code>'<a href="#variabledeclaration">VariableDeclaration</a>'</code> |
|
|
1859
|
-
| **`declarations`** | <code>VariableDeclarator[]</code> |
|
|
1860
|
-
| **`kind`** | <code>'var' \| 'let' \| 'const' \| 'using' \| 'await using'</code> |
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
#### VariableDeclarator
|
|
1864
|
-
|
|
1865
|
-
| Prop | Type |
|
|
1866
|
-
| ---------- | ------------------------------------------------------------------- |
|
|
1867
|
-
| **`type`** | <code>'<a href="#variabledeclarator">VariableDeclarator</a>'</code> |
|
|
1868
|
-
| **`id`** | <code><a href="#pattern">Pattern</a></code> |
|
|
1869
|
-
| **`init`** | <code><a href="#expression">Expression</a> \| null</code> |
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
#### ForInStatement
|
|
1873
|
-
|
|
1874
|
-
| Prop | Type |
|
|
1875
|
-
| ---------- | ----------------------------------------------------------- |
|
|
1876
|
-
| **`type`** | <code>'<a href="#forinstatement">ForInStatement</a>'</code> |
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
#### ForOfStatement
|
|
1880
|
-
|
|
1881
|
-
| Prop | Type |
|
|
1882
|
-
| ----------- | ----------------------------------------------------------- |
|
|
1883
|
-
| **`type`** | <code>'<a href="#forofstatement">ForOfStatement</a>'</code> |
|
|
1884
|
-
| **`await`** | <code>boolean</code> |
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
#### ClassDeclaration
|
|
1888
|
-
|
|
1889
|
-
| Prop | Type | Description |
|
|
1890
|
-
| -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
1891
|
-
| **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a class declaration is a part of the `export default class` statement |
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
#### Comment
|
|
1895
|
-
|
|
1896
|
-
| Prop | Type |
|
|
1897
|
-
| ----------- | ------------------------------ |
|
|
1898
|
-
| **`type`** | <code>'Line' \| 'Block'</code> |
|
|
1899
|
-
| **`value`** | <code>string</code> |
|
|
1435
|
+
| Prop | Type | Description |
|
|
1436
|
+
| -------------- | ------------------------------------------- | ----------------------------------------- |
|
|
1437
|
+
| **`date`** | <code>string</code> | ISO-8601 UTC timestamp with milliseconds. |
|
|
1438
|
+
| **`priority`** | <code>'ERROR' \| 'WARNING' \| 'INFO'</code> | |
|
|
1439
|
+
| **`log`** | <code>string</code> | |
|
|
1900
1440
|
|
|
1901
1441
|
|
|
1902
1442
|
#### PluginListenerHandle
|
|
@@ -1906,6 +1446,17 @@ Creates a new function.
|
|
|
1906
1446
|
| **`remove`** | <code>() => Promise<void></code> |
|
|
1907
1447
|
|
|
1908
1448
|
|
|
1449
|
+
#### GleapLogConfig
|
|
1450
|
+
|
|
1451
|
+
The network log settings of your Gleap project, sent by the native SDK once its config is loaded.
|
|
1452
|
+
|
|
1453
|
+
| Prop | Type |
|
|
1454
|
+
| ----------------------------- | --------------------- |
|
|
1455
|
+
| **`enableNetworkLogs`** | <code>boolean</code> |
|
|
1456
|
+
| **`networkLogPropsToIgnore`** | <code>string[]</code> |
|
|
1457
|
+
| **`networkLogBlacklist`** | <code>string[]</code> |
|
|
1458
|
+
|
|
1459
|
+
|
|
1909
1460
|
#### GleapEventMessage
|
|
1910
1461
|
|
|
1911
1462
|
| Prop | Type |
|
|
@@ -1924,74 +1475,11 @@ Creates a new function.
|
|
|
1924
1475
|
### Type Aliases
|
|
1925
1476
|
|
|
1926
1477
|
|
|
1927
|
-
####
|
|
1928
|
-
|
|
1929
|
-
<code>string | number | symbol</code>
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
#### Function
|
|
1933
|
-
|
|
1934
|
-
<code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#functionexpression">FunctionExpression</a> | <a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code>
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
#### Statement
|
|
1938
|
-
|
|
1939
|
-
<code><a href="#expressionstatement">ExpressionStatement</a> | <a href="#blockstatement">BlockStatement</a> | <a href="#staticblock">StaticBlock</a> | <a href="#emptystatement">EmptyStatement</a> | <a href="#debuggerstatement">DebuggerStatement</a> | <a href="#withstatement">WithStatement</a> | <a href="#returnstatement">ReturnStatement</a> | <a href="#labeledstatement">LabeledStatement</a> | <a href="#breakstatement">BreakStatement</a> | <a href="#continuestatement">ContinueStatement</a> | <a href="#ifstatement">IfStatement</a> | <a href="#switchstatement">SwitchStatement</a> | <a href="#throwstatement">ThrowStatement</a> | <a href="#trystatement">TryStatement</a> | <a href="#whilestatement">WhileStatement</a> | <a href="#dowhilestatement">DoWhileStatement</a> | <a href="#forstatement">ForStatement</a> | <a href="#forinstatement">ForInStatement</a> | <a href="#forofstatement">ForOfStatement</a> | <a href="#declaration">Declaration</a></code>
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
#### Expression
|
|
1943
|
-
|
|
1944
|
-
<code>ExpressionMap[keyof ExpressionMap]</code>
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
#### AssignmentOperator
|
|
1948
|
-
|
|
1949
|
-
<code>"=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??="</code>
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
#### Pattern
|
|
1953
|
-
|
|
1954
|
-
<code><a href="#identifier">Identifier</a> | <a href="#objectpattern">ObjectPattern</a> | <a href="#arraypattern">ArrayPattern</a> | <a href="#restelement">RestElement</a> | <a href="#assignmentpattern">AssignmentPattern</a> | <a href="#memberexpression">MemberExpression</a></code>
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
#### BinaryOperator
|
|
1958
|
-
|
|
1959
|
-
<code>"==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof"</code>
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
#### CallExpression
|
|
1963
|
-
|
|
1964
|
-
<code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#newexpression">NewExpression</a></code>
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
#### ChainElement
|
|
1968
|
-
|
|
1969
|
-
<code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#memberexpression">MemberExpression</a></code>
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
#### Literal
|
|
1973
|
-
|
|
1974
|
-
<code><a href="#simpleliteral">SimpleLiteral</a> | <a href="#regexpliteral">RegExpLiteral</a> | <a href="#bigintliteral">BigIntLiteral</a></code>
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
#### LogicalOperator
|
|
1978
|
-
|
|
1979
|
-
<code>"||" | "&&" | "??"</code>
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
#### UnaryOperator
|
|
1983
|
-
|
|
1984
|
-
<code>"-" | "+" | "!" | "~" | "typeof" | "void" | "delete"</code>
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
#### UpdateOperator
|
|
1988
|
-
|
|
1989
|
-
<code>"++" | "--"</code>
|
|
1990
|
-
|
|
1478
|
+
#### Record
|
|
1991
1479
|
|
|
1992
|
-
|
|
1480
|
+
Construct a type with a set of properties K of type T
|
|
1993
1481
|
|
|
1994
|
-
<code
|
|
1482
|
+
<code>{
|
|
1995
1483
|
[P in K]: T;
|
|
1996
1484
|
}</code>
|
|
1997
1485
|
|
|
1998
1486
|
|
|
1999
1487
|
#### GleapEventCallback
|