capacitor-gleap-plugin 8.2.5 → 8.4.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.
- package/CapacitorGleapPlugin.podspec +1 -1
- package/README.md +177 -12
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/congrapp/b2c/plugins/gleap/GleapPlugin.java +100 -4
- package/dist/docs.json +415 -9
- package/dist/esm/definitions.d.ts +73 -4
- package/dist/esm/web.d.ts +41 -2
- package/dist/esm/web.js +31 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +31 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +31 -4
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/GleapPlugin.m +6 -0
- package/ios/Plugin/GleapPlugin.swift +86 -1
- package/package.json +2 -2
package/dist/docs.json
CHANGED
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "identify",
|
|
31
|
-
"signature": "(options: { userId: string; userHash?: string; name?: string; email?: string; phone?: string; value?: number; }) => Promise<{ identify: boolean; }>",
|
|
31
|
+
"signature": "(options: { userId: string; userHash?: string; name?: string; email?: string; phone?: string; value?: number; customData?: Object; }) => Promise<{ identify: boolean; }>",
|
|
32
32
|
"parameters": [
|
|
33
33
|
{
|
|
34
34
|
"name": "options",
|
|
35
35
|
"docs": "",
|
|
36
|
-
"type": "{ userId: string; userHash?: string | undefined; name?: string | undefined; email?: string | undefined; phone?: string | undefined; value?: number | undefined; }"
|
|
36
|
+
"type": "{ userId: string; userHash?: string | undefined; name?: string | undefined; email?: string | undefined; phone?: string | undefined; value?: number | undefined; customData?: Object | undefined; }"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"returns": "Promise<{ identify: boolean; }>",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"docs": "Set user identity",
|
|
47
|
-
"complexTypes": [
|
|
47
|
+
"complexTypes": [
|
|
48
|
+
"Object"
|
|
49
|
+
],
|
|
48
50
|
"slug": "identify"
|
|
49
51
|
},
|
|
50
52
|
{
|
|
@@ -212,6 +214,27 @@
|
|
|
212
214
|
"complexTypes": [],
|
|
213
215
|
"slug": "trackevent"
|
|
214
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"name": "trackPage",
|
|
219
|
+
"signature": "(options: { pageName: string; }) => Promise<{ trackedPage: boolean; }>",
|
|
220
|
+
"parameters": [
|
|
221
|
+
{
|
|
222
|
+
"name": "options",
|
|
223
|
+
"docs": "",
|
|
224
|
+
"type": "{ pageName: string; }"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"returns": "Promise<{ trackedPage: boolean; }>",
|
|
228
|
+
"tags": [
|
|
229
|
+
{
|
|
230
|
+
"name": "since",
|
|
231
|
+
"text": "8.4.1"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"docs": "Track a page view",
|
|
235
|
+
"complexTypes": [],
|
|
236
|
+
"slug": "trackpage"
|
|
237
|
+
},
|
|
215
238
|
{
|
|
216
239
|
"name": "setEventCallback",
|
|
217
240
|
"signature": "(callback: GleapEventCallback) => Promise<CallbackID>",
|
|
@@ -333,28 +356,145 @@
|
|
|
333
356
|
},
|
|
334
357
|
{
|
|
335
358
|
"name": "openNews",
|
|
336
|
-
"signature": "() => Promise<{ openedNews: boolean; }>",
|
|
337
|
-
"parameters": [
|
|
359
|
+
"signature": "(options: { showBackButton?: boolean; }) => Promise<{ openedNews: boolean; }>",
|
|
360
|
+
"parameters": [
|
|
361
|
+
{
|
|
362
|
+
"name": "options",
|
|
363
|
+
"docs": "",
|
|
364
|
+
"type": "{ showBackButton?: boolean | undefined; }"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
338
367
|
"returns": "Promise<{ openedNews: boolean; }>",
|
|
339
368
|
"tags": [
|
|
340
369
|
{
|
|
341
370
|
"name": "since",
|
|
342
|
-
"text": "8.0
|
|
371
|
+
"text": "8.4.0"
|
|
343
372
|
}
|
|
344
373
|
],
|
|
345
374
|
"docs": "Open news",
|
|
346
375
|
"complexTypes": [],
|
|
347
376
|
"slug": "opennews"
|
|
348
377
|
},
|
|
378
|
+
{
|
|
379
|
+
"name": "openNewsArticle",
|
|
380
|
+
"signature": "(options: { articleId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>",
|
|
381
|
+
"parameters": [
|
|
382
|
+
{
|
|
383
|
+
"name": "options",
|
|
384
|
+
"docs": "",
|
|
385
|
+
"type": "{ articleId: string; showBackButton?: boolean | undefined; }"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"returns": "Promise<{ opened: boolean; }>",
|
|
389
|
+
"tags": [
|
|
390
|
+
{
|
|
391
|
+
"name": "since",
|
|
392
|
+
"text": "8.4.0"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"docs": "Open news article",
|
|
396
|
+
"complexTypes": [],
|
|
397
|
+
"slug": "opennewsarticle"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "openHelpCenter",
|
|
401
|
+
"signature": "(options: { showBackButton?: boolean; }) => Promise<{ opened: boolean; }>",
|
|
402
|
+
"parameters": [
|
|
403
|
+
{
|
|
404
|
+
"name": "options",
|
|
405
|
+
"docs": "",
|
|
406
|
+
"type": "{ showBackButton?: boolean | undefined; }"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"returns": "Promise<{ opened: boolean; }>",
|
|
410
|
+
"tags": [
|
|
411
|
+
{
|
|
412
|
+
"name": "since",
|
|
413
|
+
"text": "8.4.0"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"docs": "Open help center",
|
|
417
|
+
"complexTypes": [],
|
|
418
|
+
"slug": "openhelpcenter"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "openHelpCenterArticle",
|
|
422
|
+
"signature": "(options: { articleId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>",
|
|
423
|
+
"parameters": [
|
|
424
|
+
{
|
|
425
|
+
"name": "options",
|
|
426
|
+
"docs": "",
|
|
427
|
+
"type": "{ articleId: string; showBackButton?: boolean | undefined; }"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"returns": "Promise<{ opened: boolean; }>",
|
|
431
|
+
"tags": [
|
|
432
|
+
{
|
|
433
|
+
"name": "since",
|
|
434
|
+
"text": "8.4.0"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"docs": "Open help center article",
|
|
438
|
+
"complexTypes": [],
|
|
439
|
+
"slug": "openhelpcenterarticle"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "openHelpCenterCollection",
|
|
443
|
+
"signature": "(options: { collectionId: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>",
|
|
444
|
+
"parameters": [
|
|
445
|
+
{
|
|
446
|
+
"name": "options",
|
|
447
|
+
"docs": "",
|
|
448
|
+
"type": "{ collectionId: string; showBackButton?: boolean | undefined; }"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"returns": "Promise<{ opened: boolean; }>",
|
|
452
|
+
"tags": [
|
|
453
|
+
{
|
|
454
|
+
"name": "since",
|
|
455
|
+
"text": "8.4.0"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"docs": "Open help center collection",
|
|
459
|
+
"complexTypes": [],
|
|
460
|
+
"slug": "openhelpcentercollection"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "searchHelpCenter",
|
|
464
|
+
"signature": "(options: { term: string; showBackButton?: boolean; }) => Promise<{ opened: boolean; }>",
|
|
465
|
+
"parameters": [
|
|
466
|
+
{
|
|
467
|
+
"name": "options",
|
|
468
|
+
"docs": "",
|
|
469
|
+
"type": "{ term: string; showBackButton?: boolean | undefined; }"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
"returns": "Promise<{ opened: boolean; }>",
|
|
473
|
+
"tags": [
|
|
474
|
+
{
|
|
475
|
+
"name": "since",
|
|
476
|
+
"text": "8.4.0"
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
"docs": "Search help center",
|
|
480
|
+
"complexTypes": [],
|
|
481
|
+
"slug": "searchhelpcenter"
|
|
482
|
+
},
|
|
349
483
|
{
|
|
350
484
|
"name": "openFeatureRequests",
|
|
351
|
-
"signature": "() => Promise<{ openedFeatureRequests: boolean; }>",
|
|
352
|
-
"parameters": [
|
|
485
|
+
"signature": "(options: { showBackButton?: boolean; }) => Promise<{ openedFeatureRequests: boolean; }>",
|
|
486
|
+
"parameters": [
|
|
487
|
+
{
|
|
488
|
+
"name": "options",
|
|
489
|
+
"docs": "",
|
|
490
|
+
"type": "{ showBackButton?: boolean | undefined; }"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
353
493
|
"returns": "Promise<{ openedFeatureRequests: boolean; }>",
|
|
354
494
|
"tags": [
|
|
355
495
|
{
|
|
356
496
|
"name": "since",
|
|
357
|
-
"text": "8.0
|
|
497
|
+
"text": "8.4.0"
|
|
358
498
|
}
|
|
359
499
|
],
|
|
360
500
|
"docs": "Open feature requests",
|
|
@@ -488,6 +628,272 @@
|
|
|
488
628
|
"properties": []
|
|
489
629
|
},
|
|
490
630
|
"interfaces": [
|
|
631
|
+
{
|
|
632
|
+
"name": "Object",
|
|
633
|
+
"slug": "object",
|
|
634
|
+
"docs": "Provides functionality common to all JavaScript objects.",
|
|
635
|
+
"tags": [],
|
|
636
|
+
"methods": [
|
|
637
|
+
{
|
|
638
|
+
"name": "toString",
|
|
639
|
+
"signature": "() => string",
|
|
640
|
+
"parameters": [],
|
|
641
|
+
"returns": "string",
|
|
642
|
+
"tags": [],
|
|
643
|
+
"docs": "Returns a string representation of an object.",
|
|
644
|
+
"complexTypes": [],
|
|
645
|
+
"slug": "tostring"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "toLocaleString",
|
|
649
|
+
"signature": "() => string",
|
|
650
|
+
"parameters": [],
|
|
651
|
+
"returns": "string",
|
|
652
|
+
"tags": [],
|
|
653
|
+
"docs": "Returns a date converted to a string using the current locale.",
|
|
654
|
+
"complexTypes": [],
|
|
655
|
+
"slug": "tolocalestring"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "valueOf",
|
|
659
|
+
"signature": "() => Object",
|
|
660
|
+
"parameters": [],
|
|
661
|
+
"returns": "Object",
|
|
662
|
+
"tags": [],
|
|
663
|
+
"docs": "Returns the primitive value of the specified object.",
|
|
664
|
+
"complexTypes": [
|
|
665
|
+
"Object"
|
|
666
|
+
],
|
|
667
|
+
"slug": "valueof"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "hasOwnProperty",
|
|
671
|
+
"signature": "(v: PropertyKey) => boolean",
|
|
672
|
+
"parameters": [
|
|
673
|
+
{
|
|
674
|
+
"name": "v",
|
|
675
|
+
"docs": "A property name.",
|
|
676
|
+
"type": "string | number | symbol"
|
|
677
|
+
}
|
|
678
|
+
],
|
|
679
|
+
"returns": "boolean",
|
|
680
|
+
"tags": [
|
|
681
|
+
{
|
|
682
|
+
"name": "param",
|
|
683
|
+
"text": "v A property name."
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"docs": "Determines whether an object has a property with the specified name.",
|
|
687
|
+
"complexTypes": [
|
|
688
|
+
"PropertyKey"
|
|
689
|
+
],
|
|
690
|
+
"slug": "hasownproperty"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "isPrototypeOf",
|
|
694
|
+
"signature": "(v: Object) => boolean",
|
|
695
|
+
"parameters": [
|
|
696
|
+
{
|
|
697
|
+
"name": "v",
|
|
698
|
+
"docs": "Another object whose prototype chain is to be checked.",
|
|
699
|
+
"type": "Object"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"returns": "boolean",
|
|
703
|
+
"tags": [
|
|
704
|
+
{
|
|
705
|
+
"name": "param",
|
|
706
|
+
"text": "v Another object whose prototype chain is to be checked."
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
"docs": "Determines whether an object exists in another object's prototype chain.",
|
|
710
|
+
"complexTypes": [
|
|
711
|
+
"Object"
|
|
712
|
+
],
|
|
713
|
+
"slug": "isprototypeof"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "propertyIsEnumerable",
|
|
717
|
+
"signature": "(v: PropertyKey) => boolean",
|
|
718
|
+
"parameters": [
|
|
719
|
+
{
|
|
720
|
+
"name": "v",
|
|
721
|
+
"docs": "A property name.",
|
|
722
|
+
"type": "string | number | symbol"
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"returns": "boolean",
|
|
726
|
+
"tags": [
|
|
727
|
+
{
|
|
728
|
+
"name": "param",
|
|
729
|
+
"text": "v A property name."
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
"docs": "Determines whether a specified property is enumerable.",
|
|
733
|
+
"complexTypes": [
|
|
734
|
+
"PropertyKey"
|
|
735
|
+
],
|
|
736
|
+
"slug": "propertyisenumerable"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"properties": [
|
|
740
|
+
{
|
|
741
|
+
"name": "constructor",
|
|
742
|
+
"tags": [],
|
|
743
|
+
"docs": "The initial value of Object.prototype.constructor is the standard built-in Object constructor.",
|
|
744
|
+
"complexTypes": [
|
|
745
|
+
"Function"
|
|
746
|
+
],
|
|
747
|
+
"type": "Function"
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "Function",
|
|
753
|
+
"slug": "function",
|
|
754
|
+
"docs": "Creates a new function.",
|
|
755
|
+
"tags": [],
|
|
756
|
+
"methods": [
|
|
757
|
+
{
|
|
758
|
+
"name": "apply",
|
|
759
|
+
"signature": "(this: Function, thisArg: any, argArray?: any) => any",
|
|
760
|
+
"parameters": [
|
|
761
|
+
{
|
|
762
|
+
"name": "thisArg",
|
|
763
|
+
"docs": "The object to be used as the this object.",
|
|
764
|
+
"type": "any"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "argArray",
|
|
768
|
+
"docs": "A set of arguments to be passed to the function.",
|
|
769
|
+
"type": "any"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"returns": "any",
|
|
773
|
+
"tags": [
|
|
774
|
+
{
|
|
775
|
+
"name": "param",
|
|
776
|
+
"text": "thisArg The object to be used as the this object."
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "param",
|
|
780
|
+
"text": "argArray A set of arguments to be passed to the function."
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"docs": "Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.",
|
|
784
|
+
"complexTypes": [
|
|
785
|
+
"Function"
|
|
786
|
+
],
|
|
787
|
+
"slug": "apply"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "call",
|
|
791
|
+
"signature": "(this: Function, thisArg: any, ...argArray: any[]) => any",
|
|
792
|
+
"parameters": [
|
|
793
|
+
{
|
|
794
|
+
"name": "thisArg",
|
|
795
|
+
"docs": "The object to be used as the current object.",
|
|
796
|
+
"type": "any"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "argArray",
|
|
800
|
+
"docs": "A list of arguments to be passed to the method.",
|
|
801
|
+
"type": "any[]"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"returns": "any",
|
|
805
|
+
"tags": [
|
|
806
|
+
{
|
|
807
|
+
"name": "param",
|
|
808
|
+
"text": "thisArg The object to be used as the current object."
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "param",
|
|
812
|
+
"text": "argArray A list of arguments to be passed to the method."
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
"docs": "Calls a method of an object, substituting another object for the current object.",
|
|
816
|
+
"complexTypes": [
|
|
817
|
+
"Function"
|
|
818
|
+
],
|
|
819
|
+
"slug": "call"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "bind",
|
|
823
|
+
"signature": "(this: Function, thisArg: any, ...argArray: any[]) => any",
|
|
824
|
+
"parameters": [
|
|
825
|
+
{
|
|
826
|
+
"name": "thisArg",
|
|
827
|
+
"docs": "An object to which the this keyword can refer inside the new function.",
|
|
828
|
+
"type": "any"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "argArray",
|
|
832
|
+
"docs": "A list of arguments to be passed to the new function.",
|
|
833
|
+
"type": "any[]"
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"returns": "any",
|
|
837
|
+
"tags": [
|
|
838
|
+
{
|
|
839
|
+
"name": "param",
|
|
840
|
+
"text": "thisArg An object to which the this keyword can refer inside the new function."
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"name": "param",
|
|
844
|
+
"text": "argArray A list of arguments to be passed to the new function."
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
"docs": "For a given function, creates a bound function that has the same body as the original function.\r\nThe this object of the bound function is associated with the specified object, and has the specified initial parameters.",
|
|
848
|
+
"complexTypes": [
|
|
849
|
+
"Function"
|
|
850
|
+
],
|
|
851
|
+
"slug": "bind"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "toString",
|
|
855
|
+
"signature": "() => string",
|
|
856
|
+
"parameters": [],
|
|
857
|
+
"returns": "string",
|
|
858
|
+
"tags": [],
|
|
859
|
+
"docs": "Returns a string representation of a function.",
|
|
860
|
+
"complexTypes": [],
|
|
861
|
+
"slug": "tostring"
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"properties": [
|
|
865
|
+
{
|
|
866
|
+
"name": "prototype",
|
|
867
|
+
"tags": [],
|
|
868
|
+
"docs": "",
|
|
869
|
+
"complexTypes": [],
|
|
870
|
+
"type": "any"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "length",
|
|
874
|
+
"tags": [],
|
|
875
|
+
"docs": "",
|
|
876
|
+
"complexTypes": [],
|
|
877
|
+
"type": "number"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "arguments",
|
|
881
|
+
"tags": [],
|
|
882
|
+
"docs": "",
|
|
883
|
+
"complexTypes": [],
|
|
884
|
+
"type": "any"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "caller",
|
|
888
|
+
"tags": [],
|
|
889
|
+
"docs": "",
|
|
890
|
+
"complexTypes": [
|
|
891
|
+
"Function"
|
|
892
|
+
],
|
|
893
|
+
"type": "Function"
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
|
+
},
|
|
491
897
|
{
|
|
492
898
|
"name": "Boolean",
|
|
493
899
|
"slug": "boolean",
|
|
@@ -23,6 +23,7 @@ export interface GleapPlugin {
|
|
|
23
23
|
email?: string;
|
|
24
24
|
phone?: string;
|
|
25
25
|
value?: number;
|
|
26
|
+
customData?: Object;
|
|
26
27
|
}): Promise<{
|
|
27
28
|
identify: boolean;
|
|
28
29
|
}>;
|
|
@@ -117,6 +118,16 @@ export interface GleapPlugin {
|
|
|
117
118
|
}): Promise<{
|
|
118
119
|
loggedEvent: boolean;
|
|
119
120
|
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Track a page view
|
|
123
|
+
*
|
|
124
|
+
* @since 8.4.1
|
|
125
|
+
*/
|
|
126
|
+
trackPage(options: {
|
|
127
|
+
pageName: string;
|
|
128
|
+
}): Promise<{
|
|
129
|
+
trackedPage: boolean;
|
|
130
|
+
}>;
|
|
120
131
|
/**
|
|
121
132
|
*
|
|
122
133
|
*
|
|
@@ -184,17 +195,75 @@ export interface GleapPlugin {
|
|
|
184
195
|
/**
|
|
185
196
|
* Open news
|
|
186
197
|
*
|
|
187
|
-
* @since 8.0
|
|
198
|
+
* @since 8.4.0
|
|
188
199
|
*/
|
|
189
|
-
openNews(
|
|
200
|
+
openNews(options: {
|
|
201
|
+
showBackButton?: boolean;
|
|
202
|
+
}): Promise<{
|
|
190
203
|
openedNews: boolean;
|
|
191
204
|
}>;
|
|
192
205
|
/**
|
|
206
|
+
* Open news article
|
|
207
|
+
*
|
|
208
|
+
* @since 8.4.0
|
|
209
|
+
*/
|
|
210
|
+
openNewsArticle(options: {
|
|
211
|
+
articleId: string;
|
|
212
|
+
showBackButton?: boolean;
|
|
213
|
+
}): Promise<{
|
|
214
|
+
opened: boolean;
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* Open help center
|
|
218
|
+
*
|
|
219
|
+
* @since 8.4.0
|
|
220
|
+
*/
|
|
221
|
+
openHelpCenter(options: {
|
|
222
|
+
showBackButton?: boolean;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
opened: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
/**
|
|
227
|
+
* Open help center article
|
|
228
|
+
*
|
|
229
|
+
* @since 8.4.0
|
|
230
|
+
*/
|
|
231
|
+
openHelpCenterArticle(options: {
|
|
232
|
+
articleId: string;
|
|
233
|
+
showBackButton?: boolean;
|
|
234
|
+
}): Promise<{
|
|
235
|
+
opened: boolean;
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Open help center collection
|
|
239
|
+
*
|
|
240
|
+
* @since 8.4.0
|
|
241
|
+
*/
|
|
242
|
+
openHelpCenterCollection(options: {
|
|
243
|
+
collectionId: string;
|
|
244
|
+
showBackButton?: boolean;
|
|
245
|
+
}): Promise<{
|
|
246
|
+
opened: boolean;
|
|
247
|
+
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Search help center
|
|
250
|
+
*
|
|
251
|
+
* @since 8.4.0
|
|
252
|
+
*/
|
|
253
|
+
searchHelpCenter(options: {
|
|
254
|
+
term: string;
|
|
255
|
+
showBackButton?: boolean;
|
|
256
|
+
}): Promise<{
|
|
257
|
+
opened: boolean;
|
|
258
|
+
}>;
|
|
259
|
+
/**
|
|
193
260
|
* Open feature requests
|
|
194
261
|
*
|
|
195
|
-
* @since 8.0
|
|
262
|
+
* @since 8.4.0
|
|
196
263
|
*/
|
|
197
|
-
openFeatureRequests(
|
|
264
|
+
openFeatureRequests(options: {
|
|
265
|
+
showBackButton?: boolean;
|
|
266
|
+
}): Promise<{
|
|
198
267
|
openedFeatureRequests: boolean;
|
|
199
268
|
}>;
|
|
200
269
|
/**
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare class GleapWeb extends WebPlugin implements GleapPlugin {
|
|
|
20
20
|
identify(options: {
|
|
21
21
|
userId: string;
|
|
22
22
|
userHash?: string | undefined;
|
|
23
|
+
customData?: Object | undefined;
|
|
23
24
|
name?: string | undefined;
|
|
24
25
|
email?: string | undefined;
|
|
25
26
|
phone?: string | undefined;
|
|
@@ -67,6 +68,11 @@ export declare class GleapWeb extends WebPlugin implements GleapPlugin {
|
|
|
67
68
|
}): Promise<{
|
|
68
69
|
loggedEvent: boolean;
|
|
69
70
|
}>;
|
|
71
|
+
trackPage(options: {
|
|
72
|
+
pageName: string;
|
|
73
|
+
}): Promise<{
|
|
74
|
+
trackedPage: boolean;
|
|
75
|
+
}>;
|
|
70
76
|
startFeedbackFlow(options: {
|
|
71
77
|
feedbackFlow?: string | undefined;
|
|
72
78
|
showBackButton?: boolean | undefined;
|
|
@@ -104,12 +110,45 @@ export declare class GleapWeb extends WebPlugin implements GleapPlugin {
|
|
|
104
110
|
open(): Promise<{
|
|
105
111
|
openedWidget: boolean;
|
|
106
112
|
}>;
|
|
107
|
-
openFeatureRequests(
|
|
113
|
+
openFeatureRequests(options: {
|
|
114
|
+
showBackButton?: boolean | undefined;
|
|
115
|
+
}): Promise<{
|
|
108
116
|
openedFeatureRequests: boolean;
|
|
109
117
|
}>;
|
|
110
|
-
openNews(
|
|
118
|
+
openNews(options: {
|
|
119
|
+
showBackButton?: boolean | undefined;
|
|
120
|
+
}): Promise<{
|
|
111
121
|
openedNews: boolean;
|
|
112
122
|
}>;
|
|
123
|
+
openNewsArticle(options: {
|
|
124
|
+
articleId: string;
|
|
125
|
+
showBackButton?: boolean | undefined;
|
|
126
|
+
}): Promise<{
|
|
127
|
+
opened: boolean;
|
|
128
|
+
}>;
|
|
129
|
+
openHelpCenter(options: {
|
|
130
|
+
showBackButton?: boolean | undefined;
|
|
131
|
+
}): Promise<{
|
|
132
|
+
opened: boolean;
|
|
133
|
+
}>;
|
|
134
|
+
openHelpCenterArticle(options: {
|
|
135
|
+
articleId: string;
|
|
136
|
+
showBackButton?: boolean | undefined;
|
|
137
|
+
}): Promise<{
|
|
138
|
+
opened: boolean;
|
|
139
|
+
}>;
|
|
140
|
+
openHelpCenterCollection(options: {
|
|
141
|
+
collectionId: string;
|
|
142
|
+
showBackButton?: boolean | undefined;
|
|
143
|
+
}): Promise<{
|
|
144
|
+
opened: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
searchHelpCenter(options: {
|
|
147
|
+
term: string;
|
|
148
|
+
showBackButton?: boolean | undefined;
|
|
149
|
+
}): Promise<{
|
|
150
|
+
opened: boolean;
|
|
151
|
+
}>;
|
|
113
152
|
close(): Promise<{
|
|
114
153
|
closedWidget: boolean;
|
|
115
154
|
}>;
|