@pageproof/sdk-pr 663.0.1773885288737 → 664.0.1769466654315
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 -40
- package/lib/api/Proofs.d.ts +5 -24
- package/lib/api/Proofs.js +1 -1
- package/lib/api/admin/TeamDashboard.d.ts +0 -16
- package/lib/api/admin/TeamDashboard.js +0 -19
- package/lib/api/admin/TeamFeatures.d.ts +0 -3
- package/lib/api/admin/TeamFeatures.js +1 -10
- package/lib/models/TeamAccountFeatures.js +1 -1
- package/lib/models/TeamIntelligenceFeatures.d.ts +0 -12
- package/lib/models/TeamIntelligenceFeatures.js +1 -1
- package/lib/models/TeamProofFeatures.d.ts +0 -6
- package/lib/models/TeamProofFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -13
- package/lib/pageproof.js +1 -1
- package/lib/util/dashboardSearchShared.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
## 2.15.1
|
|
2
|
-
|
|
3
|
-
Released on the 19th of March 2026.
|
|
4
|
-
|
|
5
|
-
- [[PP-8526](https://pageproof.atlassian.net/browse/PP-8526)] Added SSO feature flags.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## 2.15.0
|
|
9
|
-
|
|
10
|
-
Released on the 17th of March 2026.
|
|
11
|
-
|
|
12
|
-
- [[PP-9567](https://pageproof.atlassian.net/browse/PP-9567)] Added new proofs-service endpoints and TeamDashboard Bin request to support new proof schedule deletion feature.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 2.14.0
|
|
16
|
-
|
|
17
|
-
Released on the 6th of March 2026.
|
|
18
|
-
|
|
19
|
-
- [[PP-9566](https://pageproof.atlassian.net/browse/PP-9566)] Added support for displaying the PageProof Intelligence® insights button on the proofing screen.
|
|
20
|
-
|
|
21
|
-
## 2.13.2
|
|
22
|
-
|
|
23
|
-
Released on the 2nd of March 2026.
|
|
24
|
-
|
|
25
|
-
- [[PP-9814](https://pageproof.atlassian.net/browse/PP-9814)] Bug fixes for dashboard search backward compatibility.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## 2.13.1
|
|
29
|
-
|
|
30
|
-
Released on the 11th of February 2026.
|
|
31
|
-
|
|
32
|
-
- [[PP-9673](https://pageproof.atlassian.net/browse/PP-9673)] Bug fixes for dashboard search now validating proof fields used in search filters and sorting.
|
|
33
|
-
|
|
34
|
-
## 2.13.0
|
|
35
|
-
|
|
36
|
-
Released on the 9th of February 2026.
|
|
37
|
-
|
|
38
|
-
- [[PP-9325](https://pageproof.atlassian.net/browse/PP-9325)] Added support for dashboard search replacement, enabling enhanced search capabilities across the platform.
|
|
39
|
-
|
|
40
1
|
## 2.12.0
|
|
41
2
|
|
|
42
3
|
Released on the 22nd of January 2026.
|
|
@@ -143,7 +104,7 @@ Released on the 1st of April 2025.
|
|
|
143
104
|
|
|
144
105
|
Released on the 16th of December 2024.
|
|
145
106
|
|
|
146
|
-
- [[PP-7712](https://pageproof.atlassian.net/browse/PP-7712)] Added support for description on a proof group (collection).
|
|
107
|
+
- [[PP-7712](https://pageproof.atlassian.net/browse/PP-7712)] Added support for description on a proof group (collection).
|
|
147
108
|
|
|
148
109
|
## 2.2.0
|
|
149
110
|
|
package/lib/api/Proofs.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ declare class Proofs extends API {
|
|
|
177
177
|
*
|
|
178
178
|
* @see {@link Proofs.start}
|
|
179
179
|
*
|
|
180
|
-
* @param {{ name: string, tags?: string[], dueDate?: Date | string, messageToReviewers?: string, workflow?: { id: string }, workflowTemplate?: { id: string }, proofTemplate?: { id: string }, checklist?: { templateId?: string, isRequiredForFinalApproval?: boolean, shouldOpenOnProofLoad?: boolean }, file?: { id: string }, group?: { id: string }, previousProof?: { id: string }, team?: { slug: string }, reference?: string, customTools?: any, integrationReferences?: any[], reminders?: Reminder[], owners?: { email?: string, id?: string }[], canDownload?: boolean, start?: boolean, commentVisibility?: string | null
|
|
180
|
+
* @param {{ name: string, tags?: string[], dueDate?: Date | string, messageToReviewers?: string, workflow?: { id: string }, workflowTemplate?: { id: string }, proofTemplate?: { id: string }, checklist?: { templateId?: string, isRequiredForFinalApproval?: boolean, shouldOpenOnProofLoad?: boolean }, file?: { id: string }, group?: { id: string }, previousProof?: { id: string }, team?: { slug: string }, reference?: string, customTools?: any, integrationReferences?: any[], reminders?: Reminder[], owners?: { email?: string, id?: string }[], canDownload?: boolean, start?: boolean, commentVisibility?: string | null }} options The options
|
|
181
181
|
*
|
|
182
182
|
* @param options.name The name of the proof
|
|
183
183
|
* @param [options.tags] The tags to add to the proof (defaults to no tags)
|
|
@@ -204,11 +204,9 @@ declare class Proofs extends API {
|
|
|
204
204
|
* @param [options.commentVisibility] Controls the visibility of comments on the proof
|
|
205
205
|
* @param [options.priority] The priority of the proof from 1 to 5. 5 is the highest priority and 1 is the lowest.
|
|
206
206
|
* @param [options.isDigitalVerificationEnabled] Whether the proof has digital verification enabled.
|
|
207
|
-
* @param [options.isProofInsightsEnabled] Whether the proof has proof insights enabled.
|
|
208
|
-
* @param [options.isProofInsightsCommentsEnabled] Whether the proof has proof insights comments enabled.
|
|
209
207
|
* @returns {Promise<Proof>}
|
|
210
208
|
*/
|
|
211
|
-
create({ name, tags, dueDate, messageToReviewers, workflow, workflowTemplate, proofTemplate, checklist, file, group, previousProof, team, reference, customTools, integrationReferences, reminders, owners, canDownload, isPublic, start, commentVisibility, priority, isDigitalVerificationEnabled, scheduledDate,
|
|
209
|
+
create({ name, tags, dueDate, messageToReviewers, workflow, workflowTemplate, proofTemplate, checklist, file, group, previousProof, team, reference, customTools, integrationReferences, reminders, owners, canDownload, isPublic, start, commentVisibility, priority, isDigitalVerificationEnabled, scheduledDate, }: {
|
|
212
210
|
name: string;
|
|
213
211
|
tags?: string[];
|
|
214
212
|
dueDate?: Date | string;
|
|
@@ -250,9 +248,6 @@ declare class Proofs extends API {
|
|
|
250
248
|
canDownload?: boolean;
|
|
251
249
|
start?: boolean;
|
|
252
250
|
commentVisibility?: string | null;
|
|
253
|
-
isDigitalVerificationEnabled?: boolean;
|
|
254
|
-
isProofInsightsEnabled?: boolean;
|
|
255
|
-
isProofInsightsCommentsEnabled?: boolean;
|
|
256
251
|
}): Promise<Proof>;
|
|
257
252
|
/**
|
|
258
253
|
* Manually archives a proof or proofs. This action hides the proof from all user's who have access to it, but can still be
|
|
@@ -272,29 +267,15 @@ declare class Proofs extends API {
|
|
|
272
267
|
*/
|
|
273
268
|
unarchive(proofId: string): Promise<any>;
|
|
274
269
|
/**
|
|
275
|
-
*
|
|
270
|
+
* Deletes a proof from PageProof (permanently).
|
|
276
271
|
*
|
|
277
|
-
* PageProof schedules the proof to be deleted, when calling this method, ensure that there has been a
|
|
272
|
+
* PageProof immediately schedules the proof to be deleted, when calling this method, ensure that there has been a
|
|
278
273
|
* decent amount of confirmation (either from the user), or however appropriate.
|
|
279
274
|
*
|
|
280
|
-
* @param {string} proofId The id of the proof to
|
|
275
|
+
* @param {string} proofId The id of the proof to delete
|
|
281
276
|
* @returns {Promise}
|
|
282
277
|
*/
|
|
283
278
|
delete(proofId: string): Promise<any>;
|
|
284
|
-
/**
|
|
285
|
-
* Recovers a proof that has been scheduled to be deleted from PageProof.
|
|
286
|
-
*
|
|
287
|
-
* @param {string} proofId The id of the proof to recover
|
|
288
|
-
* @returns {Promise}
|
|
289
|
-
*/
|
|
290
|
-
recoverFromBin(proofId: string): Promise<any>;
|
|
291
|
-
/**
|
|
292
|
-
* Permanently deletes a proof from PageProof.
|
|
293
|
-
*
|
|
294
|
-
* @param {string} proofId The id of the proof to permanently delete
|
|
295
|
-
* @returns {Promise}
|
|
296
|
-
*/
|
|
297
|
-
deleteFromBin(proofId: string): Promise<any>;
|
|
298
279
|
/**
|
|
299
280
|
* Leave a decision from reviewer/mandatory reviewer.
|
|
300
281
|
*
|
package/lib/api/Proofs.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 _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _ProofsOwners=require("./ProofsOwners");var _ProofsOwners2=_interopRequireDefault(_ProofsOwners);var _ProofsEditors=require("./ProofsEditors");var _ProofsEditors2=_interopRequireDefault(_ProofsEditors);var _ProofsReviewers=require("./ProofsReviewers");var _ProofsReviewers2=_interopRequireDefault(_ProofsReviewers);var _ProofsVersions=require("./ProofsVersions");var _ProofsVersions2=_interopRequireDefault(_ProofsVersions);var _ProofsGroups=require("./ProofsGroups");var _ProofsGroups2=_interopRequireDefault(_ProofsGroups);var _ProofsAudit=require("./ProofsAudit");var _ProofsAudit2=_interopRequireDefault(_ProofsAudit);var _ProofsAssets=require("./ProofsAssets");var _ProofsAssets2=_interopRequireDefault(_ProofsAssets);var _ProofsCustomTools=require("./ProofsCustomTools");var _ProofsCustomTools2=_interopRequireDefault(_ProofsCustomTools);var _ProofsIntegrationReferences=require("./ProofsIntegrationReferences");var _ProofsIntegrationReferences2=_interopRequireDefault(_ProofsIntegrationReferences);var _ProofsLinkCheck=require("./ProofsLinkCheck");var _ProofsLinkCheck2=_interopRequireDefault(_ProofsLinkCheck);var _ProofsDecisions=require("./ProofsDecisions");var _ProofsDecisions2=_interopRequireDefault(_ProofsDecisions);var _Proof=require("../models/Proof");var _Proof2=_interopRequireDefault(_Proof);var _Reminders=require("./Reminders");var _Reminders2=_interopRequireDefault(_Reminders);var _whatwgURL=require("../util/whatwgURL");var _whatwgURL2=_interopRequireDefault(_whatwgURL);var _constants=require("../util/constants");var _bluffer=require("../bluffer");var _bluffer2=_interopRequireDefault(_bluffer);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")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var VIDEO_URL_TOKEN_SEPARATOR="|";function transformProofsForUpdate(proofs){var proofsArrForUpdate=[].concat(proofs);proofsArrForUpdate.forEach(function(proof){proof.proofId=proof.id;delete proof.id});return proofsArrForUpdate}var Proofs=function(_API){_inherits(Proofs,_API);function Proofs(client){_classCallCheck(this,Proofs);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.owners=new _ProofsOwners2.default(client);_this.editors=new _ProofsEditors2.default(client);_this.reviewers=new _ProofsReviewers2.default(client);_this.versions=new _ProofsVersions2.default(client);_this.groups=new _ProofsGroups2.default(client);_this.reminders=new _Reminders2.default(client);_this.audit=new _ProofsAudit2.default(client);_this.assets=new _ProofsAssets2.default(client);_this.customTools=new _ProofsCustomTools2.default(client);_this.integrationReferences=new _ProofsIntegrationReferences2.default(client);_this.linkCheck=new _ProofsLinkCheck2.default(client);_this.decisions=new _ProofsDecisions2.default(client);return _this}Proofs.prototype.setWorkflow=function setWorkflow(proofId,workflowId){var _this2=this;return this.client.request("proofs.normalize-workflow",{proofId:proofId,workflowId:workflowId}).then(function(){return _this2.client.request("proofs.set-workflow",{proofId:proofId,workflowId:workflowId})})};Proofs.prototype.setTags=function setTags(proofId,tags){return this.client.request("proofs.set-tags",{relatedId:proofId,tag:tags.join(",")})};Proofs.prototype.deleteTag=function deleteTag(proofId,tag){return this.client.request("proofs.tag-delete",{relatedId:proofId,tag:tag})};Proofs.prototype.setFile=function setFile(proofId,fileId){var _this3=this;return this.client.request("proofs.set-file",{proofId:proofId,fileId:fileId}).then(function(){return _this3.client.request("proofs.distribute-file",{proofId:proofId})})};Proofs.prototype.create=function create(_ref){var _this4=this;var name=_ref.name,_ref$tags=_ref.tags,tags=_ref$tags===undefined?[]:_ref$tags,_ref$dueDate=_ref.dueDate,dueDate=_ref$dueDate===undefined?new Date(Date.now()+3*_constants.DAY_IN_MS):_ref$dueDate,messageToReviewers=_ref.messageToReviewers,workflow=_ref.workflow,workflowTemplate=_ref.workflowTemplate,proofTemplate=_ref.proofTemplate,checklist=_ref.checklist,file=_ref.file,group=_ref.group,previousProof=_ref.previousProof,team=_ref.team,reference=_ref.reference,customTools=_ref.customTools,integrationReferences=_ref.integrationReferences,_ref$reminders=_ref.reminders,reminders=_ref$reminders===undefined?[]:_ref$reminders,owners=_ref.owners,canDownload=_ref.canDownload,isPublic=_ref.isPublic,_ref$start=_ref.start,start=_ref$start===undefined?true:_ref$start,_ref$commentVisibilit=_ref.commentVisibility,commentVisibility=_ref$commentVisibilit===undefined?null:_ref$commentVisibilit,priority=_ref.priority,isDigitalVerificationEnabled=_ref.isDigitalVerificationEnabled,_ref$scheduledDate=_ref.scheduledDate,scheduledDate=_ref$scheduledDate===undefined?null:_ref$scheduledDate,isProofInsightsEnabled=_ref.isProofInsightsEnabled,isProofInsightsCommentsEnabled=_ref.isProofInsightsCommentsEnabled;return this.client.request("proofs.create",{proof:{name:name,tags:tags,dueDate:dueDate.toISOString?dueDate.toISOString():String(dueDate),messageToReviewers:messageToReviewers,workflowId:workflow&&workflow.id||undefined,workflowTemplateId:workflowTemplate&&workflowTemplate.id||undefined,proofTemplateId:proofTemplate&&proofTemplate.id||undefined,checklist:checklist,fileId:file&&file.id||undefined,groupId:group&&group.id||undefined,previousProofId:previousProof&&previousProof.id||undefined,teamSlug:team&&team.slug||undefined,reference:reference,integrationReferences:integrationReferences,reminders:[].concat(reminders),owners:owners,canDownload:canDownload,isPublic:isPublic,start:start,commentVisibility:commentVisibility,priority:priority,scheduledDate:scheduledDate&&scheduledDate.toISOString?scheduledDate.toISOString():null,isDigitalVerificationEnabled:isDigitalVerificationEnabled,isProofInsightsEnabled:isProofInsightsEnabled,isProofInsightsCommentsEnabled:isProofInsightsCommentsEnabled}}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);proof.calculateState();if(customTools&&!previousProof){return _this4.customTools.update(proof.id,customTools).then(function(){return proof})}return proof})};Proofs.prototype.archive=function archive(proofIdOrIds){return this.client.request("proofs.archive",{proofIds:proofIdOrIds})};Proofs.prototype.unarchive=function unarchive(proofId){return this.client.request("proofs.unarchive",{proofId:proofId})};Proofs.prototype.delete=function _delete(proofId){return this.client.request("proofs.delete",{proofId:proofId})};Proofs.prototype.recoverFromBin=function recoverFromBin(proofId){return this.client.request("proofs.delete.recover",{proofId:proofId})};Proofs.prototype.deleteFromBin=function deleteFromBin(proofId){return this.client.request("proofs.delete.permanently",{proofId:proofId})};Proofs.prototype.finish=function finish(proofId,decision){return this.client.request("proofs.finish",{proofId:proofId,decision:decision})};Proofs.prototype.approve=function approve(proofId,message){return this.client.request("proofs.manual-approval",{proofId:proofId,message:message})};Proofs.prototype.withdrawApproval=function withdrawApproval(proofId,messageToSender){return this.client.request("proofs.withdraw-approval",{proofId:proofId,messageToSender:messageToSender})};Proofs.prototype.generateEmail=function generateEmail(proofId){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.client.request("email.proofs.generate",_extends({proofId:proofId},options)).then(function(response){return response.data})};Proofs.prototype.return=function _return(proofIdOrIds){return this.client.request("proofs.return",{proofIds:[].concat(proofIdOrIds)}).then(function(response){return{proofIds:response.data.ProofIds,errors:response.data.Errors.map(function(error){return{proofId:error.ProofId,errorCode:error.ErrorCode,errorMessage:error.ErrorMessage}})}})};Proofs.prototype.start=function start(proofId){return this.client.request("proofs.start",{proofId:proofId})};Proofs.prototype.removeEditor=function removeEditor(id){return this.client.request("proofs.remove-editor",{proofId:id})};Proofs.prototype.load=function load(proofId){return this.client.request("proofs.load",{proofId:proofId}).then(function(response){return(new _Proof2.default).fromProof(response.data)})};Proofs.prototype.lock=function lock(proofId){return this.client.request("proofs.lock",{proofId:proofId})};Proofs.prototype.unlock=function unlock(proofId){return this.client.request("proofs.unlock",{proofId:proofId})};Proofs.prototype.requestUnlock=function requestUnlock(proofId){return this.client.request("proofs.request-unlock",{proofId:proofId})};Proofs.prototype.requestAccess=function requestAccess(proofId){return this.client.request("proofs.request-access",{proofId:proofId})};Proofs.prototype.images=function images(proofId){return this.client.request("proofs.images",{proofId:proofId}).then(function(response){return response.data.proof.file})};Proofs.prototype.videoCredentials=function videoCredentials(proofId){var _this5=this;return this.client.cache.auto(_constants.VIDEO_CREDENTIALS_CACHE_PREFIX+proofId,function(){return _this5._videoCredentials(proofId)})};Proofs.prototype._videoCredentials=function _videoCredentials(proofId){var _this6=this;var bluffer=new _bluffer2.default;return this.client.request("proofs.video-credentials",{proofId:proofId}).then(function(response){return Promise.all([response.data.envelope.envelope,_this6.client.rawRequest({method:"GET",url:new _whatwgURL2.default(response.data.videoCredentials.url)}).then(function(videoCredentialsResponse){return videoCredentialsResponse.body})])}).then(function(_ref2){var envelope=_ref2[0],videoCredentials$=_ref2[1];return _this6.client.crypto().decryptImage(envelope+"-"+videoCredentials$,_this6.client.keyPairs.getPrivateKeyPEMs())}).then(function(videoCredentialsBase64){return bluffer.createBase64(videoCredentialsBase64).then(function(buffer){return bluffer.read(buffer)})}).then(function(videoCredentials){try{return JSON.parse(videoCredentials)}catch(err){var _videoCredentials$spl=videoCredentials.split(VIDEO_URL_TOKEN_SEPARATOR),unsafeBaseStreamingUrl=_videoCredentials$spl[0],accessToken=_videoCredentials$spl[1];return{streamingUrl:unsafeBaseStreamingUrl.replace("http://","https://")+"/manifest(format=m3u8-aapl,encryption=cbc)",accessToken:accessToken,manifestUrl:unsafeBaseStreamingUrl.replace("http://","https://")+"/manifest",bearerToken:accessToken}}})};Proofs.prototype._getProofSetup=function _getProofSetup(integrationKey,id){return this.client.request("integrations.get-proof-setup",{integration_key:integrationKey,id:id}).then(function(response){return{payload:response.data.payload}})};Proofs.prototype.setMessageToReviewers=function setMessageToReviewers(proofIdOrIds,messageToReviewers){return this.client.request("proofs.set-message-to-reviewers",{proofIds:[].concat(proofIdOrIds),messageToReviewers:messageToReviewers})};Proofs.prototype.returnTodos=function returnTodos(proofIdOrIds,_ref3){var messageToOwners=_ref3.messageToOwners,_ref3$markCommentsAsT=_ref3.markCommentsAsTodo,markCommentsAsTodo=_ref3$markCommentsAsT===undefined?false:_ref3$markCommentsAsT;return this.client.request("proofs.return-todos",{proofIds:[].concat(proofIdOrIds),messageToOwners:messageToOwners,markCommentAsTodo:markCommentsAsTodo})};Proofs.prototype.updateDecision=function updateDecision(proofId,decision){return this.client.request("proofs.update-decision",{proofId:proofId,decision:decision})};Proofs.prototype.update=function update(proofOrProofs){if(proofOrProofs.length===1||typeof proofOrProofs.length==="undefined"){var _concat$=[].concat(proofOrProofs)[0],id=_concat$.id,name=_concat$.name,tags=_concat$.tags,dueDate=_concat$.dueDate,messageToReviewers=_concat$.messageToReviewers,workflow=_concat$.workflow,checklist=_concat$.checklist,group=_concat$.group,proofTemplate=_concat$.proofTemplate,file=_concat$.file,reference=_concat$.reference,integrationReferences=_concat$.integrationReferences,reminders=_concat$.reminders,owners=_concat$.owners,canDownload=_concat$.canDownload,isPublic=_concat$.isPublic,start=_concat$.start,commentVisibility=_concat$.commentVisibility,priority=_concat$.priority,scheduledDate=_concat$.scheduledDate,isDigitalVerificationEnabled=_concat$.isDigitalVerificationEnabled,isProofInsightsEnabled=_concat$.isProofInsightsEnabled,isProofInsightsCommentsEnabled=_concat$.isProofInsightsCommentsEnabled;return this.client.request("proofs.update",{proof:{id:id,name:name,tags:tags,dueDate:dueDate?dueDate.toISOString():undefined,messageToReviewers:messageToReviewers,workflowId:workflow&&workflow.id||undefined,proofTemplateId:proofTemplate&&proofTemplate.id||undefined,checklist:checklist,fileId:file&&file.id||undefined,groupId:group&&group.id||undefined,reference:reference,integrationReferences:integrationReferences,reminders:reminders?[].concat(reminders):undefined,owners:owners,canDownload:canDownload,isPublic:isPublic,start:start,commentVisibility:commentVisibility,priority:priority,scheduledDate:scheduledDate&&scheduledDate.toISOString?scheduledDate.toISOString():scheduledDate,isDigitalVerificationEnabled:isDigitalVerificationEnabled,isProofInsightsEnabled:isProofInsightsEnabled,isProofInsightsCommentsEnabled:isProofInsightsCommentsEnabled}}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);proof.calculateState();return proof})}return this.client.request("proofs.bulk-update",{proofs:transformProofsForUpdate(proofOrProofs)})};Proofs.prototype.next=function next(proofId){return this.client.request("proofs.next",{proofId:proofId}).then(function(response){return(new _Proof2.default).fromProof(response.data)})};Proofs.prototype.addWorkflow=function addWorkflow(proofIdOrIds,workflowTemplateId){return this.client.request("proofs-workflow.add-bulk",{proofIds:[].concat(proofIdOrIds),workflowTemplateId:workflowTemplateId})};Proofs.prototype.sendShareLink=function sendShareLink(_ref4){var proofId=_ref4.proofId,message=_ref4.message,emailAddresses=_ref4.emailAddresses;return this.client.request("proofs.send-share-link",{proofId:proofId,message:message,emailAddresses:emailAddresses})};Proofs.prototype.getWorkflowMetrics=function getWorkflowMetrics(proofId){return this.client.request("proofs.get-workflow-metrics",{proofId:proofId}).then(function(response){if(response.data){return response.data.workflowMetrics}return null})};return Proofs}(_API3.default);exports.default=Proofs;
|
|
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 _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _ProofsOwners=require("./ProofsOwners");var _ProofsOwners2=_interopRequireDefault(_ProofsOwners);var _ProofsEditors=require("./ProofsEditors");var _ProofsEditors2=_interopRequireDefault(_ProofsEditors);var _ProofsReviewers=require("./ProofsReviewers");var _ProofsReviewers2=_interopRequireDefault(_ProofsReviewers);var _ProofsVersions=require("./ProofsVersions");var _ProofsVersions2=_interopRequireDefault(_ProofsVersions);var _ProofsGroups=require("./ProofsGroups");var _ProofsGroups2=_interopRequireDefault(_ProofsGroups);var _ProofsAudit=require("./ProofsAudit");var _ProofsAudit2=_interopRequireDefault(_ProofsAudit);var _ProofsAssets=require("./ProofsAssets");var _ProofsAssets2=_interopRequireDefault(_ProofsAssets);var _ProofsCustomTools=require("./ProofsCustomTools");var _ProofsCustomTools2=_interopRequireDefault(_ProofsCustomTools);var _ProofsIntegrationReferences=require("./ProofsIntegrationReferences");var _ProofsIntegrationReferences2=_interopRequireDefault(_ProofsIntegrationReferences);var _ProofsLinkCheck=require("./ProofsLinkCheck");var _ProofsLinkCheck2=_interopRequireDefault(_ProofsLinkCheck);var _ProofsDecisions=require("./ProofsDecisions");var _ProofsDecisions2=_interopRequireDefault(_ProofsDecisions);var _Proof=require("../models/Proof");var _Proof2=_interopRequireDefault(_Proof);var _Reminders=require("./Reminders");var _Reminders2=_interopRequireDefault(_Reminders);var _whatwgURL=require("../util/whatwgURL");var _whatwgURL2=_interopRequireDefault(_whatwgURL);var _constants=require("../util/constants");var _bluffer=require("../bluffer");var _bluffer2=_interopRequireDefault(_bluffer);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")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var VIDEO_URL_TOKEN_SEPARATOR="|";function transformProofsForUpdate(proofs){var proofsArrForUpdate=[].concat(proofs);proofsArrForUpdate.forEach(function(proof){proof.proofId=proof.id;delete proof.id});return proofsArrForUpdate}var Proofs=function(_API){_inherits(Proofs,_API);function Proofs(client){_classCallCheck(this,Proofs);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.owners=new _ProofsOwners2.default(client);_this.editors=new _ProofsEditors2.default(client);_this.reviewers=new _ProofsReviewers2.default(client);_this.versions=new _ProofsVersions2.default(client);_this.groups=new _ProofsGroups2.default(client);_this.reminders=new _Reminders2.default(client);_this.audit=new _ProofsAudit2.default(client);_this.assets=new _ProofsAssets2.default(client);_this.customTools=new _ProofsCustomTools2.default(client);_this.integrationReferences=new _ProofsIntegrationReferences2.default(client);_this.linkCheck=new _ProofsLinkCheck2.default(client);_this.decisions=new _ProofsDecisions2.default(client);return _this}Proofs.prototype.setWorkflow=function setWorkflow(proofId,workflowId){var _this2=this;return this.client.request("proofs.normalize-workflow",{proofId:proofId,workflowId:workflowId}).then(function(){return _this2.client.request("proofs.set-workflow",{proofId:proofId,workflowId:workflowId})})};Proofs.prototype.setTags=function setTags(proofId,tags){return this.client.request("proofs.set-tags",{relatedId:proofId,tag:tags.join(",")})};Proofs.prototype.deleteTag=function deleteTag(proofId,tag){return this.client.request("proofs.tag-delete",{relatedId:proofId,tag:tag})};Proofs.prototype.setFile=function setFile(proofId,fileId){var _this3=this;return this.client.request("proofs.set-file",{proofId:proofId,fileId:fileId}).then(function(){return _this3.client.request("proofs.distribute-file",{proofId:proofId})})};Proofs.prototype.create=function create(_ref){var _this4=this;var name=_ref.name,_ref$tags=_ref.tags,tags=_ref$tags===undefined?[]:_ref$tags,_ref$dueDate=_ref.dueDate,dueDate=_ref$dueDate===undefined?new Date(Date.now()+3*_constants.DAY_IN_MS):_ref$dueDate,messageToReviewers=_ref.messageToReviewers,workflow=_ref.workflow,workflowTemplate=_ref.workflowTemplate,proofTemplate=_ref.proofTemplate,checklist=_ref.checklist,file=_ref.file,group=_ref.group,previousProof=_ref.previousProof,team=_ref.team,reference=_ref.reference,customTools=_ref.customTools,integrationReferences=_ref.integrationReferences,_ref$reminders=_ref.reminders,reminders=_ref$reminders===undefined?[]:_ref$reminders,owners=_ref.owners,canDownload=_ref.canDownload,isPublic=_ref.isPublic,_ref$start=_ref.start,start=_ref$start===undefined?true:_ref$start,_ref$commentVisibilit=_ref.commentVisibility,commentVisibility=_ref$commentVisibilit===undefined?null:_ref$commentVisibilit,priority=_ref.priority,isDigitalVerificationEnabled=_ref.isDigitalVerificationEnabled,_ref$scheduledDate=_ref.scheduledDate,scheduledDate=_ref$scheduledDate===undefined?null:_ref$scheduledDate;return this.client.request("proofs.create",{proof:{name:name,tags:tags,dueDate:dueDate.toISOString?dueDate.toISOString():String(dueDate),messageToReviewers:messageToReviewers,workflowId:workflow&&workflow.id||undefined,workflowTemplateId:workflowTemplate&&workflowTemplate.id||undefined,proofTemplateId:proofTemplate&&proofTemplate.id||undefined,checklist:checklist,fileId:file&&file.id||undefined,groupId:group&&group.id||undefined,previousProofId:previousProof&&previousProof.id||undefined,teamSlug:team&&team.slug||undefined,reference:reference,integrationReferences:integrationReferences,reminders:[].concat(reminders),owners:owners,canDownload:canDownload,isPublic:isPublic,start:start,commentVisibility:commentVisibility,priority:priority,scheduledDate:scheduledDate&&scheduledDate.toISOString?scheduledDate.toISOString():null,isDigitalVerificationEnabled:isDigitalVerificationEnabled}}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);proof.calculateState();if(customTools&&!previousProof){return _this4.customTools.update(proof.id,customTools).then(function(){return proof})}return proof})};Proofs.prototype.archive=function archive(proofIdOrIds){return this.client.request("proofs.archive",{proofIds:proofIdOrIds})};Proofs.prototype.unarchive=function unarchive(proofId){return this.client.request("proofs.unarchive",{proofId:proofId})};Proofs.prototype.delete=function _delete(proofId){return this.client.request("proofs.delete",{proofId:proofId})};Proofs.prototype.finish=function finish(proofId,decision){return this.client.request("proofs.finish",{proofId:proofId,decision:decision})};Proofs.prototype.approve=function approve(proofId,message){return this.client.request("proofs.manual-approval",{proofId:proofId,message:message})};Proofs.prototype.withdrawApproval=function withdrawApproval(proofId,messageToSender){return this.client.request("proofs.withdraw-approval",{proofId:proofId,messageToSender:messageToSender})};Proofs.prototype.generateEmail=function generateEmail(proofId){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.client.request("email.proofs.generate",_extends({proofId:proofId},options)).then(function(response){return response.data})};Proofs.prototype.return=function _return(proofIdOrIds){return this.client.request("proofs.return",{proofIds:[].concat(proofIdOrIds)}).then(function(response){return{proofIds:response.data.ProofIds,errors:response.data.Errors.map(function(error){return{proofId:error.ProofId,errorCode:error.ErrorCode,errorMessage:error.ErrorMessage}})}})};Proofs.prototype.start=function start(proofId){return this.client.request("proofs.start",{proofId:proofId})};Proofs.prototype.removeEditor=function removeEditor(id){return this.client.request("proofs.remove-editor",{proofId:id})};Proofs.prototype.load=function load(proofId){return this.client.request("proofs.load",{proofId:proofId}).then(function(response){return(new _Proof2.default).fromProof(response.data)})};Proofs.prototype.lock=function lock(proofId){return this.client.request("proofs.lock",{proofId:proofId})};Proofs.prototype.unlock=function unlock(proofId){return this.client.request("proofs.unlock",{proofId:proofId})};Proofs.prototype.requestUnlock=function requestUnlock(proofId){return this.client.request("proofs.request-unlock",{proofId:proofId})};Proofs.prototype.requestAccess=function requestAccess(proofId){return this.client.request("proofs.request-access",{proofId:proofId})};Proofs.prototype.images=function images(proofId){return this.client.request("proofs.images",{proofId:proofId}).then(function(response){return response.data.proof.file})};Proofs.prototype.videoCredentials=function videoCredentials(proofId){var _this5=this;return this.client.cache.auto(_constants.VIDEO_CREDENTIALS_CACHE_PREFIX+proofId,function(){return _this5._videoCredentials(proofId)})};Proofs.prototype._videoCredentials=function _videoCredentials(proofId){var _this6=this;var bluffer=new _bluffer2.default;return this.client.request("proofs.video-credentials",{proofId:proofId}).then(function(response){return Promise.all([response.data.envelope.envelope,_this6.client.rawRequest({method:"GET",url:new _whatwgURL2.default(response.data.videoCredentials.url)}).then(function(videoCredentialsResponse){return videoCredentialsResponse.body})])}).then(function(_ref2){var envelope=_ref2[0],videoCredentials$=_ref2[1];return _this6.client.crypto().decryptImage(envelope+"-"+videoCredentials$,_this6.client.keyPairs.getPrivateKeyPEMs())}).then(function(videoCredentialsBase64){return bluffer.createBase64(videoCredentialsBase64).then(function(buffer){return bluffer.read(buffer)})}).then(function(videoCredentials){try{return JSON.parse(videoCredentials)}catch(err){var _videoCredentials$spl=videoCredentials.split(VIDEO_URL_TOKEN_SEPARATOR),unsafeBaseStreamingUrl=_videoCredentials$spl[0],accessToken=_videoCredentials$spl[1];return{streamingUrl:unsafeBaseStreamingUrl.replace("http://","https://")+"/manifest(format=m3u8-aapl,encryption=cbc)",accessToken:accessToken,manifestUrl:unsafeBaseStreamingUrl.replace("http://","https://")+"/manifest",bearerToken:accessToken}}})};Proofs.prototype._getProofSetup=function _getProofSetup(integrationKey,id){return this.client.request("integrations.get-proof-setup",{integration_key:integrationKey,id:id}).then(function(response){return{payload:response.data.payload}})};Proofs.prototype.setMessageToReviewers=function setMessageToReviewers(proofIdOrIds,messageToReviewers){return this.client.request("proofs.set-message-to-reviewers",{proofIds:[].concat(proofIdOrIds),messageToReviewers:messageToReviewers})};Proofs.prototype.returnTodos=function returnTodos(proofIdOrIds,_ref3){var messageToOwners=_ref3.messageToOwners,_ref3$markCommentsAsT=_ref3.markCommentsAsTodo,markCommentsAsTodo=_ref3$markCommentsAsT===undefined?false:_ref3$markCommentsAsT;return this.client.request("proofs.return-todos",{proofIds:[].concat(proofIdOrIds),messageToOwners:messageToOwners,markCommentAsTodo:markCommentsAsTodo})};Proofs.prototype.updateDecision=function updateDecision(proofId,decision){return this.client.request("proofs.update-decision",{proofId:proofId,decision:decision})};Proofs.prototype.update=function update(proofOrProofs){if(proofOrProofs.length===1||typeof proofOrProofs.length==="undefined"){var _concat$=[].concat(proofOrProofs)[0],id=_concat$.id,name=_concat$.name,tags=_concat$.tags,dueDate=_concat$.dueDate,messageToReviewers=_concat$.messageToReviewers,workflow=_concat$.workflow,checklist=_concat$.checklist,group=_concat$.group,proofTemplate=_concat$.proofTemplate,file=_concat$.file,reference=_concat$.reference,integrationReferences=_concat$.integrationReferences,reminders=_concat$.reminders,owners=_concat$.owners,canDownload=_concat$.canDownload,isPublic=_concat$.isPublic,start=_concat$.start,commentVisibility=_concat$.commentVisibility,priority=_concat$.priority,scheduledDate=_concat$.scheduledDate,isDigitalVerificationEnabled=_concat$.isDigitalVerificationEnabled;return this.client.request("proofs.update",{proof:{id:id,name:name,tags:tags,dueDate:dueDate?dueDate.toISOString():undefined,messageToReviewers:messageToReviewers,workflowId:workflow&&workflow.id||undefined,proofTemplateId:proofTemplate&&proofTemplate.id||undefined,checklist:checklist,fileId:file&&file.id||undefined,groupId:group&&group.id||undefined,reference:reference,integrationReferences:integrationReferences,reminders:reminders?[].concat(reminders):undefined,owners:owners,canDownload:canDownload,isPublic:isPublic,start:start,commentVisibility:commentVisibility,priority:priority,scheduledDate:scheduledDate&&scheduledDate.toISOString?scheduledDate.toISOString():scheduledDate,isDigitalVerificationEnabled:isDigitalVerificationEnabled}}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);proof.calculateState();return proof})}return this.client.request("proofs.bulk-update",{proofs:transformProofsForUpdate(proofOrProofs)})};Proofs.prototype.next=function next(proofId){return this.client.request("proofs.next",{proofId:proofId}).then(function(response){return(new _Proof2.default).fromProof(response.data)})};Proofs.prototype.addWorkflow=function addWorkflow(proofIdOrIds,workflowTemplateId){return this.client.request("proofs-workflow.add-bulk",{proofIds:[].concat(proofIdOrIds),workflowTemplateId:workflowTemplateId})};Proofs.prototype.sendShareLink=function sendShareLink(_ref4){var proofId=_ref4.proofId,message=_ref4.message,emailAddresses=_ref4.emailAddresses;return this.client.request("proofs.send-share-link",{proofId:proofId,message:message,emailAddresses:emailAddresses})};Proofs.prototype.getWorkflowMetrics=function getWorkflowMetrics(proofId){return this.client.request("proofs.get-workflow-metrics",{proofId:proofId}).then(function(response){if(response.data){return response.data.workflowMetrics}return null})};return Proofs}(_API3.default);exports.default=Proofs;
|
|
@@ -166,22 +166,6 @@ declare class TeamDashboard extends API {
|
|
|
166
166
|
* @returns {Promise<TeamDashboardPagination>}
|
|
167
167
|
*/
|
|
168
168
|
archived(page: number, options?: number | object): Promise<TeamDashboardPagination>;
|
|
169
|
-
/**
|
|
170
|
-
* Loads all the scheduled-for-deletion proofs in the team.
|
|
171
|
-
* This tab is only available via Azure Search (Spider).
|
|
172
|
-
*
|
|
173
|
-
* @param {number} page The page number
|
|
174
|
-
* @param {number|object} [options] Optional page size (number) or options object
|
|
175
|
-
* @param {number} [options.pageSize] Optional page size (defaults to TEAM_DASHBOARD_PROOFS_PER_PAGE)
|
|
176
|
-
* @param {object} [options.sort] Optional sort options object
|
|
177
|
-
* @param {boolean} [options.excludeArchived] Whether to exclude archived proofs
|
|
178
|
-
* @param {object} [options.dateFilters] Optional date filters object
|
|
179
|
-
* @returns {Promise<{proofs: Array<Proof>, totalCount: number}>}
|
|
180
|
-
*/
|
|
181
|
-
scheduledDeletion(page: number, options?: number | object): Promise<{
|
|
182
|
-
proofs: Array<Proof>;
|
|
183
|
-
totalCount: number;
|
|
184
|
-
}>;
|
|
185
169
|
/**
|
|
186
170
|
* Searches all the proofs in the team.
|
|
187
171
|
*
|
|
@@ -334,25 +334,6 @@ var TeamDashboard = function (_API) {
|
|
|
334
334
|
return this.search(undefined, { status: _ProofStatus2.default.ARCHIVED, page: page, useAzureSearch: false });
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
/**
|
|
338
|
-
* Loads all the scheduled-for-deletion proofs in the team.
|
|
339
|
-
* This tab is only available via Azure Search (Spider).
|
|
340
|
-
*
|
|
341
|
-
* @param {number} page The page number
|
|
342
|
-
* @param {number|object} [options] Optional page size (number) or options object
|
|
343
|
-
* @param {number} [options.pageSize] Optional page size (defaults to TEAM_DASHBOARD_PROOFS_PER_PAGE)
|
|
344
|
-
* @param {object} [options.sort] Optional sort options object
|
|
345
|
-
* @param {boolean} [options.excludeArchived] Whether to exclude archived proofs
|
|
346
|
-
* @param {object} [options.dateFilters] Optional date filters object
|
|
347
|
-
* @returns {Promise<{proofs: Array<Proof>, totalCount: number}>}
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
TeamDashboard.prototype.scheduledDeletion = function scheduledDeletion(page, options) {
|
|
352
|
-
var parsedOptions = (0, _dashboardSearchShared.parseTabOptions)(options);
|
|
353
|
-
return this._loadSingleTeamTabProofsFromSpider('scheduledDeletion', _extends({ page: page }, parsedOptions));
|
|
354
|
-
};
|
|
355
|
-
|
|
356
337
|
/**
|
|
357
338
|
* Searches all the proofs in the team.
|
|
358
339
|
*
|
|
@@ -59,8 +59,6 @@ declare class TeamFeatures extends API {
|
|
|
59
59
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
60
60
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
61
61
|
* @param {boolean} options.intelligence.defaultIntelligenceInsightsInProofing The default setting for PI Insights in Proofing for the team.
|
|
62
|
-
* @param {boolean} options.intelligence.enableIntelligenceInsightsCommentsInProofing Whether PI Comments in Proofing is enabled for the team.
|
|
63
|
-
* @param {boolean} options.intelligence.defaultIntelligenceInsightsCommentsInProofing The default setting for PI Comments in Proofing for the team.
|
|
64
62
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsOnDashboard Whether PI Insights on Dashboard is licensed for the team.
|
|
65
63
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsOnDashboard Whether PI Insights on Dashboard is enabled for the team.
|
|
66
64
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInReports WhWhether PI Insights in Reports is licensed for the team.
|
|
@@ -68,7 +66,6 @@ declare class TeamFeatures extends API {
|
|
|
68
66
|
* @param {boolean} options.intelligence.enableSmartTags Whether Smart Tags is enabled for the team's proofs.
|
|
69
67
|
* @param {boolean} options.intelligence.enableSmartCheckCr Whether Smart Check: CR is enabled for the team's proofs.
|
|
70
68
|
* @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
|
|
71
|
-
* @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
|
|
72
69
|
* @returns {Promise}
|
|
73
70
|
*/
|
|
74
71
|
update({ emails, comments, proofs, workflows, addressBook, userGroups, webhooks, intelligence, general, }: {
|
|
@@ -97,8 +97,6 @@ var TeamFeatures = function (_API) {
|
|
|
97
97
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
98
98
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
99
99
|
* @param {boolean} options.intelligence.defaultIntelligenceInsightsInProofing The default setting for PI Insights in Proofing for the team.
|
|
100
|
-
* @param {boolean} options.intelligence.enableIntelligenceInsightsCommentsInProofing Whether PI Comments in Proofing is enabled for the team.
|
|
101
|
-
* @param {boolean} options.intelligence.defaultIntelligenceInsightsCommentsInProofing The default setting for PI Comments in Proofing for the team.
|
|
102
100
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsOnDashboard Whether PI Insights on Dashboard is licensed for the team.
|
|
103
101
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsOnDashboard Whether PI Insights on Dashboard is enabled for the team.
|
|
104
102
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInReports WhWhether PI Insights in Reports is licensed for the team.
|
|
@@ -106,7 +104,6 @@ var TeamFeatures = function (_API) {
|
|
|
106
104
|
* @param {boolean} options.intelligence.enableSmartTags Whether Smart Tags is enabled for the team's proofs.
|
|
107
105
|
* @param {boolean} options.intelligence.enableSmartCheckCr Whether Smart Check: CR is enabled for the team's proofs.
|
|
108
106
|
* @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
|
|
109
|
-
* @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
|
|
110
107
|
* @returns {Promise}
|
|
111
108
|
*/
|
|
112
109
|
|
|
@@ -153,8 +150,6 @@ var TeamFeatures = function (_API) {
|
|
|
153
150
|
var licenseIntelligenceInsightsInProofing = intelligence && intelligence.licenseIntelligenceInsightsInProofing;
|
|
154
151
|
var enableIntelligenceInsightsInProofing = intelligence && intelligence.enableIntelligenceInsightsInProofing;
|
|
155
152
|
var defaultIntelligenceInsightsInProofing = intelligence && intelligence.defaultIntelligenceInsightsInProofing;
|
|
156
|
-
var enableIntelligenceInsightsCommentsInProofing = intelligence && intelligence.enableIntelligenceInsightsCommentsInProofing;
|
|
157
|
-
var defaultIntelligenceInsightsCommentsInProofing = intelligence && intelligence.defaultIntelligenceInsightsCommentsInProofing;
|
|
158
153
|
var licenseIntelligenceInsightsOnDashboard = intelligence && intelligence.licenseIntelligenceInsightsOnDashboard;
|
|
159
154
|
var enableIntelligenceInsightsOnDashboard = intelligence && intelligence.enableIntelligenceInsightsOnDashboard;
|
|
160
155
|
var licenseIntelligenceInsightsInReports = intelligence && intelligence.licenseIntelligenceInsightsInReports;
|
|
@@ -166,7 +161,6 @@ var TeamFeatures = function (_API) {
|
|
|
166
161
|
var enableDigitalVerification = proofs && proofs.enableDigitalVerification;
|
|
167
162
|
var defaultDigitalVerification = proofs && proofs.defaultDigitalVerification;
|
|
168
163
|
var reauthentication = proofs && proofs.reauthentication;
|
|
169
|
-
var enableProofSoftDeletion = proofs && proofs.enableProofSoftDeletion;
|
|
170
164
|
return this.client.request('admin.team.features.update', {
|
|
171
165
|
displayComments: displayComments,
|
|
172
166
|
displayTeamName: displayTeamName,
|
|
@@ -196,8 +190,6 @@ var TeamFeatures = function (_API) {
|
|
|
196
190
|
licenseIntelligenceInsightsInProofing: licenseIntelligenceInsightsInProofing,
|
|
197
191
|
enableIntelligenceInsightsInProofing: enableIntelligenceInsightsInProofing,
|
|
198
192
|
defaultIntelligenceInsightsInProofing: defaultIntelligenceInsightsInProofing,
|
|
199
|
-
enableIntelligenceInsightsCommentsInProofing: enableIntelligenceInsightsCommentsInProofing,
|
|
200
|
-
defaultIntelligenceInsightsCommentsInProofing: defaultIntelligenceInsightsCommentsInProofing,
|
|
201
193
|
licenseIntelligenceInsightsOnDashboard: licenseIntelligenceInsightsOnDashboard,
|
|
202
194
|
enableIntelligenceInsightsOnDashboard: enableIntelligenceInsightsOnDashboard,
|
|
203
195
|
licenseIntelligenceInsightsInReports: licenseIntelligenceInsightsInReports,
|
|
@@ -211,8 +203,7 @@ var TeamFeatures = function (_API) {
|
|
|
211
203
|
licenseDigitalVerification: licenseDigitalVerification,
|
|
212
204
|
enableDigitalVerification: enableDigitalVerification,
|
|
213
205
|
defaultDigitalVerification: defaultDigitalVerification,
|
|
214
|
-
reauthentication: reauthentication
|
|
215
|
-
enableProofSoftDeletion: enableProofSoftDeletion
|
|
206
|
+
reauthentication: reauthentication
|
|
216
207
|
});
|
|
217
208
|
};
|
|
218
209
|
|
|
@@ -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 TeamAccountFeatureSchema={teamId:"Id",teamName:"Name",teamType:"Type",teamIsPlus:"IsPlus",teamIsTrial:"IsTrial"
|
|
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 TeamAccountFeatureSchema={teamId:"Id",teamName:"Name",teamType:"Type",teamIsPlus:"IsPlus",teamIsTrial:"IsTrial"};var TeamAccountFeatures=function(){function TeamAccountFeatures(){_classCallCheck(this,TeamAccountFeatures)}TeamAccountFeatures.prototype.fromTeamAccountFeatures=function fromTeamAccountFeatures(teamAccountFeaturesData){(0,_transform2.default)(this,TeamAccountFeatureSchema,teamAccountFeaturesData);return this};return TeamAccountFeatures}();exports.default=TeamAccountFeatures;
|
|
@@ -40,18 +40,6 @@ declare class TeamIntelligenceFeatures {
|
|
|
40
40
|
* @type {boolean}
|
|
41
41
|
*/
|
|
42
42
|
defaultIntelligenceInsightsInProofing: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Whether PI Comments in Proofing is enabled for the team.
|
|
45
|
-
*
|
|
46
|
-
* @type {boolean}
|
|
47
|
-
*/
|
|
48
|
-
enableIntelligenceInsightsCommentsInProofing: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The default setting for PI Comments in Proofing for the team.
|
|
51
|
-
*
|
|
52
|
-
* @type {boolean}
|
|
53
|
-
*/
|
|
54
|
-
defaultIntelligenceInsightsCommentsInProofing: boolean;
|
|
55
43
|
/**
|
|
56
44
|
* Whether PI Insights on Dashboard is licensed for the team.
|
|
57
45
|
*
|
|
@@ -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 TeamIntelligenceFeatureSchema={enableIntelligence:"EnableIntelligence",enableSmartTags:"EnableIntelligenceSmartTags",enableSmartCheckCr:"EnableIntelligenceSmartCheckCr",licenseIntelligenceInsightsInProofing:"LicenseIntelligenceInsightsInProofing",enableIntelligenceInsightsInProofing:"EnableIntelligenceInsightsInProofing",defaultIntelligenceInsightsInProofing:"DefaultIntelligenceInsightsInProofing",
|
|
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 TeamIntelligenceFeatureSchema={enableIntelligence:"EnableIntelligence",enableSmartTags:"EnableIntelligenceSmartTags",enableSmartCheckCr:"EnableIntelligenceSmartCheckCr",licenseIntelligenceInsightsInProofing:"LicenseIntelligenceInsightsInProofing",enableIntelligenceInsightsInProofing:"EnableIntelligenceInsightsInProofing",defaultIntelligenceInsightsInProofing:"DefaultIntelligenceInsightsInProofing",licenseIntelligenceInsightsOnDashboard:"LicenseIntelligenceInsightsOnDashboard",enableIntelligenceInsightsOnDashboard:"EnableIntelligenceInsightsOnDashboard",licenseIntelligenceInsightsInReports:"LicenseIntelligenceInsightsInReports",enableIntelligenceInsightsInReports:"EnableIntelligenceInsightsInReports"};var TeamIntelligenceFeatures=function(){function TeamIntelligenceFeatures(){_classCallCheck(this,TeamIntelligenceFeatures)}TeamIntelligenceFeatures.prototype.fromTeamIntelligenceFeatures=function fromTeamIntelligenceFeatures(teamIntelligenceFeaturesData){(0,_transform2.default)(this,TeamIntelligenceFeatureSchema,teamIntelligenceFeaturesData);return this};return TeamIntelligenceFeatures}();exports.default=TeamIntelligenceFeatures;
|
|
@@ -87,12 +87,6 @@ declare class TeamProofFeatures {
|
|
|
87
87
|
* @type {number}
|
|
88
88
|
*/
|
|
89
89
|
reauthentication: number;
|
|
90
|
-
/**
|
|
91
|
-
* Whether the scheduled deletion feature is enabled for the team.
|
|
92
|
-
*
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
*/
|
|
95
|
-
enableProofSoftDeletion: boolean;
|
|
96
90
|
/** @private */
|
|
97
91
|
private fromTeamProofFeatures;
|
|
98
92
|
}
|
|
@@ -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",defaultGifOutput:"DefaultGifOutput",enableProofMagicAccess:"EnableProofMagicAccess",licenseDigitalVerification:"LicenseDigitalVerification",enableDigitalVerification:"EnableDigitalVerification",defaultDigitalVerification:"DefaultDigitalVerification",reauthentication:"Reauthentication"
|
|
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",licenseDigitalVerification:"LicenseDigitalVerification",enableDigitalVerification:"EnableDigitalVerification",defaultDigitalVerification:"DefaultDigitalVerification",reauthentication:"Reauthentication"};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;
|
|
@@ -241,18 +241,6 @@
|
|
|
241
241
|
"chain": ["proofId"],
|
|
242
242
|
"trailing": true
|
|
243
243
|
},
|
|
244
|
-
"proofs.delete.recover": {
|
|
245
|
-
"method": "POST",
|
|
246
|
-
"path": "/api/proofs/delete/recover",
|
|
247
|
-
"chain": ["proofId"],
|
|
248
|
-
"trailing": true
|
|
249
|
-
},
|
|
250
|
-
"proofs.delete.permanently": {
|
|
251
|
-
"method": "POST",
|
|
252
|
-
"path": "/api/proofs/delete/permanently",
|
|
253
|
-
"chain": ["proofId"],
|
|
254
|
-
"trailing": true
|
|
255
|
-
},
|
|
256
244
|
"proofs.start": {
|
|
257
245
|
"method": "POST",
|
|
258
246
|
"path": "/api/proofs/startworkflow",
|
|
@@ -906,7 +894,7 @@
|
|
|
906
894
|
"version": 2,
|
|
907
895
|
"method": "POST",
|
|
908
896
|
"path": "/api/admin/settings",
|
|
909
|
-
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "
|
|
897
|
+
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "licenseIntelligenceInsightsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication"]
|
|
910
898
|
},
|
|
911
899
|
"admin.team.features.sender-email.set": {
|
|
912
900
|
"version": 2,
|