prodap-chatbot-domain
Version:
Classes utilizadas na resposta de todas as Intents do Assistente Virtual
116 lines (115 loc) • 6.73 kB
TypeScript
import { TextStyle } from './StyleType';
type Falsy = undefined | null | false;
type RecursiveArray<T> = Array<T | ReadonlyArray<T> | RecursiveArray<T>>;
/** Keep a brand of 'T' so that calls to `StyleSheet.flatten` can take `RegisteredStyle<T>` and return `T`. */
type RegisteredStyle<T> = number & {
__registeredStyleBrand: T;
};
export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;
type OpaqueColorValue = symbol & {
__TYPE__: 'Color';
};
export type ColorValue = string | OpaqueColorValue;
export type InputModeOptions = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
export type KeyboardType = 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'number-pad' | 'decimal-pad';
export type KeyboardTypeIOS = 'ascii-capable' | 'numbers-and-punctuation' | 'url' | 'name-phone-pad' | 'twitter' | 'web-search';
export type KeyboardTypeAndroid = 'visible-password';
export type KeyboardTypeOptions = KeyboardType | KeyboardTypeAndroid | KeyboardTypeIOS;
export type ReturnKeyType = 'done' | 'go' | 'next' | 'search' | 'send';
export type ReturnKeyTypeAndroid = 'none' | 'previous';
export type ReturnKeyTypeIOS = 'default' | 'google' | 'join' | 'route' | 'yahoo' | 'emergency-call';
export type ReturnKeyTypeOptions = ReturnKeyType | ReturnKeyTypeAndroid | ReturnKeyTypeIOS;
export interface TextInputAndroidProps {
/**
* @platform android
*/
cursorColor?: ColorValue | null | undefined;
importantForAutofill?: 'auto' | 'no' | 'noExcludeDescendants' | 'yes' | 'yesExcludeDescendants' | undefined;
disableFullscreenUI?: boolean | undefined;
inlineImageLeft?: string | undefined;
inlineImagePadding?: number | undefined;
numberOfLines?: number | undefined;
/**
* @platform android
*/
returnKeyLabel?: string | undefined;
textBreakStrategy?: 'simple' | 'highQuality' | 'balanced' | undefined;
underlineColorAndroid?: ColorValue | undefined;
textAlignVertical?: 'auto' | 'top' | 'bottom' | 'center' | undefined;
showSoftInputOnFocus?: boolean | undefined;
verticalAlign?: 'auto' | 'top' | 'bottom' | 'middle' | undefined;
}
type DataDetectorTypes = 'phoneNumber' | 'link' | 'address' | 'calendarEvent' | 'none' | 'all';
export interface DocumentSelectionState {
update(anchor: number, focus: number): void;
constrainLength(maxLength: number): void;
focus(): void;
blur(): void;
hasFocus(): boolean;
isCollapsed(): boolean;
isBackward(): boolean;
getAnchorOffset(): number;
getFocusOffset(): number;
getStartOffset(): number;
getEndOffset(): number;
overlaps(start: number, end: number): boolean;
}
export interface TextInputIOSProps {
clearButtonMode?: 'never' | 'while-editing' | 'unless-editing' | 'always' | undefined;
clearTextOnFocus?: boolean | undefined;
dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[] | undefined;
enablesReturnKeyAutomatically?: boolean | undefined;
keyboardAppearance?: 'default' | 'light' | 'dark' | undefined;
passwordRules?: string | null | undefined;
rejectResponderTermination?: boolean | null | undefined;
selectionState?: DocumentSelectionState | undefined;
spellCheck?: boolean | undefined;
textContentType?: 'none' | 'URL' | 'addressCity' | 'addressCityAndState' | 'addressState' | 'countryName' | 'creditCardNumber' | 'emailAddress' | 'familyName' | 'fullStreetAddress' | 'givenName' | 'jobTitle' | 'location' | 'middleName' | 'name' | 'namePrefix' | 'nameSuffix' | 'nickname' | 'organizationName' | 'postalCode' | 'streetAddressLine1' | 'streetAddressLine2' | 'sublocality' | 'telephoneNumber' | 'username' | 'password' | 'newPassword' | 'oneTimeCode' | undefined;
scrollEnabled?: boolean | undefined;
}
export interface TextInputProps extends TextInputIOSProps, TextInputAndroidProps {
allowFontScaling?: boolean | undefined;
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | undefined;
autoComplete?: 'additional-name' | 'address-line1' | 'address-line2' | 'birthdate-day' | 'birthdate-full' | 'birthdate-month' | 'birthdate-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-day' | 'cc-exp-month' | 'cc-exp-year' | 'cc-number' | 'country' | 'current-password' | 'email' | 'family-name' | 'gender' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'name-family' | 'name-given' | 'name-middle' | 'name-middle-initial' | 'name-prefix' | 'name-suffix' | 'new-password' | 'nickname' | 'one-time-code' | 'organization' | 'organization-title' | 'password' | 'password-new' | 'postal-address' | 'postal-address-country' | 'postal-address-extended' | 'postal-address-extended-postal-code' | 'postal-address-locality' | 'postal-address-region' | 'postal-code' | 'street-address' | 'sms-otp' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-device' | 'url' | 'username' | 'username-new' | 'off' | undefined;
autoCorrect?: boolean | undefined;
autoFocus?: boolean | undefined;
blurOnSubmit?: boolean | undefined;
caretHidden?: boolean | undefined;
contextMenuHidden?: boolean | undefined;
defaultValue?: string | undefined;
editable?: boolean | undefined;
keyboardType?: KeyboardTypeOptions | undefined;
inputMode?: InputModeOptions | undefined;
maxLength?: number | undefined;
multiline?: boolean | undefined;
onBlur?: (event: any) => void | undefined;
onChange?: (event: any) => void | undefined;
onChangeText?: ((text: string) => void) | undefined;
onContentSizeChange?: (event: any) => void | undefined;
onEndEditing?: (event: any) => void | undefined;
onPressIn?: (event: any) => void | undefined;
onPressOut?: (event: any) => void | undefined;
onFocus?: (event: any) => void | undefined;
onSelectionChange?: (event: any) => void | undefined;
onSubmitEditing?: (event: any) => void | undefined;
onTextInput?: (event: any) => void | undefined;
onScroll?: (event: any) => void | undefined;
onKeyPress?: (event: any) => void | undefined;
placeholder?: string | undefined;
placeholderTextColor?: ColorValue | undefined;
returnKeyType?: ReturnKeyTypeOptions | undefined;
secureTextEntry?: boolean | undefined;
selectTextOnFocus?: boolean | undefined;
selection?: {
start: number;
end?: number | undefined;
} | undefined;
selectionColor?: ColorValue | undefined;
style?: StyleProp<TextStyle> | undefined;
textAlign?: 'left' | 'center' | 'right' | undefined;
testID?: string | undefined;
inputAccessoryViewID?: string | undefined;
value?: string | undefined;
maxFontSizeMultiplier?: number | null | undefined;
}
export {};