@techzunction/sdk 0.6.0 → 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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +9 -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';
|
|
@@ -1857,6 +1870,14 @@ declare const TZ: {
|
|
|
1857
1870
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1858
1871
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1859
1872
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
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
|
+
}>;
|
|
1860
1881
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1861
1882
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1862
1883
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2594,6 +2615,14 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2594
2615
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2595
2616
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2596
2617
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
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
|
+
}>;
|
|
2597
2626
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2598
2627
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2599
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';
|
|
@@ -1857,6 +1870,14 @@ declare const TZ: {
|
|
|
1857
1870
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1858
1871
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1859
1872
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
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
|
+
}>;
|
|
1860
1881
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1861
1882
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1862
1883
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2594,6 +2615,14 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2594
2615
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2595
2616
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2596
2617
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
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
|
+
}>;
|
|
2597
2626
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2598
2627
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2599
2628
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
package/dist/index.js
CHANGED
|
@@ -874,6 +874,15 @@ function createStorefrontMovies(c) {
|
|
|
874
874
|
endSession(sessionId) {
|
|
875
875
|
return c.post(`/movies/session/${sessionId}/end`, void 0, "enduser");
|
|
876
876
|
},
|
|
877
|
+
updateSessionCap(sessionId, meterCapPaise) {
|
|
878
|
+
return c.patch(`/movies/session/${sessionId}/update-cap`, { meterCapPaise }, "enduser");
|
|
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
|
+
},
|
|
877
886
|
// ─── Watchlist ───────────────────────────────────────────────────
|
|
878
887
|
getWatchlist() {
|
|
879
888
|
return c.get("/watchlist", "enduser");
|