@agendize/vue-event-booking
Version:
Vue agendize's booking component
23 lines • 945 B
TypeScript
import { ComputedRef, Ref } from 'vue';
import { CompanyEntity, CalendarApi, Logger } from '@agendize/js-calendar-api';
interface CreateContactViewModelType {
loading: Ref<boolean>;
createContact: Function;
firstName: Ref<string>;
lastName: Ref<string>;
email: Ref<string | undefined>;
phone: Ref<string | undefined>;
hasPrivacyConsent: Ref<boolean>;
privacyConsentText: Ref<string>;
privacyConsentValid: Ref<boolean>;
hasMarketingConsent: Ref<boolean>;
marketingConsentText: Ref<string>;
marketingConsentValid: Ref<boolean>;
saveEnabled: ComputedRef<boolean>;
validatedField: (field: string, isValid: boolean | {
isValid: boolean;
} | string) => void;
}
export declare function CreateContactViewModel(emitter: Function, api: CalendarApi, logger?: Logger, company?: CompanyEntity, locale?: string): CreateContactViewModelType;
export {};
//# sourceMappingURL=viewModel.d.ts.map