glitch-javascript-sdk 0.9.0 → 0.9.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/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 (influencer_id, params) {
22798
+ return Requests.processRoute(InfluencerRoutes.routes.viewInfluencer, undefined, { influencer_id: influencer_id }, 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,