@pageproof/sdk-pr 462.0.1661389902030 → 463.0.1661734402621
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/README.md +4 -4
- package/lib/api/admin/TeamFeatures.d.ts +2 -0
- package/lib/api/admin/TeamFeatures.js +4 -1
- package/lib/models/TeamProofFeatures.d.ts +6 -0
- package/lib/models/TeamProofFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,18 +263,18 @@ Name | Supported Environment | Import Path | Supported
|
|
|
263
263
|
--- | --- | --- | ---
|
|
264
264
|
[WorkerThreadsCryptoAdapter](./class/src/adapters/WorkerThreadsCryptoAdapter.js~WorkerThreadsCryptoAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/WorkerThreadsCryptoAdapter.js` | ✔️
|
|
265
265
|
[NodeRequestAdapter](./class/src/adapters/NodeRequestAdapter.js~NodeRequestAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/NodeRequestAdapter.js` | ✔️
|
|
266
|
-
[SyncCryptoAdapter](./class/src/adapters/SyncCryptoAdapter.js~SyncCryptoAdapter.html) | Any | `@pageproof/sdk/lib/adapters/SyncCryptoAdapter.js` |
|
|
266
|
+
[SyncCryptoAdapter](./class/src/adapters/SyncCryptoAdapter.js~SyncCryptoAdapter.html) | Any | `@pageproof/sdk/lib/adapters/SyncCryptoAdapter.js` | \*
|
|
267
267
|
[WorkerCryptoAdapter](./class/src/adapters/WorkerCryptoAdapter.js~WorkerCryptoAdapter.html) | Browser | `@pageproof/sdk/lib/worker-crypto-adapter.js` | ✔️
|
|
268
268
|
[XHRRequestAdapter](./class/src/adapters/XHRRequestAdapter.js~XHRRequestAdapter.html) | Browser | `@pageproof/sdk/lib/xhr-request-adapter.js` | ✔️
|
|
269
269
|
[IndexedDBCacheAdapter](./class/src/adapters/IndexedDBCacheAdapter.js~IndexedDBCacheAdapter.html) | Browser | `@pageproof/sdk/lib/indexeddb-cache-adapter.js` | ✔️
|
|
270
270
|
[AngularEnhancementAdapter](./class/src/adapters/AngularEnhancementAdapter.js~AngularEnhancementAdapter.html) | Browser | `@pageproof/sdk/lib/angular-enhancement-adapter.js` |
|
|
271
271
|
[ProtobufAdapter](./class/src/adapters/ProtobufAdapter.js~ProtobufAdapter.html) | Browser | `@pageproof/sdk/lib/protobuf-adapter.js` |
|
|
272
272
|
[ProtobufAdapter](./class/src/adapters/ProtobufAdapter.js~ProtobufAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/ProtobufAdapter.js` |
|
|
273
|
-
[ClusterCryptoAdapter](./class/src/adapters/ClusterCryptoAdapter.js~ClusterCryptoAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/ClusterCryptoAdapter.js` | ✔️
|
|
273
|
+
[ClusterCryptoAdapter](./class/src/adapters/ClusterCryptoAdapter.js~ClusterCryptoAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/ClusterCryptoAdapter.js` | ✔️ \*\*
|
|
274
274
|
|
|
275
|
-
|
|
275
|
+
_\* The `SyncCryptoAdapter` should only be used if the environment you're running in does not support any of the other crypto adapters._
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
_\*\* The `ClusterCryptoAdapter` is not recommended. If you're already using the `ClusterCryptoAdapter`, we suggest swapping it out for `WorkerThreadsCryptoAdapter` as it uses less CPU, memory, and is 4x faster (on average) than `ClusterCryptoAdapter`. While it's still something we plan on supporting, it's not something we suggest using in new applications._
|
|
278
278
|
|
|
279
279
|
Also note, the browser adapters have a slightly different filename/path, this is because these files come pre-minified,
|
|
280
280
|
with UMD support (CommonJS, ES2015+ import/export, and `<script>`).
|
|
@@ -38,6 +38,7 @@ declare class TeamFeatures extends API {
|
|
|
38
38
|
* @param {boolean} options.proofs.defaultIsPublic The default value for whether a proof is public on the proof setup page.
|
|
39
39
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
40
40
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
41
|
+
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
41
42
|
* @returns {Promise}
|
|
42
43
|
*/
|
|
43
44
|
update({ emails, comments, proofs, }: {
|
|
@@ -60,6 +61,7 @@ declare class TeamFeatures extends API {
|
|
|
60
61
|
defaultIsPublic: boolean;
|
|
61
62
|
messageToOwners: boolean;
|
|
62
63
|
allowedDecisions: Decision[];
|
|
64
|
+
enableChecklists: boolean;
|
|
63
65
|
};
|
|
64
66
|
}): Promise<any>;
|
|
65
67
|
/**
|
|
@@ -76,6 +76,7 @@ var TeamFeatures = function (_API) {
|
|
|
76
76
|
* @param {boolean} options.proofs.defaultIsPublic The default value for whether a proof is public on the proof setup page.
|
|
77
77
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
78
78
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
79
|
+
* @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
|
|
79
80
|
* @returns {Promise}
|
|
80
81
|
*/
|
|
81
82
|
|
|
@@ -99,6 +100,7 @@ var TeamFeatures = function (_API) {
|
|
|
99
100
|
var defaultProofIsPublic = proofs && proofs.defaultIsPublic;
|
|
100
101
|
var messageToOwners = proofs && proofs.messageToOwners;
|
|
101
102
|
var allowedDecisions = proofs && proofs.allowedDecisions;
|
|
103
|
+
var enableChecklists = proofs && proofs.enableChecklists;
|
|
102
104
|
return this.client.request('admin.team.features.update', {
|
|
103
105
|
displayComments: displayComments,
|
|
104
106
|
displayTeamName: displayTeamName,
|
|
@@ -113,7 +115,8 @@ var TeamFeatures = function (_API) {
|
|
|
113
115
|
publicProofs: publicProofs,
|
|
114
116
|
defaultProofIsPublic: defaultProofIsPublic,
|
|
115
117
|
messageToOwners: messageToOwners,
|
|
116
|
-
allowedDecisions: allowedDecisions
|
|
118
|
+
allowedDecisions: allowedDecisions,
|
|
119
|
+
enableChecklists: enableChecklists
|
|
117
120
|
});
|
|
118
121
|
};
|
|
119
122
|
|
|
@@ -32,6 +32,12 @@ declare class TeamProofFeatures {
|
|
|
32
32
|
* @type {Array<Decision>}
|
|
33
33
|
*/
|
|
34
34
|
allowedDecisions: Array<Decision>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the checklists feature is enabled.
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
*/
|
|
40
|
+
enableChecklists: boolean;
|
|
35
41
|
/** @private */
|
|
36
42
|
fromTeamProofFeatures(teamProofFeaturesData: any): TeamProofFeatures;
|
|
37
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);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 TeamProofFeatureSchema={reference:"ProofReference",publicProofs:"PublicProofs",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);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 TeamProofFeatureSchema={reference:"ProofReference",publicProofs:"PublicProofs",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
"version": 2,
|
|
854
854
|
"method": "POST",
|
|
855
855
|
"path": "/api/admin/settings",
|
|
856
|
-
"body": ["displayComments", "generalComments", "editComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions"]
|
|
856
|
+
"body": ["displayComments", "generalComments", "editComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists"]
|
|
857
857
|
},
|
|
858
858
|
"admin.team.features.sender-email.set": {
|
|
859
859
|
"version": 2,
|