glitch-javascript-sdk 1.1.4 → 1.1.5
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 +55 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Influencers.d.ts +40 -0
- package/dist/esm/index.js +55 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +40 -0
- package/package.json +1 -1
- package/src/api/Influencers.ts +56 -0
- package/src/routes/InfluencerRoutes.ts +5 -1
package/dist/cjs/index.js
CHANGED
|
@@ -23178,6 +23178,11 @@ var InfluencerRoutes = /** @class */ (function () {
|
|
|
23178
23178
|
listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
|
|
23179
23179
|
viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
|
|
23180
23180
|
generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
|
|
23181
|
+
listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
|
|
23182
|
+
viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
|
|
23183
|
+
createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
|
|
23184
|
+
updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
|
|
23185
|
+
deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
|
|
23181
23186
|
};
|
|
23182
23187
|
return InfluencerRoutes;
|
|
23183
23188
|
}());
|
|
@@ -23215,6 +23220,56 @@ var Influencers = /** @class */ (function () {
|
|
|
23215
23220
|
Influencers.generateProfile = function (influencer_id, params) {
|
|
23216
23221
|
return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, { influencer_id: influencer_id }, params);
|
|
23217
23222
|
};
|
|
23223
|
+
/**
|
|
23224
|
+
* List all the notes left about an influencer.
|
|
23225
|
+
*
|
|
23226
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
|
|
23227
|
+
*
|
|
23228
|
+
* @returns promise
|
|
23229
|
+
*/
|
|
23230
|
+
Influencers.listNotes = function (influencer_id, params) {
|
|
23231
|
+
return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, { influencer_id: influencer_id }, params);
|
|
23232
|
+
};
|
|
23233
|
+
/**
|
|
23234
|
+
* View a note left about an influencer.
|
|
23235
|
+
*
|
|
23236
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
|
|
23237
|
+
*
|
|
23238
|
+
* @returns promise
|
|
23239
|
+
*/
|
|
23240
|
+
Influencers.viewNote = function (influencer_id, note_id, params) {
|
|
23241
|
+
return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
23242
|
+
};
|
|
23243
|
+
/**
|
|
23244
|
+
* Create a new note about an influencer.
|
|
23245
|
+
*
|
|
23246
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
|
|
23247
|
+
*
|
|
23248
|
+
* @returns promise
|
|
23249
|
+
*/
|
|
23250
|
+
Influencers.createNote = function (influencer_id, data, params) {
|
|
23251
|
+
return Requests.processRoute(InfluencerRoutes.routes.createNote, data, { influencer_id: influencer_id }, params);
|
|
23252
|
+
};
|
|
23253
|
+
/**
|
|
23254
|
+
* Update a note about an influencer.
|
|
23255
|
+
*
|
|
23256
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
|
|
23257
|
+
*
|
|
23258
|
+
* @returns promise
|
|
23259
|
+
*/
|
|
23260
|
+
Influencers.updateNote = function (influencer_id, note_id, data, params) {
|
|
23261
|
+
return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
23262
|
+
};
|
|
23263
|
+
/**
|
|
23264
|
+
* Delete a note about an influencer.
|
|
23265
|
+
*
|
|
23266
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
|
|
23267
|
+
*
|
|
23268
|
+
* @returns promise
|
|
23269
|
+
*/
|
|
23270
|
+
Influencers.deleteNote = function (influencer_id, note_id, data, params) {
|
|
23271
|
+
return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
23272
|
+
};
|
|
23218
23273
|
return Influencers;
|
|
23219
23274
|
}());
|
|
23220
23275
|
|