UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

34 lines (33 loc) 2.56 kB
import type { AccountIdentification } from '../core/models/api/accountIdentification'; import type { CountryCode } from '../types/datasets/country-code'; import type { CountryFormatRules } from './validation/types'; export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules: CountryFormatRules<FormSchema>, field: keyof FormSchema, country: CountryCode | undefined, ignoreIfFormatterExists: boolean) => number | undefined; export declare const isUndefinedOrNull: (input: unknown) => input is undefined | null; export declare const isEmpty: (input: unknown) => input is null | undefined; export declare const hasEmptyFields: (input: object | undefined) => boolean; export declare const isAccountIdentifierObscured: (payload: AccountIdentification) => boolean; export declare const findEmptyKeys: (obj: object) => string[]; export declare const extractFieldName: (inputString: string) => string; export declare const concatenateFieldNames: (fieldNames: string[]) => string; export declare const isString: (input: unknown) => input is string; export declare const hasText: (input: unknown) => input is string; export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\"; export declare const getFormattingRegEx: (specChars: string, flags?: string) => RegExp; export declare const trimValWithOneSpace: (val: string) => string; export declare const EMOJI_REGEX: RegExp; export declare const NO_ALPHABET_REGEX: RegExp; export declare const NO_ALPHABET_UNICODE_REGEX: RegExp; export declare const INDIVIDUAL_VALID_CHAR_REGEX: RegExp; export declare const ADDRESS_VALID_CHAR_REGEX: RegExp; export declare const OTHER_ENTITIES_VALID_CHAR_REGEX: RegExp; export declare const LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX: RegExp; export declare const matchesRegex: (regex: RegExp, input: unknown) => boolean; export declare const hasRepeatedCharacters: (input?: string | null) => boolean; export declare const hasMaximumTwoRepeatedCharacters: (input?: string | null) => boolean; export declare const isValidMinLength: (input?: string | null, minLength?: number) => boolean; export declare const isInvalidName: (input?: string | null) => boolean; export declare const standardKanjiValidator: (input?: string | null) => boolean; export declare const standardKatakanaValidator: (input?: string | null) => boolean; export declare const chomeAndBanchiValidator: (input?: string | null) => boolean; export declare function assertString(input: string | undefined): void; export declare function isISIN(str: string): boolean;