@pageproof/sdk-pr 337.0.1620963871768 → 337.0.1620967648650
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/Proofs.d.ts +2 -2
- package/lib/api/ProofsDecisions.d.ts +2 -2
- package/lib/api/ProofsDecisions.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/lib/types/Decision.d.ts +13 -0
- package/lib/types/Decision.js +1 -0
- package/lib/types/DecisionOptions.d.ts +13 -0
- package/lib/types/DecisionOptions.js +1 -0
- package/package.json +1 -1
package/lib/api/Proofs.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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<
|
|
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-
|
|
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"}).then(function(response){return{currentDecision:response.data.currentDecision,options:response.data.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;
|