@natsuneko-laboratory/catalyst-sdk 0.7.1 → 0.7.2
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.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -221,7 +221,11 @@ var CatalystEndpoint = {
|
|
|
221
221
|
return { path: "/catalyst/v1/custom-reactions", method: "GET" };
|
|
222
222
|
},
|
|
223
223
|
createCustomReaction(data) {
|
|
224
|
-
return {
|
|
224
|
+
return {
|
|
225
|
+
path: "/catalyst/v1/custom-reactions",
|
|
226
|
+
method: "POST",
|
|
227
|
+
body: data
|
|
228
|
+
};
|
|
225
229
|
},
|
|
226
230
|
updateCustomReaction(id, data) {
|
|
227
231
|
return {
|
|
@@ -571,7 +575,7 @@ var CatalystEndpoint = {
|
|
|
571
575
|
},
|
|
572
576
|
getContestVotes(slug) {
|
|
573
577
|
return {
|
|
574
|
-
path: `/catalyst/v1/contest/by/slug/${slug}/
|
|
578
|
+
path: `/catalyst/v1/contest/by/slug/${slug}/vote`,
|
|
575
579
|
method: "GET"
|
|
576
580
|
};
|
|
577
581
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -172,7 +172,11 @@ var CatalystEndpoint = {
|
|
|
172
172
|
return { path: "/catalyst/v1/custom-reactions", method: "GET" };
|
|
173
173
|
},
|
|
174
174
|
createCustomReaction(data) {
|
|
175
|
-
return {
|
|
175
|
+
return {
|
|
176
|
+
path: "/catalyst/v1/custom-reactions",
|
|
177
|
+
method: "POST",
|
|
178
|
+
body: data
|
|
179
|
+
};
|
|
176
180
|
},
|
|
177
181
|
updateCustomReaction(id, data) {
|
|
178
182
|
return {
|
|
@@ -522,7 +526,7 @@ var CatalystEndpoint = {
|
|
|
522
526
|
},
|
|
523
527
|
getContestVotes(slug) {
|
|
524
528
|
return {
|
|
525
|
-
path: `/catalyst/v1/contest/by/slug/${slug}/
|
|
529
|
+
path: `/catalyst/v1/contest/by/slug/${slug}/vote`,
|
|
526
530
|
method: "GET"
|
|
527
531
|
};
|
|
528
532
|
},
|