@pageproof/sdk-pr 242.0.1593480260535 → 243.0.1593384639449

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,16 +1,5 @@
1
1
  # Changelog
2
2
 
3
-
4
-
5
- ## 2.0.0-beta.125
6
-
7
- Released on 30th of June 2020.
8
-
9
- - The [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js~Printing.html) API's `options` method now also returns `content`, which is a list of acceptable [PrintingContentType](https://docs.pageproof.tech/@pageproof/sdk/beta/variable/index.html#static-variable-PrintingContentType) for printing a given proof. This should be used with when calling `create` in order to form a successful request.
10
- - [PrintingOption](https://docs.pageproof.tech/@pageproof/sdk/beta/typedef/index.html#static-typedef-PrintingOption) now includes the quantity of comments marked as to do and all comments in a new `counts` field.
11
- - [PrintingJobOptions](https://docs.pageproof.tech/@pageproof/sdk/beta/typedef/index.html#static-typedef-PrintingJobOptions) now includes a boolean, `includeAllPages` which, when true, also includes pages on static that do not have comments. This is only applicable when using the hero layout.
12
-
13
-
14
3
  ## 2.0.0-beta.124
15
4
 
16
5
  Released on the 25th of June 2020.
@@ -48,7 +37,7 @@ Released on the 16th of March 2020.
48
37
 
49
38
  Released on the 13th of March 2020.
50
39
 
51
- - [[#226](https://github.com/PageProofCom/sdk/pull/226)] Support for printing of proofs and the options available to do so. See [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js~Printing.html)
40
+ - [[#226](https://github.com/PageProofCom/sdk/pull/226)] Support for printing of proofs and the options available to do so. See [Printing](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Printing.js)
52
41
 
53
42
  ## 2.0.0-beta.118
54
43
 
@@ -0,0 +1,6 @@
1
+ export default PrintingCommentsType;
2
+ declare namespace PrintingCommentsType {
3
+ export const ALL: string;
4
+ export const TODOS: string;
5
+ export const NONE: string;
6
+ }
@@ -0,0 +1 @@
1
+ "use strict";exports.__esModule=true;var PrintingCommentsType={ALL:"all",TODOS:"todos",NONE:"none"};exports.default=PrintingCommentsType;
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _WorkflowUser=require("./WorkflowUser");var _WorkflowUser2=_interopRequireDefault(_WorkflowUser);var _WorkflowStepState=require("../enum/WorkflowStepState");var _WorkflowStepState2=_interopRequireDefault(_WorkflowStepState);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 workflowStepSchema={id:"StepId",name:"Title",position:(0,_transform.number)("Position"),state:function state(stepData){if(stepData.Complete){return _WorkflowStepState2.default.COMPLETE}else if(stepData.Visible){return _WorkflowStepState2.default.VISIBLE}else{return _WorkflowStepState2.default.NOT_VISIBLE}},users:(0,_transform.each)("Users",function(userData,stepData){var user=(new _WorkflowUser2.default).fromWorkflowUser(userData);user._calculateState(userData,stepData);return user})};var WorkflowStep=function(){function WorkflowStep(){_classCallCheck(this,WorkflowStep)}WorkflowStep.prototype.fromWorkflowStep=function fromWorkflowStep(workflowStepData){(0,_transform2.default)(this,workflowStepSchema,workflowStepData);return this};return WorkflowStep}();exports.default=WorkflowStep;
1
+ "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _WorkflowUser=require("./WorkflowUser");var _WorkflowUser2=_interopRequireDefault(_WorkflowUser);var _WorkflowStepState=require("../enum/WorkflowStepState");var _WorkflowStepState2=_interopRequireDefault(_WorkflowStepState);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 workflowStepSchema={id:"StepId",name:"Title",position:(0,_transform.number)("Position"),isVisible:(0,_transform.truthy)("Visible"),state:function state(stepData){if(stepData.Complete){return _WorkflowStepState2.default.COMPLETE}else if(stepData.Visible){return _WorkflowStepState2.default.VISIBLE}else{return _WorkflowStepState2.default.NOT_VISIBLE}},users:(0,_transform.each)("Users",function(userData,stepData){var user=(new _WorkflowUser2.default).fromWorkflowUser(userData);user._calculateState(userData,stepData);return user})};var WorkflowStep=function(){function WorkflowStep(){_classCallCheck(this,WorkflowStep)}WorkflowStep.prototype.fromWorkflowStep=function fromWorkflowStep(workflowStepData){(0,_transform2.default)(this,workflowStepSchema,workflowStepData);return this};return WorkflowStep}();exports.default=WorkflowStep;
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _User2=require("./User");var _User3=_interopRequireDefault(_User2);var _WorkflowUserState=require("../enum/WorkflowUserState");var _WorkflowUserState2=_interopRequireDefault(_WorkflowUserState);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 workflowUserSchema={id:"UserId",name:"Name",email:"Email",role:"Role",permissions:function permissions(userData){return{inviter:userData.IsInviter}}};var WorkflowUser=function(_User){_inherits(WorkflowUser,_User);function WorkflowUser(){_classCallCheck(this,WorkflowUser);return _possibleConstructorReturn(this,_User.apply(this,arguments))}WorkflowUser.prototype._calculateState=function _calculateState(userData,workflowStepData){if(userData.SkippedInStep){this.state=_WorkflowUserState2.default.SKIPPED}else if(userData.CompleteInStep){this.state=_WorkflowUserState2.default.FINISHED}else if(userData.ViewedInStep){this.state=_WorkflowUserState2.default.SEEN}else if(workflowStepData.Visible){this.state=_WorkflowUserState2.default.VISIBLE}else{this.state=_WorkflowUserState2.default.NOT_VISIBLE}};WorkflowUser.prototype.fromWorkflowUser=function fromWorkflowUser(workflowUserData){this._calculateState({},{});(0,_transform2.default)(this,workflowUserSchema,workflowUserData);return this};return WorkflowUser}(_User3.default);exports.default=WorkflowUser;
1
+ "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _User2=require("./User");var _User3=_interopRequireDefault(_User2);var _WorkflowUserState=require("../enum/WorkflowUserState");var _WorkflowUserState2=_interopRequireDefault(_WorkflowUserState);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 workflowUserSchema={id:"UserId",name:"Name",email:"Email",role:"Role",permissions:function permissions(userData){return{inviter:userData.IsInviter}},decision:"Decision"};var WorkflowUser=function(_User){_inherits(WorkflowUser,_User);function WorkflowUser(){_classCallCheck(this,WorkflowUser);return _possibleConstructorReturn(this,_User.apply(this,arguments))}WorkflowUser.prototype._calculateState=function _calculateState(userData,workflowStepData){if(userData.SkippedInStep){this.state=_WorkflowUserState2.default.SKIPPED}else if(userData.CompleteInStep){this.state=_WorkflowUserState2.default.FINISHED}else if(userData.ViewedInStep){this.state=_WorkflowUserState2.default.SEEN}else if(workflowStepData.Visible){this.state=_WorkflowUserState2.default.VISIBLE}else{this.state=_WorkflowUserState2.default.NOT_VISIBLE}};WorkflowUser.prototype.fromWorkflowUser=function fromWorkflowUser(workflowUserData){this._calculateState({},{});(0,_transform2.default)(this,workflowUserSchema,workflowUserData);return this};return WorkflowUser}(_User3.default);exports.default=WorkflowUser;