| 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 |
|