PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / js / types / Feedback.ts

Feedback.ts in Code Snippets 4.0.0-beta.2, at js/types/Feedback.ts

68 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 export type FeedbackType = 'bug' | 'feature' | 'feedback'
2
3 export interface FeedbackConfig {
4 restUrl: string
5 searchUrl: string
6 nonce: string
7 user: {
8 name: string
9 email: string
10 }
11 summary: Record<string, string>
12 badge: string
13 version: string
14 edition: 'free' | 'pro'
15 }
16
17 export interface FeedbackIsolation {
18 plugin_only: boolean
19 blank_theme: boolean
20 reproducible: boolean
21 }
22
23 export interface FeedbackDraft {
24 type: FeedbackType | ''
25 title: string
26 description: string
27 steps: string
28 comments: string
29 name: string
30 email: string
31 isolation: FeedbackIsolation
32 }
33
34 export interface FeedbackReportRequest {
35 type: FeedbackType
36 idempotency_key: string
37 title: string
38 description: string
39 steps: string
40 comments: string
41 isolation: FeedbackIsolation
42 name: string
43 email: string
44 page_url: string
45 js_errors: string[]
46 browser: {
47 userAgent: string
48 viewport: string
49 screen: string
50 language: string
51 }
52 }
53
54 export interface FeedbackReportResponse {
55 sent: boolean
56 reference: string
57 url: string
58 }
59
60 export interface DuplicateReport {
61 title: string
62 url: string
63 }
64
65 export interface DuplicateSearchResponse {
66 results: DuplicateReport[]
67 }
68