export const taskDocumentsToActionListItemModel = (objects, selectedDocument) => {
    const actionListDocuments = [];
    objects === null || objects === void 0 ? void 0 : objects.forEach((object, index) => {
        const itemId = `task-${object.name}`;
        const itemValue = object.name;
        actionListDocuments.push({
            id: itemId,
            caption: itemValue,
            selected: selectedDocument
                ? selectedDocument.name === object.name
                : index === 0,
            type: "actionable"
        });
    });
    return actionListDocuments;
};
/* References Types*/
/**
 * @description This function converts string[] to ComboBoxItemModel[]
 */
export const convertSuggestedDocumentsToSuggestItems = (suggestedDocuments) => {
    const suggestItems = [];
    if (suggestedDocuments.length) {
        suggestedDocuments.forEach((suggestedDocument) => {
            const suggestItem = {
                value: suggestedDocument,
                caption: suggestedDocument
            };
            suggestItems.push(suggestItem);
        });
    }
    return suggestItems;
};
//# sourceMappingURL=helpers.js.map
