I am unsucessfully trying to use the fields option in cloneEvent. The documentation suggests that there are predefine enum values, like DETAILS, that can be included in an array. I have tried many forms but always get a type mismatch error. code snippet below
const cloneOptions = {
draft: true,
event: {
title: newTitle,
shortDescription: newSummary,
dateAndTimeSettings: {
startDate: SD,
endDate: ED},
detailedDescription: newDescription},
fields: ["DETAILS", "TEXTS"]
};
const clonedEvent = await wixEventsV2.cloneEvent(GLOBAL_TEMPLATE_WIX_EVENT_ID, cloneOptions);
Any help, greatly appreciated