glitch-javascript-sdk 1.1.7 → 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/index.d.ts CHANGED
@@ -908,6 +908,30 @@ declare class Communities {
908
908
  * @returns promise
909
909
  */
910
910
  static getLedger<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
911
+ /**
912
+ * Clear Docusign authentication information from the current user.
913
+ *
914
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
915
+ *
916
+ * @returns promise
917
+ */
918
+ static clearDocusignAuth<T>(community_id: string): AxiosPromise<Response<T>>;
919
+ /**
920
+ * Clear SimpleSin authentication information from the current user.
921
+ *
922
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
923
+ *
924
+ * @returns promise
925
+ */
926
+ static clearSimplesignAuth<T>(community_id: string): AxiosPromise<Response<T>>;
927
+ /**
928
+ * Clear SimpleSin authentication information from the current user.
929
+ *
930
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
931
+ *
932
+ * @returns promise
933
+ */
934
+ static clearHellosignAuth<T>(community_id: string): AxiosPromise<Response<T>>;
911
935
  }
912
936
 
913
937
  declare class Users {
@@ -1121,6 +1145,14 @@ declare class Users {
1121
1145
  * @returns promise
1122
1146
  */
1123
1147
  static clearRedditAuth<T>(): AxiosPromise<Response<T>>;
1148
+ /**
1149
+ * Clear Docusign authentication information from the current user.
1150
+ *
1151
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/clearDocusignAuth
1152
+ *
1153
+ * @returns promise
1154
+ */
1155
+ static clearDocusignAuth<T>(): AxiosPromise<Response<T>>;
1124
1156
  /**
1125
1157
  * Clear Twitter authentication information from the current user.
1126
1158
  *
@@ -2924,6 +2956,36 @@ declare class Campaigns {
2924
2956
  * @returns promise
2925
2957
  */
2926
2958
  static getActiveCampaignLinks<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2959
+ /**
2960
+ * Generate a contract for the influencer based on the values in the invite.
2961
+ *
2962
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generateInfluencerContract
2963
+ *
2964
+ * @param campaign_id The id fo the campaign to retrieve.
2965
+ *
2966
+ * @returns promise
2967
+ */
2968
+ static generateContractFromInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2969
+ /**
2970
+ * Send a contract with Docusign.
2971
+ *
2972
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/sendContractWithDocusign
2973
+ *
2974
+ * @param campaign_id The id fo the campaign to retrieve.
2975
+ *
2976
+ * @returns promise
2977
+ */
2978
+ static sendContractWithDocusign<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2979
+ /**
2980
+ * Resend the acceptance email for the influencer.
2981
+ *
2982
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/resendInfluencerAcceptance
2983
+ *
2984
+ * @param campaign_id The id fo the campaign to retrieve.
2985
+ *
2986
+ * @returns promise
2987
+ */
2988
+ static resendAcceptanceEmail<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2927
2989
  }
2928
2990
 
2929
2991
  declare class Subscriptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -670,6 +670,48 @@ class Campaigns {
670
670
  return Requests.processRoute(CampaignsRoute.routes.getActiveCampaignLinks, undefined, undefined, params);
671
671
  }
672
672
 
673
+ /**
674
+ * Generate a contract for the influencer based on the values in the invite.
675
+ *
676
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generateInfluencerContract
677
+ *
678
+ * @param campaign_id The id fo the campaign to retrieve.
679
+ *
680
+ * @returns promise
681
+ */
682
+ public static generateContractFromInvite<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
683
+
684
+ return Requests.processRoute(CampaignsRoute.routes.generateContractFromInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
685
+ }
686
+
687
+ /**
688
+ * Send a contract with Docusign.
689
+ *
690
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/sendContractWithDocusign
691
+ *
692
+ * @param campaign_id The id fo the campaign to retrieve.
693
+ *
694
+ * @returns promise
695
+ */
696
+ public static sendContractWithDocusign<T>(campaign_id: string, influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
697
+
698
+ return Requests.processRoute(CampaignsRoute.routes.sendContractWithDocusign, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
699
+ }
700
+
701
+ /**
702
+ * Resend the acceptance email for the influencer.
703
+ *
704
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/resendInfluencerAcceptance
705
+ *
706
+ * @param campaign_id The id fo the campaign to retrieve.
707
+ *
708
+ * @returns promise
709
+ */
710
+ public static resendAcceptanceEmail<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
711
+
712
+ return Requests.processRoute(CampaignsRoute.routes.resendAcceptanceEmail, data, { campaign_id: campaign_id, user_id : user_id }, params);
713
+ }
714
+
673
715
 
674
716
  }
675
717
 
@@ -373,6 +373,42 @@ class Communities {
373
373
  return Requests.processRoute(CommunitiesRoute.routes.getLedger, {}, {community_id : community_id}, params);
374
374
  }
375
375
 
376
+ /**
377
+ * Clear Docusign authentication information from the current user.
378
+ *
379
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
380
+ *
381
+ * @returns promise
382
+ */
383
+ public static clearDocusignAuth<T>(community_id : string): AxiosPromise<Response<T>> {
384
+
385
+ return Requests.processRoute(CommunitiesRoute.routes.clearDocusignAuth, {}, {community_id : community_id});
386
+ }
387
+
388
+ /**
389
+ * Clear SimpleSin authentication information from the current user.
390
+ *
391
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
392
+ *
393
+ * @returns promise
394
+ */
395
+ public static clearSimplesignAuth<T>(community_id : string): AxiosPromise<Response<T>> {
396
+
397
+ return Requests.processRoute(CommunitiesRoute.routes.clearSimplesignAuth, {}, {community_id : community_id});
398
+ }
399
+
400
+ /**
401
+ * Clear SimpleSin authentication information from the current user.
402
+ *
403
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
404
+ *
405
+ * @returns promise
406
+ */
407
+ public static clearHellosignAuth<T>(community_id : string): AxiosPromise<Response<T>> {
408
+
409
+ return Requests.processRoute(CommunitiesRoute.routes.clearHellosignAuth, {}, {community_id : community_id});
410
+ }
411
+
376
412
 
377
413
 
378
414
 
package/src/api/Users.ts CHANGED
@@ -304,6 +304,18 @@ class Users {
304
304
  return Requests.processRoute(UserRoutes.routes.clearRedditAuth, {});
305
305
  }
306
306
 
307
+ /**
308
+ * Clear Docusign authentication information from the current user.
309
+ *
310
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/clearDocusignAuth
311
+ *
312
+ * @returns promise
313
+ */
314
+ public static clearDocusignAuth<T>(): AxiosPromise<Response<T>> {
315
+
316
+ return Requests.processRoute(UserRoutes.routes.clearDocusignAuth, {});
317
+ }
318
+
307
319
  /**
308
320
  * Clear Twitter authentication information from the current user.
309
321
  *
@@ -53,7 +53,12 @@ class CampaignsRoute {
53
53
  reviewInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
54
54
  getRecommendedInfluencers : { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
55
55
  generateContentForInfluencer : { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
56
- getActiveCampaignLinks : { url: '/campaigns/active', method: HTTP_METHODS.GET },
56
+ getActiveCampaignLinks : { url: '/campaigns/active', method: HTTP_METHODS.GET },
57
+ generateContractFromInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/contract', method: HTTP_METHODS.POST },
58
+ sendContractWithDocusign : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/docusign', method: HTTP_METHODS.POST },
59
+ resendAcceptanceEmail : { url: '/campaigns/{campaign_id}/influencers/{user_id}/resendInvite', method: HTTP_METHODS.POST },
60
+
61
+
57
62
  };
58
63
 
59
64
  }
@@ -27,6 +27,9 @@ class CommunitiesRoute {
27
27
  getPaymentMethods : {url : '/communities/{community_id}/payment/methods', method : HTTP_METHODS.GET},
28
28
  setDefaultPaymentMethod : {url : '/communities/{community_id}/payment/methods/default', method : HTTP_METHODS.POST},
29
29
  getLedger : {url : '/communities/{community_id}/payment/ledger', method : HTTP_METHODS.GET},
30
+ clearDocusignAuth : { url: '/communities/{community_id}/clearDocusignAuth', method: HTTP_METHODS.DELETE },
31
+ clearHellosignAuth : { url: '/communities/{community_id}/clearHellosignAuth', method: HTTP_METHODS.DELETE },
32
+ clearSimplesignAuth : { url: '/communities/{community_id}/clearSimplesignAuth', method: HTTP_METHODS.DELETE },
30
33
 
31
34
  };
32
35
 
@@ -23,6 +23,7 @@ class UserRoutes {
23
23
  clearYoutubeAuth : { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
24
24
  clearRedditAuth : { url: '/users/clearRedditAuth', method: HTTP_METHODS.DELETE },
25
25
  clearTwitterAuth : { url: '/users/clearTwitterAuth', method: HTTP_METHODS.DELETE },
26
+ clearDocusignAuth : { url: '/users/clearDocusignAuth', method: HTTP_METHODS.DELETE },
26
27
  clearStreamElementsAuth : { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
27
28
  getTipsReceivedForMonth : { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
28
29
  getTipsGivenForMonth : { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },