capacitor-gleap-plugin 18.0.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.
Files changed (43) hide show
  1. package/CapacitorGleapPlugin.podspec +7 -2
  2. package/Package.swift +31 -0
  3. package/README.md +307 -761
  4. package/android/build.gradle +1 -1
  5. package/android/src/main/java/io/gleapplugins/capacitor/GleapPlugin.java +228 -37
  6. package/dist/docs.json +323 -3907
  7. package/dist/esm/definitions.d.ts +168 -3
  8. package/dist/esm/definitions.js.map +1 -1
  9. package/dist/esm/index.js +9 -1
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/logs/body.d.ts +58 -0
  12. package/dist/esm/logs/body.js +303 -0
  13. package/dist/esm/logs/body.js.map +1 -0
  14. package/dist/esm/logs/consoleCapture.d.ts +29 -0
  15. package/dist/esm/logs/consoleCapture.js +189 -0
  16. package/dist/esm/logs/consoleCapture.js.map +1 -0
  17. package/dist/esm/logs/format.d.ts +16 -0
  18. package/dist/esm/logs/format.js +394 -0
  19. package/dist/esm/logs/format.js.map +1 -0
  20. package/dist/esm/logs/networkCapture.d.ts +65 -0
  21. package/dist/esm/logs/networkCapture.js +654 -0
  22. package/dist/esm/logs/networkCapture.js.map +1 -0
  23. package/dist/esm/logs/redaction.d.ts +54 -0
  24. package/dist/esm/logs/redaction.js +388 -0
  25. package/dist/esm/logs/redaction.js.map +1 -0
  26. package/dist/esm/logs/webViewLogs.d.ts +70 -0
  27. package/dist/esm/logs/webViewLogs.js +297 -0
  28. package/dist/esm/logs/webViewLogs.js.map +1 -0
  29. package/dist/esm/logs/zone.d.ts +5 -0
  30. package/dist/esm/logs/zone.js +15 -0
  31. package/dist/esm/logs/zone.js.map +1 -0
  32. package/dist/esm/web.d.ts +47 -2
  33. package/dist/esm/web.js +43 -0
  34. package/dist/esm/web.js.map +1 -1
  35. package/dist/plugin.cjs.js +2263 -1
  36. package/dist/plugin.cjs.js.map +1 -1
  37. package/dist/plugin.js +2263 -1
  38. package/dist/plugin.js.map +1 -1
  39. package/ios/{Plugin → Sources/GleapPlugin}/GleapPlugin.swift +222 -12
  40. package/package.json +27 -6
  41. package/ios/Plugin/GleapPlugin.h +0 -10
  42. package/ios/Plugin/GleapPlugin.m +0 -66
  43. package/ios/Plugin/Info.plist +0 -24
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
- # Capacitor Gleap Plugin
1
+ # Gleap Capacitor and Ionic SDK
2
2
 
3
- Gleap SDK for Capacitor is the easiest way to integrate Gleap into your Ionic apps! Achieve better app quality with comprehensive in-app bug reporting & customer feedback for your web-apps and websites. Many thanks to Stephan Nagel (congrapp) for his work on the Gleap capacitor plugin.
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
+
7
+ Thanks to Stephan Nagel (congrapp) for his work on the Gleap Capacitor plugin.
8
+
9
+ [SDK documentation](https://docs.gleap.ai/documentation/ioniccapacitor/README) · [Website](https://www.gleap.ai) · [Plans and pricing](https://www.gleap.ai/pricing)
6
10
 
7
11
  ## Install
8
12
 
@@ -11,6 +15,24 @@ npm install capacitor-gleap-plugin
11
15
  npx cap sync
12
16
  ```
13
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
+
14
36
  ## Capacitor 6
15
37
 
16
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.
@@ -38,6 +60,28 @@ await Gleap.initialize({ API_KEY: "YOUR_API_KEY" });
38
60
 
39
61
  For self-hosted or custom setups you can override single hosts with `setApiUrl({ url })`, `setWSApiUrl({ url })`, `setRealtimeHost({ host })`, `setFrameUrl({ url })`, `setBannerUrl({ url })` and `setModalUrl({ url })`. All of them must be called before `initialize`; a manual setter called after `setRegion` overrides that single host.
40
62
 
63
+ ## Env data
64
+
65
+ With every ticket the SDK sends env data (device, OS, screen size, locale, URL, …), shown under the **Env data** tab in Gleap. Leave out individual keys or stop collecting env data entirely:
66
+
67
+ ```typescript
68
+ await Gleap.setEnvDataPropsToIgnore({ propsToIgnore: ["deviceName", "batteryLevel"] });
69
+ await Gleap.setDisableEnvData({ disableEnvData: true });
70
+ ```
71
+
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.
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
+
41
85
  ## API
42
86
 
43
87
  <docgen-index>
@@ -61,9 +105,13 @@ For self-hosted or custom setups you can override single hosts with `setApiUrl({
61
105
  * [`setTags(...)`](#settags)
62
106
  * [`setNetworkLogsBlacklist(...)`](#setnetworklogsblacklist)
63
107
  * [`setNetworkLogPropsToIgnore(...)`](#setnetworklogpropstoignore)
108
+ * [`attachNetworkLogs(...)`](#attachnetworklogs)
109
+ * [`attachConsoleLogs(...)`](#attachconsolelogs)
110
+ * [`setEnvDataPropsToIgnore(...)`](#setenvdatapropstoignore)
64
111
  * [`registerAgentTool(...)`](#registeragenttool)
65
112
  * [`sendAgentToolResult(...)`](#sendagenttoolresult)
66
113
  * [`addListener('agentToolExecution', ...)`](#addlisteneragenttoolexecution-)
114
+ * [`addListener('logConfigLoaded', ...)`](#addlistenerlogconfigloaded-)
67
115
  * [`setTicketAttribute(...)`](#setticketattribute)
68
116
  * [`unsetTicketAttribute(...)`](#unsetticketattribute)
69
117
  * [`clearTicketAttributes()`](#clearticketattributes)
@@ -78,6 +126,9 @@ For self-hosted or custom setups you can override single hosts with `setApiUrl({
78
126
  * [`addAttachment(...)`](#addattachment)
79
127
  * [`removeAllAttachments()`](#removeallattachments)
80
128
  * [`open()`](#open)
129
+ * [`openChecklists(...)`](#openchecklists)
130
+ * [`openChecklist(...)`](#openchecklist)
131
+ * [`startChecklist(...)`](#startchecklist)
81
132
  * [`openNews(...)`](#opennews)
82
133
  * [`openNewsArticle(...)`](#opennewsarticle)
83
134
  * [`openHelpCenter(...)`](#openhelpcenter)
@@ -92,9 +143,12 @@ For self-hosted or custom setups you can override single hosts with `setApiUrl({
92
143
  * [`startClassicForm(...)`](#startclassicform)
93
144
  * [`startConversation(...)`](#startconversation)
94
145
  * [`openConversation(...)`](#openconversation)
146
+ * [`openConversations(...)`](#openconversations)
95
147
  * [`startBot(...)`](#startbot)
96
148
  * [`showFeedbackButton(...)`](#showfeedbackbutton)
97
149
  * [`setDisableInAppNotifications(...)`](#setdisableinappnotifications)
150
+ * [`setDisableEnvData(...)`](#setdisableenvdata)
151
+ * [`setColorScheme(...)`](#setcolorscheme)
98
152
  * [`setLanguage(...)`](#setlanguage)
99
153
  * [`disableConsoleLogOverwrite()`](#disableconsolelogoverwrite)
100
154
  * [`enableDebugConsoleLog()`](#enabledebugconsolelog)
@@ -264,14 +318,14 @@ Set a custom modal url. Must be called before initialize.
264
318
  ### identify(...)
265
319
 
266
320
  ```typescript
267
- 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?: Object; }) => Promise<{ identify: boolean; }>
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; }>
268
322
  ```
269
323
 
270
324
  Set user identity
271
325
 
272
- | Param | Type |
273
- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
274
- | **`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="#object">Object</a>; }</code> |
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>&lt;string, any&gt;; }</code> |
275
329
 
276
330
  **Returns:** <code>Promise&lt;{ identify: boolean; }&gt;</code>
277
331
 
@@ -283,14 +337,14 @@ Set user identity
283
337
  ### updateContact(...)
284
338
 
285
339
  ```typescript
286
- updateContact(options: { name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: Object; }) => Promise<{ identify: boolean; }>
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; }>
287
341
  ```
288
342
 
289
343
  Update user properties
290
344
 
291
- | Param | Type |
292
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
293
- | **`options`** | <code>{ name?: string; email?: string; phone?: string; companyId?: string; companyName?: string; avatar?: string; sla?: number; plan?: string; value?: number; customData?: <a href="#object">Object</a>; }</code> |
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>&lt;string, any&gt;; }</code> |
294
348
 
295
349
  **Returns:** <code>Promise&lt;{ identify: boolean; }&gt;</code>
296
350
 
@@ -458,6 +512,70 @@ Set network logs props to ignore
458
512
  --------------------
459
513
 
460
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&lt;{ networkLogsAttached: boolean; }&gt;</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&lt;{ consoleLogsAttached: boolean; }&gt;</code>
552
+
553
+ **Since:** 19.0.0
554
+
555
+ --------------------
556
+
557
+
558
+ ### setEnvDataPropsToIgnore(...)
559
+
560
+ ```typescript
561
+ setEnvDataPropsToIgnore(options: { propsToIgnore: string[]; }) => Promise<{ envDataPropsToIgnoreSet: boolean; }>
562
+ ```
563
+
564
+ Set env data props to ignore. The given env data keys (exact and case-sensitive, e.g. "deviceName" or "currentUrl")
565
+ are removed before a ticket or conversation is sent. Each call replaces the previous list, an empty list resets it.
566
+ Can be called before or after initialize.
567
+
568
+ | Param | Type |
569
+ | ------------- | ----------------------------------------- |
570
+ | **`options`** | <code>{ propsToIgnore: string[]; }</code> |
571
+
572
+ **Returns:** <code>Promise&lt;{ envDataPropsToIgnoreSet: boolean; }&gt;</code>
573
+
574
+ **Since:** 18.1.0
575
+
576
+ --------------------
577
+
578
+
461
579
  ### registerAgentTool(...)
462
580
 
463
581
  ```typescript
@@ -516,6 +634,27 @@ Called when a registered agent tool should execute.
516
634
  --------------------
517
635
 
518
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>) =&gt; void</code> |
650
+
651
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
652
+
653
+ **Since:** 19.0.0
654
+
655
+ --------------------
656
+
657
+
519
658
  ### setTicketAttribute(...)
520
659
 
521
660
  ```typescript
@@ -764,6 +903,63 @@ Open widget
764
903
  --------------------
765
904
 
766
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&lt;{ opened: boolean; }&gt;</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&lt;{ opened: boolean; }&gt;</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&lt;{ opened: boolean; }&gt;</code>
957
+
958
+ **Since:** 19.0.0
959
+
960
+ --------------------
961
+
962
+
767
963
  ### openNews(...)
768
964
 
769
965
  ```typescript
@@ -1022,6 +1218,25 @@ Opens the conversations tab.
1022
1218
  --------------------
1023
1219
 
1024
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&lt;{ conversationsOpened: boolean; }&gt;</code>
1234
+
1235
+ **Since:** 19.0.0
1236
+
1237
+ --------------------
1238
+
1239
+
1025
1240
  ### startBot(...)
1026
1241
 
1027
1242
  ```typescript
@@ -1079,6 +1294,53 @@ Disable in app notifications.
1079
1294
  --------------------
1080
1295
 
1081
1296
 
1297
+ ### setDisableEnvData(...)
1298
+
1299
+ ```typescript
1300
+ setDisableEnvData(options: { disableEnvData: boolean; }) => Promise<{ envDataDisabled: boolean; }>
1301
+ ```
1302
+
1303
+ Disable env data. While disabled (true), no env data (device, OS, screen size, locale, URL, ...) is collected
1304
+ and tickets are sent without it. Pass false to collect env data again. Can be called before or after initialize.
1305
+
1306
+ | Param | Type |
1307
+ | ------------- | ----------------------------------------- |
1308
+ | **`options`** | <code>{ disableEnvData: boolean; }</code> |
1309
+
1310
+ **Returns:** <code>Promise&lt;{ envDataDisabled: boolean; }&gt;</code>
1311
+
1312
+ **Since:** 18.1.0
1313
+
1314
+ --------------------
1315
+
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&lt;{ colorScheme: string; }&gt;</code>
1338
+
1339
+ **Since:** 19.0.0
1340
+
1341
+ --------------------
1342
+
1343
+
1082
1344
  ### setLanguage(...)
1083
1345
 
1084
1346
  ```typescript
@@ -1104,7 +1366,8 @@ Set Language
1104
1366
  disableConsoleLogOverwrite() => Promise<{ consoleLogDisabled: boolean; }>
1105
1367
  ```
1106
1368
 
1107
- 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.
1108
1371
 
1109
1372
  **Returns:** <code>Promise&lt;{ consoleLogDisabled: boolean; }&gt;</code>
1110
1373
 
@@ -1150,695 +1413,30 @@ Set the notification container offset
1150
1413
  ### Interfaces
1151
1414
 
1152
1415
 
1153
- #### Object
1154
-
1155
- Provides functionality common to all JavaScript objects.
1156
-
1157
- | Prop | Type | Description |
1158
- | ----------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
1159
- | **`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. |
1160
-
1161
- | Method | Signature | Description |
1162
- | ------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------ |
1163
- | **toString** | () =&gt; string | Returns a string representation of an object. |
1164
- | **toLocaleString** | () =&gt; string | Returns a date converted to a string using the current locale. |
1165
- | **valueOf** | () =&gt; <a href="#object">Object</a> | Returns the primitive value of the specified object. |
1166
- | **hasOwnProperty** | (v: <a href="#propertykey">PropertyKey</a>) =&gt; boolean | Determines whether an object has a property with the specified name. |
1167
- | **isPrototypeOf** | (v: <a href="#object">Object</a>) =&gt; boolean | Determines whether an object exists in another object's prototype chain. |
1168
- | **propertyIsEnumerable** | (v: <a href="#propertykey">PropertyKey</a>) =&gt; boolean | Determines whether a specified property is enumerable. |
1169
-
1170
-
1171
- #### Function
1172
-
1173
- Creates a new function.
1174
-
1175
- | Prop | Type |
1176
- | --------------- | --------------------------------------------- |
1177
- | **`prototype`** | <code>any</code> |
1178
- | **`length`** | <code>number</code> |
1179
- | **`arguments`** | <code>any</code> |
1180
- | **`caller`** | <code><a href="#function">Function</a></code> |
1181
-
1182
- | Method | Signature | Description |
1183
- | ------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1184
- | **apply** | (this: <a href="#function">Function</a>, thisArg: any, argArray?: any) =&gt; 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. |
1185
- | **call** | (this: <a href="#function">Function</a>, thisArg: any, ...argArray: any[]) =&gt; any | Calls a method of an object, substituting another object for the current object. |
1186
- | **bind** | (this: <a href="#function">Function</a>, thisArg: any, ...argArray: any[]) =&gt; 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. |
1187
- | **toString** | () =&gt; string | Returns a string representation of a function. |
1188
-
1189
-
1190
- #### FunctionDeclaration
1191
-
1192
- | Prop | Type | Description |
1193
- | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------- |
1194
- | **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a function declaration is a part of the `export default function` statement |
1195
-
1196
-
1197
- #### Identifier
1198
-
1199
- | Prop | Type |
1200
- | ---------- | --------------------------------------------------- |
1201
- | **`type`** | <code>'<a href="#identifier">Identifier</a>'</code> |
1202
- | **`name`** | <code>string</code> |
1203
-
1204
-
1205
- #### FunctionExpression
1206
-
1207
- | Prop | Type |
1208
- | ---------- | ------------------------------------------------------------------- |
1209
- | **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1210
- | **`type`** | <code>'<a href="#functionexpression">FunctionExpression</a>'</code> |
1211
- | **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
1212
-
1213
-
1214
- #### BlockStatement
1215
-
1216
- | Prop | Type |
1217
- | ------------------- | ----------------------------------------------------------- |
1218
- | **`type`** | <code>'<a href="#blockstatement">BlockStatement</a>'</code> |
1219
- | **`body`** | <code>Statement[]</code> |
1220
- | **`innerComments`** | <code>Comment[]</code> |
1221
-
1222
-
1223
- #### ExpressionStatement
1224
-
1225
- | Prop | Type |
1226
- | ---------------- | --------------------------------------------------------------------- |
1227
- | **`type`** | <code>'<a href="#expressionstatement">ExpressionStatement</a>'</code> |
1228
- | **`expression`** | <code><a href="#expression">Expression</a></code> |
1229
-
1230
-
1231
- #### ExpressionMap
1232
-
1233
- | Prop | Type |
1234
- | ------------------------------ | ----------------------------------------------------------------------------- |
1235
- | **`ArrayExpression`** | <code><a href="#arrayexpression">ArrayExpression</a></code> |
1236
- | **`ArrowFunctionExpression`** | <code><a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code> |
1237
- | **`AssignmentExpression`** | <code><a href="#assignmentexpression">AssignmentExpression</a></code> |
1238
- | **`AwaitExpression`** | <code><a href="#awaitexpression">AwaitExpression</a></code> |
1239
- | **`BinaryExpression`** | <code><a href="#binaryexpression">BinaryExpression</a></code> |
1240
- | **`CallExpression`** | <code><a href="#callexpression">CallExpression</a></code> |
1241
- | **`ChainExpression`** | <code><a href="#chainexpression">ChainExpression</a></code> |
1242
- | **`ClassExpression`** | <code><a href="#classexpression">ClassExpression</a></code> |
1243
- | **`ConditionalExpression`** | <code><a href="#conditionalexpression">ConditionalExpression</a></code> |
1244
- | **`FunctionExpression`** | <code><a href="#functionexpression">FunctionExpression</a></code> |
1245
- | **`Identifier`** | <code><a href="#identifier">Identifier</a></code> |
1246
- | **`ImportExpression`** | <code><a href="#importexpression">ImportExpression</a></code> |
1247
- | **`Literal`** | <code><a href="#literal">Literal</a></code> |
1248
- | **`LogicalExpression`** | <code><a href="#logicalexpression">LogicalExpression</a></code> |
1249
- | **`MemberExpression`** | <code><a href="#memberexpression">MemberExpression</a></code> |
1250
- | **`MetaProperty`** | <code><a href="#metaproperty">MetaProperty</a></code> |
1251
- | **`NewExpression`** | <code><a href="#newexpression">NewExpression</a></code> |
1252
- | **`ObjectExpression`** | <code><a href="#objectexpression">ObjectExpression</a></code> |
1253
- | **`SequenceExpression`** | <code><a href="#sequenceexpression">SequenceExpression</a></code> |
1254
- | **`TaggedTemplateExpression`** | <code><a href="#taggedtemplateexpression">TaggedTemplateExpression</a></code> |
1255
- | **`TemplateLiteral`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
1256
- | **`ThisExpression`** | <code><a href="#thisexpression">ThisExpression</a></code> |
1257
- | **`UnaryExpression`** | <code><a href="#unaryexpression">UnaryExpression</a></code> |
1258
- | **`UpdateExpression`** | <code><a href="#updateexpression">UpdateExpression</a></code> |
1259
- | **`YieldExpression`** | <code><a href="#yieldexpression">YieldExpression</a></code> |
1260
-
1261
-
1262
- #### ArrayExpression
1263
-
1264
- | Prop | Type |
1265
- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
1266
- | **`type`** | <code>'<a href="#arrayexpression">ArrayExpression</a>'</code> |
1267
- | **`elements`** | <code><a href="#array">Array</a>&lt;<a href="#expression">Expression</a> \| <a href="#spreadelement">SpreadElement</a> \| null&gt;</code> |
1268
-
1269
-
1270
- #### Array
1271
-
1272
- | Prop | Type | Description |
1273
- | ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |
1274
- | **`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. |
1275
-
1276
- | Method | Signature | Description |
1277
- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1278
- | **toString** | () =&gt; string | Returns a string representation of an array. |
1279
- | **toLocaleString** | () =&gt; string | Returns a string representation of an array. The elements are converted to string using their toLocalString methods. |
1280
- | **pop** | () =&gt; 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. |
1281
- | **push** | (...items: T[]) =&gt; number | Appends new elements to the end of an array, and returns the new length of the array. |
1282
- | **concat** | (...items: <a href="#concatarray">ConcatArray</a>&lt;T&gt;[]) =&gt; T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
1283
- | **concat** | (...items: (T \| <a href="#concatarray">ConcatArray</a>&lt;T&gt;)[]) =&gt; T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
1284
- | **join** | (separator?: string \| undefined) =&gt; string | Adds all the elements of an array into a string, separated by the specified separator string. |
1285
- | **reverse** | () =&gt; T[] | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array. |
1286
- | **shift** | () =&gt; 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. |
1287
- | **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; 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. |
1288
- | **sort** | (compareFn?: ((a: T, b: T) =&gt; number) \| undefined) =&gt; this | Sorts an array in place. This method mutates the array and returns a reference to the same array. |
1289
- | **splice** | (start: number, deleteCount?: number \| undefined) =&gt; T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
1290
- | **splice** | (start: number, deleteCount: number, ...items: T[]) =&gt; T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
1291
- | **unshift** | (...items: T[]) =&gt; number | Inserts new elements at the start of an array, and returns the new length of the array. |
1292
- | **indexOf** | (searchElement: T, fromIndex?: number \| undefined) =&gt; number | Returns the index of the first occurrence of a value in an array, or -1 if it is not present. |
1293
- | **lastIndexOf** | (searchElement: T, fromIndex?: number \| undefined) =&gt; number | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. |
1294
- | **every** | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; this is S[] | Determines whether all the members of an array satisfy the specified test. |
1295
- | **every** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean | Determines whether all the members of an array satisfy the specified test. |
1296
- | **some** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean | Determines whether the specified callback function returns true for any element of an array. |
1297
- | **forEach** | (callbackfn: (value: T, index: number, array: T[]) =&gt; void, thisArg?: any) =&gt; void | Performs the specified action for each element in an array. |
1298
- | **map** | &lt;U&gt;(callbackfn: (value: T, index: number, array: T[]) =&gt; U, thisArg?: any) =&gt; U[] | Calls a defined callback function on each element of an array, and returns an array that contains the results. |
1299
- | **filter** | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; S[] | Returns the elements of an array that meet the condition specified in a callback function. |
1300
- | **filter** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; T[] | Returns the elements of an array that meet the condition specified in a callback function. |
1301
- | **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; 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. |
1302
- | **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1303
- | **reduce** | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; 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. |
1304
- | **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; 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. |
1305
- | **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1306
- | **reduceRight** | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; 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. |
1307
-
1308
-
1309
- #### ConcatArray
1310
-
1311
- | Prop | Type |
1312
- | ------------ | ------------------- |
1313
- | **`length`** | <code>number</code> |
1314
-
1315
- | Method | Signature |
1316
- | --------- | ------------------------------------------------------------------ |
1317
- | **join** | (separator?: string \| undefined) =&gt; string |
1318
- | **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; T[] |
1319
-
1320
-
1321
- #### SpreadElement
1322
-
1323
- | Prop | Type |
1324
- | -------------- | --------------------------------------------------------- |
1325
- | **`type`** | <code>'<a href="#spreadelement">SpreadElement</a>'</code> |
1326
- | **`argument`** | <code><a href="#expression">Expression</a></code> |
1327
-
1328
-
1329
- #### ArrowFunctionExpression
1330
-
1331
- | Prop | Type |
1332
- | ---------------- | ------------------------------------------------------------------------------------------------- |
1333
- | **`type`** | <code>'<a href="#arrowfunctionexpression">ArrowFunctionExpression</a>'</code> |
1334
- | **`expression`** | <code>boolean</code> |
1335
- | **`body`** | <code><a href="#expression">Expression</a> \| <a href="#blockstatement">BlockStatement</a></code> |
1336
-
1337
-
1338
- #### AssignmentExpression
1339
-
1340
- | Prop | Type |
1341
- | -------------- | ----------------------------------------------------------------------- |
1342
- | **`type`** | <code>'<a href="#assignmentexpression">AssignmentExpression</a>'</code> |
1343
- | **`operator`** | <code><a href="#assignmentoperator">AssignmentOperator</a></code> |
1344
- | **`left`** | <code><a href="#pattern">Pattern</a></code> |
1345
- | **`right`** | <code><a href="#expression">Expression</a></code> |
1346
-
1347
-
1348
- #### ObjectPattern
1349
-
1350
- | Prop | Type |
1351
- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
1352
- | **`type`** | <code>'<a href="#objectpattern">ObjectPattern</a>'</code> |
1353
- | **`properties`** | <code><a href="#array">Array</a>&lt;<a href="#assignmentproperty">AssignmentProperty</a> \| <a href="#restelement">RestElement</a>&gt;</code> |
1354
-
1355
-
1356
- #### AssignmentProperty
1357
-
1358
- | Prop | Type |
1359
- | ------------ | ------------------------------------------- |
1360
- | **`value`** | <code><a href="#pattern">Pattern</a></code> |
1361
- | **`kind`** | <code>'init'</code> |
1362
- | **`method`** | <code>boolean</code> |
1363
-
1364
-
1365
- #### RestElement
1366
-
1367
- | Prop | Type |
1368
- | -------------- | ----------------------------------------------------- |
1369
- | **`type`** | <code>'<a href="#restelement">RestElement</a>'</code> |
1370
- | **`argument`** | <code><a href="#pattern">Pattern</a></code> |
1371
-
1372
-
1373
- #### ArrayPattern
1374
-
1375
- | Prop | Type |
1376
- | -------------- | ------------------------------------------------------------------------------------- |
1377
- | **`type`** | <code>'<a href="#arraypattern">ArrayPattern</a>'</code> |
1378
- | **`elements`** | <code><a href="#array">Array</a>&lt;<a href="#pattern">Pattern</a> \| null&gt;</code> |
1379
-
1416
+ #### GleapNetworkLogEntry
1380
1417
 
1381
- #### AssignmentPattern
1418
+ A network log entry (fetch / XMLHttpRequest) as the plugin hands it to the native SDK.
1382
1419
 
1383
- | Prop | Type |
1384
- | ----------- | ----------------------------------------------------------------- |
1385
- | **`type`** | <code>'<a href="#assignmentpattern">AssignmentPattern</a>'</code> |
1386
- | **`left`** | <code><a href="#pattern">Pattern</a></code> |
1387
- | **`right`** | <code><a href="#expression">Expression</a></code> |
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> | |
1388
1429
 
1389
1430
 
1390
- #### MemberExpression
1431
+ #### GleapConsoleLogEntry
1391
1432
 
1392
- | Prop | Type |
1393
- | -------------- | ------------------------------------------------------------------------------------------------------- |
1394
- | **`type`** | <code>'<a href="#memberexpression">MemberExpression</a>'</code> |
1395
- | **`object`** | <code><a href="#expression">Expression</a> \| <a href="#super">Super</a></code> |
1396
- | **`property`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1397
- | **`computed`** | <code>boolean</code> |
1398
- | **`optional`** | <code>boolean</code> |
1433
+ A console log entry as the plugin hands it to the native SDK.
1399
1434
 
1400
-
1401
- #### Super
1402
-
1403
- | Prop | Type |
1404
- | ---------- | ----------------------------------------- |
1405
- | **`type`** | <code>'<a href="#super">Super</a>'</code> |
1406
-
1407
-
1408
- #### PrivateIdentifier
1409
-
1410
- | Prop | Type |
1411
- | ---------- | ----------------------------------------------------------------- |
1412
- | **`type`** | <code>'<a href="#privateidentifier">PrivateIdentifier</a>'</code> |
1413
- | **`name`** | <code>string</code> |
1414
-
1415
-
1416
- #### AwaitExpression
1417
-
1418
- | Prop | Type |
1419
- | -------------- | ------------------------------------------------------------- |
1420
- | **`type`** | <code>'<a href="#awaitexpression">AwaitExpression</a>'</code> |
1421
- | **`argument`** | <code><a href="#expression">Expression</a></code> |
1422
-
1423
-
1424
- #### BinaryExpression
1425
-
1426
- | Prop | Type |
1427
- | -------------- | ------------------------------------------------------------------------------------------------------- |
1428
- | **`type`** | <code>'<a href="#binaryexpression">BinaryExpression</a>'</code> |
1429
- | **`operator`** | <code><a href="#binaryoperator">BinaryOperator</a></code> |
1430
- | **`left`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1431
- | **`right`** | <code><a href="#expression">Expression</a></code> |
1432
-
1433
-
1434
- #### SimpleCallExpression
1435
-
1436
- | Prop | Type |
1437
- | -------------- | ----------------------------------------------------------- |
1438
- | **`type`** | <code>'<a href="#callexpression">CallExpression</a>'</code> |
1439
- | **`optional`** | <code>boolean</code> |
1440
-
1441
-
1442
- #### NewExpression
1443
-
1444
- | Prop | Type |
1445
- | ---------- | --------------------------------------------------------- |
1446
- | **`type`** | <code>'<a href="#newexpression">NewExpression</a>'</code> |
1447
-
1448
-
1449
- #### ChainExpression
1450
-
1451
- | Prop | Type |
1452
- | ---------------- | ------------------------------------------------------------- |
1453
- | **`type`** | <code>'<a href="#chainexpression">ChainExpression</a>'</code> |
1454
- | **`expression`** | <code><a href="#chainelement">ChainElement</a></code> |
1455
-
1456
-
1457
- #### ClassExpression
1458
-
1459
- | Prop | Type |
1460
- | ---------- | ------------------------------------------------------------- |
1461
- | **`type`** | <code>'<a href="#classexpression">ClassExpression</a>'</code> |
1462
- | **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1463
-
1464
-
1465
- #### ConditionalExpression
1466
-
1467
- | Prop | Type |
1468
- | ---------------- | ------------------------------------------------------------------------- |
1469
- | **`type`** | <code>'<a href="#conditionalexpression">ConditionalExpression</a>'</code> |
1470
- | **`test`** | <code><a href="#expression">Expression</a></code> |
1471
- | **`alternate`** | <code><a href="#expression">Expression</a></code> |
1472
- | **`consequent`** | <code><a href="#expression">Expression</a></code> |
1473
-
1474
-
1475
- #### ImportExpression
1476
-
1477
- | Prop | Type |
1478
- | ------------- | --------------------------------------------------------------- |
1479
- | **`type`** | <code>'<a href="#importexpression">ImportExpression</a>'</code> |
1480
- | **`source`** | <code><a href="#expression">Expression</a></code> |
1481
- | **`options`** | <code><a href="#expression">Expression</a> \| null</code> |
1482
-
1483
-
1484
- #### SimpleLiteral
1485
-
1486
- | Prop | Type |
1487
- | ----------- | ------------------------------------------------ |
1488
- | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1489
- | **`value`** | <code>string \| number \| boolean \| null</code> |
1490
- | **`raw`** | <code>string</code> |
1491
-
1492
-
1493
- #### RegExpLiteral
1494
-
1495
- | Prop | Type |
1496
- | ----------- | ------------------------------------------------- |
1497
- | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1498
- | **`value`** | <code><a href="#regexp">RegExp</a> \| null</code> |
1499
- | **`regex`** | <code>{ pattern: string; flags: string; }</code> |
1500
- | **`raw`** | <code>string</code> |
1501
-
1502
-
1503
- #### RegExp
1504
-
1505
- | Prop | Type | Description |
1506
- | ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1507
- | **`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. |
1508
- | **`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. |
1509
- | **`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. |
1510
- | **`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. |
1511
- | **`lastIndex`** | <code>number</code> | |
1512
-
1513
- | Method | Signature | Description |
1514
- | ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
1515
- | **exec** | (string: string) =&gt; <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. |
1516
- | **test** | (string: string) =&gt; boolean | Returns a <a href="#boolean">Boolean</a> value that indicates whether or not a pattern exists in a searched string. |
1517
- | **compile** | () =&gt; this | |
1518
-
1519
-
1520
- #### RegExpExecArray
1521
-
1522
- | Prop | Type |
1523
- | ----------- | ------------------- |
1524
- | **`index`** | <code>number</code> |
1525
- | **`input`** | <code>string</code> |
1526
-
1527
-
1528
- #### BigIntLiteral
1529
-
1530
- | Prop | Type |
1531
- | ------------ | --------------------------------------------- |
1532
- | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1533
- | **`value`** | <code>bigint \| null</code> |
1534
- | **`bigint`** | <code>string</code> |
1535
- | **`raw`** | <code>string</code> |
1536
-
1537
-
1538
- #### LogicalExpression
1539
-
1540
- | Prop | Type |
1541
- | -------------- | ----------------------------------------------------------------- |
1542
- | **`type`** | <code>'<a href="#logicalexpression">LogicalExpression</a>'</code> |
1543
- | **`operator`** | <code><a href="#logicaloperator">LogicalOperator</a></code> |
1544
- | **`left`** | <code><a href="#expression">Expression</a></code> |
1545
- | **`right`** | <code><a href="#expression">Expression</a></code> |
1546
-
1547
-
1548
- #### MetaProperty
1549
-
1550
- | Prop | Type |
1551
- | -------------- | ------------------------------------------------------- |
1552
- | **`type`** | <code>'<a href="#metaproperty">MetaProperty</a>'</code> |
1553
- | **`meta`** | <code><a href="#identifier">Identifier</a></code> |
1554
- | **`property`** | <code><a href="#identifier">Identifier</a></code> |
1555
-
1556
-
1557
- #### ObjectExpression
1558
-
1559
- | Prop | Type |
1560
- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
1561
- | **`type`** | <code>'<a href="#objectexpression">ObjectExpression</a>'</code> |
1562
- | **`properties`** | <code><a href="#array">Array</a>&lt;<a href="#property">Property</a> \| <a href="#spreadelement">SpreadElement</a>&gt;</code> |
1563
-
1564
-
1565
- #### Property
1566
-
1567
- | Prop | Type |
1568
- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1569
- | **`type`** | <code>'<a href="#property">Property</a>'</code> |
1570
- | **`key`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1571
- | **`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> |
1572
- | **`kind`** | <code>'init' \| 'get' \| 'set'</code> |
1573
- | **`method`** | <code>boolean</code> |
1574
- | **`shorthand`** | <code>boolean</code> |
1575
- | **`computed`** | <code>boolean</code> |
1576
-
1577
-
1578
- #### SequenceExpression
1579
-
1580
- | Prop | Type |
1581
- | ----------------- | ------------------------------------------------------------------- |
1582
- | **`type`** | <code>'<a href="#sequenceexpression">SequenceExpression</a>'</code> |
1583
- | **`expressions`** | <code>Expression[]</code> |
1584
-
1585
-
1586
- #### TaggedTemplateExpression
1587
-
1588
- | Prop | Type |
1589
- | ----------- | ------------------------------------------------------------------------------- |
1590
- | **`type`** | <code>'<a href="#taggedtemplateexpression">TaggedTemplateExpression</a>'</code> |
1591
- | **`tag`** | <code><a href="#expression">Expression</a></code> |
1592
- | **`quasi`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
1593
-
1594
-
1595
- #### TemplateLiteral
1596
-
1597
- | Prop | Type |
1598
- | ----------------- | ------------------------------------------------------------- |
1599
- | **`type`** | <code>'<a href="#templateliteral">TemplateLiteral</a>'</code> |
1600
- | **`quasis`** | <code>TemplateElement[]</code> |
1601
- | **`expressions`** | <code>Expression[]</code> |
1602
-
1603
-
1604
- #### TemplateElement
1605
-
1606
- | Prop | Type |
1607
- | ----------- | ------------------------------------------------------------- |
1608
- | **`type`** | <code>'<a href="#templateelement">TemplateElement</a>'</code> |
1609
- | **`tail`** | <code>boolean</code> |
1610
- | **`value`** | <code>{ cooked?: string \| null; raw: string; }</code> |
1611
-
1612
-
1613
- #### ThisExpression
1614
-
1615
- | Prop | Type |
1616
- | ---------- | ----------------------------------------------------------- |
1617
- | **`type`** | <code>'<a href="#thisexpression">ThisExpression</a>'</code> |
1618
-
1619
-
1620
- #### UnaryExpression
1621
-
1622
- | Prop | Type |
1623
- | -------------- | ------------------------------------------------------------- |
1624
- | **`type`** | <code>'<a href="#unaryexpression">UnaryExpression</a>'</code> |
1625
- | **`operator`** | <code><a href="#unaryoperator">UnaryOperator</a></code> |
1626
- | **`prefix`** | <code>true</code> |
1627
- | **`argument`** | <code><a href="#expression">Expression</a></code> |
1628
-
1629
-
1630
- #### UpdateExpression
1631
-
1632
- | Prop | Type |
1633
- | -------------- | --------------------------------------------------------------- |
1634
- | **`type`** | <code>'<a href="#updateexpression">UpdateExpression</a>'</code> |
1635
- | **`operator`** | <code><a href="#updateoperator">UpdateOperator</a></code> |
1636
- | **`argument`** | <code><a href="#expression">Expression</a></code> |
1637
- | **`prefix`** | <code>boolean</code> |
1638
-
1639
-
1640
- #### YieldExpression
1641
-
1642
- | Prop | Type |
1643
- | -------------- | ------------------------------------------------------------- |
1644
- | **`type`** | <code>'<a href="#yieldexpression">YieldExpression</a>'</code> |
1645
- | **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
1646
- | **`delegate`** | <code>boolean</code> |
1647
-
1648
-
1649
- #### StaticBlock
1650
-
1651
- | Prop | Type |
1652
- | ---------- | ----------------------------------------------------- |
1653
- | **`type`** | <code>'<a href="#staticblock">StaticBlock</a>'</code> |
1654
-
1655
-
1656
- #### EmptyStatement
1657
-
1658
- | Prop | Type |
1659
- | ---------- | ----------------------------------------------------------- |
1660
- | **`type`** | <code>'<a href="#emptystatement">EmptyStatement</a>'</code> |
1661
-
1662
-
1663
- #### DebuggerStatement
1664
-
1665
- | Prop | Type |
1666
- | ---------- | ----------------------------------------------------------------- |
1667
- | **`type`** | <code>'<a href="#debuggerstatement">DebuggerStatement</a>'</code> |
1668
-
1669
-
1670
- #### WithStatement
1671
-
1672
- | Prop | Type |
1673
- | ------------ | --------------------------------------------------------- |
1674
- | **`type`** | <code>'<a href="#withstatement">WithStatement</a>'</code> |
1675
- | **`object`** | <code><a href="#expression">Expression</a></code> |
1676
- | **`body`** | <code><a href="#statement">Statement</a></code> |
1677
-
1678
-
1679
- #### ReturnStatement
1680
-
1681
- | Prop | Type |
1682
- | -------------- | ------------------------------------------------------------- |
1683
- | **`type`** | <code>'<a href="#returnstatement">ReturnStatement</a>'</code> |
1684
- | **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
1685
-
1686
-
1687
- #### LabeledStatement
1688
-
1689
- | Prop | Type |
1690
- | ----------- | --------------------------------------------------------------- |
1691
- | **`type`** | <code>'<a href="#labeledstatement">LabeledStatement</a>'</code> |
1692
- | **`label`** | <code><a href="#identifier">Identifier</a></code> |
1693
- | **`body`** | <code><a href="#statement">Statement</a></code> |
1694
-
1695
-
1696
- #### BreakStatement
1697
-
1698
- | Prop | Type |
1699
- | ----------- | ----------------------------------------------------------- |
1700
- | **`type`** | <code>'<a href="#breakstatement">BreakStatement</a>'</code> |
1701
- | **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1702
-
1703
-
1704
- #### ContinueStatement
1705
-
1706
- | Prop | Type |
1707
- | ----------- | ----------------------------------------------------------------- |
1708
- | **`type`** | <code>'<a href="#continuestatement">ContinueStatement</a>'</code> |
1709
- | **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1710
-
1711
-
1712
- #### IfStatement
1713
-
1714
- | Prop | Type |
1715
- | ---------------- | ------------------------------------------------------- |
1716
- | **`type`** | <code>'<a href="#ifstatement">IfStatement</a>'</code> |
1717
- | **`test`** | <code><a href="#expression">Expression</a></code> |
1718
- | **`consequent`** | <code><a href="#statement">Statement</a></code> |
1719
- | **`alternate`** | <code><a href="#statement">Statement</a> \| null</code> |
1720
-
1721
-
1722
- #### SwitchStatement
1723
-
1724
- | Prop | Type |
1725
- | ------------------ | ------------------------------------------------------------- |
1726
- | **`type`** | <code>'<a href="#switchstatement">SwitchStatement</a>'</code> |
1727
- | **`discriminant`** | <code><a href="#expression">Expression</a></code> |
1728
- | **`cases`** | <code>SwitchCase[]</code> |
1729
-
1730
-
1731
- #### SwitchCase
1732
-
1733
- | Prop | Type |
1734
- | ---------------- | --------------------------------------------------------- |
1735
- | **`type`** | <code>'<a href="#switchcase">SwitchCase</a>'</code> |
1736
- | **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
1737
- | **`consequent`** | <code>Statement[]</code> |
1738
-
1739
-
1740
- #### ThrowStatement
1741
-
1742
- | Prop | Type |
1743
- | -------------- | ----------------------------------------------------------- |
1744
- | **`type`** | <code>'<a href="#throwstatement">ThrowStatement</a>'</code> |
1745
- | **`argument`** | <code><a href="#expression">Expression</a></code> |
1746
-
1747
-
1748
- #### TryStatement
1749
-
1750
- | Prop | Type |
1751
- | --------------- | ----------------------------------------------------------------- |
1752
- | **`type`** | <code>'<a href="#trystatement">TryStatement</a>'</code> |
1753
- | **`block`** | <code><a href="#blockstatement">BlockStatement</a></code> |
1754
- | **`handler`** | <code><a href="#catchclause">CatchClause</a> \| null</code> |
1755
- | **`finalizer`** | <code><a href="#blockstatement">BlockStatement</a> \| null</code> |
1756
-
1757
-
1758
- #### CatchClause
1759
-
1760
- | Prop | Type |
1761
- | ----------- | --------------------------------------------------------- |
1762
- | **`type`** | <code>'<a href="#catchclause">CatchClause</a>'</code> |
1763
- | **`param`** | <code><a href="#pattern">Pattern</a> \| null</code> |
1764
- | **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
1765
-
1766
-
1767
- #### WhileStatement
1768
-
1769
- | Prop | Type |
1770
- | ---------- | ----------------------------------------------------------- |
1771
- | **`type`** | <code>'<a href="#whilestatement">WhileStatement</a>'</code> |
1772
- | **`test`** | <code><a href="#expression">Expression</a></code> |
1773
- | **`body`** | <code><a href="#statement">Statement</a></code> |
1774
-
1775
-
1776
- #### DoWhileStatement
1777
-
1778
- | Prop | Type |
1779
- | ---------- | --------------------------------------------------------------- |
1780
- | **`type`** | <code>'<a href="#dowhilestatement">DoWhileStatement</a>'</code> |
1781
- | **`body`** | <code><a href="#statement">Statement</a></code> |
1782
- | **`test`** | <code><a href="#expression">Expression</a></code> |
1783
-
1784
-
1785
- #### ForStatement
1786
-
1787
- | Prop | Type |
1788
- | ------------ | ------------------------------------------------------------------------------------------------------------------- |
1789
- | **`type`** | <code>'<a href="#forstatement">ForStatement</a>'</code> |
1790
- | **`init`** | <code><a href="#expression">Expression</a> \| <a href="#variabledeclaration">VariableDeclaration</a> \| null</code> |
1791
- | **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
1792
- | **`update`** | <code><a href="#expression">Expression</a> \| null</code> |
1793
- | **`body`** | <code><a href="#statement">Statement</a></code> |
1794
-
1795
-
1796
- #### VariableDeclaration
1797
-
1798
- | Prop | Type |
1799
- | ------------------ | --------------------------------------------------------------------- |
1800
- | **`type`** | <code>'<a href="#variabledeclaration">VariableDeclaration</a>'</code> |
1801
- | **`declarations`** | <code>VariableDeclarator[]</code> |
1802
- | **`kind`** | <code>'var' \| 'let' \| 'const' \| 'using' \| 'await using'</code> |
1803
-
1804
-
1805
- #### VariableDeclarator
1806
-
1807
- | Prop | Type |
1808
- | ---------- | ------------------------------------------------------------------- |
1809
- | **`type`** | <code>'<a href="#variabledeclarator">VariableDeclarator</a>'</code> |
1810
- | **`id`** | <code><a href="#pattern">Pattern</a></code> |
1811
- | **`init`** | <code><a href="#expression">Expression</a> \| null</code> |
1812
-
1813
-
1814
- #### ForInStatement
1815
-
1816
- | Prop | Type |
1817
- | ---------- | ----------------------------------------------------------- |
1818
- | **`type`** | <code>'<a href="#forinstatement">ForInStatement</a>'</code> |
1819
-
1820
-
1821
- #### ForOfStatement
1822
-
1823
- | Prop | Type |
1824
- | ----------- | ----------------------------------------------------------- |
1825
- | **`type`** | <code>'<a href="#forofstatement">ForOfStatement</a>'</code> |
1826
- | **`await`** | <code>boolean</code> |
1827
-
1828
-
1829
- #### ClassDeclaration
1830
-
1831
- | Prop | Type | Description |
1832
- | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------- |
1833
- | **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a class declaration is a part of the `export default class` statement |
1834
-
1835
-
1836
- #### Comment
1837
-
1838
- | Prop | Type |
1839
- | ----------- | ------------------------------ |
1840
- | **`type`** | <code>'Line' \| 'Block'</code> |
1841
- | **`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> | |
1842
1440
 
1843
1441
 
1844
1442
  #### PluginListenerHandle
@@ -1848,6 +1446,17 @@ Creates a new function.
1848
1446
  | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
1849
1447
 
1850
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
+
1851
1460
  #### GleapEventMessage
1852
1461
 
1853
1462
  | Prop | Type |
@@ -1866,74 +1475,11 @@ Creates a new function.
1866
1475
  ### Type Aliases
1867
1476
 
1868
1477
 
1869
- #### PropertyKey
1870
-
1871
- <code>string | number | symbol</code>
1872
-
1873
-
1874
- #### Function
1875
-
1876
- <code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#functionexpression">FunctionExpression</a> | <a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code>
1877
-
1878
-
1879
- #### Statement
1880
-
1881
- <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>
1882
-
1883
-
1884
- #### Expression
1885
-
1886
- <code>ExpressionMap[keyof ExpressionMap]</code>
1887
-
1888
-
1889
- #### AssignmentOperator
1890
-
1891
- <code>"=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "&lt;&lt;=" | "&gt;&gt;=" | "&gt;&gt;&gt;=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??="</code>
1892
-
1893
-
1894
- #### Pattern
1895
-
1896
- <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>
1897
-
1898
-
1899
- #### BinaryOperator
1900
-
1901
- <code>"==" | "!=" | "===" | "!==" | "&lt;" | "&lt;=" | "&gt;" | "&gt;=" | "&lt;&lt;" | "&gt;&gt;" | "&gt;&gt;&gt;" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof"</code>
1902
-
1903
-
1904
- #### CallExpression
1905
-
1906
- <code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#newexpression">NewExpression</a></code>
1907
-
1908
-
1909
- #### ChainElement
1910
-
1911
- <code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#memberexpression">MemberExpression</a></code>
1912
-
1913
-
1914
- #### Literal
1915
-
1916
- <code><a href="#simpleliteral">SimpleLiteral</a> | <a href="#regexpliteral">RegExpLiteral</a> | <a href="#bigintliteral">BigIntLiteral</a></code>
1917
-
1918
-
1919
- #### LogicalOperator
1920
-
1921
- <code>"||" | "&&" | "??"</code>
1922
-
1923
-
1924
- #### UnaryOperator
1925
-
1926
- <code>"-" | "+" | "!" | "~" | "typeof" | "void" | "delete"</code>
1927
-
1928
-
1929
- #### UpdateOperator
1930
-
1931
- <code>"++" | "--"</code>
1932
-
1478
+ #### Record
1933
1479
 
1934
- #### Declaration
1480
+ Construct a type with a set of properties K of type T
1935
1481
 
1936
- <code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#variabledeclaration">VariableDeclaration</a> | <a href="#classdeclaration">ClassDeclaration</a></code>
1482
+ <code>{
1937
1483
  [P in K]: T;
1938
1484
  }</code>
1939
1485
 
1940
1486
 
1941
1487
  #### GleapEventCallback