@mapeo/schema
Version:
JSON schema and flow types for Mapeo
158 lines (84 loc) • 2.36 kB
Markdown
[API](../README.md) / Filter
# Interface: Filter
A filter is a saved view of data in the Mapeo database, filtered by tag or date. E.g. a filter could define observations between two dates, or only observations with the tag `public=true`
## Indexable
▪ [k: `string`]: `unknown`
## Table of contents
### Properties
- [created\_at](Filter.md#created_at)
- [deviceId](Filter.md#deviceid)
- [filter](Filter.md#filter)
- [id](Filter.md#id)
- [links](Filter.md#links)
- [name](Filter.md#name)
- [schemaVersion](Filter.md#schemaversion)
- [timestamp](Filter.md#timestamp)
- [type](Filter.md#type)
- [userId](Filter.md#userid)
- [version](Filter.md#version)
## Properties
### created\_at
• **created\_at**: `string`
RFC3339-formatted datetime of when the first version of the element was created
#### Defined in
filter/v1.ts:23
___
### deviceId
• `Optional` **deviceId**: `string`
ID of the device that made this edit
#### Defined in
filter/v1.ts:35
___
### filter
• **filter**: `unknown`[]
A filter expression as defined in https://docs.mapbox.com/mapbox-gl-js/style-spec/#other-filter but where the special fields `$type` refers to the mapeo type (observation, node, way etc) and `$id` is the mapeo id.
#### Defined in
filter/v1.ts:51
___
### id
• **id**: `string`
Unique value that identifies this element
#### Defined in
filter/v1.ts:15
___
### links
• `Optional` **links**: `string`[]
Version ids of the previous document versions this one is replacing
#### Defined in
filter/v1.ts:43
___
### name
• **name**: `string`
A human-readable name for this filter.
#### Defined in
filter/v1.ts:55
___
### schemaVersion
• **schemaVersion**: ``1``
Version of this schema. Should increment for breaking changes to the schema
#### Defined in
filter/v1.ts:47
___
### timestamp
• `Optional` **timestamp**: `string`
RFC3339-formatted datetime of when this version of the element was created
#### Defined in
filter/v1.ts:27
___
### type
• **type**: ``"filter"``
Must be `filter`
#### Defined in
filter/v1.ts:39
___
### userId
• `Optional` **userId**: `string`
ID of the user who edited/created this record
#### Defined in
filter/v1.ts:31
___
### version
• **version**: `string`
Unique value that identifies this particular version of this element
#### Defined in
filter/v1.ts:19