Files
nextcloud-workflow-deck-aut…/src/api.js
T
Patrick Niebeling 0904292c73
Build package / php-lint (8.4) (push) Successful in 1m33s
Build package / php-lint (8.5) (push) Successful in 49s
Build package / xml-lint (push) Successful in 13s
Build package / unit-tests (push) Successful in 38s
Build package / package (push) Successful in 1m44s
Remove the assigned-user and label filters
Workflows now move every overdue card of their source stack. A new
migration drops filter_user_ids and filter_label_ids; workflows that
had a filter keep running unfiltered. The version goes to 35.1.0 so
the migration runs on update.

Removed along with the filters: the labels and participants endpoints
and their Deck lookups, the dead-filter warnings and markers, and
CardService::enrichCards() in the card read. enrichCards() only added
labels, assignees and comment counts, and ran a permission check
against Deck's frozen uid.
2026-09-30 09:55:54 +02:00

36 lines
945 B
JavaScript

import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
function ocsUrl(path) {
return generateOcsUrl(`apps/workflow_deck_automation/api/v1${path}`)
}
export async function fetchWorkflows() {
const { data } = await axios.get(ocsUrl('/workflows'))
return data.ocs.data
}
export async function createWorkflow(payload) {
const { data } = await axios.post(ocsUrl('/workflows'), payload)
return data.ocs.data
}
export async function updateWorkflow(id, payload) {
const { data } = await axios.put(ocsUrl(`/workflows/${id}`), payload)
return data.ocs.data
}
export async function deleteWorkflow(id) {
await axios.delete(ocsUrl(`/workflows/${id}`))
}
export async function fetchBoards() {
const { data } = await axios.get(ocsUrl('/boards'))
return data.ocs.data
}
export async function fetchStacks(boardId) {
const { data } = await axios.get(ocsUrl(`/boards/${boardId}/stacks`))
return data.ocs.data
}