glitch-javascript-sdk 0.8.9 → 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 CHANGED
@@ -21600,6 +21600,7 @@ var UtilityRoutes = /** @class */ (function () {
21600
21600
  countries: { url: '/util/countries', method: HTTP_METHODS.GET },
21601
21601
  genders: { url: '/util/genders', method: HTTP_METHODS.GET },
21602
21602
  ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
21603
+ types: { url: '/util/types', method: HTTP_METHODS.GET },
21603
21604
  };
21604
21605
  return UtilityRoutes;
21605
21606
  }());
@@ -21657,6 +21658,16 @@ var Utility = /** @class */ (function () {
21657
21658
  Utility.listEthnicities = function (params) {
21658
21659
  return Requests.processRoute(UtilityRoutes.routes.ethnicities, undefined, undefined, params);
21659
21660
  };
21661
+ /**
21662
+ * Get all the game types available on the platform.
21663
+ *
21664
+ * @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
21665
+ *
21666
+ * @returns promise
21667
+ */
21668
+ Utility.listTypes = function (params) {
21669
+ return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
21670
+ };
21660
21671
  return Utility;
21661
21672
  }());
21662
21673
 
@@ -22753,6 +22764,42 @@ var Feedback = /** @class */ (function () {
22753
22764
  return Feedback;
22754
22765
  }());
22755
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
+
22756
22803
  var Parser = /** @class */ (function () {
22757
22804
  function Parser() {
22758
22805
  }
@@ -23157,6 +23204,7 @@ var Glitch = /** @class */ (function () {
23157
23204
  Users: Users,
23158
23205
  Events: Events,
23159
23206
  Feedback: Feedback,
23207
+ Influencers: Influencers,
23160
23208
  Teams: Teams,
23161
23209
  Posts: Posts,
23162
23210
  Messages: Messages,