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
|
@@ -605,5 +605,29 @@ declare class Communities {
|
|
|
605
605
|
static importGameInstalls<T>(community_id: string, newsletter_id: string, data: {
|
|
606
606
|
format: 'csv' | 'xlsx';
|
|
607
607
|
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
608
|
+
/**
|
|
609
|
+
* Retrieve the current user's pending community invitations across all communities.
|
|
610
|
+
*
|
|
611
|
+
* @returns promise
|
|
612
|
+
*/
|
|
613
|
+
static myInvites<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
614
|
+
/**
|
|
615
|
+
* Resends an invitation to a user.
|
|
616
|
+
*
|
|
617
|
+
* @param community_id The id of the community.
|
|
618
|
+
* @param invite_id The id of the invite to resend.
|
|
619
|
+
*
|
|
620
|
+
* @returns promise
|
|
621
|
+
*/
|
|
622
|
+
static resendInvite<T>(community_id: string, invite_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
623
|
+
/**
|
|
624
|
+
* Revokes/deletes a community invitation.
|
|
625
|
+
*
|
|
626
|
+
* @param community_id The id of the community.
|
|
627
|
+
* @param invite_id The id of the invite to delete.
|
|
628
|
+
*
|
|
629
|
+
* @returns promise
|
|
630
|
+
*/
|
|
631
|
+
static deleteInvite<T>(community_id: string, invite_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
608
632
|
}
|
|
609
633
|
export default Communities;
|
package/dist/esm/index.js
CHANGED
|
@@ -7686,6 +7686,9 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
7686
7686
|
acceptInvite: { url: '/communities/{community_id}/acceptInvite', method: HTTP_METHODS.POST },
|
|
7687
7687
|
retrieveInvite: { url: '/communities/{community_id}/invites/{token}', method: HTTP_METHODS.GET },
|
|
7688
7688
|
listUsers: { url: '/communities/{community_id}/users', method: HTTP_METHODS.GET },
|
|
7689
|
+
myInvites: { url: '/communities/invites/mine', method: HTTP_METHODS.GET },
|
|
7690
|
+
resendInvite: { url: '/communities/{community_id}/invites/{invite_id}/resend', method: HTTP_METHODS.POST },
|
|
7691
|
+
deleteInvite: { url: '/communities/{community_id}/invites/{invite_id}', method: HTTP_METHODS.DELETE },
|
|
7689
7692
|
addUser: { url: '/communities/{community_id}/users', method: HTTP_METHODS.POST },
|
|
7690
7693
|
showUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.GET },
|
|
7691
7694
|
updateUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.PUT },
|
|
@@ -8502,6 +8505,36 @@ var Communities = /** @class */ (function () {
|
|
|
8502
8505
|
Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
|
|
8503
8506
|
return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
8504
8507
|
};
|
|
8508
|
+
/**
|
|
8509
|
+
* Retrieve the current user's pending community invitations across all communities.
|
|
8510
|
+
*
|
|
8511
|
+
* @returns promise
|
|
8512
|
+
*/
|
|
8513
|
+
Communities.myInvites = function (params) {
|
|
8514
|
+
return Requests.processRoute(CommunitiesRoute.routes.myInvites, {}, undefined, params);
|
|
8515
|
+
};
|
|
8516
|
+
/**
|
|
8517
|
+
* Resends an invitation to a user.
|
|
8518
|
+
*
|
|
8519
|
+
* @param community_id The id of the community.
|
|
8520
|
+
* @param invite_id The id of the invite to resend.
|
|
8521
|
+
*
|
|
8522
|
+
* @returns promise
|
|
8523
|
+
*/
|
|
8524
|
+
Communities.resendInvite = function (community_id, invite_id, params) {
|
|
8525
|
+
return Requests.processRoute(CommunitiesRoute.routes.resendInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
|
|
8526
|
+
};
|
|
8527
|
+
/**
|
|
8528
|
+
* Revokes/deletes a community invitation.
|
|
8529
|
+
*
|
|
8530
|
+
* @param community_id The id of the community.
|
|
8531
|
+
* @param invite_id The id of the invite to delete.
|
|
8532
|
+
*
|
|
8533
|
+
* @returns promise
|
|
8534
|
+
*/
|
|
8535
|
+
Communities.deleteInvite = function (community_id, invite_id, params) {
|
|
8536
|
+
return Requests.processRoute(CommunitiesRoute.routes.deleteInvite, {}, { community_id: community_id, invite_id: invite_id }, params);
|
|
8537
|
+
};
|
|
8505
8538
|
return Communities;
|
|
8506
8539
|
}());
|
|
8507
8540
|
|