glitch-javascript-sdk 1.1.4 → 1.1.6

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
@@ -20126,6 +20126,8 @@ var UserRoutes = /** @class */ (function () {
20126
20126
  removeType: { url: '/users/removeType/{type_id}', method: HTTP_METHODS.DELETE },
20127
20127
  getCampaignInvites: { url: '/users/getCampaignInvites', method: HTTP_METHODS.GET },
20128
20128
  getPayouts: { url: '/users/payouts', method: HTTP_METHODS.GET },
20129
+ verifyAccount: { url: '/users/verify', method: HTTP_METHODS.POST },
20130
+ getInstagramAccounts: { url: '/users/instagramAccounts', method: HTTP_METHODS.GET },
20129
20131
  };
20130
20132
  return UserRoutes;
20131
20133
  }());
@@ -20505,6 +20507,28 @@ var Users = /** @class */ (function () {
20505
20507
  Users.removeType = function (type_id, params) {
20506
20508
  return Requests.processRoute(UserRoutes.routes.removeType, undefined, { type_id: type_id }, params);
20507
20509
  };
20510
+ /**
20511
+ * Verify a user's account to complete their sign-up process.
20512
+ *
20513
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
20514
+ *
20515
+ * @param data The genre information to be passed to update the type information.
20516
+ *
20517
+ * @returns Promise
20518
+ */
20519
+ Users.verifyAccount = function (data, params) {
20520
+ return Requests.processRoute(UserRoutes.routes.verifyAccount, data, undefined, params);
20521
+ };
20522
+ /**
20523
+ * Gets the instagram accounts associated with the user.
20524
+ *
20525
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
20526
+ *
20527
+ * @returns promise
20528
+ */
20529
+ Users.getInstagramAccounts = function (params) {
20530
+ return Requests.processRoute(UserRoutes.routes.getInstagramAccounts, undefined, undefined, params);
20531
+ };
20508
20532
  return Users;
20509
20533
  }());
20510
20534
 
@@ -23178,6 +23202,11 @@ var InfluencerRoutes = /** @class */ (function () {
23178
23202
  listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
23179
23203
  viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
23180
23204
  generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
23205
+ listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
23206
+ viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
23207
+ createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
23208
+ updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
23209
+ deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
23181
23210
  };
23182
23211
  return InfluencerRoutes;
23183
23212
  }());
@@ -23215,6 +23244,56 @@ var Influencers = /** @class */ (function () {
23215
23244
  Influencers.generateProfile = function (influencer_id, params) {
23216
23245
  return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, { influencer_id: influencer_id }, params);
23217
23246
  };
23247
+ /**
23248
+ * List all the notes left about an influencer.
23249
+ *
23250
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
23251
+ *
23252
+ * @returns promise
23253
+ */
23254
+ Influencers.listNotes = function (influencer_id, params) {
23255
+ return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, { influencer_id: influencer_id }, params);
23256
+ };
23257
+ /**
23258
+ * View a note left about an influencer.
23259
+ *
23260
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
23261
+ *
23262
+ * @returns promise
23263
+ */
23264
+ Influencers.viewNote = function (influencer_id, note_id, params) {
23265
+ return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, { influencer_id: influencer_id, note_id: note_id }, params);
23266
+ };
23267
+ /**
23268
+ * Create a new note about an influencer.
23269
+ *
23270
+ * @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
23271
+ *
23272
+ * @returns promise
23273
+ */
23274
+ Influencers.createNote = function (influencer_id, data, params) {
23275
+ return Requests.processRoute(InfluencerRoutes.routes.createNote, data, { influencer_id: influencer_id }, params);
23276
+ };
23277
+ /**
23278
+ * Update a note about an influencer.
23279
+ *
23280
+ * @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
23281
+ *
23282
+ * @returns promise
23283
+ */
23284
+ Influencers.updateNote = function (influencer_id, note_id, data, params) {
23285
+ return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
23286
+ };
23287
+ /**
23288
+ * Delete a note about an influencer.
23289
+ *
23290
+ * @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
23291
+ *
23292
+ * @returns promise
23293
+ */
23294
+ Influencers.deleteNote = function (influencer_id, note_id, data, params) {
23295
+ return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
23296
+ };
23218
23297
  return Influencers;
23219
23298
  }());
23220
23299