@pageproof/sdk-pr 418.0.1644378621755 → 419.0.1645401185495
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 +1 -1
- package/lib/api/admin/TeamFeatures.d.ts +2 -0
- package/lib/api/admin/TeamFeatures.js +3 -0
- package/lib/models/TeamEmailFeatures.d.ts +6 -0
- package/lib/models/TeamEmailFeatures.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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Released on the 9th of February 2022.
|
|
6
6
|
|
|
7
|
-
- [[PP-1644](https://goto.pageproof.dev/PP-1644)] Added support for
|
|
7
|
+
- [[PP-1644](https://goto.pageproof.dev/PP-1644)] Added support for customizing email link and button colors. See [TeamEmailFeatures](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamEmailFeatures.js~TeamEmailFeatures.html) and [TeamFeatures.update](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/admin/TeamFeatures.js~TeamFeatures.html#instance-method-update).
|
|
8
8
|
|
|
9
9
|
## 2.0.0-beta.286
|
|
10
10
|
|
|
@@ -24,6 +24,7 @@ declare class TeamFeatures extends API {
|
|
|
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
26
|
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
27
|
+
* @param {string} options.emails.titleTextColor The title text color in the email.
|
|
27
28
|
* @param {string} options.emails.linkTextColor The link text color in the email.
|
|
28
29
|
* @param {string} options.emails.buttonBackgroundColor The button background color in the email.
|
|
29
30
|
* @param {string} options.emails.buttonTextColor The button text color in the email.
|
|
@@ -41,6 +42,7 @@ declare class TeamFeatures extends API {
|
|
|
41
42
|
emails: {
|
|
42
43
|
displayComments: boolean;
|
|
43
44
|
displayTeamName: boolean;
|
|
45
|
+
titleTextColor: string;
|
|
44
46
|
linkTextColor: string;
|
|
45
47
|
buttonBackgroundColor: string;
|
|
46
48
|
buttonTextColor: string;
|
|
@@ -62,6 +62,7 @@ var TeamFeatures = function (_API) {
|
|
|
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
64
|
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
65
|
+
* @param {string} options.emails.titleTextColor The title text color in the email.
|
|
65
66
|
* @param {string} options.emails.linkTextColor The link text color in the email.
|
|
66
67
|
* @param {string} options.emails.buttonBackgroundColor The button background color in the email.
|
|
67
68
|
* @param {string} options.emails.buttonTextColor The button text color in the email.
|
|
@@ -84,6 +85,7 @@ var TeamFeatures = function (_API) {
|
|
|
84
85
|
|
|
85
86
|
var displayComments = emails && emails.displayComments;
|
|
86
87
|
var displayTeamName = emails && emails.displayTeamName;
|
|
88
|
+
var emailTitleTextColor = emails && emails.titleTextColor;
|
|
87
89
|
var emailLinkTextColor = emails && emails.linkTextColor;
|
|
88
90
|
var emailButtonBackgroundColor = emails && emails.buttonBackgroundColor;
|
|
89
91
|
var emailButtonTextColor = emails && emails.buttonTextColor;
|
|
@@ -96,6 +98,7 @@ var TeamFeatures = function (_API) {
|
|
|
96
98
|
return this.client.request('admin.team.features.update', {
|
|
97
99
|
displayComments: displayComments,
|
|
98
100
|
displayTeamName: displayTeamName,
|
|
101
|
+
emailTitleTextColor: emailTitleTextColor,
|
|
99
102
|
emailLinkTextColor: emailLinkTextColor,
|
|
100
103
|
emailButtonBackgroundColor: emailButtonBackgroundColor,
|
|
101
104
|
emailButtonTextColor: emailButtonTextColor,
|
|
@@ -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",displayTeamName:"DisplayTeamName",linkTextColor:"EmailLinkTextColor",buttonBackgroundColor:"EmailButtonBackgroundColor",buttonTextColor:"EmailButtonTextColor",senderEmail:"SenderEmail"};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;
|
|
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",displayTeamName:"DisplayTeamName",titleTextColor:"EmailTitleTextColor",linkTextColor:"EmailLinkTextColor",buttonBackgroundColor:"EmailButtonBackgroundColor",buttonTextColor:"EmailButtonTextColor",senderEmail:"SenderEmail"};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;
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
"version": 2,
|
|
852
852
|
"method": "POST",
|
|
853
853
|
"path": "/api/admin/settings",
|
|
854
|
-
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners"]
|
|
854
|
+
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners"]
|
|
855
855
|
},
|
|
856
856
|
"admin.team.features.sender-email.set": {
|
|
857
857
|
"version": 2,
|