@pageproof/sdk-pr 568.0.1731465535064 → 570.0.1732673597540
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 +2 -0
- package/lib/api/admin/TeamFeatures.js +3 -0
- package/lib/models/Comment.d.ts +0 -6
- package/lib/models/Comment.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
|
@@ -46,6 +46,7 @@ declare class TeamFeatures extends API {
|
|
|
46
46
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
47
47
|
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
48
48
|
* @param {boolean} options.proofs.enableProofMagicAccess Whether the Magic Access feature is enabled for the team's proofs.
|
|
49
|
+
* @param {boolean} options.proofs.defaultGifOutput Determines how gif files are processed.
|
|
49
50
|
* @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
|
|
50
51
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
51
52
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
@@ -82,6 +83,7 @@ declare class TeamFeatures extends API {
|
|
|
82
83
|
allowedDecisions: Decision[];
|
|
83
84
|
enableChecklists: boolean;
|
|
84
85
|
enableProofMagicAccess: boolean;
|
|
86
|
+
defaultGifOutput: boolean;
|
|
85
87
|
};
|
|
86
88
|
}): Promise<any>;
|
|
87
89
|
/**
|
|
@@ -84,6 +84,7 @@ var TeamFeatures = function (_API) {
|
|
|
84
84
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
85
85
|
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
86
86
|
* @param {boolean} options.proofs.enableProofMagicAccess Whether the Magic Access feature is enabled for the team's proofs.
|
|
87
|
+
* @param {boolean} options.proofs.defaultGifOutput Determines how gif files are processed.
|
|
87
88
|
* @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
|
|
88
89
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
89
90
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
@@ -126,6 +127,7 @@ var TeamFeatures = function (_API) {
|
|
|
126
127
|
var allowedDecisions = proofs && proofs.allowedDecisions;
|
|
127
128
|
var enableChecklists = proofs && proofs.enableChecklists;
|
|
128
129
|
var enableProofMagicAccess = proofs && proofs.enableProofMagicAccess;
|
|
130
|
+
var defaultGifOutput = proofs && proofs.defaultGifOutput;
|
|
129
131
|
var suggestionsIncludeTeamMembers = addressBook && addressBook.suggestionsIncludeTeamMembers;
|
|
130
132
|
var enableWebhooks = webhooks && webhooks.enabled;
|
|
131
133
|
var enableIntelligence = intelligence && intelligence.enableIntelligence;
|
|
@@ -155,6 +157,7 @@ var TeamFeatures = function (_API) {
|
|
|
155
157
|
allowedDecisions: allowedDecisions,
|
|
156
158
|
enableChecklists: enableChecklists,
|
|
157
159
|
enableProofMagicAccess: enableProofMagicAccess,
|
|
160
|
+
defaultGifOutput: defaultGifOutput,
|
|
158
161
|
enableIntelligence: enableIntelligence,
|
|
159
162
|
enableIntelligenceSmartTags: enableIntelligenceSmartTags,
|
|
160
163
|
enableIntelligenceSmartCheckCr: enableIntelligenceSmartCheckCr,
|
package/lib/models/Comment.d.ts
CHANGED
|
@@ -184,12 +184,6 @@ declare class Comment {
|
|
|
184
184
|
* @type {boolean}
|
|
185
185
|
*/
|
|
186
186
|
isPrivate: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* User ids of user who have been mentioned in this comment.
|
|
189
|
-
*
|
|
190
|
-
* @type {Array<String>}
|
|
191
|
-
*/
|
|
192
|
-
mentionedIds: Array<String>;
|
|
193
187
|
/**
|
|
194
188
|
* @private
|
|
195
189
|
* @param {object} commentData The comment object from the server
|
package/lib/models/Comment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _User=require("./User");var _User2=_interopRequireDefault(_User);var _File=require("./File");var _File2=_interopRequireDefault(_File);var _parseComment=require("../util/comments/parseComment");var _parseComment2=_interopRequireDefault(_parseComment);var _getCommentState=require("../util/comments/getCommentState");var _getCommentState2=_interopRequireDefault(_getCommentState);var _parsePins=require("../util/pins/parsePins");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 commentSchema={id:"CommentId",proofId:"ProofId",pins:function pins(data){return(0,_parsePins.parsePins)(data.XY).map(function(pin,index){if(index===0&&data.BoxFillType){return _extends({},pin,{fill:data.BoxFillType&&{type:data.BoxFillType,image:data.BoxFillImage}})}return pin})},pin:function pin(){return this.pins[0]},user:function user(data){return(new _User2.default).fromUser(data)},comment$:"EncryptedComment",envelope:"Envelope",attachments:function attachments(data){if(data.Attachments){return data.Attachments.map(function(attachment){return(new _File2.default).fromCommentAttachment(_extends({CommentId:data.CommentId},attachment))})}return[]},agreeCount:function agreeCount(data){return data.Agrees.length},pageNumber:(0,_transform.number)("Page"),mediaTime:function mediaTime(){return this.pin&&this.pin.time},mediaDuration:function mediaDuration(){return this.pin&&this.pin.duration},createdDate:(0,_transform.date)("Timestamp"),updatedDate:(0,_transform.date)("Updated"),parentCommentId:(0,_transform.optional)("Parent"),metadata:(0,_transform.json)("Metadata",{}),sourceMetadata:"SourceMetadata",state:function state(data){return(0,_getCommentState2.default)(data)},isPrivate:"Private"
|
|
1
|
+
"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _User=require("./User");var _User2=_interopRequireDefault(_User);var _File=require("./File");var _File2=_interopRequireDefault(_File);var _parseComment=require("../util/comments/parseComment");var _parseComment2=_interopRequireDefault(_parseComment);var _getCommentState=require("../util/comments/getCommentState");var _getCommentState2=_interopRequireDefault(_getCommentState);var _parsePins=require("../util/pins/parsePins");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 commentSchema={id:"CommentId",proofId:"ProofId",pins:function pins(data){return(0,_parsePins.parsePins)(data.XY).map(function(pin,index){if(index===0&&data.BoxFillType){return _extends({},pin,{fill:data.BoxFillType&&{type:data.BoxFillType,image:data.BoxFillImage}})}return pin})},pin:function pin(){return this.pins[0]},user:function user(data){return(new _User2.default).fromUser(data)},comment$:"EncryptedComment",envelope:"Envelope",attachments:function attachments(data){if(data.Attachments){return data.Attachments.map(function(attachment){return(new _File2.default).fromCommentAttachment(_extends({CommentId:data.CommentId},attachment))})}return[]},agreeCount:function agreeCount(data){return data.Agrees.length},pageNumber:(0,_transform.number)("Page"),mediaTime:function mediaTime(){return this.pin&&this.pin.time},mediaDuration:function mediaDuration(){return this.pin&&this.pin.duration},createdDate:(0,_transform.date)("Timestamp"),updatedDate:(0,_transform.date)("Updated"),parentCommentId:(0,_transform.optional)("Parent"),metadata:(0,_transform.json)("Metadata",{}),sourceMetadata:"SourceMetadata",state:function state(data){return(0,_getCommentState2.default)(data)},isPrivate:"Private"};var Comment=function(){function Comment(){_classCallCheck(this,Comment)}Comment.prototype.fromComment=function fromComment(commentData){(0,_transform2.default)(this,commentSchema,commentData);return this};Comment.prototype.fromRawComment=function fromRawComment(rawComment){var parsed=(0,_parseComment2.default)(rawComment);this.raw=rawComment;this.tokens=parsed;return this};return Comment}();exports.default=Comment;
|
|
@@ -51,6 +51,12 @@ declare class TeamProofFeatures {
|
|
|
51
51
|
* @type {boolean}
|
|
52
52
|
*/
|
|
53
53
|
enableProofMagicAccess: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Determines how gif files are processed.
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
*/
|
|
59
|
+
defaultGifOutput: boolean;
|
|
54
60
|
/**
|
|
55
61
|
* Whether the default due date on the proof setup page for a new version is the previous version's due date.
|
|
56
62
|
*
|
|
@@ -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",referenceRequired:"ProofReferenceRequired",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;
|
|
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",referenceRequired:"ProofReferenceRequired",publicProofs:"PublicProofs",usePreviousVersionDueDate:"UsePreviousVersionDueDate",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists",defaultGifOutput:"DefaultGifOutput",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", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr"]
|
|
881
|
+
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput"]
|
|
882
882
|
},
|
|
883
883
|
"admin.team.features.sender-email.set": {
|
|
884
884
|
"version": 2,
|