UNPKG

@jacobx1/of-sdk

Version:

Node interface for interacting with Omnifocus

21 lines 745 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function projectMapper({ name, completed, id, completionDate, dropDate, deferDate, dueDate, estimatedMinutes, note, tags, }) { return { name, completed, dropDate: dropDate && dropDate.toISOString(), deferDate: deferDate && deferDate.toISOString(), dueDate: dueDate && dueDate.toISOString(), estimatedMinutes, note, id: id.primaryKey, completionDate: completionDate && completionDate.toISOString(), tags: tags.map((tag) => ({ name: tag.name, id: tag.id.primaryKey, })), }; } exports.default = projectMapper; //# sourceMappingURL=projectMapper.js.map