このコミットが含まれているのは:
+46
-1
@@ -67,14 +67,59 @@ export type FetchNicoTagsOrderField = 'name' | 'created_at' | 'updated_at'
|
||||
|
||||
export type MaterialFilter = 'present' | 'missing' | 'any'
|
||||
|
||||
export type MaterialIndexDirection = 'asc' | 'desc'
|
||||
|
||||
export type MaterialIndexMediaKind =
|
||||
| 'all'
|
||||
| 'image'
|
||||
| 'video'
|
||||
| 'audio'
|
||||
| 'file_other'
|
||||
| 'url_only'
|
||||
|
||||
export type MaterialIndexSort =
|
||||
| 'created_at'
|
||||
| 'updated_at'
|
||||
| 'tag_name'
|
||||
| 'media_kind'
|
||||
| 'file_byte_size'
|
||||
| 'version_no'
|
||||
| 'id'
|
||||
|
||||
export type MaterialIndexSuppression = 'active' | 'suppressed' | 'all'
|
||||
|
||||
export type MaterialIndexTagState = 'all' | 'tagged' | 'untagged'
|
||||
|
||||
export type MaterialIndexView = 'card' | 'list'
|
||||
|
||||
export type FetchMaterialsParams = {
|
||||
q: string
|
||||
tagState: MaterialIndexTagState
|
||||
mediaKind: MaterialIndexMediaKind
|
||||
suppression: MaterialIndexSuppression
|
||||
createdFrom: string
|
||||
createdTo: string
|
||||
updatedFrom: string
|
||||
updatedTo: string
|
||||
sort: MaterialIndexSort
|
||||
direction: MaterialIndexDirection
|
||||
view: MaterialIndexView
|
||||
page: number
|
||||
limit: number }
|
||||
|
||||
export type Material = {
|
||||
id: number
|
||||
versionNo: number
|
||||
tag: Tag
|
||||
tag: Tag | null
|
||||
file: string | null
|
||||
url: string | null
|
||||
wikiPageBody?: string | null
|
||||
thumbnail: string | null
|
||||
thumbnailFallbackText: string | null
|
||||
thumbnailFallbackKind: 'tag_name' | 'created_at'
|
||||
mediaKind: 'image' | 'video' | 'audio' | 'file_other' | 'url_only' | 'suppressed'
|
||||
contentType: string | null
|
||||
fileByteSize: number | null
|
||||
fileSuppressedAt: string | null
|
||||
fileSuppressionReason: string | null
|
||||
exportPaths: Record<string, string>
|
||||
|
||||
新しい課題から参照
ユーザをブロックする