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/index.d.ts CHANGED
@@ -3277,6 +3277,14 @@ declare class Influencers {
3277
3277
  * @returns promise
3278
3278
  */
3279
3279
  static deleteNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
3280
+ /**
3281
+ * Get a list of contracts associated with an influencer.
3282
+ *
3283
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
3284
+ *
3285
+ * @returns promise
3286
+ */
3287
+ static listContracts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
3280
3288
  }
3281
3289
 
3282
3290
  declare class Games {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -104,6 +104,17 @@ class Influencers {
104
104
  return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, {influencer_id : influencer_id, note_id : note_id}, params);
105
105
  }
106
106
 
107
+ /**
108
+ * Get a list of contracts associated with an influencer.
109
+ *
110
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
111
+ *
112
+ * @returns promise
113
+ */
114
+ public static listContracts<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
115
+ return Requests.processRoute(InfluencerRoutes.routes.listContracts, undefined, undefined, params);
116
+ }
117
+
107
118
 
108
119
  }
109
120
 
@@ -13,6 +13,7 @@ class InfluencerRoutes {
13
13
  createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
14
14
  updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
15
15
  deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
16
+ listContracts: { url: '/influencers/contracts', method: HTTP_METHODS.GET },
16
17
  };
17
18
 
18
19
  }