@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.
@@ -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<TeamPendingInvitationUser>>}
34
+ * @returns {Promise<Array<TeamUserInvitation>>}
35
35
  */
36
- getInvitations(): Promise<TeamPendingInvitationUser[]>;
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
- * email: 'newuser@domain.com',
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
- * invitationId: '1TM56KTBFOYR0WKV',
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: string;
105
- invitationId: string;
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<TeamPendingInvitationUser>>}
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
- * email: 'newuser@domain.com',
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
- * invitationId: '1TM56KTBFOYR0WKV',
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