Refactor Instagram metadata types in client/src/types.ts
This commit is contained in:
@@ -64,15 +64,7 @@ export interface EntryDetail {
|
|||||||
type?: string;
|
type?: string;
|
||||||
title_en?: string;
|
title_en?: string;
|
||||||
};
|
};
|
||||||
ig_meta?: {
|
ig_meta?: InstagramMeta;
|
||||||
username?: string;
|
|
||||||
full_name?: string;
|
|
||||||
profile_pic_url?: string;
|
|
||||||
post_url?: string;
|
|
||||||
profile_url?: string;
|
|
||||||
post_date?: string;
|
|
||||||
description?: string;
|
|
||||||
};
|
|
||||||
items: EntryItems;
|
items: EntryItems;
|
||||||
quiz: QuizQuestion[];
|
quiz: QuizQuestion[];
|
||||||
ui_hints?: {
|
ui_hints?: {
|
||||||
@@ -98,4 +90,15 @@ export interface QuizQuestionWithEntry extends QuizQuestion {
|
|||||||
entryTitle: string;
|
entryTitle: string;
|
||||||
items: EntryItems;
|
items: EntryItems;
|
||||||
video_url: string;
|
video_url: string;
|
||||||
|
ig_meta?: InstagramMeta;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface InstagramMeta {
|
||||||
|
username?: string;
|
||||||
|
full_name?: string;
|
||||||
|
profile_pic_url?: string;
|
||||||
|
post_url?: string;
|
||||||
|
profile_url?: string;
|
||||||
|
post_date?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user