@techzunction/sdk 0.4.0 → 0.6.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 +64 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +152 -1
- package/dist/index.d.ts +152 -1
- package/dist/index.js +64 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -995,6 +995,66 @@ function createStorefrontHelp(c) {
|
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
+
// src/storefront/rooms.ts
|
|
999
|
+
function createStorefrontRooms(c) {
|
|
1000
|
+
return {
|
|
1001
|
+
create(data) {
|
|
1002
|
+
return c.post("/rooms", data, "enduser");
|
|
1003
|
+
},
|
|
1004
|
+
get(roomId) {
|
|
1005
|
+
return c.get(`/rooms/${roomId}`);
|
|
1006
|
+
},
|
|
1007
|
+
join(roomId, data) {
|
|
1008
|
+
return c.post(`/rooms/${roomId}/join`, data, "enduser");
|
|
1009
|
+
},
|
|
1010
|
+
leave(roomId) {
|
|
1011
|
+
return c.post(`/rooms/${roomId}/leave`, void 0, "enduser");
|
|
1012
|
+
},
|
|
1013
|
+
switchMode(roomId, data) {
|
|
1014
|
+
return c.post(`/rooms/${roomId}/switch-mode`, data, "enduser");
|
|
1015
|
+
},
|
|
1016
|
+
end(roomId) {
|
|
1017
|
+
return c.post(`/rooms/${roomId}/end`, void 0, "enduser");
|
|
1018
|
+
},
|
|
1019
|
+
listLive(params) {
|
|
1020
|
+
return c.paginated("/rooms/live", params);
|
|
1021
|
+
},
|
|
1022
|
+
listForMovie(tmdbId) {
|
|
1023
|
+
return c.get(`/rooms/movie/${tmdbId}`);
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// src/storefront/earnings.ts
|
|
1029
|
+
function createStorefrontEarnings(c) {
|
|
1030
|
+
return {
|
|
1031
|
+
getSummary() {
|
|
1032
|
+
return c.get("/earnings/summary", "enduser");
|
|
1033
|
+
},
|
|
1034
|
+
getHistory(params) {
|
|
1035
|
+
return c.paginated("/earnings/history", params);
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
// src/storefront/connected-sources.ts
|
|
1041
|
+
function createStorefrontConnectedSources(c) {
|
|
1042
|
+
return {
|
|
1043
|
+
list() {
|
|
1044
|
+
return c.get("/connected-sources", "enduser");
|
|
1045
|
+
},
|
|
1046
|
+
getGoogleDriveConnectUrl() {
|
|
1047
|
+
return c.get("/connected-sources/google-drive/connect", "enduser");
|
|
1048
|
+
},
|
|
1049
|
+
connectGoogleDrive(data) {
|
|
1050
|
+
return c.post("/connected-sources/google-drive/callback", data, "enduser");
|
|
1051
|
+
},
|
|
1052
|
+
disconnect(provider) {
|
|
1053
|
+
return c.del(`/connected-sources/${provider}`, "enduser");
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
|
|
998
1058
|
// src/storefront/index.ts
|
|
999
1059
|
function createStorefront(c) {
|
|
1000
1060
|
return {
|
|
@@ -1025,7 +1085,10 @@ function createStorefront(c) {
|
|
|
1025
1085
|
wallet: createStorefrontWallet(c),
|
|
1026
1086
|
student: createStorefrontStudent(c),
|
|
1027
1087
|
mealPlans: createStorefrontMealPlans(c),
|
|
1028
|
-
help: createStorefrontHelp(c)
|
|
1088
|
+
help: createStorefrontHelp(c),
|
|
1089
|
+
rooms: createStorefrontRooms(c),
|
|
1090
|
+
earnings: createStorefrontEarnings(c),
|
|
1091
|
+
connectedSources: createStorefrontConnectedSources(c)
|
|
1029
1092
|
};
|
|
1030
1093
|
}
|
|
1031
1094
|
|