UNPKG

@arcgis/coding-components

Version:

Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.

48 lines (47 loc) 1.33 kB
/// <reference types="@arcgis/core/interfaces.d.ts" /> export type Feedback = { user_evaluation?: "bad" | "good"; your_comments?: string; question: string; answer: string; useragent: string; _source: string; version: string; context: string; extras: string; conversation_id: string; privacy_statement: "" | "I_agree"; }; export type FeedbackState = { /** Whether the feedback form is active */ active: true; /** the selected feedback value */ value?: "bad" | "good"; /** The feedback description provided by the user */ text: string; /** The history item associated with the feedback */ item: HistoryItem; /** Whether the user has accepted the privacy terms */ termsAccepted: boolean; /** Whether the feedback is submitting */ submitting: boolean; } | { active: false; }; export type HistoryItem = { script?: string; error?: string; question: string; profile?: string; conversationId?: string; formattedScript?: string; layerName?: string; message?: string; }; export type Context = { /** profileName and metadata are passed to backend */ profileName: string; metadata: Partial<__esri.Field>[]; /** used for the context display buttons / chips */ layerName?: nullish | string; };