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/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Influencers.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Influencers.ts +11 -0
- package/src/routes/InfluencerRoutes.ts +1 -0
|
@@ -73,5 +73,13 @@ declare class Influencers {
|
|
|
73
73
|
* @returns promise
|
|
74
74
|
*/
|
|
75
75
|
static deleteNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
76
|
+
/**
|
|
77
|
+
* Get a list of contracts associated with an influencer.
|
|
78
|
+
*
|
|
79
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
|
|
80
|
+
*
|
|
81
|
+
* @returns promise
|
|
82
|
+
*/
|
|
83
|
+
static listContracts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
76
84
|
}
|
|
77
85
|
export default Influencers;
|
package/dist/esm/index.js
CHANGED
|
@@ -10183,6 +10183,7 @@ var InfluencerRoutes = /** @class */ (function () {
|
|
|
10183
10183
|
createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
|
|
10184
10184
|
updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
|
|
10185
10185
|
deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
|
|
10186
|
+
listContracts: { url: '/influencers/contracts', method: HTTP_METHODS.GET },
|
|
10186
10187
|
};
|
|
10187
10188
|
return InfluencerRoutes;
|
|
10188
10189
|
}());
|
|
@@ -10280,6 +10281,16 @@ var Influencers = /** @class */ (function () {
|
|
|
10280
10281
|
Influencers.deleteNote = function (influencer_id, note_id, data, params) {
|
|
10281
10282
|
return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
10282
10283
|
};
|
|
10284
|
+
/**
|
|
10285
|
+
* Get a list of contracts associated with an influencer.
|
|
10286
|
+
*
|
|
10287
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
|
|
10288
|
+
*
|
|
10289
|
+
* @returns promise
|
|
10290
|
+
*/
|
|
10291
|
+
Influencers.listContracts = function (params) {
|
|
10292
|
+
return Requests.processRoute(InfluencerRoutes.routes.listContracts, undefined, undefined, params);
|
|
10293
|
+
};
|
|
10283
10294
|
return Influencers;
|
|
10284
10295
|
}());
|
|
10285
10296
|
|