glitch-javascript-sdk 1.0.6 → 1.0.7

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
@@ -2457,6 +2457,14 @@ declare class Campaigns {
2457
2457
  * @returns promise
2458
2458
  */
2459
2459
  static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2460
+ /**
2461
+ * Get the post associated with the campaign.
2462
+ *
2463
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
2464
+ *
2465
+ * @returns promise
2466
+ */
2467
+ static getPosts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2460
2468
  /**
2461
2469
  * Retrieve recommended influencers for a campaign.
2462
2470
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -83,6 +83,17 @@ class Campaigns {
83
83
  return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
84
84
  }
85
85
 
86
+ /**
87
+ * Get the post associated with the campaign.
88
+ *
89
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
90
+ *
91
+ * @returns promise
92
+ */
93
+ public static getPosts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
94
+ return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
95
+ }
96
+
86
97
  /**
87
98
  * Retrieve recommended influencers for a campaign.
88
99
  *
@@ -10,6 +10,7 @@ class CampaignsRoute {
10
10
  updateCampaign :{ url: '/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
11
11
  deleteCampaign :{ url: '/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
12
12
  getLedger : { url: '/campaigns/{campaign_id}/ledger', method: HTTP_METHODS.GET },
13
+ getPosts : { url: '/campaigns/{campaign_id}/posts', method: HTTP_METHODS.GET },
13
14
  listCampaignLinks :{ url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.GET },
14
15
  createCampaignLink :{ url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
15
16
  getCampaignLink :{ url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },