glitch-javascript-sdk 1.1.5 → 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/cjs/index.js +24 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Users.d.ts +18 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/package.json +1 -1
- package/src/api/Users.ts +26 -0
- package/src/routes/UserRoutes.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -20126,6 +20126,8 @@ var UserRoutes = /** @class */ (function () {
|
|
|
20126
20126
|
removeType: { url: '/users/removeType/{type_id}', method: HTTP_METHODS.DELETE },
|
|
20127
20127
|
getCampaignInvites: { url: '/users/getCampaignInvites', method: HTTP_METHODS.GET },
|
|
20128
20128
|
getPayouts: { url: '/users/payouts', method: HTTP_METHODS.GET },
|
|
20129
|
+
verifyAccount: { url: '/users/verify', method: HTTP_METHODS.POST },
|
|
20130
|
+
getInstagramAccounts: { url: '/users/instagramAccounts', method: HTTP_METHODS.GET },
|
|
20129
20131
|
};
|
|
20130
20132
|
return UserRoutes;
|
|
20131
20133
|
}());
|
|
@@ -20505,6 +20507,28 @@ var Users = /** @class */ (function () {
|
|
|
20505
20507
|
Users.removeType = function (type_id, params) {
|
|
20506
20508
|
return Requests.processRoute(UserRoutes.routes.removeType, undefined, { type_id: type_id }, params);
|
|
20507
20509
|
};
|
|
20510
|
+
/**
|
|
20511
|
+
* Verify a user's account to complete their sign-up process.
|
|
20512
|
+
*
|
|
20513
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/verifyAccount
|
|
20514
|
+
*
|
|
20515
|
+
* @param data The genre information to be passed to update the type information.
|
|
20516
|
+
*
|
|
20517
|
+
* @returns Promise
|
|
20518
|
+
*/
|
|
20519
|
+
Users.verifyAccount = function (data, params) {
|
|
20520
|
+
return Requests.processRoute(UserRoutes.routes.verifyAccount, data, undefined, params);
|
|
20521
|
+
};
|
|
20522
|
+
/**
|
|
20523
|
+
* Gets the instagram accounts associated with the user.
|
|
20524
|
+
*
|
|
20525
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/getInstagramAccounts
|
|
20526
|
+
*
|
|
20527
|
+
* @returns promise
|
|
20528
|
+
*/
|
|
20529
|
+
Users.getInstagramAccounts = function (params) {
|
|
20530
|
+
return Requests.processRoute(UserRoutes.routes.getInstagramAccounts, undefined, undefined, params);
|
|
20531
|
+
};
|
|
20508
20532
|
return Users;
|
|
20509
20533
|
}());
|
|
20510
20534
|
|