@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 +105 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -1
- package/dist/index.d.ts +260 -1
- package/dist/index.js +105 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -858,6 +858,23 @@ function createStorefrontMovies(c) {
|
|
|
858
858
|
buy(id) {
|
|
859
859
|
return c.post(`/movies/${id}/buy`, void 0, "enduser");
|
|
860
860
|
},
|
|
861
|
+
// ─── PPM Watch Sessions ──────────────────────────────────────────
|
|
862
|
+
startSession(tmdbId, data) {
|
|
863
|
+
return c.post(`/movies/${tmdbId}/start-session`, data, "enduser");
|
|
864
|
+
},
|
|
865
|
+
getSessionStatus(sessionId) {
|
|
866
|
+
return c.get(`/movies/session/${sessionId}/status`, "enduser");
|
|
867
|
+
},
|
|
868
|
+
pauseSession(sessionId) {
|
|
869
|
+
return c.post(`/movies/session/${sessionId}/pause`, void 0, "enduser");
|
|
870
|
+
},
|
|
871
|
+
resumeSession(sessionId) {
|
|
872
|
+
return c.post(`/movies/session/${sessionId}/resume`, void 0, "enduser");
|
|
873
|
+
},
|
|
874
|
+
endSession(sessionId) {
|
|
875
|
+
return c.post(`/movies/session/${sessionId}/end`, void 0, "enduser");
|
|
876
|
+
},
|
|
877
|
+
// ─── Watchlist ───────────────────────────────────────────────────
|
|
861
878
|
getWatchlist() {
|
|
862
879
|
return c.get("/watchlist", "enduser");
|
|
863
880
|
},
|
|
@@ -914,6 +931,15 @@ function createStorefrontWallet(c) {
|
|
|
914
931
|
return {
|
|
915
932
|
getPacks() {
|
|
916
933
|
return c.get("/wallet/packs");
|
|
934
|
+
},
|
|
935
|
+
getBalance() {
|
|
936
|
+
return c.get("/wallet/balance", "enduser");
|
|
937
|
+
},
|
|
938
|
+
topUp(data) {
|
|
939
|
+
return c.post("/wallet/topup", data, "enduser");
|
|
940
|
+
},
|
|
941
|
+
getTransactions(params) {
|
|
942
|
+
return c.paginated("/wallet/transactions", params);
|
|
917
943
|
}
|
|
918
944
|
};
|
|
919
945
|
}
|
|
@@ -1874,6 +1900,85 @@ function createAdmin(root, c) {
|
|
|
1874
1900
|
return c.del(`/institutions/${id}`);
|
|
1875
1901
|
}
|
|
1876
1902
|
},
|
|
1903
|
+
// ─── Inventory (Admin) ───────────────────────────────────────────
|
|
1904
|
+
inventory: {
|
|
1905
|
+
list(params) {
|
|
1906
|
+
return c.paginated("/inventory", params);
|
|
1907
|
+
},
|
|
1908
|
+
get(id) {
|
|
1909
|
+
return c.get(`/inventory/${id}`);
|
|
1910
|
+
},
|
|
1911
|
+
create(data) {
|
|
1912
|
+
return c.post("/inventory", data);
|
|
1913
|
+
},
|
|
1914
|
+
update(id, data) {
|
|
1915
|
+
return c.patch(`/inventory/${id}`, data);
|
|
1916
|
+
},
|
|
1917
|
+
remove(id) {
|
|
1918
|
+
return c.del(`/inventory/${id}`);
|
|
1919
|
+
},
|
|
1920
|
+
alerts: {
|
|
1921
|
+
list() {
|
|
1922
|
+
return c.get("/inventory/alerts");
|
|
1923
|
+
},
|
|
1924
|
+
resolve(id) {
|
|
1925
|
+
return c.patch(`/inventory/alerts/${id}`, { isResolved: true });
|
|
1926
|
+
}
|
|
1927
|
+
},
|
|
1928
|
+
waste: {
|
|
1929
|
+
list() {
|
|
1930
|
+
return c.get("/inventory/waste");
|
|
1931
|
+
},
|
|
1932
|
+
create(data) {
|
|
1933
|
+
return c.post("/inventory/waste", data);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
// ─── Suppliers (Admin) ────────────────────────────────────────────
|
|
1938
|
+
suppliers: {
|
|
1939
|
+
list(params) {
|
|
1940
|
+
return c.paginated("/suppliers", params);
|
|
1941
|
+
},
|
|
1942
|
+
get(id) {
|
|
1943
|
+
return c.get(`/suppliers/${id}`);
|
|
1944
|
+
},
|
|
1945
|
+
create(data) {
|
|
1946
|
+
return c.post("/suppliers", data);
|
|
1947
|
+
},
|
|
1948
|
+
update(id, data) {
|
|
1949
|
+
return c.patch(`/suppliers/${id}`, data);
|
|
1950
|
+
},
|
|
1951
|
+
remove(id) {
|
|
1952
|
+
return c.del(`/suppliers/${id}`);
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
// ─── Purchase Orders (Admin) ──────────────────────────────────────
|
|
1956
|
+
purchaseOrders: {
|
|
1957
|
+
list(params) {
|
|
1958
|
+
return c.paginated("/purchase-orders", params);
|
|
1959
|
+
},
|
|
1960
|
+
get(id) {
|
|
1961
|
+
return c.get(`/purchase-orders/${id}`);
|
|
1962
|
+
},
|
|
1963
|
+
create(data) {
|
|
1964
|
+
return c.post("/purchase-orders", data);
|
|
1965
|
+
},
|
|
1966
|
+
update(id, data) {
|
|
1967
|
+
return c.patch(`/purchase-orders/${id}`, data);
|
|
1968
|
+
},
|
|
1969
|
+
remove(id) {
|
|
1970
|
+
return c.del(`/purchase-orders/${id}`);
|
|
1971
|
+
}
|
|
1972
|
+
},
|
|
1973
|
+
// ─── Meal Subscriptions (Admin) ───────────────────────────────────
|
|
1974
|
+
mealSubscriptions: {
|
|
1975
|
+
list(params) {
|
|
1976
|
+
return c.paginated("/subscriptions", params);
|
|
1977
|
+
},
|
|
1978
|
+
get(id) {
|
|
1979
|
+
return c.get(`/subscriptions/${id}`);
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1877
1982
|
// ─── Meal Plans (Admin) ──────────────────────────────────────────
|
|
1878
1983
|
mealPlans: {
|
|
1879
1984
|
list(params) {
|