capacitor-gleap-plugin 18.1.0 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CapacitorGleapPlugin.podspec +7 -2
  2. package/Package.swift +31 -0
  3. package/README.md +298 -759
  4. package/android/build.gradle +1 -1
  5. package/android/src/main/java/io/gleapplugins/capacitor/GleapPlugin.java +202 -37
  6. package/dist/docs.json +288 -3893
  7. package/dist/esm/definitions.d.ts +162 -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 +42 -2
  33. package/dist/esm/web.js +38 -0
  34. package/dist/esm/web.js.map +1 -1
  35. package/dist/plugin.cjs.js +2258 -1
  36. package/dist/plugin.cjs.js.map +1 -1
  37. package/dist/plugin.js +2258 -1
  38. package/dist/plugin.js.map +1 -1
  39. package/ios/{Plugin → Sources/GleapPlugin}/GleapPlugin.swift +219 -12
  40. package/package.json +18 -4
  41. package/ios/Plugin/GleapPlugin.h +0 -10
  42. package/ios/Plugin/GleapPlugin.m +0 -68
  43. 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,41 @@ 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
+
85
+ ## Protected conversation files
86
+
87
+ With "Require authenticated file access" (Project settings → User identity), conversation files can only be opened by agents and by the verified customer the conversation belongs to. Identify the customer with a user hash (created on your server with the project's identity verification secret) on every app start:
88
+
89
+ ```typescript
90
+ await Gleap.identify({ userId: "user-1", userHash: userHash, email: "jane@example.com" });
91
+ ```
92
+
93
+ Email replies link attachments to your customer application URL with a `gleapFile` query parameter. If that URL opens your app (universal link / App Link), pass it to Gleap; the conversation opens once the customer is identified with a user hash:
94
+
95
+ ```typescript
96
+ import { App } from "@capacitor/app";
97
+
98
+ const launch = await App.getLaunchUrl();
99
+ if (launch?.url) {
100
+ await Gleap.openProtectedFileFromUrl({ url: launch.url });
101
+ }
102
+ App.addListener("appUrlOpen", ({ url }) => {
103
+ Gleap.openProtectedFileFromUrl({ url });
104
+ });
105
+ ```
106
+
107
+ `openProtectedFileFromUrl` resolves `{ opened: false }` when the URL has no valid `gleapFile` parameter. On web the JavaScript SDK opens `?gleapFile=` links on page load by itself.
108
+
56
109
  ## API
57
110
 
58
111
  <docgen-index>
@@ -76,10 +129,13 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
76
129
  * [`setTags(...)`](#settags)
77
130
  * [`setNetworkLogsBlacklist(...)`](#setnetworklogsblacklist)
78
131
  * [`setNetworkLogPropsToIgnore(...)`](#setnetworklogpropstoignore)
132
+ * [`attachNetworkLogs(...)`](#attachnetworklogs)
133
+ * [`attachConsoleLogs(...)`](#attachconsolelogs)
79
134
  * [`setEnvDataPropsToIgnore(...)`](#setenvdatapropstoignore)
80
135
  * [`registerAgentTool(...)`](#registeragenttool)
81
136
  * [`sendAgentToolResult(...)`](#sendagenttoolresult)
82
137
  * [`addListener('agentToolExecution', ...)`](#addlisteneragenttoolexecution-)
138
+ * [`addListener('logConfigLoaded', ...)`](#addlistenerlogconfigloaded-)
83
139
  * [`setTicketAttribute(...)`](#setticketattribute)
84
140
  * [`unsetTicketAttribute(...)`](#unsetticketattribute)
85
141
  * [`clearTicketAttributes()`](#clearticketattributes)
@@ -94,6 +150,9 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
94
150
  * [`addAttachment(...)`](#addattachment)
95
151
  * [`removeAllAttachments()`](#removeallattachments)
96
152
  * [`open()`](#open)
153
+ * [`openChecklists(...)`](#openchecklists)
154
+ * [`openChecklist(...)`](#openchecklist)
155
+ * [`startChecklist(...)`](#startchecklist)
97
156
  * [`openNews(...)`](#opennews)
98
157
  * [`openNewsArticle(...)`](#opennewsarticle)
99
158
  * [`openHelpCenter(...)`](#openhelpcenter)
@@ -108,10 +167,13 @@ Both can be called at any time and apply to the next ticket. Each `setEnvDataPro
108
167
  * [`startClassicForm(...)`](#startclassicform)
109
168
  * [`startConversation(...)`](#startconversation)
110
169
  * [`openConversation(...)`](#openconversation)
170
+ * [`openConversations(...)`](#openconversations)
171
+ * [`openProtectedFileFromUrl(...)`](#openprotectedfilefromurl)
111
172
  * [`startBot(...)`](#startbot)
112
173
  * [`showFeedbackButton(...)`](#showfeedbackbutton)
113
174
  * [`setDisableInAppNotifications(...)`](#setdisableinappnotifications)
114
175
  * [`setDisableEnvData(...)`](#setdisableenvdata)
176
+ * [`setColorScheme(...)`](#setcolorscheme)
115
177
  * [`setLanguage(...)`](#setlanguage)
116
178
  * [`disableConsoleLogOverwrite()`](#disableconsolelogoverwrite)
117
179
  * [`enableDebugConsoleLog()`](#enabledebugconsolelog)
@@ -281,14 +343,14 @@ Set a custom modal url. Must be called before initialize.
281
343
  ### identify(...)
282
344
 
283
345
  ```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?: Object; }) => Promise<{ identify: boolean; }>
346
+ 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
347
  ```
286
348
 
287
349
  Set user identity
288
350
 
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="#object">Object</a>; }</code> |
351
+ | Param | Type |
352
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
353
+ | **`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> |
292
354
 
293
355
  **Returns:** <code>Promise&lt;{ identify: boolean; }&gt;</code>
294
356
 
@@ -300,14 +362,14 @@ Set user identity
300
362
  ### updateContact(...)
301
363
 
302
364
  ```typescript
303
- 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; }>
365
+ 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
366
  ```
305
367
 
306
368
  Update user properties
307
369
 
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="#object">Object</a>; }</code> |
370
+ | Param | Type |
371
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
372
+ | **`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> |
311
373
 
312
374
  **Returns:** <code>Promise&lt;{ identify: boolean; }&gt;</code>
313
375
 
@@ -475,6 +537,49 @@ Set network logs props to ignore
475
537
  --------------------
476
538
 
477
539
 
540
+ ### attachNetworkLogs(...)
541
+
542
+ ```typescript
543
+ attachNetworkLogs(options: { logs: GleapNetworkLogEntry[]; }) => Promise<{ networkLogsAttached: boolean; }>
544
+ ```
545
+
546
+ Hands the network requests made inside the app's WebView (fetch and XMLHttpRequest) to the native SDK, so they
547
+ show up in the network logs of tickets. The plugin calls this for you on iOS and Android; each call replaces
548
+ the previously attached WebView network logs. No-op on web, where the JavaScript SDK records requests itself.
549
+
550
+ | Param | Type |
551
+ | ------------- | ---------------------------------------------- |
552
+ | **`options`** | <code>{ logs: GleapNetworkLogEntry[]; }</code> |
553
+
554
+ **Returns:** <code>Promise&lt;{ networkLogsAttached: boolean; }&gt;</code>
555
+
556
+ **Since:** 19.0.0
557
+
558
+ --------------------
559
+
560
+
561
+ ### attachConsoleLogs(...)
562
+
563
+ ```typescript
564
+ attachConsoleLogs(options: { logs: GleapConsoleLogEntry[]; }) => Promise<{ consoleLogsAttached: boolean; }>
565
+ ```
566
+
567
+ Hands the console output of the app's WebView (console.log/info/warn/error/debug, uncaught errors and
568
+ unhandled promise rejections) to the native SDK, so it shows up in the console logs of tickets. The plugin
569
+ calls this for you on iOS and Android; each call replaces the previously attached WebView console logs.
570
+ No-op on web, where the JavaScript SDK records the console itself.
571
+
572
+ | Param | Type |
573
+ | ------------- | ---------------------------------------------- |
574
+ | **`options`** | <code>{ logs: GleapConsoleLogEntry[]; }</code> |
575
+
576
+ **Returns:** <code>Promise&lt;{ consoleLogsAttached: boolean; }&gt;</code>
577
+
578
+ **Since:** 19.0.0
579
+
580
+ --------------------
581
+
582
+
478
583
  ### setEnvDataPropsToIgnore(...)
479
584
 
480
585
  ```typescript
@@ -554,6 +659,27 @@ Called when a registered agent tool should execute.
554
659
  --------------------
555
660
 
556
661
 
662
+ ### addListener('logConfigLoaded', ...)
663
+
664
+ ```typescript
665
+ addListener(eventName: 'logConfigLoaded', listenerFunc: (config: GleapLogConfig) => void) => Promise<PluginListenerHandle>
666
+ ```
667
+
668
+ Called on iOS and Android when the project config is loaded, with the network log settings the plugin's
669
+ WebView log capture needs (network logs are only recorded when they are enabled for your project).
670
+
671
+ | Param | Type |
672
+ | ------------------ | ------------------------------------------------------------------------------ |
673
+ | **`eventName`** | <code>'logConfigLoaded'</code> |
674
+ | **`listenerFunc`** | <code>(config: <a href="#gleaplogconfig">GleapLogConfig</a>) =&gt; void</code> |
675
+
676
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
677
+
678
+ **Since:** 19.0.0
679
+
680
+ --------------------
681
+
682
+
557
683
  ### setTicketAttribute(...)
558
684
 
559
685
  ```typescript
@@ -802,6 +928,63 @@ Open widget
802
928
  --------------------
803
929
 
804
930
 
931
+ ### openChecklists(...)
932
+
933
+ ```typescript
934
+ openChecklists(options: { showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
935
+ ```
936
+
937
+ Open checklists
938
+
939
+ | Param | Type |
940
+ | ------------- | ------------------------------------------ |
941
+ | **`options`** | <code>{ showBackButton?: boolean; }</code> |
942
+
943
+ **Returns:** <code>Promise&lt;{ opened: boolean; }&gt;</code>
944
+
945
+ **Since:** 19.0.0
946
+
947
+ --------------------
948
+
949
+
950
+ ### openChecklist(...)
951
+
952
+ ```typescript
953
+ openChecklist(options: { checklistId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
954
+ ```
955
+
956
+ Open checklist
957
+
958
+ | Param | Type |
959
+ | ------------- | --------------------------------------------------------------- |
960
+ | **`options`** | <code>{ checklistId: string; showBackButton?: boolean; }</code> |
961
+
962
+ **Returns:** <code>Promise&lt;{ opened: boolean; }&gt;</code>
963
+
964
+ **Since:** 19.0.0
965
+
966
+ --------------------
967
+
968
+
969
+ ### startChecklist(...)
970
+
971
+ ```typescript
972
+ startChecklist(options: { outboundId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>
973
+ ```
974
+
975
+ Start checklist
976
+
977
+ | Param | Type |
978
+ | ------------- | -------------------------------------------------------------- |
979
+ | **`options`** | <code>{ outboundId: string; showBackButton?: boolean; }</code> |
980
+
981
+ **Returns:** <code>Promise&lt;{ opened: boolean; }&gt;</code>
982
+
983
+ **Since:** 19.0.0
984
+
985
+ --------------------
986
+
987
+
805
988
  ### openNews(...)
806
989
 
807
990
  ```typescript
@@ -1060,6 +1243,51 @@ Opens the conversations tab.
1060
1243
  --------------------
1061
1244
 
1062
1245
 
1246
+ ### openConversations(...)
1247
+
1248
+ ```typescript
1249
+ openConversations(options: { showBackButton?: boolean; }) => Promise<{ conversationsOpened: boolean; }>
1250
+ ```
1251
+
1252
+ Opens the conversations tab (same as openConversation).
1253
+
1254
+ | Param | Type |
1255
+ | ------------- | ------------------------------------------ |
1256
+ | **`options`** | <code>{ showBackButton?: boolean; }</code> |
1257
+
1258
+ **Returns:** <code>Promise&lt;{ conversationsOpened: boolean; }&gt;</code>
1259
+
1260
+ **Since:** 19.0.0
1261
+
1262
+ --------------------
1263
+
1264
+
1265
+ ### openProtectedFileFromUrl(...)
1266
+
1267
+ ```typescript
1268
+ openProtectedFileFromUrl(options: { url: string; }) => Promise<{ opened: boolean; }>
1269
+ ```
1270
+
1271
+ Open the conversation of a protected file from an emailed link.
1272
+ With "Require authenticated file access" enabled, email replies link attachments to your customer
1273
+ application URL with a `gleapFile` query parameter. If that URL opens your app (for example as a
1274
+ universal link / App Link), pass it here, e.g. from `App.addListener('appUrlOpen')` or
1275
+ `App.getLaunchUrl()` of `@capacitor/app`. `opened` is true when the URL carries a Gleap file reference.
1276
+ The conversation opens once the customer is identified with a user hash (`identify` with `userHash`);
1277
+ the link alone grants nothing. On web the JavaScript SDK handles `?gleapFile=` automatically on page load,
1278
+ so this resolves `{ opened: false }` there.
1279
+
1280
+ | Param | Type |
1281
+ | ------------- | ----------------------------- |
1282
+ | **`options`** | <code>{ url: string; }</code> |
1283
+
1284
+ **Returns:** <code>Promise&lt;{ opened: boolean; }&gt;</code>
1285
+
1286
+ **Since:** 19.0.1
1287
+
1288
+ --------------------
1289
+
1290
+
1063
1291
  ### startBot(...)
1064
1292
 
1065
1293
  ```typescript
@@ -1137,6 +1365,33 @@ and tickets are sent without it. Pass false to collect env data again. Can be ca
1137
1365
  --------------------
1138
1366
 
1139
1367
 
1368
+ ### setColorScheme(...)
1369
+
1370
+ ```typescript
1371
+ setColorScheme(options: { colorScheme: 'auto' | 'light' | 'dark'; lightBackgroundColor?: string; darkBackgroundColor?: string; }) => Promise<{ colorScheme: string; }>
1372
+ ```
1373
+
1374
+ Set the color scheme of the widget. Overrides the color scheme configured in the Gleap dashboard.
1375
+ Only takes effect when "Adapt to dark / light mode" is enabled in the dashboard; otherwise the widget
1376
+ always keeps its normal colors. Before the first call the dashboard setting applies.
1377
+ "auto" follows the device appearance (dark/light mode) on iOS and Android, and the page theme on web.
1378
+ Apps with their own in-app theme toggle should pass "light" / "dark" explicitly and call it again whenever
1379
+ the theme changes.
1380
+ In dark mode the widget uses the dark mode colors, logo, header image and composer glow set in the Gleap dashboard;
1381
+ without dark colors it keeps its normal colors. lightBackgroundColor / darkBackgroundColor override the background.
1382
+ Can be called before or after initialize and applies live.
1383
+
1384
+ | Param | Type |
1385
+ | ------------- | ----------------------------------------------------------------------------------------------------------------------- |
1386
+ | **`options`** | <code>{ colorScheme: 'auto' \| 'light' \| 'dark'; lightBackgroundColor?: string; darkBackgroundColor?: string; }</code> |
1387
+
1388
+ **Returns:** <code>Promise&lt;{ colorScheme: string; }&gt;</code>
1389
+
1390
+ **Since:** 19.0.0
1391
+
1392
+ --------------------
1393
+
1394
+
1140
1395
  ### setLanguage(...)
1141
1396
 
1142
1397
  ```typescript
@@ -1162,7 +1417,8 @@ Set Language
1162
1417
  disableConsoleLogOverwrite() => Promise<{ consoleLogDisabled: boolean; }>
1163
1418
  ```
1164
1419
 
1165
- Disable console log overwrite
1420
+ Disable console log overwrite: stops recording the console output of the app's WebView
1421
+ (console methods are restored) and drops the WebView console logs recorded so far.
1166
1422
 
1167
1423
  **Returns:** <code>Promise&lt;{ consoleLogDisabled: boolean; }&gt;</code>
1168
1424
 
@@ -1208,695 +1464,30 @@ Set the notification container offset
1208
1464
  ### Interfaces
1209
1465
 
1210
1466
 
1211
- #### Object
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** | () =&gt; string | Returns a string representation of an object. |
1222
- | **toLocaleString** | () =&gt; string | Returns a date converted to a string using the current locale. |
1223
- | **valueOf** | () =&gt; <a href="#object">Object</a> | Returns the primitive value of the specified object. |
1224
- | **hasOwnProperty** | (v: <a href="#propertykey">PropertyKey</a>) =&gt; boolean | Determines whether an object has a property with the specified name. |
1225
- | **isPrototypeOf** | (v: <a href="#object">Object</a>) =&gt; boolean | Determines whether an object exists in another object's prototype chain. |
1226
- | **propertyIsEnumerable** | (v: <a href="#propertykey">PropertyKey</a>) =&gt; 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) =&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. |
1243
- | **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. |
1244
- | **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. |
1245
- | **toString** | () =&gt; 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>&lt;<a href="#expression">Expression</a> \| <a href="#spreadelement">SpreadElement</a> \| null&gt;</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** | () =&gt; string | Returns a string representation of an array. |
1337
- | **toLocaleString** | () =&gt; string | Returns a string representation of an array. The elements are converted to string using their toLocalString methods. |
1338
- | **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. |
1339
- | **push** | (...items: T[]) =&gt; 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>&lt;T&gt;[]) =&gt; 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>&lt;T&gt;)[]) =&gt; T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
1342
- | **join** | (separator?: string \| undefined) =&gt; string | Adds all the elements of an array into a string, separated by the specified separator string. |
1343
- | **reverse** | () =&gt; T[] | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array. |
1344
- | **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. |
1345
- | **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. |
1346
- | **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. |
1347
- | **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. |
1348
- | **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. |
1349
- | **unshift** | (...items: T[]) =&gt; 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) =&gt; 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) =&gt; number | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. |
1352
- | **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. |
1353
- | **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. |
1354
- | **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. |
1355
- | **forEach** | (callbackfn: (value: T, index: number, array: T[]) =&gt; void, thisArg?: any) =&gt; void | Performs the specified action for each element in an array. |
1356
- | **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. |
1357
- | **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. |
1358
- | **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. |
1359
- | **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. |
1360
- | **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1361
- | **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. |
1362
- | **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. |
1363
- | **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1364
- | **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. |
1365
-
1366
-
1367
- #### ConcatArray
1368
-
1369
- | Prop | Type |
1370
- | ------------ | ------------------- |
1371
- | **`length`** | <code>number</code> |
1372
-
1373
- | Method | Signature |
1374
- | --------- | ------------------------------------------------------------------ |
1375
- | **join** | (separator?: string \| undefined) =&gt; string |
1376
- | **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; 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>&lt;<a href="#assignmentproperty">AssignmentProperty</a> \| <a href="#restelement">RestElement</a>&gt;</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>&lt;<a href="#pattern">Pattern</a> \| null&gt;</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> |
1467
+ #### GleapNetworkLogEntry
1457
1468
 
1469
+ A network log entry (fetch / XMLHttpRequest) as the plugin hands it to the native SDK.
1458
1470
 
1459
- #### Super
1471
+ | Prop | Type | Description |
1472
+ | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
1473
+ | **`date`** | <code>string</code> | ISO-8601 UTC timestamp of the request start. |
1474
+ | **`type`** | <code>string</code> | HTTP method, uppercase. |
1475
+ | **`url`** | <code>string</code> | |
1476
+ | **`duration`** | <code>number</code> | Milliseconds from the request start to the response headers (or the failure). |
1477
+ | **`success`** | <code>boolean</code> | true when an HTTP response arrived (any status), false on a transport error, abort or timeout. |
1478
+ | **`request`** | <code>{ headers?: { [name: string]: string; }; payload?: string; }</code> | |
1479
+ | **`response`** | <code>{ status?: number; statusText?: string; headers?: { [name: string]: string; }; responseText?: string; errorText?: string; }</code> | |
1460
1480
 
1461
- | Prop | Type |
1462
- | ---------- | ----------------------------------------- |
1463
- | **`type`** | <code>'<a href="#super">Super</a>'</code> |
1464
1481
 
1482
+ #### GleapConsoleLogEntry
1465
1483
 
1466
- #### PrivateIdentifier
1484
+ A console log entry as the plugin hands it to the native SDK.
1467
1485
 
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
-
1491
-
1492
- #### SimpleCallExpression
1493
-
1494
- | Prop | Type |
1495
- | -------------- | ----------------------------------------------------------- |
1496
- | **`type`** | <code>'<a href="#callexpression">CallExpression</a>'</code> |
1497
- | **`optional`** | <code>boolean</code> |
1498
-
1499
-
1500
- #### NewExpression
1501
-
1502
- | Prop | Type |
1503
- | ---------- | --------------------------------------------------------- |
1504
- | **`type`** | <code>'<a href="#newexpression">NewExpression</a>'</code> |
1505
-
1506
-
1507
- #### ChainExpression
1508
-
1509
- | Prop | Type |
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) =&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. |
1574
- | **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. |
1575
- | **compile** | () =&gt; 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>&lt;<a href="#property">Property</a> \| <a href="#spreadelement">SpreadElement</a>&gt;</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> |
1486
+ | Prop | Type | Description |
1487
+ | -------------- | ------------------------------------------- | ----------------------------------------- |
1488
+ | **`date`** | <code>string</code> | ISO-8601 UTC timestamp with milliseconds. |
1489
+ | **`priority`** | <code>'ERROR' \| 'WARNING' \| 'INFO'</code> | |
1490
+ | **`log`** | <code>string</code> | |
1900
1491
 
1901
1492
 
1902
1493
  #### PluginListenerHandle
@@ -1906,6 +1497,17 @@ Creates a new function.
1906
1497
  | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
1907
1498
 
1908
1499
 
1500
+ #### GleapLogConfig
1501
+
1502
+ The network log settings of your Gleap project, sent by the native SDK once its config is loaded.
1503
+
1504
+ | Prop | Type |
1505
+ | ----------------------------- | --------------------- |
1506
+ | **`enableNetworkLogs`** | <code>boolean</code> |
1507
+ | **`networkLogPropsToIgnore`** | <code>string[]</code> |
1508
+ | **`networkLogBlacklist`** | <code>string[]</code> |
1509
+
1510
+
1909
1511
  #### GleapEventMessage
1910
1512
 
1911
1513
  | Prop | Type |
@@ -1924,74 +1526,11 @@ Creates a new function.
1924
1526
  ### Type Aliases
1925
1527
 
1926
1528
 
1927
- #### PropertyKey
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>"=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "&lt;&lt;=" | "&gt;&gt;=" | "&gt;&gt;&gt;=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??="</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>"==" | "!=" | "===" | "!==" | "&lt;" | "&lt;=" | "&gt;" | "&gt;=" | "&lt;&lt;" | "&gt;&gt;" | "&gt;&gt;&gt;" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "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
-
1529
+ #### Record
1991
1530
 
1992
- #### Declaration
1531
+ Construct a type with a set of properties K of type T
1993
1532
 
1994
- <code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#variabledeclaration">VariableDeclaration</a> | <a href="#classdeclaration">ClassDeclaration</a></code>
1533
+ <code>{
1995
1534
  [P in K]: T;
1996
1535
  }</code>
1997
1536
 
1998
1537
 
1999
1538
  #### GleapEventCallback