n8n-nodes-nextcloud-deck
Version:
n8n Node für die Integration mit Nextcloud Deck - AI Agent Tool Support
31 lines (30 loc) • 1.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteStack = exports.updateStack = exports.createStack = exports.getStack = exports.getStacks = void 0;
const api_1 = require("../helpers/api");
async function getStacks(boardId) {
const response = await api_1.nextcloudDeckApiRequest.call(this, 'GET', `/boards/${boardId}/stacks`);
return response;
}
exports.getStacks = getStacks;
async function getStack(boardId, stackId) {
const response = await api_1.nextcloudDeckApiRequest.call(this, 'GET', `/boards/${boardId}/stacks/${stackId}`);
return response;
}
exports.getStack = getStack;
async function createStack(boardId, stackData) {
const response = await api_1.nextcloudDeckApiRequest.call(this, 'POST', `/boards/${boardId}/stacks`, stackData);
return response;
}
exports.createStack = createStack;
async function updateStack(boardId, stackData) {
const { id, ...updateData } = stackData;
const response = await api_1.nextcloudDeckApiRequest.call(this, 'PUT', `/boards/${boardId}/stacks/${id}`, updateData);
return response;
}
exports.updateStack = updateStack;
async function deleteStack(boardId, stackId) {
const response = await api_1.nextcloudDeckApiRequest.call(this, 'DELETE', `/boards/${boardId}/stacks/${stackId}`);
return response;
}
exports.deleteStack = deleteStack;