4
4
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
5
6
6
export namespace BugReporting {
7
+ function setEnabled ( isEnabled : boolean ) : void ;
7
8
function setInvocationEvents ( invocationEvents : invocationEvent [ ] ) : void ;
8
9
function invoke ( ) : void ;
9
10
function setInvocationOptions ( invocationOptions : invocationOptions [ ] ) : void ;
@@ -14,7 +15,6 @@ export namespace BugReporting {
14
15
function onInvokeHandler ( preInvocationHandler : ( ) => void ) : void ;
15
16
function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
16
17
function onSDKDismissedHandler ( postInvocationHandler : ( ) => void ) : void ;
17
- function dismiss ( ) : void ;
18
18
function setPromptOptionsEnabled (
19
19
chat : boolean ,
20
20
bug : boolean ,
@@ -24,6 +24,10 @@ export namespace BugReporting {
24
24
function setShakingThresholdForiPad ( iPadShakingThreshold : number ) : void ;
25
25
function setShakingThresholdForAndroid ( androidThreshold : number ) : void ;
26
26
function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
27
+ function setReportTypes ( types : reportType ) : void ;
28
+ function showWithOptions (
29
+ type : reportType ,
30
+ options : option [ ] ) : void ;
27
31
enum invocationEvent {
28
32
none ,
29
33
shake ,
@@ -49,6 +53,24 @@ export namespace BugReporting {
49
53
enabledWithOptionalFields ,
50
54
disabled
51
55
}
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 ;
52
74
}
53
75
export namespace FeatureRequests {
54
76
function setEmailFieldRequired (
@@ -63,7 +85,17 @@ export namespace FeatureRequests {
63
85
addCommentToFeature
64
86
}
65
87
}
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
+ }
66
97
export namespace Surveys {
98
+ function setEnabled ( isEnabled : boolean ) : void ;
67
99
function showSurveyIfAvailable ( ) : void ;
68
100
function setThresholdForReshowingSurveyAfterDismiss (
69
101
sessionCount : number ,
@@ -84,52 +116,23 @@ export function startWithToken(
84
116
token : string ,
85
117
invocationEvent : invocationEvent [ ]
86
118
) : void ;
87
- export function invoke ( ) : void ;
88
- export function invokeWithInvocationMode ( invocationMode : invocationMode ) : void ;
89
- export function dismiss ( ) : void ;
90
119
export function setUserData ( userData : string ) : void ;
91
120
export 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 ;
95
123
export function setIBGLogPrintsToConsole ( printsToConsole : boolean ) : void ;
96
- export function setCrashReportingEnabled ( enableCrashReporter : boolean ) : void ;
97
- export function setPreSendingHandler ( preSendingHandler : ( ) => void ) : void ;
98
124
export function setDidSelectPromptOptionHandler ( didSelectPromptOptionHandler : ( ) => void ) : void ;
99
- export function showSurveyWithToken ( surveyToken : string ) : void ;
100
- export function hasRespondedToSurveyWithToken (
101
- surveyToken : string ,
102
- surveyTokenCallback : ( ) => void
103
- ) : void ;
104
125
export 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 ;
113
126
export function setPushNotificationsEnabled ( isPushNotificationEnabled : boolean ) : void ;
114
- export function setEmailFieldRequired ( isEmailFieldRequired : boolean ) : void ;
115
127
export function setEmailFieldRequiredForActions (
116
128
isEmailFieldRequired : boolean ,
117
129
actionTypes : actionTypes
118
130
) : 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 ;
127
131
export function setFloatingButtonEdge (
128
132
floatingButtonEdge : number ,
129
133
offsetFromTop : number
130
134
) : void ;
131
135
export function setLocale ( locale : locale ) : void ;
132
- export function setIntroMessageEnabled ( isIntroMessageEnabled : boolean ) : void ;
133
136
export function setColorTheme ( colorTheme : colorTheme ) : void ;
134
137
export function setPrimaryColor ( setPrimaryColor : string ) : void ;
135
138
export function appendTags ( tags : string [ ] ) : void ;
@@ -139,32 +142,17 @@ export function setstringToKey(
139
142
string : string ,
140
143
key : string
141
144
) : void ;
142
- export function setAttachmentTypesEnabled (
143
- screenshot : boolean ,
144
- extraScreenshot : boolean ,
145
- galleryImage : boolean ,
146
- voiceNote : boolean ,
147
- screenRecording : boolean
148
- ) : void ;
149
145
export function setEnabledAttachmentTypes (
150
146
screenshot : boolean ,
151
147
extraScreenshot : boolean ,
152
148
galleryImage : boolean ,
153
149
screenRecording : boolean
154
150
) : 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 ;
161
151
export function identifyUserWithEmail (
162
152
email : string ,
163
153
name : string
164
154
) : void ;
165
155
export function logOut ( ) : void ;
166
- export function setReportCategories ( ...titles : string [ ] ) : void ;
167
- export function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
168
156
export function logUserEventWithName ( name : string , params ?: any ) : void ;
169
157
export function logVerbose ( message : string ) : void ;
170
158
export function logInfo ( message : string ) : void ;
@@ -185,36 +173,20 @@ export function removeUserAttribute(key: string): void;
185
173
export function getAllUserAttributes ( userAttributesCallback : ( ) => void ) : void ;
186
174
export function clearAllUserAttributes ( ) : void ;
187
175
export 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 ;
197
176
export function setDebugEnabled ( isDebugEnabled : boolean ) : void ;
198
177
export function enable ( ) : void ;
199
178
export function disable ( ) : void ;
200
179
export 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 ;
204
180
export 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 ;
211
181
export function setShouldShowSurveysWelcomeScreen ( shouldShowWelcomeScreen : boolean ) : void ;
212
182
export function showWelcomeMessage ( welcomeMessageMode : welcomeMessageMode ) : void ;
213
183
export function setWelcomeMessageMode ( welcomeMessageMode : welcomeMessageMode ) : void ;
214
184
export function addFileAttachment (
215
185
filePath : string ,
216
186
fileName : string
217
187
) : void ;
188
+ export function show ( ) : void ;
189
+ export function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
218
190
export function callPrivateApi (
219
191
apiName : string ,
220
192
param : any
0 commit comments