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.
package/dist/index.d.ts CHANGED
@@ -1217,6 +1217,24 @@ declare class Users {
1217
1217
  * @returns Promise
1218
1218
  */
1219
1219
  static removeType<T>(type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
1220
+ /**
1221
+ * Verify a user's account to complete their sign-up process.
1222
+ *
1223
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
1224
+ *
1225
+ * @param data The genre information to be passed to update the type information.
1226
+ *
1227
+ * @returns Promise
1228
+ */
1229
+ static verifyAccount<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
1230
+ /**
1231
+ * Gets the instagram accounts associated with the user.
1232
+ *
1233
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
1234
+ *
1235
+ * @returns promise
1236
+ */
1237
+ static getInstagramAccounts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
1220
1238
  }
1221
1239
 
1222
1240
  declare class Events {
@@ -3091,6 +3109,46 @@ declare class Influencers {
3091
3109
  * @returns promise
3092
3110
  */
3093
3111
  static generateProfile<T>(influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
3112
+ /**
3113
+ * List all the notes left about an influencer.
3114
+ *
3115
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
3116
+ *
3117
+ * @returns promise
3118
+ */
3119
+ static listNotes<T>(influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
3120
+ /**
3121
+ * View a note left about an influencer.
3122
+ *
3123
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
3124
+ *
3125
+ * @returns promise
3126
+ */
3127
+ static viewNote<T>(influencer_id: string, note_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
3128
+ /**
3129
+ * Create a new note about an influencer.
3130
+ *
3131
+ * @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
3132
+ *
3133
+ * @returns promise
3134
+ */
3135
+ static createNote<T>(influencer_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
3136
+ /**
3137
+ * Update a note about an influencer.
3138
+ *
3139
+ * @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
3140
+ *
3141
+ * @returns promise
3142
+ */
3143
+ static updateNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
3144
+ /**
3145
+ * Delete a note about an influencer.
3146
+ *
3147
+ * @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
3148
+ *
3149
+ * @returns promise
3150
+ */
3151
+ static deleteNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
3094
3152
  }
3095
3153
 
3096
3154
  declare class Games {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -38,6 +38,62 @@ class Influencers {
38
38
  return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, {influencer_id : influencer_id}, params);
39
39
  }
40
40
 
41
+ /**
42
+ * List all the notes left about an influencer.
43
+ *
44
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
45
+ *
46
+ * @returns promise
47
+ */
48
+ public static listNotes<T>(influencer_id : string, params?: Record<string, any>) : AxiosPromise<Response<T>> {
49
+ return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, {influencer_id : influencer_id}, params);
50
+ }
51
+
52
+ /**
53
+ * View a note left about an influencer.
54
+ *
55
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
56
+ *
57
+ * @returns promise
58
+ */
59
+ public static viewNote<T>(influencer_id : string, note_id : string, params?: Record<string, any>) : AxiosPromise<Response<T>> {
60
+ return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, {influencer_id : influencer_id, note_id : note_id}, params);
61
+ }
62
+
63
+ /**
64
+ * Create a new note about an influencer.
65
+ *
66
+ * @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
67
+ *
68
+ * @returns promise
69
+ */
70
+ public static createNote<T>(influencer_id : string, data?: object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
71
+ return Requests.processRoute(InfluencerRoutes.routes.createNote, data, {influencer_id : influencer_id}, params);
72
+ }
73
+
74
+ /**
75
+ * Update a note about an influencer.
76
+ *
77
+ * @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
78
+ *
79
+ * @returns promise
80
+ */
81
+ public static updateNote<T>(influencer_id : string, note_id : string, data?: object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
82
+ return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, {influencer_id : influencer_id, note_id : note_id}, params);
83
+ }
84
+
85
+ /**
86
+ * Delete a note about an influencer.
87
+ *
88
+ * @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
89
+ *
90
+ * @returns promise
91
+ */
92
+ public static deleteNote<T>(influencer_id : string, note_id : string, data?: object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
93
+ return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, {influencer_id : influencer_id, note_id : note_id}, params);
94
+ }
95
+
96
+
41
97
  }
42
98
 
43
99
  export default Influencers;
package/src/api/Users.ts CHANGED
@@ -443,6 +443,32 @@ class Users {
443
443
 
444
444
  return Requests.processRoute(UserRoutes.routes.removeType, undefined, {type_id : type_id}, params);
445
445
  }
446
+
447
+ /**
448
+ * Verify a user's account to complete their sign-up process.
449
+ *
450
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
451
+ *
452
+ * @param data The genre information to be passed to update the type information.
453
+ *
454
+ * @returns Promise
455
+ */
456
+ public static verifyAccount<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
457
+
458
+ return Requests.processRoute(UserRoutes.routes.verifyAccount, data, undefined, params);
459
+ }
460
+
461
+ /**
462
+ * Gets the instagram accounts associated with the user.
463
+ *
464
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
465
+ *
466
+ * @returns promise
467
+ */
468
+ public static getInstagramAccounts<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
469
+
470
+ return Requests.processRoute(UserRoutes.routes.getInstagramAccounts, undefined, undefined, params);
471
+ }
446
472
 
447
473
 
448
474
 
@@ -7,7 +7,11 @@ class InfluencerRoutes {
7
7
  listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
8
8
  viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
9
9
  generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
10
-
10
+ listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
11
+ viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
12
+ createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
13
+ updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
14
+ deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
11
15
  };
12
16
 
13
17
  }
@@ -36,6 +36,8 @@ class UserRoutes {
36
36
  removeType : { url: '/users/removeType/{type_id}', method: HTTP_METHODS.DELETE },
37
37
  getCampaignInvites : { url: '/users/getCampaignInvites', method: HTTP_METHODS.GET },
38
38
  getPayouts : { url: '/users/payouts', method: HTTP_METHODS.GET },
39
+ verifyAccount : { url: '/users/verify', method: HTTP_METHODS.POST },
40
+ getInstagramAccounts : { url: '/users/instagramAccounts', method: HTTP_METHODS.GET },
39
41
 
40
42
  };
41
43