@couleetech/n8n-nodes-enlightenedmsp
Version:
n8n node for EnlightenedMSP ticketing and workflow automation
48 lines (47 loc) • 1.68 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateTodoGraphql = void 0;
const GraphqlBase_1 = require("./GraphqlBase");
class CreateTodoGraphql extends GraphqlBase_1.GraphqlBase {
async createTodo(variables) {
const query = `
mutation CreateTodo(
$title: String
$description: String
$dueDate: Date
$ticketBlocking: Boolean
$autotaskTicketId: Float
$isOnsite: Boolean
$estimatedMinutes: Float
$createdByModuleName: String
$createdByModuleId: String
) {
createTodosTodo(
title: $title
description: $description
dueDate: $dueDate
ticketBlocking: $ticketBlocking
autotaskTicketId: $autotaskTicketId
isOnsite: $isOnsite
estimatedMinutes: $estimatedMinutes
createdByModuleName: $createdByModuleName
createdByModuleId: $createdByModuleId
) {
id
title
description
dueDate
ticketBlocking
autotaskTicketId
isOnsite
estimatedMinutes
createdByModuleName
createdByModuleId
createdAt
}
}
`;
return this.executeGraphql(query, variables);
}
}
exports.CreateTodoGraphql = CreateTodoGraphql;