UNPKG

gizmovsky

Version:
23 lines (21 loc) 682 B
import { GizmoClient } from '../GizmoClient.js'; export class ApplicationTasks { constructor(client) { this.client = client; } getAll(params = {}) { return this.client.request('get', '/v2.0/applicationtasks', {}, params); } getById(id) { return this.client.request('get', `/v2.0/applicationtasks/${id}`); } create(data) { return this.client.request('post', '/v2.0/applicationtasks', data); } update(data) { return this.client.request('put', '/v2.0/applicationtasks', data); } delete(id) { return this.client.request('delete', `/v2.0/applicationtasks/${id}`); } }