@techzunction/sdk 0.2.0 → 0.3.1

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 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
  }
@@ -1877,6 +1903,85 @@ function createAdmin(root, c) {
1877
1903
  return c.del(`/institutions/${id}`);
1878
1904
  }
1879
1905
  },
1906
+ // ─── Inventory (Admin) ───────────────────────────────────────────
1907
+ inventory: {
1908
+ list(params) {
1909
+ return c.paginated("/inventory", params);
1910
+ },
1911
+ get(id) {
1912
+ return c.get(`/inventory/${id}`);
1913
+ },
1914
+ create(data) {
1915
+ return c.post("/inventory", data);
1916
+ },
1917
+ update(id, data) {
1918
+ return c.patch(`/inventory/${id}`, data);
1919
+ },
1920
+ remove(id) {
1921
+ return c.del(`/inventory/${id}`);
1922
+ },
1923
+ alerts: {
1924
+ list() {
1925
+ return c.get("/inventory/alerts");
1926
+ },
1927
+ resolve(id) {
1928
+ return c.patch(`/inventory/alerts/${id}`, { isResolved: true });
1929
+ }
1930
+ },
1931
+ waste: {
1932
+ list() {
1933
+ return c.get("/inventory/waste");
1934
+ },
1935
+ create(data) {
1936
+ return c.post("/inventory/waste", data);
1937
+ }
1938
+ }
1939
+ },
1940
+ // ─── Suppliers (Admin) ────────────────────────────────────────────
1941
+ suppliers: {
1942
+ list(params) {
1943
+ return c.paginated("/suppliers", params);
1944
+ },
1945
+ get(id) {
1946
+ return c.get(`/suppliers/${id}`);
1947
+ },
1948
+ create(data) {
1949
+ return c.post("/suppliers", data);
1950
+ },
1951
+ update(id, data) {
1952
+ return c.patch(`/suppliers/${id}`, data);
1953
+ },
1954
+ remove(id) {
1955
+ return c.del(`/suppliers/${id}`);
1956
+ }
1957
+ },
1958
+ // ─── Purchase Orders (Admin) ──────────────────────────────────────
1959
+ purchaseOrders: {
1960
+ list(params) {
1961
+ return c.paginated("/purchase-orders", params);
1962
+ },
1963
+ get(id) {
1964
+ return c.get(`/purchase-orders/${id}`);
1965
+ },
1966
+ create(data) {
1967
+ return c.post("/purchase-orders", data);
1968
+ },
1969
+ update(id, data) {
1970
+ return c.patch(`/purchase-orders/${id}`, data);
1971
+ },
1972
+ remove(id) {
1973
+ return c.del(`/purchase-orders/${id}`);
1974
+ }
1975
+ },
1976
+ // ─── Meal Subscriptions (Admin) ───────────────────────────────────
1977
+ mealSubscriptions: {
1978
+ list(params) {
1979
+ return c.paginated("/subscriptions", params);
1980
+ },
1981
+ get(id) {
1982
+ return c.get(`/subscriptions/${id}`);
1983
+ }
1984
+ },
1880
1985
  // ─── Meal Plans (Admin) ──────────────────────────────────────────
1881
1986
  mealPlans: {
1882
1987
  list(params) {