@techzunction/sdk 0.6.1 → 0.6.2
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/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -515,6 +515,19 @@ interface WatchSessionSummary {
|
|
|
515
515
|
hitCap: boolean;
|
|
516
516
|
balancePaise: number;
|
|
517
517
|
}
|
|
518
|
+
interface WatchSessionHistoryItem {
|
|
519
|
+
id: string;
|
|
520
|
+
tmdbId: number;
|
|
521
|
+
movieTitle: string;
|
|
522
|
+
ratePerMinPaise: number;
|
|
523
|
+
meterCapPaise: number;
|
|
524
|
+
totalBilledPaise: number;
|
|
525
|
+
minutesBilled: number;
|
|
526
|
+
status: WatchSessionStatusType;
|
|
527
|
+
rating: number | null;
|
|
528
|
+
startedAt: string;
|
|
529
|
+
endedAt: string | null;
|
|
530
|
+
}
|
|
518
531
|
type WatchRoomStatus = 'waiting' | 'live' | 'ended';
|
|
519
532
|
type WatchRoomPrivacy = 'public' | 'private';
|
|
520
533
|
type WatchRoomVibe = 'chill' | 'serious' | 'party' | 'commentary';
|
|
@@ -1858,6 +1871,13 @@ declare const TZ: {
|
|
|
1858
1871
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1859
1872
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1860
1873
|
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
1874
|
+
rateSession(sessionId: string, rating: number): TZQuery<{
|
|
1875
|
+
session: WatchSessionHistoryItem;
|
|
1876
|
+
}>;
|
|
1877
|
+
getHistory(limit?: number, offset?: number): TZQuery<{
|
|
1878
|
+
sessions: WatchSessionHistoryItem[];
|
|
1879
|
+
total: number;
|
|
1880
|
+
}>;
|
|
1861
1881
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1862
1882
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1863
1883
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2596,6 +2616,13 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2596
2616
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2597
2617
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2598
2618
|
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
2619
|
+
rateSession(sessionId: string, rating: number): TZQuery<{
|
|
2620
|
+
session: WatchSessionHistoryItem;
|
|
2621
|
+
}>;
|
|
2622
|
+
getHistory(limit?: number, offset?: number): TZQuery<{
|
|
2623
|
+
sessions: WatchSessionHistoryItem[];
|
|
2624
|
+
total: number;
|
|
2625
|
+
}>;
|
|
2599
2626
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2600
2627
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2601
2628
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -515,6 +515,19 @@ interface WatchSessionSummary {
|
|
|
515
515
|
hitCap: boolean;
|
|
516
516
|
balancePaise: number;
|
|
517
517
|
}
|
|
518
|
+
interface WatchSessionHistoryItem {
|
|
519
|
+
id: string;
|
|
520
|
+
tmdbId: number;
|
|
521
|
+
movieTitle: string;
|
|
522
|
+
ratePerMinPaise: number;
|
|
523
|
+
meterCapPaise: number;
|
|
524
|
+
totalBilledPaise: number;
|
|
525
|
+
minutesBilled: number;
|
|
526
|
+
status: WatchSessionStatusType;
|
|
527
|
+
rating: number | null;
|
|
528
|
+
startedAt: string;
|
|
529
|
+
endedAt: string | null;
|
|
530
|
+
}
|
|
518
531
|
type WatchRoomStatus = 'waiting' | 'live' | 'ended';
|
|
519
532
|
type WatchRoomPrivacy = 'public' | 'private';
|
|
520
533
|
type WatchRoomVibe = 'chill' | 'serious' | 'party' | 'commentary';
|
|
@@ -1858,6 +1871,13 @@ declare const TZ: {
|
|
|
1858
1871
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1859
1872
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1860
1873
|
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
1874
|
+
rateSession(sessionId: string, rating: number): TZQuery<{
|
|
1875
|
+
session: WatchSessionHistoryItem;
|
|
1876
|
+
}>;
|
|
1877
|
+
getHistory(limit?: number, offset?: number): TZQuery<{
|
|
1878
|
+
sessions: WatchSessionHistoryItem[];
|
|
1879
|
+
total: number;
|
|
1880
|
+
}>;
|
|
1861
1881
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1862
1882
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1863
1883
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2596,6 +2616,13 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2596
2616
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2597
2617
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2598
2618
|
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
2619
|
+
rateSession(sessionId: string, rating: number): TZQuery<{
|
|
2620
|
+
session: WatchSessionHistoryItem;
|
|
2621
|
+
}>;
|
|
2622
|
+
getHistory(limit?: number, offset?: number): TZQuery<{
|
|
2623
|
+
sessions: WatchSessionHistoryItem[];
|
|
2624
|
+
total: number;
|
|
2625
|
+
}>;
|
|
2599
2626
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2600
2627
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2601
2628
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
package/dist/index.js
CHANGED
|
@@ -877,6 +877,12 @@ function createStorefrontMovies(c) {
|
|
|
877
877
|
updateSessionCap(sessionId, meterCapPaise) {
|
|
878
878
|
return c.patch(`/movies/session/${sessionId}/update-cap`, { meterCapPaise }, "enduser");
|
|
879
879
|
},
|
|
880
|
+
rateSession(sessionId, rating) {
|
|
881
|
+
return c.patch(`/movies/session/${sessionId}/rate`, { rating }, "enduser");
|
|
882
|
+
},
|
|
883
|
+
getHistory(limit = 50, offset = 0) {
|
|
884
|
+
return c.get(`/movies/sessions/history?limit=${limit}&offset=${offset}`, "enduser");
|
|
885
|
+
},
|
|
880
886
|
// ─── Watchlist ───────────────────────────────────────────────────
|
|
881
887
|
getWatchlist() {
|
|
882
888
|
return c.get("/watchlist", "enduser");
|