-
Notifications
You must be signed in to change notification settings - Fork 36
/
index.ts
73 lines (69 loc) · 1.75 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export * from './HighlightMediaMetadata'
export * from './HighlightMetadata'
export * from './MediaConfigureOptions'
export * from './PostFeedResult'
export * from './PostMetadata'
export * from './PostModels'
export * from './PostStoryResult'
export * from './StoriesMetadata'
export * from './UserGraphQlV2'
export * from './UserMetadata'
export * from './PaginatedPosts'
export * from './LoginData'
export * from './searchFollow'
/** instagram username */
export type username = string;
/** instagram user pk */
export type userId = string;
/** term to search for a user, it can be their name or username */
export type seachTerm = string;
/** instagram password */
export type password = string;
/** Instagram Cookie */
export type IgCookie = string;
/** instagram post url can be post, reel, tv */
export type url = string;
/** Media Type */
export enum MediaType {
IMAGE = 1,
VIDEO = 2,
CAROUSEL = 8
}
export enum ProductType {
CAROUSEL = 'carousel_container',
REEL = 'clips',
TV = 'igtv',
SINGLE = 'feed'
}
export enum Typename {
GraphImage = "GraphImage",
GraphSidecar = "GraphSidecar",
GraphVideo = "GraphVideo",
}
export enum IGPostType {
'carousel_container' = 'p',
'clips' = 'reel',
'igtv' = 'tv',
'feed' = 'p'
}
/** Mime Type */
export type MimeType = 'image/jpeg' | 'image/png' | 'video/mp4' | 'video/gif';
/** csrf token */
export type csrfToken = string;
/** instagram post type */
export type postType = 'p' | 'reel' | 'tv'
/** a formatted shortcode */
export interface formattedShortcode {
type: postType | string,
shortcode: string;
url: string;
media_id: number | string
}
export interface IChangedProfilePicture {
changed_profile: boolean
id: number,
has_profile_pic: boolean,
profile_pic_url: string
profile_pic_url_hd: string
status: string
}