UNPKG

@securecall/client-component

Version:

SecureCall Core Web Component

443 lines (442 loc) 31 kB
/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { IAuthenticationFailure } from "./interfaces/authentication"; import { IConfigurationUpdate, IRequestField } from "./interfaces/configuration"; import { ITransactionData, ITransactionValues } from "./interfaces/transaction"; import { ITelephonyEventData, ITelephonyUpdate } from "./interfaces/telephony"; import { RequestFieldGroup } from "./classes/request_field_group"; export { IAuthenticationFailure } from "./interfaces/authentication"; export { IConfigurationUpdate, IRequestField } from "./interfaces/configuration"; export { ITransactionData, ITransactionValues } from "./interfaces/transaction"; export { ITelephonyEventData, ITelephonyUpdate } from "./interfaces/telephony"; export { RequestFieldGroup } from "./classes/request_field_group"; export namespace Components { interface SecurecallClient { /** * @default window.origin */ "apiLocation": string; "authenticate": (username?: string, password?: string, useCookie?: boolean) => Promise<void>; /** * @default false */ "awaitActiveCall": boolean; "customLogger": object; /** * @default true */ "displayTransactionResult": boolean; /** * @default false */ "hideSecureButton": boolean; "logout": () => Promise<void>; "release": () => Promise<void>; "secure": () => Promise<void>; "submitAnotherTransaction": (data: ITransactionValues) => Promise<boolean>; "switchHint": string; /** * @default 'light' */ "theme": 'dark' | 'light'; "triggerAnotherTransaction": (resetTransactionDetails?: boolean, resetCardFields?: string[]) => Promise<void>; "updateRequestFields": (updates: (arg0: any) => void) => Promise<void>; "updateResponseFields": (updates: (arg0: any) => void) => Promise<void>; "updateSessionRequestFields": (updates: (arg0: any) => void) => Promise<void>; "updateTelephony": (data: ITelephonyUpdate) => Promise<void>; "updateTransactionRequestFields": (updates: (arg0: any) => void) => Promise<void>; "version": () => Promise<string>; } interface SecurecallRequestCurrency { "config": IRequestField; "fieldName": string; } interface SecurecallRequestRadio { "config": IRequestField; "fieldName": string; } interface SecurecallRequestSecure { "config": IRequestField; "fieldName": string; } interface SecurecallRequestSecurePan { "config": any; "fieldName": string; } interface SecurecallRequestSelect { "config": IRequestField; "fieldName": string; } interface SecurecallRequestString { "config": IRequestField; "fieldName": string; } interface SecurecallResponseButton { /** * @default "retryClearCVV" */ "action": string; "fieldName": string; "label": string; } interface SecurecallResponseField { "fieldName": string; "label": string; "value": string; } interface SecurecallTransaction { "fieldData": RequestFieldGroup; "transactionToggle": boolean; } } export interface SecurecallClientCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallClientElement; } export interface SecurecallRequestCurrencyCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestCurrencyElement; } export interface SecurecallRequestRadioCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestRadioElement; } export interface SecurecallRequestSecureCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestSecureElement; } export interface SecurecallRequestSecurePanCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestSecurePanElement; } export interface SecurecallRequestSelectCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestSelectElement; } export interface SecurecallRequestStringCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallRequestStringElement; } export interface SecurecallResponseButtonCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallResponseButtonElement; } export interface SecurecallTransactionCustomEvent<T> extends CustomEvent<T> { detail: T; target: HTMLSecurecallTransactionElement; } declare global { interface HTMLSecurecallClientElementEventMap { "authenticationSuccess": string; "authenticationFailure": IAuthenticationFailure; "configurationChanged": IConfigurationUpdate; "callSecured": boolean; "callEnded": string; "transactionSubmitted": ITransactionValues; "transactionSubmitting": ITransactionData; "transactionSuccess": ITransactionData; "transactionFailure": ITransactionData; "loggedOut": boolean; "telephonyHold": ITelephonyEventData; "telephonyRecover": ITelephonyEventData; "telephonyLegA": ITelephonyEventData; "telephonyLegB": ITelephonyEventData; "telephonyValidate": ITelephonyEventData; } interface HTMLSecurecallClientElement extends Components.SecurecallClient, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallClientElementEventMap>(type: K, listener: (this: HTMLSecurecallClientElement, ev: SecurecallClientCustomEvent<HTMLSecurecallClientElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallClientElementEventMap>(type: K, listener: (this: HTMLSecurecallClientElement, ev: SecurecallClientCustomEvent<HTMLSecurecallClientElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallClientElement: { prototype: HTMLSecurecallClientElement; new (): HTMLSecurecallClientElement; }; interface HTMLSecurecallRequestCurrencyElementEventMap { "isValidEvent": { field: string; valid: boolean, value: string }; } interface HTMLSecurecallRequestCurrencyElement extends Components.SecurecallRequestCurrency, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestCurrencyElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestCurrencyElement, ev: SecurecallRequestCurrencyCustomEvent<HTMLSecurecallRequestCurrencyElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestCurrencyElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestCurrencyElement, ev: SecurecallRequestCurrencyCustomEvent<HTMLSecurecallRequestCurrencyElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestCurrencyElement: { prototype: HTMLSecurecallRequestCurrencyElement; new (): HTMLSecurecallRequestCurrencyElement; }; interface HTMLSecurecallRequestRadioElementEventMap { "requestRadioChangeEvent": { field: string, value: string }; "isValidEvent": { field: string, valid: boolean, value: string }; } interface HTMLSecurecallRequestRadioElement extends Components.SecurecallRequestRadio, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestRadioElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestRadioElement, ev: SecurecallRequestRadioCustomEvent<HTMLSecurecallRequestRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestRadioElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestRadioElement, ev: SecurecallRequestRadioCustomEvent<HTMLSecurecallRequestRadioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestRadioElement: { prototype: HTMLSecurecallRequestRadioElement; new (): HTMLSecurecallRequestRadioElement; }; interface HTMLSecurecallRequestSecureElementEventMap { "secureFieldResetEvent": string; } interface HTMLSecurecallRequestSecureElement extends Components.SecurecallRequestSecure, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestSecureElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSecureElement, ev: SecurecallRequestSecureCustomEvent<HTMLSecurecallRequestSecureElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestSecureElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSecureElement, ev: SecurecallRequestSecureCustomEvent<HTMLSecurecallRequestSecureElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestSecureElement: { prototype: HTMLSecurecallRequestSecureElement; new (): HTMLSecurecallRequestSecureElement; }; interface HTMLSecurecallRequestSecurePanElementEventMap { "secureFieldResetEvent": string; } interface HTMLSecurecallRequestSecurePanElement extends Components.SecurecallRequestSecurePan, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestSecurePanElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSecurePanElement, ev: SecurecallRequestSecurePanCustomEvent<HTMLSecurecallRequestSecurePanElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestSecurePanElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSecurePanElement, ev: SecurecallRequestSecurePanCustomEvent<HTMLSecurecallRequestSecurePanElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestSecurePanElement: { prototype: HTMLSecurecallRequestSecurePanElement; new (): HTMLSecurecallRequestSecurePanElement; }; interface HTMLSecurecallRequestSelectElementEventMap { "isValidEvent": { field: string; valid: boolean, value: string }; "changed": string; } interface HTMLSecurecallRequestSelectElement extends Components.SecurecallRequestSelect, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestSelectElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSelectElement, ev: SecurecallRequestSelectCustomEvent<HTMLSecurecallRequestSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestSelectElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestSelectElement, ev: SecurecallRequestSelectCustomEvent<HTMLSecurecallRequestSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestSelectElement: { prototype: HTMLSecurecallRequestSelectElement; new (): HTMLSecurecallRequestSelectElement; }; interface HTMLSecurecallRequestStringElementEventMap { "isValidEvent": { field: string; valid: boolean, value: string }; } interface HTMLSecurecallRequestStringElement extends Components.SecurecallRequestString, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallRequestStringElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestStringElement, ev: SecurecallRequestStringCustomEvent<HTMLSecurecallRequestStringElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallRequestStringElementEventMap>(type: K, listener: (this: HTMLSecurecallRequestStringElement, ev: SecurecallRequestStringCustomEvent<HTMLSecurecallRequestStringElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallRequestStringElement: { prototype: HTMLSecurecallRequestStringElement; new (): HTMLSecurecallRequestStringElement; }; interface HTMLSecurecallResponseButtonElementEventMap { "responseButtonEvent": string; } interface HTMLSecurecallResponseButtonElement extends Components.SecurecallResponseButton, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallResponseButtonElementEventMap>(type: K, listener: (this: HTMLSecurecallResponseButtonElement, ev: SecurecallResponseButtonCustomEvent<HTMLSecurecallResponseButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallResponseButtonElementEventMap>(type: K, listener: (this: HTMLSecurecallResponseButtonElement, ev: SecurecallResponseButtonCustomEvent<HTMLSecurecallResponseButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallResponseButtonElement: { prototype: HTMLSecurecallResponseButtonElement; new (): HTMLSecurecallResponseButtonElement; }; interface HTMLSecurecallResponseFieldElement extends Components.SecurecallResponseField, HTMLStencilElement { } var HTMLSecurecallResponseFieldElement: { prototype: HTMLSecurecallResponseFieldElement; new (): HTMLSecurecallResponseFieldElement; }; interface HTMLSecurecallTransactionElementEventMap { "submitTransactionEvent": ITransactionValues; } interface HTMLSecurecallTransactionElement extends Components.SecurecallTransaction, HTMLStencilElement { addEventListener<K extends keyof HTMLSecurecallTransactionElementEventMap>(type: K, listener: (this: HTMLSecurecallTransactionElement, ev: SecurecallTransactionCustomEvent<HTMLSecurecallTransactionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLSecurecallTransactionElementEventMap>(type: K, listener: (this: HTMLSecurecallTransactionElement, ev: SecurecallTransactionCustomEvent<HTMLSecurecallTransactionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSecurecallTransactionElement: { prototype: HTMLSecurecallTransactionElement; new (): HTMLSecurecallTransactionElement; }; interface HTMLElementTagNameMap { "securecall-client": HTMLSecurecallClientElement; "securecall-request-currency": HTMLSecurecallRequestCurrencyElement; "securecall-request-radio": HTMLSecurecallRequestRadioElement; "securecall-request-secure": HTMLSecurecallRequestSecureElement; "securecall-request-secure-pan": HTMLSecurecallRequestSecurePanElement; "securecall-request-select": HTMLSecurecallRequestSelectElement; "securecall-request-string": HTMLSecurecallRequestStringElement; "securecall-response-button": HTMLSecurecallResponseButtonElement; "securecall-response-field": HTMLSecurecallResponseFieldElement; "securecall-transaction": HTMLSecurecallTransactionElement; } } declare namespace LocalJSX { interface SecurecallClient { /** * @default window.origin */ "apiLocation"?: string; /** * @default false */ "awaitActiveCall"?: boolean; "customLogger"?: object; /** * @default true */ "displayTransactionResult"?: boolean; /** * @default false */ "hideSecureButton"?: boolean; "onAuthenticationFailure"?: (event: SecurecallClientCustomEvent<IAuthenticationFailure>) => void; "onAuthenticationSuccess"?: (event: SecurecallClientCustomEvent<string>) => void; "onCallEnded"?: (event: SecurecallClientCustomEvent<string>) => void; "onCallSecured"?: (event: SecurecallClientCustomEvent<boolean>) => void; "onConfigurationChanged"?: (event: SecurecallClientCustomEvent<IConfigurationUpdate>) => void; "onLoggedOut"?: (event: SecurecallClientCustomEvent<boolean>) => void; "onTelephonyHold"?: (event: SecurecallClientCustomEvent<ITelephonyEventData>) => void; "onTelephonyLegA"?: (event: SecurecallClientCustomEvent<ITelephonyEventData>) => void; "onTelephonyLegB"?: (event: SecurecallClientCustomEvent<ITelephonyEventData>) => void; "onTelephonyRecover"?: (event: SecurecallClientCustomEvent<ITelephonyEventData>) => void; "onTelephonyValidate"?: (event: SecurecallClientCustomEvent<ITelephonyEventData>) => void; "onTransactionFailure"?: (event: SecurecallClientCustomEvent<ITransactionData>) => void; "onTransactionSubmitted"?: (event: SecurecallClientCustomEvent<ITransactionValues>) => void; "onTransactionSubmitting"?: (event: SecurecallClientCustomEvent<ITransactionData>) => void; "onTransactionSuccess"?: (event: SecurecallClientCustomEvent<ITransactionData>) => void; "switchHint"?: string; /** * @default 'light' */ "theme"?: 'dark' | 'light'; } interface SecurecallRequestCurrency { "config"?: IRequestField; "fieldName"?: string; "onIsValidEvent"?: (event: SecurecallRequestCurrencyCustomEvent<{ field: string; valid: boolean, value: string }>) => void; } interface SecurecallRequestRadio { "config"?: IRequestField; "fieldName"?: string; "onIsValidEvent"?: (event: SecurecallRequestRadioCustomEvent<{ field: string, valid: boolean, value: string }>) => void; "onRequestRadioChangeEvent"?: (event: SecurecallRequestRadioCustomEvent<{ field: string, value: string }>) => void; } interface SecurecallRequestSecure { "config"?: IRequestField; "fieldName"?: string; "onSecureFieldResetEvent"?: (event: SecurecallRequestSecureCustomEvent<string>) => void; } interface SecurecallRequestSecurePan { "config"?: any; "fieldName"?: string; "onSecureFieldResetEvent"?: (event: SecurecallRequestSecurePanCustomEvent<string>) => void; } interface SecurecallRequestSelect { "config"?: IRequestField; "fieldName"?: string; "onChanged"?: (event: SecurecallRequestSelectCustomEvent<string>) => void; "onIsValidEvent"?: (event: SecurecallRequestSelectCustomEvent<{ field: string; valid: boolean, value: string }>) => void; } interface SecurecallRequestString { "config"?: IRequestField; "fieldName"?: string; "onIsValidEvent"?: (event: SecurecallRequestStringCustomEvent<{ field: string; valid: boolean, value: string }>) => void; } interface SecurecallResponseButton { /** * @default "retryClearCVV" */ "action"?: string; "fieldName"?: string; "label"?: string; "onResponseButtonEvent"?: (event: SecurecallResponseButtonCustomEvent<string>) => void; } interface SecurecallResponseField { "fieldName"?: string; "label"?: string; "value"?: string; } interface SecurecallTransaction { "fieldData"?: RequestFieldGroup; "onSubmitTransactionEvent"?: (event: SecurecallTransactionCustomEvent<ITransactionValues>) => void; "transactionToggle"?: boolean; } interface IntrinsicElements { "securecall-client": SecurecallClient; "securecall-request-currency": SecurecallRequestCurrency; "securecall-request-radio": SecurecallRequestRadio; "securecall-request-secure": SecurecallRequestSecure; "securecall-request-secure-pan": SecurecallRequestSecurePan; "securecall-request-select": SecurecallRequestSelect; "securecall-request-string": SecurecallRequestString; "securecall-response-button": SecurecallResponseButton; "securecall-response-field": SecurecallResponseField; "securecall-transaction": SecurecallTransaction; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "securecall-client": LocalJSX.SecurecallClient & JSXBase.HTMLAttributes<HTMLSecurecallClientElement>; "securecall-request-currency": LocalJSX.SecurecallRequestCurrency & JSXBase.HTMLAttributes<HTMLSecurecallRequestCurrencyElement>; "securecall-request-radio": LocalJSX.SecurecallRequestRadio & JSXBase.HTMLAttributes<HTMLSecurecallRequestRadioElement>; "securecall-request-secure": LocalJSX.SecurecallRequestSecure & JSXBase.HTMLAttributes<HTMLSecurecallRequestSecureElement>; "securecall-request-secure-pan": LocalJSX.SecurecallRequestSecurePan & JSXBase.HTMLAttributes<HTMLSecurecallRequestSecurePanElement>; "securecall-request-select": LocalJSX.SecurecallRequestSelect & JSXBase.HTMLAttributes<HTMLSecurecallRequestSelectElement>; "securecall-request-string": LocalJSX.SecurecallRequestString & JSXBase.HTMLAttributes<HTMLSecurecallRequestStringElement>; "securecall-response-button": LocalJSX.SecurecallResponseButton & JSXBase.HTMLAttributes<HTMLSecurecallResponseButtonElement>; "securecall-response-field": LocalJSX.SecurecallResponseField & JSXBase.HTMLAttributes<HTMLSecurecallResponseFieldElement>; "securecall-transaction": LocalJSX.SecurecallTransaction & JSXBase.HTMLAttributes<HTMLSecurecallTransactionElement>; } } }