glitch-javascript-sdk 1.1.9 → 1.2.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/cjs/index.js CHANGED
@@ -23367,6 +23367,7 @@ var InfluencerRoutes = /** @class */ (function () {
23367
23367
  createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
23368
23368
  updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
23369
23369
  deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
23370
+ listContracts: { url: '/influencers/contracts', method: HTTP_METHODS.GET },
23370
23371
  };
23371
23372
  return InfluencerRoutes;
23372
23373
  }());
@@ -23464,6 +23465,16 @@ var Influencers = /** @class */ (function () {
23464
23465
  Influencers.deleteNote = function (influencer_id, note_id, data, params) {
23465
23466
  return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
23466
23467
  };
23468
+ /**
23469
+ * Get a list of contracts associated with an influencer.
23470
+ *
23471
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
23472
+ *
23473
+ * @returns promise
23474
+ */
23475
+ Influencers.listContracts = function (params) {
23476
+ return Requests.processRoute(InfluencerRoutes.routes.listContracts, undefined, undefined, params);
23477
+ };
23467
23478
  return Influencers;
23468
23479
  }());
23469
23480