glitch-javascript-sdk 0.9.0 → 0.9.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/cjs/index.js +37 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Influencers.d.ts +21 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +37 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/InfluencerRoutes.d.ts +7 -0
- package/dist/index.d.ts +20 -0
- package/package.json +1 -1
- package/src/api/Influencers.ts +32 -0
- package/src/api/index.ts +3 -1
- package/src/index.ts +2 -0
- package/src/routes/InfluencerRoutes.ts +13 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22764,6 +22764,42 @@ var Feedback = /** @class */ (function () {
|
|
|
22764
22764
|
return Feedback;
|
|
22765
22765
|
}());
|
|
22766
22766
|
|
|
22767
|
+
var InfluencerRoutes = /** @class */ (function () {
|
|
22768
|
+
function InfluencerRoutes() {
|
|
22769
|
+
}
|
|
22770
|
+
InfluencerRoutes.routes = {
|
|
22771
|
+
listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
|
|
22772
|
+
viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
|
|
22773
|
+
};
|
|
22774
|
+
return InfluencerRoutes;
|
|
22775
|
+
}());
|
|
22776
|
+
|
|
22777
|
+
var Influencers = /** @class */ (function () {
|
|
22778
|
+
function Influencers() {
|
|
22779
|
+
}
|
|
22780
|
+
/**
|
|
22781
|
+
* Get a list of influencers available on he platform.
|
|
22782
|
+
*
|
|
22783
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
|
|
22784
|
+
*
|
|
22785
|
+
* @returns promise
|
|
22786
|
+
*/
|
|
22787
|
+
Influencers.listInfluencers = function (params) {
|
|
22788
|
+
return Requests.processRoute(InfluencerRoutes.routes.listInfluencers, undefined, undefined, params);
|
|
22789
|
+
};
|
|
22790
|
+
/**
|
|
22791
|
+
* Retrieve information on a single influencer.
|
|
22792
|
+
*
|
|
22793
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencerById
|
|
22794
|
+
*
|
|
22795
|
+
* @returns promise
|
|
22796
|
+
*/
|
|
22797
|
+
Influencers.viewInfluencer = function (params) {
|
|
22798
|
+
return Requests.processRoute(InfluencerRoutes.routes.viewInfluencer, undefined, undefined, params);
|
|
22799
|
+
};
|
|
22800
|
+
return Influencers;
|
|
22801
|
+
}());
|
|
22802
|
+
|
|
22767
22803
|
var Parser = /** @class */ (function () {
|
|
22768
22804
|
function Parser() {
|
|
22769
22805
|
}
|
|
@@ -23168,6 +23204,7 @@ var Glitch = /** @class */ (function () {
|
|
|
23168
23204
|
Users: Users,
|
|
23169
23205
|
Events: Events,
|
|
23170
23206
|
Feedback: Feedback,
|
|
23207
|
+
Influencers: Influencers,
|
|
23171
23208
|
Teams: Teams,
|
|
23172
23209
|
Posts: Posts,
|
|
23173
23210
|
Messages: Messages,
|