@pageproof/sdk-pr 337.0.1620963871768 → 337.0.1620967450122

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.
@@ -269,7 +269,7 @@ declare class Proofs extends API {
269
269
  * @param {Decision} decision The decision made by user
270
270
  * @returns {Promise}
271
271
  */
272
- finish(proofId: string, decision: any): Promise<any>;
272
+ finish(proofId: string, decision: Decision): Promise<any>;
273
273
  /**
274
274
  * Approves the proof manually.
275
275
  *
@@ -448,7 +448,7 @@ declare class Proofs extends API {
448
448
  * @param {Decision} decision The new decision made by user
449
449
  * @returns {Promise}
450
450
  */
451
- updateDecision(proofId: string, decision: any): Promise<any>;
451
+ updateDecision(proofId: string, decision: Decision): Promise<any>;
452
452
  /**
453
453
  * Updates one or many proofs.
454
454
  *
@@ -9,9 +9,9 @@ declare class ProofsDecisions extends API {
9
9
  *
10
10
  * @private
11
11
  * @param {string} proofId The proof id
12
- * @returns {Promise}
12
+ * @returns {Promise<DecisionOptions>}
13
13
  */
14
- getOptions(proofId: string): Promise<any>;
14
+ getOptions(proofId: string): Promise<DecisionOptions>;
15
15
  /**
16
16
  * Leaving decision on a proof by a reviewer.
17
17
  * Currently used for unlisted reviewers.
@@ -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 ProofsDecisions=function(_API){_inherits(ProofsDecisions,_API);function ProofsDecisions(){_classCallCheck(this,ProofsDecisions);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsDecisions.prototype.getOptions=function getOptions(proofId){return this.client.request("proofs.decisions.get-options",{proofId:proofId,type:"options"})};ProofsDecisions.prototype.leaveDecision=function leaveDecision(proofId,decisionId){return this.client.request("proofs.decisions.leave-decisions",{proofId:proofId,decisionId:decisionId})};return ProofsDecisions}(_API3.default);exports.default=ProofsDecisions;
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 ProofsDecisions=function(_API){_inherits(ProofsDecisions,_API);function ProofsDecisions(){_classCallCheck(this,ProofsDecisions);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsDecisions.prototype.getOptions=function getOptions(proofId){return this.client.request("proofs.decisions.get-options",{proofId:proofId,type:"options"})};ProofsDecisions.prototype.leaveDecision=function leaveDecision(proofId,decisionId){return this.client.request("proofs.decisions.leave-decision",{proofId:proofId,decisionId:decisionId})};return ProofsDecisions}(_API3.default);exports.default=ProofsDecisions;
@@ -430,7 +430,7 @@
430
430
  "path": "/api/decisions/proofs",
431
431
  "chain": ["proofId", "type"]
432
432
  },
433
- "proofs.decisions.leave-decisions": {
433
+ "proofs.decisions.leave-decision": {
434
434
  "version": 2,
435
435
  "method": "POST",
436
436
  "path": "/api/decisions/proofs",