@@ -2,14 +2,13 @@ declare namespace ocv {
22
33 type FeedbackKind = "generic" | "rating" ;
44
5- const enum FeedbackAgeGroup {
6- Undefined = "Undefined" ,
7- MinorWithoutParentalConsent = "MinorWithoutParentalConsent" ,
8- MinorWithParentalConsent = "MinorWithParentalConsent" ,
9- NotAdult = "NotAdult" ,
10- Adult = "Adult" ,
11- MinorNoParentalConsentRequired = "MinorNoParentalConsentRequired"
12- }
5+ type FeedbackAgeGroup =
6+ | "Undefined"
7+ | "MinorWithoutParentalConsent"
8+ | "MinorWithParentalConsent"
9+ | "NotAdult"
10+ | "Adult"
11+ | "MinorNoParentalConsentRequired" ;
1312
1413 interface IFeedbackCallbackFunctions {
1514 attachDiagnosticsLogs ?: ( diagnosticsUploadId : string , diagnosticsEndpoint : string ) => void ;
@@ -21,26 +20,12 @@ declare namespace ocv {
2120 setSubmitButtonState ?: ( isEnabled : boolean ) => void ;
2221 }
2322
24- const enum FeedbackAuthenticationType {
25- MSA = "MSA" ,
26- AAD = "AAD" ,
27- Unauthenticated = "Unauthenticated"
28- }
2923
30- const enum FeedbackType {
31- Smile = "Smile" ,
32- Frown = "Frown" ,
33- Idea = "Idea" ,
34- Unclassified = "Unclassified" ,
35- Survey = "Survey"
36- }
24+ type FeedbackAuthenticationType = "MSA" | "AAD" | "Unauthenticated" ;
3725
38- const enum FeedbackPolicyValue {
39- Enabled = "Enabled" ,
40- Disabled = "Disabled" ,
41- NotConfigured = "Not Configured" ,
42- NotApplicable = "Not Applicable"
43- }
26+ type FeedbackType = "Smile" | "Frown" | "Idea" | "Unclassified" | "Survey" ;
27+
28+ type FeedbackPolicyValue = "Enabled" | "Disabled" | "Not Configured" | "Not Applicable" ;
4429
4530 interface IThemeOptions {
4631 isFluentV9 ?: boolean ;
@@ -68,79 +53,63 @@ declare namespace ocv {
6853 themeOptions ?: IThemeOptions ;
6954 }
7055
71- const enum FeedbackUiType {
72- SidePane = "SidePane" , // Default: Used for side pane/detail view
73- Modal = "Modal" , // Used for modal view
74- CallOut = "CallOut" , // Used for inscreen pop up dialogue
75- IFrameWithinSidePane = "IFrameWithinSidePane" , // Same as side pane but used inside an iframe
76- IFrameWithinModal = "IFrameWithinModal" , // Same as modal but used inside an iframe
77- IFrameWithinCallOut = "IFrameWithinCallOut" , // Same as callout but used inside an iframe
78- NoSurface = "NoSurface" , // Used when the surface is provided by the host app
79- NoSurfaceWithoutTitle = "NoSurfaceWithoutTitle"
80- }
81-
82- const enum FeedbackHostPlatformType {
83- Windows = "Windows" ,
84- IOS = "iOS" ,
85- Android = "Android" ,
86- WacTaskPane = "WacTaskPane" ,
87- MacOS = "MacOS" ,
88- Web = "Web" ,
89- IFrame = "IFrame"
90- }
91-
92- const enum FeedbackHostEventName {
93- SubmitClicked = "InAppFeedback_HostEvent_SubmitClicked" ,
94- BackClicked = "InAppFeedback_HostEvent_BackClicked"
95- }
96-
97- const enum InitializationStatus {
98- Success = "Success" ,
99- Error = "Error" ,
100- Warning = "Warning"
101- }
102-
103- const enum InAppFeedbackQuestionUiType {
104- DropDown = "DropDown" ,
105- MultiSelect = "MultiSelect" ,
106- Rating = "Rating" ,
107- SingleSelect = "SingleSelect" ,
108- SingleSelectHorizontal = "SingleSelectHorizontal"
109- }
110-
111- const enum InAppFeedbackScenarioType {
112- FeatureArea = "FeatureArea" ,
113- ResponsibleAI = "ResponsibleAI" ,
114- Experience = "Experience" ,
115- ProductSatisfaction = "ProductSatisfaction" ,
116- CrashImpact = "CrashImpact" , // CrashImpact is of type Survey
117- Custom = "Custom" ,
118- AIThumbsDown = "AIThumbsDown" ,
119- AIThumbsUp = "AIThumbsUp" ,
120- AIError = "AIError" ,
121- PromptSuggestion = "PromptSuggestion"
122- }
123-
124- const enum InAppFeedbackQuestionUiBehaviour {
125- QuestionNotRequired = "QuestionNotRequired" ,
126- CommentNotRequired = "CommentNotRequired" ,
127- CommentRequiredWithLastOption = "CommentRequiredWithLastOption"
128- }
129-
130- const enum FeedbackAttachmentOrigin {
131- Application = "Application" ,
132- User = "User"
133- }
134-
135- const enum FeedbackEntryPoint {
136- Header = "Header" ,
137- Footer = "Footer" ,
138- Backstage = "Backstage" ,
139- HelpMenu = "Help Menu" ,
140- Canvas = "Canvas" ,
141- Chat = "Chat"
142- }
56+ type FeedbackUiType =
57+ | "SidePane"
58+ | "Modal"
59+ | "CallOut"
60+ | "IFrameWithinSidePane"
61+ | "IFrameWithinModal"
62+ | "IFrameWithinCallOut"
63+ | "NoSurface"
64+ | "NoSurfaceWithoutTitle" ;
65+
66+
67+ type FeedbackHostPlatformType =
68+ | "Windows"
69+ | "iOS"
70+ | "Android"
71+ | "WacTaskPane"
72+ | "MacOS"
73+ | "Web"
74+ | "IFrame" ;
75+
76+ type FeedbackHostEventName = "InAppFeedback_HostEvent_SubmitClicked" | "InAppFeedback_HostEvent_BackClicked" ;
77+
78+ type InitializationStatus = "Success" | "Error" | "Warning" ;
79+
80+ type InAppFeedbackQuestionUiType =
81+ | "DropDown"
82+ | "MultiSelect"
83+ | "Rating"
84+ | "SingleSelect"
85+ | "SingleSelectHorizontal" ;
14386
87+ type InAppFeedbackScenarioType =
88+ | "FeatureArea"
89+ | "ResponsibleAI"
90+ | "Experience"
91+ | "ProductSatisfaction"
92+ | "CrashImpact"
93+ | "Custom"
94+ | "AIThumbsDown"
95+ | "AIThumbsUp"
96+ | "AIError"
97+ | "PromptSuggestion" ;
98+
99+ type InAppFeedbackQuestionUiBehaviour =
100+ | "QuestionNotRequired"
101+ | "CommentNotRequired"
102+ | "CommentRequiredWithLastOption" ;
103+
104+ type FeedbackAttachmentOrigin = "Application" | "User" ;
105+
106+ type FeedbackEntryPoint =
107+ | "Header"
108+ | "Footer"
109+ | "Backstage"
110+ | "Help Menu"
111+ | "Canvas"
112+ | "Chat" ;
144113 interface InitializationResult {
145114 status : InitializationStatus ;
146115 /**
0 commit comments