@zezosoft/zezo-ott-react-native-ui-kit 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/module/components/Account/Account.js +1 -1
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +48 -19
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +4 -2
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +15 -1
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +4 -2
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/BlurView/BlurView.js +171 -0
- package/lib/module/components/BlurView/BlurView.js.map +1 -0
- package/lib/module/components/BlurView/index.js +9 -0
- package/lib/module/components/BlurView/index.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +2 -3
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +1 -2
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +1 -2
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -2
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +4 -2
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -1
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/MiniInfo.js +64 -19
- package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +1 -1
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +340 -14
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/TabBar/One.js +71 -108
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +63 -78
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +110 -106
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +324 -0
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/index.js +2 -1
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/useNavigationMode.js +34 -0
- package/lib/module/hooks/useNavigationMode.js.map +1 -0
- package/lib/module/utils/Spacing.js +26 -0
- package/lib/module/utils/Spacing.js.map +1 -0
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts +1 -0
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +2 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +2 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BlurView/BlurView.d.ts +48 -0
- package/lib/typescript/src/components/BlurView/BlurView.d.ts.map +1 -0
- package/lib/typescript/src/components/BlurView/index.d.ts +7 -0
- package/lib/typescript/src/components/BlurView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +2 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +24 -24
- package/lib/typescript/src/components/Content/Content.d.ts +2 -1
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -1
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +18 -2
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +2 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +6 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts +3 -2
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +13 -4
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.d.ts +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +50 -0
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/index.d.ts +2 -1
- package/lib/typescript/src/components/User/index.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useNavigationMode.d.ts +14 -0
- package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts +3 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +1 -1
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +1 -1
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/Spacing.d.ts +16 -0
- package/lib/typescript/src/utils/Spacing.d.ts.map +1 -0
- package/package.json +10 -5
- package/src/components/Account/Account.tsx +1 -1
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +82 -37
- package/src/components/Auth/Login/LoginWithEmail.tsx +9 -2
- package/src/components/Auth/OTP/OTP.tsx +37 -1
- package/src/components/Auth/SignUp/SignUp.tsx +9 -2
- package/src/components/BlurView/BlurView.tsx +199 -0
- package/src/components/BlurView/index.ts +7 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +2 -5
- package/src/components/Content/Card/Sliders/Styles/One.tsx +2 -1
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +2 -1
- package/src/components/Content/Card/Styles/Five.tsx +1 -1
- package/src/components/Content/Card/Styles/Four.tsx +4 -2
- package/src/components/Content/Card/Styles/One.tsx +1 -1
- package/src/components/Content/Card/Styles/RotateInOut.tsx +1 -1
- package/src/components/Content/Card/Styles/Six.tsx +1 -1
- package/src/components/Content/Card/Styles/Three.tsx +1 -1
- package/src/components/Content/Card/Styles/TopTen.tsx +1 -1
- package/src/components/Content/Card/Styles/Two.tsx +1 -1
- package/src/components/Content/Card/components/CardPoster.tsx +1 -1
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +1 -1
- package/src/components/Content/Content.tsx +7 -5
- package/src/components/Content/Sections.tsx +2 -1
- package/src/components/ContentView/ContentView.tsx +8 -1
- package/src/components/ContentView/MoreContentList.tsx +1 -1
- package/src/components/ContentView/components/AboutSection.tsx +1 -1
- package/src/components/ContentView/components/CastCard.tsx +2 -1
- package/src/components/ContentView/components/EpisodeCard.tsx +5 -1
- package/src/components/ContentView/components/GenreTags.tsx +1 -1
- package/src/components/ContentView/components/MiniInfo.tsx +100 -23
- package/src/components/ContentView/components/Title.tsx +1 -1
- package/src/components/Search/One.tsx +2 -6
- package/src/components/Settings/AppSettings.tsx +1 -1
- package/src/components/Subscription/SubOne.tsx +422 -12
- package/src/components/TabBar/One.tsx +79 -141
- package/src/components/TabBar/Three.tsx +84 -99
- package/src/components/TabBar/Two.tsx +139 -110
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +439 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +1 -1
- package/src/components/User/WatchLater/WatchLater.tsx +1 -1
- package/src/components/User/index.ts +8 -1
- package/src/components/index.ts +1 -0
- package/src/hooks/useNavigationMode.ts +35 -0
- package/src/types/content/content-view.types.ts +6 -1
- package/src/types/index.ts +1 -1
- package/src/types/sections/index.ts +1 -1
- package/src/utils/Spacing.ts +27 -0
- package/lib/module/types/content/index.js +0 -2
- package/lib/module/types/content/index.js.map +0 -1
- package/lib/typescript/src/types/content/index.d.ts +0 -174
- package/lib/typescript/src/types/content/index.d.ts.map +0 -1
- package/src/types/content/index.ts +0 -194
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Fri 04 Jul 2025 at 10:58 AM
|
|
4
|
-
*/
|
|
5
|
-
export interface IContentLanguage {
|
|
6
|
-
_id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IContentCast {
|
|
10
|
-
_id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
avatar: string | null;
|
|
13
|
-
castType: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IContentCategory {
|
|
16
|
-
_id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IContentGenres {
|
|
20
|
-
_id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ISubtitles {
|
|
24
|
-
title?: string;
|
|
25
|
-
language?: string;
|
|
26
|
-
type: 'application/x-subrip' | 'application/ttml+xml' | 'text/vtt';
|
|
27
|
-
url: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IContentImages {
|
|
30
|
-
id?: string;
|
|
31
|
-
image_id?: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
width: number;
|
|
34
|
-
height: number;
|
|
35
|
-
sizes?: {
|
|
36
|
-
small: string;
|
|
37
|
-
medium: string;
|
|
38
|
-
large: string;
|
|
39
|
-
original: string;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface IContentEpisodes {
|
|
43
|
-
_id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
description: string;
|
|
46
|
-
duration: number;
|
|
47
|
-
number: number;
|
|
48
|
-
source_link: string;
|
|
49
|
-
trailer_source_link: string;
|
|
50
|
-
source_type: 'HLS' | 'MP4';
|
|
51
|
-
content_offering_type: 'FREE' | 'PREMIUM';
|
|
52
|
-
subtitles: ISubtitles[];
|
|
53
|
-
thumbnail: string;
|
|
54
|
-
createdAt: string;
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
status: boolean;
|
|
57
|
-
skipIntroTimestamp?: {
|
|
58
|
-
start: number;
|
|
59
|
-
end: number;
|
|
60
|
-
} | null;
|
|
61
|
-
nextEpisodeTimestamp?: number | null;
|
|
62
|
-
source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM' | 'NONE';
|
|
63
|
-
views?: number;
|
|
64
|
-
watch_time?: number;
|
|
65
|
-
}
|
|
66
|
-
export interface IContentSeasons {
|
|
67
|
-
_id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
content_id: string;
|
|
70
|
-
order: number;
|
|
71
|
-
season_number: number;
|
|
72
|
-
episodes: IContentEpisodes[] | null;
|
|
73
|
-
status: boolean;
|
|
74
|
-
created_by: string;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
}
|
|
78
|
-
export interface IContentPagination {
|
|
79
|
-
length: number;
|
|
80
|
-
limit: number;
|
|
81
|
-
page: number;
|
|
82
|
-
total: number;
|
|
83
|
-
}
|
|
84
|
-
export interface IContentMeta {
|
|
85
|
-
pagination: IContentPagination;
|
|
86
|
-
report: any | null;
|
|
87
|
-
}
|
|
88
|
-
export interface IRentOrBuyContentData {
|
|
89
|
-
_id: string;
|
|
90
|
-
content_id: IContentData;
|
|
91
|
-
user_id: string;
|
|
92
|
-
status: 'valid' | 'expired';
|
|
93
|
-
valid_upto: string;
|
|
94
|
-
createdAt: string;
|
|
95
|
-
updatedAt: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IRentOrBuyContent {
|
|
98
|
-
data: IRentOrBuyContentData[];
|
|
99
|
-
meta: IContentMeta;
|
|
100
|
-
}
|
|
101
|
-
export interface IGetIsRentOrBuyContentByIDData {
|
|
102
|
-
message: string;
|
|
103
|
-
data: {
|
|
104
|
-
_id: string;
|
|
105
|
-
content_id: {
|
|
106
|
-
_id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
is_buy_or_rent?: 'BUY' | 'RENT';
|
|
109
|
-
rent_duration: number;
|
|
110
|
-
price: number;
|
|
111
|
-
};
|
|
112
|
-
user_id: string;
|
|
113
|
-
status: 'valid' | 'expired';
|
|
114
|
-
valid_upto: string;
|
|
115
|
-
createdAt: string;
|
|
116
|
-
updatedAt: string;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export interface IContentData {
|
|
120
|
-
_id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
slug: string;
|
|
123
|
-
description: string;
|
|
124
|
-
u_age: string;
|
|
125
|
-
duration: string;
|
|
126
|
-
rating: number;
|
|
127
|
-
type: 'series' | 'movie' | 'live_stream';
|
|
128
|
-
content_offering_type: 'FREE' | 'PREMIUM' | 'BUY_OR_RENT' | 'TVOD';
|
|
129
|
-
source_link: string | null;
|
|
130
|
-
trailer_source_link: string | null;
|
|
131
|
-
source_type: 'HLS' | 'MP4' | 'LIVE_STREAM_HLS';
|
|
132
|
-
trailer_source_type: 'HLS' | 'MP4';
|
|
133
|
-
source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM';
|
|
134
|
-
trailer_source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM';
|
|
135
|
-
language: IContentLanguage | null;
|
|
136
|
-
cast: IContentCast[] | null;
|
|
137
|
-
category: IContentCategory | null;
|
|
138
|
-
genres: IContentGenres[] | null;
|
|
139
|
-
subtitles: ISubtitles[];
|
|
140
|
-
images?: IContentImages[] | null;
|
|
141
|
-
seasons: IContentSeasons[] | null;
|
|
142
|
-
content_duration?: string | null;
|
|
143
|
-
release_year?: string | null;
|
|
144
|
-
poster: string;
|
|
145
|
-
thumbnail: string;
|
|
146
|
-
title_image?: string | null;
|
|
147
|
-
views: number;
|
|
148
|
-
watch_time?: number | null;
|
|
149
|
-
revenue?: number | null;
|
|
150
|
-
buy_or_rent_status: {
|
|
151
|
-
_id?: string;
|
|
152
|
-
status?: 'valid' | 'expired';
|
|
153
|
-
}[];
|
|
154
|
-
is_buy_or_rent?: 'BUY' | 'RENT';
|
|
155
|
-
rent_duration?: number | null;
|
|
156
|
-
price?: number | null;
|
|
157
|
-
buy_count?: number;
|
|
158
|
-
rent_count?: number;
|
|
159
|
-
buy_revenue?: number;
|
|
160
|
-
rent_revenue?: number;
|
|
161
|
-
status: 'PUBLIC' | 'PRIVATE' | 'PENDING' | 'REJECTED';
|
|
162
|
-
trash: boolean;
|
|
163
|
-
forKids: boolean;
|
|
164
|
-
forFamily: boolean;
|
|
165
|
-
created_by: string;
|
|
166
|
-
updated_by: string;
|
|
167
|
-
createdAt: string;
|
|
168
|
-
updatedAt: string;
|
|
169
|
-
}
|
|
170
|
-
export interface IContent {
|
|
171
|
-
data: IContentData[];
|
|
172
|
-
meta: IContentMeta;
|
|
173
|
-
}
|
|
174
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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U,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IACtD,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Fri 04 Jul 2025 at 10:58 AM
|
|
4
|
-
*/
|
|
5
|
-
export interface IContentLanguage {
|
|
6
|
-
_id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IContentCast {
|
|
11
|
-
_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
avatar: string | null;
|
|
14
|
-
castType: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IContentCategory {
|
|
18
|
-
_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface IContentGenres {
|
|
23
|
-
_id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ISubtitles {
|
|
28
|
-
title?: string;
|
|
29
|
-
language?: string;
|
|
30
|
-
type: 'application/x-subrip' | 'application/ttml+xml' | 'text/vtt';
|
|
31
|
-
url: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IContentImages {
|
|
35
|
-
id?: string;
|
|
36
|
-
image_id?: string;
|
|
37
|
-
name?: string;
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
sizes?: {
|
|
41
|
-
small: string;
|
|
42
|
-
medium: string;
|
|
43
|
-
large: string;
|
|
44
|
-
original: string;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// 🔵 Episode & Season
|
|
49
|
-
export interface IContentEpisodes {
|
|
50
|
-
_id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
description: string;
|
|
53
|
-
duration: number;
|
|
54
|
-
number: number;
|
|
55
|
-
source_link: string;
|
|
56
|
-
trailer_source_link: string;
|
|
57
|
-
source_type: 'HLS' | 'MP4';
|
|
58
|
-
content_offering_type: 'FREE' | 'PREMIUM';
|
|
59
|
-
subtitles: ISubtitles[];
|
|
60
|
-
thumbnail: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
status: boolean;
|
|
64
|
-
skipIntroTimestamp?: { start: number; end: number } | null;
|
|
65
|
-
nextEpisodeTimestamp?: number | null;
|
|
66
|
-
source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM' | 'NONE';
|
|
67
|
-
views?: number;
|
|
68
|
-
watch_time?: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface IContentSeasons {
|
|
72
|
-
_id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
content_id: string;
|
|
75
|
-
order: number;
|
|
76
|
-
season_number: number;
|
|
77
|
-
episodes: IContentEpisodes[] | null;
|
|
78
|
-
status: boolean;
|
|
79
|
-
created_by: string;
|
|
80
|
-
createdAt: string;
|
|
81
|
-
updatedAt: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 🔶 Pagination & Meta
|
|
85
|
-
export interface IContentPagination {
|
|
86
|
-
length: number;
|
|
87
|
-
limit: number;
|
|
88
|
-
page: number;
|
|
89
|
-
total: number;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface IContentMeta {
|
|
93
|
-
pagination: IContentPagination;
|
|
94
|
-
report: any | null;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// 🟥 Rent/Buy
|
|
98
|
-
export interface IRentOrBuyContentData {
|
|
99
|
-
_id: string;
|
|
100
|
-
content_id: IContentData;
|
|
101
|
-
user_id: string;
|
|
102
|
-
status: 'valid' | 'expired';
|
|
103
|
-
valid_upto: string;
|
|
104
|
-
createdAt: string;
|
|
105
|
-
updatedAt: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface IRentOrBuyContent {
|
|
109
|
-
data: IRentOrBuyContentData[];
|
|
110
|
-
meta: IContentMeta;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface IGetIsRentOrBuyContentByIDData {
|
|
114
|
-
message: string;
|
|
115
|
-
data: {
|
|
116
|
-
_id: string;
|
|
117
|
-
content_id: {
|
|
118
|
-
_id: string;
|
|
119
|
-
name: string;
|
|
120
|
-
is_buy_or_rent?: 'BUY' | 'RENT';
|
|
121
|
-
rent_duration: number;
|
|
122
|
-
price: number;
|
|
123
|
-
};
|
|
124
|
-
user_id: string;
|
|
125
|
-
status: 'valid' | 'expired';
|
|
126
|
-
valid_upto: string;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
updatedAt: string;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// 🟢 Main Content Type
|
|
133
|
-
export interface IContentData {
|
|
134
|
-
_id: string;
|
|
135
|
-
name: string;
|
|
136
|
-
slug: string;
|
|
137
|
-
description: string;
|
|
138
|
-
u_age: string;
|
|
139
|
-
duration: string;
|
|
140
|
-
rating: number;
|
|
141
|
-
type: 'series' | 'movie' | 'live_stream';
|
|
142
|
-
content_offering_type: 'FREE' | 'PREMIUM' | 'BUY_OR_RENT' | 'TVOD';
|
|
143
|
-
source_link: string | null;
|
|
144
|
-
trailer_source_link: string | null;
|
|
145
|
-
source_type: 'HLS' | 'MP4' | 'LIVE_STREAM_HLS';
|
|
146
|
-
trailer_source_type: 'HLS' | 'MP4';
|
|
147
|
-
source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM';
|
|
148
|
-
trailer_source_key_type?: 'USE_PREFIX' | 'USE_CUSTOM';
|
|
149
|
-
language: IContentLanguage | null;
|
|
150
|
-
cast: IContentCast[] | null;
|
|
151
|
-
category: IContentCategory | null;
|
|
152
|
-
genres: IContentGenres[] | null;
|
|
153
|
-
subtitles: ISubtitles[];
|
|
154
|
-
images?: IContentImages[] | null;
|
|
155
|
-
|
|
156
|
-
seasons: IContentSeasons[] | null;
|
|
157
|
-
content_duration?: string | null;
|
|
158
|
-
release_year?: string | null;
|
|
159
|
-
|
|
160
|
-
poster: string;
|
|
161
|
-
thumbnail: string;
|
|
162
|
-
title_image?: string | null;
|
|
163
|
-
|
|
164
|
-
views: number;
|
|
165
|
-
watch_time?: number | null;
|
|
166
|
-
revenue?: number | null;
|
|
167
|
-
|
|
168
|
-
buy_or_rent_status: {
|
|
169
|
-
_id?: string;
|
|
170
|
-
status?: 'valid' | 'expired';
|
|
171
|
-
}[];
|
|
172
|
-
|
|
173
|
-
is_buy_or_rent?: 'BUY' | 'RENT';
|
|
174
|
-
rent_duration?: number | null;
|
|
175
|
-
price?: number | null;
|
|
176
|
-
buy_count?: number;
|
|
177
|
-
rent_count?: number;
|
|
178
|
-
buy_revenue?: number;
|
|
179
|
-
rent_revenue?: number;
|
|
180
|
-
status: 'PUBLIC' | 'PRIVATE' | 'PENDING' | 'REJECTED';
|
|
181
|
-
trash: boolean;
|
|
182
|
-
forKids: boolean;
|
|
183
|
-
forFamily: boolean;
|
|
184
|
-
created_by: string;
|
|
185
|
-
updated_by: string;
|
|
186
|
-
createdAt: string;
|
|
187
|
-
updatedAt: string;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// 🟣 API Response Wrapper
|
|
191
|
-
export interface IContent {
|
|
192
|
-
data: IContentData[];
|
|
193
|
-
meta: IContentMeta;
|
|
194
|
-
}
|