@pageproof/sdk-pr 573.0.1733320330984 → 573.0.1734289837760

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.2.1
4
+
5
+ Released on the 16th of December 2024.
6
+
7
+ - [[PP-7712](https://pageproof.atlassian.net/browse/PP-7712)] Added support for description on a proof group (collection).
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  Released on the 28th of November 2024.
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _ProofGroup=require("../models/ProofGroup");var _ProofGroup2=_interopRequireDefault(_ProofGroup);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 transformGroups(groups){if(!Array.isArray(groups)){throw new TypeError("Expected an array of groups")}return(groups||[]).map(function(groupData){return(new _ProofGroup2.default).fromProofGroup(groupData)})}var DashboardGroups=function(_API){_inherits(DashboardGroups,_API);function DashboardGroups(){_classCallCheck(this,DashboardGroups);return _possibleConstructorReturn(this,_API.apply(this,arguments))}DashboardGroups.prototype._loadGroups=function _loadGroups(filterBy){return this.client.request("dashboard.groups.filter-by",{filterBy:filterBy}).then(function(response){if(!response||!response.data){throw new Error("Invalid response from server")}if(!Array.isArray(response.data)){throw new TypeError("Expected an array in response data")}return transformGroups(response.data)}).catch(function(error){console.error("Error loading groups:",error);throw error})};DashboardGroups.prototype.current=function current(){return this._loadGroups("current")};DashboardGroups.prototype.archived=function archived(){return this._loadGroups("archived")};return DashboardGroups}(_API3.default);exports.default=DashboardGroups;
1
+ "use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _ProofGroup=require("../models/ProofGroup");var _ProofGroup2=_interopRequireDefault(_ProofGroup);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 transformGroups(groups){return(groups||[]).map(function(groupData){return(new _ProofGroup2.default).fromProofGroup(groupData)})}var DashboardGroups=function(_API){_inherits(DashboardGroups,_API);function DashboardGroups(){_classCallCheck(this,DashboardGroups);return _possibleConstructorReturn(this,_API.apply(this,arguments))}DashboardGroups.prototype._loadGroups=function _loadGroups(filterBy){return this.client.request("dashboard.groups.filter-by",{filterBy:filterBy}).then(function(response){return transformGroups(response.data)})};DashboardGroups.prototype.current=function current(){return this._loadGroups("current")};DashboardGroups.prototype.archived=function archived(){return this._loadGroups("archived")};return DashboardGroups}(_API3.default);exports.default=DashboardGroups;
@@ -77,9 +77,9 @@ declare class ProofGroup {
77
77
  name: string;
78
78
  } | null;
79
79
  /**
80
- * The description of the checklist.
80
+ * The description of the proof group.
81
81
  *
82
- * @since v2.0.0-beta.293
82
+ * @since v2.2.1
83
83
  *
84
84
  * @type {string | null}
85
85
  */