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,53 +116,25 @@ 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 ;
95
- export function setTrackUserSteps ( issetTrackUserSteps : boolean ) : void ;
121
+ export function setAutoScreenRecordingMaxDuration ( autoScreenRecordingMaxDuration : number ) : void ;
122
+ export function setTrackUserSteps ( isEnabled : boolean ) : void ;
96
123
export function setIBGLogPrintsToConsole ( printsToConsole : boolean ) : void ;
97
124
export function setCrashReportingEnabled ( enableCrashReporter : boolean ) : void ;
98
- export function setPreSendingHandler ( preSendingHandler : ( ) => void ) : void ;
99
125
export function setDidSelectPromptOptionHandler ( didSelectPromptOptionHandler : ( ) => void ) : void ;
100
- export function showSurveyWithToken ( surveyToken : string ) : void ;
101
- export function hasRespondedToSurveyWithToken (
102
- surveyToken : string ,
103
- surveyTokenCallback : ( ) => void
104
- ) : void ;
105
126
export 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 ;
112
127
export function getUnreadMessagesCount ( messageCountCallback : ( ) => void ) : void ;
113
- export function setInvocationEvent ( invocationEvent : invocationEvent ) : void ;
114
128
export function setPushNotificationsEnabled ( isPushNotificationEnabled : boolean ) : void ;
115
- export function setEmailFieldRequired ( isEmailFieldRequired : boolean ) : void ;
116
129
export function setEmailFieldRequiredForActions (
117
130
isEmailFieldRequired : boolean ,
118
131
actionTypes : actionTypes
119
132
) : 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 ;
128
133
export function setFloatingButtonEdge (
129
134
floatingButtonEdge : number ,
130
135
offsetFromTop : number
131
136
) : void ;
132
137
export function setLocale ( locale : locale ) : void ;
133
- export function setIntroMessageEnabled ( isIntroMessageEnabled : boolean ) : void ;
134
138
export function setColorTheme ( colorTheme : colorTheme ) : void ;
135
139
export function setPrimaryColor ( setPrimaryColor : string ) : void ;
136
140
export function appendTags ( tags : string [ ] ) : void ;
@@ -140,32 +144,17 @@ export function setStringToKey(
140
144
string : string ,
141
145
key : strings ,
142
146
) : void ;
143
- export function setAttachmentTypesEnabled (
144
- screenshot : boolean ,
145
- extraScreenshot : boolean ,
146
- galleryImage : boolean ,
147
- voiceNote : boolean ,
148
- screenRecording : boolean
149
- ) : void ;
150
147
export function setEnabledAttachmentTypes (
151
148
screenshot : boolean ,
152
149
extraScreenshot : boolean ,
153
150
galleryImage : boolean ,
154
151
screenRecording : boolean
155
152
) : 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 ;
162
153
export function identifyUserWithEmail (
163
154
email : string ,
164
155
name : string
165
156
) : void ;
166
157
export function logOut ( ) : void ;
167
- export function setReportCategories ( ...titles : string [ ] ) : void ;
168
- export function setExtendedBugReportMode ( extendedBugReportMode : extendedBugReportMode ) : void ;
169
158
export function logUserEventWithName ( name : string , params ?: any ) : void ;
170
159
export function logVerbose ( message : string ) : void ;
171
160
export function logInfo ( message : string ) : void ;
@@ -185,37 +174,26 @@ export function getUserAttribute(
185
174
export function removeUserAttribute ( key : string ) : void ;
186
175
export function getAllUserAttributes ( userAttributesCallback : ( ) => void ) : void ;
187
176
export function clearAllUserAttributes ( ) : void ;
177
+ export function setChatNotificationEnabled ( isChatNotificationEnabled : boolean ) : void ;
178
+ export function setOnNewMessageHandler ( onNewMessageHandler : ( ) => void ) : void ;
188
179
export function setViewHierarchyEnabled ( viewHierarchyEnabled : boolean ) : void ;
189
180
export 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 ;
198
181
export function setDebugEnabled ( isDebugEnabled : boolean ) : void ;
199
182
export function enable ( ) : void ;
200
183
export function disable ( ) : void ;
201
- export function isRunningLive ( runningLiveCallBack : ( ) => void ) : void ;
202
- export function setSuccessDialogEnabled ( enabled : boolean ) : void ;
203
184
export 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 ;
205
187
export 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 ;
212
188
export function setShouldShowSurveysWelcomeScreen ( shouldShowWelcomeScreen : boolean ) : void ;
213
189
export function showWelcomeMessage ( welcomeMessageMode : welcomeMessageMode ) : void ;
214
190
export function setWelcomeMessageMode ( welcomeMessageMode : welcomeMessageMode ) : void ;
215
191
export function addFileAttachment (
216
192
filePath : string ,
217
193
fileName : string
218
194
) : void ;
195
+ export function show ( ) : void ;
196
+ export function onReportSubmitHandler ( preSendingHandler : ( ) => void ) : void ;
219
197
export function callPrivateApi (
220
198
apiName : string ,
221
199
param : any
0 commit comments