Add multiple network maps, graph UX improvements, and full backup import.
Support per-map contact membership with scoped graph views, relation editing on edges, layout caching, and automatic detection of full JSON backups so contacts and relations import together. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import api from '../../api'
|
||||
import { fetchAllPages } from '../../lib/api/pagination'
|
||||
|
||||
export const remoteNetworkMapRepository = {
|
||||
async list() {
|
||||
return fetchAllPages((page) => api.get('/network-maps/', { params: { page } }))
|
||||
},
|
||||
async getById(id) {
|
||||
const { data } = await api.get(`/network-maps/${id}/`)
|
||||
return data
|
||||
},
|
||||
async create(payload) {
|
||||
const { data } = await api.post('/network-maps/', payload)
|
||||
return data
|
||||
},
|
||||
async update(id, payload) {
|
||||
const { data } = await api.patch(`/network-maps/${id}/`, payload)
|
||||
return data
|
||||
},
|
||||
async remove(id) {
|
||||
await api.delete(`/network-maps/${id}/`)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user