UNPKG

we-insights-react

Version:

[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficien

100 lines (90 loc) 2.09 kB
export interface FormResponse { rating: number; allowContact: boolean; dateOfUserCreated?: string; feedbackText?: string; email?: string; } export interface FeedbackMetadata extends FormResponse { projectId: string; osName?: string; osVersion?: string; language?: string; appVersion?: string; country?: string; dateOfBirth?: string; phoneModel?: string; gender?: string; } export interface SDKConfig { projectId: string apiKey: string; } export interface TrackEvent { name: string tag: string osName?: string language?: string appVersion?: string projectId?: string description?: string | null } export interface DefaultTranslations { en: Translations sv: Translations } export interface Translations { title: string description: string feedbackQuestion: string feedbackPlaceholder: string emailPlaceholder: string emailError: string sendButton: string skipButton: string satisfactionQuestion: string answerFurtherQuestions: string ratingTranslations: { one: string two: string three: string four: string five: string } } interface ButtonsStyle { primaryButtonBackgroundColor?: string primaryButtonTextColor?: string secondaryButtonBackgroundColor?: string secondaryButtonTextColor?: string } interface CheckboxStyle { checkedBorderColor: string uncheckedBorderColor: string checkedBackgroundColor: string uncheckedBackgroundColor: string checkmarkColor: string textColor: string } interface InputStyle { backgroundColor?: string textColor?: string borderColor?: string } interface RatingBoxStyle { backgroundColor: string textColor: string iconTextColor: string fontFamily: string } export interface Style { backgroundColor: string textColor: string primaryFont: string secondaryFont: string validationErrorColor: string buttonsStyle: ButtonsStyle inputStyle: InputStyle checkboxStyle: CheckboxStyle ratingBoxStyle: RatingBoxStyle }