44// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55
66export namespace BugReporting {
7+ function setEnabled ( isEnabled : boolean ) : void ;
78 function setInvocationEvents ( invocationEvents : invocationEvent [ ] ) : void ;
89 function invoke ( ) : void ;
910 function setInvocationOptions ( invocationOptions : invocationOptions [ ] ) : void ;
@@ -14,7 +15,6 @@ export namespace BugReporting {
1415 function onInvokeHandler ( preInvocationHandler : ( ) => void ) : void ;
1516 function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
1617 function onSDKDismissedHandler ( postInvocationHandler : ( ) => void ) : void ;
17- function dismiss ( ) : void ;
1818 function setPromptOptionsEnabled (
1919 chat : boolean ,
2020 bug : boolean ,
@@ -24,6 +24,10 @@ export namespace BugReporting {
2424 function setShakingThresholdForiPad ( iPadShakingThreshold : number ) : void ;
2525 function setShakingThresholdForAndroid ( androidThreshold : number ) : void ;
2626 function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
27+ function setReportTypes ( types : reportType ) : void ;
28+ function showWithOptions (
29+ type : reportType ,
30+ options : option [ ] ) : void ;
2731 enum invocationEvent {
2832 none ,
2933 shake ,
@@ -49,6 +53,24 @@ export namespace BugReporting {
4953 enabledWithOptionalFields ,
5054 disabled
5155 }
56+ enum reportType {
57+ bug ,
58+ feedback
59+ }
60+ enum option {
61+ emailFieldHidden ,
62+ emailFieldOptional ,
63+ commentFieldRequired ,
64+ disablePostSendingDialog
65+ }
66+ }
67+ export namespace Chats {
68+ function setEnabled ( isEnabled : boolean ) : void ;
69+ function show ( ) : void ;
70+ }
71+ export namespace CrashReporting {
72+ function setEnabled ( isEnabled : boolean ) : void ;
73+ function reportJSException ( Exception : object ) : void ;
5274}
5375export namespace FeatureRequests {
5476 function setEmailFieldRequired (
@@ -63,7 +85,17 @@ export namespace FeatureRequests {
6385 addCommentToFeature
6486 }
6587}
88+ export namespace Replies {
89+ function setEnabled ( isEnabled : boolean ) : void ;
90+ function hasChats ( callback : ( ) => void ) : void ;
91+ function show ( ) : void ;
92+ function setOnNewReplyReceivedCallback ( onNewReplyReceivedCallback : ( ) => void ) : void ;
93+ function getUnreadRepliesCount ( messageCountCallback : ( ) => void ) : void ;
94+ function setInAppNotificationsEnabled ( inAppNotificationsEnabled : boolean ) : void ;
95+ function setInAppNotificationSound ( shouldPlaySound : boolean ) : void ;
96+ }
6697export namespace Surveys {
98+ function setEnabled ( isEnabled : boolean ) : void ;
6799 function showSurveyIfAvailable ( ) : void ;
68100 function setThresholdForReshowingSurveyAfterDismiss (
69101 sessionCount : number ,
@@ -84,52 +116,23 @@ export function startWithToken(
84116 token : string ,
85117 invocationEvent : invocationEvent [ ]
86118 ) : void ;
87- export function invoke ( ) : void ;
88- export function invokeWithInvocationMode ( invocationMode : invocationMode ) : void ;
89- export function dismiss ( ) : void ;
90119export function setUserData ( userData : string ) : void ;
91120export function setAutoScreenRecordingEnabled ( autoScreenRecordingEnabled : boolean ) : void ;
92- export function setAutoScreenRecosetAutoScreenRecordingMaxDurationrdingEnabled ( autoScreenRecordingMaxDuration : number ) : void ;
93- export function IBGLog ( log : string ) : void ;
94- export function setUserStepsEnabled ( isUserStepsEnabled : boolean ) : void ;
121+ export function setAutoScreenRecordingMaxDuration ( autoScreenRecordingMaxDuration : number ) : void ;
122+ export function setTrackUserSteps ( isEnabled : boolean ) : void ;
95123export function setIBGLogPrintsToConsole ( printsToConsole : boolean ) : void ;
96- export function setCrashReportingEnabled ( enableCrashReporter : boolean ) : void ;
97- export function setPreSendingHandler ( preSendingHandler : ( ) => void ) : void ;
98124export function setDidSelectPromptOptionHandler ( didSelectPromptOptionHandler : ( ) => void ) : void ;
99- export function showSurveyWithToken ( surveyToken : string ) : void ;
100- export function hasRespondedToSurveyWithToken (
101- surveyToken : string ,
102- surveyTokenCallback : ( ) => void
103- ) : void ;
104125export function setSessionProfilerEnabled ( sessionProfilerEnabled : boolean ) : void ;
105- export function setPreInvocationHandler ( preInvocationHandler : ( ) => void ) : void ;
106- export function setPostInvocationHandler ( postInvocationHandler : ( ) => void ) : void ;
107- export function showIntroMessage ( ) : void ;
108- export function setUserEmail ( userEmail : string ) : void ;
109- export function setUserName ( userName : string ) : void ;
110- export function setWillSkipScreenshotAnnotation ( setWillSkipScreenshotAnnotation : boolean ) : void ;
111- export function getUnreadMessagesCount ( messageCountCallback : ( ) => void ) : void ;
112- export function setInvocationEvent ( invocationEvent : invocationEvent ) : void ;
113126export function setPushNotificationsEnabled ( isPushNotificationEnabled : boolean ) : void ;
114- export function setEmailFieldRequired ( isEmailFieldRequired : boolean ) : void ;
115127export function setEmailFieldRequiredForActions (
116128 isEmailFieldRequired : boolean ,
117129 actionTypes : actionTypes
118130 ) : void ;
119- export function setCommentFieldRequired ( isCommentFieldRequired : boolean ) : void ;
120- export function setShakingThresholdForIPhone (
121- iPhoneShakingThreshold : number ,
122- iPadShakingThreshold : number
123- ) : void ;
124- export function setShakingThresholdForiPhone ( iPhoneShakingThreshold : number ) : void ;
125- export function setShakingThresholdForiPad ( iPadShakingThreshold : number ) : void ;
126- export function setShakingThresholdForAndroid ( androidThreshold : number ) : void ;
127131export function setFloatingButtonEdge (
128132 floatingButtonEdge : number ,
129133 offsetFromTop : number
130134 ) : void ;
131135export function setLocale ( locale : locale ) : void ;
132- export function setIntroMessageEnabled ( isIntroMessageEnabled : boolean ) : void ;
133136export function setColorTheme ( colorTheme : colorTheme ) : void ;
134137export function setPrimaryColor ( setPrimaryColor : string ) : void ;
135138export function appendTags ( tags : string [ ] ) : void ;
@@ -139,32 +142,17 @@ export function setstringToKey(
139142 string : string ,
140143 key : string
141144 ) : void ;
142- export function setAttachmentTypesEnabled (
143- screenshot : boolean ,
144- extraScreenshot : boolean ,
145- galleryImage : boolean ,
146- voiceNote : boolean ,
147- screenRecording : boolean
148- ) : void ;
149145export function setEnabledAttachmentTypes (
150146 screenshot : boolean ,
151147 extraScreenshot : boolean ,
152148 galleryImage : boolean ,
153149 screenRecording : boolean
154150 ) : void ;
155- export function setChatNotificationEnabled ( isChatNotificationEnabled : boolean ) : void ;
156- export function setOnNewMessageHandler ( onNewMessageHandler : ( ) => void ) : void ;
157- export function isInstabugNotification (
158- dict : any ,
159- isInstabugNotificationCallback : ( ) => void
160- ) : void ;
161151export function identifyUserWithEmail (
162152 email : string ,
163153 name : string
164154 ) : void ;
165155export function logOut ( ) : void ;
166- export function setReportCategories ( ...titles : string [ ] ) : void ;
167- export function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
168156export function logUserEventWithName ( name : string , params ?: any ) : void ;
169157export function logVerbose ( message : string ) : void ;
170158export function logInfo ( message : string ) : void ;
@@ -185,36 +173,20 @@ export function removeUserAttribute(key: string): void;
185173export function getAllUserAttributes ( userAttributesCallback : ( ) => void ) : void ;
186174export function clearAllUserAttributes ( ) : void ;
187175export function setViewHierarchyEnabled ( viewHierarchyEnabled : boolean ) : void ;
188- export function setSurveysEnabled ( surveysEnabled : boolean ) : void ;
189- export function showSurveysIfAvailable ( ) : void ;
190- export function setWillShowSurveyHandler ( willShowSurveyHandler : ( ) => void ) : void ;
191- export function setDidDismissSurveyHandler ( didDismissSurveyHandler : ( ) => void ) : void ;
192- export function setPromptOptionsEnabled (
193- chat : boolean ,
194- bug : boolean ,
195- feedback : boolean
196- ) : void ;
197176export function setDebugEnabled ( isDebugEnabled : boolean ) : void ;
198177export function enable ( ) : void ;
199178export function disable ( ) : void ;
200179export function isRunningLive ( runningLiveCallBack : ( ) => void ) : void ;
201- export function setSuccessDialogEnabled ( enabled : boolean ) : void ;
202- export function setEnableInAppNotificationSound ( shouldPlaySound : boolean ) : void ;
203- export function reportJSException ( errorObject : any ) : void ;
204180export function setVideoRecordingFloatingButtonPosition ( position : IBGPosition ) : void ;
205- export function setThresholdForReshowingSurveyAfterDismiss (
206- sessionCount : number ,
207- daysCount : number
208- ) : void ;
209- export function setAutoShowingSurveysEnabled ( autoShowingSurveysEnabled : boolean ) : void ;
210- export function showFeatureRequests ( ) : void ;
211181export function setShouldShowSurveysWelcomeScreen ( shouldShowWelcomeScreen : boolean ) : void ;
212182export function showWelcomeMessage ( welcomeMessageMode : welcomeMessageMode ) : void ;
213183export function setWelcomeMessageMode ( welcomeMessageMode : welcomeMessageMode ) : void ;
214184export function addFileAttachment (
215185 filePath : string ,
216186 fileName : string
217187 ) : void ;
188+ export function show ( ) : void ;
189+ export function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
218190export function callPrivateApi (
219191 apiName : string ,
220192 param : any
0 commit comments