@techzunction/sdk 0.5.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 +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1037,6 +1037,24 @@ function createStorefrontEarnings(c) {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
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
|
+
|
|
1040
1058
|
// src/storefront/index.ts
|
|
1041
1059
|
function createStorefront(c) {
|
|
1042
1060
|
return {
|
|
@@ -1069,7 +1087,8 @@ function createStorefront(c) {
|
|
|
1069
1087
|
mealPlans: createStorefrontMealPlans(c),
|
|
1070
1088
|
help: createStorefrontHelp(c),
|
|
1071
1089
|
rooms: createStorefrontRooms(c),
|
|
1072
|
-
earnings: createStorefrontEarnings(c)
|
|
1090
|
+
earnings: createStorefrontEarnings(c),
|
|
1091
|
+
connectedSources: createStorefrontConnectedSources(c)
|
|
1073
1092
|
};
|
|
1074
1093
|
}
|
|
1075
1094
|
|