Kontakt-Modul
Dieser Commit ist enthalten in:
committet von
Server Deploy
Ursprung
623bbdf5dd
Commit
7d67557be4
@ -645,6 +645,31 @@ class ApiClient {
|
||||
return token ? `${url}?token=${encodeURIComponent(token)}` : url;
|
||||
}
|
||||
|
||||
// =====================
|
||||
// REMINDER ENDPOINTS
|
||||
// =====================
|
||||
|
||||
async getReminders(projectId) {
|
||||
const response = await this.get(`/reminders?project_id=${projectId}`);
|
||||
return response.data || response; // Extract data property or fallback to response
|
||||
}
|
||||
|
||||
async createReminder(data) {
|
||||
return this.post('/reminders', data);
|
||||
}
|
||||
|
||||
async updateReminder(reminderId, data) {
|
||||
return this.put(`/reminders/${reminderId}`, data);
|
||||
}
|
||||
|
||||
async deleteReminder(reminderId) {
|
||||
return this.delete(`/reminders/${reminderId}`);
|
||||
}
|
||||
|
||||
async getDueReminders() {
|
||||
return this.get('/reminders/due/check');
|
||||
}
|
||||
|
||||
// =====================
|
||||
// LINK ENDPOINTS
|
||||
// =====================
|
||||
@ -1258,6 +1283,35 @@ class ApiClient {
|
||||
async validateCodingPath(path) {
|
||||
return this.post('/coding/validate-path', { path });
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// CONTACTS
|
||||
// =============================================================================
|
||||
|
||||
async getContacts(params = {}) {
|
||||
const queryString = new URLSearchParams(params).toString();
|
||||
return this.get(`/contacts${queryString ? '?' + queryString : ''}`);
|
||||
}
|
||||
|
||||
async getContact(id) {
|
||||
return this.get(`/contacts/${id}`);
|
||||
}
|
||||
|
||||
async createContact(data) {
|
||||
return this.post('/contacts', data);
|
||||
}
|
||||
|
||||
async updateContact(id, data) {
|
||||
return this.put(`/contacts/${id}`, data);
|
||||
}
|
||||
|
||||
async deleteContact(id) {
|
||||
return this.delete(`/contacts/${id}`);
|
||||
}
|
||||
|
||||
async getContactTags() {
|
||||
return this.get('/contacts/tags/all');
|
||||
}
|
||||
}
|
||||
|
||||
// Custom API Error Class
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren