@techzunction/sdk 0.2.0 → 0.3.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/dist/index.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -861,6 +861,23 @@ function createStorefrontMovies(c) {
|
|
|
861
861
|
buy(id) {
|
|
862
862
|
return c.post(`/movies/${id}/buy`, void 0, "enduser");
|
|
863
863
|
},
|
|
864
|
+
// ─── PPM Watch Sessions ──────────────────────────────────────────
|
|
865
|
+
startSession(tmdbId, data) {
|
|
866
|
+
return c.post(`/movies/${tmdbId}/start-session`, data, "enduser");
|
|
867
|
+
},
|
|
868
|
+
getSessionStatus(sessionId) {
|
|
869
|
+
return c.get(`/movies/session/${sessionId}/status`, "enduser");
|
|
870
|
+
},
|
|
871
|
+
pauseSession(sessionId) {
|
|
872
|
+
return c.post(`/movies/session/${sessionId}/pause`, void 0, "enduser");
|
|
873
|
+
},
|
|
874
|
+
resumeSession(sessionId) {
|
|
875
|
+
return c.post(`/movies/session/${sessionId}/resume`, void 0, "enduser");
|
|
876
|
+
},
|
|
877
|
+
endSession(sessionId) {
|
|
878
|
+
return c.post(`/movies/session/${sessionId}/end`, void 0, "enduser");
|
|
879
|
+
},
|
|
880
|
+
// ─── Watchlist ───────────────────────────────────────────────────
|
|
864
881
|
getWatchlist() {
|
|
865
882
|
return c.get("/watchlist", "enduser");
|
|
866
883
|
},
|
|
@@ -917,6 +934,15 @@ function createStorefrontWallet(c) {
|
|
|
917
934
|
return {
|
|
918
935
|
getPacks() {
|
|
919
936
|
return c.get("/wallet/packs");
|
|
937
|
+
},
|
|
938
|
+
getBalance() {
|
|
939
|
+
return c.get("/wallet/balance", "enduser");
|
|
940
|
+
},
|
|
941
|
+
topUp(data) {
|
|
942
|
+
return c.post("/wallet/topup", data, "enduser");
|
|
943
|
+
},
|
|
944
|
+
getTransactions(params) {
|
|
945
|
+
return c.paginated("/wallet/transactions", params);
|
|
920
946
|
}
|
|
921
947
|
};
|
|
922
948
|
}
|