MapComplete/src/Logic/Web/CommunityIndex.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
914 B
TypeScript
Raw Normal View History

/**
* Various tools and types to work with the community index (https://openstreetmap.community/; https://github.com/osmlab/osm-community-index)
*/
export interface CommunityResource {
/**
* A unique identifier for the resource
* "pattern": "^[-_.A-Za-z0-9]+$"
*/
2025-02-10 02:04:58 +01:00
id: string
/**
* Type of community resource (thus: platform)
*/
2025-02-10 02:04:58 +01:00
type: string
/**
* included and excluded locations for this item
* See location-conflation documentation for compatible values: https://github.com/rapideditor/location-conflation#readme
*/
2025-02-10 02:04:58 +01:00
locationSet?
/** Array of ISO-639-1 (2 letter) or ISO-639-3 (3 letter) codes in lowercase
* */
languageCodes?: string[]
/**
* Resource account string, required for some resource types
*/
account?: string
2025-02-10 02:04:58 +01:00
resolved?: { url: string; name: string; description: string } & Record<string, string>
}