-
Notifications
You must be signed in to change notification settings - Fork 198
/
tag.ts
31 lines (28 loc) · 913 Bytes
/
tag.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { EntitySys } from './sys'
import { ContentfulCollection } from './collection'
import { UserLink } from './link'
/**
* System managed metadata for tags
* @category Tag
* @see {@link https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/common-resource-attributes | CDA documentation on common attributes}
*/
export interface TagSys extends Omit<EntitySys, 'locale' | 'revision'> {
version: number
visibility: string
createdBy: { sys: UserLink }
updatedBy: { sys: UserLink }
}
/**
* Properties for a single content tag definition
* @category Tag
* @see {@link https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-tags | CDA documentation on Content Tags}
*/
export type Tag = {
name: string
sys: TagSys
}
/**
* Collection of tags
* @category Tag
*/
export type TagCollection = ContentfulCollection<Tag>