glitch-javascript-sdk 1.1.4 → 1.1.6

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.
@@ -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;
@@ -307,5 +307,23 @@ declare class Users {
307
307
  * @returns Promise
308
308
  */
309
309
  static removeType<T>(type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
310
+ /**
311
+ * Verify a user's account to complete their sign-up process.
312
+ *
313
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
314
+ *
315
+ * @param data The genre information to be passed to update the type information.
316
+ *
317
+ * @returns Promise
318
+ */
319
+ static verifyAccount<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
320
+ /**
321
+ * Gets the instagram accounts associated with the user.
322
+ *
323
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
324
+ *
325
+ * @returns promise
326
+ */
327
+ static getInstagramAccounts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
310
328
  }
311
329
  export default Users;
package/dist/esm/index.js CHANGED
@@ -6942,6 +6942,8 @@ var UserRoutes = /** @class */ (function () {
6942
6942
  removeType: { url: '/users/removeType/{type_id}', method: HTTP_METHODS.DELETE },
6943
6943
  getCampaignInvites: { url: '/users/getCampaignInvites', method: HTTP_METHODS.GET },
6944
6944
  getPayouts: { url: '/users/payouts', method: HTTP_METHODS.GET },
6945
+ verifyAccount: { url: '/users/verify', method: HTTP_METHODS.POST },
6946
+ getInstagramAccounts: { url: '/users/instagramAccounts', method: HTTP_METHODS.GET },
6945
6947
  };
6946
6948
  return UserRoutes;
6947
6949
  }());
@@ -7321,6 +7323,28 @@ var Users = /** @class */ (function () {
7321
7323
  Users.removeType = function (type_id, params) {
7322
7324
  return Requests.processRoute(UserRoutes.routes.removeType, undefined, { type_id: type_id }, params);
7323
7325
  };
7326
+ /**
7327
+ * Verify a user's account to complete their sign-up process.
7328
+ *
7329
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
7330
+ *
7331
+ * @param data The genre information to be passed to update the type information.
7332
+ *
7333
+ * @returns Promise
7334
+ */
7335
+ Users.verifyAccount = function (data, params) {
7336
+ return Requests.processRoute(UserRoutes.routes.verifyAccount, data, undefined, params);
7337
+ };
7338
+ /**
7339
+ * Gets the instagram accounts associated with the user.
7340
+ *
7341
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
7342
+ *
7343
+ * @returns promise
7344
+ */
7345
+ Users.getInstagramAccounts = function (params) {
7346
+ return Requests.processRoute(UserRoutes.routes.getInstagramAccounts, undefined, undefined, params);
7347
+ };
7324
7348
  return Users;
7325
7349
  }());
7326
7350
 
@@ -9994,6 +10018,11 @@ var InfluencerRoutes = /** @class */ (function () {
9994
10018
  listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
9995
10019
  viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
9996
10020
  generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
10021
+ listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
10022
+ viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
10023
+ createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
10024
+ updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
10025
+ deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
9997
10026
  };
9998
10027
  return InfluencerRoutes;
9999
10028
  }());
@@ -10031,6 +10060,56 @@ var Influencers = /** @class */ (function () {
10031
10060
  Influencers.generateProfile = function (influencer_id, params) {
10032
10061
  return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, { influencer_id: influencer_id }, params);
10033
10062
  };
10063
+ /**
10064
+ * List all the notes left about an influencer.
10065
+ *
10066
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
10067
+ *
10068
+ * @returns promise
10069
+ */
10070
+ Influencers.listNotes = function (influencer_id, params) {
10071
+ return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, { influencer_id: influencer_id }, params);
10072
+ };
10073
+ /**
10074
+ * View a note left about an influencer.
10075
+ *
10076
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
10077
+ *
10078
+ * @returns promise
10079
+ */
10080
+ Influencers.viewNote = function (influencer_id, note_id, params) {
10081
+ return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, { influencer_id: influencer_id, note_id: note_id }, params);
10082
+ };
10083
+ /**
10084
+ * Create a new note about an influencer.
10085
+ *
10086
+ * @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
10087
+ *
10088
+ * @returns promise
10089
+ */
10090
+ Influencers.createNote = function (influencer_id, data, params) {
10091
+ return Requests.processRoute(InfluencerRoutes.routes.createNote, data, { influencer_id: influencer_id }, params);
10092
+ };
10093
+ /**
10094
+ * Update a note about an influencer.
10095
+ *
10096
+ * @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
10097
+ *
10098
+ * @returns promise
10099
+ */
10100
+ Influencers.updateNote = function (influencer_id, note_id, data, params) {
10101
+ return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
10102
+ };
10103
+ /**
10104
+ * Delete a note about an influencer.
10105
+ *
10106
+ * @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
10107
+ *
10108
+ * @returns promise
10109
+ */
10110
+ Influencers.deleteNote = function (influencer_id, note_id, data, params) {
10111
+ return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
10112
+ };
10034
10113
  return Influencers;
10035
10114
  }());
10036
10115