@pageproof/sdk-pr 442.0.1660871349399 → 442.0.1663213727878

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-beta.299
4
+
5
+ Released on the 14th of September 2022.
6
+
7
+ - [[PP-2541](https://goto.pageproof.dev/PP-2541)] Added support for setting whether checklist templates are available. See [TeamProofFeatures.enableChecklists](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamProofFeatures.js~TeamProofFeatures.html#instance-member-enableChecklists) and [TeamFeatures.update](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/admin/TeamFeatures.js~TeamFeatures.html#instance-method-update).
8
+
9
+ ## 2.0.0-beta.298
10
+
11
+ Released on the 25th of August 2022.
12
+
13
+ - [[PP-3723](https://goto.pageproof.dev/PP-3723)] Added a new crypto adapter for Node.js that makes use of `worker_threads`. See [WorkerThreadsCryptoAdapter](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/adapters/WorkerThreadsCryptoAdapter.js~WorkerThreadsCryptoAdapter.html).
14
+
3
15
  ## 2.0.0-beta.297
4
16
 
5
17
  Released on the 17th of August 2022.
package/README.md CHANGED
@@ -66,14 +66,14 @@ import XHRRequestAdapter from '@pageproof/sdk/lib/xhr-request-adapter';
66
66
  // ...
67
67
 
68
68
  new XHRRequestAdapter({
69
+ endpoint: 'https://api.pageproof.com',
69
70
  applicationId: '3uQkbQXsinffvnNHPlplx4Uw1sVeWEab',
70
- endpoint: 'https://managed-api.pageproof.com',
71
71
  key: '104882dfa7c44330811612ea100dc7e6',
72
72
  });
73
73
  ```
74
74
 
75
75
  As you can see, the adapter takes an `endpoint` and a `key`. For 3rd party developers & integrating PageProof into your
76
- own application, the endpoint is `https://managed-api.pageproof.com`, and the key is your application's subscription
76
+ own application, the endpoint is `https://api.pageproof.com`, and the key is your application's subscription
77
77
  key. In production, however, it's best to make your key an environment variable to make it easier to change it later.
78
78
 
79
79
  #### Example: Low powered devices
@@ -90,11 +90,13 @@ import XHRRequestAdapter from '@pageproof/sdk/lib/xhr-request-adapter';
90
90
  import WorkerCryptoAdapter from '@pageproof/sdk/lib/worker-crypto-adapter';
91
91
 
92
92
  const client = new PageProof({
93
+ options: {
94
+ endpoint: 'https://api.pageproof.com',
95
+ applicationId: '3uQkbQXsinffvnNHPlplx4Uw1sVeWEab',
96
+ subscriptionKey: '104882dfa7c44330811612ea100dc7e6',
97
+ },
93
98
  adapters: [
94
- new XHRRequestAdapter({
95
- endpoint: 'https://managed-api.pageproof.com',
96
- key: '104882dfa7c44330811612ea100dc7e6',
97
- }),
99
+ new XHRRequestAdapter(),
98
100
  new WorkerCryptoAdapter({
99
101
  url: 'https://example.com/dist/pageproof/sdk/lib',
100
102
  limit: 1,
@@ -128,12 +130,13 @@ import XHRRequestAdapter from '@pageproof/sdk/lib/xhr-request-adapter';
128
130
  import WorkerCryptoAdapter from '@pageproof/sdk/lib/worker-crypto-adapter';
129
131
 
130
132
  const client = new PageProof({
133
+ options: {
134
+ endpoint: 'https://api.pageproof.com',
135
+ applicationId: '3uQkbQXsinffvnNHPlplx4Uw1sVeWEab',
136
+ subscriptionKey: '104882dfa7c44330811612ea100dc7e6',
137
+ },
131
138
  adapters: [
132
- new XHRRequestAdapter({
133
- applicationId: '3uQkbQXsinffvnNHPlplx4Uw1sVeWEab',
134
- endpoint: 'https://managed-api.pageproof.com',
135
- key: '104882dfa7c44330811612ea100dc7e6',
136
- }),
139
+ new XHRRequestAdapter(),
137
140
  new WorkerCryptoAdapter({
138
141
  url: 'https://example.com/dist/@pageproof/sdk/lib',
139
142
  limit: navigator.hardwareConcurrency || 2,
@@ -256,21 +259,22 @@ request, but if we get enough demand for your JavaScript environment, it will be
256
259
 
257
260
  We have a number of adapters, some intended for use within browsers, and some for Node.js.
258
261
 
259
- Name | Filename | Supported Environment | Supported
262
+ Name | Supported Environment | Import Path | Supported
260
263
  --- | --- | --- | ---
261
- [ClusterCryptoAdapter](./class/src/adapters/ClusterCryptoAdapter.js~ClusterCryptoAdapter.html) | `@pageproof/sdk/lib/adapters/ClusterCryptoAdapter.js` | Node.js | Yes
262
- [NodeRequestAdapter](./class/src/adapters/NodeRequestAdapter.js~NodeRequestAdapter.html) | `@pageproof/sdk/lib/adapters/NodeRequestAdapter.js` | Node.js | Yes
263
- [SyncCryptoAdapter](./class/src/adapters/SyncCryptoAdapter.js~SyncCryptoAdapter.html) | `@pageproof/sdk/lib/adapters/SyncCryptoAdapter.js` | Any | No
264
- [WorkerCryptoAdapter](./class/src/adapters/WorkerCryptoAdapter.js~WorkerCryptoAdapter.html) | `@pageproof/sdk/lib/worker-crypto-adapter.js` | Browser | Yes
265
- [XHRRequestAdapter](./class/src/adapters/XHRRequestAdapter.js~XHRRequestAdapter.html) | `@pageproof/sdk/lib/xhr-request-adapter.js` | Browser | Yes
266
- [IndexedDBCacheAdapter](./class/src/adapters/IndexedDBCacheAdapter.js~IndexedDBCacheAdapter.html) | `@pageproof/sdk/lib/indexeddb-cache-adapter.js` | Browser | Yes
267
- [AngularEnhancementAdapter](./class/src/adapters/AngularEnhancementAdapter.js~AngularEnhancementAdapter.html) | `@pageproof/sdk/lib/angular-enhancement-adapter.js` | Browser | No (Experimental)
268
- [ProtobufAdapter](./class/src/adapters/ProtobufAdapter.js~ProtobufAdapter.html) | `@pageproof/sdk/lib/protobuf-adapter.js` | Browser | No (Experimental)
269
- [ProtobufAdapter](./class/src/adapters/ProtobufAdapter.js~ProtobufAdapter.html) | `@pageproof/sdk/lib/adapters/ProtobufAdapter.js` | Node.js | No (Experimental)
270
-
271
- The `SyncCryptoAdapter` is the only one we do not support, as it is a blocking adapter. You should *not* use this in
272
- production - it's only intended to be used within custom adapters you may write for a specific (officially unsupported)
273
- JavaScript environment.
264
+ [WorkerThreadsCryptoAdapter](./class/src/adapters/WorkerThreadsCryptoAdapter.js~WorkerThreadsCryptoAdapter.html) | Node.js | `@pageproof/sdk/lib/adapters/WorkerThreadsCryptoAdapter.js` | ✔️
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` | \*
267
+ [WorkerCryptoAdapter](./class/src/adapters/WorkerCryptoAdapter.js~WorkerCryptoAdapter.html) | Browser | `@pageproof/sdk/lib/worker-crypto-adapter.js` | ✔️
268
+ [XHRRequestAdapter](./class/src/adapters/XHRRequestAdapter.js~XHRRequestAdapter.html) | Browser | `@pageproof/sdk/lib/xhr-request-adapter.js` | ✔️
269
+ [IndexedDBCacheAdapter](./class/src/adapters/IndexedDBCacheAdapter.js~IndexedDBCacheAdapter.html) | Browser | `@pageproof/sdk/lib/indexeddb-cache-adapter.js` | ✔️
270
+ [AngularEnhancementAdapter](./class/src/adapters/AngularEnhancementAdapter.js~AngularEnhancementAdapter.html) | Browser | `@pageproof/sdk/lib/angular-enhancement-adapter.js` |
271
+ [ProtobufAdapter](./class/src/adapters/ProtobufAdapter.js~ProtobufAdapter.html) | Browser | `@pageproof/sdk/lib/protobuf-adapter.js` |
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` | ✔️ \*\*
274
+
275
+ _\* The `SyncCryptoAdapter` should only be used if the environment you're running in does not support any of the other crypto adapters._
276
+
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._
274
278
 
275
279
  Also note, the browser adapters have a slightly different filename/path, this is because these files come pre-minified,
276
280
  with UMD support (CommonJS, ES2015+ import/export, and `<script>`).
@@ -282,41 +286,41 @@ of our APIs are compartmentalized, to make it easier to find the API you're look
282
286
 
283
287
  These are the different APIs we currently support through the SDK.
284
288
 
285
- Name | Namespace | Description | Admin-only | Stability
286
- --- | --- | --- | --- | ---
287
- [Accounts API](./class/src/api/Accounts.js~Accounts.html) | `accounts` | Used to create accounts, activate and login. | No | Stable
288
- [Accounts SSO API](./class/src/api/AccountsSSO.js~AccountsSSO.html) | `accounts.sso` | Used to login using a SSO provider. | No | Experimental
289
- [Accounts MFA API](./class/src/api/AccountsMFA.js~AccountsMFA.html) | `accounts.mfa` | Used to activate, de-activate and enable user mfa login. | No | experimental
290
- [Comments API](./class/src/api/Comments.js~Comments.html) | `comments` | Used to load comments. | No | Stable
291
- [Dashboard API](./class/src/api/Dashboard.js~Dashboard.html) | `dashboard` | Used to load the authenticated user's dashboard & search for/filter proofs. | No | Stable
292
- [Dashboard Groups API](./class/src/api/DashboardGroups.js~DashboardGroups.html) | `dashboard.groups` | Used to load proof groups | No | Experimental
293
- [Encryption API](./class/src/api/Encryption.js~Encryption.html) | `encryption` | Used for generic crypto operations. | No | Experimental
294
- [Files API](./class/src/api/Files.js~Files.html) | `files` | Used to upload & manage files. | No | Stable
295
- [Preferences API](./class/src/api/Preferences.js~Preferences.html) | `preferences` | Manage your account preferences. | No | Experimental
296
- [Profile API](./class/src/api/Profile.js~Profile.html) | `profile` | Manage your account details. | No | Experimental
297
- [Proofs API](./class/src/api/Proofs.js~Proofs.html) | `proofs` | Used to create & manage proofs. | No | Stable
298
- [Proofs Groups API](./class/src/api/ProofsGroups.js~ProofsGroups.html) | `proofs.groups` | Used to manage groups of proofs. | No | Experimental
299
- [Proofs Owners API](./class/src/api/ProofsOwners.js~ProofsOwners.html) | `proofs.owners` | Used to add & remove owners from proofs. | No | Stable
300
- [Proofs Versions API](./class/src/api/ProofsVersions.js~ProofsVersions.html) | `proofs.versions` | Used to manage proof versions. | No | Stable
301
- [Sessions API](./class/src/api/Sessions.js~Sessions.html) | `sessions` | Used to manage account sessions. | No | Experimental
302
- [Users API](./class/src/api/Users.js~Users.html) | `users` | Used to invite and find users in the system. | No | Stable
303
- [Workflows API](./class/src/api/Workflows.js~Workflows.html) | `workflows` | Used to create & manage workflows and workflow templates. | No | Stable
304
- [Workflows Steps API](./class/src/api/WorkflowsSteps.js~WorkflowsSteps.html) | `workflows.steps` | Used to manage workflow steps in workflow templates. | No | Experimental
305
- [Admin Team Users API](./class/src/api/admin/TeamUsers.js~TeamUsers.html) | `admin.team.users` | Administer users in a team or enterprise account. | Yes | Experimental
306
- [Admin Team Dashboard API](./class/src/api/admin/TeamDashboard.js~TeamDashboard.html) | `admin.team.dashboard` | Used to load the authenticated user's team's dashboard & search for/filter proofs. | Yes | Experimental
307
- [Admin Team Features API](./class/src/api/admin/TeamFeatures.js~TeamFeatures.html) | `admin.team.features` | Administer features in a team or enterprise account. | Yes | Experimental
308
- [Proofs Editors API](./class/src/api/ProofsEditors.js~ProofsEditors.html) | `proofs.editors` | Used to add & remove editors from proofs. | No | Experimental
309
- [Proofs Groups Owners API](./class/src/api/GroupsOwners.js~GroupsOwners.html) | `proofs.groups.owners` | Used to add owners to proofs in a group. | No | Stable
310
- [Proofs Groups Workflows API](./class/src/api/GroupsWorkflows.js~GroupsWorkflows.html) | `proofs.groups.workflows` | Used to add reviewers to proofs in a group. | No | Stable
311
- [Proofs Reminders API](./class/src/api/Reminders.js~Reminders.html) | `proofs.reminders` | Manage reminders on proof. | No | Experimental
312
- [Proofs Audit API](./class/src/api/ProofsAudit.js~ProofsAudit.html) | `proofs.audit` | View audit reports/summary/timeline. | No | Experimental
313
- [Proofs Custom Tools API](./class/src/api/ProofsCustomTools.js~ProofsCustomTools.html) | `proofs.customTools` | Validate, update and retrieve proof custom tools. | No | Stable
314
- [Admin Reports API](./class/src/api/Reports.js~Reports.html) | `admin.reports` | Request reports to be emailed to you. | Yes | Stable
289
+ Name | Namespace | Description | Admin-only
290
+ --- | --- | --- | ---
291
+ [Accounts API](./class/src/api/Accounts.js~Accounts.html) | `accounts` | Used to create accounts, activate and login. |
292
+ [Accounts SSO API](./class/src/api/AccountsSSO.js~AccountsSSO.html) | `accounts.sso` | Used to login using a SSO provider. |
293
+ [Accounts MFA API](./class/src/api/AccountsMFA.js~AccountsMFA.html) | `accounts.mfa` | Used to activate, de-activate and enable user mfa login. |
294
+ [Comments API](./class/src/api/Comments.js~Comments.html) | `comments` | Used to load comments. |
295
+ [Dashboard API](./class/src/api/Dashboard.js~Dashboard.html) | `dashboard` | Used to load the authenticated user's dashboard & search for/filter proofs. |
296
+ [Dashboard Groups API](./class/src/api/DashboardGroups.js~DashboardGroups.html) | `dashboard.groups` | Used to load proof groups |
297
+ [Encryption API](./class/src/api/Encryption.js~Encryption.html) | `encryption` | Used for generic crypto operations. |
298
+ [Files API](./class/src/api/Files.js~Files.html) | `files` | Used to upload & manage files. |
299
+ [Preferences API](./class/src/api/Preferences.js~Preferences.html) | `preferences` | Manage your account preferences. |
300
+ [Profile API](./class/src/api/Profile.js~Profile.html) | `profile` | Manage your account details. |
301
+ [Proofs API](./class/src/api/Proofs.js~Proofs.html) | `proofs` | Used to create & manage proofs. |
302
+ [Proofs Groups API](./class/src/api/ProofsGroups.js~ProofsGroups.html) | `proofs.groups` | Used to manage groups of proofs. |
303
+ [Proofs Owners API](./class/src/api/ProofsOwners.js~ProofsOwners.html) | `proofs.owners` | Used to add & remove owners from proofs. |
304
+ [Proofs Versions API](./class/src/api/ProofsVersions.js~ProofsVersions.html) | `proofs.versions` | Used to manage proof versions. |
305
+ [Sessions API](./class/src/api/Sessions.js~Sessions.html) | `sessions` | Used to manage account sessions. |
306
+ [Users API](./class/src/api/Users.js~Users.html) | `users` | Used to invite and find users in the system. |
307
+ [Workflows API](./class/src/api/Workflows.js~Workflows.html) | `workflows` | Used to create & manage workflows and workflow templates. |
308
+ [Workflows Steps API](./class/src/api/WorkflowsSteps.js~WorkflowsSteps.html) | `workflows.steps` | Used to manage workflow steps in workflow templates. |
309
+ [Admin Team Users API](./class/src/api/admin/TeamUsers.js~TeamUsers.html) | `admin.team.users` | Administer users in a team or enterprise account. | ✔️
310
+ [Admin Team Dashboard API](./class/src/api/admin/TeamDashboard.js~TeamDashboard.html) | `admin.team.dashboard` | Used to load the authenticated user's team's dashboard & search for/filter proofs. | ✔️
311
+ [Admin Team Features API](./class/src/api/admin/TeamFeatures.js~TeamFeatures.html) | `admin.team.features` | Administer features in a team or enterprise account. | ✔️
312
+ [Proofs Editors API](./class/src/api/ProofsEditors.js~ProofsEditors.html) | `proofs.editors` | Used to add & remove editors from proofs. |
313
+ [Proofs Groups Owners API](./class/src/api/GroupsOwners.js~GroupsOwners.html) | `proofs.groups.owners` | Used to add owners to proofs in a group. |
314
+ [Proofs Groups Workflows API](./class/src/api/GroupsWorkflows.js~GroupsWorkflows.html) | `proofs.groups.workflows` | Used to add reviewers to proofs in a group. |
315
+ [Proofs Reminders API](./class/src/api/Reminders.js~Reminders.html) | `proofs.reminders` | Manage reminders on proof. |
316
+ [Proofs Audit API](./class/src/api/ProofsAudit.js~ProofsAudit.html) | `proofs.audit` | View audit reports/summary/timeline. |
317
+ [Proofs Custom Tools API](./class/src/api/ProofsCustomTools.js~ProofsCustomTools.html) | `proofs.customTools` | Validate, update and retrieve proof custom tools. |
318
+ [Admin Reports API](./class/src/api/Reports.js~Reports.html) | `admin.reports` | Request reports to be emailed to you. | ✔️
315
319
 
316
320
  The "admin-only" APIs are exposed through the
317
321
  [PageProof.admin](./class/src/core/PageProof.js~PageProof.html#instance-method-admin) method. These APIs are different
318
322
  because the SDK only allows access to this subset of APIs if the current user is an administrator of a team/enterprise
319
- account. Currently, all admin-only APIs are experimental.
323
+ account.
320
324
 
321
325
  To explain what the "namespace" is used for, take this example. You would like to find a user in PageProof with a
322
326
  particular email. That would mean using the "Users API", which has a namespace of `users`. So that would look like this;
@@ -378,15 +382,3 @@ refreshes, we need to remind the client what the current session is.
378
382
  Sharing the private keys with anybody, directly or even indirectly (over unencrypted traffic, for example), gives
379
383
  anybody the ability to access & decrypt all proofs you have access to, including those you have been invited to.
380
384
 
381
- ### SDK development
382
- Local development:
383
- 1. Node version <= 6
384
- ```sh
385
- $ npm install
386
- $ npm run dev
387
- ```
388
- 2. To test the SDK locally: switch to node version >=12, then
389
- ```sh
390
- $ cd examples
391
- $ node ./basic-node/index.js
392
- ```
@@ -0,0 +1,17 @@
1
+ export default WorkerThreadsCryptoAdapter;
2
+ declare class WorkerThreadsCryptoAdapter extends SchedulerCryptoAdapter {
3
+ /**
4
+ * @param {object} [options]
5
+ * @param {number|null|undefined} [options.limit] The maximum number of worker threads that can be created for this instance of the adapter (defaults to the same number of CPUs as the host machine, as reported by Node.js).
6
+ * @param {boolean} [options.optimistic] Whether to immediately create the maximum number of worker threads (reduces cold start times).
7
+ */
8
+ constructor(options?: {
9
+ limit?: number;
10
+ optimistic?: boolean;
11
+ });
12
+ options: {
13
+ limit?: number;
14
+ optimistic?: boolean;
15
+ };
16
+ }
17
+ import SchedulerCryptoAdapter from "./SchedulerCryptoAdapter";
@@ -0,0 +1 @@
1
+ "use strict";exports.__esModule=true;var _worker_threads=require("worker_threads");var _os=require("os");var _os2=_interopRequireDefault(_os);var _path=require("path");var _path2=_interopRequireDefault(_path);var _EventEmitter2=require("../events/EventEmitter");var _EventEmitter3=_interopRequireDefault(_EventEmitter2);var _SchedulerCryptoAdapter=require("./SchedulerCryptoAdapter");var _SchedulerCryptoAdapter2=_interopRequireDefault(_SchedulerCryptoAdapter);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 workerPath=_path2.default.resolve(__dirname,"../worker/WorkerThreadsWorker.js");var WorkerThreadsWorker=function(_EventEmitter){_inherits(WorkerThreadsWorker,_EventEmitter);function WorkerThreadsWorker(){_classCallCheck(this,WorkerThreadsWorker);var _this=_possibleConstructorReturn(this,_EventEmitter.call(this));var worker=new _worker_threads.Worker(workerPath);worker.on("message",function(message){return _this.emit("message",message)});worker.on("exit",function(exitCode){return _this.emit("exit",exitCode)});_this.workerThread=worker;return _this}WorkerThreadsWorker.prototype.postMessage=function postMessage(message){this.workerThread.postMessage(message)};return WorkerThreadsWorker}(_EventEmitter3.default);var WorkerThreadsCryptoAdapter=function(_SchedulerCryptoAdapt){_inherits(WorkerThreadsCryptoAdapter,_SchedulerCryptoAdapt);function WorkerThreadsCryptoAdapter(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,WorkerThreadsCryptoAdapter);if(!_worker_threads.isMainThread){throw new Error("Cannot create a WorkerThreadsCryptoAdapter within a worker.")}var _this2=_possibleConstructorReturn(this,_SchedulerCryptoAdapt.call(this,{limit:options.limit||_os2.default.cpus().length,create:function create(){return new WorkerThreadsWorker}}));if(options.optimistic){_this2.scheduler.prime()}_this2.options=options;return _this2}return WorkerThreadsCryptoAdapter}(_SchedulerCryptoAdapter2.default);exports.default=WorkerThreadsCryptoAdapter;
@@ -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,