mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
- Add rename media file - add delete media file - Add many load functions - add user bookmarks (no tests yet) - user bookmarks - fixes and unit tests - user rating - Add analytics - add beta keys endpoints - add comments endpoints - Add conversion endpoint - Add featured items endpoints - Add to Jobs enpoints - Add moderation endpoint - Initial weights endpoints - All weight enpoints, no unit tests - unit tests for weights extra fixes from wil: - turn off proxy settings for node_env === development - audit packages --------- Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home> Co-authored-by: wil <wil@storyteller.ai>
41 lines
767 B
TypeScript
41 lines
767 B
TypeScript
interface CoverImage {
|
|
default_cover: {
|
|
color_index: number;
|
|
image_index: number;
|
|
};
|
|
maybe_cover_image_public_bucket_path: string;
|
|
}
|
|
|
|
interface DefaultAvatar {
|
|
color_index: number;
|
|
image_index: number;
|
|
}
|
|
|
|
interface Creator {
|
|
default_avatar: DefaultAvatar;
|
|
display_name: string;
|
|
gravatar_hash: string;
|
|
user_token: string;
|
|
username: string;
|
|
}
|
|
|
|
interface Stats {
|
|
bookmark_count: number;
|
|
positive_rating_count: number;
|
|
}
|
|
|
|
export interface Weight {
|
|
cover_image: CoverImage;
|
|
created_at: string;
|
|
creator: Creator;
|
|
creator_set_visibility: string;
|
|
file_checksum_sha2: string;
|
|
file_size_bytes: number;
|
|
stats: Stats;
|
|
title: string;
|
|
updated_at: string;
|
|
weight_category: string;
|
|
weight_token: string;
|
|
weight_type: string;
|
|
}
|