@hhgtech/hhg-components
Version:
Hello Health Group common components
36 lines (35 loc) • 1.63 kB
TypeScript
import { SubotNodeAction } from "../../../interfaces/types";
import { TogetherComponentGlobalContextType } from "../../../together";
export declare const getActionEmail: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const getActionName: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const getActionPhone: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const getActionOtp: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const getActionOtpWhatsApp: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const getActionConfirm: (actions: SubotNodeAction[]) => SubotNodeAction;
export declare const isControlOtp: (control: string) => boolean;
export declare const isActionTypeOtp: (type: string) => boolean;
export declare const getTranslateVerifiedOtpMessages: () => Map<any, any>;
export declare const getTransPleaseVerifiedOtp: () => Map<any, any>;
export declare const validateDateField: (value: Date | string, isSubmitting: boolean, f?: TogetherComponentGlobalContextType['formatMessage'], cb?: (value: Date) => string | true) => string | true;
export declare const OTP_VERIFIED_MSG_CODE: {
ERR_PHONE_VERIFIED: {
id: string;
defaultMessage: string;
};
ERR_OTP_EXPIRED: {
id: string;
defaultMessage: string;
};
ERR_INVALID_PHONE_NUMBER: {
id: string;
defaultMessage: string;
};
ERR_OTP_INVALID: {
id: string;
defaultMessage: string;
};
ERR_UNKNOWN: {
id: string;
defaultMessage: string;
};
};