@pageproof/sdk-pr 402.0.1639715564149 → 403.0.1639960993691
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 +6 -0
- package/lib/api/Files.d.ts +1 -0
- package/lib/api/admin/TeamFeatures.d.ts +13 -0
- package/lib/api/admin/TeamFeatures.js +33 -0
- package/lib/models/TeamEmailFeatures.d.ts +6 -0
- package/lib/models/TeamEmailFeatures.js +1 -1
- package/lib/network/endpoints.json +7 -1
- package/lib/pageproof.js +1 -1
- package/lib/types/SpfRecordDefinition.d.ts +17 -0
- package/lib/types/SpfRecordDefinition.js +1 -0
- package/lib/types/TeamSenderEmail.d.ts +21 -0
- package/lib/types/TeamSenderEmail.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## 2.0.0-beta.281
|
|
5
|
+
|
|
6
|
+
Released on the 17th of December 2021.
|
|
7
|
+
|
|
8
|
+
- [[PP-1536](https://pageproof.atlassian.net/browse/PP-1536)] Added support for duplicating files. See [Files.duplicate](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Files.js~Files.html#instance-method-duplicate).
|
|
9
|
+
|
|
4
10
|
## 2.0.0-beta.280
|
|
5
11
|
|
|
6
12
|
Released on the 10th of December 2021.
|
package/lib/api/Files.d.ts
CHANGED
|
@@ -50,5 +50,18 @@ declare class TeamFeatures extends API {
|
|
|
50
50
|
messageToOwners: boolean;
|
|
51
51
|
};
|
|
52
52
|
}): Promise<any>;
|
|
53
|
+
/**
|
|
54
|
+
* Set the team sender email address for the team email notification.
|
|
55
|
+
*
|
|
56
|
+
* Note: This feature is only available to enterprise teams.
|
|
57
|
+
*
|
|
58
|
+
* @example <caption>Setting the team sender email</caption>
|
|
59
|
+
* const admin = await client.admin();
|
|
60
|
+
* const features = admin.team.features.setSenderEmail('team@example.com');
|
|
61
|
+
*
|
|
62
|
+
* @param {string} senderEmail The team sender email address.
|
|
63
|
+
* @returns {Promise<TeamSenderEmail>}
|
|
64
|
+
*/
|
|
65
|
+
setSenderEmail(senderEmail: string): Promise<TeamSenderEmail>;
|
|
53
66
|
}
|
|
54
67
|
import API from "../API";
|
|
@@ -99,6 +99,39 @@ var TeamFeatures = function (_API) {
|
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Set the team sender email address for the team email notification.
|
|
104
|
+
*
|
|
105
|
+
* Note: This feature is only available to enterprise teams.
|
|
106
|
+
*
|
|
107
|
+
* @example <caption>Setting the team sender email</caption>
|
|
108
|
+
* const admin = await client.admin();
|
|
109
|
+
* const features = admin.team.features.setSenderEmail('team@example.com');
|
|
110
|
+
*
|
|
111
|
+
* @param {string} senderEmail The team sender email address.
|
|
112
|
+
* @returns {Promise<TeamSenderEmail>}
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
TeamFeatures.prototype.setSenderEmail = function setSenderEmail(senderEmail) {
|
|
117
|
+
return this.client.request('admin.team.features.sender-email.set', {
|
|
118
|
+
senderEmail: senderEmail
|
|
119
|
+
}).then(function (response) {
|
|
120
|
+
return {
|
|
121
|
+
success: response.data.Success,
|
|
122
|
+
domain: response.data.Domain,
|
|
123
|
+
email: response.data.Email,
|
|
124
|
+
records: response.data.Records && response.data.Records.map(function (record) {
|
|
125
|
+
return {
|
|
126
|
+
version: record.Version,
|
|
127
|
+
current: record.Current,
|
|
128
|
+
new: record.New
|
|
129
|
+
};
|
|
130
|
+
})
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
|
|
102
135
|
return TeamFeatures;
|
|
103
136
|
}(_API3.default);
|
|
104
137
|
|
|
@@ -14,6 +14,12 @@ declare class TeamEmailFeatures {
|
|
|
14
14
|
* @type {boolean}
|
|
15
15
|
*/
|
|
16
16
|
displayTeamName: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The sender email address for the team email notification.
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
*/
|
|
22
|
+
senderEmail: string;
|
|
17
23
|
/** @private */
|
|
18
24
|
fromTeamEmailFeatures(teamEmailFeaturesData: any): TeamEmailFeatures;
|
|
19
25
|
}
|
|
@@ -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"};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",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,13 @@
|
|
|
851
851
|
"version": 2,
|
|
852
852
|
"method": "POST",
|
|
853
853
|
"path": "/api/admin/settings",
|
|
854
|
-
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners"]
|
|
854
|
+
"body": ["displayComments", "editComments", "proofReference", "displayTeamName", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "senderEmail"]
|
|
855
|
+
},
|
|
856
|
+
"admin.team.features.sender-email.set": {
|
|
857
|
+
"version": 2,
|
|
858
|
+
"method": "POST",
|
|
859
|
+
"path": "/api/admin/sender-email/set",
|
|
860
|
+
"body": ["senderEmail"]
|
|
855
861
|
},
|
|
856
862
|
"integrations.get-setup-url": {
|
|
857
863
|
"method": "GET",
|