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,53 +116,25 @@ 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 ;
95- export function setTrackUserSteps ( issetTrackUserSteps : boolean ) : void ;
121+ export function setAutoScreenRecordingMaxDuration ( autoScreenRecordingMaxDuration : number ) : void ;
122+ export function setTrackUserSteps ( isEnabled : boolean ) : void ;
96123export function setIBGLogPrintsToConsole ( printsToConsole : boolean ) : void ;
97124export function setCrashReportingEnabled ( enableCrashReporter : boolean ) : void ;
98- export function setPreSendingHandler ( preSendingHandler : ( ) => void ) : void ;
99125export function setDidSelectPromptOptionHandler ( didSelectPromptOptionHandler : ( ) => void ) : void ;
100- export function showSurveyWithToken ( surveyToken : string ) : void ;
101- export function hasRespondedToSurveyWithToken (
102- surveyToken : string ,
103- surveyTokenCallback : ( ) => void
104- ) : void ;
105126export function setSessionProfilerEnabled ( sessionProfilerEnabled : boolean ) : void ;
106- export function setPreInvocationHandler ( preInvocationHandler : ( ) => void ) : void ;
107- export function setPostInvocationHandler ( postInvocationHandler : ( ) => void ) : void ;
108- export function showIntroMessage ( ) : void ;
109- export function setUserEmail ( userEmail : string ) : void ;
110- export function setUserName ( userName : string ) : void ;
111- export function setWillSkipScreenshotAnnotation ( setWillSkipScreenshotAnnotation : boolean ) : void ;
112127export function getUnreadMessagesCount ( messageCountCallback : ( ) => void ) : void ;
113- export function setInvocationEvent ( invocationEvent : invocationEvent ) : void ;
114128export function setPushNotificationsEnabled ( isPushNotificationEnabled : boolean ) : void ;
115- export function setEmailFieldRequired ( isEmailFieldRequired : boolean ) : void ;
116129export function setEmailFieldRequiredForActions (
117130 isEmailFieldRequired : boolean ,
118131 actionTypes : actionTypes
119132 ) : void ;
120- export function setCommentFieldRequired ( isCommentFieldRequired : boolean ) : void ;
121- export function setShakingThresholdForIPhone (
122- iPhoneShakingThreshold : number ,
123- iPadShakingThreshold : number
124- ) : void ;
125- export function setShakingThresholdForiPhone ( iPhoneShakingThreshold : number ) : void ;
126- export function setShakingThresholdForiPad ( iPadShakingThreshold : number ) : void ;
127- export function setShakingThresholdForAndroid ( androidThreshold : number ) : void ;
128133export function setFloatingButtonEdge (
129134 floatingButtonEdge : number ,
130135 offsetFromTop : number
131136 ) : void ;
132137export function setLocale ( locale : locale ) : void ;
133- export function setIntroMessageEnabled ( isIntroMessageEnabled : boolean ) : void ;
134138export function setColorTheme ( colorTheme : colorTheme ) : void ;
135139export function setPrimaryColor ( setPrimaryColor : string ) : void ;
136140export function appendTags ( tags : string [ ] ) : void ;
@@ -140,32 +144,17 @@ export function setStringToKey(
140144 string : string ,
141145 key : strings ,
142146 ) : void ;
143- export function setAttachmentTypesEnabled (
144- screenshot : boolean ,
145- extraScreenshot : boolean ,
146- galleryImage : boolean ,
147- voiceNote : boolean ,
148- screenRecording : boolean
149- ) : void ;
150147export function setEnabledAttachmentTypes (
151148 screenshot : boolean ,
152149 extraScreenshot : boolean ,
153150 galleryImage : boolean ,
154151 screenRecording : boolean
155152 ) : void ;
156- export function setChatNotificationEnabled ( isChatNotificationEnabled : boolean ) : void ;
157- export function setOnNewMessageHandler ( onNewMessageHandler : ( ) => void ) : void ;
158- export function isInstabugNotification (
159- dict : any ,
160- isInstabugNotificationCallback : ( ) => void
161- ) : void ;
162153export function identifyUserWithEmail (
163154 email : string ,
164155 name : string
165156 ) : void ;
166157export function logOut ( ) : void ;
167- export function setReportCategories ( ...titles : string [ ] ) : void ;
168- export function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
169158export function logUserEventWithName ( name : string , params ?: any ) : void ;
170159export function logVerbose ( message : string ) : void ;
171160export function logInfo ( message : string ) : void ;
@@ -185,37 +174,26 @@ export function getUserAttribute(
185174export function removeUserAttribute ( key : string ) : void ;
186175export function getAllUserAttributes ( userAttributesCallback : ( ) => void ) : void ;
187176export function clearAllUserAttributes ( ) : void ;
177+ export function setChatNotificationEnabled ( isChatNotificationEnabled : boolean ) : void ;
178+ export function setOnNewMessageHandler ( onNewMessageHandler : ( ) => void ) : void ;
188179export function setViewHierarchyEnabled ( viewHierarchyEnabled : boolean ) : void ;
189180export function setSurveysEnabled ( surveysEnabled : boolean ) : void ;
190- export function showSurveysIfAvailable ( ) : void ;
191- export function setWillShowSurveyHandler ( willShowSurveyHandler : ( ) => void ) : void ;
192- export function setDidDismissSurveyHandler ( didDismissSurveyHandler : ( ) => void ) : void ;
193- export function setPromptOptionsEnabled (
194- chat : boolean ,
195- bug : boolean ,
196- feedback : boolean
197- ) : void ;
198181export function setDebugEnabled ( isDebugEnabled : boolean ) : void ;
199182export function enable ( ) : void ;
200183export function disable ( ) : void ;
201- export function isRunningLive ( runningLiveCallBack : ( ) => void ) : void ;
202- export function setSuccessDialogEnabled ( enabled : boolean ) : void ;
203184export function setEnableInAppNotificationSound ( shouldPlaySound : boolean ) : void ;
204- export function reportJSException ( errorObject : any ) : void ;
185+ export function reportJSException ( Exception : object ) : void ;
186+ export function isRunningLive ( runningLiveCallBack : ( ) => void ) : void ;
205187export function setVideoRecordingFloatingButtonPosition ( position : IBGPosition ) : void ;
206- export function setThresholdForReshowingSurveyAfterDismiss (
207- sessionCount : number ,
208- daysCount : number
209- ) : void ;
210- export function setAutoShowingSurveysEnabled ( autoShowingSurveysEnabled : boolean ) : void ;
211- export function showFeatureRequests ( ) : void ;
212188export function setShouldShowSurveysWelcomeScreen ( shouldShowWelcomeScreen : boolean ) : void ;
213189export function showWelcomeMessage ( welcomeMessageMode : welcomeMessageMode ) : void ;
214190export function setWelcomeMessageMode ( welcomeMessageMode : welcomeMessageMode ) : void ;
215191export function addFileAttachment (
216192 filePath : string ,
217193 fileName : string
218194 ) : void ;
195+ export function show ( ) : void ;
196+ export function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
219197export function callPrivateApi (
220198 apiName : string ,
221199 param : any
0 commit comments