@pageproof/sdk-pr 344.0.1622174349883 → 344.0.1622175750163
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 +8 -8
- package/lib/api/admin/TeamUsers.js +5 -5
- package/lib/pageproof.js +1 -1
- package/lib/types/{TeamPendingInvitationUser.d.ts → TeamUserInvitation.d.ts} +3 -3
- package/lib/types/TeamUserInvitationUser.d.ts +14 -0
- package/lib/types/TeamUserInvitationUser.js +1 -0
- package/package.json +1 -1
- /package/lib/types/{TeamPendingInvitationUser.js → TeamUserInvitation.js} +0 -0
|
@@ -31,9 +31,9 @@ declare class TeamUsers extends API {
|
|
|
31
31
|
* const invitations = await admin.team.users.getInvitations();
|
|
32
32
|
*
|
|
33
33
|
* @since v2.0.0-beta.169
|
|
34
|
-
* @returns {Promise<Array<
|
|
34
|
+
* @returns {Promise<Array<TeamUserInvitation>>}
|
|
35
35
|
*/
|
|
36
|
-
getInvitations(): Promise<
|
|
36
|
+
getInvitations(): Promise<TeamUserInvitation[]>;
|
|
37
37
|
/** @private */
|
|
38
38
|
_setEnabled(email: any, enabled: any): any;
|
|
39
39
|
/**
|
|
@@ -85,24 +85,24 @@ declare class TeamUsers extends API {
|
|
|
85
85
|
* @example <caption>Revoking a pending invitation by user email</caption>
|
|
86
86
|
* const admin = await client.admin();
|
|
87
87
|
* await admin.team.users.revokeInvitation({
|
|
88
|
-
*
|
|
88
|
+
* email: 'newuser@domain.com',
|
|
89
89
|
* });
|
|
90
90
|
*
|
|
91
91
|
* @example <caption>Revoking a pending invitation by invitation id</caption>
|
|
92
92
|
* const admin = await client.admin();
|
|
93
93
|
* await admin.team.users.revokeInvitation({
|
|
94
|
-
*
|
|
94
|
+
* invitationId: '142110ea-ab38-4327-a747-1d48b0b5eb7e',
|
|
95
95
|
* });
|
|
96
96
|
*
|
|
97
97
|
* @since v2.0.0-beta.169
|
|
98
98
|
* @param {object} options
|
|
99
|
-
* @param {string} options.email The email of the user to revoke the invitation for
|
|
100
|
-
* @param {string} options.invitationId The invitation id
|
|
99
|
+
* @param {string} [options.email] The email of the user to revoke the invitation for
|
|
100
|
+
* @param {string} [options.invitationId] The invitation id
|
|
101
101
|
* @returns {Promise}
|
|
102
102
|
*/
|
|
103
103
|
revokeInvitation({ email, invitationId }: {
|
|
104
|
-
email
|
|
105
|
-
invitationId
|
|
104
|
+
email?: string;
|
|
105
|
+
invitationId?: string;
|
|
106
106
|
}): Promise<any>;
|
|
107
107
|
/**
|
|
108
108
|
* Removes a user from the team.
|
|
@@ -80,7 +80,7 @@ var TeamUsers = function (_API) {
|
|
|
80
80
|
* const invitations = await admin.team.users.getInvitations();
|
|
81
81
|
*
|
|
82
82
|
* @since v2.0.0-beta.169
|
|
83
|
-
* @returns {Promise<Array<
|
|
83
|
+
* @returns {Promise<Array<TeamUserInvitation>>}
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
86
|
|
|
@@ -166,19 +166,19 @@ var TeamUsers = function (_API) {
|
|
|
166
166
|
* @example <caption>Revoking a pending invitation by user email</caption>
|
|
167
167
|
* const admin = await client.admin();
|
|
168
168
|
* await admin.team.users.revokeInvitation({
|
|
169
|
-
*
|
|
169
|
+
* email: 'newuser@domain.com',
|
|
170
170
|
* });
|
|
171
171
|
*
|
|
172
172
|
* @example <caption>Revoking a pending invitation by invitation id</caption>
|
|
173
173
|
* const admin = await client.admin();
|
|
174
174
|
* await admin.team.users.revokeInvitation({
|
|
175
|
-
*
|
|
175
|
+
* invitationId: '142110ea-ab38-4327-a747-1d48b0b5eb7e',
|
|
176
176
|
* });
|
|
177
177
|
*
|
|
178
178
|
* @since v2.0.0-beta.169
|
|
179
179
|
* @param {object} options
|
|
180
|
-
* @param {string} options.email The email of the user to revoke the invitation for
|
|
181
|
-
* @param {string} options.invitationId The invitation id
|
|
180
|
+
* @param {string} [options.email] The email of the user to revoke the invitation for
|
|
181
|
+
* @param {string} [options.invitationId] The invitation id
|
|
182
182
|
* @returns {Promise}
|
|
183
183
|
*/
|
|
184
184
|
|