@pageproof/sdk-pr 533.0.1718319852237 → 533.0.1718756231897
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/lib/api/admin/TeamFeatures.d.ts +3 -2
- package/lib/api/admin/TeamFeatures.js +4 -5
- package/lib/models/TeamFeatures.d.ts +0 -7
- package/lib/models/TeamFeatures.js +1 -1
- package/lib/models/TeamProofFeatures.d.ts +6 -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/lib/models/TeamSecurityFeatures.d.ts +0 -11
- package/lib/models/TeamSecurityFeatures.js +0 -1
|
@@ -44,12 +44,12 @@ declare class TeamFeatures extends API {
|
|
|
44
44
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
45
45
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
46
46
|
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
47
|
+
* @param {boolean} options.proofs.enableProofMagicAccess Whether the Magic Access feature is enabled for the team's proofs.
|
|
47
48
|
* @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
|
|
48
49
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
49
|
-
* @param {boolean} options.security.enableMagicAccess Whether the Magic Access feature is enabled for the team's users.
|
|
50
50
|
* @returns {Promise}
|
|
51
51
|
*/
|
|
52
|
-
update({ emails, comments, proofs, addressBook, webhooks,
|
|
52
|
+
update({ emails, comments, proofs, addressBook, webhooks, }: {
|
|
53
53
|
emails: {
|
|
54
54
|
displayComments: boolean;
|
|
55
55
|
displayTeamName: boolean;
|
|
@@ -75,6 +75,7 @@ declare class TeamFeatures extends API {
|
|
|
75
75
|
messageToOwners: boolean;
|
|
76
76
|
allowedDecisions: Decision[];
|
|
77
77
|
enableChecklists: boolean;
|
|
78
|
+
enableProofMagicAccess: boolean;
|
|
78
79
|
};
|
|
79
80
|
}): Promise<any>;
|
|
80
81
|
/**
|
|
@@ -82,9 +82,9 @@ var TeamFeatures = function (_API) {
|
|
|
82
82
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
83
83
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
84
84
|
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
85
|
+
* @param {boolean} options.proofs.enableProofMagicAccess Whether the Magic Access feature is enabled for the team's proofs.
|
|
85
86
|
* @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
|
|
86
87
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
87
|
-
* @param {boolean} options.security.enableMagicAccess Whether the Magic Access feature is enabled for the team's users.
|
|
88
88
|
* @returns {Promise}
|
|
89
89
|
*/
|
|
90
90
|
|
|
@@ -94,8 +94,7 @@ var TeamFeatures = function (_API) {
|
|
|
94
94
|
comments = _ref.comments,
|
|
95
95
|
proofs = _ref.proofs,
|
|
96
96
|
addressBook = _ref.addressBook,
|
|
97
|
-
webhooks = _ref.webhooks
|
|
98
|
-
security = _ref.security;
|
|
97
|
+
webhooks = _ref.webhooks;
|
|
99
98
|
|
|
100
99
|
var displayComments = emails && emails.displayComments;
|
|
101
100
|
var displayTeamName = emails && emails.displayTeamName;
|
|
@@ -117,16 +116,15 @@ var TeamFeatures = function (_API) {
|
|
|
117
116
|
var messageToOwners = proofs && proofs.messageToOwners;
|
|
118
117
|
var allowedDecisions = proofs && proofs.allowedDecisions;
|
|
119
118
|
var enableChecklists = proofs && proofs.enableChecklists;
|
|
119
|
+
var enableProofMagicAccess = proofs && proofs.enableProofMagicAccess;
|
|
120
120
|
var suggestionsIncludeTeamMembers = addressBook && addressBook.suggestionsIncludeTeamMembers;
|
|
121
121
|
var enableWebhooks = webhooks && webhooks.enabled;
|
|
122
|
-
var enableMagicAccess = security && security.enableMagicAccess;
|
|
123
122
|
return this.client.request('admin.team.features.update', {
|
|
124
123
|
displayComments: displayComments,
|
|
125
124
|
displayTeamName: displayTeamName,
|
|
126
125
|
generalComments: generalComments,
|
|
127
126
|
privateComments: privateComments,
|
|
128
127
|
enableWebhooks: enableWebhooks,
|
|
129
|
-
enableMagicAccess: enableMagicAccess,
|
|
130
128
|
enableCommentVisibility: enableCommentVisibility,
|
|
131
129
|
defaultCommentVisibility: defaultCommentVisibility,
|
|
132
130
|
emailTitleTextColor: emailTitleTextColor,
|
|
@@ -142,6 +140,7 @@ var TeamFeatures = function (_API) {
|
|
|
142
140
|
messageToOwners: messageToOwners,
|
|
143
141
|
allowedDecisions: allowedDecisions,
|
|
144
142
|
enableChecklists: enableChecklists,
|
|
143
|
+
enableProofMagicAccess: enableProofMagicAccess,
|
|
145
144
|
suggestionsIncludeTeamMembers: suggestionsIncludeTeamMembers,
|
|
146
145
|
usePreviousVersionDueDate: usePreviousVersionDueDate
|
|
147
146
|
});
|
|
@@ -28,12 +28,6 @@ declare class TeamFeatures {
|
|
|
28
28
|
* @type {TeamAccountFeatures}
|
|
29
29
|
*/
|
|
30
30
|
accounts: TeamAccountFeatures;
|
|
31
|
-
/**
|
|
32
|
-
* Account security features.
|
|
33
|
-
*
|
|
34
|
-
* @type {TeamSecurityFeatures}
|
|
35
|
-
*/
|
|
36
|
-
security: TeamSecurityFeatures;
|
|
37
31
|
/**
|
|
38
32
|
* Address book features.
|
|
39
33
|
*
|
|
@@ -47,5 +41,4 @@ import TeamEmailFeatures from "./TeamEmailFeatures";
|
|
|
47
41
|
import TeamCommentFeatures from "./TeamCommentFeatures";
|
|
48
42
|
import TeamProofFeatures from "./TeamProofFeatures";
|
|
49
43
|
import TeamAccountFeatures from "./TeamAccountFeatures";
|
|
50
|
-
import TeamSecurityFeatures from "./TeamSecurityFeatures";
|
|
51
44
|
import TeamAddressBookFeatures from "./TeamAddressBookFeatures";
|
|
@@ -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);var _TeamAddressBookFeatures=require("./TeamAddressBookFeatures");var _TeamAddressBookFeatures2=_interopRequireDefault(_TeamAddressBookFeatures);var _TeamAccountFeatures=require("./TeamAccountFeatures");var _TeamAccountFeatures2=_interopRequireDefault(_TeamAccountFeatures);var _TeamWebhookFeatures=require("./TeamWebhookFeatures");var _TeamWebhookFeatures2=_interopRequireDefault(_TeamWebhookFeatures);
|
|
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);var _TeamAddressBookFeatures=require("./TeamAddressBookFeatures");var _TeamAddressBookFeatures2=_interopRequireDefault(_TeamAddressBookFeatures);var _TeamAccountFeatures=require("./TeamAccountFeatures");var _TeamAccountFeatures2=_interopRequireDefault(_TeamAccountFeatures);var _TeamWebhookFeatures=require("./TeamWebhookFeatures");var _TeamWebhookFeatures2=_interopRequireDefault(_TeamWebhookFeatures);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)},addressBook:function addressBook(data){return(new _TeamAddressBookFeatures2.default).fromTeamAddressBookFeatures(data)},accounts:function accounts(data){return(new _TeamAccountFeatures2.default).fromTeamAccountFeatures(data)},webhooks:function webhooks(data){return(new _TeamWebhookFeatures2.default).fromTeamWebhookFeatures(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;
|
|
@@ -38,6 +38,12 @@ declare class TeamProofFeatures {
|
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
*/
|
|
40
40
|
enableChecklists: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the Magic Access feature is enabled for the team's proofs.
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
*/
|
|
46
|
+
enableProofMagicAccess: boolean;
|
|
41
47
|
/**
|
|
42
48
|
* Whether the default due date on the proof setup page for a new version is the previous version's due date.
|
|
43
49
|
*
|
|
@@ -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",publicProofs:"PublicProofs",usePreviousVersionDueDate:"UsePreviousVersionDueDate",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists"};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",publicProofs:"PublicProofs",usePreviousVersionDueDate:"UsePreviousVersionDueDate",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists",enableProofMagicAccess:"EnableProofMagicAccess"};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;
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
"version": 2,
|
|
879
879
|
"method": "POST",
|
|
880
880
|
"path": "/api/admin/settings",
|
|
881
|
-
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "
|
|
881
|
+
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "enableProofMagicAccess", "editComments", "ownerCanDeleteComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate"]
|
|
882
882
|
},
|
|
883
883
|
"admin.team.features.sender-email.set": {
|
|
884
884
|
"version": 2,
|