@pageproof/sdk-pr 242.0.1592865076705 → 242.0.1593480260535
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/CHANGELOG.md +18 -2
- package/lib/api/admin/TeamUsers.d.ts +20 -0
- package/lib/api/admin/TeamUsers.js +27 -0
- package/lib/network/endpoints.json +6 -0
- package/lib/pageproof.js +1 -1
- package/lib/types/GenericUserDefinition.d.ts +13 -0
- package/lib/types/GenericUserDefinition.js +1 -0
- package/lib/types/PrintingJobOptions.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 2.0.0-beta.125
|
|
6
|
+
|
|
7
|
+
Released on 30th of June 2020.
|
|
8
|
+
|
|
9
|
+
- The [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js~Printing.html) API's `options` method now also returns `content`, which is a list of acceptable [PrintingContentType](https://docs.pageproof.tech/@pageproof/sdk/beta/variable/index.html#static-variable-PrintingContentType) for printing a given proof. This should be used with when calling `create` in order to form a successful request.
|
|
10
|
+
- [PrintingOption](https://docs.pageproof.tech/@pageproof/sdk/beta/typedef/index.html#static-typedef-PrintingOption) now includes the quantity of comments marked as to do and all comments in a new `counts` field.
|
|
11
|
+
- [PrintingJobOptions](https://docs.pageproof.tech/@pageproof/sdk/beta/typedef/index.html#static-typedef-PrintingJobOptions) now includes a boolean, `includeAllPages` which, when true, also includes pages on static that do not have comments. This is only applicable when using the hero layout.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 2.0.0-beta.124
|
|
15
|
+
|
|
16
|
+
Released on the 25th of June 2020.
|
|
17
|
+
|
|
18
|
+
- Support for removing user/users from a team by Administrators. See [TeamUsers.remove](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/admin/TeamUsers.js~TeamUsers.html#instance-method-remove).
|
|
19
|
+
|
|
3
20
|
## 2.0.0-beta.123
|
|
4
21
|
|
|
5
22
|
Released on the 19th of June 2020.
|
|
@@ -8,7 +25,6 @@ Released on the 19th of June 2020.
|
|
|
8
25
|
- Added [Proof.source](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Proofs.js~Proofs.html#instance-member-source) to the Proof model for externally sourced proofs (such as email).
|
|
9
26
|
- Added [Proof.isAwaitingFile](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Proofs.js~Proofs.html#instance-method-isAwaitingFile) for proofs that are waiting on a file to arrive from an external source.
|
|
10
27
|
|
|
11
|
-
|
|
12
28
|
## 2.0.0-beta.122
|
|
13
29
|
|
|
14
30
|
Released on the 25th of May 2020.
|
|
@@ -32,7 +48,7 @@ Released on the 16th of March 2020.
|
|
|
32
48
|
|
|
33
49
|
Released on the 13th of March 2020.
|
|
34
50
|
|
|
35
|
-
- [[#226](https://github.com/PageProofCom/sdk/pull/226)] Support for printing of proofs and the options available to do so. See [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js)
|
|
51
|
+
- [[#226](https://github.com/PageProofCom/sdk/pull/226)] Support for printing of proofs and the options available to do so. See [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js~Printing.html)
|
|
36
52
|
|
|
37
53
|
## 2.0.0-beta.118
|
|
38
54
|
|
|
@@ -50,6 +50,26 @@ declare class TeamUsers extends API {
|
|
|
50
50
|
* @returns {Promise}
|
|
51
51
|
*/
|
|
52
52
|
invite(emailOrEmails: any): Promise<any>;
|
|
53
|
+
/**
|
|
54
|
+
* Removes a user from the team.
|
|
55
|
+
*
|
|
56
|
+
* @example <caption>Removing single user by user email</caption>
|
|
57
|
+
* await admin.team.users.remove({email: 'existinguser@domain.com'});
|
|
58
|
+
*
|
|
59
|
+
* @example <caption>Removing single user by user id</caption>
|
|
60
|
+
* await admin.team.users.remove({id: 'ULVRHSLLP69ACHCT'});
|
|
61
|
+
*
|
|
62
|
+
* @example <caption>Removing multiple users (by email/ user id)</caption>
|
|
63
|
+
* await admin.team.users.remove([
|
|
64
|
+
* {email: 'existinguser@domain.com'},
|
|
65
|
+
* {id: 'ULVRHSLLP69ACHCT'},
|
|
66
|
+
* ]);
|
|
67
|
+
*
|
|
68
|
+
* @since v2.0.0-beta.125
|
|
69
|
+
* @param {GenericUserDefinition|Array<GenericUserDefinition>} userOrUsers The user or users to remove from team.
|
|
70
|
+
* @returns {Promise}
|
|
71
|
+
*/
|
|
72
|
+
remove(userOrUsers: GenericUserDefinition | GenericUserDefinition[]): Promise<any>;
|
|
53
73
|
}
|
|
54
74
|
import API from "../API";
|
|
55
75
|
import User from "../../models/User";
|
|
@@ -120,6 +120,33 @@ var TeamUsers = function (_API) {
|
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Removes a user from the team.
|
|
125
|
+
*
|
|
126
|
+
* @example <caption>Removing single user by user email</caption>
|
|
127
|
+
* await admin.team.users.remove({email: 'existinguser@domain.com'});
|
|
128
|
+
*
|
|
129
|
+
* @example <caption>Removing single user by user id</caption>
|
|
130
|
+
* await admin.team.users.remove({id: 'ULVRHSLLP69ACHCT'});
|
|
131
|
+
*
|
|
132
|
+
* @example <caption>Removing multiple users (by email/ user id)</caption>
|
|
133
|
+
* await admin.team.users.remove([
|
|
134
|
+
* {email: 'existinguser@domain.com'},
|
|
135
|
+
* {id: 'ULVRHSLLP69ACHCT'},
|
|
136
|
+
* ]);
|
|
137
|
+
*
|
|
138
|
+
* @since v2.0.0-beta.125
|
|
139
|
+
* @param {GenericUserDefinition|Array<GenericUserDefinition>} userOrUsers The user or users to remove from team.
|
|
140
|
+
* @returns {Promise}
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
TeamUsers.prototype.remove = function remove(userOrUsers) {
|
|
145
|
+
return this.client.request('admin.team.users.remove-from-team', {
|
|
146
|
+
users: [].concat(userOrUsers)
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
|
|
123
150
|
return TeamUsers;
|
|
124
151
|
}(_API3.default);
|
|
125
152
|
|
|
@@ -654,6 +654,12 @@
|
|
|
654
654
|
"path": "/api/admin/member/invite",
|
|
655
655
|
"body": ["emails"]
|
|
656
656
|
},
|
|
657
|
+
"admin.team.users.remove-from-team": {
|
|
658
|
+
"version": 2,
|
|
659
|
+
"method": "POST",
|
|
660
|
+
"path": "/api/admin/member/remove",
|
|
661
|
+
"body": ["users"]
|
|
662
|
+
},
|
|
657
663
|
"admin.team.features.load": {
|
|
658
664
|
"method": "GET",
|
|
659
665
|
"path": "/api/admin/settings",
|