glitch-javascript-sdk 1.9.8 → 1.9.9
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 +33 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +24 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +33 -0
- package/src/routes/CommunitiesRoute.ts +11 -6
package/dist/cjs/index.js
CHANGED
|
@@ -20870,6 +20870,9 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
20870
20870
|
acceptInvite: { url: '/communities/{community_id}/acceptInvite', method: HTTP_METHODS.POST },
|
|
20871
20871
|
retrieveInvite: { url: '/communities/{community_id}/invites/{token}', method: HTTP_METHODS.GET },
|
|
20872
20872
|
listUsers: { url: '/communities/{community_id}/users', method: HTTP_METHODS.GET },
|
|
20873
|
+
myInvites: { url: '/communities/invites/mine', method: HTTP_METHODS.GET },
|
|
20874
|
+
resendInvite: { url: '/communities/{community_id}/invites/{invite_id}/resend', method: HTTP_METHODS.POST },
|
|
20875
|
+
deleteInvite: { url: '/communities/{community_id}/invites/{invite_id}', method: HTTP_METHODS.DELETE },
|
|
20873
20876
|
addUser: { url: '/communities/{community_id}/users', method: HTTP_METHODS.POST },
|
|
20874
20877
|
showUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.GET },
|
|
20875
20878
|
updateUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.PUT },
|
|
@@ -21686,6 +21689,36 @@ var Communities = /** @class */ (function () {
|
|
|
21686
21689
|
Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
|
|
21687
21690
|
return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
21688
21691
|
};
|
|
21692
|
+
/**
|
|
21693
|
+
* Retrieve the current user's pending community invitations across all communities.
|
|
21694
|
+
*
|
|
21695
|
+
* @returns promise
|
|
21696
|
+
*/
|
|
21697
|
+
Communities.myInvites = function (params) {
|
|
21698
|
+
return Requests.processRoute(CommunitiesRoute.routes.myInvites, {}, undefined, params);
|
|
21699
|
+
};
|
|
21700
|
+
/**
|
|
21701
|
+
* Resends an invitation to a user.
|
|
21702
|
+
*
|
|
21703
|
+
* @param community_id The id of the community.
|
|
21704
|
+
* @param invite_id The id of the invite to resend.
|
|
21705
|
+
*
|
|
21706
|
+
* @returns promise
|
|
21707
|
+
*/
|
|
21708
|
+
Communities.resendInvite = function (community_id, invite_id, params) {
|
|
21709
|
+
return Requests.processRoute(CommunitiesRoute.routes.resendInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
|
|
21710
|
+
};
|
|
21711
|
+
/**
|
|
21712
|
+
* Revokes/deletes a community invitation.
|
|
21713
|
+
*
|
|
21714
|
+
* @param community_id The id of the community.
|
|
21715
|
+
* @param invite_id The id of the invite to delete.
|
|
21716
|
+
*
|
|
21717
|
+
* @returns promise
|
|
21718
|
+
*/
|
|
21719
|
+
Communities.deleteInvite = function (community_id, invite_id, params) {
|
|
21720
|
+
return Requests.processRoute(CommunitiesRoute.routes.deleteInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
|
|
21721
|
+
};
|
|
21689
21722
|
return Communities;
|
|
21690
21723
|
}());
|
|
21691
21724
|
|