@pageproof/sdk-pr 342.0.1621822809275 → 343.0.1621904286124
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/lib/api/admin/TeamUsers.d.ts +23 -0
- package/lib/api/admin/TeamUsers.js +37 -0
- package/lib/network/endpoints.json +10 -0
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,16 @@ declare class TeamUsers extends API {
|
|
|
15
15
|
* @returns {Promise<User>}
|
|
16
16
|
*/
|
|
17
17
|
disabled(): Promise<User>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of all pending invited users in the team.
|
|
20
|
+
*
|
|
21
|
+
* @example <caption>Retrieves a list of all pending invited users</caption>
|
|
22
|
+
* await admin.team.users.getInvitations();
|
|
23
|
+
*
|
|
24
|
+
* @since v2.0.0-beta.169
|
|
25
|
+
* @returns {Promise<User>}
|
|
26
|
+
*/
|
|
27
|
+
getInvitations(): Promise<User>;
|
|
18
28
|
/** @private */
|
|
19
29
|
_setEnabled(email: any, enabled: any): any;
|
|
20
30
|
/**
|
|
@@ -50,6 +60,19 @@ declare class TeamUsers extends API {
|
|
|
50
60
|
* @returns {Promise}
|
|
51
61
|
*/
|
|
52
62
|
invite(emailOrEmails: any): Promise<any>;
|
|
63
|
+
/**
|
|
64
|
+
* Revoke a pending invitation in the team
|
|
65
|
+
*
|
|
66
|
+
* @example <caption>Revoking a pending invitation</caption>
|
|
67
|
+
* await admin.team.users.revokeInvitation({
|
|
68
|
+
* email: 'newuser@domain.com',
|
|
69
|
+
* });
|
|
70
|
+
*
|
|
71
|
+
* @since v2.0.0-beta.169
|
|
72
|
+
* @param {string} email
|
|
73
|
+
* @returns {Promise}
|
|
74
|
+
*/
|
|
75
|
+
revokeInvitation({ email }: string): Promise<any>;
|
|
53
76
|
/**
|
|
54
77
|
* Removes a user from the team.
|
|
55
78
|
*
|
|
@@ -64,6 +64,21 @@ var TeamUsers = function (_API) {
|
|
|
64
64
|
return this.client.request('admin.team.users.disabled').then(transformResponseUsers);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves a list of all pending invited users in the team.
|
|
69
|
+
*
|
|
70
|
+
* @example <caption>Retrieves a list of all pending invited users</caption>
|
|
71
|
+
* await admin.team.users.getInvitations();
|
|
72
|
+
*
|
|
73
|
+
* @since v2.0.0-beta.169
|
|
74
|
+
* @returns {Promise<User>}
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
TeamUsers.prototype.getInvitations = function getInvitations() {
|
|
79
|
+
return this.client.request('admin.team.users.invitations').then(transformResponseUsers);
|
|
80
|
+
};
|
|
81
|
+
|
|
67
82
|
/** @private */
|
|
68
83
|
|
|
69
84
|
|
|
@@ -124,6 +139,28 @@ var TeamUsers = function (_API) {
|
|
|
124
139
|
});
|
|
125
140
|
};
|
|
126
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Revoke a pending invitation in the team
|
|
144
|
+
*
|
|
145
|
+
* @example <caption>Revoking a pending invitation</caption>
|
|
146
|
+
* await admin.team.users.revokeInvitation({
|
|
147
|
+
* email: 'newuser@domain.com',
|
|
148
|
+
* });
|
|
149
|
+
*
|
|
150
|
+
* @since v2.0.0-beta.169
|
|
151
|
+
* @param {string} email
|
|
152
|
+
* @returns {Promise}
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
TeamUsers.prototype.revokeInvitation = function revokeInvitation(_ref) {
|
|
157
|
+
var email = _ref.email;
|
|
158
|
+
|
|
159
|
+
return this.client.request('admin.team.users.revoke-invitation', {
|
|
160
|
+
email: email
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
|
|
127
164
|
/**
|
|
128
165
|
* Removes a user from the team.
|
|
129
166
|
*
|
|
@@ -794,6 +794,16 @@
|
|
|
794
794
|
"path": "/api/admin/member/avatar/delete",
|
|
795
795
|
"body": ["userId"]
|
|
796
796
|
},
|
|
797
|
+
"admin.team.users.invitations": {
|
|
798
|
+
"method": "GET",
|
|
799
|
+
"path": "/api/admin/team/users/invitations"
|
|
800
|
+
},
|
|
801
|
+
"admin.team.users.revoke-invitation": {
|
|
802
|
+
"version": 2,
|
|
803
|
+
"method": "POST",
|
|
804
|
+
"path": "/api/admin/team/users/revoke-invitation",
|
|
805
|
+
"body": ["email"]
|
|
806
|
+
},
|
|
797
807
|
"admin.team.features.load": {
|
|
798
808
|
"method": "GET",
|
|
799
809
|
"path": "/api/admin/settings",
|