glitch-javascript-sdk 1.1.6 → 1.1.8

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
@@ -19757,6 +19757,9 @@ var CommunitiesRoute = /** @class */ (function () {
19757
19757
  getPaymentMethods: { url: '/communities/{community_id}/payment/methods', method: HTTP_METHODS.GET },
19758
19758
  setDefaultPaymentMethod: { url: '/communities/{community_id}/payment/methods/default', method: HTTP_METHODS.POST },
19759
19759
  getLedger: { url: '/communities/{community_id}/payment/ledger', method: HTTP_METHODS.GET },
19760
+ clearDocusignAuth: { url: '/communities/{community_id}/clearDocusignAuth', method: HTTP_METHODS.DELETE },
19761
+ clearHellosignAuth: { url: '/communities/{community_id}/clearHellosignAuth', method: HTTP_METHODS.DELETE },
19762
+ clearSimplesignAuth: { url: '/communities/{community_id}/clearSimplesignAuth', method: HTTP_METHODS.DELETE },
19760
19763
  };
19761
19764
  return CommunitiesRoute;
19762
19765
  }());
@@ -20087,6 +20090,36 @@ var Communities = /** @class */ (function () {
20087
20090
  Communities.getLedger = function (community_id, params) {
20088
20091
  return Requests.processRoute(CommunitiesRoute.routes.getLedger, {}, { community_id: community_id }, params);
20089
20092
  };
20093
+ /**
20094
+ * Clear Docusign authentication information from the current user.
20095
+ *
20096
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
20097
+ *
20098
+ * @returns promise
20099
+ */
20100
+ Communities.clearDocusignAuth = function (community_id) {
20101
+ return Requests.processRoute(CommunitiesRoute.routes.clearDocusignAuth, {}, { community_id: community_id });
20102
+ };
20103
+ /**
20104
+ * Clear SimpleSin authentication information from the current user.
20105
+ *
20106
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
20107
+ *
20108
+ * @returns promise
20109
+ */
20110
+ Communities.clearSimplesignAuth = function (community_id) {
20111
+ return Requests.processRoute(CommunitiesRoute.routes.clearSimplesignAuth, {}, { community_id: community_id });
20112
+ };
20113
+ /**
20114
+ * Clear SimpleSin authentication information from the current user.
20115
+ *
20116
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
20117
+ *
20118
+ * @returns promise
20119
+ */
20120
+ Communities.clearHellosignAuth = function (community_id) {
20121
+ return Requests.processRoute(CommunitiesRoute.routes.clearHellosignAuth, {}, { community_id: community_id });
20122
+ };
20090
20123
  return Communities;
20091
20124
  }());
20092
20125
 
@@ -20113,6 +20146,7 @@ var UserRoutes = /** @class */ (function () {
20113
20146
  clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
20114
20147
  clearRedditAuth: { url: '/users/clearRedditAuth', method: HTTP_METHODS.DELETE },
20115
20148
  clearTwitterAuth: { url: '/users/clearTwitterAuth', method: HTTP_METHODS.DELETE },
20149
+ clearDocusignAuth: { url: '/users/clearDocusignAuth', method: HTTP_METHODS.DELETE },
20116
20150
  clearStreamElementsAuth: { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
20117
20151
  getTipsReceivedForMonth: { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
20118
20152
  getTipsGivenForMonth: { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
@@ -20389,6 +20423,16 @@ var Users = /** @class */ (function () {
20389
20423
  Users.clearRedditAuth = function () {
20390
20424
  return Requests.processRoute(UserRoutes.routes.clearRedditAuth, {});
20391
20425
  };
20426
+ /**
20427
+ * Clear Docusign authentication information from the current user.
20428
+ *
20429
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/clearDocusignAuth
20430
+ *
20431
+ * @returns promise
20432
+ */
20433
+ Users.clearDocusignAuth = function () {
20434
+ return Requests.processRoute(UserRoutes.routes.clearDocusignAuth, {});
20435
+ };
20392
20436
  /**
20393
20437
  * Clear Twitter authentication information from the current user.
20394
20438
  *
@@ -22063,6 +22107,7 @@ var SocialPostsRoute = /** @class */ (function () {
22063
22107
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
22064
22108
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
22065
22109
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22110
+ history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
22066
22111
  };
22067
22112
  return SocialPostsRoute;
22068
22113
  }());
@@ -22114,6 +22159,18 @@ var SocialPosts = /** @class */ (function () {
22114
22159
  SocialPosts.dispute = function (post_id, data, params) {
22115
22160
  return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
22116
22161
  };
22162
+ /**
22163
+ * Get the change of the post metrics over a period of time.
22164
+ *
22165
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
22166
+ *
22167
+ * @param post_id The id fo the post to retrieve.
22168
+ *
22169
+ * @returns promise
22170
+ */
22171
+ SocialPosts.history = function (post_id, params) {
22172
+ return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
22173
+ };
22117
22174
  return SocialPosts;
22118
22175
  }());
22119
22176
 
@@ -22358,6 +22415,9 @@ var CampaignsRoute = /** @class */ (function () {
22358
22415
  getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
22359
22416
  generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
22360
22417
  getActiveCampaignLinks: { url: '/campaigns/active', method: HTTP_METHODS.GET },
22418
+ generateContractFromInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/contract', method: HTTP_METHODS.POST },
22419
+ sendContractWithDocusign: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/docusign', method: HTTP_METHODS.POST },
22420
+ resendAcceptanceEmail: { url: '/campaigns/{campaign_id}/influencers/{user_id}/resendInvite', method: HTTP_METHODS.POST },
22361
22421
  };
22362
22422
  return CampaignsRoute;
22363
22423
  }());
@@ -22934,6 +22994,42 @@ var Campaigns = /** @class */ (function () {
22934
22994
  Campaigns.getActiveCampaignLinks = function (params) {
22935
22995
  return Requests.processRoute(CampaignsRoute.routes.getActiveCampaignLinks, undefined, undefined, params);
22936
22996
  };
22997
+ /**
22998
+ * Generate a contract for the influencer based on the values in the invite.
22999
+ *
23000
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generateInfluencerContract
23001
+ *
23002
+ * @param campaign_id The id fo the campaign to retrieve.
23003
+ *
23004
+ * @returns promise
23005
+ */
23006
+ Campaigns.generateContractFromInvite = function (campaign_id, influencer_id, data, params) {
23007
+ return Requests.processRoute(CampaignsRoute.routes.generateContractFromInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
23008
+ };
23009
+ /**
23010
+ * Send a contract with Docusign.
23011
+ *
23012
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/sendContractWithDocusign
23013
+ *
23014
+ * @param campaign_id The id fo the campaign to retrieve.
23015
+ *
23016
+ * @returns promise
23017
+ */
23018
+ Campaigns.sendContractWithDocusign = function (campaign_id, influencer_id, data, params) {
23019
+ return Requests.processRoute(CampaignsRoute.routes.sendContractWithDocusign, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
23020
+ };
23021
+ /**
23022
+ * Resend the acceptance email for the influencer.
23023
+ *
23024
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/resendInfluencerAcceptance
23025
+ *
23026
+ * @param campaign_id The id fo the campaign to retrieve.
23027
+ *
23028
+ * @returns promise
23029
+ */
23030
+ Campaigns.resendAcceptanceEmail = function (campaign_id, user_id, data, params) {
23031
+ return Requests.processRoute(CampaignsRoute.routes.resendAcceptanceEmail, data, { campaign_id: campaign_id, user_id: user_id }, params);
23032
+ };
22937
23033
  return Campaigns;
22938
23034
  }());
22939
23035