@pageproof/sdk-pr 231.0.1586997564428 → 233.0.1587702164975

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-beta.121
4
+
5
+ Released on the 20th of April 2020.
6
+
7
+ - [[#229](https://github.com/PageProofCom/sdk/pull/229)] Support for adding multiple editors on different proofs. See [ProofsEditors.bulkAdd](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/ProofsEditors.js~ProofsEditors.html#instance-method-bulkAdd).
8
+
3
9
  ## 2.0.0-beta.120
4
10
 
5
11
  Released on the 16th of March 2020.
@@ -376,6 +376,17 @@ declare class Proofs extends API {
376
376
  * @returns {Promise}
377
377
  */
378
378
  returnTodos(proofIdOrIds: string, { messageToOwners, markCommentsAsTodo, }: any): Promise<any>;
379
+ /**
380
+ * Deletes a proof or proofs from PageProof (permanently), only if user is owner on all versions of proof /proofs.
381
+ * It will also delete all version of proofs if proof have more than one version.
382
+ *
383
+ * PageProof immediately schedules the proof/proofs to be deleted, when calling this method, ensure that there has been a
384
+ * decent amount of confirmation (either from the user), or however appropriate.
385
+ *
386
+ * @param {string|Array<string>} proofIdOrIds The id or ids of the proofs to delete
387
+ * @returns {Promise}
388
+ */
389
+ bulkDelete(proofIdOrIds: string | string[]): Promise<any>;
379
390
  }
380
391
  import API from "./API";
381
392
  import ProofsOwners from "./ProofsOwners";
package/lib/api/Proofs.js CHANGED
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;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 _Proof=require("../models/Proof");var _Proof2=_interopRequireDefault(_Proof);var _Reminders=require("./Reminders");var _Reminders2=_interopRequireDefault(_Reminders);var _FileStatus=require("../enum/FileStatus");var _FileStatus2=_interopRequireDefault(_FileStatus);var _constants=require("../util/constants");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 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);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,file=_ref.file,group=_ref.group,team=_ref.team,reference=_ref.reference,customTools=_ref.customTools,_ref$reminders=_ref.reminders,reminders=_ref$reminders===undefined?[]:_ref$reminders,_ref$start=_ref.start,start=_ref$start===undefined?true:_ref$start;var shouldStart=start&&!group;return this.client.request("proofs.create",{title:name,dueDate:dueDate.toISOString(),description:messageToReviewers,groupId:group?group.id:undefined,reference:reference,reminders:[].concat(reminders),teamSlug:team&&team.slug||undefined}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);return Promise.all([proof,tags.length&&_this4.setTags(proof.id,tags),workflow&&_this4.setWorkflow(proof.id,workflow.id),file&&_this4.setFile(proof.id,file.id),customTools&&_this4.customTools.update(proof.id,customTools)])}).then(function(_ref2){var proof=_ref2[0];return Promise.resolve(shouldStart&&_this4.start(proof.id)).then(function(){return proof})}).then(function(proof){if(workflow){proof.workflowId=workflow.id}if(file){proof.fileId=file.id;proof.fileStatus=_FileStatus2.default.UPLOADING}proof.calculateState();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.return=function _return(proofId){return this.client.request("proofs.return",{proofId:proofId})};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.setMessageToReviewers=function setMessageToReviewers(proofId,messageToReviewers){return this.client.request("proofs.set-reviewers-message",{proofId:proofId,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})};return Proofs}(_API3.default);exports.default=Proofs;
1
+ "use strict";exports.__esModule=true;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 _Proof=require("../models/Proof");var _Proof2=_interopRequireDefault(_Proof);var _Reminders=require("./Reminders");var _Reminders2=_interopRequireDefault(_Reminders);var _FileStatus=require("../enum/FileStatus");var _FileStatus2=_interopRequireDefault(_FileStatus);var _constants=require("../util/constants");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 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);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,file=_ref.file,group=_ref.group,team=_ref.team,reference=_ref.reference,customTools=_ref.customTools,_ref$reminders=_ref.reminders,reminders=_ref$reminders===undefined?[]:_ref$reminders,_ref$start=_ref.start,start=_ref$start===undefined?true:_ref$start;var shouldStart=start&&!group;return this.client.request("proofs.create",{title:name,dueDate:dueDate.toISOString(),description:messageToReviewers,groupId:group?group.id:undefined,reference:reference,reminders:[].concat(reminders),teamSlug:team&&team.slug||undefined}).then(function(response){var proof=(new _Proof2.default).fromProof(response.data);return Promise.all([proof,tags.length&&_this4.setTags(proof.id,tags),workflow&&_this4.setWorkflow(proof.id,workflow.id),file&&_this4.setFile(proof.id,file.id),customTools&&_this4.customTools.update(proof.id,customTools)])}).then(function(_ref2){var proof=_ref2[0];return Promise.resolve(shouldStart&&_this4.start(proof.id)).then(function(){return proof})}).then(function(proof){if(workflow){proof.workflowId=workflow.id}if(file){proof.fileId=file.id;proof.fileStatus=_FileStatus2.default.UPLOADING}proof.calculateState();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.return=function _return(proofId){return this.client.request("proofs.return",{proofId:proofId})};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.setMessageToReviewers=function setMessageToReviewers(proofId,messageToReviewers){return this.client.request("proofs.set-reviewers-message",{proofId:proofId,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.bulkDelete=function bulkDelete(proofIdOrIds){return this.client.request("proofs.bulk-delete",{proofIds:[].concat(proofIdOrIds)})};return Proofs}(_API3.default);exports.default=Proofs;
@@ -26,6 +26,43 @@ declare class ProofsEditors extends API {
26
26
  * @returns {Promise}
27
27
  */
28
28
  add(proofId: string, editorOrEditors: EditorUserDefinition | EditorUserDefinition[], editorMessage: string): Promise<any>;
29
+ /**
30
+ * Add a user (or users) as an editor/editors on a proof (or proofs).
31
+ *
32
+ * @example <caption>Adding an editor (by user id) on a proof with message for editor</caption>
33
+ * await client.proofs.editors.addBulk(
34
+ * {
35
+ * proofId: 'PXJHGJHJVHGHHGHJH',
36
+ * editors: [{id: 'ULVRHSLLP69ACHCT'}],
37
+ * messageToEditors: 'test msg'
38
+ * });
39
+ *
40
+ * @example <caption>Adding an editor (by user email) on a proof</caption>
41
+ * await client.proofs.editors.addBulk(
42
+ * {
43
+ * proofId: 'PXJHGJHJVHGHHGHJH',
44
+ * editors: [{email: 'new-editor@gmail.com'}],
45
+ * messageToEditors: 'test msg'
46
+ * });
47
+ *
48
+ * @example <caption>Adding multiple editor on multiple proofs (by user emails/ids)</caption>
49
+ * await client.proofs.editors.addBulk([
50
+ * {
51
+ * proofId: 'PXJHGJHJVHGHHGHJH',
52
+ * editors: [{id: 'ULVRHSLLP69ACHCT'}, {email: 'new-editor-y@gmail.com'}],
53
+ * messageToEditors: 'test msg for this proof 1'
54
+ * },
55
+ * {
56
+ * proofId: 'PXJHGJHJVHGHHGHJK',
57
+ * editors: [{id: 'ULVRHSLLP69ACHCU'}, {email: 'new-editor-x@gmail.com'}],
58
+ * messageToEditors: 'test msg for proof 2'
59
+ * }]);
60
+ *
61
+ * @since v2.0.0-beta.121
62
+ * @param {ProofsWithEditorsDefinition|Array<ProofsWithEditorsDefinition>} proofsWithEditors Object having the editor or editors to be add along with proofId
63
+ * @returns {Promise}
64
+ */
65
+ addBulk(proofsWithEditors: any): Promise<any>;
29
66
  /**
30
67
  * Removes an editor (or editors) from a proof.
31
68
  *
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);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 ProofsEditors=function(_API){_inherits(ProofsEditors,_API);function ProofsEditors(){_classCallCheck(this,ProofsEditors);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsEditors.prototype.add=function add(proofId,editorOrEditors,editorMessage){var data={proofId:proofId,editors:[].concat(editorOrEditors),editorMessage:editorMessage===null?"":editorMessage};return this.client.request("proofs.editors.add",data)};ProofsEditors.prototype.remove=function remove(proofId,editorOrEditors){return this.client.request("proofs.editors.remove",{proofId:proofId,editors:[].concat(editorOrEditors)})};ProofsEditors.prototype.replace=function replace(proofId,oldEditorOrEditors,newEditorOrEditors){return this.client.request("proofs.editors.replace",{proofId:proofId,oldEditors:[].concat(oldEditorOrEditors),newEditors:[].concat(newEditorOrEditors)})};ProofsEditors.prototype.set=function set(proofId,allNewEditorOrEditors){return this.client.request("proofs.editors.set",{proofId:proofId,editors:[].concat(allNewEditorOrEditors)})};return ProofsEditors}(_API3.default);exports.default=ProofsEditors;
1
+ "use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);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}function transformProofsWithEditors(proofsWithEditors){var proofsWithEditorsArr=[].concat(proofsWithEditors);proofsWithEditorsArr.forEach(function(proofWithEditors){proofWithEditors.editorMessage=proofWithEditors.messageToEditors;delete proofWithEditors.messageToEditors});return proofsWithEditorsArr}var ProofsEditors=function(_API){_inherits(ProofsEditors,_API);function ProofsEditors(){_classCallCheck(this,ProofsEditors);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsEditors.prototype.add=function add(proofId,editorOrEditors,editorMessage){var data={proofId:proofId,editors:[].concat(editorOrEditors),editorMessage:editorMessage===null?"":editorMessage};return this.client.request("proofs.editors.add",data)};ProofsEditors.prototype.addBulk=function addBulk(proofsWithEditors){return this.client.request("proofs.editors.add-bulk",{proofsWithEditors:transformProofsWithEditors(proofsWithEditors)})};ProofsEditors.prototype.remove=function remove(proofId,editorOrEditors){return this.client.request("proofs.editors.remove",{proofId:proofId,editors:[].concat(editorOrEditors)})};ProofsEditors.prototype.replace=function replace(proofId,oldEditorOrEditors,newEditorOrEditors){return this.client.request("proofs.editors.replace",{proofId:proofId,oldEditors:[].concat(oldEditorOrEditors),newEditors:[].concat(newEditorOrEditors)})};ProofsEditors.prototype.set=function set(proofId,allNewEditorOrEditors){return this.client.request("proofs.editors.set",{proofId:proofId,editors:[].concat(allNewEditorOrEditors)})};return ProofsEditors}(_API3.default);exports.default=ProofsEditors;
@@ -220,6 +220,12 @@
220
220
  "chain": ["proofId"],
221
221
  "trailing": true
222
222
  },
223
+ "proofs.bulk-delete": {
224
+ "version": 2,
225
+ "method": "POST",
226
+ "path": "/api/proofs/delete/bulk",
227
+ "body": ["proofIds"]
228
+ },
223
229
  "proofs.start": {
224
230
  "method": "POST",
225
231
  "path": "/api/proofs/startworkflow",
@@ -244,6 +250,12 @@
244
250
  "path": "/api/proofs/editor/add",
245
251
  "body": ["proofId", "editors", "editorMessage"]
246
252
  },
253
+ "proofs.editors.add-bulk": {
254
+ "version": 2,
255
+ "method": "POST",
256
+ "path": "/api/proofs/editor/add/bulk",
257
+ "body": ["proofsWithEditors"]
258
+ },
247
259
  "proofs.editors.remove": {
248
260
  "version": 2,
249
261
  "method": "POST",