@pageproof/sdk-pr 283.0.1603756585225 → 284.0.1603320669693
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 -8
- package/lib/api/admin/TeamFeatures.d.ts +0 -7
- package/lib/api/admin/TeamFeatures.js +0 -5
- package/lib/models/TeamEmailFeatures.d.ts +1 -8
- package/lib/models/TeamEmailFeatures.js +1 -1
- package/lib/models/TeamFeatures.d.ts +0 -8
- package/lib/models/TeamFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
- package/lib/models/TeamAccountFeatures.d.ts +0 -26
- package/lib/models/TeamAccountFeatures.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 2.0.0-beta.143
|
|
4
|
-
|
|
5
|
-
Released on the 27th of October 2020.
|
|
6
|
-
|
|
7
|
-
- [[#283](https://github.com/PageProofCom/sdk/pull/283)]
|
|
8
|
-
- Support for updating whether using the team name should be used, instead of "PageProof Team" as the from name in emails. See [TeamEmailFeatures](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamEmailFeatures.js~TeamEmailFeatures.html).
|
|
9
|
-
- Support for team account information in team admin API. see [TeamAccountFeatures](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamAccountFeatures.js~TeamAccountFeatures.html).
|
|
10
|
-
|
|
11
3
|
## 2.0.0-beta.142
|
|
12
4
|
|
|
13
5
|
Released on the 22nd of October 2020.
|
|
@@ -23,24 +23,17 @@ declare class TeamFeatures extends API {
|
|
|
23
23
|
* @param {object} options
|
|
24
24
|
* @param {object} options.emails The emails features
|
|
25
25
|
* @param {boolean} options.emails.displayComments Whether the comment should display in emails or not
|
|
26
|
-
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
27
26
|
* @param {object} options.comments The comments features
|
|
28
27
|
* @param {boolean} options.comments.editComments Whether the comments/replies can be edited by other users or not
|
|
29
|
-
* @param {object} options.proofs The proofs features
|
|
30
|
-
* @param {boolean} options.proofs.reference Whether showing the reference field on a proof
|
|
31
28
|
* @returns {Promise}
|
|
32
29
|
*/
|
|
33
30
|
update({ emails, comments, proofs, }: {
|
|
34
31
|
emails: {
|
|
35
32
|
displayComments: boolean;
|
|
36
|
-
displayTeamName: boolean;
|
|
37
33
|
};
|
|
38
34
|
comments: {
|
|
39
35
|
editComments: boolean;
|
|
40
36
|
};
|
|
41
|
-
proofs: {
|
|
42
|
-
reference: boolean;
|
|
43
|
-
};
|
|
44
37
|
}): Promise<any>;
|
|
45
38
|
}
|
|
46
39
|
import API from "../API";
|
|
@@ -61,11 +61,8 @@ var TeamFeatures = function (_API) {
|
|
|
61
61
|
* @param {object} options
|
|
62
62
|
* @param {object} options.emails The emails features
|
|
63
63
|
* @param {boolean} options.emails.displayComments Whether the comment should display in emails or not
|
|
64
|
-
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
65
64
|
* @param {object} options.comments The comments features
|
|
66
65
|
* @param {boolean} options.comments.editComments Whether the comments/replies can be edited by other users or not
|
|
67
|
-
* @param {object} options.proofs The proofs features
|
|
68
|
-
* @param {boolean} options.proofs.reference Whether showing the reference field on a proof
|
|
69
66
|
* @returns {Promise}
|
|
70
67
|
*/
|
|
71
68
|
|
|
@@ -76,12 +73,10 @@ var TeamFeatures = function (_API) {
|
|
|
76
73
|
proofs = _ref.proofs;
|
|
77
74
|
|
|
78
75
|
var displayComments = emails && emails.displayComments;
|
|
79
|
-
var displayTeamName = emails && emails.displayTeamName;
|
|
80
76
|
var editComments = comments && comments.editComments;
|
|
81
77
|
var proofReference = proofs && proofs.reference;
|
|
82
78
|
return this.client.request('admin.team.features.update', {
|
|
83
79
|
displayComments: displayComments,
|
|
84
|
-
displayTeamName: displayTeamName,
|
|
85
80
|
editComments: editComments,
|
|
86
81
|
proofReference: proofReference
|
|
87
82
|
});
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
export default TeamEmailFeatures;
|
|
2
2
|
declare class TeamEmailFeatures {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Weather emails should contain a preview of raw (decrypted) comments.
|
|
5
5
|
*
|
|
6
6
|
* @since v2.0.0-beta.75
|
|
7
7
|
* @type {boolean}
|
|
8
8
|
*/
|
|
9
9
|
displayComments: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
12
|
-
*
|
|
13
|
-
* @since v2.0.0-beta.143
|
|
14
|
-
* @type {boolean}
|
|
15
|
-
*/
|
|
16
|
-
displayTeamName: boolean;
|
|
17
10
|
/** @private */
|
|
18
11
|
fromTeamEmailFeatures(teamEmailFeaturesData: any): TeamEmailFeatures;
|
|
19
12
|
}
|
|
@@ -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 TeamEmailFeatureSchema={displayComments:"DisplayComments"
|
|
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 TeamEmailFeatureSchema={displayComments:"DisplayComments"};var TeamEmailFeatures=function(){function TeamEmailFeatures(){_classCallCheck(this,TeamEmailFeatures)}TeamEmailFeatures.prototype.fromTeamEmailFeatures=function fromTeamEmailFeatures(teamEmailFeaturesData){(0,_transform2.default)(this,TeamEmailFeatureSchema,teamEmailFeaturesData);return this};return TeamEmailFeatures}();exports.default=TeamEmailFeatures;
|
|
@@ -21,17 +21,9 @@ declare class TeamFeatures {
|
|
|
21
21
|
* @type {TeamProofFeatures}
|
|
22
22
|
*/
|
|
23
23
|
proofs: TeamProofFeatures;
|
|
24
|
-
/**
|
|
25
|
-
* Account features.
|
|
26
|
-
*
|
|
27
|
-
* @since v2.0.0-beta.143
|
|
28
|
-
* @type {TeamAccountFeatures}
|
|
29
|
-
*/
|
|
30
|
-
accounts: TeamAccountFeatures;
|
|
31
24
|
/** @private */
|
|
32
25
|
fromTeamFeatures(teamFeaturesData: any): TeamFeatures;
|
|
33
26
|
}
|
|
34
27
|
import TeamEmailFeatures from "./TeamEmailFeatures";
|
|
35
28
|
import TeamCommentFeatures from "./TeamCommentFeatures";
|
|
36
29
|
import TeamProofFeatures from "./TeamProofFeatures";
|
|
37
|
-
import TeamAccountFeatures from "./TeamAccountFeatures";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);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 teamFeaturesSchema={emails:function emails(data){return(new _TeamEmailFeatures2.default).fromTeamEmailFeatures(data)},comments:function comments(data){return(new _TeamCommentFeatures2.default).fromTeamCommentFeatures(data)},proofs:function proofs(data){return(new _TeamProofFeatures2.default).fromTeamProofFeatures(data)}};var TeamFeatures=function(){function TeamFeatures(){_classCallCheck(this,TeamFeatures)}TeamFeatures.prototype.fromTeamFeatures=function fromTeamFeatures(teamFeaturesData){(0,_transform2.default)(this,teamFeaturesSchema,teamFeaturesData);return this};return TeamFeatures}();exports.default=TeamFeatures;
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
"admin.team.features.update": {
|
|
725
725
|
"method": "POST",
|
|
726
726
|
"path": "/api/admin/settings",
|
|
727
|
-
"body": ["displayComments", "editComments", "proofReference"
|
|
727
|
+
"body": ["displayComments", "editComments", "proofReference"]
|
|
728
728
|
},
|
|
729
729
|
"integrations.get-setup-url": {
|
|
730
730
|
"method": "GET",
|