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
|
@@ -25,5 +25,45 @@ declare class Influencers {
|
|
|
25
25
|
* @returns promise
|
|
26
26
|
*/
|
|
27
27
|
static generateProfile<T>(influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
|
+
/**
|
|
29
|
+
* List all the notes left about an influencer.
|
|
30
|
+
*
|
|
31
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
|
|
32
|
+
*
|
|
33
|
+
* @returns promise
|
|
34
|
+
*/
|
|
35
|
+
static listNotes<T>(influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
36
|
+
/**
|
|
37
|
+
* View a note left about an influencer.
|
|
38
|
+
*
|
|
39
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
|
|
40
|
+
*
|
|
41
|
+
* @returns promise
|
|
42
|
+
*/
|
|
43
|
+
static viewNote<T>(influencer_id: string, note_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new note about an influencer.
|
|
46
|
+
*
|
|
47
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
|
|
48
|
+
*
|
|
49
|
+
* @returns promise
|
|
50
|
+
*/
|
|
51
|
+
static createNote<T>(influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
52
|
+
/**
|
|
53
|
+
* Update a note about an influencer.
|
|
54
|
+
*
|
|
55
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
|
|
56
|
+
*
|
|
57
|
+
* @returns promise
|
|
58
|
+
*/
|
|
59
|
+
static updateNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete a note about an influencer.
|
|
62
|
+
*
|
|
63
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
|
|
64
|
+
*
|
|
65
|
+
* @returns promise
|
|
66
|
+
*/
|
|
67
|
+
static deleteNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
68
|
}
|
|
29
69
|
export default Influencers;
|
package/dist/esm/index.js
CHANGED
|
@@ -9994,6 +9994,11 @@ var InfluencerRoutes = /** @class */ (function () {
|
|
|
9994
9994
|
listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
|
|
9995
9995
|
viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
|
|
9996
9996
|
generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
|
|
9997
|
+
listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
|
|
9998
|
+
viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
|
|
9999
|
+
createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
|
|
10000
|
+
updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
|
|
10001
|
+
deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
|
|
9997
10002
|
};
|
|
9998
10003
|
return InfluencerRoutes;
|
|
9999
10004
|
}());
|
|
@@ -10031,6 +10036,56 @@ var Influencers = /** @class */ (function () {
|
|
|
10031
10036
|
Influencers.generateProfile = function (influencer_id, params) {
|
|
10032
10037
|
return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, { influencer_id: influencer_id }, params);
|
|
10033
10038
|
};
|
|
10039
|
+
/**
|
|
10040
|
+
* List all the notes left about an influencer.
|
|
10041
|
+
*
|
|
10042
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
|
|
10043
|
+
*
|
|
10044
|
+
* @returns promise
|
|
10045
|
+
*/
|
|
10046
|
+
Influencers.listNotes = function (influencer_id, params) {
|
|
10047
|
+
return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, { influencer_id: influencer_id }, params);
|
|
10048
|
+
};
|
|
10049
|
+
/**
|
|
10050
|
+
* View a note left about an influencer.
|
|
10051
|
+
*
|
|
10052
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
|
|
10053
|
+
*
|
|
10054
|
+
* @returns promise
|
|
10055
|
+
*/
|
|
10056
|
+
Influencers.viewNote = function (influencer_id, note_id, params) {
|
|
10057
|
+
return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
10058
|
+
};
|
|
10059
|
+
/**
|
|
10060
|
+
* Create a new note about an influencer.
|
|
10061
|
+
*
|
|
10062
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
|
|
10063
|
+
*
|
|
10064
|
+
* @returns promise
|
|
10065
|
+
*/
|
|
10066
|
+
Influencers.createNote = function (influencer_id, data, params) {
|
|
10067
|
+
return Requests.processRoute(InfluencerRoutes.routes.createNote, data, { influencer_id: influencer_id }, params);
|
|
10068
|
+
};
|
|
10069
|
+
/**
|
|
10070
|
+
* Update a note about an influencer.
|
|
10071
|
+
*
|
|
10072
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
|
|
10073
|
+
*
|
|
10074
|
+
* @returns promise
|
|
10075
|
+
*/
|
|
10076
|
+
Influencers.updateNote = function (influencer_id, note_id, data, params) {
|
|
10077
|
+
return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
10078
|
+
};
|
|
10079
|
+
/**
|
|
10080
|
+
* Delete a note about an influencer.
|
|
10081
|
+
*
|
|
10082
|
+
* @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
|
|
10083
|
+
*
|
|
10084
|
+
* @returns promise
|
|
10085
|
+
*/
|
|
10086
|
+
Influencers.deleteNote = function (influencer_id, note_id, data, params) {
|
|
10087
|
+
return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
|
|
10088
|
+
};
|
|
10034
10089
|
return Influencers;
|
|
10035
10090
|
}());
|
|
10036
10091
|
|