@pageproof/sdk-pr 314.0.1615319258396 → 317.0.1615252390854
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 +0 -6
- package/lib/api/admin/TeamFeatures.js +3 -1
- package/lib/models/TeamInvitation.d.ts +0 -7
- package/lib/models/TeamInvitation.js +1 -1
- package/lib/models/TeamProofFeatures.d.ts +7 -0
- package/lib/models/TeamProofFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 2.0.0-beta.161
|
|
4
|
-
|
|
5
|
-
Released on the 10th of March 2021.
|
|
6
|
-
|
|
7
|
-
- [[#314](https://github.com/PageProofCom/sdk/pull/314)] Adds support for loading ID of the team the user has been invited to. See [TeamInvitation.teamId](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamInvitation.js~TeamInvitation.html#instance-member-teamId).
|
|
8
|
-
|
|
9
3
|
## 2.0.0-beta.160
|
|
10
4
|
|
|
11
5
|
Released on the 17th of February 2021.
|
|
@@ -81,12 +81,14 @@ var TeamFeatures = function (_API) {
|
|
|
81
81
|
var editComments = comments && comments.editComments;
|
|
82
82
|
var disableReplyingToCommentsInStatuses = comments && comments.disableReplyingToCommentsInStatuses && [].concat(comments.disableReplyingToCommentsInStatuses);
|
|
83
83
|
var proofReference = proofs && proofs.reference;
|
|
84
|
+
var editorCanUpdateEditors = proofs && proofs.editorCanUpdateEditors;
|
|
84
85
|
return this.client.request('admin.team.features.update', {
|
|
85
86
|
displayComments: displayComments,
|
|
86
87
|
displayTeamName: displayTeamName,
|
|
87
88
|
editComments: editComments,
|
|
88
89
|
proofReference: proofReference,
|
|
89
|
-
disableReplyingToCommentsInStatuses: disableReplyingToCommentsInStatuses
|
|
90
|
+
disableReplyingToCommentsInStatuses: disableReplyingToCommentsInStatuses,
|
|
91
|
+
editorCanUpdateEditors: editorCanUpdateEditors
|
|
90
92
|
});
|
|
91
93
|
};
|
|
92
94
|
|
|
@@ -12,13 +12,6 @@ declare class TeamInvitation {
|
|
|
12
12
|
* @type {string}
|
|
13
13
|
*/
|
|
14
14
|
logo: string;
|
|
15
|
-
/**
|
|
16
|
-
* The ID of the team the user has been invited to.
|
|
17
|
-
*
|
|
18
|
-
* @since v2.0.0-beta.161
|
|
19
|
-
* @type {string}
|
|
20
|
-
*/
|
|
21
|
-
teamId: string;
|
|
22
15
|
/**
|
|
23
16
|
* @private
|
|
24
17
|
* @param {object} teamInvitationData The team data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var teamInvitationSchema={name:"Name",logo:"Logo"
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var teamInvitationSchema={name:"Name",logo:"Logo"};var TeamInvitation=function(){function TeamInvitation(){_classCallCheck(this,TeamInvitation)}TeamInvitation.prototype.fromTeamInvitation=function fromTeamInvitation(teamInvitationData){(0,_transform2.default)(this,teamInvitationSchema,teamInvitationData);return this};return TeamInvitation}();exports.default=TeamInvitation;
|
|
@@ -7,6 +7,13 @@ declare class TeamProofFeatures {
|
|
|
7
7
|
* @type {boolean}
|
|
8
8
|
*/
|
|
9
9
|
reference: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether an editor can add/replace/remove other users as editors and add/edit editors message.
|
|
12
|
+
*
|
|
13
|
+
* @since v2.0.0-beta.99
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
*/
|
|
16
|
+
editorCanUpdateEditors: boolean;
|
|
10
17
|
/** @private */
|
|
11
18
|
fromTeamProofFeatures(teamProofFeaturesData: any): TeamProofFeatures;
|
|
12
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamProofFeatureSchema={reference:"ProofReference"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamProofFeatureSchema={reference:"ProofReference",editorCanUpdateEditors:"EditorCanUpdateEditors"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"version": 2,
|
|
774
774
|
"method": "POST",
|
|
775
775
|
"path": "/api/admin/settings",
|
|
776
|
-
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "disableReplyingToCommentsInStatuses"]
|
|
776
|
+
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "disableReplyingToCommentsInStatuses", "editorCanUpdateEditors"]
|
|
777
777
|
},
|
|
778
778
|
"integrations.get-setup-url": {
|
|
779
779
|
"method": "GET",
|