List view
This release will expose the `project.$member` API, allowing listing of devices in a project, changing a device's role, and removing a device from a project. It will also expose a way to get the capabilities of the current device, to decide whether to display UX for editing observations or inviting devices.
Overdue by 1 year(s)•Due by October 5, 2023This release will enable browsing of locally discovered devices, inviting a device, and syncing with a device
Overdue by 1 year(s)•Due by September 21, 2023This release will change the exported class from a project instance to a `MapeoClient` that is used to create and join projects. It will need a root key (a 16-byte buffer of random data) and storage paths. ```ts const client = new MapeoClient({ rootKey, dbFolder, coreStorage }) const projectId = await client.createProject() const project = await client.getProject(projectId) ``` This release will also support for each project: - `project.$getProjectSettings()` - `project.$setProjectSettings()` - `project.observation` CRUD methods - `project.preset` CRUD methods - `project.field` CRUD methods For reading a list of observations: ```ts const observations = await project.observation.getMany() ``` For reading a single observation: ```ts const observation = await project.observation.getByDocId(docId) ``` For updating an observation: ```ts const updated = await project.observation.update(versionId, updatedValue) ``` For reading presets: ```ts const presets = await project.preset.getMany() const fields = [] for (const fieldId of presets[0].fieldIds) fields.push(await project.field.getByDocId(fieldId) } ```
Overdue by 1 year(s)•Due by September 7, 2023